From 6e086629a3021f16059caa3ffbbd2a3cf2cc5686 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=91=A8=F0=9F=8F=BC=E2=80=8D=F0=9F=92=BB=20Romain=20M?= =?UTF-8?q?arcadier-Muller?= Date: Thu, 27 Feb 2020 09:40:44 +0100 Subject: [PATCH 01/18] feat(jsii): introduce submodules feature --- packages/jsii/lib/assembler.ts | 114 +++++++++++++++++- packages/jsii/lib/compiler.ts | 2 +- .../jsii/test/negatives/namespaced/index.ts | 3 + .../neg.submodules-cannot-share-symbols.ts | 4 + 4 files changed, 119 insertions(+), 4 deletions(-) create mode 100644 packages/jsii/test/negatives/namespaced/index.ts create mode 100644 packages/jsii/test/negatives/neg.submodules-cannot-share-symbols.ts diff --git a/packages/jsii/lib/assembler.ts b/packages/jsii/lib/assembler.ts index 50cddf90ee..207a2d4d0c 100644 --- a/packages/jsii/lib/assembler.ts +++ b/packages/jsii/lib/assembler.ts @@ -30,6 +30,9 @@ export class Assembler implements Emitter { private _deferred = new Array(); private _types: { [fqn: string]: spec.Type } = {}; + /** Map of Symbol to namespace export Symbol */ + private readonly _namespaceMap = new Map(); + /** * @param projectInfo information about the package being assembled * @param program the TypeScript program to be assembled from @@ -80,7 +83,11 @@ export class Assembler implements Emitter { } const symbol = this._typeChecker.getSymbolAtLocation(sourceFile); if (!symbol) { continue; } - for (const node of this._typeChecker.getExportsOfModule(symbol)) { + const moduleExports = this._typeChecker.getExportsOfModule(symbol); + for (const node of moduleExports) { + this._registerNamespaces(node); + } + for (const node of moduleExports) { visitPromises.push(this._visitNode(node.declarations[0], new EmitContext([], this.projectInfo.stability))); } } @@ -256,7 +263,12 @@ export class Assembler implements Emitter { return type; } - private _diagnostic(node: ts.Node | null, category: ts.DiagnosticCategory, messageText: string) { + private _diagnostic( + node: ts.Node | null, + category: ts.DiagnosticCategory, + messageText: string, + relatedInformation?: ts.DiagnosticRelatedInformation[] + ) { this._diagnostics.push({ domain: 'JSII', category, @@ -265,6 +277,7 @@ export class Assembler implements Emitter { file: node != null ? node.getSourceFile() : undefined, start: node != null ? node.getStart() : undefined, length: node != null ? node.getEnd() - node.getStart() : undefined, + relatedInformation, }); } @@ -292,7 +305,10 @@ export class Assembler implements Emitter { this._diagnostic(node, ts.DiagnosticCategory.Error, `Could not find module for ${modulePath}`); return `unknown.${typeName}`; } - const fqn = `${pkg.name}.${typeName}`; + const submoduleNs = this._namespaceMap.get(type.symbol)?.name; + const fqn = submoduleNs == null + ? `${pkg.name}.${typeName}` + : `${pkg.name}.${submoduleNs}.${typeName}`; if (pkg.name !== this.projectInfo.name && !this._dereference({ fqn }, type.symbol.valueDeclaration)) { this._diagnostic(node, ts.DiagnosticCategory.Error, @@ -311,6 +327,88 @@ export class Assembler implements Emitter { } } + private _registerNamespaces(symbol: ts.Symbol): void { + const declaration = symbol.valueDeclaration ?? symbol.declarations[0]; + if (declaration == null || !ts.isNamespaceExport(declaration)) { + // Nothing to do here... + return; + } + const moduleSpecifier = declaration.parent.moduleSpecifier; + if (moduleSpecifier == null || !ts.isStringLiteral(moduleSpecifier)) { + // There is a grammar error here, so we'll let tsc report this for us. + return; + } + const resolution = ts.resolveModuleName( + moduleSpecifier.text, + declaration.getSourceFile().fileName, + this.program.getCompilerOptions(), + ts.sys + ); + if (resolution.resolvedModule == null) { + // Unresolvable module... We'll let tsc report this for us. + return; + } + if (resolution.resolvedModule.isExternalLibraryImport) { + // External re-exports are "pure-javascript" sugar; they need not be + // represented in the jsii Assembly since the types in there will be + // resolved through dependencies. + return; + } + const sourceFile = this.program.getSourceFile(resolution.resolvedModule.resolvedFileName)!; + const sourceModule = this._typeChecker.getSymbolAtLocation(sourceFile); + // If there's no module, it's a syntax error, and tsc will have reported it for us. + if (sourceModule) { + this._addToNamespace(symbol, sourceModule); + } + } + + private _addToNamespace(ns: ts.Symbol, moduleLike: ts.Symbol) { + for (const symbol of this._typeChecker.getExportsOfModule(moduleLike)) { + if (this._namespaceMap.has(symbol)) { + const currNs = this._namespaceMap.get(symbol)!; + if (currNs.name !== ns.name) { + const currNsDecl = currNs.valueDeclaration ?? currNs.declarations[0]; + const nsDecl = ns.valueDeclaration ?? ns.declarations[0]; + this._diagnostic( + symbol.valueDeclaration, + ts.DiagnosticCategory.Error, + `Symbol is re-exported under two distinct namespaces (${currNs.name} and ${ns.name})`, + [{ + category: ts.DiagnosticCategory.Warning, + file: currNsDecl.getSourceFile(), + length: currNsDecl.getStart() - currNsDecl.getEnd(), + messageText: `Symbol is exported under the "${currNs.name}" namespace`, + start: currNsDecl.getStart(), + code: JSII_DIAGNOSTICS_CODE + }, { + category: ts.DiagnosticCategory.Warning, + file: nsDecl.getSourceFile(), + length: nsDecl.getStart() - nsDecl.getEnd(), + messageText: `Symbol is exported under the "${ns.name}" namespace`, + start: nsDecl.getStart(), + code: JSII_DIAGNOSTICS_CODE + }] + ); + } + // Found two re-exports, which is odd, but they use the same namespace, + // so it's probably okay? That's likely a tsc error, which will have + // been reported for us already anyway. + continue; + } + this._namespaceMap.set(symbol, ns); + + const decl = symbol.declarations?.[0]; + if (decl != null + && (ts.isClassDeclaration(decl) || ts.isInterfaceDeclaration(decl) || ts.isEnumDeclaration(decl) || ts.isModuleDeclaration(decl)) + ) { + const type = this._typeChecker.getTypeAtLocation(decl); + if (type.symbol.exports) { + this._addToNamespace(ns, symbol); + } + } + } + } + /** * Register exported types in ``this.types``. * @@ -318,6 +416,16 @@ export class Assembler implements Emitter { * @param namePrefix the prefix for the types' namespaces */ private async _visitNode(node: ts.Declaration, context: EmitContext): Promise { + if (ts.isNamespaceExport(node)) { + const symbol = this._typeChecker.getSymbolAtLocation(node.parent.moduleSpecifier!)!; + const nsContext = context.appendNamespace(node.name.text); + const promises = new Array>(); + for (const child of this._typeChecker.getExportsOfModule(symbol)) { + promises.push(this._visitNode(child.declarations[0], nsContext)); + } + return flattenPromises(promises); + } + if ((ts.getCombinedModifierFlags(node) & ts.ModifierFlags.Export) === 0) { return []; } let jsiiType: spec.Type | undefined; diff --git a/packages/jsii/lib/compiler.ts b/packages/jsii/lib/compiler.ts index 1cfe0e97a8..5afd6e2c34 100644 --- a/packages/jsii/lib/compiler.ts +++ b/packages/jsii/lib/compiler.ts @@ -190,7 +190,7 @@ export class Compiler implements Emitter { hasErrors = hasErrors || emitHasErrors(assmEmit, this.options.failOnWarnings); diagnostics.push(...assmEmit.diagnostics); } catch (e) { - LOG.error(`Error during type model analysis: ${e}`); + LOG.error(`Error during type model analysis: ${e}\n${e.stack}`); } return { emitSkipped: hasErrors, diagnostics, emittedFiles: emit.emittedFiles }; diff --git a/packages/jsii/test/negatives/namespaced/index.ts b/packages/jsii/test/negatives/namespaced/index.ts new file mode 100644 index 0000000000..f666ae2bc7 --- /dev/null +++ b/packages/jsii/test/negatives/namespaced/index.ts @@ -0,0 +1,3 @@ +export class Declaration { + private constructor() { } +} diff --git a/packages/jsii/test/negatives/neg.submodules-cannot-share-symbols.ts b/packages/jsii/test/negatives/neg.submodules-cannot-share-symbols.ts new file mode 100644 index 0000000000..2f211148d3 --- /dev/null +++ b/packages/jsii/test/negatives/neg.submodules-cannot-share-symbols.ts @@ -0,0 +1,4 @@ +///!MATCH_ERROR: Symbol is re-exported under two distinct namespaces (ns1 and ns2) + +export * as ns1 from './namespaced'; +export * as ns2 from './namespaced'; From bfcdc2255caa3235e122148e4ff447161b93c5bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=91=A8=F0=9F=8F=BC=E2=80=8D=F0=9F=92=BB=20Romain=20M?= =?UTF-8?q?arcadier-Muller?= Date: Tue, 10 Mar 2020 10:22:13 +0100 Subject: [PATCH 02/18] address PR feedback --- packages/jsii/lib/assembler.ts | 70 +++++++++++++------ .../neg.submodules-cannot-share-symbols.ts | 2 +- 2 files changed, 50 insertions(+), 22 deletions(-) diff --git a/packages/jsii/lib/assembler.ts b/packages/jsii/lib/assembler.ts index 207a2d4d0c..843cfb8132 100644 --- a/packages/jsii/lib/assembler.ts +++ b/packages/jsii/lib/assembler.ts @@ -31,7 +31,7 @@ export class Assembler implements Emitter { private _types: { [fqn: string]: spec.Type } = {}; /** Map of Symbol to namespace export Symbol */ - private readonly _namespaceMap = new Map(); + private readonly _submoduleMap = new Map(); /** * @param projectInfo information about the package being assembled @@ -305,10 +305,10 @@ export class Assembler implements Emitter { this._diagnostic(node, ts.DiagnosticCategory.Error, `Could not find module for ${modulePath}`); return `unknown.${typeName}`; } - const submoduleNs = this._namespaceMap.get(type.symbol)?.name; - const fqn = submoduleNs == null - ? `${pkg.name}.${typeName}` - : `${pkg.name}.${submoduleNs}.${typeName}`; + const submoduleNs = this._submoduleMap.get(type.symbol)?.name; + const fqn = submoduleNs != null + ? `${pkg.name}.${submoduleNs}.${typeName}` + : `${pkg.name}.${typeName}`; if (pkg.name !== this.projectInfo.name && !this._dereference({ fqn }, type.symbol.valueDeclaration)) { this._diagnostic(node, ts.DiagnosticCategory.Error, @@ -358,52 +358,68 @@ export class Assembler implements Emitter { const sourceModule = this._typeChecker.getSymbolAtLocation(sourceFile); // If there's no module, it's a syntax error, and tsc will have reported it for us. if (sourceModule) { - this._addToNamespace(symbol, sourceModule); + this._addToSubmodule(symbol, sourceModule); } } - private _addToNamespace(ns: ts.Symbol, moduleLike: ts.Symbol) { + /** + * Registers Symbols to a particular submodule. This is used to associate + * declarations exported by an `export * as ns from 'moduleLike';` statement + * so that they can subsequently be correctly namespaced. + * + * @param ns the symbol that identifies the submodule. + * @param moduleLike the module-like symbol bound to the submodule. + */ + private _addToSubmodule(ns: ts.Symbol, moduleLike: ts.Symbol) { + // For each symbol exported by the moduleLike, map it to the ns submodule. for (const symbol of this._typeChecker.getExportsOfModule(moduleLike)) { - if (this._namespaceMap.has(symbol)) { - const currNs = this._namespaceMap.get(symbol)!; + if (this._submoduleMap.has(symbol)) { + const currNs = this._submoduleMap.get(symbol)!; + // Checking if there's been two submodules exporting the same symbol, + // which is illegal. We can tell if the currently registered symbol has + // a different name than the one we're currently trying to register in. if (currNs.name !== ns.name) { const currNsDecl = currNs.valueDeclaration ?? currNs.declarations[0]; const nsDecl = ns.valueDeclaration ?? ns.declarations[0]; this._diagnostic( symbol.valueDeclaration, ts.DiagnosticCategory.Error, - `Symbol is re-exported under two distinct namespaces (${currNs.name} and ${ns.name})`, + `Symbol is re-exported under two distinct submodules (${currNs.name} and ${ns.name})`, [{ category: ts.DiagnosticCategory.Warning, file: currNsDecl.getSourceFile(), length: currNsDecl.getStart() - currNsDecl.getEnd(), - messageText: `Symbol is exported under the "${currNs.name}" namespace`, + messageText: `Symbol is exported under the "${currNs.name}" submodule`, start: currNsDecl.getStart(), code: JSII_DIAGNOSTICS_CODE }, { category: ts.DiagnosticCategory.Warning, file: nsDecl.getSourceFile(), length: nsDecl.getStart() - nsDecl.getEnd(), - messageText: `Symbol is exported under the "${ns.name}" namespace`, + messageText: `Symbol is exported under the "${ns.name}" submodule`, start: nsDecl.getStart(), code: JSII_DIAGNOSTICS_CODE }] ); } - // Found two re-exports, which is odd, but they use the same namespace, + // Found two re-exports, which is odd, but they use the same submodule, // so it's probably okay? That's likely a tsc error, which will have // been reported for us already anyway. continue; } - this._namespaceMap.set(symbol, ns); + this._submoduleMap.set(symbol, ns); + // If the exported symbol has any declaration, and that delcaration is of + // an entity that can have nested declarations of interest to jsii + // (classes, interfaces, enums, modules), we need to also associate those + // nested symbols to the submodule (or they won't be named correctly!) const decl = symbol.declarations?.[0]; if (decl != null && (ts.isClassDeclaration(decl) || ts.isInterfaceDeclaration(decl) || ts.isEnumDeclaration(decl) || ts.isModuleDeclaration(decl)) ) { const type = this._typeChecker.getTypeAtLocation(decl); if (type.symbol.exports) { - this._addToNamespace(ns, symbol); + this._addToSubmodule(ns, symbol); } } } @@ -415,28 +431,39 @@ export class Assembler implements Emitter { * @param node a node found in a module * @param namePrefix the prefix for the types' namespaces */ + // eslint-disable-next-line complexity private async _visitNode(node: ts.Declaration, context: EmitContext): Promise { - if (ts.isNamespaceExport(node)) { + if (ts.isNamespaceExport(node)) { // export * as ns from 'module'; + // Note: the "ts.NamespaceExport" refers to the "export * as ns" part of + // the statement only. We must refer to `node.parent` in order to be able + // to access the module specifier ("from 'module'") part. const symbol = this._typeChecker.getSymbolAtLocation(node.parent.moduleSpecifier!)!; + + if (LOG.isTraceEnabled()) { LOG.trace(`Entering submodule: ${colors.cyan([...context.namespace, symbol.name].join('.'))}`); } + const nsContext = context.appendNamespace(node.name.text); const promises = new Array>(); for (const child of this._typeChecker.getExportsOfModule(symbol)) { promises.push(this._visitNode(child.declarations[0], nsContext)); } - return flattenPromises(promises); + const allTypes = flattenPromises(promises); + + if (LOG.isTraceEnabled()) { LOG.trace(`Leaving submodule: ${colors.cyan([...context.namespace, symbol.name].join('.'))}`); } + + return allTypes; } if ((ts.getCombinedModifierFlags(node) & ts.ModifierFlags.Export) === 0) { return []; } let jsiiType: spec.Type | undefined; - if (ts.isClassDeclaration(node) && _isExported(node)) { + if (ts.isClassDeclaration(node) && _isExported(node)) { // export class Name { ... } jsiiType = await this._visitClass(this._typeChecker.getTypeAtLocation(node), context); - } else if (ts.isInterfaceDeclaration(node) && _isExported(node)) { + } else if (ts.isInterfaceDeclaration(node) && _isExported(node)) { // export interface Name { ... } jsiiType = await this._visitInterface(this._typeChecker.getTypeAtLocation(node), context); - } else if (ts.isEnumDeclaration(node) && _isExported(node)) { + } else if (ts.isEnumDeclaration(node) && _isExported(node)) { // export enum Name { ... } jsiiType = await this._visitEnum(this._typeChecker.getTypeAtLocation(node), context); - } else if (ts.isModuleDeclaration(node)) { + } else if (ts.isModuleDeclaration(node)) { // export namespace name { ... } const name = node.name.getText(); const symbol = (node as any).symbol; @@ -544,6 +571,7 @@ export class Assembler implements Emitter { return { interfaces: result.length === 0 ? undefined : result, erasedBases }; } + // eslint-disable-next-line complexity private async _visitClass(type: ts.Type, ctx: EmitContext): Promise { if (LOG.isTraceEnabled()) { LOG.trace(`Processing class: ${colors.gray(ctx.namespace.join('.'))}.${colors.cyan(type.symbol.name)}`); diff --git a/packages/jsii/test/negatives/neg.submodules-cannot-share-symbols.ts b/packages/jsii/test/negatives/neg.submodules-cannot-share-symbols.ts index 2f211148d3..314594178a 100644 --- a/packages/jsii/test/negatives/neg.submodules-cannot-share-symbols.ts +++ b/packages/jsii/test/negatives/neg.submodules-cannot-share-symbols.ts @@ -1,4 +1,4 @@ -///!MATCH_ERROR: Symbol is re-exported under two distinct namespaces (ns1 and ns2) +///!MATCH_ERROR: Symbol is re-exported under two distinct submodules (ns1 and ns2) export * as ns1 from './namespaced'; export * as ns2 from './namespaced'; From 814e39520e3786281ae1d0bb59993f9f4863e355 Mon Sep 17 00:00:00 2001 From: Romain Marcadier-Muller Date: Tue, 10 Mar 2020 17:26:46 +0100 Subject: [PATCH 03/18] submodule some declarations in jsii-calc. --- packages/jsii-calc/lib/index.ts | 12 +- packages/jsii-calc/test/assembly.jsii | 10326 ++++++------- .../lib/targets/dotnet/dotnetgenerator.ts | 32 +- .../lib/targets/dotnet/dotnettyperesolver.ts | 4 +- packages/jsii-pacmak/lib/targets/java.ts | 146 +- packages/jsii-pacmak/lib/targets/python.ts | 114 +- packages/jsii-pacmak/test/diff-test.sh | 2 +- .../scope/jsii_calc_base_of_base/__init__.py | 2 +- .../jsii_calc_base_of_base/_jsii/__init__.py | 2 +- .../src/scope/jsii_calc_base/__init__.py | 2 +- .../scope/jsii_calc_base/_jsii/__init__.py | 2 +- .../src/scope/jsii_calc_lib/__init__.py | 2 +- .../src/scope/jsii_calc_lib/_jsii/__init__.py | 2 +- .../.jsii | 10326 ++++++------- .../Tests/CalculatorNamespace/Calculator.cs | 2 +- .../{ => Compliance}/AbstractClass.cs | 6 +- .../{ => Compliance}/AbstractClassBase.cs | 4 +- .../AbstractClassBaseProxy.cs | 6 +- .../{ => Compliance}/AbstractClassProxy.cs | 6 +- .../{ => Compliance}/AbstractClassReturner.cs | 22 +- .../{ => Compliance}/AllTypes.cs | 22 +- .../{ => Compliance}/AllTypesEnum.cs | 4 +- .../{ => Compliance}/AllowedMethodNames.cs | 4 +- .../{ => Compliance}/AmbiguousParameters.cs | 18 +- .../AnonymousImplementationProvider.cs | 18 +- .../{ => Compliance}/AsyncVirtualMethods.cs | 4 +- .../{ => Compliance}/AugmentableClass.cs | 4 +- .../{ => Compliance}/BaseJsii976.cs | 4 +- .../{ => Compliance}/Bell.cs | 6 +- .../{ => Compliance}/ChildStruct982.cs | 6 +- .../{ => Compliance}/ChildStruct982Proxy.cs | 6 +- ...ClassThatImplementsTheInternalInterface.cs | 6 +- .../ClassThatImplementsThePrivateInterface.cs | 6 +- .../{ => Compliance}/ClassWithCollections.cs | 16 +- .../{ => Compliance}/ClassWithDocs.cs | 4 +- .../ClassWithJavaReservedWords.cs | 4 +- .../ClassWithMutableObjectLiteralProperty.cs | 10 +- ...rivateConstructorAndAutomaticProperties.cs | 12 +- .../{ => Compliance}/ConfusingToJackson.cs | 18 +- .../ConfusingToJacksonStruct.cs | 8 +- .../ConfusingToJacksonStructProxy.cs | 8 +- .../ConstructorPassesThisOut.cs | 6 +- .../{ => Compliance}/Constructors.cs | 46 +- .../{ => Compliance}/ConsumePureInterface.cs | 12 +- .../{ => Compliance}/ConsumerCanRingBell.cs | 52 +- .../ConsumersOfThisCrazyTypeSystem.cs | 16 +- .../{ => Compliance}/DataRenderer.cs | 4 +- .../DefaultedConstructorArgument.cs | 4 +- .../{ => Compliance}/Demonstrate982.cs | 16 +- .../DerivedClassHasNoProperties/Base.cs | 4 +- .../DerivedClassHasNoProperties/Derived.cs | 6 +- .../{ => Compliance}/DerivedStruct.cs | 10 +- .../{ => Compliance}/DerivedStructProxy.cs | 12 +- .../DiamondInheritanceBaseLevelStruct.cs | 6 +- .../DiamondInheritanceBaseLevelStructProxy.cs | 6 +- .../DiamondInheritanceFirstMidLevelStruct.cs | 6 +- ...mondInheritanceFirstMidLevelStructProxy.cs | 6 +- .../DiamondInheritanceSecondMidLevelStruct.cs | 6 +- ...ondInheritanceSecondMidLevelStructProxy.cs | 6 +- .../DiamondInheritanceTopLevelStruct.cs | 6 +- .../DiamondInheritanceTopLevelStructProxy.cs | 6 +- .../DisappointingCollectionSource.cs | 8 +- .../{ => Compliance}/DoNotOverridePrivates.cs | 4 +- .../DoNotRecognizeAnyAsOptional.cs | 4 +- .../DontComplainAboutVariadicAfterOptional.cs | 4 +- .../{ => Compliance}/DoubleTrouble.cs | 4 +- .../{ => Compliance}/EnumDispenser.cs | 16 +- .../EraseUndefinedHashValues.cs | 14 +- .../EraseUndefinedHashValuesOptions.cs | 6 +- .../EraseUndefinedHashValuesOptionsProxy.cs | 6 +- .../{ => Compliance}/ExportedBaseClass.cs | 4 +- .../ExtendsInternalInterface.cs | 6 +- .../ExtendsInternalInterfaceProxy.cs | 6 +- .../{ => Compliance}/GiveMeStructs.cs | 16 +- .../{ => Compliance}/GreetingAugmenter.cs | 4 +- .../IAnonymousImplementationProvider.cs | 12 +- .../IAnonymousImplementationProviderProxy.cs | 18 +- .../IAnonymouslyImplementMe.cs | 4 +- .../IAnonymouslyImplementMeProxy.cs | 6 +- .../IAnotherPublicInterface.cs | 4 +- .../IAnotherPublicInterfaceProxy.cs | 6 +- .../{ => Compliance}/IBell.cs | 4 +- .../{ => Compliance}/IBellProxy.cs | 6 +- .../{ => Compliance}/IBellRinger.cs | 8 +- .../{ => Compliance}/IBellRingerProxy.cs | 12 +- .../{ => Compliance}/IChildStruct982.cs | 6 +- .../{ => Compliance}/IConcreteBellRinger.cs | 8 +- .../IConcreteBellRingerProxy.cs | 12 +- .../IConfusingToJacksonStruct.cs | 6 +- .../{ => Compliance}/IDerivedStruct.cs | 8 +- .../IDiamondInheritanceBaseLevelStruct.cs | 4 +- .../IDiamondInheritanceFirstMidLevelStruct.cs | 6 +- ...IDiamondInheritanceSecondMidLevelStruct.cs | 6 +- .../IDiamondInheritanceTopLevelStruct.cs | 6 +- .../IEraseUndefinedHashValuesOptions.cs | 4 +- .../IExtendsInternalInterface.cs | 4 +- .../IExtendsPrivateInterface.cs | 4 +- .../IExtendsPrivateInterfaceProxy.cs | 6 +- .../{ => Compliance}/IImplictBaseOfBase.cs | 4 +- .../IInterfaceImplementedByAbstractClass.cs | 4 +- ...nterfaceImplementedByAbstractClassProxy.cs | 6 +- .../IInterfaceThatShouldNotBeADataType.cs | 6 +- ...IInterfaceThatShouldNotBeADataTypeProxy.cs | 6 +- .../IInterfaceWithInternal.cs | 4 +- .../IInterfaceWithInternalProxy.cs | 6 +- .../{ => Compliance}/IInterfaceWithMethods.cs | 4 +- .../IInterfaceWithMethodsProxy.cs | 6 +- .../IInterfaceWithOptionalMethodArguments.cs | 4 +- ...terfaceWithOptionalMethodArgumentsProxy.cs | 6 +- .../IInterfaceWithProperties.cs | 4 +- .../IInterfaceWithPropertiesExtension.cs | 6 +- .../IInterfaceWithPropertiesExtensionProxy.cs | 6 +- .../IInterfaceWithPropertiesProxy.cs | 6 +- .../ILoadBalancedFargateServiceProps.cs | 4 +- .../{ => Compliance}/IMutableObjectLiteral.cs | 4 +- .../IMutableObjectLiteralProxy.cs | 6 +- .../{ => Compliance}/INestedStruct.cs | 4 +- .../{ => Compliance}/INonInternalInterface.cs | 6 +- .../INonInternalInterfaceProxy.cs | 6 +- .../INullShouldBeTreatedAsUndefinedData.cs | 4 +- .../{ => Compliance}/IObjectWithProperty.cs | 4 +- .../IObjectWithPropertyProxy.cs | 6 +- .../{ => Compliance}/IOptionalMethod.cs | 4 +- .../{ => Compliance}/IOptionalMethodProxy.cs | 6 +- .../{ => Compliance}/IOptionalStruct.cs | 4 +- .../{ => Compliance}/IParentStruct982.cs | 4 +- .../{ => Compliance}/IPrivatelyImplemented.cs | 4 +- .../IPrivatelyImplementedProxy.cs | 6 +- .../{ => Compliance}/IPublicInterface.cs | 4 +- .../{ => Compliance}/IPublicInterface2.cs | 4 +- .../IPublicInterface2Proxy.cs | 6 +- .../{ => Compliance}/IPublicInterfaceProxy.cs | 6 +- .../{ => Compliance}/IReturnJsii976.cs | 4 +- .../{ => Compliance}/IReturnJsii976Proxy.cs | 6 +- .../{ => Compliance}/IReturnsNumber.cs | 4 +- .../{ => Compliance}/IReturnsNumberProxy.cs | 6 +- .../{ => Compliance}/IRootStruct.cs | 8 +- .../{ => Compliance}/ISecondLevelStruct.cs | 4 +- .../{ => Compliance}/IStructA.cs | 4 +- .../{ => Compliance}/IStructB.cs | 8 +- .../{ => Compliance}/IStructParameterType.cs | 4 +- .../IStructReturningDelegate.cs | 8 +- .../IStructReturningDelegateProxy.cs | 12 +- .../IStructWithJavaReservedWords.cs | 4 +- .../ISupportsNiceJavaBuilderProps.cs | 4 +- .../{ => Compliance}/ITopLevelStruct.cs | 6 +- .../{ => Compliance}/IUnionProperties.cs | 6 +- .../ImplementInternalInterface.cs | 4 +- .../{ => Compliance}/Implementation.cs | 4 +- .../ImplementsInterfaceWithInternal.cs | 6 +- ...ImplementsInterfaceWithInternalSubclass.cs | 6 +- .../ImplementsPrivateInterface.cs | 4 +- .../{ => Compliance}/ImplictBaseOfBase.cs | 6 +- .../ImplictBaseOfBaseProxy.cs | 6 +- .../{ => Compliance}/InbetweenClass.cs | 6 +- .../{ => Compliance}/InterfaceCollections.cs | 28 +- .../Foo.cs | 4 +- .../Hello.cs | 6 +- .../HelloProxy.cs | 6 +- .../IHello.cs | 4 +- .../Hello.cs | 6 +- .../HelloProxy.cs | 6 +- .../IHello.cs | 4 +- .../{ => Compliance}/InterfacesMaker.cs | 6 +- .../JSObjectLiteralForInterface.cs | 4 +- .../JSObjectLiteralToNative.cs | 10 +- .../JSObjectLiteralToNativeClass.cs | 4 +- .../{ => Compliance}/JavaReservedWords.cs | 4 +- .../{ => Compliance}/JsiiAgent_.cs | 6 +- .../{ => Compliance}/JsonFormatter.cs | 32 +- .../LoadBalancedFargateServiceProps.cs | 6 +- .../LoadBalancedFargateServicePropsProxy.cs | 6 +- .../{ => Compliance}/NestedStruct.cs | 6 +- .../{ => Compliance}/NestedStructProxy.cs | 6 +- .../{ => Compliance}/NodeStandardLibrary.cs | 4 +- .../NullShouldBeTreatedAsUndefined.cs | 10 +- .../NullShouldBeTreatedAsUndefinedData.cs | 6 +- ...NullShouldBeTreatedAsUndefinedDataProxy.cs | 6 +- .../{ => Compliance}/NumberGenerator.cs | 4 +- .../ObjectRefsInCollections.cs | 4 +- .../ObjectWithPropertyProvider.cs | 10 +- .../OptionalArgumentInvoker.cs | 6 +- .../OptionalConstructorArgument.cs | 4 +- .../{ => Compliance}/OptionalStruct.cs | 6 +- .../OptionalStructConsumer.cs | 6 +- .../{ => Compliance}/OptionalStructProxy.cs | 6 +- .../OverridableProtectedMember.cs | 4 +- .../{ => Compliance}/OverrideReturnsObject.cs | 10 +- .../{ => Compliance}/ParentStruct982.cs | 6 +- .../{ => Compliance}/ParentStruct982Proxy.cs | 6 +- .../PartiallyInitializedThisConsumer.cs | 8 +- .../PartiallyInitializedThisConsumerProxy.cs | 26 + .../{ => Compliance}/Polymorphism.cs | 4 +- .../{ => Compliance}/PublicClass.cs | 4 +- .../{ => Compliance}/PythonReservedWords.cs | 4 +- .../ReferenceEnumFromScopedPackage.cs | 4 +- ...ReturnsPrivateImplementationOfInterface.cs | 10 +- .../{ => Compliance}/RootStruct.cs | 10 +- .../{ => Compliance}/RootStructProxy.cs | 12 +- .../{ => Compliance}/RootStructValidator.cs | 10 +- .../{ => Compliance}/RuntimeTypeChecking.cs | 4 +- .../{ => Compliance}/SecondLevelStruct.cs | 6 +- .../SecondLevelStructProxy.cs | 6 +- .../SingleInstanceTwoTypes.cs | 16 +- .../{ => Compliance}/SingletonInt.cs | 4 +- .../{ => Compliance}/SingletonIntEnum.cs | 4 +- .../{ => Compliance}/SingletonString.cs | 4 +- .../{ => Compliance}/SingletonStringEnum.cs | 4 +- .../{ => Compliance}/SomeTypeJsii976.cs | 12 +- .../{ => Compliance}/StaticContext.cs | 10 +- .../{ => Compliance}/Statics.cs | 30 +- .../{ => Compliance}/StringEnum.cs | 4 +- .../{ => Compliance}/StripInternal.cs | 4 +- .../{ => Compliance}/StructA.cs | 6 +- .../{ => Compliance}/StructAProxy.cs | 6 +- .../{ => Compliance}/StructB.cs | 10 +- .../{ => Compliance}/StructBProxy.cs | 12 +- .../{ => Compliance}/StructParameterType.cs | 6 +- .../StructParameterTypeProxy.cs | 6 +- .../{ => Compliance}/StructPassing.cs | 16 +- .../{ => Compliance}/StructUnionConsumer.cs | 12 +- .../StructWithJavaReservedWords.cs | 6 +- .../StructWithJavaReservedWordsProxy.cs | 6 +- .../SupportsNiceJavaBuilder.cs | 8 +- .../SupportsNiceJavaBuilderProps.cs | 6 +- .../SupportsNiceJavaBuilderPropsProxy.cs | 6 +- ...upportsNiceJavaBuilderWithRequiredProps.cs | 6 +- .../{ => Compliance}/SyncVirtualMethods.cs | 4 +- .../{ => Compliance}/Thrower.cs | 4 +- .../{ => Compliance}/TopLevelStruct.cs | 8 +- .../{ => Compliance}/TopLevelStructProxy.cs | 8 +- .../{ => Compliance}/UnionProperties.cs | 8 +- .../{ => Compliance}/UnionPropertiesProxy.cs | 8 +- .../{ => Compliance}/UseBundledDependency.cs | 4 +- .../{ => Compliance}/UseCalcBase.cs | 4 +- .../UsesInterfaceWithProperties.cs | 18 +- .../{ => Compliance}/VariadicInvoker.cs | 6 +- .../{ => Compliance}/VariadicMethod.cs | 4 +- .../VirtualMethodPlayground.cs | 4 +- .../{ => Compliance}/VoidCallback.cs | 4 +- .../{ => Compliance}/VoidCallbackProxy.cs | 6 +- .../WithPrivatePropertyInConstructor.cs | 4 +- .../{ => Documented}/DocumentedClass.cs | 10 +- .../{ => Documented}/Greetee.cs | 6 +- .../{ => Documented}/GreeteeProxy.cs | 6 +- .../{ => Documented}/IGreetee.cs | 4 +- .../{ => Documented}/Old.cs | 4 +- .../{ => ErasureTests}/IJSII417Derived.cs | 6 +- .../IJSII417DerivedProxy.cs | 6 +- .../IJSII417PublicBaseOfBase.cs | 4 +- .../IJSII417PublicBaseOfBaseProxy.cs | 6 +- .../{ => ErasureTests}/IJsii487External.cs | 4 +- .../{ => ErasureTests}/IJsii487External2.cs | 4 +- .../IJsii487External2Proxy.cs | 6 +- .../IJsii487ExternalProxy.cs | 6 +- .../{ => ErasureTests}/IJsii496.cs | 4 +- .../{ => ErasureTests}/IJsii496Proxy.cs | 6 +- .../{ => ErasureTests}/JSII417Derived.cs | 6 +- .../JSII417PublicBaseOfBase.cs | 10 +- .../{ => ErasureTests}/Jsii487Derived.cs | 6 +- .../{ => ErasureTests}/Jsii496Derived.cs | 6 +- .../PartiallyInitializedThisConsumerProxy.cs | 26 - .../JSII/Tests/CalculatorNamespace/Power.cs | 2 +- .../DeprecatedClass.cs | 4 +- .../DeprecatedEnum.cs | 4 +- .../DeprecatedStruct.cs | 6 +- .../DeprecatedStructProxy.cs | 6 +- .../ExperimentalClass.cs | 4 +- .../ExperimentalEnum.cs | 4 +- .../ExperimentalStruct.cs | 6 +- .../ExperimentalStructProxy.cs | 6 +- .../IDeprecatedInterface.cs | 4 +- .../IDeprecatedInterfaceProxy.cs | 6 +- .../IDeprecatedStruct.cs | 4 +- .../IExperimentalInterface.cs | 4 +- .../IExperimentalInterfaceProxy.cs | 6 +- .../IExperimentalStruct.cs | 4 +- .../IStableInterface.cs | 4 +- .../IStableInterfaceProxy.cs | 6 +- .../IStableStruct.cs | 4 +- .../{ => StabilityAnnotations}/StableClass.cs | 4 +- .../{ => StabilityAnnotations}/StableEnum.cs | 4 +- .../StableStruct.cs | 6 +- .../StableStructProxy.cs | 6 +- .../JSII/Tests/CalculatorNamespace/Sum.cs | 2 +- .../composition/CompositeOperation.cs | 8 +- .../composition/CompositeOperationProxy.cs | 6 +- .../amazon/jsii/tests/calculator/$Module.java | 342 +- .../{ => compliance}/AbstractClass.java | 8 +- .../{ => compliance}/AbstractClassBase.java | 6 +- .../AbstractClassReturner.java | 16 +- .../calculator/{ => compliance}/AllTypes.java | 20 +- .../{ => compliance}/AllTypesEnum.java | 4 +- .../{ => compliance}/AllowedMethodNames.java | 4 +- .../{ => compliance}/AmbiguousParameters.java | 32 +- .../AnonymousImplementationProvider.java | 14 +- .../{ => compliance}/AsyncVirtualMethods.java | 4 +- .../{ => compliance}/AugmentableClass.java | 4 +- .../{ => compliance}/BaseJsii976.java | 4 +- .../calculator/{ => compliance}/Bell.java | 6 +- .../{ => compliance}/ChildStruct982.java | 8 +- ...assThatImplementsTheInternalInterface.java | 6 +- ...lassThatImplementsThePrivateInterface.java | 6 +- .../ClassWithCollections.java | 16 +- .../{ => compliance}/ClassWithDocs.java | 4 +- .../ClassWithJavaReservedWords.java | 4 +- ...ClassWithMutableObjectLiteralProperty.java | 10 +- ...vateConstructorAndAutomaticProperties.java | 10 +- .../{ => compliance}/ConfusingToJackson.java | 12 +- .../ConfusingToJacksonStruct.java | 6 +- .../ConstructorPassesThisOut.java | 6 +- .../{ => compliance}/Constructors.java | 32 +- .../ConsumePureInterface.java | 10 +- .../{ => compliance}/ConsumerCanRingBell.java | 28 +- .../ConsumersOfThisCrazyTypeSystem.java | 8 +- .../{ => compliance}/DataRenderer.java | 4 +- .../DefaultedConstructorArgument.java | 4 +- .../{ => compliance}/Demonstrate982.java | 12 +- .../{ => compliance}/DerivedStruct.java | 20 +- .../DiamondInheritanceBaseLevelStruct.java | 6 +- ...DiamondInheritanceFirstMidLevelStruct.java | 8 +- ...iamondInheritanceSecondMidLevelStruct.java | 8 +- .../DiamondInheritanceTopLevelStruct.java | 8 +- .../DisappointingCollectionSource.java | 8 +- .../DoNotOverridePrivates.java | 4 +- .../DoNotRecognizeAnyAsOptional.java | 4 +- ...ontComplainAboutVariadicAfterOptional.java | 4 +- .../{ => compliance}/DoubleTrouble.java | 4 +- .../{ => compliance}/EnumDispenser.java | 12 +- .../EraseUndefinedHashValues.java | 12 +- .../EraseUndefinedHashValuesOptions.java | 6 +- .../{ => compliance}/ExportedBaseClass.java | 4 +- .../ExtendsInternalInterface.java | 6 +- .../{ => compliance}/GiveMeStructs.java | 10 +- .../{ => compliance}/GreetingAugmenter.java | 4 +- .../IAnonymousImplementationProvider.java | 18 +- .../IAnonymouslyImplementMe.java | 6 +- .../IAnotherPublicInterface.java | 6 +- .../calculator/{ => compliance}/IBell.java | 6 +- .../{ => compliance}/IBellRinger.java | 10 +- .../{ => compliance}/IConcreteBellRinger.java | 10 +- .../IExtendsPrivateInterface.java | 6 +- .../IInterfaceImplementedByAbstractClass.java | 6 +- .../IInterfaceThatShouldNotBeADataType.java | 8 +- .../IInterfaceWithInternal.java | 6 +- .../IInterfaceWithMethods.java | 6 +- ...IInterfaceWithOptionalMethodArguments.java | 6 +- .../IInterfaceWithProperties.java | 6 +- .../IInterfaceWithPropertiesExtension.java | 8 +- .../IMutableObjectLiteral.java | 6 +- .../INonInternalInterface.java | 8 +- .../{ => compliance}/IObjectWithProperty.java | 6 +- .../{ => compliance}/IOptionalMethod.java | 6 +- .../IPrivatelyImplemented.java | 6 +- .../{ => compliance}/IPublicInterface.java | 6 +- .../{ => compliance}/IPublicInterface2.java | 6 +- .../{ => compliance}/IReturnJsii976.java | 6 +- .../{ => compliance}/IReturnsNumber.java | 6 +- .../IStructReturningDelegate.java | 12 +- .../ImplementInternalInterface.java | 4 +- .../{ => compliance}/Implementation.java | 4 +- .../ImplementsInterfaceWithInternal.java | 6 +- ...plementsInterfaceWithInternalSubclass.java | 6 +- .../ImplementsPrivateInterface.java | 4 +- .../{ => compliance}/ImplictBaseOfBase.java | 6 +- .../{ => compliance}/InbetweenClass.java | 6 +- .../InterfaceCollections.java | 20 +- .../{ => compliance}/InterfacesMaker.java | 6 +- .../JSObjectLiteralForInterface.java | 4 +- .../JSObjectLiteralToNative.java | 8 +- .../JSObjectLiteralToNativeClass.java | 4 +- .../{ => compliance}/JavaReservedWords.java | 4 +- .../{ => compliance}/JsiiAgent.java | 6 +- .../{ => compliance}/JsonFormatter.java | 34 +- .../LoadBalancedFargateServiceProps.java | 6 +- .../{ => compliance}/NestedStruct.java | 6 +- .../{ => compliance}/NodeStandardLibrary.java | 4 +- .../NullShouldBeTreatedAsUndefined.java | 6 +- .../NullShouldBeTreatedAsUndefinedData.java | 6 +- .../{ => compliance}/NumberGenerator.java | 4 +- .../ObjectRefsInCollections.java | 4 +- .../ObjectWithPropertyProvider.java | 8 +- .../OptionalArgumentInvoker.java | 6 +- .../OptionalConstructorArgument.java | 4 +- .../{ => compliance}/OptionalStruct.java | 6 +- .../OptionalStructConsumer.java | 20 +- .../OverridableProtectedMember.java | 4 +- .../OverrideReturnsObject.java | 6 +- .../{ => compliance}/ParentStruct982.java | 6 +- .../PartiallyInitializedThisConsumer.java | 10 +- .../{ => compliance}/Polymorphism.java | 4 +- .../{ => compliance}/PublicClass.java | 4 +- .../{ => compliance}/PythonReservedWords.java | 4 +- .../ReferenceEnumFromScopedPackage.java | 4 +- ...turnsPrivateImplementationOfInterface.java | 8 +- .../{ => compliance}/RootStruct.java | 20 +- .../{ => compliance}/RootStructValidator.java | 8 +- .../{ => compliance}/RuntimeTypeChecking.java | 4 +- .../{ => compliance}/SecondLevelStruct.java | 6 +- .../SingleInstanceTwoTypes.java | 12 +- .../{ => compliance}/SingletonInt.java | 4 +- .../{ => compliance}/SingletonIntEnum.java | 4 +- .../{ => compliance}/SingletonString.java | 4 +- .../{ => compliance}/SingletonStringEnum.java | 4 +- .../{ => compliance}/SomeTypeJsii976.java | 10 +- .../{ => compliance}/StaticContext.java | 10 +- .../calculator/{ => compliance}/Statics.java | 28 +- .../{ => compliance}/StringEnum.java | 4 +- .../{ => compliance}/StripInternal.java | 4 +- .../calculator/{ => compliance}/StructA.java | 6 +- .../calculator/{ => compliance}/StructB.java | 20 +- .../{ => compliance}/StructParameterType.java | 6 +- .../{ => compliance}/StructPassing.java | 12 +- .../{ => compliance}/StructUnionConsumer.java | 8 +- .../StructWithJavaReservedWords.java | 6 +- .../SupportsNiceJavaBuilder.java | 22 +- .../SupportsNiceJavaBuilderProps.java | 6 +- ...portsNiceJavaBuilderWithRequiredProps.java | 18 +- .../{ => compliance}/SyncVirtualMethods.java | 4 +- .../calculator/{ => compliance}/Thrower.java | 4 +- .../{ => compliance}/TopLevelStruct.java | 8 +- .../{ => compliance}/UnionProperties.java | 8 +- .../UseBundledDependency.java | 4 +- .../{ => compliance}/UseCalcBase.java | 4 +- .../UsesInterfaceWithProperties.java | 12 +- .../{ => compliance}/VariadicInvoker.java | 6 +- .../{ => compliance}/VariadicMethod.java | 4 +- .../VirtualMethodPlayground.java | 4 +- .../{ => compliance}/VoidCallback.java | 6 +- .../WithPrivatePropertyInConstructor.java | 4 +- .../Base.java | 4 +- .../Derived.java | 6 +- .../Foo.java | 4 +- .../Hello.java | 6 +- .../Hello.java | 6 +- .../{ => documented}/DocumentedClass.java | 6 +- .../calculator/{ => documented}/Greetee.java | 6 +- .../calculator/{ => documented}/Old.java | 4 +- .../{ => erasure_tests}/IJSII417Derived.java | 8 +- .../IJSII417PublicBaseOfBase.java | 6 +- .../{ => erasure_tests}/IJsii487External.java | 6 +- .../IJsii487External2.java | 6 +- .../{ => erasure_tests}/IJsii496.java | 6 +- .../{ => erasure_tests}/JSII417Derived.java | 6 +- .../JSII417PublicBaseOfBase.java | 8 +- .../{ => erasure_tests}/Jsii487Derived.java | 6 +- .../{ => erasure_tests}/Jsii496Derived.java | 6 +- .../DeprecatedClass.java | 4 +- .../DeprecatedEnum.java | 4 +- .../DeprecatedStruct.java | 6 +- .../ExperimentalClass.java | 4 +- .../ExperimentalEnum.java | 4 +- .../ExperimentalStruct.java | 6 +- .../IDeprecatedInterface.java | 6 +- .../IExperimentalInterface.java | 6 +- .../IStableInterface.java | 6 +- .../StableClass.java | 4 +- .../StableEnum.java | 4 +- .../StableStruct.java | 6 +- .../python/src/jsii_calc/__init__.py | 12414 ++++++++-------- .../python/src/jsii_calc/_jsii/__init__.py | 2 +- packages/jsii/lib/assembler.ts | 49 +- packages/jsii/lib/validator.ts | 2 +- ....submodules-cannot-have-colliding-names.ts | 7 + .../neg.submodules-must-be-camel-cased.ts | 3 + 465 files changed, 18754 insertions(+), 18303 deletions(-) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/AbstractClass.cs (88%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/AbstractClassBase.cs (89%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/AbstractClassBaseProxy.cs (76%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/AbstractClassProxy.cs (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/AbstractClassReturner.cs (66%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/AllTypes.cs (91%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/AllTypesEnum.cs (88%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/AllowedMethodNames.cs (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/AmbiguousParameters.cs (67%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/AnonymousImplementationProvider.cs (67%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/AsyncVirtualMethods.cs (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/AugmentableClass.cs (91%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/BaseJsii976.cs (88%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/Bell.cs (91%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/ChildStruct982.cs (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/ChildStruct982Proxy.cs (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/ClassThatImplementsTheInternalInterface.cs (89%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/ClassThatImplementsThePrivateInterface.cs (89%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/ClassWithCollections.cs (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/ClassWithDocs.cs (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/ClassWithJavaReservedWords.cs (88%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/ClassWithMutableObjectLiteralProperty.cs (78%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/ClassWithPrivateConstructorAndAutomaticProperties.cs (67%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/ConfusingToJackson.cs (67%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/ConfusingToJacksonStruct.cs (59%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/ConfusingToJacksonStructProxy.cs (65%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/ConstructorPassesThisOut.cs (75%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/Constructors.cs (52%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/ConsumePureInterface.cs (71%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/ConsumerCanRingBell.cs (69%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/ConsumersOfThisCrazyTypeSystem.cs (72%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/DataRenderer.cs (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/DefaultedConstructorArgument.cs (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/Demonstrate982.cs (73%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/DerivedClassHasNoProperties/Base.cs (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/DerivedClassHasNoProperties/Derived.cs (80%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/DerivedStruct.cs (92%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/DerivedStructProxy.cs (91%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/DiamondInheritanceBaseLevelStruct.cs (73%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/DiamondInheritanceBaseLevelStructProxy.cs (74%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/DiamondInheritanceFirstMidLevelStruct.cs (79%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/DiamondInheritanceFirstMidLevelStructProxy.cs (79%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/DiamondInheritanceSecondMidLevelStruct.cs (79%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/DiamondInheritanceSecondMidLevelStructProxy.cs (79%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/DiamondInheritanceTopLevelStruct.cs (87%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/DiamondInheritanceTopLevelStructProxy.cs (87%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/DisappointingCollectionSource.cs (89%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/DoNotOverridePrivates.cs (93%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/DoNotRecognizeAnyAsOptional.cs (91%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/DontComplainAboutVariadicAfterOptional.cs (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/DoubleTrouble.cs (92%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/EnumDispenser.cs (66%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/EraseUndefinedHashValues.cs (78%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/EraseUndefinedHashValuesOptions.cs (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/EraseUndefinedHashValuesOptionsProxy.cs (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/ExportedBaseClass.cs (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/ExtendsInternalInterface.cs (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/ExtendsInternalInterfaceProxy.cs (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/GiveMeStructs.cs (78%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/GreetingAugmenter.cs (91%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IAnonymousImplementationProvider.cs (62%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IAnonymousImplementationProviderProxy.cs (58%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IAnonymouslyImplementMe.cs (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IAnonymouslyImplementMeProxy.cs (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IAnotherPublicInterface.cs (80%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IAnotherPublicInterfaceProxy.cs (77%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IBell.cs (82%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IBellProxy.cs (82%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IBellRinger.cs (66%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IBellRingerProxy.cs (70%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IChildStruct982.cs (78%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IConcreteBellRinger.cs (65%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IConcreteBellRingerProxy.cs (68%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IConfusingToJacksonStruct.cs (68%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IDerivedStruct.cs (91%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IDiamondInheritanceBaseLevelStruct.cs (79%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IDiamondInheritanceFirstMidLevelStruct.cs (70%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IDiamondInheritanceSecondMidLevelStruct.cs (70%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IDiamondInheritanceTopLevelStruct.cs (64%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IEraseUndefinedHashValuesOptions.cs (87%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IExtendsInternalInterface.cs (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IExtendsPrivateInterface.cs (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IExtendsPrivateInterfaceProxy.cs (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IImplictBaseOfBase.cs (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IInterfaceImplementedByAbstractClass.cs (80%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IInterfaceImplementedByAbstractClassProxy.cs (75%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IInterfaceThatShouldNotBeADataType.cs (77%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IInterfaceThatShouldNotBeADataTypeProxy.cs (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IInterfaceWithInternal.cs (78%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IInterfaceWithInternalProxy.cs (76%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IInterfaceWithMethods.cs (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IInterfaceWithMethodsProxy.cs (82%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IInterfaceWithOptionalMethodArguments.cs (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IInterfaceWithOptionalMethodArgumentsProxy.cs (79%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IInterfaceWithProperties.cs (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IInterfaceWithPropertiesExtension.cs (72%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IInterfaceWithPropertiesExtensionProxy.cs (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IInterfaceWithPropertiesProxy.cs (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/ILoadBalancedFargateServiceProps.cs (96%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IMutableObjectLiteral.cs (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IMutableObjectLiteralProxy.cs (78%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/INestedStruct.cs (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/INonInternalInterface.cs (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/INonInternalInterfaceProxy.cs (87%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/INullShouldBeTreatedAsUndefinedData.cs (87%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IObjectWithProperty.cs (87%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IObjectWithPropertyProxy.cs (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IOptionalMethod.cs (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IOptionalMethodProxy.cs (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IOptionalStruct.cs (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IParentStruct982.cs (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IPrivatelyImplemented.cs (80%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IPrivatelyImplementedProxy.cs (77%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IPublicInterface.cs (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IPublicInterface2.cs (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IPublicInterface2Proxy.cs (80%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IPublicInterfaceProxy.cs (80%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IReturnJsii976.cs (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IReturnJsii976Proxy.cs (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IReturnsNumber.cs (89%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IReturnsNumberProxy.cs (88%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IRootStruct.cs (82%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/ISecondLevelStruct.cs (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IStructA.cs (93%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IStructB.cs (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IStructParameterType.cs (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IStructReturningDelegate.cs (67%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IStructReturningDelegateProxy.cs (64%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IStructWithJavaReservedWords.cs (92%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/ISupportsNiceJavaBuilderProps.cs (89%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/ITopLevelStruct.cs (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/IUnionProperties.cs (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/ImplementInternalInterface.cs (89%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/Implementation.cs (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/ImplementsInterfaceWithInternal.cs (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/ImplementsInterfaceWithInternalSubclass.cs (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/ImplementsPrivateInterface.cs (89%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/ImplictBaseOfBase.cs (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/ImplictBaseOfBaseProxy.cs (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/InbetweenClass.cs (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/InterfaceCollections.cs (58%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/InterfaceInNamespaceIncludesClasses/Foo.cs (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{InterfaceInNamespaceOnlyInterface => Compliance/InterfaceInNamespaceIncludesClasses}/Hello.cs (61%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{InterfaceInNamespaceOnlyInterface => Compliance/InterfaceInNamespaceIncludesClasses}/HelloProxy.cs (73%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/InterfaceInNamespaceIncludesClasses/IHello.cs (75%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{InterfaceInNamespaceIncludesClasses => Compliance/InterfaceInNamespaceOnlyInterface}/Hello.cs (62%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{InterfaceInNamespaceIncludesClasses => Compliance/InterfaceInNamespaceOnlyInterface}/HelloProxy.cs (73%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/InterfaceInNamespaceOnlyInterface/IHello.cs (75%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/InterfacesMaker.cs (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/JSObjectLiteralForInterface.cs (92%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/JSObjectLiteralToNative.cs (75%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/JSObjectLiteralToNativeClass.cs (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/JavaReservedWords.cs (98%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/JsiiAgent_.cs (89%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/JsonFormatter.cs (79%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/LoadBalancedFargateServiceProps.cs (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/LoadBalancedFargateServicePropsProxy.cs (94%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/NestedStruct.cs (80%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/NestedStructProxy.cs (82%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/NodeStandardLibrary.cs (94%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/NullShouldBeTreatedAsUndefined.cs (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/NullShouldBeTreatedAsUndefinedData.cs (82%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/NullShouldBeTreatedAsUndefinedDataProxy.cs (82%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/NumberGenerator.cs (91%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/ObjectRefsInCollections.cs (94%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/ObjectWithPropertyProvider.cs (72%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/OptionalArgumentInvoker.cs (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/OptionalConstructorArgument.cs (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/OptionalStruct.cs (78%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/OptionalStructConsumer.cs (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/OptionalStructProxy.cs (80%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/OverridableProtectedMember.cs (94%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/OverrideReturnsObject.cs (80%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/ParentStruct982.cs (79%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/ParentStruct982Proxy.cs (80%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/PartiallyInitializedThisConsumer.cs (72%) create mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/PartiallyInitializedThisConsumerProxy.cs rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/Polymorphism.cs (91%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/PublicClass.cs (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/PythonReservedWords.cs (98%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/ReferenceEnumFromScopedPackage.cs (93%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/ReturnsPrivateImplementationOfInterface.cs (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/RootStruct.cs (78%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/RootStructProxy.cs (78%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/RootStructValidator.cs (75%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/RuntimeTypeChecking.cs (94%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/SecondLevelStruct.cs (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/SecondLevelStructProxy.cs (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/SingleInstanceTwoTypes.cs (75%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/SingletonInt.cs (91%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/SingletonIntEnum.cs (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/SingletonString.cs (91%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/SingletonStringEnum.cs (82%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/SomeTypeJsii976.cs (75%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/StaticContext.cs (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/Statics.cs (82%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/StringEnum.cs (87%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/StripInternal.cs (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/StructA.cs (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/StructAProxy.cs (91%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/StructB.cs (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/StructBProxy.cs (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/StructParameterType.cs (87%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/StructParameterTypeProxy.cs (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/StructPassing.cs (60%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/StructUnionConsumer.cs (72%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/StructWithJavaReservedWords.cs (88%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/StructWithJavaReservedWordsProxy.cs (88%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/SupportsNiceJavaBuilder.cs (68%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/SupportsNiceJavaBuilderProps.cs (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/SupportsNiceJavaBuilderPropsProxy.cs (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/SupportsNiceJavaBuilderWithRequiredProps.cs (80%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/SyncVirtualMethods.cs (97%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/Thrower.cs (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/TopLevelStruct.cs (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/TopLevelStructProxy.cs (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/UnionProperties.cs (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/UnionPropertiesProxy.cs (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/UseBundledDependency.cs (89%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/UseCalcBase.cs (91%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/UsesInterfaceWithProperties.cs (75%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/VariadicInvoker.cs (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/VariadicMethod.cs (87%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/VirtualMethodPlayground.cs (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/VoidCallback.cs (93%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/VoidCallbackProxy.cs (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Compliance}/WithPrivatePropertyInConstructor.cs (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Documented}/DocumentedClass.cs (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Documented}/Greetee.cs (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Documented}/GreeteeProxy.cs (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Documented}/IGreetee.cs (89%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => Documented}/Old.cs (91%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => ErasureTests}/IJSII417Derived.cs (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => ErasureTests}/IJSII417DerivedProxy.cs (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => ErasureTests}/IJSII417PublicBaseOfBase.cs (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => ErasureTests}/IJSII417PublicBaseOfBaseProxy.cs (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => ErasureTests}/IJsii487External.cs (70%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => ErasureTests}/IJsii487External2.cs (70%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => ErasureTests}/IJsii487External2Proxy.cs (68%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => ErasureTests}/IJsii487ExternalProxy.cs (68%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => ErasureTests}/IJsii496.cs (73%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => ErasureTests}/IJsii496Proxy.cs (72%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => ErasureTests}/JSII417Derived.cs (87%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => ErasureTests}/JSII417PublicBaseOfBase.cs (78%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => ErasureTests}/Jsii487Derived.cs (80%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => ErasureTests}/Jsii496Derived.cs (84%) delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PartiallyInitializedThisConsumerProxy.cs rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => StabilityAnnotations}/DeprecatedClass.cs (88%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => StabilityAnnotations}/DeprecatedEnum.cs (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => StabilityAnnotations}/DeprecatedStruct.cs (76%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => StabilityAnnotations}/DeprecatedStructProxy.cs (78%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => StabilityAnnotations}/ExperimentalClass.cs (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => StabilityAnnotations}/ExperimentalEnum.cs (82%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => StabilityAnnotations}/ExperimentalStruct.cs (74%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => StabilityAnnotations}/ExperimentalStructProxy.cs (76%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => StabilityAnnotations}/IDeprecatedInterface.cs (88%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => StabilityAnnotations}/IDeprecatedInterfaceProxy.cs (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => StabilityAnnotations}/IDeprecatedStruct.cs (82%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => StabilityAnnotations}/IExperimentalInterface.cs (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => StabilityAnnotations}/IExperimentalInterfaceProxy.cs (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => StabilityAnnotations}/IExperimentalStruct.cs (79%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => StabilityAnnotations}/IStableInterface.cs (87%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => StabilityAnnotations}/IStableInterfaceProxy.cs (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => StabilityAnnotations}/IStableStruct.cs (80%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => StabilityAnnotations}/StableClass.cs (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => StabilityAnnotations}/StableEnum.cs (82%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => StabilityAnnotations}/StableStruct.cs (75%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ => StabilityAnnotations}/StableStructProxy.cs (77%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/AbstractClass.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/AbstractClassBase.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/AbstractClassReturner.java (72%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/AllTypes.java (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/AllTypesEnum.java (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/AllowedMethodNames.java (96%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/AmbiguousParameters.java (75%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/AnonymousImplementationProvider.java (75%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/AsyncVirtualMethods.java (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/AugmentableClass.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/BaseJsii976.java (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/Bell.java (89%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/ChildStruct982.java (94%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/ClassThatImplementsTheInternalInterface.java (94%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/ClassThatImplementsThePrivateInterface.java (94%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/ClassWithCollections.java (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/ClassWithDocs.java (88%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/ClassWithJavaReservedWords.java (93%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/ClassWithMutableObjectLiteralProperty.java (78%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/ClassWithPrivateConstructorAndAutomaticProperties.java (70%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/ConfusingToJackson.java (76%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/ConfusingToJacksonStruct.java (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/ConstructorPassesThisOut.java (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/Constructors.java (58%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/ConsumePureInterface.java (80%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/ConsumerCanRingBell.java (77%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/ConsumersOfThisCrazyTypeSystem.java (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/DataRenderer.java (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/DefaultedConstructorArgument.java (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/Demonstrate982.java (74%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/DerivedStruct.java (93%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/DiamondInheritanceBaseLevelStruct.java (94%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/DiamondInheritanceFirstMidLevelStruct.java (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/DiamondInheritanceSecondMidLevelStruct.java (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/DiamondInheritanceTopLevelStruct.java (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/DisappointingCollectionSource.java (70%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/DoNotOverridePrivates.java (93%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/DoNotRecognizeAnyAsOptional.java (94%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/DontComplainAboutVariadicAfterOptional.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/DoubleTrouble.java (91%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/EnumDispenser.java (63%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/EraseUndefinedHashValues.java (71%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/EraseUndefinedHashValuesOptions.java (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/ExportedBaseClass.java (91%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/ExtendsInternalInterface.java (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/GiveMeStructs.java (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/GreetingAugmenter.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/IAnonymousImplementationProvider.java (72%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/IAnonymouslyImplementMe.java (87%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/IAnotherPublicInterface.java (87%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/IBell.java (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/IBellRinger.java (80%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/IConcreteBellRinger.java (80%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/IExtendsPrivateInterface.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/IInterfaceImplementedByAbstractClass.java (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/IInterfaceThatShouldNotBeADataType.java (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/IInterfaceWithInternal.java (82%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/IInterfaceWithMethods.java (87%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/IInterfaceWithOptionalMethodArguments.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/IInterfaceWithProperties.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/IInterfaceWithPropertiesExtension.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/IMutableObjectLiteral.java (87%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/INonInternalInterface.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/IObjectWithProperty.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/IOptionalMethod.java (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/IPrivatelyImplemented.java (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/IPublicInterface.java (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/IPublicInterface2.java (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/IReturnJsii976.java (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/IReturnsNumber.java (89%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/IStructReturningDelegate.java (75%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/ImplementInternalInterface.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/Implementation.java (88%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/ImplementsInterfaceWithInternal.java (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/ImplementsInterfaceWithInternalSubclass.java (77%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/ImplementsPrivateInterface.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/ImplictBaseOfBase.java (96%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/InbetweenClass.java (80%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/InterfaceCollections.java (59%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/InterfacesMaker.java (73%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/JSObjectLiteralForInterface.java (91%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/JSObjectLiteralToNative.java (78%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/JSObjectLiteralToNativeClass.java (93%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/JavaReservedWords.java (99%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/JsiiAgent.java (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/JsonFormatter.java (73%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/LoadBalancedFargateServiceProps.java (98%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/NestedStruct.java (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/NodeStandardLibrary.java (94%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/NullShouldBeTreatedAsUndefined.java (93%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/NullShouldBeTreatedAsUndefinedData.java (96%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/NumberGenerator.java (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/ObjectRefsInCollections.java (93%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/ObjectWithPropertyProvider.java (69%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/OptionalArgumentInvoker.java (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/OptionalConstructorArgument.java (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/OptionalStruct.java (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/OptionalStructConsumer.java (80%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/OverridableProtectedMember.java (94%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/OverrideReturnsObject.java (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/ParentStruct982.java (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/PartiallyInitializedThisConsumer.java (75%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/Polymorphism.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/PublicClass.java (88%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/PythonReservedWords.java (98%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/ReferenceEnumFromScopedPackage.java (94%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/ReturnsPrivateImplementationOfInterface.java (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/RootStruct.java (88%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/RootStructValidator.java (68%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/RuntimeTypeChecking.java (97%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/SecondLevelStruct.java (96%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/SingleInstanceTwoTypes.java (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/SingletonInt.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/SingletonIntEnum.java (77%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/SingletonString.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/SingletonStringEnum.java (77%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/SomeTypeJsii976.java (73%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/StaticContext.java (75%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/Statics.java (74%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/StringEnum.java (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/StripInternal.java (91%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/StructA.java (97%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/StructB.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/StructParameterType.java (96%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/StructPassing.java (58%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/StructUnionConsumer.java (72%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/StructWithJavaReservedWords.java (97%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/SupportsNiceJavaBuilder.java (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/SupportsNiceJavaBuilderProps.java (96%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/SupportsNiceJavaBuilderWithRequiredProps.java (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/SyncVirtualMethods.java (98%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/Thrower.java (88%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/TopLevelStruct.java (96%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/UnionProperties.java (96%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/UseBundledDependency.java (88%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/UseCalcBase.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/UsesInterfaceWithProperties.java (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/VariadicInvoker.java (88%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/VariadicMethod.java (94%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/VirtualMethodPlayground.java (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/VoidCallback.java (93%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => compliance}/WithPrivatePropertyInConstructor.java (92%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{DerivedClassHasNoProperties => compliance/derived_class_has_no_properties}/Base.java (87%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{DerivedClassHasNoProperties => compliance/derived_class_has_no_properties}/Derived.java (75%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{InterfaceInNamespaceIncludesClasses => compliance/interface_in_namespace_includes_classes}/Foo.java (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{InterfaceInNamespaceOnlyInterface => compliance/interface_in_namespace_includes_classes}/Hello.java (93%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{InterfaceInNamespaceIncludesClasses => compliance/interface_in_namespace_only_interface}/Hello.java (93%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => documented}/DocumentedClass.java (92%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => documented}/Greetee.java (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => documented}/Old.java (89%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => erasure_tests}/IJSII417Derived.java (88%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => erasure_tests}/IJSII417PublicBaseOfBase.java (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => erasure_tests}/IJsii487External.java (74%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => erasure_tests}/IJsii487External2.java (74%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => erasure_tests}/IJsii496.java (75%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => erasure_tests}/JSII417Derived.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => erasure_tests}/JSII417PublicBaseOfBase.java (79%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => erasure_tests}/Jsii487Derived.java (71%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => erasure_tests}/Jsii496Derived.java (77%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => stability_annotations}/DeprecatedClass.java (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => stability_annotations}/DeprecatedEnum.java (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => stability_annotations}/DeprecatedStruct.java (94%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => stability_annotations}/ExperimentalClass.java (94%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => stability_annotations}/ExperimentalEnum.java (77%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => stability_annotations}/ExperimentalStruct.java (94%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => stability_annotations}/IDeprecatedInterface.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => stability_annotations}/IExperimentalInterface.java (89%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => stability_annotations}/IStableInterface.java (89%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => stability_annotations}/StableClass.java (94%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => stability_annotations}/StableEnum.java (75%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{ => stability_annotations}/StableStruct.java (94%) create mode 100644 packages/jsii/test/negatives/neg.submodules-cannot-have-colliding-names.ts create mode 100644 packages/jsii/test/negatives/neg.submodules-must-be-camel-cased.ts diff --git a/packages/jsii-calc/lib/index.ts b/packages/jsii-calc/lib/index.ts index 0b507f6734..5327ea5a38 100644 --- a/packages/jsii-calc/lib/index.ts +++ b/packages/jsii-calc/lib/index.ts @@ -1,5 +1,9 @@ export * from './calculator'; -export * from './compliance'; -export * from './documented'; -export * from './erasures'; -export * from './stability'; +export * as compliance from './compliance'; +export * as documented from './documented'; + +// Uses a camelCased name, for shows +export * as erasureTests from './erasures'; + +// Uses a snake_cased name, for shows +export * as stability_annotations from './stability'; diff --git a/packages/jsii-calc/test/assembly.jsii b/packages/jsii-calc/test/assembly.jsii index da90606a3e..c6d168a688 100644 --- a/packages/jsii-calc/test/assembly.jsii +++ b/packages/jsii-calc/test/assembly.jsii @@ -159,177 +159,6 @@ } }, "types": { - "jsii-calc.AbstractClass": { - "abstract": true, - "assembly": "jsii-calc", - "base": "jsii-calc.AbstractClassBase", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.AbstractClass", - "initializer": {}, - "interfaces": [ - "jsii-calc.IInterfaceImplementedByAbstractClass" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1100 - }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1105 - }, - "name": "abstractMethod", - "parameters": [ - { - "name": "name", - "type": { - "primitive": "string" - } - } - ], - "returns": { - "type": { - "primitive": "string" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1101 - }, - "name": "nonAbstractMethod", - "returns": { - "type": { - "primitive": "number" - } - } - } - ], - "name": "AbstractClass", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1107 - }, - "name": "propFromInterface", - "overrides": "jsii-calc.IInterfaceImplementedByAbstractClass", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.AbstractClassBase": { - "abstract": true, - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.AbstractClassBase", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1096 - }, - "name": "AbstractClassBase", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1097 - }, - "name": "abstractProperty", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.AbstractClassReturner": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.AbstractClassReturner", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1122 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1123 - }, - "name": "giveMeAbstract", - "returns": { - "type": { - "fqn": "jsii-calc.AbstractClass" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1127 - }, - "name": "giveMeInterface", - "returns": { - "type": { - "fqn": "jsii-calc.IInterfaceImplementedByAbstractClass" - } - } - } - ], - "name": "AbstractClassReturner", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1131 - }, - "name": "returnAbstractFromProperty", - "type": { - "fqn": "jsii-calc.AbstractClassBase" - } - } - ] - }, "jsii-calc.AbstractSuite": { "abstract": true, "assembly": "jsii-calc", @@ -495,226 +324,279 @@ } ] }, - "jsii-calc.AllTypes": { + "jsii-calc.BinaryOperation": { + "abstract": true, "assembly": "jsii-calc", + "base": "@scope/jsii-calc-lib.Operation", "docs": { - "remarks": "The setters will validate\nthat the value set is of the expected type and throw otherwise.", "stability": "experimental", - "summary": "This class includes property for all types supported by jsii." - }, - "fqn": "jsii-calc.AllTypes", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 52 + "summary": "Represents an operation with two operands." }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 220 - }, - "name": "anyIn", - "parameters": [ - { - "name": "inp", - "type": { - "primitive": "any" - } - } - ] + "fqn": "jsii-calc.BinaryOperation", + "initializer": { + "docs": { + "stability": "experimental", + "summary": "Creates a BinaryOperation." }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 212 + "parameters": [ + { + "docs": { + "summary": "Left-hand side operand." + }, + "name": "lhs", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" + } }, - "name": "anyOut", - "returns": { + { + "docs": { + "summary": "Right-hand side operand." + }, + "name": "rhs", "type": { - "primitive": "any" + "fqn": "@scope/jsii-calc-lib.Value" } } - }, + ] + }, + "interfaces": [ + "@scope/jsii-calc-lib.IFriendly" + ], + "kind": "class", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 37 + }, + "methods": [ { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Say hello!" }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 207 + "filename": "lib/calculator.ts", + "line": 47 }, - "name": "enumMethod", - "parameters": [ - { - "name": "value", - "type": { - "fqn": "jsii-calc.StringEnum" - } - } - ], + "name": "hello", + "overrides": "@scope/jsii-calc-lib.IFriendly", "returns": { "type": { - "fqn": "jsii-calc.StringEnum" + "primitive": "string" } } } ], - "name": "AllTypes", + "name": "BinaryOperation", "properties": [ { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Left-hand side operand." }, "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 203 + "filename": "lib/calculator.ts", + "line": 43 }, - "name": "enumPropertyValue", + "name": "lhs", "type": { - "primitive": "number" + "fqn": "@scope/jsii-calc-lib.Value" } }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Right-hand side operand." }, + "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 167 + "filename": "lib/calculator.ts", + "line": 43 }, - "name": "anyArrayProperty", + "name": "rhs", "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "array" - } + "fqn": "@scope/jsii-calc-lib.Value" } + } + ] + }, + "jsii-calc.Calculator": { + "assembly": "jsii-calc", + "base": "jsii-calc.composition.CompositeOperation", + "docs": { + "example": "const calculator = new calc.Calculator();\ncalculator.add(5);\ncalculator.mul(3);\nconsole.log(calculator.expression.value);", + "remarks": "Here's how you use it:\n\n```ts\nconst calculator = new calc.Calculator();\ncalculator.add(5);\ncalculator.mul(3);\nconsole.log(calculator.expression.value);\n```\n\nI will repeat this example again, but in an @example tag.", + "stability": "experimental", + "summary": "A calculator which maintains a current value and allows adding operations." + }, + "fqn": "jsii-calc.Calculator", + "initializer": { + "docs": { + "stability": "experimental", + "summary": "Creates a Calculator object." }, + "parameters": [ + { + "docs": { + "summary": "Initialization properties." + }, + "name": "props", + "optional": true, + "type": { + "fqn": "jsii-calc.CalculatorProps" + } + } + ] + }, + "kind": "class", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 273 + }, + "methods": [ { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Adds a number to the current value." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 168 + "filename": "lib/calculator.ts", + "line": 312 }, - "name": "anyMapProperty", - "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "map" + "name": "add", + "parameters": [ + { + "name": "value", + "type": { + "primitive": "number" + } } - } + ] }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Multiplies the current value by a number." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 166 + "filename": "lib/calculator.ts", + "line": 319 }, - "name": "anyProperty", - "type": { - "primitive": "any" - } + "name": "mul", + "parameters": [ + { + "name": "value", + "type": { + "primitive": "number" + } + } + ] }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Negates the current value." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 152 + "filename": "lib/calculator.ts", + "line": 333 }, - "name": "arrayProperty", - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" - } - } + "name": "neg" }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Raises the current value by a power." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 58 + "filename": "lib/calculator.ts", + "line": 326 }, - "name": "booleanProperty", - "type": { - "primitive": "boolean" - } + "name": "pow", + "parameters": [ + { + "name": "value", + "type": { + "primitive": "number" + } + } + ] }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Returns teh value of the union property (if defined)." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 104 + "filename": "lib/calculator.ts", + "line": 352 }, - "name": "dateProperty", - "type": { - "primitive": "date" + "name": "readUnionValue", + "returns": { + "type": { + "primitive": "number" + } } - }, + } + ], + "name": "Calculator", + "properties": [ { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Returns the expression." }, + "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 187 + "filename": "lib/calculator.ts", + "line": 340 }, - "name": "enumProperty", + "name": "expression", + "overrides": "jsii-calc.composition.CompositeOperation", "type": { - "fqn": "jsii-calc.AllTypesEnum" + "fqn": "@scope/jsii-calc-lib.Value" } }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "A log of all operations." }, + "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 121 + "filename": "lib/calculator.ts", + "line": 302 }, - "name": "jsonProperty", + "name": "operationsLog", "type": { - "primitive": "json" + "collection": { + "elementtype": { + "fqn": "@scope/jsii-calc-lib.Value" + }, + "kind": "array" + } } }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "A map of per operation name of all operations performed." }, + "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 137 + "filename": "lib/calculator.ts", + "line": 297 }, - "name": "mapProperty", + "name": "operationsMap", "type": { "collection": { "elementtype": { - "fqn": "@scope/jsii-calc-lib.Number" + "collection": { + "elementtype": { + "fqn": "@scope/jsii-calc-lib.Value" + }, + "kind": "array" + } }, "kind": "map" } @@ -722,224 +604,232 @@ }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "The current value." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 89 + "filename": "lib/calculator.ts", + "line": 292 }, - "name": "numberProperty", + "name": "curr", "type": { - "primitive": "number" + "fqn": "@scope/jsii-calc-lib.Value" } }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "The maximum value allows in this calculator." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 73 + "filename": "lib/calculator.ts", + "line": 307 }, - "name": "stringProperty", + "name": "maxValue", + "optional": true, "type": { - "primitive": "string" + "primitive": "number" } }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Example of a property that accepts a union of types." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 179 + "filename": "lib/calculator.ts", + "line": 347 }, - "name": "unionArrayProperty", - "type": { - "collection": { - "elementtype": { - "union": { - "types": [ - { - "primitive": "number" - }, - { - "fqn": "@scope/jsii-calc-lib.Value" - } - ] - } - }, - "kind": "array" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 180 - }, - "name": "unionMapProperty", - "type": { - "collection": { - "elementtype": { - "union": { - "types": [ - { - "primitive": "string" - }, - { - "primitive": "number" - }, - { - "fqn": "@scope/jsii-calc-lib.Number" - } - ] - } - }, - "kind": "map" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 178 - }, - "name": "unionProperty", + "name": "unionProperty", + "optional": true, "type": { "union": { "types": [ { - "primitive": "string" - }, - { - "primitive": "number" + "fqn": "jsii-calc.Add" }, { "fqn": "jsii-calc.Multiply" }, { - "fqn": "@scope/jsii-calc-lib.Number" + "fqn": "jsii-calc.Power" } ] } } - }, + } + ] + }, + "jsii-calc.CalculatorProps": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental", + "summary": "Properties for Calculator." + }, + "fqn": "jsii-calc.CalculatorProps", + "kind": "interface", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 234 + }, + "name": "CalculatorProps", + "properties": [ { + "abstract": true, "docs": { - "stability": "experimental" + "default": "0", + "remarks": "NOTE: Any number works here, it's fine.", + "stability": "experimental", + "summary": "The initial value of the calculator." }, + "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 173 + "filename": "lib/calculator.ts", + "line": 242 }, - "name": "unknownArrayProperty", + "name": "initialValue", + "optional": true, "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "array" - } + "primitive": "number" } }, { + "abstract": true, "docs": { - "stability": "experimental" + "default": "none", + "stability": "experimental", + "summary": "The maximum value the calculator can store." }, + "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 174 + "filename": "lib/calculator.ts", + "line": 249 }, - "name": "unknownMapProperty", + "name": "maximumValue", + "optional": true, "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "map" - } + "primitive": "number" } - }, + } + ] + }, + "jsii-calc.IFriendlier": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Even friendlier classes can implement this interface." + }, + "fqn": "jsii-calc.IFriendlier", + "interfaces": [ + "@scope/jsii-calc-lib.IFriendly" + ], + "kind": "interface", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 6 + }, + "methods": [ { + "abstract": true, "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Say farewell." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 172 + "filename": "lib/calculator.ts", + "line": 16 }, - "name": "unknownProperty", - "type": { - "primitive": "any" + "name": "farewell", + "returns": { + "type": { + "primitive": "string" + } } }, { + "abstract": true, "docs": { - "stability": "experimental" + "returns": "A goodbye blessing.", + "stability": "experimental", + "summary": "Say goodbye." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 184 + "filename": "lib/calculator.ts", + "line": 11 }, - "name": "optionalEnumValue", - "optional": true, - "type": { - "fqn": "jsii-calc.StringEnum" + "name": "goodbye", + "returns": { + "type": { + "primitive": "string" + } } } - ] + ], + "name": "IFriendlier" }, - "jsii-calc.AllTypesEnum": { + "jsii-calc.IFriendlyRandomGenerator": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.AllTypesEnum", - "kind": "enum", + "fqn": "jsii-calc.IFriendlyRandomGenerator", + "interfaces": [ + "jsii-calc.IRandomNumberGenerator", + "@scope/jsii-calc-lib.IFriendly" + ], + "kind": "interface", "locationInModule": { - "filename": "lib/compliance.ts", + "filename": "lib/calculator.ts", + "line": 30 + }, + "name": "IFriendlyRandomGenerator" + }, + "jsii-calc.IRandomNumberGenerator": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Generates random numbers." + }, + "fqn": "jsii-calc.IRandomNumberGenerator", + "kind": "interface", + "locationInModule": { + "filename": "lib/calculator.ts", "line": 22 }, - "members": [ - { - "docs": { - "stability": "experimental" - }, - "name": "MY_ENUM_VALUE" - }, + "methods": [ { + "abstract": true, "docs": { - "stability": "experimental" + "returns": "A random number.", + "stability": "experimental", + "summary": "Returns another random number." }, - "name": "YOUR_ENUM_VALUE" - }, - { - "docs": { - "stability": "experimental" + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 27 }, - "name": "THIS_IS_GREAT" + "name": "next", + "returns": { + "type": { + "primitive": "number" + } + } } ], - "name": "AllTypesEnum" + "name": "IRandomNumberGenerator" }, - "jsii-calc.AllowedMethodNames": { + "jsii-calc.MethodNamedProperty": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.AllowedMethodNames", + "fqn": "jsii-calc.MethodNamedProperty", "initializer": {}, "kind": "class", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 606 + "filename": "lib/calculator.ts", + "line": 386 }, "methods": [ { @@ -947,512 +837,356 @@ "stability": "experimental" }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 615 + "filename": "lib/calculator.ts", + "line": 387 }, - "name": "getBar", - "parameters": [ - { - "name": "_p1", - "type": { - "primitive": "string" - } - }, - { - "name": "_p2", - "type": { - "primitive": "number" - } + "name": "property", + "returns": { + "type": { + "primitive": "string" } - ] - }, + } + } + ], + "name": "MethodNamedProperty", + "properties": [ { "docs": { - "stability": "experimental", - "summary": "getXxx() is not allowed (see negatives), but getXxx(a, ...) is okay." + "stability": "experimental" }, + "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 611 - }, - "name": "getFoo", - "parameters": [ - { - "name": "withParam", - "type": { - "primitive": "string" - } - } - ], - "returns": { - "type": { - "primitive": "string" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 626 - }, - "name": "setBar", - "parameters": [ - { - "name": "_x", - "type": { - "primitive": "string" - } - }, - { - "name": "_y", - "type": { - "primitive": "number" - } - }, - { - "name": "_z", - "type": { - "primitive": "boolean" - } - } - ] - }, - { - "docs": { - "stability": "experimental", - "summary": "setFoo(x) is not allowed (see negatives), but setXxx(a, b, ...) is okay." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 622 + "filename": "lib/calculator.ts", + "line": 391 }, - "name": "setFoo", - "parameters": [ - { - "name": "_x", - "type": { - "primitive": "string" - } - }, - { - "name": "_y", - "type": { - "primitive": "number" - } - } - ] + "name": "elite", + "type": { + "primitive": "number" + } } - ], - "name": "AllowedMethodNames" + ] }, - "jsii-calc.AmbiguousParameters": { + "jsii-calc.Multiply": { "assembly": "jsii-calc", + "base": "jsii-calc.BinaryOperation", "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "The \"*\" binary operation." }, - "fqn": "jsii-calc.AmbiguousParameters", + "fqn": "jsii-calc.Multiply", "initializer": { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Creates a BinaryOperation." }, "parameters": [ { - "name": "scope", + "docs": { + "summary": "Left-hand side operand." + }, + "name": "lhs", "type": { - "fqn": "jsii-calc.Bell" + "fqn": "@scope/jsii-calc-lib.Value" } }, { - "name": "props", + "docs": { + "summary": "Right-hand side operand." + }, + "name": "rhs", "type": { - "fqn": "jsii-calc.StructParameterType" + "fqn": "@scope/jsii-calc-lib.Value" } } ] }, + "interfaces": [ + "jsii-calc.IFriendlier", + "jsii-calc.IRandomNumberGenerator" + ], "kind": "class", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2425 + "filename": "lib/calculator.ts", + "line": 68 }, - "name": "AmbiguousParameters", - "properties": [ + "methods": [ { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Say farewell." }, - "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2426 + "filename": "lib/calculator.ts", + "line": 81 }, - "name": "props", - "type": { - "fqn": "jsii-calc.StructParameterType" + "name": "farewell", + "overrides": "jsii-calc.IFriendlier", + "returns": { + "type": { + "primitive": "string" + } } }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Say goodbye." }, - "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2426 + "filename": "lib/calculator.ts", + "line": 77 }, - "name": "scope", - "type": { - "fqn": "jsii-calc.Bell" + "name": "goodbye", + "overrides": "jsii-calc.IFriendlier", + "returns": { + "type": { + "primitive": "string" + } } - } - ] - }, - "jsii-calc.AnonymousImplementationProvider": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.AnonymousImplementationProvider", - "initializer": {}, - "interfaces": [ - "jsii-calc.IAnonymousImplementationProvider" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1976 - }, - "methods": [ + }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Returns another random number." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1979 + "filename": "lib/calculator.ts", + "line": 85 }, - "name": "provideAsClass", - "overrides": "jsii-calc.IAnonymousImplementationProvider", + "name": "next", + "overrides": "jsii-calc.IRandomNumberGenerator", "returns": { "type": { - "fqn": "jsii-calc.Implementation" + "primitive": "number" } } }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "String representation of the value." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1983 + "filename": "lib/calculator.ts", + "line": 73 }, - "name": "provideAsInterface", - "overrides": "jsii-calc.IAnonymousImplementationProvider", + "name": "toString", + "overrides": "@scope/jsii-calc-lib.Operation", "returns": { "type": { - "fqn": "jsii-calc.IAnonymouslyImplementMe" + "primitive": "string" } } } ], - "name": "AnonymousImplementationProvider" + "name": "Multiply", + "properties": [ + { + "docs": { + "stability": "experimental", + "summary": "The value." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 69 + }, + "name": "value", + "overrides": "@scope/jsii-calc-lib.Value", + "type": { + "primitive": "number" + } + } + ] }, - "jsii-calc.AsyncVirtualMethods": { + "jsii-calc.Negate": { "assembly": "jsii-calc", + "base": "jsii-calc.UnaryOperation", "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "The negation operation (\"-value\")." }, - "fqn": "jsii-calc.AsyncVirtualMethods", - "initializer": {}, + "fqn": "jsii-calc.Negate", + "initializer": { + "docs": { + "stability": "experimental" + }, + "parameters": [ + { + "name": "operand", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" + } + } + ] + }, + "interfaces": [ + "jsii-calc.IFriendlier" + ], "kind": "class", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 321 + "filename": "lib/calculator.ts", + "line": 102 }, "methods": [ { - "async": true, "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Say farewell." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 322 + "filename": "lib/calculator.ts", + "line": 119 }, - "name": "callMe", + "name": "farewell", + "overrides": "jsii-calc.IFriendlier", "returns": { "type": { - "primitive": "number" + "primitive": "string" } } }, { - "async": true, "docs": { "stability": "experimental", - "summary": "Just calls \"overrideMeToo\"." + "summary": "Say goodbye." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 337 + "filename": "lib/calculator.ts", + "line": 115 }, - "name": "callMe2", + "name": "goodbye", + "overrides": "jsii-calc.IFriendlier", "returns": { "type": { - "primitive": "number" + "primitive": "string" } } }, { - "async": true, "docs": { - "remarks": "This is a \"double promise\" situation, which\nmeans that callbacks are not going to be available immediate, but only\nafter an \"immediates\" cycle.", "stability": "experimental", - "summary": "This method calls the \"callMe\" async method indirectly, which will then invoke a virtual method." + "summary": "Say hello!" }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 347 - }, - "name": "callMeDoublePromise", - "returns": { - "type": { - "primitive": "number" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 355 - }, - "name": "dontOverrideMe", - "returns": { - "type": { - "primitive": "number" - } - } - }, - { - "async": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 326 + "filename": "lib/calculator.ts", + "line": 111 }, - "name": "overrideMe", - "parameters": [ - { - "name": "mult", - "type": { - "primitive": "number" - } - } - ], + "name": "hello", + "overrides": "@scope/jsii-calc-lib.IFriendly", "returns": { "type": { - "primitive": "number" + "primitive": "string" } } }, { - "async": true, "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "String representation of the value." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 330 + "filename": "lib/calculator.ts", + "line": 107 }, - "name": "overrideMeToo", + "name": "toString", + "overrides": "@scope/jsii-calc-lib.Operation", "returns": { "type": { - "primitive": "number" + "primitive": "string" } } } ], - "name": "AsyncVirtualMethods" - }, - "jsii-calc.AugmentableClass": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.AugmentableClass", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1354 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1355 - }, - "name": "methodOne" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1361 - }, - "name": "methodTwo" - } - ], - "name": "AugmentableClass" - }, - "jsii-calc.BaseJsii976": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.BaseJsii976", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2219 - }, - "name": "BaseJsii976" - }, - "jsii-calc.Bell": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.Bell", - "initializer": {}, - "interfaces": [ - "jsii-calc.IBell" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2163 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2166 - }, - "name": "ring", - "overrides": "jsii-calc.IBell" - } - ], - "name": "Bell", + "name": "Negate", "properties": [ { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "The value." }, + "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2164 + "filename": "lib/calculator.ts", + "line": 103 }, - "name": "rung", + "name": "value", + "overrides": "@scope/jsii-calc-lib.Value", "type": { - "primitive": "boolean" + "primitive": "number" } } ] }, - "jsii-calc.BinaryOperation": { - "abstract": true, + "jsii-calc.Power": { "assembly": "jsii-calc", - "base": "@scope/jsii-calc-lib.Operation", + "base": "jsii-calc.composition.CompositeOperation", "docs": { "stability": "experimental", - "summary": "Represents an operation with two operands." + "summary": "The power operation." }, - "fqn": "jsii-calc.BinaryOperation", + "fqn": "jsii-calc.Power", "initializer": { "docs": { "stability": "experimental", - "summary": "Creates a BinaryOperation." + "summary": "Creates a Power operation." }, "parameters": [ { "docs": { - "summary": "Left-hand side operand." + "summary": "The base of the power." }, - "name": "lhs", + "name": "base", "type": { "fqn": "@scope/jsii-calc-lib.Value" } }, { "docs": { - "summary": "Right-hand side operand." + "summary": "The number of times to multiply." }, - "name": "rhs", + "name": "pow", "type": { "fqn": "@scope/jsii-calc-lib.Value" } } ] }, - "interfaces": [ - "@scope/jsii-calc-lib.IFriendly" - ], "kind": "class", "locationInModule": { "filename": "lib/calculator.ts", - "line": 37 + "line": 211 }, - "methods": [ + "name": "Power", + "properties": [ { "docs": { "stability": "experimental", - "summary": "Say hello!" + "summary": "The base of the power." }, + "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 47 + "line": 218 }, - "name": "hello", - "overrides": "@scope/jsii-calc-lib.IFriendly", - "returns": { - "type": { - "primitive": "string" - } + "name": "base", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" } - } - ], - "name": "BinaryOperation", - "properties": [ + }, { "docs": { + "remarks": "Must be implemented by derived classes.", "stability": "experimental", - "summary": "Left-hand side operand." + "summary": "The expression that this operation consists of." }, "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 43 + "line": 222 }, - "name": "lhs", + "name": "expression", + "overrides": "jsii-calc.composition.CompositeOperation", "type": { "fqn": "@scope/jsii-calc-lib.Value" } @@ -1460,150 +1194,141 @@ { "docs": { "stability": "experimental", - "summary": "Right-hand side operand." + "summary": "The number of times to multiply." }, "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 43 + "line": 218 }, - "name": "rhs", + "name": "pow", "type": { "fqn": "@scope/jsii-calc-lib.Value" } } ] }, - "jsii-calc.Calculator": { + "jsii-calc.PropertyNamedProperty": { "assembly": "jsii-calc", - "base": "jsii-calc.composition.CompositeOperation", "docs": { - "example": "const calculator = new calc.Calculator();\ncalculator.add(5);\ncalculator.mul(3);\nconsole.log(calculator.expression.value);", - "remarks": "Here's how you use it:\n\n```ts\nconst calculator = new calc.Calculator();\ncalculator.add(5);\ncalculator.mul(3);\nconsole.log(calculator.expression.value);\n```\n\nI will repeat this example again, but in an @example tag.", "stability": "experimental", - "summary": "A calculator which maintains a current value and allows adding operations." - }, - "fqn": "jsii-calc.Calculator", - "initializer": { - "docs": { - "stability": "experimental", - "summary": "Creates a Calculator object." - }, - "parameters": [ - { - "docs": { - "summary": "Initialization properties." - }, - "name": "props", - "optional": true, - "type": { - "fqn": "jsii-calc.CalculatorProps" - } - } - ] + "summary": "Reproduction for https://github.com/aws/jsii/issues/1113 Where a method or property named \"property\" would result in impossible to load Python code." }, + "fqn": "jsii-calc.PropertyNamedProperty", + "initializer": {}, "kind": "class", "locationInModule": { "filename": "lib/calculator.ts", - "line": 273 + "line": 382 }, - "methods": [ + "name": "PropertyNamedProperty", + "properties": [ { "docs": { - "stability": "experimental", - "summary": "Adds a number to the current value." + "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 312 + "line": 383 }, - "name": "add", - "parameters": [ - { - "name": "value", - "type": { - "primitive": "number" - } - } - ] + "name": "property", + "type": { + "primitive": "string" + } }, { "docs": { - "stability": "experimental", - "summary": "Multiplies the current value by a number." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 319 - }, - "name": "mul", - "parameters": [ - { - "name": "value", - "type": { - "primitive": "number" - } - } - ] - }, - { - "docs": { - "stability": "experimental", - "summary": "Negates the current value." + "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 333 + "line": 384 }, - "name": "neg" - }, + "name": "yetAnoterOne", + "type": { + "primitive": "boolean" + } + } + ] + }, + "jsii-calc.SmellyStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.SmellyStruct", + "kind": "interface", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 393 + }, + "name": "SmellyStruct", + "properties": [ { + "abstract": true, "docs": { - "stability": "experimental", - "summary": "Raises the current value by a power." + "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 326 + "line": 394 }, - "name": "pow", - "parameters": [ - { - "name": "value", - "type": { - "primitive": "number" - } - } - ] + "name": "property", + "type": { + "primitive": "string" + } }, { + "abstract": true, "docs": { - "stability": "experimental", - "summary": "Returns teh value of the union property (if defined)." + "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 352 + "line": 395 }, - "name": "readUnionValue", - "returns": { - "type": { - "primitive": "number" - } + "name": "yetAnoterOne", + "type": { + "primitive": "boolean" } } - ], - "name": "Calculator", + ] + }, + "jsii-calc.Sum": { + "assembly": "jsii-calc", + "base": "jsii-calc.composition.CompositeOperation", + "docs": { + "stability": "experimental", + "summary": "An operation that sums multiple values." + }, + "fqn": "jsii-calc.Sum", + "initializer": { + "docs": { + "stability": "experimental" + } + }, + "kind": "class", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 186 + }, + "name": "Sum", "properties": [ { "docs": { + "remarks": "Must be implemented by derived classes.", "stability": "experimental", - "summary": "Returns the expression." + "summary": "The expression that this operation consists of." }, "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 340 + "line": 199 }, "name": "expression", "overrides": "jsii-calc.composition.CompositeOperation", @@ -1614,14 +1339,13 @@ { "docs": { "stability": "experimental", - "summary": "A log of all operations." + "summary": "The parts to sum." }, - "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 302 + "line": 191 }, - "name": "operationsLog", + "name": "parts", "type": { "collection": { "elementtype": { @@ -1630,208 +1354,260 @@ "kind": "array" } } + } + ] + }, + "jsii-calc.UnaryOperation": { + "abstract": true, + "assembly": "jsii-calc", + "base": "@scope/jsii-calc-lib.Operation", + "docs": { + "stability": "experimental", + "summary": "An operation on a single operand." + }, + "fqn": "jsii-calc.UnaryOperation", + "initializer": { + "docs": { + "stability": "experimental" }, + "parameters": [ + { + "name": "operand", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" + } + } + ] + }, + "kind": "class", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 93 + }, + "name": "UnaryOperation", + "properties": [ { "docs": { - "stability": "experimental", - "summary": "A map of per operation name of all operations performed." + "stability": "experimental" }, "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 297 + "line": 94 }, - "name": "operationsMap", + "name": "operand", "type": { - "collection": { - "elementtype": { - "collection": { - "elementtype": { - "fqn": "@scope/jsii-calc-lib.Value" - }, - "kind": "array" - } - }, - "kind": "map" - } + "fqn": "@scope/jsii-calc-lib.Value" } - }, + } + ] + }, + "jsii-calc.compliance.AbstractClass": { + "abstract": true, + "assembly": "jsii-calc", + "base": "jsii-calc.compliance.AbstractClassBase", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.AbstractClass", + "initializer": {}, + "interfaces": [ + "jsii-calc.compliance.IInterfaceImplementedByAbstractClass" + ], + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1100 + }, + "methods": [ { + "abstract": true, "docs": { - "stability": "experimental", - "summary": "The current value." + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 292 + "filename": "lib/compliance.ts", + "line": 1105 }, - "name": "curr", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" + "name": "abstractMethod", + "parameters": [ + { + "name": "name", + "type": { + "primitive": "string" + } + } + ], + "returns": { + "type": { + "primitive": "string" + } } }, { "docs": { - "stability": "experimental", - "summary": "The maximum value allows in this calculator." + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 307 + "filename": "lib/compliance.ts", + "line": 1101 }, - "name": "maxValue", - "optional": true, - "type": { - "primitive": "number" + "name": "nonAbstractMethod", + "returns": { + "type": { + "primitive": "number" + } } - }, + } + ], + "name": "AbstractClass", + "namespace": "compliance", + "properties": [ { "docs": { - "stability": "experimental", - "summary": "Example of a property that accepts a union of types." + "stability": "experimental" }, + "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 347 + "filename": "lib/compliance.ts", + "line": 1107 }, - "name": "unionProperty", - "optional": true, + "name": "propFromInterface", + "overrides": "jsii-calc.compliance.IInterfaceImplementedByAbstractClass", "type": { - "union": { - "types": [ - { - "fqn": "jsii-calc.Add" - }, - { - "fqn": "jsii-calc.Multiply" - }, - { - "fqn": "jsii-calc.Power" - } - ] - } + "primitive": "string" } } ] }, - "jsii-calc.CalculatorProps": { + "jsii-calc.compliance.AbstractClassBase": { + "abstract": true, "assembly": "jsii-calc", - "datatype": true, "docs": { - "stability": "experimental", - "summary": "Properties for Calculator." + "stability": "experimental" }, - "fqn": "jsii-calc.CalculatorProps", - "kind": "interface", + "fqn": "jsii-calc.compliance.AbstractClassBase", + "initializer": {}, + "kind": "class", "locationInModule": { - "filename": "lib/calculator.ts", - "line": 234 + "filename": "lib/compliance.ts", + "line": 1096 }, - "name": "CalculatorProps", + "name": "AbstractClassBase", + "namespace": "compliance", "properties": [ { "abstract": true, "docs": { - "default": "0", - "remarks": "NOTE: Any number works here, it's fine.", - "stability": "experimental", - "summary": "The initial value of the calculator." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 242 - }, - "name": "initialValue", - "optional": true, - "type": { - "primitive": "number" - } - }, - { - "abstract": true, - "docs": { - "default": "none", - "stability": "experimental", - "summary": "The maximum value the calculator can store." + "stability": "experimental" }, "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 249 + "filename": "lib/compliance.ts", + "line": 1097 }, - "name": "maximumValue", - "optional": true, + "name": "abstractProperty", "type": { - "primitive": "number" + "primitive": "string" } } ] }, - "jsii-calc.ChildStruct982": { + "jsii-calc.compliance.AbstractClassReturner": { "assembly": "jsii-calc", - "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.ChildStruct982", - "interfaces": [ - "jsii-calc.ParentStruct982" - ], - "kind": "interface", + "fqn": "jsii-calc.compliance.AbstractClassReturner", + "initializer": {}, + "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2244 + "line": 1122 }, - "name": "ChildStruct982", + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1123 + }, + "name": "giveMeAbstract", + "returns": { + "type": { + "fqn": "jsii-calc.compliance.AbstractClass" + } + } + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1127 + }, + "name": "giveMeInterface", + "returns": { + "type": { + "fqn": "jsii-calc.compliance.IInterfaceImplementedByAbstractClass" + } + } + } + ], + "name": "AbstractClassReturner", + "namespace": "compliance", "properties": [ { - "abstract": true, "docs": { "stability": "experimental" }, "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2245 + "line": 1131 }, - "name": "bar", + "name": "returnAbstractFromProperty", "type": { - "primitive": "number" + "fqn": "jsii-calc.compliance.AbstractClassBase" } } ] }, - "jsii-calc.ClassThatImplementsTheInternalInterface": { + "jsii-calc.compliance.AllTypes": { "assembly": "jsii-calc", "docs": { - "stability": "experimental" + "remarks": "The setters will validate\nthat the value set is of the expected type and throw otherwise.", + "stability": "experimental", + "summary": "This class includes property for all types supported by jsii." }, - "fqn": "jsii-calc.ClassThatImplementsTheInternalInterface", + "fqn": "jsii-calc.compliance.AllTypes", "initializer": {}, - "interfaces": [ - "jsii-calc.INonInternalInterface" - ], "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1596 + "line": 52 }, - "name": "ClassThatImplementsTheInternalInterface", - "properties": [ + "methods": [ { "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1597 + "line": 220 }, - "name": "a", - "overrides": "jsii-calc.IAnotherPublicInterface", - "type": { - "primitive": "string" - } + "name": "anyIn", + "parameters": [ + { + "name": "inp", + "type": { + "primitive": "any" + } + } + ] }, { "docs": { @@ -1839,12 +1615,13 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1598 + "line": 212 }, - "name": "b", - "overrides": "jsii-calc.INonInternalInterface", - "type": { - "primitive": "string" + "name": "anyOut", + "returns": { + "type": { + "primitive": "any" + } } }, { @@ -1853,58 +1630,57 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1599 + "line": 207 }, - "name": "c", - "overrides": "jsii-calc.INonInternalInterface", - "type": { - "primitive": "string" + "name": "enumMethod", + "parameters": [ + { + "name": "value", + "type": { + "fqn": "jsii-calc.compliance.StringEnum" + } + } + ], + "returns": { + "type": { + "fqn": "jsii-calc.compliance.StringEnum" + } } - }, + } + ], + "name": "AllTypes", + "namespace": "compliance", + "properties": [ { "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1600 + "line": 203 }, - "name": "d", + "name": "enumPropertyValue", "type": { - "primitive": "string" + "primitive": "number" } - } - ] - }, - "jsii-calc.ClassThatImplementsThePrivateInterface": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.ClassThatImplementsThePrivateInterface", - "initializer": {}, - "interfaces": [ - "jsii-calc.INonInternalInterface" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1603 - }, - "name": "ClassThatImplementsThePrivateInterface", - "properties": [ + }, { "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1604 + "line": 167 }, - "name": "a", - "overrides": "jsii-calc.IAnotherPublicInterface", + "name": "anyArrayProperty", "type": { - "primitive": "string" + "collection": { + "elementtype": { + "primitive": "any" + }, + "kind": "array" + } } }, { @@ -1913,12 +1689,16 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1605 + "line": 168 }, - "name": "b", - "overrides": "jsii-calc.INonInternalInterface", + "name": "anyMapProperty", "type": { - "primitive": "string" + "collection": { + "elementtype": { + "primitive": "any" + }, + "kind": "map" + } } }, { @@ -1927,12 +1707,11 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1606 + "line": 166 }, - "name": "c", - "overrides": "jsii-calc.INonInternalInterface", + "name": "anyProperty", "type": { - "primitive": "string" + "primitive": "any" } }, { @@ -1941,76 +1720,43 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1607 + "line": 152 }, - "name": "e", + "name": "arrayProperty", "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.ClassWithCollections": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.ClassWithCollections", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "map", - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "map" - } - } - }, - { - "name": "array", - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" - } + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "array" } } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1883 - }, - "methods": [ + }, { "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1895 + "line": 58 }, - "name": "createAList", - "returns": { - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" - } - } + "name": "booleanProperty", + "type": { + "primitive": "boolean" + } + }, + { + "docs": { + "stability": "experimental" }, - "static": true + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 104 + }, + "name": "dateProperty", + "type": { + "primitive": "date" + } }, { "docs": { @@ -2018,38 +1764,92 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1899 + "line": 187 }, - "name": "createAMap", - "returns": { - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "map" - } + "name": "enumProperty", + "type": { + "fqn": "jsii-calc.compliance.AllTypesEnum" + } + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 121 + }, + "name": "jsonProperty", + "type": { + "primitive": "json" + } + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 137 + }, + "name": "mapProperty", + "type": { + "collection": { + "elementtype": { + "fqn": "@scope/jsii-calc-lib.Number" + }, + "kind": "map" } + } + }, + { + "docs": { + "stability": "experimental" }, - "static": true - } - ], - "name": "ClassWithCollections", - "properties": [ + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 89 + }, + "name": "numberProperty", + "type": { + "primitive": "number" + } + }, { "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1888 + "line": 73 }, - "name": "staticArray", - "static": true, + "name": "stringProperty", + "type": { + "primitive": "string" + } + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 179 + }, + "name": "unionArrayProperty", "type": { "collection": { "elementtype": { - "primitive": "string" + "union": { + "types": [ + { + "primitive": "number" + }, + { + "fqn": "@scope/jsii-calc-lib.Value" + } + ] + } }, "kind": "array" } @@ -2061,14 +1861,25 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1887 + "line": 180 }, - "name": "staticMap", - "static": true, + "name": "unionMapProperty", "type": { "collection": { "elementtype": { - "primitive": "string" + "union": { + "types": [ + { + "primitive": "string" + }, + { + "primitive": "number" + }, + { + "fqn": "@scope/jsii-calc-lib.Number" + } + ] + } }, "kind": "map" } @@ -2080,13 +1891,41 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1885 + "line": 178 }, - "name": "array", + "name": "unionProperty", + "type": { + "union": { + "types": [ + { + "primitive": "string" + }, + { + "primitive": "number" + }, + { + "fqn": "jsii-calc.Multiply" + }, + { + "fqn": "@scope/jsii-calc-lib.Number" + } + ] + } + } + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 173 + }, + "name": "unknownArrayProperty", "type": { "collection": { "elementtype": { - "primitive": "string" + "primitive": "any" }, "kind": "array" } @@ -2098,151 +1937,92 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1884 + "line": 174 }, - "name": "map", + "name": "unknownMapProperty", "type": { "collection": { "elementtype": { - "primitive": "string" + "primitive": "any" }, "kind": "map" } } - } - ] - }, - "jsii-calc.ClassWithDocs": { - "assembly": "jsii-calc", - "docs": { - "custom": { - "customAttribute": "hasAValue" - }, - "example": "function anExample() {\n}", - "remarks": "The docs are great. They're a bunch of tags.", - "see": "https://aws.amazon.com/", - "stability": "stable", - "summary": "This class has docs." - }, - "fqn": "jsii-calc.ClassWithDocs", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1669 - }, - "name": "ClassWithDocs" - }, - "jsii-calc.ClassWithJavaReservedWords": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.ClassWithJavaReservedWords", - "initializer": { - "docs": { - "stability": "experimental" }, - "parameters": [ - { - "name": "int", - "type": { - "primitive": "string" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1836 - }, - "methods": [ { "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1843 + "line": 172 }, - "name": "import", - "parameters": [ - { - "name": "assert", - "type": { - "primitive": "string" - } - } - ], - "returns": { - "type": { - "primitive": "string" - } + "name": "unknownProperty", + "type": { + "primitive": "any" } - } - ], - "name": "ClassWithJavaReservedWords", - "properties": [ + }, { "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1837 + "line": 184 }, - "name": "int", + "name": "optionalEnumValue", + "optional": true, "type": { - "primitive": "string" + "fqn": "jsii-calc.compliance.StringEnum" } } ] }, - "jsii-calc.ClassWithMutableObjectLiteralProperty": { + "jsii-calc.compliance.AllTypesEnum": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.ClassWithMutableObjectLiteralProperty", - "initializer": {}, - "kind": "class", + "fqn": "jsii-calc.compliance.AllTypesEnum", + "kind": "enum", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1142 + "line": 22 }, - "name": "ClassWithMutableObjectLiteralProperty", - "properties": [ + "members": [ { "docs": { "stability": "experimental" }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1143 + "name": "MY_ENUM_VALUE" + }, + { + "docs": { + "stability": "experimental" }, - "name": "mutableObject", - "type": { - "fqn": "jsii-calc.IMutableObjectLiteral" - } + "name": "YOUR_ENUM_VALUE" + }, + { + "docs": { + "stability": "experimental" + }, + "name": "THIS_IS_GREAT" } - ] + ], + "name": "AllTypesEnum", + "namespace": "compliance" }, - "jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties": { + "jsii-calc.compliance.AllowedMethodNames": { "assembly": "jsii-calc", "docs": { - "stability": "experimental", - "summary": "Class that implements interface properties automatically, but using a private constructor." + "stability": "experimental" }, - "fqn": "jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties", - "interfaces": [ - "jsii-calc.IInterfaceWithProperties" - ], + "fqn": "jsii-calc.compliance.AllowedMethodNames", + "initializer": {}, "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1169 + "line": 606 }, "methods": [ { @@ -2251,18 +2031,37 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1170 + "line": 615 }, - "name": "create", + "name": "getBar", "parameters": [ { - "name": "readOnlyString", + "name": "_p1", "type": { "primitive": "string" } }, { - "name": "readWriteString", + "name": "_p2", + "type": { + "primitive": "number" + } + } + ] + }, + { + "docs": { + "stability": "experimental", + "summary": "getXxx() is not allowed (see negatives), but getXxx(a, ...) is okay." + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 611 + }, + "name": "getFoo", + "parameters": [ + { + "name": "withParam", "type": { "primitive": "string" } @@ -2270,13 +2069,101 @@ ], "returns": { "type": { - "fqn": "jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties" + "primitive": "string" + } + } + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 626 + }, + "name": "setBar", + "parameters": [ + { + "name": "_x", + "type": { + "primitive": "string" + } + }, + { + "name": "_y", + "type": { + "primitive": "number" + } + }, + { + "name": "_z", + "type": { + "primitive": "boolean" + } } + ] + }, + { + "docs": { + "stability": "experimental", + "summary": "setFoo(x) is not allowed (see negatives), but setXxx(a, b, ...) is okay." }, - "static": true + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 622 + }, + "name": "setFoo", + "parameters": [ + { + "name": "_x", + "type": { + "primitive": "string" + } + }, + { + "name": "_y", + "type": { + "primitive": "number" + } + } + ] } ], - "name": "ClassWithPrivateConstructorAndAutomaticProperties", + "name": "AllowedMethodNames", + "namespace": "compliance" + }, + "jsii-calc.compliance.AmbiguousParameters": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.AmbiguousParameters", + "initializer": { + "docs": { + "stability": "experimental" + }, + "parameters": [ + { + "name": "scope", + "type": { + "fqn": "jsii-calc.compliance.Bell" + } + }, + { + "name": "props", + "type": { + "fqn": "jsii-calc.compliance.StructParameterType" + } + } + ] + }, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2425 + }, + "name": "AmbiguousParameters", + "namespace": "compliance", "properties": [ { "docs": { @@ -2285,42 +2172,43 @@ "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1174 + "line": 2426 }, - "name": "readOnlyString", - "overrides": "jsii-calc.IInterfaceWithProperties", + "name": "props", "type": { - "primitive": "string" + "fqn": "jsii-calc.compliance.StructParameterType" } }, { "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1174 + "line": 2426 }, - "name": "readWriteString", - "overrides": "jsii-calc.IInterfaceWithProperties", + "name": "scope", "type": { - "primitive": "string" + "fqn": "jsii-calc.compliance.Bell" } } ] }, - "jsii-calc.ConfusingToJackson": { + "jsii-calc.compliance.AnonymousImplementationProvider": { "assembly": "jsii-calc", "docs": { - "see": "https://github.com/aws/aws-cdk/issues/4080", - "stability": "experimental", - "summary": "This tries to confuse Jackson by having overloaded property setters." + "stability": "experimental" }, - "fqn": "jsii-calc.ConfusingToJackson", + "fqn": "jsii-calc.compliance.AnonymousImplementationProvider", + "initializer": {}, + "interfaces": [ + "jsii-calc.compliance.IAnonymousImplementationProvider" + ], "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2383 + "line": 1976 }, "methods": [ { @@ -2329,15 +2217,15 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2384 + "line": 1979 }, - "name": "makeInstance", + "name": "provideAsClass", + "overrides": "jsii-calc.compliance.IAnonymousImplementationProvider", "returns": { "type": { - "fqn": "jsii-calc.ConfusingToJackson" + "fqn": "jsii-calc.compliance.Implementation" } - }, - "static": true + } }, { "docs": { @@ -2345,188 +2233,83 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2388 + "line": 1983 }, - "name": "makeStructInstance", + "name": "provideAsInterface", + "overrides": "jsii-calc.compliance.IAnonymousImplementationProvider", "returns": { "type": { - "fqn": "jsii-calc.ConfusingToJacksonStruct" - } - }, - "static": true - } - ], - "name": "ConfusingToJackson", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2392 - }, - "name": "unionProperty", - "optional": true, - "type": { - "union": { - "types": [ - { - "fqn": "@scope/jsii-calc-lib.IFriendly" - }, - { - "collection": { - "elementtype": { - "union": { - "types": [ - { - "fqn": "@scope/jsii-calc-lib.IFriendly" - }, - { - "fqn": "jsii-calc.AbstractClass" - } - ] - } - }, - "kind": "array" - } - } - ] + "fqn": "jsii-calc.compliance.IAnonymouslyImplementMe" } } } - ] + ], + "name": "AnonymousImplementationProvider", + "namespace": "compliance" }, - "jsii-calc.ConfusingToJacksonStruct": { + "jsii-calc.compliance.AsyncVirtualMethods": { "assembly": "jsii-calc", - "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.ConfusingToJacksonStruct", - "kind": "interface", + "fqn": "jsii-calc.compliance.AsyncVirtualMethods", + "initializer": {}, + "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2396 + "line": 321 }, - "name": "ConfusingToJacksonStruct", - "properties": [ + "methods": [ { - "abstract": true, + "async": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2397 + "line": 322 }, - "name": "unionProperty", - "optional": true, - "type": { - "union": { - "types": [ - { - "fqn": "@scope/jsii-calc-lib.IFriendly" - }, - { - "collection": { - "elementtype": { - "union": { - "types": [ - { - "fqn": "@scope/jsii-calc-lib.IFriendly" - }, - { - "fqn": "jsii-calc.AbstractClass" - } - ] - } - }, - "kind": "array" - } - } - ] - } - } - } - ] - }, - "jsii-calc.ConstructorPassesThisOut": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.ConstructorPassesThisOut", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "consumer", + "name": "callMe", + "returns": { "type": { - "fqn": "jsii-calc.PartiallyInitializedThisConsumer" + "primitive": "number" } } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1628 - }, - "name": "ConstructorPassesThisOut" - }, - "jsii-calc.Constructors": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.Constructors", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1393 - }, - "methods": [ + }, { + "async": true, "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Just calls \"overrideMeToo\"." }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1410 + "line": 337 }, - "name": "hiddenInterface", + "name": "callMe2", "returns": { "type": { - "fqn": "jsii-calc.IPublicInterface" + "primitive": "number" } - }, - "static": true + } }, { + "async": true, "docs": { - "stability": "experimental" + "remarks": "This is a \"double promise\" situation, which\nmeans that callbacks are not going to be available immediate, but only\nafter an \"immediates\" cycle.", + "stability": "experimental", + "summary": "This method calls the \"callMe\" async method indirectly, which will then invoke a virtual method." }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1414 + "line": 347 }, - "name": "hiddenInterfaces", + "name": "callMeDoublePromise", "returns": { "type": { - "collection": { - "elementtype": { - "fqn": "jsii-calc.IPublicInterface" - }, - "kind": "array" - } + "primitive": "number" } - }, - "static": true + } }, { "docs": { @@ -2534,68 +2317,81 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1418 + "line": 355 }, - "name": "hiddenSubInterfaces", + "name": "dontOverrideMe", "returns": { "type": { - "collection": { - "elementtype": { - "fqn": "jsii-calc.IPublicInterface" - }, - "kind": "array" - } + "primitive": "number" } - }, - "static": true + } }, { + "async": true, "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1394 + "line": 326 }, - "name": "makeClass", + "name": "overrideMe", + "parameters": [ + { + "name": "mult", + "type": { + "primitive": "number" + } + } + ], "returns": { "type": { - "fqn": "jsii-calc.PublicClass" + "primitive": "number" } - }, - "static": true + } }, { + "async": true, "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1398 + "line": 330 }, - "name": "makeInterface", + "name": "overrideMeToo", "returns": { "type": { - "fqn": "jsii-calc.IPublicInterface" + "primitive": "number" } - }, - "static": true - }, + } + } + ], + "name": "AsyncVirtualMethods", + "namespace": "compliance" + }, + "jsii-calc.compliance.AugmentableClass": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.AugmentableClass", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1354 + }, + "methods": [ { "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1402 - }, - "name": "makeInterface2", - "returns": { - "type": { - "fqn": "jsii-calc.IPublicInterface2" - } + "line": 1355 }, - "static": true + "name": "methodOne" }, { "docs": { @@ -2603,47 +2399,43 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1406 - }, - "name": "makeInterfaces", - "returns": { - "type": { - "collection": { - "elementtype": { - "fqn": "jsii-calc.IPublicInterface" - }, - "kind": "array" - } - } + "line": 1361 }, - "static": true + "name": "methodTwo" } ], - "name": "Constructors" + "name": "AugmentableClass", + "namespace": "compliance" }, - "jsii-calc.ConsumePureInterface": { + "jsii-calc.compliance.BaseJsii976": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.ConsumePureInterface", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "delegate", - "type": { - "fqn": "jsii-calc.IStructReturningDelegate" - } - } - ] + "fqn": "jsii-calc.compliance.BaseJsii976", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2219 + }, + "name": "BaseJsii976", + "namespace": "compliance" + }, + "jsii-calc.compliance.Bell": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, + "fqn": "jsii-calc.compliance.Bell", + "initializer": {}, + "interfaces": [ + "jsii-calc.compliance.IBell" + ], "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2406 + "line": 2163 }, "methods": [ { @@ -2652,251 +2444,254 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2409 + "line": 2166 }, - "name": "workItBaby", - "returns": { - "type": { - "fqn": "jsii-calc.StructB" - } + "name": "ring", + "overrides": "jsii-calc.compliance.IBell" + } + ], + "name": "Bell", + "namespace": "compliance", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2164 + }, + "name": "rung", + "type": { + "primitive": "boolean" } } + ] + }, + "jsii-calc.compliance.ChildStruct982": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.ChildStruct982", + "interfaces": [ + "jsii-calc.compliance.ParentStruct982" ], - "name": "ConsumePureInterface" + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2244 + }, + "name": "ChildStruct982", + "namespace": "compliance", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2245 + }, + "name": "bar", + "type": { + "primitive": "number" + } + } + ] }, - "jsii-calc.ConsumerCanRingBell": { + "jsii-calc.compliance.ClassThatImplementsTheInternalInterface": { "assembly": "jsii-calc", "docs": { - "remarks": "Check that if a JSII consumer implements IConsumerWithInterfaceParam, they can call\nthe method on the argument that they're passed...", - "stability": "experimental", - "summary": "Test calling back to consumers that implement interfaces." + "stability": "experimental" }, - "fqn": "jsii-calc.ConsumerCanRingBell", + "fqn": "jsii-calc.compliance.ClassThatImplementsTheInternalInterface", "initializer": {}, + "interfaces": [ + "jsii-calc.compliance.INonInternalInterface" + ], "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2048 + "line": 1596 }, - "methods": [ + "name": "ClassThatImplementsTheInternalInterface", + "namespace": "compliance", + "properties": [ { "docs": { - "remarks": "Returns whether the bell was rung.", - "stability": "experimental", - "summary": "...if the interface is implemented using an object literal." + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2054 - }, - "name": "staticImplementedByObjectLiteral", - "parameters": [ - { - "name": "ringer", - "type": { - "fqn": "jsii-calc.IBellRinger" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } + "line": 1597 }, - "static": true + "name": "a", + "overrides": "jsii-calc.compliance.IAnotherPublicInterface", + "type": { + "primitive": "string" + } }, { "docs": { - "remarks": "Return whether the bell was rung.", - "stability": "experimental", - "summary": "...if the interface is implemented using a private class." + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2080 - }, - "name": "staticImplementedByPrivateClass", - "parameters": [ - { - "name": "ringer", - "type": { - "fqn": "jsii-calc.IBellRinger" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } + "line": 1598 }, - "static": true + "name": "b", + "overrides": "jsii-calc.compliance.INonInternalInterface", + "type": { + "primitive": "string" + } }, { "docs": { - "remarks": "Return whether the bell was rung.", - "stability": "experimental", - "summary": "...if the interface is implemented using a public class." + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2069 - }, - "name": "staticImplementedByPublicClass", - "parameters": [ - { - "name": "ringer", - "type": { - "fqn": "jsii-calc.IBellRinger" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } + "line": 1599 }, - "static": true + "name": "c", + "overrides": "jsii-calc.compliance.INonInternalInterface", + "type": { + "primitive": "string" + } }, { "docs": { - "remarks": "Return whether the bell was rung.", - "stability": "experimental", - "summary": "If the parameter is a concrete class instead of an interface." + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2091 - }, - "name": "staticWhenTypedAsClass", - "parameters": [ - { - "name": "ringer", - "type": { - "fqn": "jsii-calc.IConcreteBellRinger" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } + "line": 1600 }, - "static": true - }, + "name": "d", + "type": { + "primitive": "string" + } + } + ] + }, + "jsii-calc.compliance.ClassThatImplementsThePrivateInterface": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.ClassThatImplementsThePrivateInterface", + "initializer": {}, + "interfaces": [ + "jsii-calc.compliance.INonInternalInterface" + ], + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1603 + }, + "name": "ClassThatImplementsThePrivateInterface", + "namespace": "compliance", + "properties": [ { "docs": { - "remarks": "Returns whether the bell was rung.", - "stability": "experimental", - "summary": "...if the interface is implemented using an object literal." + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2101 + "line": 1604 }, - "name": "implementedByObjectLiteral", - "parameters": [ - { - "name": "ringer", - "type": { - "fqn": "jsii-calc.IBellRinger" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } + "name": "a", + "overrides": "jsii-calc.compliance.IAnotherPublicInterface", + "type": { + "primitive": "string" } }, { "docs": { - "remarks": "Return whether the bell was rung.", - "stability": "experimental", - "summary": "...if the interface is implemented using a private class." + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2127 + "line": 1605 }, - "name": "implementedByPrivateClass", - "parameters": [ - { - "name": "ringer", - "type": { - "fqn": "jsii-calc.IBellRinger" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } + "name": "b", + "overrides": "jsii-calc.compliance.INonInternalInterface", + "type": { + "primitive": "string" } }, { "docs": { - "remarks": "Return whether the bell was rung.", - "stability": "experimental", - "summary": "...if the interface is implemented using a public class." + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2116 + "line": 1606 }, - "name": "implementedByPublicClass", - "parameters": [ - { - "name": "ringer", - "type": { - "fqn": "jsii-calc.IBellRinger" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } + "name": "c", + "overrides": "jsii-calc.compliance.INonInternalInterface", + "type": { + "primitive": "string" } }, { "docs": { - "remarks": "Return whether the bell was rung.", - "stability": "experimental", - "summary": "If the parameter is a concrete class instead of an interface." + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2138 + "line": 1607 }, - "name": "whenTypedAsClass", - "parameters": [ - { - "name": "ringer", - "type": { - "fqn": "jsii-calc.IConcreteBellRinger" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } + "name": "e", + "type": { + "primitive": "string" } } - ], - "name": "ConsumerCanRingBell" + ] }, - "jsii-calc.ConsumersOfThisCrazyTypeSystem": { + "jsii-calc.compliance.ClassWithCollections": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.ConsumersOfThisCrazyTypeSystem", - "initializer": {}, + "fqn": "jsii-calc.compliance.ClassWithCollections", + "initializer": { + "docs": { + "stability": "experimental" + }, + "parameters": [ + { + "name": "map", + "type": { + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "map" + } + } + }, + { + "name": "array", + "type": { + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "array" + } + } + } + ] + }, "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1610 + "line": 1883 }, "methods": [ { @@ -2905,22 +2700,20 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1611 + "line": 1895 }, - "name": "consumeAnotherPublicInterface", - "parameters": [ - { - "name": "obj", - "type": { - "fqn": "jsii-calc.IAnotherPublicInterface" - } - } - ], + "name": "createAList", "returns": { "type": { - "primitive": "string" + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "array" + } } - } + }, + "static": true }, { "docs": { @@ -2928,65 +2721,41 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1615 + "line": 1899 }, - "name": "consumeNonInternalInterface", - "parameters": [ - { - "name": "obj", - "type": { - "fqn": "jsii-calc.INonInternalInterface" - } - } - ], + "name": "createAMap", "returns": { "type": { - "primitive": "any" + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "map" + } } - } + }, + "static": true } ], - "name": "ConsumersOfThisCrazyTypeSystem" - }, - "jsii-calc.DataRenderer": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Verifies proper type handling through dynamic overrides." - }, - "fqn": "jsii-calc.DataRenderer", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1766 - }, - "methods": [ + "name": "ClassWithCollections", + "namespace": "compliance", + "properties": [ { "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1769 + "line": 1888 }, - "name": "render", - "parameters": [ - { - "name": "data", - "optional": true, - "type": { - "fqn": "@scope/jsii-calc-lib.MyFirstStruct" - } - } - ], - "returns": { - "type": { - "primitive": "string" + "name": "staticArray", + "static": true, + "type": { + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "array" } } }, @@ -2996,25 +2765,16 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1773 + "line": 1887 }, - "name": "renderArbitrary", - "parameters": [ - { - "name": "data", - "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "map" - } - } - } - ], - "returns": { - "type": { - "primitive": "string" + "name": "staticMap", + "static": true, + "type": { + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "map" } } }, @@ -3024,86 +2784,112 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1777 + "line": 1885 }, - "name": "renderMap", - "parameters": [ - { - "name": "map", - "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "map" - } - } + "name": "array", + "type": { + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "array" } - ], - "returns": { - "type": { - "primitive": "string" + } + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1884 + }, + "name": "map", + "type": { + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "map" } } } - ], - "name": "DataRenderer" + ] + }, + "jsii-calc.compliance.ClassWithDocs": { + "assembly": "jsii-calc", + "docs": { + "custom": { + "customAttribute": "hasAValue" + }, + "example": "function anExample() {\n}", + "remarks": "The docs are great. They're a bunch of tags.", + "see": "https://aws.amazon.com/", + "stability": "stable", + "summary": "This class has docs." + }, + "fqn": "jsii-calc.compliance.ClassWithDocs", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1669 + }, + "name": "ClassWithDocs", + "namespace": "compliance" }, - "jsii-calc.DefaultedConstructorArgument": { + "jsii-calc.compliance.ClassWithJavaReservedWords": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.DefaultedConstructorArgument", + "fqn": "jsii-calc.compliance.ClassWithJavaReservedWords", "initializer": { "docs": { "stability": "experimental" }, "parameters": [ { - "name": "arg1", - "optional": true, - "type": { - "primitive": "number" - } - }, - { - "name": "arg2", - "optional": true, + "name": "int", "type": { "primitive": "string" } - }, - { - "name": "arg3", - "optional": true, - "type": { - "primitive": "date" - } } ] }, "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 302 + "line": 1836 }, - "name": "DefaultedConstructorArgument", - "properties": [ + "methods": [ { "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 303 + "line": 1843 }, - "name": "arg1", - "type": { - "primitive": "number" + "name": "import", + "parameters": [ + { + "name": "assert", + "type": { + "primitive": "string" + } + } + ], + "returns": { + "type": { + "primitive": "string" + } } - }, + } + ], + "name": "ClassWithJavaReservedWords", + "namespace": "compliance", + "properties": [ { "docs": { "stability": "experimental" @@ -3111,846 +2897,739 @@ "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 305 + "line": 1837 }, - "name": "arg3", + "name": "int", "type": { - "primitive": "date" + "primitive": "string" } - }, + } + ] + }, + "jsii-calc.compliance.ClassWithMutableObjectLiteralProperty": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.ClassWithMutableObjectLiteralProperty", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1142 + }, + "name": "ClassWithMutableObjectLiteralProperty", + "namespace": "compliance", + "properties": [ { "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 304 + "line": 1143 }, - "name": "arg2", - "optional": true, + "name": "mutableObject", "type": { - "primitive": "string" + "fqn": "jsii-calc.compliance.IMutableObjectLiteral" } } ] }, - "jsii-calc.Demonstrate982": { + "jsii-calc.compliance.ClassWithPrivateConstructorAndAutomaticProperties": { "assembly": "jsii-calc", "docs": { - "remarks": "call #takeThis() -> An ObjectRef will be provisioned for the value (it'll be re-used!)\n2. call #takeThisToo() -> The ObjectRef from before will need to be down-cased to the ParentStruct982 type", "stability": "experimental", - "summary": "1." - }, - "fqn": "jsii-calc.Demonstrate982", - "initializer": { - "docs": { - "stability": "experimental" - } + "summary": "Class that implements interface properties automatically, but using a private constructor." }, + "fqn": "jsii-calc.compliance.ClassWithPrivateConstructorAndAutomaticProperties", + "interfaces": [ + "jsii-calc.compliance.IInterfaceWithProperties" + ], "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2251 + "line": 1169 }, "methods": [ { "docs": { - "stability": "experimental", - "summary": "It's dangerous to go alone!" + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2258 + "line": 1170 }, - "name": "takeThis", + "name": "create", + "parameters": [ + { + "name": "readOnlyString", + "type": { + "primitive": "string" + } + }, + { + "name": "readWriteString", + "type": { + "primitive": "string" + } + } + ], "returns": { "type": { - "fqn": "jsii-calc.ChildStruct982" + "fqn": "jsii-calc.compliance.ClassWithPrivateConstructorAndAutomaticProperties" } }, "static": true - }, + } + ], + "name": "ClassWithPrivateConstructorAndAutomaticProperties", + "namespace": "compliance", + "properties": [ { "docs": { - "stability": "experimental", - "summary": "It's dangerous to go alone!" + "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2263 - }, - "name": "takeThisToo", - "returns": { - "type": { - "fqn": "jsii-calc.ParentStruct982" - } + "line": 1174 }, - "static": true - } - ], - "name": "Demonstrate982" - }, - "jsii-calc.DeprecatedClass": { - "assembly": "jsii-calc", - "docs": { - "deprecated": "a pretty boring class", - "stability": "deprecated" - }, - "fqn": "jsii-calc.DeprecatedClass", - "initializer": { - "docs": { - "deprecated": "this constructor is \"just\" okay", - "stability": "deprecated" - }, - "parameters": [ - { - "name": "readonlyString", - "type": { - "primitive": "string" - } - }, - { - "name": "mutableNumber", - "optional": true, - "type": { - "primitive": "number" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 85 - }, - "methods": [ - { - "docs": { - "deprecated": "it was a bad idea", - "stability": "deprecated" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 96 - }, - "name": "method" - } - ], - "name": "DeprecatedClass", - "properties": [ - { - "docs": { - "deprecated": "this is not always \"wazoo\", be ready to be disappointed", - "stability": "deprecated" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 87 - }, - "name": "readonlyProperty", + "name": "readOnlyString", + "overrides": "jsii-calc.compliance.IInterfaceWithProperties", "type": { "primitive": "string" } }, { "docs": { - "deprecated": "shouldn't have been mutable", - "stability": "deprecated" + "stability": "experimental" }, "locationInModule": { - "filename": "lib/stability.ts", - "line": 89 + "filename": "lib/compliance.ts", + "line": 1174 }, - "name": "mutableProperty", - "optional": true, + "name": "readWriteString", + "overrides": "jsii-calc.compliance.IInterfaceWithProperties", "type": { - "primitive": "number" + "primitive": "string" } } ] }, - "jsii-calc.DeprecatedEnum": { + "jsii-calc.compliance.ConfusingToJackson": { "assembly": "jsii-calc", "docs": { - "deprecated": "your deprecated selection of bad options", - "stability": "deprecated" + "see": "https://github.com/aws/aws-cdk/issues/4080", + "stability": "experimental", + "summary": "This tries to confuse Jackson by having overloaded property setters." }, - "fqn": "jsii-calc.DeprecatedEnum", - "kind": "enum", + "fqn": "jsii-calc.compliance.ConfusingToJackson", + "kind": "class", "locationInModule": { - "filename": "lib/stability.ts", - "line": 99 + "filename": "lib/compliance.ts", + "line": 2383 }, - "members": [ + "methods": [ { "docs": { - "deprecated": "option A is not great", - "stability": "deprecated" + "stability": "experimental" }, - "name": "OPTION_A" + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2384 + }, + "name": "makeInstance", + "returns": { + "type": { + "fqn": "jsii-calc.compliance.ConfusingToJackson" + } + }, + "static": true }, { "docs": { - "deprecated": "option B is kinda bad, too", - "stability": "deprecated" + "stability": "experimental" }, - "name": "OPTION_B" + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2388 + }, + "name": "makeStructInstance", + "returns": { + "type": { + "fqn": "jsii-calc.compliance.ConfusingToJacksonStruct" + } + }, + "static": true } ], - "name": "DeprecatedEnum" - }, - "jsii-calc.DeprecatedStruct": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "deprecated": "it just wraps a string", - "stability": "deprecated" - }, - "fqn": "jsii-calc.DeprecatedStruct", - "kind": "interface", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 73 - }, - "name": "DeprecatedStruct", + "name": "ConfusingToJackson", + "namespace": "compliance", "properties": [ { - "abstract": true, "docs": { - "deprecated": "well, yeah", - "stability": "deprecated" + "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/stability.ts", - "line": 75 + "filename": "lib/compliance.ts", + "line": 2392 }, - "name": "readonlyProperty", + "name": "unionProperty", + "optional": true, "type": { - "primitive": "string" + "union": { + "types": [ + { + "fqn": "@scope/jsii-calc-lib.IFriendly" + }, + { + "collection": { + "elementtype": { + "union": { + "types": [ + { + "fqn": "jsii-calc.compliance.AbstractClass" + }, + { + "fqn": "@scope/jsii-calc-lib.IFriendly" + } + ] + } + }, + "kind": "array" + } + } + ] + } } } ] }, - "jsii-calc.DerivedClassHasNoProperties.Base": { + "jsii-calc.compliance.ConfusingToJacksonStruct": { "assembly": "jsii-calc", + "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.DerivedClassHasNoProperties.Base", - "initializer": {}, - "kind": "class", + "fqn": "jsii-calc.compliance.ConfusingToJacksonStruct", + "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 311 + "line": 2396 }, - "name": "Base", - "namespace": "DerivedClassHasNoProperties", + "name": "ConfusingToJacksonStruct", + "namespace": "compliance", "properties": [ { + "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 312 + "line": 2397 }, - "name": "prop", + "name": "unionProperty", + "optional": true, "type": { - "primitive": "string" + "union": { + "types": [ + { + "fqn": "@scope/jsii-calc-lib.IFriendly" + }, + { + "collection": { + "elementtype": { + "union": { + "types": [ + { + "fqn": "jsii-calc.compliance.AbstractClass" + }, + { + "fqn": "@scope/jsii-calc-lib.IFriendly" + } + ] + } + }, + "kind": "array" + } + } + ] + } } } ] }, - "jsii-calc.DerivedClassHasNoProperties.Derived": { + "jsii-calc.compliance.ConstructorPassesThisOut": { "assembly": "jsii-calc", - "base": "jsii-calc.DerivedClassHasNoProperties.Base", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.DerivedClassHasNoProperties.Derived", - "initializer": {}, + "fqn": "jsii-calc.compliance.ConstructorPassesThisOut", + "initializer": { + "docs": { + "stability": "experimental" + }, + "parameters": [ + { + "name": "consumer", + "type": { + "fqn": "jsii-calc.compliance.PartiallyInitializedThisConsumer" + } + } + ] + }, "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 315 + "line": 1628 }, - "name": "Derived", - "namespace": "DerivedClassHasNoProperties" + "name": "ConstructorPassesThisOut", + "namespace": "compliance" }, - "jsii-calc.DerivedStruct": { + "jsii-calc.compliance.Constructors": { "assembly": "jsii-calc", - "datatype": true, "docs": { - "stability": "experimental", - "summary": "A struct which derives from another struct." + "stability": "experimental" }, - "fqn": "jsii-calc.DerivedStruct", - "interfaces": [ - "@scope/jsii-calc-lib.MyFirstStruct" - ], - "kind": "interface", + "fqn": "jsii-calc.compliance.Constructors", + "initializer": {}, + "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 533 + "line": 1393 }, - "name": "DerivedStruct", - "properties": [ + "methods": [ { - "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 539 + "line": 1410 }, - "name": "anotherRequired", - "type": { - "primitive": "date" - } + "name": "hiddenInterface", + "returns": { + "type": { + "fqn": "jsii-calc.compliance.IPublicInterface" + } + }, + "static": true }, { - "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 538 + "line": 1414 }, - "name": "bool", - "type": { - "primitive": "boolean" - } - }, - { - "abstract": true, - "docs": { - "stability": "experimental", - "summary": "An example of a non primitive property." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 537 + "name": "hiddenInterfaces", + "returns": { + "type": { + "collection": { + "elementtype": { + "fqn": "jsii-calc.compliance.IPublicInterface" + }, + "kind": "array" + } + } }, - "name": "nonPrimitive", - "type": { - "fqn": "jsii-calc.DoubleTrouble" - } + "static": true }, { - "abstract": true, "docs": { - "stability": "experimental", - "summary": "This is optional." + "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 545 + "line": 1418 }, - "name": "anotherOptional", - "optional": true, - "type": { - "collection": { - "elementtype": { - "fqn": "@scope/jsii-calc-lib.Value" - }, - "kind": "map" + "name": "hiddenSubInterfaces", + "returns": { + "type": { + "collection": { + "elementtype": { + "fqn": "jsii-calc.compliance.IPublicInterface" + }, + "kind": "array" + } } - } + }, + "static": true }, { - "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 541 + "line": 1394 }, - "name": "optionalAny", - "optional": true, - "type": { - "primitive": "any" - } + "name": "makeClass", + "returns": { + "type": { + "fqn": "jsii-calc.compliance.PublicClass" + } + }, + "static": true }, { - "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 540 + "line": 1398 }, - "name": "optionalArray", - "optional": true, - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" + "name": "makeInterface", + "returns": { + "type": { + "fqn": "jsii-calc.compliance.IPublicInterface" } - } - } - ] - }, - "jsii-calc.DiamondInheritanceBaseLevelStruct": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.DiamondInheritanceBaseLevelStruct", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1811 - }, - "name": "DiamondInheritanceBaseLevelStruct", - "properties": [ + }, + "static": true + }, { - "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1812 + "line": 1402 }, - "name": "baseLevelProperty", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.DiamondInheritanceFirstMidLevelStruct": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.DiamondInheritanceFirstMidLevelStruct", - "interfaces": [ - "jsii-calc.DiamondInheritanceBaseLevelStruct" - ], - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1815 - }, - "name": "DiamondInheritanceFirstMidLevelStruct", - "properties": [ + "name": "makeInterface2", + "returns": { + "type": { + "fqn": "jsii-calc.compliance.IPublicInterface2" + } + }, + "static": true + }, { - "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1816 + "line": 1406 }, - "name": "firstMidLevelProperty", - "type": { - "primitive": "string" - } + "name": "makeInterfaces", + "returns": { + "type": { + "collection": { + "elementtype": { + "fqn": "jsii-calc.compliance.IPublicInterface" + }, + "kind": "array" + } + } + }, + "static": true } - ] + ], + "name": "Constructors", + "namespace": "compliance" }, - "jsii-calc.DiamondInheritanceSecondMidLevelStruct": { + "jsii-calc.compliance.ConsumePureInterface": { "assembly": "jsii-calc", - "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.DiamondInheritanceSecondMidLevelStruct", - "interfaces": [ - "jsii-calc.DiamondInheritanceBaseLevelStruct" - ], - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1819 - }, - "name": "DiamondInheritanceSecondMidLevelStruct", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1820 - }, - "name": "secondMidLevelProperty", - "type": { - "primitive": "string" + "fqn": "jsii-calc.compliance.ConsumePureInterface", + "initializer": { + "docs": { + "stability": "experimental" + }, + "parameters": [ + { + "name": "delegate", + "type": { + "fqn": "jsii-calc.compliance.IStructReturningDelegate" + } } - } - ] - }, - "jsii-calc.DiamondInheritanceTopLevelStruct": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" + ] }, - "fqn": "jsii-calc.DiamondInheritanceTopLevelStruct", - "interfaces": [ - "jsii-calc.DiamondInheritanceFirstMidLevelStruct", - "jsii-calc.DiamondInheritanceSecondMidLevelStruct" - ], - "kind": "interface", + "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1823 + "line": 2406 }, - "name": "DiamondInheritanceTopLevelStruct", - "properties": [ + "methods": [ { - "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1824 + "line": 2409 }, - "name": "topLevelProperty", - "type": { - "primitive": "string" + "name": "workItBaby", + "returns": { + "type": { + "fqn": "jsii-calc.compliance.StructB" + } } } - ] + ], + "name": "ConsumePureInterface", + "namespace": "compliance" }, - "jsii-calc.DisappointingCollectionSource": { + "jsii-calc.compliance.ConsumerCanRingBell": { "assembly": "jsii-calc", "docs": { - "remarks": "This source of collections is disappointing - it'll always give you nothing :(", + "remarks": "Check that if a JSII consumer implements IConsumerWithInterfaceParam, they can call\nthe method on the argument that they're passed...", "stability": "experimental", - "summary": "Verifies that null/undefined can be returned for optional collections." + "summary": "Test calling back to consumers that implement interfaces." }, - "fqn": "jsii-calc.DisappointingCollectionSource", + "fqn": "jsii-calc.compliance.ConsumerCanRingBell", + "initializer": {}, "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2275 + "line": 2048 }, - "name": "DisappointingCollectionSource", - "properties": [ + "methods": [ { - "const": true, "docs": { - "remarks": "(Nah, just a billion dollars mistake!)", + "remarks": "Returns whether the bell was rung.", "stability": "experimental", - "summary": "Some List of strings, maybe?" + "summary": "...if the interface is implemented using an object literal." }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2277 + "line": 2054 }, - "name": "maybeList", - "optional": true, - "static": true, - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" + "name": "staticImplementedByObjectLiteral", + "parameters": [ + { + "name": "ringer", + "type": { + "fqn": "jsii-calc.compliance.IBellRinger" + } } - } + ], + "returns": { + "type": { + "primitive": "boolean" + } + }, + "static": true }, { - "const": true, "docs": { - "remarks": "(Nah, just a billion dollars mistake!)", + "remarks": "Return whether the bell was rung.", "stability": "experimental", - "summary": "Some Map of strings to numbers, maybe?" + "summary": "...if the interface is implemented using a private class." }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2279 + "line": 2080 }, - "name": "maybeMap", - "optional": true, - "static": true, - "type": { - "collection": { - "elementtype": { - "primitive": "number" - }, - "kind": "map" + "name": "staticImplementedByPrivateClass", + "parameters": [ + { + "name": "ringer", + "type": { + "fqn": "jsii-calc.compliance.IBellRinger" + } } - } - } - ] - }, - "jsii-calc.DoNotOverridePrivates": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.DoNotOverridePrivates", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1146 - }, - "methods": [ + ], + "returns": { + "type": { + "primitive": "boolean" + } + }, + "static": true + }, { "docs": { - "stability": "experimental" + "remarks": "Return whether the bell was rung.", + "stability": "experimental", + "summary": "...if the interface is implemented using a public class." }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1161 + "line": 2069 }, - "name": "changePrivatePropertyValue", + "name": "staticImplementedByPublicClass", "parameters": [ { - "name": "newValue", + "name": "ringer", "type": { - "primitive": "string" + "fqn": "jsii-calc.compliance.IBellRinger" } } - ] + ], + "returns": { + "type": { + "primitive": "boolean" + } + }, + "static": true }, { "docs": { - "stability": "experimental" + "remarks": "Return whether the bell was rung.", + "stability": "experimental", + "summary": "If the parameter is a concrete class instead of an interface." }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1153 + "line": 2091 }, - "name": "privateMethodValue", + "name": "staticWhenTypedAsClass", + "parameters": [ + { + "name": "ringer", + "type": { + "fqn": "jsii-calc.compliance.IConcreteBellRinger" + } + } + ], "returns": { "type": { - "primitive": "string" + "primitive": "boolean" } - } + }, + "static": true }, { "docs": { - "stability": "experimental" + "remarks": "Returns whether the bell was rung.", + "stability": "experimental", + "summary": "...if the interface is implemented using an object literal." }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1157 + "line": 2101 }, - "name": "privatePropertyValue", + "name": "implementedByObjectLiteral", + "parameters": [ + { + "name": "ringer", + "type": { + "fqn": "jsii-calc.compliance.IBellRinger" + } + } + ], "returns": { "type": { - "primitive": "string" + "primitive": "boolean" } } - } - ], - "name": "DoNotOverridePrivates" - }, - "jsii-calc.DoNotRecognizeAnyAsOptional": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "jsii#284: do not recognize \"any\" as an optional argument." - }, - "fqn": "jsii-calc.DoNotRecognizeAnyAsOptional", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1195 - }, - "methods": [ + }, { "docs": { - "stability": "experimental" + "remarks": "Return whether the bell was rung.", + "stability": "experimental", + "summary": "...if the interface is implemented using a private class." }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1196 + "line": 2127 }, - "name": "method", + "name": "implementedByPrivateClass", "parameters": [ { - "name": "_requiredAny", - "type": { - "primitive": "any" - } - }, - { - "name": "_optionalAny", - "optional": true, - "type": { - "primitive": "any" - } - }, - { - "name": "_optionalString", - "optional": true, + "name": "ringer", "type": { - "primitive": "string" + "fqn": "jsii-calc.compliance.IBellRinger" } } - ] - } - ], - "name": "DoNotRecognizeAnyAsOptional" - }, - "jsii-calc.DocumentedClass": { - "assembly": "jsii-calc", - "docs": { - "remarks": "This is the meat of the TSDoc comment. It may contain\nmultiple lines and multiple paragraphs.\n\nMultiple paragraphs are separated by an empty line.", - "stability": "stable", - "summary": "Here's the first line of the TSDoc comment." - }, - "fqn": "jsii-calc.DocumentedClass", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/documented.ts", - "line": 11 - }, - "methods": [ + ], + "returns": { + "type": { + "primitive": "boolean" + } + } + }, { "docs": { - "remarks": "This will print out a friendly greeting intended for\nthe indicated person.", - "returns": "A number that everyone knows very well", - "stability": "stable", - "summary": "Greet the indicated person." + "remarks": "Return whether the bell was rung.", + "stability": "experimental", + "summary": "...if the interface is implemented using a public class." }, "locationInModule": { - "filename": "lib/documented.ts", - "line": 22 + "filename": "lib/compliance.ts", + "line": 2116 }, - "name": "greet", + "name": "implementedByPublicClass", "parameters": [ { - "docs": { - "summary": "The person to be greeted." - }, - "name": "greetee", - "optional": true, + "name": "ringer", "type": { - "fqn": "jsii-calc.Greetee" + "fqn": "jsii-calc.compliance.IBellRinger" } } ], "returns": { "type": { - "primitive": "number" + "primitive": "boolean" } } }, { "docs": { + "remarks": "Return whether the bell was rung.", "stability": "experimental", - "summary": "Say ¡Hola!" - }, - "locationInModule": { - "filename": "lib/documented.ts", - "line": 32 - }, - "name": "hola" - } - ], - "name": "DocumentedClass" - }, - "jsii-calc.DontComplainAboutVariadicAfterOptional": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.DontComplainAboutVariadicAfterOptional", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1246 - }, - "methods": [ - { - "docs": { - "stability": "experimental" + "summary": "If the parameter is a concrete class instead of an interface." }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1247 + "line": 2138 }, - "name": "optionalAndVariadic", + "name": "whenTypedAsClass", "parameters": [ { - "name": "optional", - "optional": true, + "name": "ringer", "type": { - "primitive": "string" + "fqn": "jsii-calc.compliance.IConcreteBellRinger" } - }, - { - "name": "things", - "type": { - "primitive": "string" - }, - "variadic": true } ], "returns": { "type": { - "primitive": "string" + "primitive": "boolean" } - }, - "variadic": true + } } ], - "name": "DontComplainAboutVariadicAfterOptional" + "name": "ConsumerCanRingBell", + "namespace": "compliance" }, - "jsii-calc.DoubleTrouble": { + "jsii-calc.compliance.ConsumersOfThisCrazyTypeSystem": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.DoubleTrouble", + "fqn": "jsii-calc.compliance.ConsumersOfThisCrazyTypeSystem", "initializer": {}, - "interfaces": [ - "jsii-calc.IFriendlyRandomGenerator" - ], "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 473 + "line": 1610 }, "methods": [ { "docs": { - "stability": "experimental", - "summary": "Say hello!" + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 478 + "line": 1611 }, - "name": "hello", - "overrides": "@scope/jsii-calc-lib.IFriendly", + "name": "consumeAnotherPublicInterface", + "parameters": [ + { + "name": "obj", + "type": { + "fqn": "jsii-calc.compliance.IAnotherPublicInterface" + } + } + ], "returns": { "type": { "primitive": "string" @@ -3959,34 +3638,47 @@ }, { "docs": { - "stability": "experimental", - "summary": "Returns another random number." + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 474 + "line": 1615 }, - "name": "next", - "overrides": "jsii-calc.IRandomNumberGenerator", + "name": "consumeNonInternalInterface", + "parameters": [ + { + "name": "obj", + "type": { + "fqn": "jsii-calc.compliance.INonInternalInterface" + } + } + ], "returns": { "type": { - "primitive": "number" + "primitive": "any" } } } ], - "name": "DoubleTrouble" + "name": "ConsumersOfThisCrazyTypeSystem", + "namespace": "compliance" }, - "jsii-calc.EnumDispenser": { + "jsii-calc.compliance.DataRenderer": { "assembly": "jsii-calc", "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Verifies proper type handling through dynamic overrides." + }, + "fqn": "jsii-calc.compliance.DataRenderer", + "initializer": { + "docs": { + "stability": "experimental" + } }, - "fqn": "jsii-calc.EnumDispenser", "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 34 + "line": 1766 }, "methods": [ { @@ -3995,15 +3687,23 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 40 + "line": 1769 }, - "name": "randomIntegerLikeEnum", + "name": "render", + "parameters": [ + { + "name": "data", + "optional": true, + "type": { + "fqn": "@scope/jsii-calc-lib.MyFirstStruct" + } + } + ], "returns": { "type": { - "fqn": "jsii-calc.AllTypesEnum" + "primitive": "string" } - }, - "static": true + } }, { "docs": { @@ -4011,347 +3711,268 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 35 - }, - "name": "randomStringLikeEnum", - "returns": { - "type": { - "fqn": "jsii-calc.StringEnum" - } - }, - "static": true - } - ], - "name": "EnumDispenser" - }, - "jsii-calc.EraseUndefinedHashValues": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.EraseUndefinedHashValues", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1449 - }, - "methods": [ - { - "docs": { - "remarks": "Used to check that undefined/null hash values\nare being erased when sending values from native code to JS.", - "stability": "experimental", - "summary": "Returns `true` if `key` is defined in `opts`." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1454 + "line": 1773 }, - "name": "doesKeyExist", + "name": "renderArbitrary", "parameters": [ { - "name": "opts", - "type": { - "fqn": "jsii-calc.EraseUndefinedHashValuesOptions" - } - }, - { - "name": "key", + "name": "data", "type": { - "primitive": "string" + "collection": { + "elementtype": { + "primitive": "any" + }, + "kind": "map" + } } } ], "returns": { "type": { - "primitive": "boolean" + "primitive": "string" } - }, - "static": true + } }, { "docs": { - "stability": "experimental", - "summary": "We expect \"prop1\" to be erased." + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1471 + "line": 1777 }, - "name": "prop1IsNull", - "returns": { - "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "map" + "name": "renderMap", + "parameters": [ + { + "name": "map", + "type": { + "collection": { + "elementtype": { + "primitive": "any" + }, + "kind": "map" + } } } - }, - "static": true - }, - { - "docs": { - "stability": "experimental", - "summary": "We expect \"prop2\" to be erased." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1461 - }, - "name": "prop2IsUndefined", + ], "returns": { "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "map" - } + "primitive": "string" } - }, - "static": true - } - ], - "name": "EraseUndefinedHashValues" - }, - "jsii-calc.EraseUndefinedHashValuesOptions": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.EraseUndefinedHashValuesOptions", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1444 - }, - "name": "EraseUndefinedHashValuesOptions", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1445 - }, - "name": "option1", - "optional": true, - "type": { - "primitive": "string" - } - }, - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1446 - }, - "name": "option2", - "optional": true, - "type": { - "primitive": "string" } } - ] + ], + "name": "DataRenderer", + "namespace": "compliance" }, - "jsii-calc.ExperimentalClass": { + "jsii-calc.compliance.DefaultedConstructorArgument": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.ExperimentalClass", + "fqn": "jsii-calc.compliance.DefaultedConstructorArgument", "initializer": { "docs": { "stability": "experimental" }, "parameters": [ { - "name": "readonlyString", + "name": "arg1", + "optional": true, + "type": { + "primitive": "number" + } + }, + { + "name": "arg2", + "optional": true, "type": { "primitive": "string" } }, { - "name": "mutableNumber", + "name": "arg3", "optional": true, "type": { - "primitive": "number" + "primitive": "date" } } ] }, "kind": "class", "locationInModule": { - "filename": "lib/stability.ts", - "line": 16 + "filename": "lib/compliance.ts", + "line": 302 }, - "methods": [ + "name": "DefaultedConstructorArgument", + "namespace": "compliance", + "properties": [ { "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { - "filename": "lib/stability.ts", - "line": 28 + "filename": "lib/compliance.ts", + "line": 303 }, - "name": "method" - } - ], - "name": "ExperimentalClass", - "properties": [ + "name": "arg1", + "type": { + "primitive": "number" + } + }, { "docs": { "stability": "experimental" }, "immutable": true, "locationInModule": { - "filename": "lib/stability.ts", - "line": 18 + "filename": "lib/compliance.ts", + "line": 305 }, - "name": "readonlyProperty", + "name": "arg3", "type": { - "primitive": "string" + "primitive": "date" } }, { "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { - "filename": "lib/stability.ts", - "line": 20 + "filename": "lib/compliance.ts", + "line": 304 }, - "name": "mutableProperty", + "name": "arg2", "optional": true, "type": { - "primitive": "number" + "primitive": "string" } } ] }, - "jsii-calc.ExperimentalEnum": { + "jsii-calc.compliance.Demonstrate982": { "assembly": "jsii-calc", "docs": { - "stability": "experimental" + "remarks": "call #takeThis() -> An ObjectRef will be provisioned for the value (it'll be re-used!)\n2. call #takeThisToo() -> The ObjectRef from before will need to be down-cased to the ParentStruct982 type", + "stability": "experimental", + "summary": "1." }, - "fqn": "jsii-calc.ExperimentalEnum", - "kind": "enum", + "fqn": "jsii-calc.compliance.Demonstrate982", + "initializer": { + "docs": { + "stability": "experimental" + } + }, + "kind": "class", "locationInModule": { - "filename": "lib/stability.ts", - "line": 31 + "filename": "lib/compliance.ts", + "line": 2251 }, - "members": [ + "methods": [ { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "It's dangerous to go alone!" }, - "name": "OPTION_A" + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2258 + }, + "name": "takeThis", + "returns": { + "type": { + "fqn": "jsii-calc.compliance.ChildStruct982" + } + }, + "static": true }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "It's dangerous to go alone!" }, - "name": "OPTION_B" + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2263 + }, + "name": "takeThisToo", + "returns": { + "type": { + "fqn": "jsii-calc.compliance.ParentStruct982" + } + }, + "static": true } ], - "name": "ExperimentalEnum" + "name": "Demonstrate982", + "namespace": "compliance" }, - "jsii-calc.ExperimentalStruct": { + "jsii-calc.compliance.DerivedClassHasNoProperties.Base": { "assembly": "jsii-calc", - "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.ExperimentalStruct", - "kind": "interface", + "fqn": "jsii-calc.compliance.DerivedClassHasNoProperties.Base", + "initializer": {}, + "kind": "class", "locationInModule": { - "filename": "lib/stability.ts", - "line": 4 + "filename": "lib/compliance.ts", + "line": 311 }, - "name": "ExperimentalStruct", + "name": "Base", + "namespace": "compliance.DerivedClassHasNoProperties", "properties": [ { - "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/stability.ts", - "line": 6 + "filename": "lib/compliance.ts", + "line": 312 }, - "name": "readonlyProperty", + "name": "prop", "type": { "primitive": "string" } } ] }, - "jsii-calc.ExportedBaseClass": { + "jsii-calc.compliance.DerivedClassHasNoProperties.Derived": { "assembly": "jsii-calc", + "base": "jsii-calc.compliance.DerivedClassHasNoProperties.Base", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.ExportedBaseClass", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "success", - "type": { - "primitive": "boolean" - } - } - ] - }, + "fqn": "jsii-calc.compliance.DerivedClassHasNoProperties.Derived", + "initializer": {}, "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1331 + "line": 315 }, - "name": "ExportedBaseClass", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1332 - }, - "name": "success", - "type": { - "primitive": "boolean" - } - } - ] + "name": "Derived", + "namespace": "compliance.DerivedClassHasNoProperties" }, - "jsii-calc.ExtendsInternalInterface": { + "jsii-calc.compliance.DerivedStruct": { "assembly": "jsii-calc", "datatype": true, "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "A struct which derives from another struct." }, - "fqn": "jsii-calc.ExtendsInternalInterface", + "fqn": "jsii-calc.compliance.DerivedStruct", + "interfaces": [ + "@scope/jsii-calc-lib.MyFirstStruct" + ], "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1552 + "line": 533 }, - "name": "ExtendsInternalInterface", + "name": "DerivedStruct", + "namespace": "compliance", "properties": [ { "abstract": true, @@ -4361,11 +3982,11 @@ "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1553 + "line": 539 }, - "name": "boom", + "name": "anotherRequired", "type": { - "primitive": "boolean" + "primitive": "date" } }, { @@ -4376,636 +3997,667 @@ "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1501 + "line": 538 }, - "name": "prop", + "name": "bool", "type": { - "primitive": "string" + "primitive": "boolean" } - } - ] - }, - "jsii-calc.GiveMeStructs": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.GiveMeStructs", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 548 - }, - "methods": [ + }, { + "abstract": true, "docs": { "stability": "experimental", - "summary": "Accepts a struct of type DerivedStruct and returns a struct of type FirstStruct." + "summary": "An example of a non primitive property." }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 566 + "line": 537 }, - "name": "derivedToFirst", - "parameters": [ - { - "name": "derived", - "type": { - "fqn": "jsii-calc.DerivedStruct" - } - } - ], - "returns": { - "type": { - "fqn": "@scope/jsii-calc-lib.MyFirstStruct" - } + "name": "nonPrimitive", + "type": { + "fqn": "jsii-calc.compliance.DoubleTrouble" } }, { + "abstract": true, "docs": { "stability": "experimental", - "summary": "Returns the boolean from a DerivedStruct struct." + "summary": "This is optional." }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 559 + "line": 545 }, - "name": "readDerivedNonPrimitive", - "parameters": [ - { - "name": "derived", - "type": { - "fqn": "jsii-calc.DerivedStruct" - } - } - ], - "returns": { - "type": { - "fqn": "jsii-calc.DoubleTrouble" + "name": "anotherOptional", + "optional": true, + "type": { + "collection": { + "elementtype": { + "fqn": "@scope/jsii-calc-lib.Value" + }, + "kind": "map" } } }, { + "abstract": true, "docs": { - "stability": "experimental", - "summary": "Returns the \"anumber\" from a MyFirstStruct struct;" + "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 552 + "line": 541 }, - "name": "readFirstNumber", - "parameters": [ - { - "name": "first", - "type": { - "fqn": "@scope/jsii-calc-lib.MyFirstStruct" - } - } - ], - "returns": { - "type": { - "primitive": "number" - } + "name": "optionalAny", + "optional": true, + "type": { + "primitive": "any" } - } - ], - "name": "GiveMeStructs", - "properties": [ + }, { + "abstract": true, "docs": { "stability": "experimental" }, "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 570 + "line": 540 }, - "name": "structLiteral", + "name": "optionalArray", + "optional": true, "type": { - "fqn": "@scope/jsii-calc-lib.StructWithOnlyOptionals" + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "array" + } } } ] }, - "jsii-calc.Greetee": { + "jsii-calc.compliance.DiamondInheritanceBaseLevelStruct": { "assembly": "jsii-calc", "datatype": true, "docs": { - "stability": "experimental", - "summary": "These are some arguments you can pass to a method." + "stability": "experimental" }, - "fqn": "jsii-calc.Greetee", + "fqn": "jsii-calc.compliance.DiamondInheritanceBaseLevelStruct", "kind": "interface", "locationInModule": { - "filename": "lib/documented.ts", - "line": 40 + "filename": "lib/compliance.ts", + "line": 1811 }, - "name": "Greetee", + "name": "DiamondInheritanceBaseLevelStruct", + "namespace": "compliance", "properties": [ { "abstract": true, "docs": { - "default": "world", - "stability": "experimental", - "summary": "The name of the greetee." + "stability": "experimental" }, "immutable": true, "locationInModule": { - "filename": "lib/documented.ts", - "line": 46 + "filename": "lib/compliance.ts", + "line": 1812 }, - "name": "name", - "optional": true, + "name": "baseLevelProperty", "type": { "primitive": "string" } } ] }, - "jsii-calc.GreetingAugmenter": { + "jsii-calc.compliance.DiamondInheritanceFirstMidLevelStruct": { "assembly": "jsii-calc", + "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.GreetingAugmenter", - "initializer": {}, - "kind": "class", + "fqn": "jsii-calc.compliance.DiamondInheritanceFirstMidLevelStruct", + "interfaces": [ + "jsii-calc.compliance.DiamondInheritanceBaseLevelStruct" + ], + "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 524 + "line": 1815 }, - "methods": [ + "name": "DiamondInheritanceFirstMidLevelStruct", + "namespace": "compliance", + "properties": [ { + "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 525 + "line": 1816 }, - "name": "betterGreeting", - "parameters": [ - { - "name": "friendly", - "type": { - "fqn": "@scope/jsii-calc-lib.IFriendly" - } - } - ], - "returns": { - "type": { - "primitive": "string" - } + "name": "firstMidLevelProperty", + "type": { + "primitive": "string" } } - ], - "name": "GreetingAugmenter" + ] }, - "jsii-calc.IAnonymousImplementationProvider": { + "jsii-calc.compliance.DiamondInheritanceSecondMidLevelStruct": { "assembly": "jsii-calc", + "datatype": true, "docs": { - "stability": "experimental", - "summary": "We can return an anonymous interface implementation from an override without losing the interface declarations." + "stability": "experimental" }, - "fqn": "jsii-calc.IAnonymousImplementationProvider", + "fqn": "jsii-calc.compliance.DiamondInheritanceSecondMidLevelStruct", + "interfaces": [ + "jsii-calc.compliance.DiamondInheritanceBaseLevelStruct" + ], "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1972 + "line": 1819 }, - "methods": [ + "name": "DiamondInheritanceSecondMidLevelStruct", + "namespace": "compliance", + "properties": [ { "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1974 + "line": 1820 }, - "name": "provideAsClass", - "returns": { - "type": { - "fqn": "jsii-calc.Implementation" - } + "name": "secondMidLevelProperty", + "type": { + "primitive": "string" } - }, + } + ] + }, + "jsii-calc.compliance.DiamondInheritanceTopLevelStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.DiamondInheritanceTopLevelStruct", + "interfaces": [ + "jsii-calc.compliance.DiamondInheritanceFirstMidLevelStruct", + "jsii-calc.compliance.DiamondInheritanceSecondMidLevelStruct" + ], + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1823 + }, + "name": "DiamondInheritanceTopLevelStruct", + "namespace": "compliance", + "properties": [ { "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1973 + "line": 1824 }, - "name": "provideAsInterface", - "returns": { - "type": { - "fqn": "jsii-calc.IAnonymouslyImplementMe" - } + "name": "topLevelProperty", + "type": { + "primitive": "string" } } - ], - "name": "IAnonymousImplementationProvider" + ] }, - "jsii-calc.IAnonymouslyImplementMe": { + "jsii-calc.compliance.DisappointingCollectionSource": { "assembly": "jsii-calc", "docs": { - "stability": "experimental" + "remarks": "This source of collections is disappointing - it'll always give you nothing :(", + "stability": "experimental", + "summary": "Verifies that null/undefined can be returned for optional collections." }, - "fqn": "jsii-calc.IAnonymouslyImplementMe", - "kind": "interface", + "fqn": "jsii-calc.compliance.DisappointingCollectionSource", + "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1990 + "line": 2275 }, - "methods": [ + "name": "DisappointingCollectionSource", + "namespace": "compliance", + "properties": [ { - "abstract": true, + "const": true, "docs": { - "stability": "experimental" + "remarks": "(Nah, just a billion dollars mistake!)", + "stability": "experimental", + "summary": "Some List of strings, maybe?" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1992 + "line": 2277 }, - "name": "verb", - "returns": { - "type": { - "primitive": "string" + "name": "maybeList", + "optional": true, + "static": true, + "type": { + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "array" } } - } - ], - "name": "IAnonymouslyImplementMe", - "properties": [ + }, { - "abstract": true, + "const": true, "docs": { - "stability": "experimental" + "remarks": "(Nah, just a billion dollars mistake!)", + "stability": "experimental", + "summary": "Some Map of strings to numbers, maybe?" }, "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1991 + "line": 2279 }, - "name": "value", + "name": "maybeMap", + "optional": true, + "static": true, "type": { - "primitive": "number" + "collection": { + "elementtype": { + "primitive": "number" + }, + "kind": "map" + } } } ] }, - "jsii-calc.IAnotherPublicInterface": { + "jsii-calc.compliance.DoNotOverridePrivates": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.IAnotherPublicInterface", - "kind": "interface", + "fqn": "jsii-calc.compliance.DoNotOverridePrivates", + "initializer": {}, + "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1573 + "line": 1146 }, - "name": "IAnotherPublicInterface", - "properties": [ + "methods": [ { - "abstract": true, "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1574 + "line": 1161 }, - "name": "a", - "type": { - "primitive": "string" + "name": "changePrivatePropertyValue", + "parameters": [ + { + "name": "newValue", + "type": { + "primitive": "string" + } + } + ] + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1153 + }, + "name": "privateMethodValue", + "returns": { + "type": { + "primitive": "string" + } } - } - ] - }, - "jsii-calc.IBell": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.IBell", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2159 - }, - "methods": [ + }, { - "abstract": true, "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2160 + "line": 1157 }, - "name": "ring" + "name": "privatePropertyValue", + "returns": { + "type": { + "primitive": "string" + } + } } ], - "name": "IBell" + "name": "DoNotOverridePrivates", + "namespace": "compliance" }, - "jsii-calc.IBellRinger": { + "jsii-calc.compliance.DoNotRecognizeAnyAsOptional": { "assembly": "jsii-calc", "docs": { "stability": "experimental", - "summary": "Takes the object parameter as an interface." + "summary": "jsii#284: do not recognize \"any\" as an optional argument." }, - "fqn": "jsii-calc.IBellRinger", - "kind": "interface", + "fqn": "jsii-calc.compliance.DoNotRecognizeAnyAsOptional", + "initializer": {}, + "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2148 + "line": 1195 }, "methods": [ { - "abstract": true, "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2149 + "line": 1196 }, - "name": "yourTurn", + "name": "method", "parameters": [ { - "name": "bell", + "name": "_requiredAny", + "type": { + "primitive": "any" + } + }, + { + "name": "_optionalAny", + "optional": true, + "type": { + "primitive": "any" + } + }, + { + "name": "_optionalString", + "optional": true, "type": { - "fqn": "jsii-calc.IBell" + "primitive": "string" } } ] } ], - "name": "IBellRinger" + "name": "DoNotRecognizeAnyAsOptional", + "namespace": "compliance" }, - "jsii-calc.IConcreteBellRinger": { + "jsii-calc.compliance.DontComplainAboutVariadicAfterOptional": { "assembly": "jsii-calc", "docs": { - "stability": "experimental", - "summary": "Takes the object parameter as a calss." + "stability": "experimental" }, - "fqn": "jsii-calc.IConcreteBellRinger", - "kind": "interface", + "fqn": "jsii-calc.compliance.DontComplainAboutVariadicAfterOptional", + "initializer": {}, + "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2155 + "line": 1246 }, "methods": [ { - "abstract": true, "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2156 + "line": 1247 }, - "name": "yourTurn", + "name": "optionalAndVariadic", "parameters": [ { - "name": "bell", + "name": "optional", + "optional": true, "type": { - "fqn": "jsii-calc.Bell" + "primitive": "string" } + }, + { + "name": "things", + "type": { + "primitive": "string" + }, + "variadic": true } - ] + ], + "returns": { + "type": { + "primitive": "string" + } + }, + "variadic": true } ], - "name": "IConcreteBellRinger" + "name": "DontComplainAboutVariadicAfterOptional", + "namespace": "compliance" }, - "jsii-calc.IDeprecatedInterface": { + "jsii-calc.compliance.DoubleTrouble": { "assembly": "jsii-calc", "docs": { - "deprecated": "useless interface", - "stability": "deprecated" + "stability": "experimental" }, - "fqn": "jsii-calc.IDeprecatedInterface", - "kind": "interface", + "fqn": "jsii-calc.compliance.DoubleTrouble", + "initializer": {}, + "interfaces": [ + "jsii-calc.IFriendlyRandomGenerator" + ], + "kind": "class", "locationInModule": { - "filename": "lib/stability.ts", - "line": 78 + "filename": "lib/compliance.ts", + "line": 473 }, "methods": [ { - "abstract": true, "docs": { - "deprecated": "services no purpose", - "stability": "deprecated" + "stability": "experimental", + "summary": "Say hello!" }, "locationInModule": { - "filename": "lib/stability.ts", - "line": 82 + "filename": "lib/compliance.ts", + "line": 478 }, - "name": "method" - } - ], - "name": "IDeprecatedInterface", - "properties": [ + "name": "hello", + "overrides": "@scope/jsii-calc-lib.IFriendly", + "returns": { + "type": { + "primitive": "string" + } + } + }, { - "abstract": true, "docs": { - "deprecated": "could be better", - "stability": "deprecated" + "stability": "experimental", + "summary": "Returns another random number." }, "locationInModule": { - "filename": "lib/stability.ts", - "line": 80 + "filename": "lib/compliance.ts", + "line": 474 }, - "name": "mutableProperty", - "optional": true, - "type": { - "primitive": "number" + "name": "next", + "overrides": "jsii-calc.IRandomNumberGenerator", + "returns": { + "type": { + "primitive": "number" + } } } - ] + ], + "name": "DoubleTrouble", + "namespace": "compliance" }, - "jsii-calc.IExperimentalInterface": { + "jsii-calc.compliance.EnumDispenser": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.IExperimentalInterface", - "kind": "interface", + "fqn": "jsii-calc.compliance.EnumDispenser", + "kind": "class", "locationInModule": { - "filename": "lib/stability.ts", - "line": 9 + "filename": "lib/compliance.ts", + "line": 34 }, "methods": [ { - "abstract": true, "docs": { "stability": "experimental" }, "locationInModule": { - "filename": "lib/stability.ts", - "line": 13 + "filename": "lib/compliance.ts", + "line": 40 }, - "name": "method" - } - ], - "name": "IExperimentalInterface", - "properties": [ + "name": "randomIntegerLikeEnum", + "returns": { + "type": { + "fqn": "jsii-calc.compliance.AllTypesEnum" + } + }, + "static": true + }, { - "abstract": true, "docs": { "stability": "experimental" }, "locationInModule": { - "filename": "lib/stability.ts", - "line": 11 + "filename": "lib/compliance.ts", + "line": 35 }, - "name": "mutableProperty", - "optional": true, - "type": { - "primitive": "number" - } + "name": "randomStringLikeEnum", + "returns": { + "type": { + "fqn": "jsii-calc.compliance.StringEnum" + } + }, + "static": true } - ] + ], + "name": "EnumDispenser", + "namespace": "compliance" }, - "jsii-calc.IExtendsPrivateInterface": { + "jsii-calc.compliance.EraseUndefinedHashValues": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.IExtendsPrivateInterface", - "kind": "interface", + "fqn": "jsii-calc.compliance.EraseUndefinedHashValues", + "initializer": {}, + "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1564 + "line": 1449 }, - "name": "IExtendsPrivateInterface", - "properties": [ + "methods": [ { - "abstract": true, "docs": { - "stability": "experimental" + "remarks": "Used to check that undefined/null hash values\nare being erased when sending values from native code to JS.", + "stability": "experimental", + "summary": "Returns `true` if `key` is defined in `opts`." }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1565 + "line": 1454 }, - "name": "moreThings", - "type": { - "collection": { - "elementtype": { + "name": "doesKeyExist", + "parameters": [ + { + "name": "opts", + "type": { + "fqn": "jsii-calc.compliance.EraseUndefinedHashValuesOptions" + } + }, + { + "name": "key", + "type": { "primitive": "string" - }, - "kind": "array" + } + } + ], + "returns": { + "type": { + "primitive": "boolean" } - } - }, - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1549 }, - "name": "private", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.IFriendlier": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Even friendlier classes can implement this interface." - }, - "fqn": "jsii-calc.IFriendlier", - "interfaces": [ - "@scope/jsii-calc-lib.IFriendly" - ], - "kind": "interface", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 6 - }, - "methods": [ + "static": true + }, { - "abstract": true, "docs": { "stability": "experimental", - "summary": "Say farewell." + "summary": "We expect \"prop1\" to be erased." }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 16 + "filename": "lib/compliance.ts", + "line": 1471 }, - "name": "farewell", + "name": "prop1IsNull", "returns": { "type": { - "primitive": "string" + "collection": { + "elementtype": { + "primitive": "any" + }, + "kind": "map" + } } - } + }, + "static": true }, { - "abstract": true, "docs": { - "returns": "A goodbye blessing.", "stability": "experimental", - "summary": "Say goodbye." + "summary": "We expect \"prop2\" to be erased." }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 11 + "filename": "lib/compliance.ts", + "line": 1461 }, - "name": "goodbye", + "name": "prop2IsUndefined", "returns": { "type": { - "primitive": "string" + "collection": { + "elementtype": { + "primitive": "any" + }, + "kind": "map" + } } - } + }, + "static": true } ], - "name": "IFriendlier" + "name": "EraseUndefinedHashValues", + "namespace": "compliance" }, - "jsii-calc.IFriendlyRandomGenerator": { + "jsii-calc.compliance.EraseUndefinedHashValuesOptions": { "assembly": "jsii-calc", + "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.IFriendlyRandomGenerator", - "interfaces": [ - "jsii-calc.IRandomNumberGenerator", - "@scope/jsii-calc-lib.IFriendly" - ], - "kind": "interface", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 30 - }, - "name": "IFriendlyRandomGenerator" - }, - "jsii-calc.IInterfaceImplementedByAbstractClass": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "awslabs/jsii#220 Abstract return type." - }, - "fqn": "jsii-calc.IInterfaceImplementedByAbstractClass", + "fqn": "jsii-calc.compliance.EraseUndefinedHashValuesOptions", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1092 + "line": 1444 }, - "name": "IInterfaceImplementedByAbstractClass", + "name": "EraseUndefinedHashValuesOptions", + "namespace": "compliance", "properties": [ { "abstract": true, @@ -5015,32 +4667,14 @@ "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1093 + "line": 1445 }, - "name": "propFromInterface", + "name": "option1", + "optional": true, "type": { "primitive": "string" } - } - ] - }, - "jsii-calc.IInterfaceThatShouldNotBeADataType": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype." - }, - "fqn": "jsii-calc.IInterfaceThatShouldNotBeADataType", - "interfaces": [ - "jsii-calc.IInterfaceWithMethods" - ], - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1188 - }, - "name": "IInterfaceThatShouldNotBeADataType", - "properties": [ + }, { "abstract": true, "docs": { @@ -5049,67 +4683,89 @@ "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1189 + "line": 1446 }, - "name": "otherValue", + "name": "option2", + "optional": true, "type": { "primitive": "string" } } ] }, - "jsii-calc.IInterfaceWithInternal": { + "jsii-calc.compliance.ExportedBaseClass": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.IInterfaceWithInternal", - "kind": "interface", + "fqn": "jsii-calc.compliance.ExportedBaseClass", + "initializer": { + "docs": { + "stability": "experimental" + }, + "parameters": [ + { + "name": "success", + "type": { + "primitive": "boolean" + } + } + ] + }, + "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1512 + "line": 1331 }, - "methods": [ + "name": "ExportedBaseClass", + "namespace": "compliance", + "properties": [ { - "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1513 + "line": 1332 }, - "name": "visible" + "name": "success", + "type": { + "primitive": "boolean" + } } - ], - "name": "IInterfaceWithInternal" + ] }, - "jsii-calc.IInterfaceWithMethods": { + "jsii-calc.compliance.ExtendsInternalInterface": { "assembly": "jsii-calc", + "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.IInterfaceWithMethods", + "fqn": "jsii-calc.compliance.ExtendsInternalInterface", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1178 + "line": 1552 }, - "methods": [ + "name": "ExtendsInternalInterface", + "namespace": "compliance", + "properties": [ { "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1181 + "line": 1553 }, - "name": "doThings" - } - ], - "name": "IInterfaceWithMethods", - "properties": [ + "name": "boom", + "type": { + "primitive": "boolean" + } + }, { "abstract": true, "docs": { @@ -5118,146 +4774,171 @@ "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1179 + "line": 1501 }, - "name": "value", + "name": "prop", "type": { "primitive": "string" } } ] }, - "jsii-calc.IInterfaceWithOptionalMethodArguments": { + "jsii-calc.compliance.GiveMeStructs": { "assembly": "jsii-calc", "docs": { - "stability": "experimental", - "summary": "awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods." + "stability": "experimental" }, - "fqn": "jsii-calc.IInterfaceWithOptionalMethodArguments", - "kind": "interface", + "fqn": "jsii-calc.compliance.GiveMeStructs", + "initializer": {}, + "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1072 + "line": 548 }, "methods": [ { - "abstract": true, "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Accepts a struct of type DerivedStruct and returns a struct of type FirstStruct." }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1073 + "line": 566 }, - "name": "hello", + "name": "derivedToFirst", "parameters": [ { - "name": "arg1", + "name": "derived", "type": { - "primitive": "string" + "fqn": "jsii-calc.compliance.DerivedStruct" } - }, + } + ], + "returns": { + "type": { + "fqn": "@scope/jsii-calc-lib.MyFirstStruct" + } + } + }, + { + "docs": { + "stability": "experimental", + "summary": "Returns the boolean from a DerivedStruct struct." + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 559 + }, + "name": "readDerivedNonPrimitive", + "parameters": [ { - "name": "arg2", - "optional": true, + "name": "derived", "type": { - "primitive": "number" + "fqn": "jsii-calc.compliance.DerivedStruct" } } - ] - } - ], - "name": "IInterfaceWithOptionalMethodArguments" - }, - "jsii-calc.IInterfaceWithProperties": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.IInterfaceWithProperties", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 578 - }, - "name": "IInterfaceWithProperties", - "properties": [ + ], + "returns": { + "type": { + "fqn": "jsii-calc.compliance.DoubleTrouble" + } + } + }, { - "abstract": true, "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Returns the \"anumber\" from a MyFirstStruct struct;" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 579 + "line": 552 }, - "name": "readOnlyString", - "type": { - "primitive": "string" + "name": "readFirstNumber", + "parameters": [ + { + "name": "first", + "type": { + "fqn": "@scope/jsii-calc-lib.MyFirstStruct" + } + } + ], + "returns": { + "type": { + "primitive": "number" + } } - }, + } + ], + "name": "GiveMeStructs", + "namespace": "compliance", + "properties": [ { - "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 580 + "line": 570 }, - "name": "readWriteString", + "name": "structLiteral", "type": { - "primitive": "string" + "fqn": "@scope/jsii-calc-lib.StructWithOnlyOptionals" } } ] }, - "jsii-calc.IInterfaceWithPropertiesExtension": { + "jsii-calc.compliance.GreetingAugmenter": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.IInterfaceWithPropertiesExtension", - "interfaces": [ - "jsii-calc.IInterfaceWithProperties" - ], - "kind": "interface", + "fqn": "jsii-calc.compliance.GreetingAugmenter", + "initializer": {}, + "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 583 + "line": 524 }, - "name": "IInterfaceWithPropertiesExtension", - "properties": [ + "methods": [ { - "abstract": true, "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 584 + "line": 525 }, - "name": "foo", - "type": { - "primitive": "number" + "name": "betterGreeting", + "parameters": [ + { + "name": "friendly", + "type": { + "fqn": "@scope/jsii-calc-lib.IFriendly" + } + } + ], + "returns": { + "type": { + "primitive": "string" + } } } - ] + ], + "name": "GreetingAugmenter", + "namespace": "compliance" }, - "jsii-calc.IJSII417Derived": { + "jsii-calc.compliance.IAnonymousImplementationProvider": { "assembly": "jsii-calc", "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "We can return an anonymous interface implementation from an override without losing the interface declarations." }, - "fqn": "jsii-calc.IJSII417Derived", - "interfaces": [ - "jsii-calc.IJSII417PublicBaseOfBase" - ], + "fqn": "jsii-calc.compliance.IAnonymousImplementationProvider", "kind": "interface", "locationInModule": { - "filename": "lib/erasures.ts", - "line": 37 + "filename": "lib/compliance.ts", + "line": 1972 }, "methods": [ { @@ -5266,10 +4947,15 @@ "stability": "experimental" }, "locationInModule": { - "filename": "lib/erasures.ts", - "line": 35 + "filename": "lib/compliance.ts", + "line": 1974 }, - "name": "bar" + "name": "provideAsClass", + "returns": { + "type": { + "fqn": "jsii-calc.compliance.Implementation" + } + } }, { "abstract": true, @@ -5277,41 +4963,30 @@ "stability": "experimental" }, "locationInModule": { - "filename": "lib/erasures.ts", - "line": 38 - }, - "name": "baz" - } - ], - "name": "IJSII417Derived", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 34 + "filename": "lib/compliance.ts", + "line": 1973 }, - "name": "property", - "type": { - "primitive": "string" + "name": "provideAsInterface", + "returns": { + "type": { + "fqn": "jsii-calc.compliance.IAnonymouslyImplementMe" + } } } - ] + ], + "name": "IAnonymousImplementationProvider", + "namespace": "compliance" }, - "jsii-calc.IJSII417PublicBaseOfBase": { + "jsii-calc.compliance.IAnonymouslyImplementMe": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.IJSII417PublicBaseOfBase", + "fqn": "jsii-calc.compliance.IAnonymouslyImplementMe", "kind": "interface", "locationInModule": { - "filename": "lib/erasures.ts", - "line": 30 + "filename": "lib/compliance.ts", + "line": 1990 }, "methods": [ { @@ -5320,13 +4995,19 @@ "stability": "experimental" }, "locationInModule": { - "filename": "lib/erasures.ts", - "line": 31 + "filename": "lib/compliance.ts", + "line": 1992 }, - "name": "foo" + "name": "verb", + "returns": { + "type": { + "primitive": "string" + } + } } ], - "name": "IJSII417PublicBaseOfBase", + "name": "IAnonymouslyImplementMe", + "namespace": "compliance", "properties": [ { "abstract": true, @@ -5335,67 +5016,29 @@ }, "immutable": true, "locationInModule": { - "filename": "lib/erasures.ts", - "line": 28 + "filename": "lib/compliance.ts", + "line": 1991 }, - "name": "hasRoot", + "name": "value", "type": { - "primitive": "boolean" + "primitive": "number" } } ] }, - "jsii-calc.IJsii487External": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.IJsii487External", - "kind": "interface", - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 45 - }, - "name": "IJsii487External" - }, - "jsii-calc.IJsii487External2": { + "jsii-calc.compliance.IAnotherPublicInterface": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.IJsii487External2", + "fqn": "jsii-calc.compliance.IAnotherPublicInterface", "kind": "interface", "locationInModule": { - "filename": "lib/erasures.ts", - "line": 46 - }, - "name": "IJsii487External2" - }, - "jsii-calc.IJsii496": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" + "filename": "lib/compliance.ts", + "line": 1573 }, - "fqn": "jsii-calc.IJsii496", - "kind": "interface", - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 54 - }, - "name": "IJsii496" - }, - "jsii-calc.IMutableObjectLiteral": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.IMutableObjectLiteral", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1138 - }, - "name": "IMutableObjectLiteral", + "name": "IAnotherPublicInterface", + "namespace": "compliance", "properties": [ { "abstract": true, @@ -5404,45 +5047,27 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1139 + "line": 1574 }, - "name": "value", + "name": "a", "type": { "primitive": "string" } } ] }, - "jsii-calc.INonInternalInterface": { + "jsii-calc.compliance.IBell": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.INonInternalInterface", - "interfaces": [ - "jsii-calc.IAnotherPublicInterface" - ], + "fqn": "jsii-calc.compliance.IBell", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1583 + "line": 2159 }, - "name": "INonInternalInterface", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1580 - }, - "name": "b", - "type": { - "primitive": "string" - } - }, + "methods": [ { "abstract": true, "docs": { @@ -5450,26 +5075,25 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1584 + "line": 2160 }, - "name": "c", - "type": { - "primitive": "string" - } + "name": "ring" } - ] + ], + "name": "IBell", + "namespace": "compliance" }, - "jsii-calc.IObjectWithProperty": { + "jsii-calc.compliance.IBellRinger": { "assembly": "jsii-calc", "docs": { "stability": "experimental", - "summary": "Make sure that setters are properly called on objects with interfaces." + "summary": "Takes the object parameter as an interface." }, - "fqn": "jsii-calc.IObjectWithProperty", + "fqn": "jsii-calc.compliance.IBellRinger", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2287 + "line": 2148 }, "methods": [ { @@ -5479,45 +5103,33 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2289 + "line": 2149 }, - "name": "wasSet", - "returns": { - "type": { - "primitive": "boolean" + "name": "yourTurn", + "parameters": [ + { + "name": "bell", + "type": { + "fqn": "jsii-calc.compliance.IBell" + } } - } + ] } ], - "name": "IObjectWithProperty", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2288 - }, - "name": "property", - "type": { - "primitive": "string" - } - } - ] + "name": "IBellRinger", + "namespace": "compliance" }, - "jsii-calc.IOptionalMethod": { + "jsii-calc.compliance.IConcreteBellRinger": { "assembly": "jsii-calc", "docs": { "stability": "experimental", - "summary": "Checks that optional result from interface method code generates correctly." + "summary": "Takes the object parameter as a calss." }, - "fqn": "jsii-calc.IOptionalMethod", + "fqn": "jsii-calc.compliance.IConcreteBellRinger", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2465 + "line": 2155 }, "methods": [ { @@ -5527,31 +5139,35 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2466 + "line": 2156 }, - "name": "optional", - "returns": { - "optional": true, - "type": { - "primitive": "string" + "name": "yourTurn", + "parameters": [ + { + "name": "bell", + "type": { + "fqn": "jsii-calc.compliance.Bell" + } } - } + ] } ], - "name": "IOptionalMethod" + "name": "IConcreteBellRinger", + "namespace": "compliance" }, - "jsii-calc.IPrivatelyImplemented": { + "jsii-calc.compliance.IExtendsPrivateInterface": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.IPrivatelyImplemented", + "fqn": "jsii-calc.compliance.IExtendsPrivateInterface", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1328 + "line": 1564 }, - "name": "IPrivatelyImplemented", + "name": "IExtendsPrivateInterface", + "namespace": "compliance", "properties": [ { "abstract": true, @@ -5561,27 +5177,18 @@ "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1329 + "line": 1565 }, - "name": "success", + "name": "moreThings", "type": { - "primitive": "boolean" + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "array" + } } - } - ] - }, - "jsii-calc.IPublicInterface": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.IPublicInterface", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1371 - }, - "methods": [ + }, { "abstract": true, "docs": { @@ -5589,124 +5196,119 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1372 + "line": 1549 }, - "name": "bye", - "returns": { - "type": { - "primitive": "string" - } + "name": "private", + "type": { + "primitive": "string" } } - ], - "name": "IPublicInterface" + ] }, - "jsii-calc.IPublicInterface2": { + "jsii-calc.compliance.IInterfaceImplementedByAbstractClass": { "assembly": "jsii-calc", "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "awslabs/jsii#220 Abstract return type." }, - "fqn": "jsii-calc.IPublicInterface2", + "fqn": "jsii-calc.compliance.IInterfaceImplementedByAbstractClass", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1375 + "line": 1092 }, - "methods": [ + "name": "IInterfaceImplementedByAbstractClass", + "namespace": "compliance", + "properties": [ { "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1376 + "line": 1093 }, - "name": "ciao", - "returns": { - "type": { - "primitive": "string" - } + "name": "propFromInterface", + "type": { + "primitive": "string" } } - ], - "name": "IPublicInterface2" + ] }, - "jsii-calc.IRandomNumberGenerator": { + "jsii-calc.compliance.IInterfaceThatShouldNotBeADataType": { "assembly": "jsii-calc", "docs": { "stability": "experimental", - "summary": "Generates random numbers." + "summary": "Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype." }, - "fqn": "jsii-calc.IRandomNumberGenerator", + "fqn": "jsii-calc.compliance.IInterfaceThatShouldNotBeADataType", + "interfaces": [ + "jsii-calc.compliance.IInterfaceWithMethods" + ], "kind": "interface", "locationInModule": { - "filename": "lib/calculator.ts", - "line": 22 + "filename": "lib/compliance.ts", + "line": 1188 }, - "methods": [ + "name": "IInterfaceThatShouldNotBeADataType", + "namespace": "compliance", + "properties": [ { "abstract": true, "docs": { - "returns": "A random number.", - "stability": "experimental", - "summary": "Returns another random number." + "stability": "experimental" }, + "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 27 + "filename": "lib/compliance.ts", + "line": 1189 }, - "name": "next", - "returns": { - "type": { - "primitive": "number" - } + "name": "otherValue", + "type": { + "primitive": "string" } } - ], - "name": "IRandomNumberGenerator" + ] }, - "jsii-calc.IReturnJsii976": { + "jsii-calc.compliance.IInterfaceWithInternal": { "assembly": "jsii-calc", "docs": { - "stability": "experimental", - "summary": "Returns a subclass of a known class which implements an interface." + "stability": "experimental" }, - "fqn": "jsii-calc.IReturnJsii976", + "fqn": "jsii-calc.compliance.IInterfaceWithInternal", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2215 + "line": 1512 }, - "name": "IReturnJsii976", - "properties": [ + "methods": [ { "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2216 + "line": 1513 }, - "name": "foo", - "type": { - "primitive": "number" - } + "name": "visible" } - ] + ], + "name": "IInterfaceWithInternal", + "namespace": "compliance" }, - "jsii-calc.IReturnsNumber": { + "jsii-calc.compliance.IInterfaceWithMethods": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.IReturnsNumber", + "fqn": "jsii-calc.compliance.IInterfaceWithMethods", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 631 + "line": 1178 }, "methods": [ { @@ -5716,17 +5318,13 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 632 + "line": 1181 }, - "name": "obtainNumber", - "returns": { - "type": { - "fqn": "@scope/jsii-calc-lib.IDoublable" - } - } + "name": "doThings" } ], - "name": "IReturnsNumber", + "name": "IInterfaceWithMethods", + "namespace": "compliance", "properties": [ { "abstract": true, @@ -5736,71 +5334,120 @@ "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 634 + "line": 1179 }, - "name": "numberProp", + "name": "value", "type": { - "fqn": "@scope/jsii-calc-lib.Number" + "primitive": "string" } } ] }, - "jsii-calc.IStableInterface": { + "jsii-calc.compliance.IInterfaceWithOptionalMethodArguments": { "assembly": "jsii-calc", "docs": { - "stability": "stable" + "stability": "experimental", + "summary": "awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods." }, - "fqn": "jsii-calc.IStableInterface", + "fqn": "jsii-calc.compliance.IInterfaceWithOptionalMethodArguments", "kind": "interface", "locationInModule": { - "filename": "lib/stability.ts", - "line": 44 + "filename": "lib/compliance.ts", + "line": 1072 }, "methods": [ { "abstract": true, "docs": { - "stability": "stable" + "stability": "experimental" }, "locationInModule": { - "filename": "lib/stability.ts", - "line": 48 + "filename": "lib/compliance.ts", + "line": 1073 }, - "name": "method" - } - ], - "name": "IStableInterface", - "properties": [ - { - "abstract": true, + "name": "hello", + "parameters": [ + { + "name": "arg1", + "type": { + "primitive": "string" + } + }, + { + "name": "arg2", + "optional": true, + "type": { + "primitive": "number" + } + } + ] + } + ], + "name": "IInterfaceWithOptionalMethodArguments", + "namespace": "compliance" + }, + "jsii-calc.compliance.IInterfaceWithProperties": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.IInterfaceWithProperties", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 578 + }, + "name": "IInterfaceWithProperties", + "namespace": "compliance", + "properties": [ + { + "abstract": true, "docs": { - "stability": "stable" + "stability": "experimental" }, + "immutable": true, "locationInModule": { - "filename": "lib/stability.ts", - "line": 46 + "filename": "lib/compliance.ts", + "line": 579 }, - "name": "mutableProperty", - "optional": true, + "name": "readOnlyString", "type": { - "primitive": "number" + "primitive": "string" + } + }, + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 580 + }, + "name": "readWriteString", + "type": { + "primitive": "string" } } ] }, - "jsii-calc.IStructReturningDelegate": { + "jsii-calc.compliance.IInterfaceWithPropertiesExtension": { "assembly": "jsii-calc", "docs": { - "stability": "experimental", - "summary": "Verifies that a \"pure\" implementation of an interface works correctly." + "stability": "experimental" }, - "fqn": "jsii-calc.IStructReturningDelegate", + "fqn": "jsii-calc.compliance.IInterfaceWithPropertiesExtension", + "interfaces": [ + "jsii-calc.compliance.IInterfaceWithProperties" + ], "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2403 + "line": 583 }, - "methods": [ + "name": "IInterfaceWithPropertiesExtension", + "namespace": "compliance", + "properties": [ { "abstract": true, "docs": { @@ -5808,212 +5455,260 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2404 + "line": 584 }, - "name": "returnStruct", - "returns": { - "type": { - "fqn": "jsii-calc.StructB" - } + "name": "foo", + "type": { + "primitive": "number" } } - ], - "name": "IStructReturningDelegate" + ] }, - "jsii-calc.ImplementInternalInterface": { + "jsii-calc.compliance.IMutableObjectLiteral": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.ImplementInternalInterface", - "initializer": {}, - "kind": "class", + "fqn": "jsii-calc.compliance.IMutableObjectLiteral", + "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1556 + "line": 1138 }, - "name": "ImplementInternalInterface", + "name": "IMutableObjectLiteral", + "namespace": "compliance", "properties": [ { + "abstract": true, "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1557 + "line": 1139 }, - "name": "prop", + "name": "value", "type": { "primitive": "string" } } ] }, - "jsii-calc.Implementation": { + "jsii-calc.compliance.INonInternalInterface": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.Implementation", - "initializer": {}, - "kind": "class", + "fqn": "jsii-calc.compliance.INonInternalInterface", + "interfaces": [ + "jsii-calc.compliance.IAnotherPublicInterface" + ], + "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1987 + "line": 1583 }, - "name": "Implementation", + "name": "INonInternalInterface", + "namespace": "compliance", "properties": [ { + "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1988 + "line": 1580 }, - "name": "value", + "name": "b", "type": { - "primitive": "number" + "primitive": "string" + } + }, + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1584 + }, + "name": "c", + "type": { + "primitive": "string" } } ] }, - "jsii-calc.ImplementsInterfaceWithInternal": { + "jsii-calc.compliance.IObjectWithProperty": { "assembly": "jsii-calc", "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Make sure that setters are properly called on objects with interfaces." }, - "fqn": "jsii-calc.ImplementsInterfaceWithInternal", - "initializer": {}, - "interfaces": [ - "jsii-calc.IInterfaceWithInternal" - ], - "kind": "class", + "fqn": "jsii-calc.compliance.IObjectWithProperty", + "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1519 + "line": 2287 }, "methods": [ { + "abstract": true, "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1520 + "line": 2289 }, - "name": "visible", - "overrides": "jsii-calc.IInterfaceWithInternal" + "name": "wasSet", + "returns": { + "type": { + "primitive": "boolean" + } + } } ], - "name": "ImplementsInterfaceWithInternal" + "name": "IObjectWithProperty", + "namespace": "compliance", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2288 + }, + "name": "property", + "type": { + "primitive": "string" + } + } + ] }, - "jsii-calc.ImplementsInterfaceWithInternalSubclass": { + "jsii-calc.compliance.IOptionalMethod": { "assembly": "jsii-calc", - "base": "jsii-calc.ImplementsInterfaceWithInternal", "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Checks that optional result from interface method code generates correctly." }, - "fqn": "jsii-calc.ImplementsInterfaceWithInternalSubclass", - "initializer": {}, - "kind": "class", + "fqn": "jsii-calc.compliance.IOptionalMethod", + "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1532 + "line": 2465 }, - "name": "ImplementsInterfaceWithInternalSubclass" + "methods": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2466 + }, + "name": "optional", + "returns": { + "optional": true, + "type": { + "primitive": "string" + } + } + } + ], + "name": "IOptionalMethod", + "namespace": "compliance" }, - "jsii-calc.ImplementsPrivateInterface": { + "jsii-calc.compliance.IPrivatelyImplemented": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.ImplementsPrivateInterface", - "initializer": {}, - "kind": "class", + "fqn": "jsii-calc.compliance.IPrivatelyImplemented", + "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1560 + "line": 1328 }, - "name": "ImplementsPrivateInterface", + "name": "IPrivatelyImplemented", + "namespace": "compliance", "properties": [ { + "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1561 + "line": 1329 }, - "name": "private", + "name": "success", "type": { - "primitive": "string" + "primitive": "boolean" } } ] }, - "jsii-calc.ImplictBaseOfBase": { + "jsii-calc.compliance.IPublicInterface": { "assembly": "jsii-calc", - "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.ImplictBaseOfBase", - "interfaces": [ - "@scope/jsii-calc-base.BaseProps" - ], + "fqn": "jsii-calc.compliance.IPublicInterface", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1025 + "line": 1371 }, - "name": "ImplictBaseOfBase", - "properties": [ + "methods": [ { "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1026 + "line": 1372 }, - "name": "goo", - "type": { - "primitive": "date" + "name": "bye", + "returns": { + "type": { + "primitive": "string" + } } } - ] + ], + "name": "IPublicInterface", + "namespace": "compliance" }, - "jsii-calc.InbetweenClass": { + "jsii-calc.compliance.IPublicInterface2": { "assembly": "jsii-calc", - "base": "jsii-calc.PublicClass", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.InbetweenClass", - "initializer": {}, - "interfaces": [ - "jsii-calc.IPublicInterface2" - ], - "kind": "class", + "fqn": "jsii-calc.compliance.IPublicInterface2", + "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1378 + "line": 1375 }, "methods": [ { + "abstract": true, "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1379 + "line": 1376 }, "name": "ciao", - "overrides": "jsii-calc.IPublicInterface2", "returns": { "type": { "primitive": "string" @@ -6021,123 +5716,137 @@ } } ], - "name": "InbetweenClass" + "name": "IPublicInterface2", + "namespace": "compliance" }, - "jsii-calc.InterfaceCollections": { + "jsii-calc.compliance.IReturnJsii976": { "assembly": "jsii-calc", "docs": { - "remarks": "See: https://github.com/aws/jsii/issues/1196", "stability": "experimental", - "summary": "Verifies that collections of interfaces or structs are correctly handled." + "summary": "Returns a subclass of a known class which implements an interface." }, - "fqn": "jsii-calc.InterfaceCollections", - "kind": "class", + "fqn": "jsii-calc.compliance.IReturnJsii976", + "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2434 + "line": 2215 }, - "methods": [ + "name": "IReturnJsii976", + "namespace": "compliance", + "properties": [ { + "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2447 + "line": 2216 }, - "name": "listOfInterfaces", - "returns": { - "type": { - "collection": { - "elementtype": { - "fqn": "jsii-calc.IBell" - }, - "kind": "array" - } - } - }, - "static": true - }, + "name": "foo", + "type": { + "primitive": "number" + } + } + ] + }, + "jsii-calc.compliance.IReturnsNumber": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.IReturnsNumber", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 631 + }, + "methods": [ { + "abstract": true, "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2435 + "line": 632 }, - "name": "listOfStructs", + "name": "obtainNumber", "returns": { "type": { - "collection": { - "elementtype": { - "fqn": "jsii-calc.StructA" - }, - "kind": "array" - } + "fqn": "@scope/jsii-calc-lib.IDoublable" } - }, - "static": true - }, + } + } + ], + "name": "IReturnsNumber", + "namespace": "compliance", + "properties": [ { + "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2453 - }, - "name": "mapOfInterfaces", - "returns": { - "type": { - "collection": { - "elementtype": { - "fqn": "jsii-calc.IBell" - }, - "kind": "map" - } - } + "line": 634 }, - "static": true - }, + "name": "numberProp", + "type": { + "fqn": "@scope/jsii-calc-lib.Number" + } + } + ] + }, + "jsii-calc.compliance.IStructReturningDelegate": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Verifies that a \"pure\" implementation of an interface works correctly." + }, + "fqn": "jsii-calc.compliance.IStructReturningDelegate", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2403 + }, + "methods": [ { + "abstract": true, "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2441 + "line": 2404 }, - "name": "mapOfStructs", + "name": "returnStruct", "returns": { "type": { - "collection": { - "elementtype": { - "fqn": "jsii-calc.StructA" - }, - "kind": "map" - } + "fqn": "jsii-calc.compliance.StructB" } - }, - "static": true + } } ], - "name": "InterfaceCollections" + "name": "IStructReturningDelegate", + "namespace": "compliance" }, - "jsii-calc.InterfaceInNamespaceIncludesClasses.Foo": { + "jsii-calc.compliance.ImplementInternalInterface": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.InterfaceInNamespaceIncludesClasses.Foo", + "fqn": "jsii-calc.compliance.ImplementInternalInterface", "initializer": {}, "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1059 + "line": 1556 }, - "name": "Foo", - "namespace": "InterfaceInNamespaceIncludesClasses", + "name": "ImplementInternalInterface", + "namespace": "compliance", "properties": [ { "docs": { @@ -6145,202 +5854,173 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1060 + "line": 1557 }, - "name": "bar", - "optional": true, + "name": "prop", "type": { "primitive": "string" } } ] }, - "jsii-calc.InterfaceInNamespaceIncludesClasses.Hello": { + "jsii-calc.compliance.Implementation": { "assembly": "jsii-calc", - "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.InterfaceInNamespaceIncludesClasses.Hello", - "kind": "interface", + "fqn": "jsii-calc.compliance.Implementation", + "initializer": {}, + "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1063 + "line": 1987 }, - "name": "Hello", - "namespace": "InterfaceInNamespaceIncludesClasses", + "name": "Implementation", + "namespace": "compliance", "properties": [ { - "abstract": true, "docs": { "stability": "experimental" }, "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1064 + "line": 1988 }, - "name": "foo", + "name": "value", "type": { "primitive": "number" } } ] }, - "jsii-calc.InterfaceInNamespaceOnlyInterface.Hello": { + "jsii-calc.compliance.ImplementsInterfaceWithInternal": { "assembly": "jsii-calc", - "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.InterfaceInNamespaceOnlyInterface.Hello", - "kind": "interface", + "fqn": "jsii-calc.compliance.ImplementsInterfaceWithInternal", + "initializer": {}, + "interfaces": [ + "jsii-calc.compliance.IInterfaceWithInternal" + ], + "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1051 + "line": 1519 }, - "name": "Hello", - "namespace": "InterfaceInNamespaceOnlyInterface", - "properties": [ + "methods": [ { - "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1052 + "line": 1520 }, - "name": "foo", - "type": { - "primitive": "number" - } + "name": "visible", + "overrides": "jsii-calc.compliance.IInterfaceWithInternal" } - ] + ], + "name": "ImplementsInterfaceWithInternal", + "namespace": "compliance" }, - "jsii-calc.InterfacesMaker": { + "jsii-calc.compliance.ImplementsInterfaceWithInternalSubclass": { "assembly": "jsii-calc", + "base": "jsii-calc.compliance.ImplementsInterfaceWithInternal", "docs": { - "stability": "experimental", - "summary": "We can return arrays of interfaces See aws/aws-cdk#2362." + "stability": "experimental" }, - "fqn": "jsii-calc.InterfacesMaker", + "fqn": "jsii-calc.compliance.ImplementsInterfaceWithInternalSubclass", + "initializer": {}, "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1871 + "line": 1532 }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1872 - }, - "name": "makeInterfaces", - "parameters": [ - { - "name": "count", - "type": { - "primitive": "number" - } - } - ], - "returns": { - "type": { - "collection": { - "elementtype": { - "fqn": "@scope/jsii-calc-lib.IDoublable" - }, - "kind": "array" - } - } - }, - "static": true - } - ], - "name": "InterfacesMaker" + "name": "ImplementsInterfaceWithInternalSubclass", + "namespace": "compliance" }, - "jsii-calc.JSII417Derived": { + "jsii-calc.compliance.ImplementsPrivateInterface": { "assembly": "jsii-calc", - "base": "jsii-calc.JSII417PublicBaseOfBase", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.JSII417Derived", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "property", - "type": { - "primitive": "string" - } - } - ] - }, + "fqn": "jsii-calc.compliance.ImplementsPrivateInterface", + "initializer": {}, "kind": "class", "locationInModule": { - "filename": "lib/erasures.ts", - "line": 20 + "filename": "lib/compliance.ts", + "line": 1560 }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 21 - }, - "name": "bar" - }, + "name": "ImplementsPrivateInterface", + "namespace": "compliance", + "properties": [ { "docs": { "stability": "experimental" }, "locationInModule": { - "filename": "lib/erasures.ts", - "line": 24 + "filename": "lib/compliance.ts", + "line": 1561 }, - "name": "baz" + "name": "private", + "type": { + "primitive": "string" + } } + ] + }, + "jsii-calc.compliance.ImplictBaseOfBase": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.ImplictBaseOfBase", + "interfaces": [ + "@scope/jsii-calc-base.BaseProps" ], - "name": "JSII417Derived", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1025 + }, + "name": "ImplictBaseOfBase", + "namespace": "compliance", "properties": [ { + "abstract": true, "docs": { "stability": "experimental" }, "immutable": true, "locationInModule": { - "filename": "lib/erasures.ts", - "line": 15 + "filename": "lib/compliance.ts", + "line": 1026 }, - "name": "property", - "protected": true, + "name": "goo", "type": { - "primitive": "string" + "primitive": "date" } } ] }, - "jsii-calc.JSII417PublicBaseOfBase": { + "jsii-calc.compliance.InbetweenClass": { "assembly": "jsii-calc", + "base": "jsii-calc.compliance.PublicClass", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.JSII417PublicBaseOfBase", + "fqn": "jsii-calc.compliance.InbetweenClass", "initializer": {}, + "interfaces": [ + "jsii-calc.compliance.IPublicInterface2" + ], "kind": "class", "locationInModule": { - "filename": "lib/erasures.ts", - "line": 8 + "filename": "lib/compliance.ts", + "line": 1378 }, "methods": [ { @@ -6348,52 +6028,270 @@ "stability": "experimental" }, "locationInModule": { - "filename": "lib/erasures.ts", - "line": 9 + "filename": "lib/compliance.ts", + "line": 1379 }, - "name": "makeInstance", + "name": "ciao", + "overrides": "jsii-calc.compliance.IPublicInterface2", "returns": { "type": { - "fqn": "jsii-calc.JSII417PublicBaseOfBase" + "primitive": "string" } + } + } + ], + "name": "InbetweenClass", + "namespace": "compliance" + }, + "jsii-calc.compliance.InterfaceCollections": { + "assembly": "jsii-calc", + "docs": { + "remarks": "See: https://github.com/aws/jsii/issues/1196", + "stability": "experimental", + "summary": "Verifies that collections of interfaces or structs are correctly handled." + }, + "fqn": "jsii-calc.compliance.InterfaceCollections", + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2434 + }, + "methods": [ + { + "docs": { + "stability": "experimental" }, - "static": true - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 12 - }, - "name": "foo" + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2447 + }, + "name": "listOfInterfaces", + "returns": { + "type": { + "collection": { + "elementtype": { + "fqn": "jsii-calc.compliance.IBell" + }, + "kind": "array" + } + } + }, + "static": true + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2435 + }, + "name": "listOfStructs", + "returns": { + "type": { + "collection": { + "elementtype": { + "fqn": "jsii-calc.compliance.StructA" + }, + "kind": "array" + } + } + }, + "static": true + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2453 + }, + "name": "mapOfInterfaces", + "returns": { + "type": { + "collection": { + "elementtype": { + "fqn": "jsii-calc.compliance.IBell" + }, + "kind": "map" + } + } + }, + "static": true + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2441 + }, + "name": "mapOfStructs", + "returns": { + "type": { + "collection": { + "elementtype": { + "fqn": "jsii-calc.compliance.StructA" + }, + "kind": "map" + } + } + }, + "static": true } ], - "name": "JSII417PublicBaseOfBase", + "name": "InterfaceCollections", + "namespace": "compliance" + }, + "jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Foo": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Foo", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1059 + }, + "name": "Foo", + "namespace": "compliance.InterfaceInNamespaceIncludesClasses", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1060 + }, + "name": "bar", + "optional": true, + "type": { + "primitive": "string" + } + } + ] + }, + "jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Hello": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Hello", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1063 + }, + "name": "Hello", + "namespace": "compliance.InterfaceInNamespaceIncludesClasses", "properties": [ { + "abstract": true, "docs": { "stability": "experimental" }, "immutable": true, "locationInModule": { - "filename": "lib/erasures.ts", - "line": 6 + "filename": "lib/compliance.ts", + "line": 1064 }, - "name": "hasRoot", + "name": "foo", "type": { - "primitive": "boolean" + "primitive": "number" + } + } + ] + }, + "jsii-calc.compliance.InterfaceInNamespaceOnlyInterface.Hello": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.InterfaceInNamespaceOnlyInterface.Hello", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1051 + }, + "name": "Hello", + "namespace": "compliance.InterfaceInNamespaceOnlyInterface", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1052 + }, + "name": "foo", + "type": { + "primitive": "number" } } ] }, - "jsii-calc.JSObjectLiteralForInterface": { + "jsii-calc.compliance.InterfacesMaker": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "We can return arrays of interfaces See aws/aws-cdk#2362." + }, + "fqn": "jsii-calc.compliance.InterfacesMaker", + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1871 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1872 + }, + "name": "makeInterfaces", + "parameters": [ + { + "name": "count", + "type": { + "primitive": "number" + } + } + ], + "returns": { + "type": { + "collection": { + "elementtype": { + "fqn": "@scope/jsii-calc-lib.IDoublable" + }, + "kind": "array" + } + } + }, + "static": true + } + ], + "name": "InterfacesMaker", + "namespace": "compliance" + }, + "jsii-calc.compliance.JSObjectLiteralForInterface": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.JSObjectLiteralForInterface", + "fqn": "jsii-calc.compliance.JSObjectLiteralForInterface", "initializer": {}, "kind": "class", "locationInModule": { @@ -6432,14 +6330,15 @@ } } ], - "name": "JSObjectLiteralForInterface" + "name": "JSObjectLiteralForInterface", + "namespace": "compliance" }, - "jsii-calc.JSObjectLiteralToNative": { + "jsii-calc.compliance.JSObjectLiteralToNative": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.JSObjectLiteralToNative", + "fqn": "jsii-calc.compliance.JSObjectLiteralToNative", "initializer": {}, "kind": "class", "locationInModule": { @@ -6458,19 +6357,20 @@ "name": "returnLiteral", "returns": { "type": { - "fqn": "jsii-calc.JSObjectLiteralToNativeClass" + "fqn": "jsii-calc.compliance.JSObjectLiteralToNativeClass" } } } ], - "name": "JSObjectLiteralToNative" + "name": "JSObjectLiteralToNative", + "namespace": "compliance" }, - "jsii-calc.JSObjectLiteralToNativeClass": { + "jsii-calc.compliance.JSObjectLiteralToNativeClass": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.JSObjectLiteralToNativeClass", + "fqn": "jsii-calc.compliance.JSObjectLiteralToNativeClass", "initializer": {}, "kind": "class", "locationInModule": { @@ -6478,6 +6378,7 @@ "line": 242 }, "name": "JSObjectLiteralToNativeClass", + "namespace": "compliance", "properties": [ { "docs": { @@ -6507,12 +6408,12 @@ } ] }, - "jsii-calc.JavaReservedWords": { + "jsii-calc.compliance.JavaReservedWords": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.JavaReservedWords", + "fqn": "jsii-calc.compliance.JavaReservedWords", "initializer": {}, "kind": "class", "locationInModule": { @@ -7042,6 +6943,7 @@ } ], "name": "JavaReservedWords", + "namespace": "compliance", "properties": [ { "docs": { @@ -7058,48 +6960,13 @@ } ] }, - "jsii-calc.Jsii487Derived": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.Jsii487Derived", - "initializer": {}, - "interfaces": [ - "jsii-calc.IJsii487External2", - "jsii-calc.IJsii487External" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 48 - }, - "name": "Jsii487Derived" - }, - "jsii-calc.Jsii496Derived": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.Jsii496Derived", - "initializer": {}, - "interfaces": [ - "jsii-calc.IJsii496" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 56 - }, - "name": "Jsii496Derived" - }, - "jsii-calc.JsiiAgent": { + "jsii-calc.compliance.JsiiAgent": { "assembly": "jsii-calc", "docs": { "stability": "experimental", "summary": "Host runtime version should be set via JSII_AGENT." }, - "fqn": "jsii-calc.JsiiAgent", + "fqn": "jsii-calc.compliance.JsiiAgent", "initializer": {}, "kind": "class", "locationInModule": { @@ -7107,6 +6974,7 @@ "line": 1343 }, "name": "JsiiAgent", + "namespace": "compliance", "properties": [ { "docs": { @@ -7127,14 +6995,14 @@ } ] }, - "jsii-calc.JsonFormatter": { + "jsii-calc.compliance.JsonFormatter": { "assembly": "jsii-calc", "docs": { "see": "https://github.com/aws/aws-cdk/issues/5066", "stability": "experimental", "summary": "Make sure structs are un-decorated on the way in." }, - "fqn": "jsii-calc.JsonFormatter", + "fqn": "jsii-calc.compliance.JsonFormatter", "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", @@ -7376,22 +7244,24 @@ "static": true } ], - "name": "JsonFormatter" + "name": "JsonFormatter", + "namespace": "compliance" }, - "jsii-calc.LoadBalancedFargateServiceProps": { + "jsii-calc.compliance.LoadBalancedFargateServiceProps": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental", "summary": "jsii#298: show default values in sphinx documentation, and respect newlines." }, - "fqn": "jsii-calc.LoadBalancedFargateServiceProps", + "fqn": "jsii-calc.compliance.LoadBalancedFargateServiceProps", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 1255 }, "name": "LoadBalancedFargateServiceProps", + "namespace": "compliance", "properties": [ { "abstract": true, @@ -7488,108 +7358,64 @@ } ] }, - "jsii-calc.MethodNamedProperty": { + "jsii-calc.compliance.NestedStruct": { "assembly": "jsii-calc", + "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.MethodNamedProperty", - "initializer": {}, - "kind": "class", + "fqn": "jsii-calc.compliance.NestedStruct", + "kind": "interface", "locationInModule": { - "filename": "lib/calculator.ts", - "line": 386 + "filename": "lib/compliance.ts", + "line": 2191 }, - "methods": [ + "name": "NestedStruct", + "namespace": "compliance", + "properties": [ { + "abstract": true, "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 387 - }, - "name": "property", - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "MethodNamedProperty", - "properties": [ - { - "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "When provided, must be > 0." }, "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 391 + "filename": "lib/compliance.ts", + "line": 2195 }, - "name": "elite", + "name": "numberProp", "type": { "primitive": "number" } } ] }, - "jsii-calc.Multiply": { + "jsii-calc.compliance.NodeStandardLibrary": { "assembly": "jsii-calc", - "base": "jsii-calc.BinaryOperation", "docs": { "stability": "experimental", - "summary": "The \"*\" binary operation." - }, - "fqn": "jsii-calc.Multiply", - "initializer": { - "docs": { - "stability": "experimental", - "summary": "Creates a BinaryOperation." - }, - "parameters": [ - { - "docs": { - "summary": "Left-hand side operand." - }, - "name": "lhs", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - }, - { - "docs": { - "summary": "Right-hand side operand." - }, - "name": "rhs", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - } - ] + "summary": "Test fixture to verify that jsii modules can use the node standard library." }, - "interfaces": [ - "jsii-calc.IFriendlier", - "jsii-calc.IRandomNumberGenerator" - ], + "fqn": "jsii-calc.compliance.NodeStandardLibrary", + "initializer": {}, "kind": "class", "locationInModule": { - "filename": "lib/calculator.ts", - "line": 68 + "filename": "lib/compliance.ts", + "line": 977 }, "methods": [ { "docs": { + "returns": "\"6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50\"", "stability": "experimental", - "summary": "Say farewell." + "summary": "Uses node.js \"crypto\" module to calculate sha256 of a string." }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 81 + "filename": "lib/compliance.ts", + "line": 1006 }, - "name": "farewell", - "overrides": "jsii-calc.IFriendlier", + "name": "cryptoSha256", "returns": { "type": { "primitive": "string" @@ -7597,16 +7423,17 @@ } }, { + "async": true, "docs": { + "returns": "\"Hello, resource!\"", "stability": "experimental", - "summary": "Say goodbye." + "summary": "Reads a local resource file (resource.txt) asynchronously." }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 77 + "filename": "lib/compliance.ts", + "line": 982 }, - "name": "goodbye", - "overrides": "jsii-calc.IFriendlier", + "name": "fsReadFile", "returns": { "type": { "primitive": "string" @@ -7615,32 +7442,15 @@ }, { "docs": { + "returns": "\"Hello, resource! SYNC!\"", "stability": "experimental", - "summary": "Returns another random number." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 85 - }, - "name": "next", - "overrides": "jsii-calc.IRandomNumberGenerator", - "returns": { - "type": { - "primitive": "number" - } - } - }, - { - "docs": { - "stability": "experimental", - "summary": "String representation of the value." + "summary": "Sync version of fsReadFile." }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 73 + "filename": "lib/compliance.ts", + "line": 991 }, - "name": "toString", - "overrides": "@scope/jsii-calc-lib.Operation", + "name": "fsReadFileSync", "returns": { "type": { "primitive": "string" @@ -7648,387 +7458,152 @@ } } ], - "name": "Multiply", + "name": "NodeStandardLibrary", + "namespace": "compliance", "properties": [ { "docs": { "stability": "experimental", - "summary": "The value." + "summary": "Returns the current os.platform() from the \"os\" node module." }, "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 69 + "filename": "lib/compliance.ts", + "line": 998 }, - "name": "value", - "overrides": "@scope/jsii-calc-lib.Value", + "name": "osPlatform", "type": { - "primitive": "number" + "primitive": "string" } } ] }, - "jsii-calc.Negate": { + "jsii-calc.compliance.NullShouldBeTreatedAsUndefined": { "assembly": "jsii-calc", - "base": "jsii-calc.UnaryOperation", "docs": { "stability": "experimental", - "summary": "The negation operation (\"-value\")." + "summary": "jsii#282, aws-cdk#157: null should be treated as \"undefined\"." }, - "fqn": "jsii-calc.Negate", + "fqn": "jsii-calc.compliance.NullShouldBeTreatedAsUndefined", "initializer": { "docs": { "stability": "experimental" }, "parameters": [ { - "name": "operand", + "name": "_param1", "type": { - "fqn": "@scope/jsii-calc-lib.Value" + "primitive": "string" + } + }, + { + "name": "optional", + "optional": true, + "type": { + "primitive": "any" } } ] }, - "interfaces": [ - "jsii-calc.IFriendlier" - ], "kind": "class", "locationInModule": { - "filename": "lib/calculator.ts", - "line": 102 + "filename": "lib/compliance.ts", + "line": 1204 }, "methods": [ { "docs": { - "stability": "experimental", - "summary": "Say farewell." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 119 - }, - "name": "farewell", - "overrides": "jsii-calc.IFriendlier", - "returns": { - "type": { - "primitive": "string" - } - } - }, - { - "docs": { - "stability": "experimental", - "summary": "Say goodbye." + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 115 + "filename": "lib/compliance.ts", + "line": 1213 }, - "name": "goodbye", - "overrides": "jsii-calc.IFriendlier", - "returns": { - "type": { - "primitive": "string" + "name": "giveMeUndefined", + "parameters": [ + { + "name": "value", + "optional": true, + "type": { + "primitive": "any" + } } - } + ] }, { "docs": { - "stability": "experimental", - "summary": "Say hello!" + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 111 + "filename": "lib/compliance.ts", + "line": 1219 }, - "name": "hello", - "overrides": "@scope/jsii-calc-lib.IFriendly", - "returns": { - "type": { - "primitive": "string" + "name": "giveMeUndefinedInsideAnObject", + "parameters": [ + { + "name": "input", + "type": { + "fqn": "jsii-calc.compliance.NullShouldBeTreatedAsUndefinedData" + } } - } + ] }, { "docs": { - "stability": "experimental", - "summary": "String representation of the value." + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 107 + "filename": "lib/compliance.ts", + "line": 1234 }, - "name": "toString", - "overrides": "@scope/jsii-calc-lib.Operation", - "returns": { - "type": { - "primitive": "string" - } - } + "name": "verifyPropertyIsUndefined" } ], - "name": "Negate", + "name": "NullShouldBeTreatedAsUndefined", + "namespace": "compliance", "properties": [ { "docs": { - "stability": "experimental", - "summary": "The value." + "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 103 + "filename": "lib/compliance.ts", + "line": 1205 }, - "name": "value", - "overrides": "@scope/jsii-calc-lib.Value", + "name": "changeMeToUndefined", + "optional": true, "type": { - "primitive": "number" + "primitive": "string" } } ] }, - "jsii-calc.NestedStruct": { + "jsii-calc.compliance.NullShouldBeTreatedAsUndefinedData": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.NestedStruct", + "fqn": "jsii-calc.compliance.NullShouldBeTreatedAsUndefinedData", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2191 + "line": 1241 }, - "name": "NestedStruct", + "name": "NullShouldBeTreatedAsUndefinedData", + "namespace": "compliance", "properties": [ { "abstract": true, "docs": { - "stability": "experimental", - "summary": "When provided, must be > 0." + "stability": "experimental" }, "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2195 + "line": 1243 }, - "name": "numberProp", - "type": { - "primitive": "number" - } - } - ] - }, - "jsii-calc.NodeStandardLibrary": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Test fixture to verify that jsii modules can use the node standard library." - }, - "fqn": "jsii-calc.NodeStandardLibrary", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 977 - }, - "methods": [ - { - "docs": { - "returns": "\"6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50\"", - "stability": "experimental", - "summary": "Uses node.js \"crypto\" module to calculate sha256 of a string." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1006 - }, - "name": "cryptoSha256", - "returns": { - "type": { - "primitive": "string" - } - } - }, - { - "async": true, - "docs": { - "returns": "\"Hello, resource!\"", - "stability": "experimental", - "summary": "Reads a local resource file (resource.txt) asynchronously." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 982 - }, - "name": "fsReadFile", - "returns": { - "type": { - "primitive": "string" - } - } - }, - { - "docs": { - "returns": "\"Hello, resource! SYNC!\"", - "stability": "experimental", - "summary": "Sync version of fsReadFile." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 991 - }, - "name": "fsReadFileSync", - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "NodeStandardLibrary", - "properties": [ - { - "docs": { - "stability": "experimental", - "summary": "Returns the current os.platform() from the \"os\" node module." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 998 - }, - "name": "osPlatform", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.NullShouldBeTreatedAsUndefined": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "jsii#282, aws-cdk#157: null should be treated as \"undefined\"." - }, - "fqn": "jsii-calc.NullShouldBeTreatedAsUndefined", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "_param1", - "type": { - "primitive": "string" - } - }, - { - "name": "optional", - "optional": true, - "type": { - "primitive": "any" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1204 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1213 - }, - "name": "giveMeUndefined", - "parameters": [ - { - "name": "value", - "optional": true, - "type": { - "primitive": "any" - } - } - ] - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1219 - }, - "name": "giveMeUndefinedInsideAnObject", - "parameters": [ - { - "name": "input", - "type": { - "fqn": "jsii-calc.NullShouldBeTreatedAsUndefinedData" - } - } - ] - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1234 - }, - "name": "verifyPropertyIsUndefined" - } - ], - "name": "NullShouldBeTreatedAsUndefined", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1205 - }, - "name": "changeMeToUndefined", - "optional": true, - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.NullShouldBeTreatedAsUndefinedData": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.NullShouldBeTreatedAsUndefinedData", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1241 - }, - "name": "NullShouldBeTreatedAsUndefinedData", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1243 - }, - "name": "arrayWithThreeElementsAndUndefinedAsSecondArgument", + "name": "arrayWithThreeElementsAndUndefinedAsSecondArgument", "type": { "collection": { "elementtype": { @@ -8056,13 +7631,13 @@ } ] }, - "jsii-calc.NumberGenerator": { + "jsii-calc.compliance.NumberGenerator": { "assembly": "jsii-calc", "docs": { "stability": "experimental", "summary": "This allows us to test that a reference can be stored for objects that implement interfaces." }, - "fqn": "jsii-calc.NumberGenerator", + "fqn": "jsii-calc.compliance.NumberGenerator", "initializer": { "docs": { "stability": "experimental" @@ -8122,6 +7697,7 @@ } ], "name": "NumberGenerator", + "namespace": "compliance", "properties": [ { "docs": { @@ -8138,13 +7714,13 @@ } ] }, - "jsii-calc.ObjectRefsInCollections": { + "jsii-calc.compliance.ObjectRefsInCollections": { "assembly": "jsii-calc", "docs": { "stability": "experimental", "summary": "Verify that object references can be passed inside collections." }, - "fqn": "jsii-calc.ObjectRefsInCollections", + "fqn": "jsii-calc.compliance.ObjectRefsInCollections", "initializer": {}, "kind": "class", "locationInModule": { @@ -8211,14 +7787,15 @@ } } ], - "name": "ObjectRefsInCollections" + "name": "ObjectRefsInCollections", + "namespace": "compliance" }, - "jsii-calc.ObjectWithPropertyProvider": { + "jsii-calc.compliance.ObjectWithPropertyProvider": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.ObjectWithPropertyProvider", + "fqn": "jsii-calc.compliance.ObjectWithPropertyProvider", "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", @@ -8236,49 +7813,21 @@ "name": "provide", "returns": { "type": { - "fqn": "jsii-calc.IObjectWithProperty" + "fqn": "jsii-calc.compliance.IObjectWithProperty" } }, "static": true } ], - "name": "ObjectWithPropertyProvider" - }, - "jsii-calc.Old": { - "assembly": "jsii-calc", - "docs": { - "deprecated": "Use the new class", - "stability": "deprecated", - "summary": "Old class." - }, - "fqn": "jsii-calc.Old", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/documented.ts", - "line": 54 - }, - "methods": [ - { - "docs": { - "stability": "deprecated", - "summary": "Doo wop that thing." - }, - "locationInModule": { - "filename": "lib/documented.ts", - "line": 58 - }, - "name": "doAThing" - } - ], - "name": "Old" + "name": "ObjectWithPropertyProvider", + "namespace": "compliance" }, - "jsii-calc.OptionalArgumentInvoker": { + "jsii-calc.compliance.OptionalArgumentInvoker": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.OptionalArgumentInvoker", + "fqn": "jsii-calc.compliance.OptionalArgumentInvoker", "initializer": { "docs": { "stability": "experimental" @@ -8287,7 +7836,7 @@ { "name": "delegate", "type": { - "fqn": "jsii-calc.IInterfaceWithOptionalMethodArguments" + "fqn": "jsii-calc.compliance.IInterfaceWithOptionalMethodArguments" } } ] @@ -8319,14 +7868,15 @@ "name": "invokeWithoutOptional" } ], - "name": "OptionalArgumentInvoker" + "name": "OptionalArgumentInvoker", + "namespace": "compliance" }, - "jsii-calc.OptionalConstructorArgument": { + "jsii-calc.compliance.OptionalConstructorArgument": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.OptionalConstructorArgument", + "fqn": "jsii-calc.compliance.OptionalConstructorArgument", "initializer": { "docs": { "stability": "experimental" @@ -8359,6 +7909,7 @@ "line": 295 }, "name": "OptionalConstructorArgument", + "namespace": "compliance", "properties": [ { "docs": { @@ -8405,19 +7956,20 @@ } ] }, - "jsii-calc.OptionalStruct": { + "jsii-calc.compliance.OptionalStruct": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.OptionalStruct", + "fqn": "jsii-calc.compliance.OptionalStruct", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 1650 }, "name": "OptionalStruct", + "namespace": "compliance", "properties": [ { "abstract": true, @@ -8437,12 +7989,12 @@ } ] }, - "jsii-calc.OptionalStructConsumer": { + "jsii-calc.compliance.OptionalStructConsumer": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.OptionalStructConsumer", + "fqn": "jsii-calc.compliance.OptionalStructConsumer", "initializer": { "docs": { "stability": "experimental" @@ -8452,7 +8004,7 @@ "name": "optionalStruct", "optional": true, "type": { - "fqn": "jsii-calc.OptionalStruct" + "fqn": "jsii-calc.compliance.OptionalStruct" } } ] @@ -8463,6 +8015,7 @@ "line": 1641 }, "name": "OptionalStructConsumer", + "namespace": "compliance", "properties": [ { "docs": { @@ -8495,13 +8048,13 @@ } ] }, - "jsii-calc.OverridableProtectedMember": { + "jsii-calc.compliance.OverridableProtectedMember": { "assembly": "jsii-calc", "docs": { "see": "https://github.com/aws/jsii/issues/903", "stability": "experimental" }, - "fqn": "jsii-calc.OverridableProtectedMember", + "fqn": "jsii-calc.compliance.OverridableProtectedMember", "initializer": {}, "kind": "class", "locationInModule": { @@ -8552,6 +8105,7 @@ } ], "name": "OverridableProtectedMember", + "namespace": "compliance", "properties": [ { "docs": { @@ -8584,12 +8138,12 @@ } ] }, - "jsii-calc.OverrideReturnsObject": { + "jsii-calc.compliance.OverrideReturnsObject": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.OverrideReturnsObject", + "fqn": "jsii-calc.compliance.OverrideReturnsObject", "initializer": {}, "kind": "class", "locationInModule": { @@ -8610,7 +8164,7 @@ { "name": "obj", "type": { - "fqn": "jsii-calc.IReturnsNumber" + "fqn": "jsii-calc.compliance.IReturnsNumber" } } ], @@ -8621,22 +8175,24 @@ } } ], - "name": "OverrideReturnsObject" + "name": "OverrideReturnsObject", + "namespace": "compliance" }, - "jsii-calc.ParentStruct982": { + "jsii-calc.compliance.ParentStruct982": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental", "summary": "https://github.com/aws/jsii/issues/982." }, - "fqn": "jsii-calc.ParentStruct982", + "fqn": "jsii-calc.compliance.ParentStruct982", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 2241 }, "name": "ParentStruct982", + "namespace": "compliance", "properties": [ { "abstract": true, @@ -8655,13 +8211,13 @@ } ] }, - "jsii-calc.PartiallyInitializedThisConsumer": { + "jsii-calc.compliance.PartiallyInitializedThisConsumer": { "abstract": true, "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.PartiallyInitializedThisConsumer", + "fqn": "jsii-calc.compliance.PartiallyInitializedThisConsumer", "initializer": {}, "kind": "class", "locationInModule": { @@ -8683,7 +8239,7 @@ { "name": "obj", "type": { - "fqn": "jsii-calc.ConstructorPassesThisOut" + "fqn": "jsii-calc.compliance.ConstructorPassesThisOut" } }, { @@ -8695,7 +8251,7 @@ { "name": "ev", "type": { - "fqn": "jsii-calc.AllTypesEnum" + "fqn": "jsii-calc.compliance.AllTypesEnum" } } ], @@ -8706,14 +8262,15 @@ } } ], - "name": "PartiallyInitializedThisConsumer" + "name": "PartiallyInitializedThisConsumer", + "namespace": "compliance" }, - "jsii-calc.Polymorphism": { + "jsii-calc.compliance.Polymorphism": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.Polymorphism", + "fqn": "jsii-calc.compliance.Polymorphism", "initializer": {}, "kind": "class", "locationInModule": { @@ -8745,149 +8302,15 @@ } } ], - "name": "Polymorphism" + "name": "Polymorphism", + "namespace": "compliance" }, - "jsii-calc.Power": { + "jsii-calc.compliance.PublicClass": { "assembly": "jsii-calc", - "base": "jsii-calc.composition.CompositeOperation", "docs": { - "stability": "experimental", - "summary": "The power operation." + "stability": "experimental" }, - "fqn": "jsii-calc.Power", - "initializer": { - "docs": { - "stability": "experimental", - "summary": "Creates a Power operation." - }, - "parameters": [ - { - "docs": { - "summary": "The base of the power." - }, - "name": "base", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - }, - { - "docs": { - "summary": "The number of times to multiply." - }, - "name": "pow", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 211 - }, - "name": "Power", - "properties": [ - { - "docs": { - "stability": "experimental", - "summary": "The base of the power." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 218 - }, - "name": "base", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - }, - { - "docs": { - "remarks": "Must be implemented by derived classes.", - "stability": "experimental", - "summary": "The expression that this operation consists of." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 222 - }, - "name": "expression", - "overrides": "jsii-calc.composition.CompositeOperation", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - }, - { - "docs": { - "stability": "experimental", - "summary": "The number of times to multiply." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 218 - }, - "name": "pow", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - } - ] - }, - "jsii-calc.PropertyNamedProperty": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Reproduction for https://github.com/aws/jsii/issues/1113 Where a method or property named \"property\" would result in impossible to load Python code." - }, - "fqn": "jsii-calc.PropertyNamedProperty", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 382 - }, - "name": "PropertyNamedProperty", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 383 - }, - "name": "property", - "type": { - "primitive": "string" - } - }, - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 384 - }, - "name": "yetAnoterOne", - "type": { - "primitive": "boolean" - } - } - ] - }, - "jsii-calc.PublicClass": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.PublicClass", + "fqn": "jsii-calc.compliance.PublicClass", "initializer": {}, "kind": "class", "locationInModule": { @@ -8906,14 +8329,15 @@ "name": "hello" } ], - "name": "PublicClass" + "name": "PublicClass", + "namespace": "compliance" }, - "jsii-calc.PythonReservedWords": { + "jsii-calc.compliance.PythonReservedWords": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.PythonReservedWords", + "fqn": "jsii-calc.compliance.PythonReservedWords", "initializer": {}, "kind": "class", "locationInModule": { @@ -9242,15 +8666,16 @@ "name": "yield" } ], - "name": "PythonReservedWords" + "name": "PythonReservedWords", + "namespace": "compliance" }, - "jsii-calc.ReferenceEnumFromScopedPackage": { + "jsii-calc.compliance.ReferenceEnumFromScopedPackage": { "assembly": "jsii-calc", "docs": { "stability": "experimental", "summary": "See awslabs/jsii#138." }, - "fqn": "jsii-calc.ReferenceEnumFromScopedPackage", + "fqn": "jsii-calc.compliance.ReferenceEnumFromScopedPackage", "initializer": {}, "kind": "class", "locationInModule": { @@ -9294,6 +8719,7 @@ } ], "name": "ReferenceEnumFromScopedPackage", + "namespace": "compliance", "properties": [ { "docs": { @@ -9311,7 +8737,7 @@ } ] }, - "jsii-calc.ReturnsPrivateImplementationOfInterface": { + "jsii-calc.compliance.ReturnsPrivateImplementationOfInterface": { "assembly": "jsii-calc", "docs": { "returns": "an instance of an un-exported class that extends `ExportedBaseClass`, declared as `IPrivatelyImplemented`.", @@ -9319,7 +8745,7 @@ "stability": "experimental", "summary": "Helps ensure the JSII kernel & runtime cooperate correctly when an un-exported instance of a class is returned with a declared type that is an exported interface, and the instance inherits from an exported class." }, - "fqn": "jsii-calc.ReturnsPrivateImplementationOfInterface", + "fqn": "jsii-calc.compliance.ReturnsPrivateImplementationOfInterface", "initializer": {}, "kind": "class", "locationInModule": { @@ -9327,6 +8753,7 @@ "line": 1323 }, "name": "ReturnsPrivateImplementationOfInterface", + "namespace": "compliance", "properties": [ { "docs": { @@ -9339,12 +8766,12 @@ }, "name": "privateImplementation", "type": { - "fqn": "jsii-calc.IPrivatelyImplemented" + "fqn": "jsii-calc.compliance.IPrivatelyImplemented" } } ] }, - "jsii-calc.RootStruct": { + "jsii-calc.compliance.RootStruct": { "assembly": "jsii-calc", "datatype": true, "docs": { @@ -9352,13 +8779,14 @@ "stability": "experimental", "summary": "This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary." }, - "fqn": "jsii-calc.RootStruct", + "fqn": "jsii-calc.compliance.RootStruct", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 2184 }, "name": "RootStruct", + "namespace": "compliance", "properties": [ { "abstract": true, @@ -9389,17 +8817,17 @@ "name": "nestedStruct", "optional": true, "type": { - "fqn": "jsii-calc.NestedStruct" + "fqn": "jsii-calc.compliance.NestedStruct" } } ] }, - "jsii-calc.RootStructValidator": { + "jsii-calc.compliance.RootStructValidator": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.RootStructValidator", + "fqn": "jsii-calc.compliance.RootStructValidator", "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", @@ -9419,21 +8847,22 @@ { "name": "struct", "type": { - "fqn": "jsii-calc.RootStruct" + "fqn": "jsii-calc.compliance.RootStruct" } } ], "static": true } ], - "name": "RootStructValidator" + "name": "RootStructValidator", + "namespace": "compliance" }, - "jsii-calc.RuntimeTypeChecking": { + "jsii-calc.compliance.RuntimeTypeChecking": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.RuntimeTypeChecking", + "fqn": "jsii-calc.compliance.RuntimeTypeChecking", "initializer": {}, "kind": "class", "locationInModule": { @@ -9526,21 +8955,23 @@ ] } ], - "name": "RuntimeTypeChecking" + "name": "RuntimeTypeChecking", + "namespace": "compliance" }, - "jsii-calc.SecondLevelStruct": { + "jsii-calc.compliance.SecondLevelStruct": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.SecondLevelStruct", + "fqn": "jsii-calc.compliance.SecondLevelStruct", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 1799 }, "name": "SecondLevelStruct", + "namespace": "compliance", "properties": [ { "abstract": true, @@ -9577,14 +9008,14 @@ } ] }, - "jsii-calc.SingleInstanceTwoTypes": { + "jsii-calc.compliance.SingleInstanceTwoTypes": { "assembly": "jsii-calc", "docs": { "remarks": "JSII clients can instantiate 2 different strongly-typed wrappers for the same\nobject. Unfortunately, this will break object equality, but if we didn't do\nthis it would break runtime type checks in the JVM or CLR.", "stability": "experimental", "summary": "Test that a single instance can be returned under two different FQNs." }, - "fqn": "jsii-calc.SingleInstanceTwoTypes", + "fqn": "jsii-calc.compliance.SingleInstanceTwoTypes", "initializer": {}, "kind": "class", "locationInModule": { @@ -9603,7 +9034,7 @@ "name": "interface1", "returns": { "type": { - "fqn": "jsii-calc.InbetweenClass" + "fqn": "jsii-calc.compliance.InbetweenClass" } } }, @@ -9618,21 +9049,22 @@ "name": "interface2", "returns": { "type": { - "fqn": "jsii-calc.IPublicInterface" + "fqn": "jsii-calc.compliance.IPublicInterface" } } } ], - "name": "SingleInstanceTwoTypes" + "name": "SingleInstanceTwoTypes", + "namespace": "compliance" }, - "jsii-calc.SingletonInt": { + "jsii-calc.compliance.SingletonInt": { "assembly": "jsii-calc", "docs": { "remarks": "https://github.com/aws/jsii/issues/231", "stability": "experimental", "summary": "Verifies that singleton enums are handled correctly." }, - "fqn": "jsii-calc.SingletonInt", + "fqn": "jsii-calc.compliance.SingletonInt", "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", @@ -9663,15 +9095,16 @@ } } ], - "name": "SingletonInt" + "name": "SingletonInt", + "namespace": "compliance" }, - "jsii-calc.SingletonIntEnum": { + "jsii-calc.compliance.SingletonIntEnum": { "assembly": "jsii-calc", "docs": { "stability": "experimental", "summary": "A singleton integer." }, - "fqn": "jsii-calc.SingletonIntEnum", + "fqn": "jsii-calc.compliance.SingletonIntEnum", "kind": "enum", "locationInModule": { "filename": "lib/compliance.ts", @@ -9686,16 +9119,17 @@ "name": "SINGLETON_INT" } ], - "name": "SingletonIntEnum" + "name": "SingletonIntEnum", + "namespace": "compliance" }, - "jsii-calc.SingletonString": { + "jsii-calc.compliance.SingletonString": { "assembly": "jsii-calc", "docs": { "remarks": "https://github.com/aws/jsii/issues/231", "stability": "experimental", "summary": "Verifies that singleton enums are handled correctly." }, - "fqn": "jsii-calc.SingletonString", + "fqn": "jsii-calc.compliance.SingletonString", "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", @@ -9726,15 +9160,16 @@ } } ], - "name": "SingletonString" + "name": "SingletonString", + "namespace": "compliance" }, - "jsii-calc.SingletonStringEnum": { + "jsii-calc.compliance.SingletonStringEnum": { "assembly": "jsii-calc", "docs": { "stability": "experimental", "summary": "A singleton string." }, - "fqn": "jsii-calc.SingletonStringEnum", + "fqn": "jsii-calc.compliance.SingletonStringEnum", "kind": "enum", "locationInModule": { "filename": "lib/compliance.ts", @@ -9749,65 +9184,70 @@ "name": "SINGLETON_STRING" } ], - "name": "SingletonStringEnum" + "name": "SingletonStringEnum", + "namespace": "compliance" }, - "jsii-calc.SmellyStruct": { + "jsii-calc.compliance.SomeTypeJsii976": { "assembly": "jsii-calc", - "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.SmellyStruct", - "kind": "interface", + "fqn": "jsii-calc.compliance.SomeTypeJsii976", + "initializer": {}, + "kind": "class", "locationInModule": { - "filename": "lib/calculator.ts", - "line": 393 + "filename": "lib/compliance.ts", + "line": 2221 }, - "name": "SmellyStruct", - "properties": [ + "methods": [ { - "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 394 + "filename": "lib/compliance.ts", + "line": 2231 }, - "name": "property", - "type": { - "primitive": "string" - } + "name": "returnAnonymous", + "returns": { + "type": { + "primitive": "any" + } + }, + "static": true }, { - "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 395 + "filename": "lib/compliance.ts", + "line": 2223 }, - "name": "yetAnoterOne", - "type": { - "primitive": "boolean" - } + "name": "returnReturn", + "returns": { + "type": { + "fqn": "jsii-calc.compliance.IReturnJsii976" + } + }, + "static": true } - ] + ], + "name": "SomeTypeJsii976", + "namespace": "compliance" }, - "jsii-calc.SomeTypeJsii976": { + "jsii-calc.compliance.StaticContext": { "assembly": "jsii-calc", "docs": { - "stability": "experimental" + "remarks": "https://github.com/awslabs/aws-cdk/issues/2304", + "stability": "experimental", + "summary": "This is used to validate the ability to use `this` from within a static context." }, - "fqn": "jsii-calc.SomeTypeJsii976", - "initializer": {}, + "fqn": "jsii-calc.compliance.StaticContext", "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2221 + "line": 1677 }, "methods": [ { @@ -9816,273 +9256,92 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2231 + "line": 1680 }, - "name": "returnAnonymous", + "name": "canAccessStaticContext", "returns": { "type": { - "primitive": "any" + "primitive": "boolean" } }, "static": true - }, + } + ], + "name": "StaticContext", + "namespace": "compliance", + "properties": [ { "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2223 - }, - "name": "returnReturn", - "returns": { - "type": { - "fqn": "jsii-calc.IReturnJsii976" - } + "line": 1688 }, - "static": true + "name": "staticVariable", + "static": true, + "type": { + "primitive": "boolean" + } } - ], - "name": "SomeTypeJsii976" + ] }, - "jsii-calc.StableClass": { + "jsii-calc.compliance.Statics": { "assembly": "jsii-calc", "docs": { - "stability": "stable" + "stability": "experimental" }, - "fqn": "jsii-calc.StableClass", + "fqn": "jsii-calc.compliance.Statics", "initializer": { "docs": { - "stability": "stable" + "stability": "experimental" }, "parameters": [ { - "name": "readonlyString", + "name": "value", "type": { "primitive": "string" } - }, - { - "name": "mutableNumber", - "optional": true, - "type": { - "primitive": "number" - } } ] }, "kind": "class", "locationInModule": { - "filename": "lib/stability.ts", - "line": 51 + "filename": "lib/compliance.ts", + "line": 681 }, "methods": [ { "docs": { - "stability": "stable" + "stability": "experimental", + "summary": "Jsdocs for static method." }, "locationInModule": { - "filename": "lib/stability.ts", - "line": 62 - }, - "name": "method" - } - ], - "name": "StableClass", - "properties": [ - { - "docs": { - "stability": "stable" + "filename": "lib/compliance.ts", + "line": 689 }, - "immutable": true, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 53 + "name": "staticMethod", + "parameters": [ + { + "docs": { + "summary": "The name of the person to say hello to." + }, + "name": "name", + "type": { + "primitive": "string" + } + } + ], + "returns": { + "type": { + "primitive": "string" + } }, - "name": "readonlyProperty", - "type": { - "primitive": "string" - } + "static": true }, { "docs": { - "stability": "stable" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 55 - }, - "name": "mutableProperty", - "optional": true, - "type": { - "primitive": "number" - } - } - ] - }, - "jsii-calc.StableEnum": { - "assembly": "jsii-calc", - "docs": { - "stability": "stable" - }, - "fqn": "jsii-calc.StableEnum", - "kind": "enum", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 65 - }, - "members": [ - { - "docs": { - "stability": "stable" - }, - "name": "OPTION_A" - }, - { - "docs": { - "stability": "stable" - }, - "name": "OPTION_B" - } - ], - "name": "StableEnum" - }, - "jsii-calc.StableStruct": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "stable" - }, - "fqn": "jsii-calc.StableStruct", - "kind": "interface", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 39 - }, - "name": "StableStruct", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "stable" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 41 - }, - "name": "readonlyProperty", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.StaticContext": { - "assembly": "jsii-calc", - "docs": { - "remarks": "https://github.com/awslabs/aws-cdk/issues/2304", - "stability": "experimental", - "summary": "This is used to validate the ability to use `this` from within a static context." - }, - "fqn": "jsii-calc.StaticContext", - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1677 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1680 - }, - "name": "canAccessStaticContext", - "returns": { - "type": { - "primitive": "boolean" - } - }, - "static": true - } - ], - "name": "StaticContext", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1688 - }, - "name": "staticVariable", - "static": true, - "type": { - "primitive": "boolean" - } - } - ] - }, - "jsii-calc.Statics": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.Statics", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "value", - "type": { - "primitive": "string" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 681 - }, - "methods": [ - { - "docs": { - "stability": "experimental", - "summary": "Jsdocs for static method." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 689 - }, - "name": "staticMethod", - "parameters": [ - { - "docs": { - "summary": "The name of the person to say hello to." - }, - "name": "name", - "type": { - "primitive": "string" - } - } - ], - "returns": { - "type": { - "primitive": "string" - } - }, - "static": true - }, - { - "docs": { - "stability": "experimental" + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", @@ -10097,6 +9356,7 @@ } ], "name": "Statics", + "namespace": "compliance", "properties": [ { "const": true, @@ -10128,7 +9388,7 @@ "name": "ConstObj", "static": true, "type": { - "fqn": "jsii-calc.DoubleTrouble" + "fqn": "jsii-calc.compliance.DoubleTrouble" } }, { @@ -10183,7 +9443,7 @@ "name": "instance", "static": true, "type": { - "fqn": "jsii-calc.Statics" + "fqn": "jsii-calc.compliance.Statics" } }, { @@ -10216,12 +9476,12 @@ } ] }, - "jsii-calc.StringEnum": { + "jsii-calc.compliance.StringEnum": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.StringEnum", + "fqn": "jsii-calc.compliance.StringEnum", "kind": "enum", "locationInModule": { "filename": "lib/compliance.ts", @@ -10247,14 +9507,15 @@ "name": "C" } ], - "name": "StringEnum" + "name": "StringEnum", + "namespace": "compliance" }, - "jsii-calc.StripInternal": { + "jsii-calc.compliance.StripInternal": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.StripInternal", + "fqn": "jsii-calc.compliance.StripInternal", "initializer": {}, "kind": "class", "locationInModule": { @@ -10262,6 +9523,7 @@ "line": 1480 }, "name": "StripInternal", + "namespace": "compliance", "properties": [ { "docs": { @@ -10278,20 +9540,21 @@ } ] }, - "jsii-calc.StructA": { + "jsii-calc.compliance.StructA": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental", "summary": "We can serialize and deserialize structs without silently ignoring optional fields." }, - "fqn": "jsii-calc.StructA", + "fqn": "jsii-calc.compliance.StructA", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 2003 }, "name": "StructA", + "namespace": "compliance", "properties": [ { "abstract": true, @@ -10342,20 +9605,21 @@ } ] }, - "jsii-calc.StructB": { + "jsii-calc.compliance.StructB": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental", "summary": "This intentionally overlaps with StructA (where only requiredString is provided) to test htat the kernel properly disambiguates those." }, - "fqn": "jsii-calc.StructB", + "fqn": "jsii-calc.compliance.StructB", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 2012 }, "name": "StructB", + "namespace": "compliance", "properties": [ { "abstract": true, @@ -10401,12 +9665,12 @@ "name": "optionalStructA", "optional": true, "type": { - "fqn": "jsii-calc.StructA" + "fqn": "jsii-calc.compliance.StructA" } } ] }, - "jsii-calc.StructParameterType": { + "jsii-calc.compliance.StructParameterType": { "assembly": "jsii-calc", "datatype": true, "docs": { @@ -10414,13 +9678,14 @@ "stability": "experimental", "summary": "Verifies that, in languages that do keyword lifting (e.g: Python), having a struct member with the same name as a positional parameter results in the correct code being emitted." }, - "fqn": "jsii-calc.StructParameterType", + "fqn": "jsii-calc.compliance.StructParameterType", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 2421 }, "name": "StructParameterType", + "namespace": "compliance", "properties": [ { "abstract": true, @@ -10455,13 +9720,13 @@ } ] }, - "jsii-calc.StructPassing": { + "jsii-calc.compliance.StructPassing": { "assembly": "jsii-calc", "docs": { "stability": "external", "summary": "Just because we can." }, - "fqn": "jsii-calc.StructPassing", + "fqn": "jsii-calc.compliance.StructPassing", "initializer": {}, "kind": "class", "locationInModule": { @@ -10488,7 +9753,7 @@ { "name": "inputs", "type": { - "fqn": "jsii-calc.TopLevelStruct" + "fqn": "jsii-calc.compliance.TopLevelStruct" }, "variadic": true } @@ -10520,26 +9785,27 @@ { "name": "input", "type": { - "fqn": "jsii-calc.TopLevelStruct" + "fqn": "jsii-calc.compliance.TopLevelStruct" } } ], "returns": { "type": { - "fqn": "jsii-calc.TopLevelStruct" + "fqn": "jsii-calc.compliance.TopLevelStruct" } }, "static": true } ], - "name": "StructPassing" + "name": "StructPassing", + "namespace": "compliance" }, - "jsii-calc.StructUnionConsumer": { + "jsii-calc.compliance.StructUnionConsumer": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.StructUnionConsumer", + "fqn": "jsii-calc.compliance.StructUnionConsumer", "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", @@ -10562,10 +9828,10 @@ "union": { "types": [ { - "fqn": "jsii-calc.StructA" + "fqn": "jsii-calc.compliance.StructA" }, { - "fqn": "jsii-calc.StructB" + "fqn": "jsii-calc.compliance.StructB" } ] } @@ -10595,10 +9861,10 @@ "union": { "types": [ { - "fqn": "jsii-calc.StructA" + "fqn": "jsii-calc.compliance.StructA" }, { - "fqn": "jsii-calc.StructB" + "fqn": "jsii-calc.compliance.StructB" } ] } @@ -10613,21 +9879,23 @@ "static": true } ], - "name": "StructUnionConsumer" + "name": "StructUnionConsumer", + "namespace": "compliance" }, - "jsii-calc.StructWithJavaReservedWords": { + "jsii-calc.compliance.StructWithJavaReservedWords": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.StructWithJavaReservedWords", + "fqn": "jsii-calc.compliance.StructWithJavaReservedWords", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 1827 }, "name": "StructWithJavaReservedWords", + "namespace": "compliance", "properties": [ { "abstract": true, @@ -10694,71 +9962,13 @@ } ] }, - "jsii-calc.Sum": { - "assembly": "jsii-calc", - "base": "jsii-calc.composition.CompositeOperation", - "docs": { - "stability": "experimental", - "summary": "An operation that sums multiple values." - }, - "fqn": "jsii-calc.Sum", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 186 - }, - "name": "Sum", - "properties": [ - { - "docs": { - "remarks": "Must be implemented by derived classes.", - "stability": "experimental", - "summary": "The expression that this operation consists of." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 199 - }, - "name": "expression", - "overrides": "jsii-calc.composition.CompositeOperation", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - }, - { - "docs": { - "stability": "experimental", - "summary": "The parts to sum." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 191 - }, - "name": "parts", - "type": { - "collection": { - "elementtype": { - "fqn": "@scope/jsii-calc-lib.Value" - }, - "kind": "array" - } - } - } - ] - }, - "jsii-calc.SupportsNiceJavaBuilder": { + "jsii-calc.compliance.SupportsNiceJavaBuilder": { "assembly": "jsii-calc", - "base": "jsii-calc.SupportsNiceJavaBuilderWithRequiredProps", + "base": "jsii-calc.compliance.SupportsNiceJavaBuilderWithRequiredProps", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.SupportsNiceJavaBuilder", + "fqn": "jsii-calc.compliance.SupportsNiceJavaBuilder", "initializer": { "docs": { "stability": "experimental" @@ -10790,7 +10000,7 @@ "name": "props", "optional": true, "type": { - "fqn": "jsii-calc.SupportsNiceJavaBuilderProps" + "fqn": "jsii-calc.compliance.SupportsNiceJavaBuilderProps" } }, { @@ -10812,6 +10022,7 @@ "line": 1940 }, "name": "SupportsNiceJavaBuilder", + "namespace": "compliance", "properties": [ { "docs": { @@ -10824,7 +10035,7 @@ "line": 1950 }, "name": "id", - "overrides": "jsii-calc.SupportsNiceJavaBuilderWithRequiredProps", + "overrides": "jsii-calc.compliance.SupportsNiceJavaBuilderWithRequiredProps", "type": { "primitive": "number" } @@ -10850,19 +10061,20 @@ } ] }, - "jsii-calc.SupportsNiceJavaBuilderProps": { + "jsii-calc.compliance.SupportsNiceJavaBuilderProps": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.SupportsNiceJavaBuilderProps", + "fqn": "jsii-calc.compliance.SupportsNiceJavaBuilderProps", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 1955 }, "name": "SupportsNiceJavaBuilderProps", + "namespace": "compliance", "properties": [ { "abstract": true, @@ -10900,13 +10112,13 @@ } ] }, - "jsii-calc.SupportsNiceJavaBuilderWithRequiredProps": { + "jsii-calc.compliance.SupportsNiceJavaBuilderWithRequiredProps": { "assembly": "jsii-calc", "docs": { "stability": "experimental", "summary": "We can generate fancy builders in Java for classes which take a mix of positional & struct parameters." }, - "fqn": "jsii-calc.SupportsNiceJavaBuilderWithRequiredProps", + "fqn": "jsii-calc.compliance.SupportsNiceJavaBuilderWithRequiredProps", "initializer": { "docs": { "stability": "experimental" @@ -10927,7 +10139,7 @@ }, "name": "props", "type": { - "fqn": "jsii-calc.SupportsNiceJavaBuilderProps" + "fqn": "jsii-calc.compliance.SupportsNiceJavaBuilderProps" } } ] @@ -10938,6 +10150,7 @@ "line": 1927 }, "name": "SupportsNiceJavaBuilderWithRequiredProps", + "namespace": "compliance", "properties": [ { "docs": { @@ -10985,12 +10198,12 @@ } ] }, - "jsii-calc.SyncVirtualMethods": { + "jsii-calc.compliance.SyncVirtualMethods": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.SyncVirtualMethods", + "fqn": "jsii-calc.compliance.SyncVirtualMethods", "initializer": {}, "kind": "class", "locationInModule": { @@ -11168,6 +10381,7 @@ } ], "name": "SyncVirtualMethods", + "namespace": "compliance", "properties": [ { "docs": { @@ -11237,243 +10451,1237 @@ }, { "docs": { - "stability": "experimental" + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 411 + }, + "name": "valueOfOtherProperty", + "type": { + "primitive": "string" + } + } + ] + }, + "jsii-calc.compliance.Thrower": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.Thrower", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 643 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 644 + }, + "name": "throwError" + } + ], + "name": "Thrower", + "namespace": "compliance" + }, + "jsii-calc.compliance.TopLevelStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.TopLevelStruct", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1782 + }, + "name": "TopLevelStruct", + "namespace": "compliance", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental", + "summary": "This is a required field." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1786 + }, + "name": "required", + "type": { + "primitive": "string" + } + }, + { + "abstract": true, + "docs": { + "stability": "experimental", + "summary": "A union to really stress test our serialization." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1796 + }, + "name": "secondLevel", + "type": { + "union": { + "types": [ + { + "primitive": "number" + }, + { + "fqn": "jsii-calc.compliance.SecondLevelStruct" + } + ] + } + } + }, + { + "abstract": true, + "docs": { + "stability": "experimental", + "summary": "You don't have to pass this." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1791 + }, + "name": "optional", + "optional": true, + "type": { + "primitive": "string" + } + } + ] + }, + "jsii-calc.compliance.UnionProperties": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.UnionProperties", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 963 + }, + "name": "UnionProperties", + "namespace": "compliance", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 965 + }, + "name": "bar", + "type": { + "union": { + "types": [ + { + "primitive": "string" + }, + { + "primitive": "number" + }, + { + "fqn": "jsii-calc.compliance.AllTypes" + } + ] + } + } + }, + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 964 + }, + "name": "foo", + "optional": true, + "type": { + "union": { + "types": [ + { + "primitive": "string" + }, + { + "primitive": "number" + } + ] + } + } + } + ] + }, + "jsii-calc.compliance.UseBundledDependency": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.UseBundledDependency", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 968 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 969 + }, + "name": "value", + "returns": { + "type": { + "primitive": "any" + } + } + } + ], + "name": "UseBundledDependency", + "namespace": "compliance" + }, + "jsii-calc.compliance.UseCalcBase": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Depend on a type from jsii-calc-base as a test for awslabs/jsii#128." + }, + "fqn": "jsii-calc.compliance.UseCalcBase", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1017 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1018 + }, + "name": "hello", + "returns": { + "type": { + "fqn": "@scope/jsii-calc-base.Base" + } + } + } + ], + "name": "UseCalcBase", + "namespace": "compliance" + }, + "jsii-calc.compliance.UsesInterfaceWithProperties": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.UsesInterfaceWithProperties", + "initializer": { + "docs": { + "stability": "experimental" + }, + "parameters": [ + { + "name": "obj", + "type": { + "fqn": "jsii-calc.compliance.IInterfaceWithProperties" + } + } + ] + }, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 587 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 592 + }, + "name": "justRead", + "returns": { + "type": { + "primitive": "string" + } + } + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 601 + }, + "name": "readStringAndNumber", + "parameters": [ + { + "name": "ext", + "type": { + "fqn": "jsii-calc.compliance.IInterfaceWithPropertiesExtension" + } + } + ], + "returns": { + "type": { + "primitive": "string" + } + } + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 596 + }, + "name": "writeAndRead", + "parameters": [ + { + "name": "value", + "type": { + "primitive": "string" + } + } + ], + "returns": { + "type": { + "primitive": "string" + } + } + } + ], + "name": "UsesInterfaceWithProperties", + "namespace": "compliance", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 588 + }, + "name": "obj", + "type": { + "fqn": "jsii-calc.compliance.IInterfaceWithProperties" + } + } + ] + }, + "jsii-calc.compliance.VariadicInvoker": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.VariadicInvoker", + "initializer": { + "docs": { + "stability": "experimental" + }, + "parameters": [ + { + "name": "method", + "type": { + "fqn": "jsii-calc.compliance.VariadicMethod" + } + } + ] + }, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 672 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 675 + }, + "name": "asArray", + "parameters": [ + { + "name": "values", + "type": { + "primitive": "number" + }, + "variadic": true + } + ], + "returns": { + "type": { + "collection": { + "elementtype": { + "primitive": "number" + }, + "kind": "array" + } + } + }, + "variadic": true + } + ], + "name": "VariadicInvoker", + "namespace": "compliance" + }, + "jsii-calc.compliance.VariadicMethod": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.VariadicMethod", + "initializer": { + "docs": { + "stability": "experimental" + }, + "parameters": [ + { + "docs": { + "summary": "a prefix that will be use for all values returned by `#asArray`." + }, + "name": "prefix", + "type": { + "primitive": "number" + }, + "variadic": true + } + ], + "variadic": true + }, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 653 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 667 + }, + "name": "asArray", + "parameters": [ + { + "docs": { + "summary": "the first element of the array to be returned (after the `prefix` provided at construction time)." + }, + "name": "first", + "type": { + "primitive": "number" + } + }, + { + "docs": { + "summary": "other elements to be included in the array." + }, + "name": "others", + "type": { + "primitive": "number" + }, + "variadic": true + } + ], + "returns": { + "type": { + "collection": { + "elementtype": { + "primitive": "number" + }, + "kind": "array" + } + } + }, + "variadic": true + } + ], + "name": "VariadicMethod", + "namespace": "compliance" + }, + "jsii-calc.compliance.VirtualMethodPlayground": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.VirtualMethodPlayground", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 436 + }, + "methods": [ + { + "async": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 464 + }, + "name": "overrideMeAsync", + "parameters": [ + { + "name": "index", + "type": { + "primitive": "number" + } + } + ], + "returns": { + "type": { + "primitive": "number" + } + } + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 468 + }, + "name": "overrideMeSync", + "parameters": [ + { + "name": "index", + "type": { + "primitive": "number" + } + } + ], + "returns": { + "type": { + "primitive": "number" + } + } + }, + { + "async": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 446 + }, + "name": "parallelSumAsync", + "parameters": [ + { + "name": "count", + "type": { + "primitive": "number" + } + } + ], + "returns": { + "type": { + "primitive": "number" + } + } + }, + { + "async": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 437 + }, + "name": "serialSumAsync", + "parameters": [ + { + "name": "count", + "type": { + "primitive": "number" + } + } + ], + "returns": { + "type": { + "primitive": "number" + } + } + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 456 + }, + "name": "sumSync", + "parameters": [ + { + "name": "count", + "type": { + "primitive": "number" + } + } + ], + "returns": { + "type": { + "primitive": "number" + } + } + } + ], + "name": "VirtualMethodPlayground", + "namespace": "compliance" + }, + "jsii-calc.compliance.VoidCallback": { + "abstract": true, + "assembly": "jsii-calc", + "docs": { + "remarks": "- Implement `overrideMe` (method does not have to do anything).\n- Invoke `callMe`\n- Verify that `methodWasCalled` is `true`.", + "stability": "experimental", + "summary": "This test is used to validate the runtimes can return correctly from a void callback." + }, + "fqn": "jsii-calc.compliance.VoidCallback", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1706 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1711 + }, + "name": "callMe" + }, + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1715 + }, + "name": "overrideMe", + "protected": true + } + ], + "name": "VoidCallback", + "namespace": "compliance", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1708 + }, + "name": "methodWasCalled", + "type": { + "primitive": "boolean" + } + } + ] + }, + "jsii-calc.compliance.WithPrivatePropertyInConstructor": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Verifies that private property declarations in constructor arguments are hidden." + }, + "fqn": "jsii-calc.compliance.WithPrivatePropertyInConstructor", + "initializer": { + "docs": { + "stability": "experimental" + }, + "parameters": [ + { + "name": "privateField", + "optional": true, + "type": { + "primitive": "string" + } + } + ] + }, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1721 + }, + "name": "WithPrivatePropertyInConstructor", + "namespace": "compliance", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1724 + }, + "name": "success", + "type": { + "primitive": "boolean" + } + } + ] + }, + "jsii-calc.composition.CompositeOperation": { + "abstract": true, + "assembly": "jsii-calc", + "base": "@scope/jsii-calc-lib.Operation", + "docs": { + "stability": "experimental", + "summary": "Abstract operation composed from an expression of other operations." + }, + "fqn": "jsii-calc.composition.CompositeOperation", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 131 + }, + "methods": [ + { + "docs": { + "stability": "experimental", + "summary": "String representation of the value." + }, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 157 + }, + "name": "toString", + "overrides": "@scope/jsii-calc-lib.Operation", + "returns": { + "type": { + "primitive": "string" + } + } + } + ], + "name": "CompositeOperation", + "namespace": "composition", + "properties": [ + { + "abstract": true, + "docs": { + "remarks": "Must be implemented by derived classes.", + "stability": "experimental", + "summary": "The expression that this operation consists of." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 155 + }, + "name": "expression", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" + } + }, + { + "docs": { + "stability": "experimental", + "summary": "The value." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 147 + }, + "name": "value", + "overrides": "@scope/jsii-calc-lib.Value", + "type": { + "primitive": "number" + } + }, + { + "docs": { + "stability": "experimental", + "summary": "A set of postfixes to include in a decorated .toString()." + }, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 145 + }, + "name": "decorationPostfixes", + "type": { + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "array" + } + } + }, + { + "docs": { + "stability": "experimental", + "summary": "A set of prefixes to include in a decorated .toString()." + }, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 140 + }, + "name": "decorationPrefixes", + "type": { + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "array" + } + } + }, + { + "docs": { + "stability": "experimental", + "summary": "The .toString() style." + }, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 135 + }, + "name": "stringStyle", + "type": { + "fqn": "jsii-calc.composition.CompositeOperation.CompositionStringStyle" + } + } + ] + }, + "jsii-calc.composition.CompositeOperation.CompositionStringStyle": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Style of .toString() output for CompositeOperation." + }, + "fqn": "jsii-calc.composition.CompositeOperation.CompositionStringStyle", + "kind": "enum", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 173 + }, + "members": [ + { + "docs": { + "stability": "experimental", + "summary": "Normal string expression." + }, + "name": "NORMAL" + }, + { + "docs": { + "stability": "experimental", + "summary": "Decorated string expression." + }, + "name": "DECORATED" + } + ], + "name": "CompositionStringStyle", + "namespace": "composition.CompositeOperation" + }, + "jsii-calc.documented.DocumentedClass": { + "assembly": "jsii-calc", + "docs": { + "remarks": "This is the meat of the TSDoc comment. It may contain\nmultiple lines and multiple paragraphs.\n\nMultiple paragraphs are separated by an empty line.", + "stability": "stable", + "summary": "Here's the first line of the TSDoc comment." + }, + "fqn": "jsii-calc.documented.DocumentedClass", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/documented.ts", + "line": 11 + }, + "methods": [ + { + "docs": { + "remarks": "This will print out a friendly greeting intended for\nthe indicated person.", + "returns": "A number that everyone knows very well", + "stability": "stable", + "summary": "Greet the indicated person." + }, + "locationInModule": { + "filename": "lib/documented.ts", + "line": 22 + }, + "name": "greet", + "parameters": [ + { + "docs": { + "summary": "The person to be greeted." + }, + "name": "greetee", + "optional": true, + "type": { + "fqn": "jsii-calc.documented.Greetee" + } + } + ], + "returns": { + "type": { + "primitive": "number" + } + } + }, + { + "docs": { + "stability": "experimental", + "summary": "Say ¡Hola!" + }, + "locationInModule": { + "filename": "lib/documented.ts", + "line": 32 + }, + "name": "hola" + } + ], + "name": "DocumentedClass", + "namespace": "documented" + }, + "jsii-calc.documented.Greetee": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental", + "summary": "These are some arguments you can pass to a method." + }, + "fqn": "jsii-calc.documented.Greetee", + "kind": "interface", + "locationInModule": { + "filename": "lib/documented.ts", + "line": 40 + }, + "name": "Greetee", + "namespace": "documented", + "properties": [ + { + "abstract": true, + "docs": { + "default": "world", + "stability": "experimental", + "summary": "The name of the greetee." }, + "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 411 + "filename": "lib/documented.ts", + "line": 46 }, - "name": "valueOfOtherProperty", + "name": "name", + "optional": true, "type": { "primitive": "string" } } ] }, - "jsii-calc.Thrower": { + "jsii-calc.documented.Old": { "assembly": "jsii-calc", "docs": { - "stability": "experimental" + "deprecated": "Use the new class", + "stability": "deprecated", + "summary": "Old class." }, - "fqn": "jsii-calc.Thrower", + "fqn": "jsii-calc.documented.Old", "initializer": {}, "kind": "class", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 643 + "filename": "lib/documented.ts", + "line": 54 }, "methods": [ { "docs": { - "stability": "experimental" + "stability": "deprecated", + "summary": "Doo wop that thing." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 644 + "filename": "lib/documented.ts", + "line": 58 }, - "name": "throwError" + "name": "doAThing" } ], - "name": "Thrower" + "name": "Old", + "namespace": "documented" }, - "jsii-calc.TopLevelStruct": { + "jsii-calc.erasureTests.IJSII417Derived": { "assembly": "jsii-calc", - "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.TopLevelStruct", + "fqn": "jsii-calc.erasureTests.IJSII417Derived", + "interfaces": [ + "jsii-calc.erasureTests.IJSII417PublicBaseOfBase" + ], "kind": "interface", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1782 + "filename": "lib/erasures.ts", + "line": 37 }, - "name": "TopLevelStruct", - "properties": [ + "methods": [ { "abstract": true, "docs": { - "stability": "experimental", - "summary": "This is a required field." + "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1786 + "filename": "lib/erasures.ts", + "line": 35 }, - "name": "required", - "type": { - "primitive": "string" - } + "name": "bar" }, { "abstract": true, "docs": { - "stability": "experimental", - "summary": "A union to really stress test our serialization." + "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1796 + "filename": "lib/erasures.ts", + "line": 38 }, - "name": "secondLevel", - "type": { - "union": { - "types": [ - { - "primitive": "number" - }, - { - "fqn": "jsii-calc.SecondLevelStruct" - } - ] - } - } - }, + "name": "baz" + } + ], + "name": "IJSII417Derived", + "namespace": "erasureTests", + "properties": [ { "abstract": true, "docs": { - "stability": "experimental", - "summary": "You don't have to pass this." + "stability": "experimental" }, "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1791 + "filename": "lib/erasures.ts", + "line": 34 }, - "name": "optional", - "optional": true, + "name": "property", "type": { "primitive": "string" } } ] }, - "jsii-calc.UnaryOperation": { - "abstract": true, + "jsii-calc.erasureTests.IJSII417PublicBaseOfBase": { "assembly": "jsii-calc", - "base": "@scope/jsii-calc-lib.Operation", "docs": { - "stability": "experimental", - "summary": "An operation on a single operand." - }, - "fqn": "jsii-calc.UnaryOperation", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "operand", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - } - ] + "stability": "experimental" }, - "kind": "class", + "fqn": "jsii-calc.erasureTests.IJSII417PublicBaseOfBase", + "kind": "interface", "locationInModule": { - "filename": "lib/calculator.ts", - "line": 93 + "filename": "lib/erasures.ts", + "line": 30 }, - "name": "UnaryOperation", + "methods": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 31 + }, + "name": "foo" + } + ], + "name": "IJSII417PublicBaseOfBase", + "namespace": "erasureTests", "properties": [ { + "abstract": true, "docs": { "stability": "experimental" }, "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 94 + "filename": "lib/erasures.ts", + "line": 28 }, - "name": "operand", + "name": "hasRoot", "type": { - "fqn": "@scope/jsii-calc-lib.Value" + "primitive": "boolean" } } ] }, - "jsii-calc.UnionProperties": { + "jsii-calc.erasureTests.IJsii487External": { "assembly": "jsii-calc", - "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.UnionProperties", + "fqn": "jsii-calc.erasureTests.IJsii487External", "kind": "interface", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 963 + "filename": "lib/erasures.ts", + "line": 45 }, - "name": "UnionProperties", - "properties": [ + "name": "IJsii487External", + "namespace": "erasureTests" + }, + "jsii-calc.erasureTests.IJsii487External2": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.erasureTests.IJsii487External2", + "kind": "interface", + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 46 + }, + "name": "IJsii487External2", + "namespace": "erasureTests" + }, + "jsii-calc.erasureTests.IJsii496": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.erasureTests.IJsii496", + "kind": "interface", + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 54 + }, + "name": "IJsii496", + "namespace": "erasureTests" + }, + "jsii-calc.erasureTests.JSII417Derived": { + "assembly": "jsii-calc", + "base": "jsii-calc.erasureTests.JSII417PublicBaseOfBase", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.erasureTests.JSII417Derived", + "initializer": { + "docs": { + "stability": "experimental" + }, + "parameters": [ + { + "name": "property", + "type": { + "primitive": "string" + } + } + ] + }, + "kind": "class", + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 20 + }, + "methods": [ { - "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 965 + "filename": "lib/erasures.ts", + "line": 21 }, - "name": "bar", - "type": { - "union": { - "types": [ - { - "primitive": "string" - }, - { - "primitive": "number" - }, - { - "fqn": "jsii-calc.AllTypes" - } - ] - } - } + "name": "bar" }, { - "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 964 + "filename": "lib/erasures.ts", + "line": 24 }, - "name": "foo", - "optional": true, - "type": { - "union": { - "types": [ - { - "primitive": "string" - }, - { - "primitive": "number" - } - ] - } + "name": "baz" + } + ], + "name": "JSII417Derived", + "namespace": "erasureTests", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 15 + }, + "name": "property", + "protected": true, + "type": { + "primitive": "string" } } ] }, - "jsii-calc.UseBundledDependency": { + "jsii-calc.erasureTests.JSII417PublicBaseOfBase": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.UseBundledDependency", + "fqn": "jsii-calc.erasureTests.JSII417PublicBaseOfBase", "initializer": {}, "kind": "class", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 968 + "filename": "lib/erasures.ts", + "line": 8 }, "methods": [ { @@ -11481,242 +11689,260 @@ "stability": "experimental" }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 969 + "filename": "lib/erasures.ts", + "line": 9 }, - "name": "value", + "name": "makeInstance", "returns": { "type": { - "primitive": "any" + "fqn": "jsii-calc.erasureTests.JSII417PublicBaseOfBase" } - } + }, + "static": true + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 12 + }, + "name": "foo" } ], - "name": "UseBundledDependency" - }, - "jsii-calc.UseCalcBase": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Depend on a type from jsii-calc-base as a test for awslabs/jsii#128." - }, - "fqn": "jsii-calc.UseCalcBase", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1017 - }, - "methods": [ + "name": "JSII417PublicBaseOfBase", + "namespace": "erasureTests", + "properties": [ { "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1018 + "filename": "lib/erasures.ts", + "line": 6 }, - "name": "hello", - "returns": { - "type": { - "fqn": "@scope/jsii-calc-base.Base" - } + "name": "hasRoot", + "type": { + "primitive": "boolean" } } + ] + }, + "jsii-calc.erasureTests.Jsii487Derived": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.erasureTests.Jsii487Derived", + "initializer": {}, + "interfaces": [ + "jsii-calc.erasureTests.IJsii487External2", + "jsii-calc.erasureTests.IJsii487External" ], - "name": "UseCalcBase" + "kind": "class", + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 48 + }, + "name": "Jsii487Derived", + "namespace": "erasureTests" }, - "jsii-calc.UsesInterfaceWithProperties": { + "jsii-calc.erasureTests.Jsii496Derived": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.UsesInterfaceWithProperties", + "fqn": "jsii-calc.erasureTests.Jsii496Derived", + "initializer": {}, + "interfaces": [ + "jsii-calc.erasureTests.IJsii496" + ], + "kind": "class", + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 56 + }, + "name": "Jsii496Derived", + "namespace": "erasureTests" + }, + "jsii-calc.stability_annotations.DeprecatedClass": { + "assembly": "jsii-calc", + "docs": { + "deprecated": "a pretty boring class", + "stability": "deprecated" + }, + "fqn": "jsii-calc.stability_annotations.DeprecatedClass", "initializer": { "docs": { - "stability": "experimental" + "deprecated": "this constructor is \"just\" okay", + "stability": "deprecated" }, "parameters": [ { - "name": "obj", + "name": "readonlyString", + "type": { + "primitive": "string" + } + }, + { + "name": "mutableNumber", + "optional": true, "type": { - "fqn": "jsii-calc.IInterfaceWithProperties" + "primitive": "number" } } ] }, "kind": "class", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 587 + "filename": "lib/stability.ts", + "line": 85 }, "methods": [ { "docs": { - "stability": "experimental" + "deprecated": "it was a bad idea", + "stability": "deprecated" }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 592 + "filename": "lib/stability.ts", + "line": 96 }, - "name": "justRead", - "returns": { - "type": { - "primitive": "string" - } - } - }, + "name": "method" + } + ], + "name": "DeprecatedClass", + "namespace": "stability_annotations", + "properties": [ { "docs": { - "stability": "experimental" + "deprecated": "this is not always \"wazoo\", be ready to be disappointed", + "stability": "deprecated" }, + "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 601 + "filename": "lib/stability.ts", + "line": 87 }, - "name": "readStringAndNumber", - "parameters": [ - { - "name": "ext", - "type": { - "fqn": "jsii-calc.IInterfaceWithPropertiesExtension" - } - } - ], - "returns": { - "type": { - "primitive": "string" - } + "name": "readonlyProperty", + "type": { + "primitive": "string" } }, { "docs": { - "stability": "experimental" + "deprecated": "shouldn't have been mutable", + "stability": "deprecated" }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 596 + "filename": "lib/stability.ts", + "line": 89 }, - "name": "writeAndRead", - "parameters": [ - { - "name": "value", - "type": { - "primitive": "string" - } - } - ], - "returns": { - "type": { - "primitive": "string" - } + "name": "mutableProperty", + "optional": true, + "type": { + "primitive": "number" } } - ], - "name": "UsesInterfaceWithProperties", - "properties": [ + ] + }, + "jsii-calc.stability_annotations.DeprecatedEnum": { + "assembly": "jsii-calc", + "docs": { + "deprecated": "your deprecated selection of bad options", + "stability": "deprecated" + }, + "fqn": "jsii-calc.stability_annotations.DeprecatedEnum", + "kind": "enum", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 99 + }, + "members": [ { "docs": { - "stability": "experimental" + "deprecated": "option A is not great", + "stability": "deprecated" }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 588 + "name": "OPTION_A" + }, + { + "docs": { + "deprecated": "option B is kinda bad, too", + "stability": "deprecated" }, - "name": "obj", - "type": { - "fqn": "jsii-calc.IInterfaceWithProperties" - } + "name": "OPTION_B" } - ] + ], + "name": "DeprecatedEnum", + "namespace": "stability_annotations" }, - "jsii-calc.VariadicInvoker": { + "jsii-calc.stability_annotations.DeprecatedStruct": { "assembly": "jsii-calc", + "datatype": true, "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.VariadicInvoker", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "method", - "type": { - "fqn": "jsii-calc.VariadicMethod" - } - } - ] + "deprecated": "it just wraps a string", + "stability": "deprecated" }, - "kind": "class", + "fqn": "jsii-calc.stability_annotations.DeprecatedStruct", + "kind": "interface", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 672 + "filename": "lib/stability.ts", + "line": 73 }, - "methods": [ + "name": "DeprecatedStruct", + "namespace": "stability_annotations", + "properties": [ { + "abstract": true, "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 675 + "deprecated": "well, yeah", + "stability": "deprecated" }, - "name": "asArray", - "parameters": [ - { - "name": "values", - "type": { - "primitive": "number" - }, - "variadic": true - } - ], - "returns": { - "type": { - "collection": { - "elementtype": { - "primitive": "number" - }, - "kind": "array" - } - } + "immutable": true, + "locationInModule": { + "filename": "lib/stability.ts", + "line": 75 }, - "variadic": true + "name": "readonlyProperty", + "type": { + "primitive": "string" + } } - ], - "name": "VariadicInvoker" + ] }, - "jsii-calc.VariadicMethod": { + "jsii-calc.stability_annotations.ExperimentalClass": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.VariadicMethod", + "fqn": "jsii-calc.stability_annotations.ExperimentalClass", "initializer": { "docs": { "stability": "experimental" }, "parameters": [ { - "docs": { - "summary": "a prefix that will be use for all values returned by `#asArray`." - }, - "name": "prefix", + "name": "readonlyString", + "type": { + "primitive": "string" + } + }, + { + "name": "mutableNumber", + "optional": true, "type": { "primitive": "number" - }, - "variadic": true + } } - ], - "variadic": true + ] }, "kind": "class", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 653 + "filename": "lib/stability.ts", + "line": 16 }, "methods": [ { @@ -11724,81 +11950,27 @@ "stability": "experimental" }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 667 - }, - "name": "asArray", - "parameters": [ - { - "docs": { - "summary": "the first element of the array to be returned (after the `prefix` provided at construction time)." - }, - "name": "first", - "type": { - "primitive": "number" - } - }, - { - "docs": { - "summary": "other elements to be included in the array." - }, - "name": "others", - "type": { - "primitive": "number" - }, - "variadic": true - } - ], - "returns": { - "type": { - "collection": { - "elementtype": { - "primitive": "number" - }, - "kind": "array" - } - } + "filename": "lib/stability.ts", + "line": 28 }, - "variadic": true + "name": "method" } ], - "name": "VariadicMethod" - }, - "jsii-calc.VirtualMethodPlayground": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.VirtualMethodPlayground", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 436 - }, - "methods": [ + "name": "ExperimentalClass", + "namespace": "stability_annotations", + "properties": [ { - "async": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 464 + "filename": "lib/stability.ts", + "line": 18 }, - "name": "overrideMeAsync", - "parameters": [ - { - "name": "index", - "type": { - "primitive": "number" - } - } - ], - "returns": { - "type": { - "primitive": "number" - } + "name": "readonlyProperty", + "type": { + "primitive": "string" } }, { @@ -11806,355 +11978,349 @@ "stability": "experimental" }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 468 + "filename": "lib/stability.ts", + "line": 20 }, - "name": "overrideMeSync", - "parameters": [ - { - "name": "index", - "type": { - "primitive": "number" - } - } - ], - "returns": { - "type": { - "primitive": "number" - } + "name": "mutableProperty", + "optional": true, + "type": { + "primitive": "number" } - }, + } + ] + }, + "jsii-calc.stability_annotations.ExperimentalEnum": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.stability_annotations.ExperimentalEnum", + "kind": "enum", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 31 + }, + "members": [ { - "async": true, "docs": { "stability": "experimental" }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 446 - }, - "name": "parallelSumAsync", - "parameters": [ - { - "name": "count", - "type": { - "primitive": "number" - } - } - ], - "returns": { - "type": { - "primitive": "number" - } - } + "name": "OPTION_A" }, { - "async": true, "docs": { "stability": "experimental" }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 437 - }, - "name": "serialSumAsync", - "parameters": [ - { - "name": "count", - "type": { - "primitive": "number" - } - } - ], - "returns": { - "type": { - "primitive": "number" - } - } - }, + "name": "OPTION_B" + } + ], + "name": "ExperimentalEnum", + "namespace": "stability_annotations" + }, + "jsii-calc.stability_annotations.ExperimentalStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.stability_annotations.ExperimentalStruct", + "kind": "interface", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 4 + }, + "name": "ExperimentalStruct", + "namespace": "stability_annotations", + "properties": [ { + "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 456 + "filename": "lib/stability.ts", + "line": 6 }, - "name": "sumSync", - "parameters": [ - { - "name": "count", - "type": { - "primitive": "number" - } - } - ], - "returns": { - "type": { - "primitive": "number" - } + "name": "readonlyProperty", + "type": { + "primitive": "string" } } - ], - "name": "VirtualMethodPlayground" + ] }, - "jsii-calc.VoidCallback": { - "abstract": true, + "jsii-calc.stability_annotations.IDeprecatedInterface": { "assembly": "jsii-calc", "docs": { - "remarks": "- Implement `overrideMe` (method does not have to do anything).\n- Invoke `callMe`\n- Verify that `methodWasCalled` is `true`.", - "stability": "experimental", - "summary": "This test is used to validate the runtimes can return correctly from a void callback." + "deprecated": "useless interface", + "stability": "deprecated" }, - "fqn": "jsii-calc.VoidCallback", - "initializer": {}, - "kind": "class", + "fqn": "jsii-calc.stability_annotations.IDeprecatedInterface", + "kind": "interface", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1706 + "filename": "lib/stability.ts", + "line": 78 }, "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1711 - }, - "name": "callMe" - }, { "abstract": true, "docs": { - "stability": "experimental" + "deprecated": "services no purpose", + "stability": "deprecated" }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1715 + "filename": "lib/stability.ts", + "line": 82 }, - "name": "overrideMe", - "protected": true + "name": "method" } ], - "name": "VoidCallback", + "name": "IDeprecatedInterface", + "namespace": "stability_annotations", "properties": [ { + "abstract": true, "docs": { - "stability": "experimental" + "deprecated": "could be better", + "stability": "deprecated" }, - "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1708 + "filename": "lib/stability.ts", + "line": 80 }, - "name": "methodWasCalled", + "name": "mutableProperty", + "optional": true, "type": { - "primitive": "boolean" + "primitive": "number" } } ] }, - "jsii-calc.WithPrivatePropertyInConstructor": { + "jsii-calc.stability_annotations.IExperimentalInterface": { "assembly": "jsii-calc", "docs": { - "stability": "experimental", - "summary": "Verifies that private property declarations in constructor arguments are hidden." - }, - "fqn": "jsii-calc.WithPrivatePropertyInConstructor", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "privateField", - "optional": true, - "type": { - "primitive": "string" - } - } - ] + "stability": "experimental" }, - "kind": "class", + "fqn": "jsii-calc.stability_annotations.IExperimentalInterface", + "kind": "interface", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1721 + "filename": "lib/stability.ts", + "line": 9 }, - "name": "WithPrivatePropertyInConstructor", + "methods": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/stability.ts", + "line": 13 + }, + "name": "method" + } + ], + "name": "IExperimentalInterface", + "namespace": "stability_annotations", "properties": [ { + "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1724 + "filename": "lib/stability.ts", + "line": 11 }, - "name": "success", + "name": "mutableProperty", + "optional": true, "type": { - "primitive": "boolean" + "primitive": "number" } } ] }, - "jsii-calc.composition.CompositeOperation": { - "abstract": true, + "jsii-calc.stability_annotations.IStableInterface": { "assembly": "jsii-calc", - "base": "@scope/jsii-calc-lib.Operation", "docs": { - "stability": "experimental", - "summary": "Abstract operation composed from an expression of other operations." + "stability": "stable" }, - "fqn": "jsii-calc.composition.CompositeOperation", - "initializer": {}, - "kind": "class", + "fqn": "jsii-calc.stability_annotations.IStableInterface", + "kind": "interface", "locationInModule": { - "filename": "lib/calculator.ts", - "line": 131 + "filename": "lib/stability.ts", + "line": 44 }, "methods": [ { + "abstract": true, "docs": { - "stability": "experimental", - "summary": "String representation of the value." + "stability": "stable" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 157 + "filename": "lib/stability.ts", + "line": 48 }, - "name": "toString", - "overrides": "@scope/jsii-calc-lib.Operation", - "returns": { - "type": { - "primitive": "string" - } - } + "name": "method" } ], - "name": "CompositeOperation", - "namespace": "composition", + "name": "IStableInterface", + "namespace": "stability_annotations", "properties": [ { "abstract": true, "docs": { - "remarks": "Must be implemented by derived classes.", - "stability": "experimental", - "summary": "The expression that this operation consists of." + "stability": "stable" }, - "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 155 + "filename": "lib/stability.ts", + "line": 46 }, - "name": "expression", + "name": "mutableProperty", + "optional": true, "type": { - "fqn": "@scope/jsii-calc-lib.Value" + "primitive": "number" } + } + ] + }, + "jsii-calc.stability_annotations.StableClass": { + "assembly": "jsii-calc", + "docs": { + "stability": "stable" + }, + "fqn": "jsii-calc.stability_annotations.StableClass", + "initializer": { + "docs": { + "stability": "stable" }, - { - "docs": { - "stability": "experimental", - "summary": "The value." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 147 + "parameters": [ + { + "name": "readonlyString", + "type": { + "primitive": "string" + } }, - "name": "value", - "overrides": "@scope/jsii-calc-lib.Value", - "type": { - "primitive": "number" + { + "name": "mutableNumber", + "optional": true, + "type": { + "primitive": "number" + } } - }, + ] + }, + "kind": "class", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 51 + }, + "methods": [ { "docs": { - "stability": "experimental", - "summary": "A set of postfixes to include in a decorated .toString()." + "stability": "stable" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 145 + "filename": "lib/stability.ts", + "line": 62 }, - "name": "decorationPostfixes", - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" - } - } - }, + "name": "method" + } + ], + "name": "StableClass", + "namespace": "stability_annotations", + "properties": [ { "docs": { - "stability": "experimental", - "summary": "A set of prefixes to include in a decorated .toString()." + "stability": "stable" }, + "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 140 + "filename": "lib/stability.ts", + "line": 53 }, - "name": "decorationPrefixes", + "name": "readonlyProperty", "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" - } + "primitive": "string" } }, { "docs": { - "stability": "experimental", - "summary": "The .toString() style." + "stability": "stable" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 135 + "filename": "lib/stability.ts", + "line": 55 }, - "name": "stringStyle", + "name": "mutableProperty", + "optional": true, "type": { - "fqn": "jsii-calc.composition.CompositeOperation.CompositionStringStyle" + "primitive": "number" } } ] }, - "jsii-calc.composition.CompositeOperation.CompositionStringStyle": { + "jsii-calc.stability_annotations.StableEnum": { "assembly": "jsii-calc", "docs": { - "stability": "experimental", - "summary": "Style of .toString() output for CompositeOperation." + "stability": "stable" }, - "fqn": "jsii-calc.composition.CompositeOperation.CompositionStringStyle", + "fqn": "jsii-calc.stability_annotations.StableEnum", "kind": "enum", "locationInModule": { - "filename": "lib/calculator.ts", - "line": 173 + "filename": "lib/stability.ts", + "line": 65 }, "members": [ { "docs": { - "stability": "experimental", - "summary": "Normal string expression." + "stability": "stable" }, - "name": "NORMAL" + "name": "OPTION_A" }, { "docs": { - "stability": "experimental", - "summary": "Decorated string expression." + "stability": "stable" }, - "name": "DECORATED" + "name": "OPTION_B" } ], - "name": "CompositionStringStyle", - "namespace": "composition.CompositeOperation" + "name": "StableEnum", + "namespace": "stability_annotations" + }, + "jsii-calc.stability_annotations.StableStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "stable" + }, + "fqn": "jsii-calc.stability_annotations.StableStruct", + "kind": "interface", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 39 + }, + "name": "StableStruct", + "namespace": "stability_annotations", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "stable" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/stability.ts", + "line": 41 + }, + "name": "readonlyProperty", + "type": { + "primitive": "string" + } + } + ] } }, "version": "1.0.0", - "fingerprint": "oTbIPjVGH+NSJCWHMqRYC7fJ3XjjZSr8TvvRkANEonA=" + "fingerprint": "kepnNoJ/U8mTCcljWb5mr15NvRzj2ILa+rYVyr8fFgY=" } diff --git a/packages/jsii-pacmak/lib/targets/dotnet/dotnetgenerator.ts b/packages/jsii-pacmak/lib/targets/dotnet/dotnetgenerator.ts index ebc2d9cea6..9691630fb6 100644 --- a/packages/jsii-pacmak/lib/targets/dotnet/dotnetgenerator.ts +++ b/packages/jsii-pacmak/lib/targets/dotnet/dotnetgenerator.ts @@ -1,7 +1,9 @@ import * as clone from 'clone'; +import { toPascalCase } from 'codemaker'; import * as fs from 'fs-extra'; import * as reflect from 'jsii-reflect'; import * as spec from '@jsii/spec'; +import { Rosetta } from 'jsii-rosetta'; import * as path from 'path'; import { Generator } from '../../generator'; import { DotNetDocGenerator } from './dotnetdocgenerator'; @@ -9,7 +11,6 @@ import { DotNetRuntimeGenerator } from './dotnetruntimegenerator'; import { DotNetTypeResolver } from './dotnettyperesolver'; import { FileGenerator } from './filegenerator'; import { DotNetNameUtils } from './nameutils'; -import { Rosetta } from 'jsii-rosetta'; /** * CODE GENERATOR V2 @@ -120,7 +121,7 @@ export class DotNetGenerator extends Generator { protected onBeginInterface(ifc: spec.InterfaceType) { const implementations = this.typeresolver.resolveImplementedInterfaces(ifc); const interfaceName = this.nameutils.convertInterfaceName(ifc); - const namespace = ifc.namespace ? `${this.assembly.targets!.dotnet!.namespace}.${ifc.namespace}` : this.assembly.targets!.dotnet!.namespace; + const namespace = this.namespaceFor(this.assembly, ifc); this.openFileIfNeeded(interfaceName, namespace, this.isNested(ifc)); this.dotnetDocGenerator.emitDocs(ifc); @@ -137,7 +138,7 @@ export class DotNetGenerator extends Generator { protected onEndInterface(ifc: spec.InterfaceType) { const interfaceName = this.nameutils.convertInterfaceName(ifc); this.code.closeBlock(); - const namespace = ifc.namespace ? `${this.assembly.targets!.dotnet!.namespace}.${ifc.namespace}` : this.assembly.targets!.dotnet!.namespace; + const namespace = this.namespaceFor(this.assembly, ifc); this.closeFileIfNeeded(interfaceName, namespace, this.isNested(ifc)); // emit interface proxy class @@ -212,7 +213,7 @@ export class DotNetGenerator extends Generator { protected onBeginClass(cls: spec.ClassType, abstract: boolean) { let baseTypeNames: string[] = []; - const namespace = cls.namespace ? `${this.assembly.targets!.dotnet!.namespace}.${cls.namespace}` : this.assembly.targets!.dotnet!.namespace; + const namespace = this.namespaceFor(this.assembly, cls); // A class can derive from only one base class // But can implement multiple interfaces @@ -294,7 +295,7 @@ export class DotNetGenerator extends Generator { protected onEndClass(cls: spec.ClassType) { this.code.closeBlock(); const className = this.nameutils.convertClassName(cls); - const namespace = cls.namespace ? `${this.assembly.targets!.dotnet!.namespace}.${cls.namespace}` : this.assembly.targets!.dotnet!.namespace; + const namespace = this.namespaceFor(this.assembly, cls); this.closeFileIfNeeded(className, namespace, this.isNested(cls)); if (cls.abstract) { @@ -338,7 +339,7 @@ export class DotNetGenerator extends Generator { protected onBeginEnum(enm: spec.EnumType) { const enumName = this.nameutils.convertTypeName(enm.name); - const namespace = enm.namespace ? `${this.assembly.targets!.dotnet!.namespace}.${enm.namespace}` : this.assembly.targets!.dotnet!.namespace; + const namespace = this.namespaceFor(this.assembly, enm); this.openFileIfNeeded(enumName, namespace, this.isNested(enm)); this.emitNewLineIfNecessary(); this.dotnetDocGenerator.emitDocs(enm); @@ -349,7 +350,7 @@ export class DotNetGenerator extends Generator { protected onEndEnum(enm: spec.EnumType) { this.code.closeBlock(); const enumName = this.nameutils.convertTypeName(enm.name); - const namespace = enm.namespace ? `${this.assembly.targets!.dotnet!.namespace}.${enm.namespace}` : this.assembly.targets!.dotnet!.namespace; + const namespace = this.namespaceFor(this.assembly, enm); this.closeFileIfNeeded(enumName, namespace, this.isNested(enm)); } @@ -365,6 +366,19 @@ export class DotNetGenerator extends Generator { } } + private namespaceFor(assm: spec.Assembly, type: spec.Type): string { + const parts = [assm.targets!.dotnet!.namespace]; + let ns = type.namespace; + while (ns != null && assm.types?.[`${assm.name}.${ns}`] != null) { + const nesting = assm.types[`${assm.name}.${ns}`]; + ns = nesting.namespace; + } + if (ns != null) { + parts.push(...ns.split('.').map(n => toPascalCase(n))); + } + return parts.join('.'); + } + private emitMethod(cls: spec.ClassType | spec.InterfaceType, method: spec.Method, emitForProxyOrDatatype = false): void { this.emitNewLineIfNecessary(); const returnType = method.returns ? this.typeresolver.toDotNetType(method.returns.type) : 'void'; @@ -502,7 +516,7 @@ export class DotNetGenerator extends Generator { private emitInterfaceProxy(ifc: spec.InterfaceType | spec.ClassType): void { // No need to slugify for a proxy const name = `${this.nameutils.convertTypeName(ifc.name)}Proxy`; - const namespace = ifc.namespace ? `${this.assembly.targets!.dotnet!.namespace}.${ifc.namespace}` : this.assembly.targets!.dotnet!.namespace; + const namespace = this.namespaceFor(this.assembly, ifc); const isNested = this.isNested(ifc); this.openFileIfNeeded(name, namespace, isNested); @@ -537,7 +551,7 @@ export class DotNetGenerator extends Generator { private emitInterfaceDataType(ifc: spec.InterfaceType): void { // Interface datatypes do not need to be prefixed by I, we can call convertClassName const name = this.nameutils.convertClassName(ifc); - const namespace = ifc.namespace ? `${this.assembly.targets!.dotnet!.namespace}.${ifc.namespace}` : this.assembly.targets!.dotnet!.namespace; + const namespace = this.namespaceFor(this.assembly, ifc); const isNested = this.isNested(ifc); this.openFileIfNeeded(name, namespace, isNested); diff --git a/packages/jsii-pacmak/lib/targets/dotnet/dotnettyperesolver.ts b/packages/jsii-pacmak/lib/targets/dotnet/dotnettyperesolver.ts index f809520466..a72d673d3b 100644 --- a/packages/jsii-pacmak/lib/targets/dotnet/dotnettyperesolver.ts +++ b/packages/jsii-pacmak/lib/targets/dotnet/dotnettyperesolver.ts @@ -1,4 +1,5 @@ import * as spec from '@jsii/spec'; +import { toPascalCase } from 'codemaker'; import { DotNetDependency } from './filegenerator'; import { DotNetNameUtils } from './nameutils'; @@ -46,6 +47,7 @@ export class DotNetTypeResolver { } const [mod] = fqn.split('.'); const depMod = this.findModule(mod); + const dotnetNamespace = depMod.targets?.dotnet?.namespace; if (!dotnetNamespace) { throw new Error('The module does not have a dotnet.namespace setting'); @@ -59,7 +61,7 @@ export class DotNetTypeResolver { const actualNamespace = this.toDotNetType(this.findType(namespaceFqn)); return `${actualNamespace}.${typeName}`; } - return `${dotnetNamespace}.${type.namespace}.${typeName}`; + return `${dotnetNamespace}.${type.namespace.split('.').map(s => toPascalCase(s)).join('.')}.${typeName}`; } // When undefined, the type is located at the root of the assembly return `${dotnetNamespace}.${typeName}`; diff --git a/packages/jsii-pacmak/lib/targets/java.ts b/packages/jsii-pacmak/lib/targets/java.ts index 25ef90fed7..8a61e9c8c9 100644 --- a/packages/jsii-pacmak/lib/targets/java.ts +++ b/packages/jsii-pacmak/lib/targets/java.ts @@ -1,5 +1,5 @@ import * as clone from 'clone'; -import { toPascalCase } from 'codemaker/lib/case-utils'; +import { toPascalCase, toSnakeCase } from 'codemaker/lib/case-utils'; import * as fs from 'fs-extra'; import * as reflect from 'jsii-reflect'; import { Rosetta, typeScriptSnippetFromSource, Translation, markDownToJavaDoc } from 'jsii-rosetta'; @@ -395,9 +395,9 @@ class JavaGenerator extends Generator { ]; /** - * Turns a raw javascript property name (eg: 'default') into a safe Java property name (eg: 'defaultValue'). - * @param propertyName the raw JSII property Name - */ + * Turns a raw javascript property name (eg: 'default') into a safe Java property name (eg: 'defaultValue'). + * @param propertyName the raw JSII property Name + */ private static safeJavaPropertyName(propertyName: string) { if (!propertyName) { return propertyName; @@ -411,9 +411,9 @@ class JavaGenerator extends Generator { } /** - * Turns a raw javascript method name (eg: 'import') into a safe Java method name (eg: 'doImport'). - * @param methodName - */ + * Turns a raw javascript method name (eg: 'import') into a safe Java method name (eg: 'doImport'). + * @param methodName + */ private static safeJavaMethodName(methodName: string) { if (!methodName) { return methodName; @@ -431,11 +431,11 @@ class JavaGenerator extends Generator { private moduleClass!: string; /** - * A map of all the modules ever referenced during code generation. These include - * direct dependencies but can potentially also include transitive dependencies, when, - * for example, we need to refer to their types when flatting the class hierarchy for - * interface proxies. - */ + * A map of all the modules ever referenced during code generation. These include + * direct dependencies but can potentially also include transitive dependencies, when, + * for example, we need to refer to their types when flatting the class hierarchy for + * interface proxies. + */ private readonly referencedModules: { [name: string]: spec.AssemblyConfiguration } = { }; public constructor(private readonly rosetta: Rosetta) { @@ -530,8 +530,8 @@ class JavaGenerator extends Generator { } /** - * Since we expand the union setters, we will use this event to only emit the getter which returns an Object. - */ + * Since we expand the union setters, we will use this event to only emit the getter which returns an Object. + */ protected onUnionProperty(cls: spec.ClassType, prop: spec.Property, _union: spec.UnionTypeReference) { this.emitProperty(cls, prop); } @@ -651,8 +651,13 @@ class JavaGenerator extends Generator { private emitPackageInfo(mod: spec.Assembly) { if (!mod.docs) { return; } - const packageName = this.getNativeName(mod, undefined); - const packageInfoFile = this.toJavaFilePath(`${mod.name}.package-info`); + const { packageName } = this.toNativeName(mod); + const packageInfoFile = this.toJavaFilePath(mod, { + assembly: mod.name, + fqn: `${mod.name}.package-info`, + kind: spec.TypeKind.Class, + name: 'package-info' + }); this.code.openFile(packageInfoFile); this.code.line('/**'); if (mod.readme) { @@ -1011,14 +1016,14 @@ class JavaGenerator extends Generator { } /** - * We are now going to build a class that can be used as a proxy for untyped - * javascript objects that implement this interface. we want java code to be - * able to interact with them, so we will create a proxy class which - * implements this interface and has the same methods. - * - * These proxies are also used to extend abstract classes to allow the JSII - * engine to instantiate an abstract class in Java. - */ + * We are now going to build a class that can be used as a proxy for untyped + * javascript objects that implement this interface. we want java code to be + * able to interact with them, so we will create a proxy class which + * implements this interface and has the same methods. + * + * These proxies are also used to extend abstract classes to allow the JSII + * engine to instantiate an abstract class in Java. + */ private emitProxy(ifc: spec.InterfaceType | spec.ClassType) { const name = INTERFACE_PROXY_CLASS_NAME; @@ -1516,8 +1521,8 @@ class JavaGenerator extends Generator { return; } - this.code.openFile(this.toJavaFilePath(type.fqn)); - this.code.line(`package ${this.getNativeName(this.assembly, type.namespace)};`); + this.code.openFile(this.toJavaFilePath(this.assembly, type)); + this.code.line(`package ${this.toNativeName(this.assembly, type).packageName};`); this.code.line(); } @@ -1525,7 +1530,7 @@ class JavaGenerator extends Generator { if (this.isNested(type)) { return; } - this.code.closeFile(this.toJavaFilePath(type.fqn)); + this.code.closeFile(this.toJavaFilePath(this.assembly, type)); } private isNested(type: spec.Type) { @@ -1534,11 +1539,12 @@ class JavaGenerator extends Generator { return parent in this.assembly.types; } - private toJavaFilePath(fqn: string) { - const nativeFqn = this.toNativeFqn(fqn); - return `${path.join('src', 'main', 'java', ...nativeFqn.split('.'))}.java`; + private toJavaFilePath(assm: spec.Assembly, type: spec.Type) { + const { packageName, typeName } = this.toNativeName(assm, type); + return `${path.join('src', 'main', 'java', ...packageName.split('.'), typeName.split('.')[0])}.java`; } + // eslint-disable-next-line complexity private addJavaDocs(doc: spec.Documentable, defaultText?: string) { if (!defaultText && Object.keys(doc.docs ?? {}).length === 0 && !((doc as spec.Method).parameters ?? []).some(p => Object.keys(p.docs ?? {}).length !== 0)) { @@ -1758,12 +1764,12 @@ class JavaGenerator extends Generator { } /** - * Wraps a collection into an unmodifiable collection else returns the existing statement. - * @param statement The statement to wrap if necessary. - * @param type The type of the object to wrap. - * @param optional Whether the value is optional (can be null/undefined) or not. - * @returns The modified or original statement. - */ + * Wraps a collection into an unmodifiable collection else returns the existing statement. + * @param statement The statement to wrap if necessary. + * @param type The type of the object to wrap. + * @param optional Whether the value is optional (can be null/undefined) or not. + * @returns The modified or original statement. + */ private wrapCollection(statement: string, type: spec.TypeReference, optional?: boolean): string { if (spec.isCollectionTypeReference(type)) { let wrapper: string; @@ -1804,16 +1810,17 @@ class JavaGenerator extends Generator { return `${this.toNativeFqn(moduleName)}.${MODULE_CLASS_NAME}`; } - private makeModuleFqn(moduleName: string) { - return `${moduleName}.${MODULE_CLASS_NAME}`; - } - private emitModuleFile(mod: spec.Assembly) { const moduleName = mod.name; const moduleClass = this.makeModuleClass(moduleName); - const moduleFile = this.toJavaFilePath(this.makeModuleFqn(moduleName)); + const moduleFile = this.toJavaFilePath(mod, { + assembly: mod.name, + fqn: `${mod.name}.${MODULE_CLASS_NAME}`, + kind: spec.TypeKind.Class, + name: MODULE_CLASS_NAME, + }); this.code.openFile(moduleFile); - this.code.line(`package ${this.toNativeFqn(moduleName)};`); + this.code.line(`package ${this.toNativeName(mod).packageName};`); this.code.line(); if (Object.keys(mod.dependencies ?? {}).length > 0) { this.code.line('import static java.util.Arrays.asList;'); @@ -1875,17 +1882,17 @@ class JavaGenerator extends Generator { } /** - * Computes the java FQN for a JSII FQN: - * 1. Determine which assembly the FQN belongs to (first component of the FQN) - * 2. Locate the `targets.java.package` value for that assembly (this assembly, or one of the dependencies) - * 3. Return the java FQN: ``.`` - * - * @param fqn the JSII FQN to be used. - * - * @returns the corresponding Java FQN. - * - * @throws if the assembly the FQN belongs to does not have a `targets.java.package` set. - */ + * Computes the java FQN for a JSII FQN: + * 1. Determine which assembly the FQN belongs to (first component of the FQN) + * 2. Locate the `targets.java.package` value for that assembly (this assembly, or one of the dependencies) + * 3. Return the java FQN: ``.`` + * + * @param fqn the JSII FQN to be used. + * + * @returns the corresponding Java FQN. + * + * @throws if the assembly the FQN belongs to does not have a `targets.java.package` set. + */ private toNativeFqn(fqn: string): string { const [mod, ...name] = fqn.split('.'); const depMod = this.findModule(mod); @@ -1894,8 +1901,11 @@ class JavaGenerator extends Generator { // dependencies' dependency structure). if (mod !== this.assembly.name) { this.referencedModules[mod] = depMod; + return this.getNativeName(depMod, name.join('.'), mod); } - return this.getNativeName(depMod, name.join('.'), mod); + + const { packageName, typeName } = this.toNativeName(this.assembly, this.assembly.types![fqn]); + return `${packageName}${typeName ? `.${typeName}` : ''}`; } private getNativeName(assm: spec.Assembly, name: string | undefined): string; @@ -1910,9 +1920,33 @@ class JavaGenerator extends Generator { return `${javaPackage}${name ? `.${name}` : ''}`; } + private toNativeName(assm: spec.Assembly): { packageName: string }; + private toNativeName(assm: spec.Assembly, type: spec.Type): { packageName: string, typeName: string }; + private toNativeName(assm: spec.Assembly, type?: spec.Type): { packageName: string, typeName?: string } { + const javaPackage = assm.targets?.java?.package; + if (!javaPackage) { throw new Error(`The module ${assm.name} does not have a java.package setting`); } + + if (type == null) { + return { packageName: javaPackage }; + } + + let ns = type.namespace; + let typeName = type.name; + while (ns != null && assm.types?.[`${assm.name}.${ns}`] != null) { + const nestingType = assm.types[`${assm.name}.${ns}`]; + ns = nestingType.namespace; + typeName = `${nestingType.name}.${typeName}`; + } + + const packageName = ns != null + ? `${javaPackage}.${ns.split('.').map(s => toSnakeCase(s)).join('.')}` + : javaPackage; + return { packageName, typeName }; + } + /** - * Emits an ``@Generated`` annotation honoring the ``this.emitFullGeneratorInfo`` setting. - */ + * Emits an ``@Generated`` annotation honoring the ``this.emitFullGeneratorInfo`` setting. + */ private emitGeneratedAnnotation() { const date = this.emitFullGeneratorInfo ? `, date = "${new Date().toISOString()}"` diff --git a/packages/jsii-pacmak/lib/targets/python.ts b/packages/jsii-pacmak/lib/targets/python.ts index 198c4cdacf..96c1efd488 100644 --- a/packages/jsii-pacmak/lib/targets/python.ts +++ b/packages/jsii-pacmak/lib/targets/python.ts @@ -130,47 +130,44 @@ function toPythonParameterName(name: string, liftedParamNames = new Set( return result; } -const setDifference = (setA: Set, setB: Set): Set => { - const difference = new Set(setA); - for (const elem of setB) { - difference.delete(elem); +const setDifference = (setA: Set, setB: Set): Set => { + const result = new Set(); + for (const item of setA) { + if (!setB.has(item)) { + result.add(item); + } } - return difference; + return result; }; -const sortMembers = (sortable: PythonBase[], resolver: TypeResolver): PythonBase[] => { - const sorted: PythonBase[] = []; - const seen: Set = new Set(); - - // We're going to take a copy of our sortable item, because it'll make it easier if - // this method doesn't have side effects. - sortable = sortable.slice(); +const sortMembers = (members: PythonBase[], resolver: TypeResolver): PythonBase[] => { + let sortable = new Array <{ member: PythonBase & ISortableType, dependsOn: Set }>(); + const sorted = new Array(); + const seen = new Set(); // The first thing we want to do, is push any item which is not sortable to the very // front of the list. This will be things like methods, properties, etc. - for (const item of sortable) { - if (!isSortableType(item)) { - sorted.push(item); - seen.add(item); + for (const member of members) { + if (!isSortableType(member)) { + sorted.push(member); + seen.add(member); + } else { + sortable.push({ member, dependsOn: new Set(member.dependsOn(resolver)) }); } } - sortable = sortable.filter(i => !seen.has(i)); // Now that we've pulled out everything that couldn't possibly have dependencies, // we will go through the remaining items, and pull off any items which have no // dependencies that we haven't already sorted. while (sortable.length > 0) { - for (const item of (sortable as Array)) { - const itemDeps: Set = new Set(item.dependsOn(resolver)); - if (setDifference(itemDeps, seen).size === 0) { - sorted.push(item); - seen.add(item); - - break; + for (const { member, dependsOn } of sortable) { + if (setDifference(dependsOn, seen).size === 0) { + sorted.push(member); + seen.add(member); } } - const leftover = sortable.filter(i => !seen.has(i)); + const leftover = sortable.filter(({ member }) => !seen.has(member)); if (leftover.length === sortable.length) { throw new Error('Could not sort members (circular dependency?).'); } else { @@ -199,8 +196,8 @@ interface ISortableType { dependsOn(resolver: TypeResolver): PythonType[]; } -function isSortableType(arg: any): arg is ISortableType { - return arg.dependsOn !== undefined; +function isSortableType(arg: unknown): arg is ISortableType { + return (arg as Partial).dependsOn !== undefined; } interface PythonTypeOpts { @@ -226,12 +223,12 @@ abstract class BasePythonClassType implements PythonType, ISortableType { } public dependsOn(resolver: TypeResolver): PythonType[] { - const dependencies: PythonType[] = []; + const dependencies = new Array(); const parent = resolver.getParent(this.fqn!); // We need to return any bases that are in the same module at the same level of // nesting. - const seen: Set = new Set(); + const seen = new Set(); for (const base of this.bases) { if (spec.isNamedTypeReference(base)) { if (resolver.isInModule(base)) { @@ -272,7 +269,7 @@ abstract class BasePythonClassType implements PythonType, ISortableType { this.emitPreamble(code, resolver); if (this.members.length > 0) { - resolver = this.fqn ? resolver.bind(this.fqn) : resolver; + resolver = this.boundResolver(resolver); for (const member of sortMembers(this.members, resolver)) { member.emit(code, resolver); } @@ -283,6 +280,13 @@ abstract class BasePythonClassType implements PythonType, ISortableType { code.closeBlock(); } + protected boundResolver(resolver: TypeResolver): TypeResolver { + if (this.fqn == null) { + return resolver; + } + return resolver.bind(this.fqn); + } + protected abstract getClassParams(resolver: TypeResolver): string[]; protected emitPreamble(_code: CodeMaker, _resolver: TypeResolver) { return; } @@ -339,7 +343,7 @@ abstract class BaseMethod implements PythonBase { // This can hopefully be removed once we get https://github.com/aws/jsii/issues/288 // resolved, so build up a list of all of the prop names so we can check against // them later. - const liftedPropNames: Set = new Set(); + const liftedPropNames = new Set(); if (this.liftedProp?.properties?.length ?? 0 >= 1) { for (const prop of this.liftedProp!.properties!) { liftedPropNames.add(toPythonParameterName(prop.name)); @@ -811,7 +815,7 @@ interface ClassOpts extends PythonTypeOpts { abstractBases?: spec.ClassType[]; } -class Class extends BasePythonClassType { +class Class extends BasePythonClassType implements ISortableType { private readonly abstract: boolean; private readonly abstractBases: spec.ClassType[]; @@ -833,7 +837,7 @@ class Class extends BasePythonClassType { // We need to return any ifaces that are in the same module at the same level of // nesting. - const seen: Set = new Set(); + const seen = new Set(); for (const iface of this.interfaces) { if (resolver.isInModule(iface)) { // Given a iface, we need to locate the ifaces's parent that is the same @@ -874,7 +878,7 @@ class Class extends BasePythonClassType { if (this.abstract) { resolver = this.fqn ? resolver.bind(this.fqn) : resolver; - const proxyBases: string[] = [this.pythonName]; + const proxyBases = [this.pythonName]; for (const base of this.abstractBases) { proxyBases.push(`jsii.proxy_for(${resolver.resolve({ type: base })})`); } @@ -989,6 +993,13 @@ class EnumMember implements PythonBase { } class Namespace extends BasePythonClassType { + protected boundResolver(resolver: TypeResolver): TypeResolver { + if (this.fqn == null) { + return resolver; + } + return resolver.bind(this.fqn, `.${this.pythonName}`); + } + protected getClassParams(_resolver: TypeResolver): string[] { return []; } @@ -1038,11 +1049,11 @@ class Module implements PythonType { code.line('import builtins'); code.line('import datetime'); code.line('import enum'); + code.line('import publication'); code.line('import typing'); code.line(); code.line('import jsii'); code.line('import jsii.compat'); - code.line('import publication'); // Go over all of the modules that we need to import, and import them. this.emitDependencyImports(code, resolver); @@ -1091,20 +1102,14 @@ class Module implements PythonType { } private emitDependencyImports(code: CodeMaker, _resolver: TypeResolver) { - const deps = Array.from( - new Set([ - ...Object.keys(this.assembly.dependencies ?? {}).map(d => { - return this.assembly.dependencyClosure![d]!.targets!.python!.module; - }), - ]) - ); + const deps = Object.keys(this.assembly.dependencies ?? {}) + .map(d => this.assembly.dependencyClosure![d]!.targets!.python!.module) + .sort(); - for (const [idx, moduleName] of deps.sort().entries()) { + for (const [idx, moduleName] of deps.entries()) { // If this our first dependency, add a blank line to format our imports // slightly nicer. - if (idx === 0) { - code.line(); - } + if (idx === 0) { code.line(); } code.line(`import ${moduleName}`); } @@ -1289,10 +1294,10 @@ interface TypeResolverOpts { } class TypeResolver { + private static readonly STD_TYPES_REGEX = /^(datetime\.datetime|typing\.[A-Z][a-z]+|jsii\.Number)$/; private readonly types: Map; private readonly boundTo?: string; - private readonly stdTypesRe = new RegExp('^(datetime\\.datetime|typing\\.[A-Z][a-z]+|jsii\\.Number)$'); private readonly boundRe!: RegExp; private readonly moduleName?: string; private readonly moduleRe!: RegExp; @@ -1325,7 +1330,9 @@ class TypeResolver { this.findModule, this.findType, fqn, - moduleName !== undefined ? moduleName : this.moduleName, + moduleName !== undefined + ? moduleName.startsWith('.') ? `${this.moduleName}${moduleName}` : moduleName + : this.moduleName, ); } @@ -1341,7 +1348,11 @@ class TypeResolver { public getParent(typeRef: spec.NamedTypeReference | string): PythonType { const fqn = typeof typeRef !== 'string' ? typeRef.fqn : typeRef; - const [, parentFQN] = /^(.+)\.[^.]+$/.exec(fqn) as string[]; + const matches = /^(.+)\.[^.]+$/.exec(fqn); + if (matches == null || !Array.isArray(matches)) { + throw new Error(`Invalid FQN: ${fqn}`); + } + const [, parentFQN] = matches; const parent = this.types.get(parentFQN); if (parent === undefined) { @@ -1393,7 +1404,7 @@ class TypeResolver { // These are not exactly built in types, but they're also not types that // this resolver has to worry about. - if (this.stdTypesRe.test(innerType)) { + if (TypeResolver.STD_TYPES_REGEX.test(innerType)) { continue; } @@ -1514,6 +1525,7 @@ class PythonGenerator extends Generator { this.types = new Map(); } + // eslint-disable-next-line complexity public emitDocString( code: CodeMaker, docs: spec.Docs | undefined, @@ -1712,7 +1724,7 @@ class PythonGenerator extends Generator { this.addPythonType( new Namespace( this, - toPythonIdentifier(ns.replace(/^.+\.([^.]+)$/, '$1')), + toSnakeCase(toPythonIdentifier(ns.replace(/^.+\.([^.]+)$/, '$1'))), ns, {}, undefined, diff --git a/packages/jsii-pacmak/test/diff-test.sh b/packages/jsii-pacmak/test/diff-test.sh index 288682cf5a..77e2a626eb 100755 --- a/packages/jsii-pacmak/test/diff-test.sh +++ b/packages/jsii-pacmak/test/diff-test.sh @@ -2,7 +2,7 @@ set -e cd $(dirname $0) -workdir="$(mktemp -d)" +workdir="$(mktemp -t jsii-diff-test -d)" success=true function mktmpdir() { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/__init__.py index c209b26559..40d3f215a4 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/__init__.py @@ -2,11 +2,11 @@ import builtins import datetime import enum +import publication import typing import jsii import jsii.compat -import publication __jsii_assembly__ = jsii.JSIIAssembly.load("@scope/jsii-calc-base-of-base", "1.0.0", __name__, "jsii-calc-base-of-base@1.0.0.jsii.tgz") diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/_jsii/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/_jsii/__init__.py index 9e39789e5a..798491ae50 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/_jsii/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/_jsii/__init__.py @@ -2,11 +2,11 @@ import builtins import datetime import enum +import publication import typing import jsii import jsii.compat -import publication __all__ = [] publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/__init__.py index c6ebb1a33c..5695a13bcd 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/__init__.py @@ -2,11 +2,11 @@ import builtins import datetime import enum +import publication import typing import jsii import jsii.compat -import publication import scope.jsii_calc_base_of_base diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/_jsii/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/_jsii/__init__.py index 03ffbd0be5..529faf82d6 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/_jsii/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/_jsii/__init__.py @@ -2,11 +2,11 @@ import builtins import datetime import enum +import publication import typing import jsii import jsii.compat -import publication import scope.jsii_calc_base_of_base __all__ = [] diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/__init__.py index 6fe6a7c546..3ac678c936 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/__init__.py @@ -2,11 +2,11 @@ import builtins import datetime import enum +import publication import typing import jsii import jsii.compat -import publication import scope.jsii_calc_base diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/_jsii/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/_jsii/__init__.py index d10913cc30..ac84203688 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/_jsii/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/_jsii/__init__.py @@ -2,11 +2,11 @@ import builtins import datetime import enum +import publication import typing import jsii import jsii.compat -import publication import scope.jsii_calc_base __all__ = [] diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/.jsii b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/.jsii index da90606a3e..c6d168a688 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/.jsii +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/.jsii @@ -159,177 +159,6 @@ } }, "types": { - "jsii-calc.AbstractClass": { - "abstract": true, - "assembly": "jsii-calc", - "base": "jsii-calc.AbstractClassBase", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.AbstractClass", - "initializer": {}, - "interfaces": [ - "jsii-calc.IInterfaceImplementedByAbstractClass" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1100 - }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1105 - }, - "name": "abstractMethod", - "parameters": [ - { - "name": "name", - "type": { - "primitive": "string" - } - } - ], - "returns": { - "type": { - "primitive": "string" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1101 - }, - "name": "nonAbstractMethod", - "returns": { - "type": { - "primitive": "number" - } - } - } - ], - "name": "AbstractClass", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1107 - }, - "name": "propFromInterface", - "overrides": "jsii-calc.IInterfaceImplementedByAbstractClass", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.AbstractClassBase": { - "abstract": true, - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.AbstractClassBase", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1096 - }, - "name": "AbstractClassBase", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1097 - }, - "name": "abstractProperty", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.AbstractClassReturner": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.AbstractClassReturner", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1122 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1123 - }, - "name": "giveMeAbstract", - "returns": { - "type": { - "fqn": "jsii-calc.AbstractClass" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1127 - }, - "name": "giveMeInterface", - "returns": { - "type": { - "fqn": "jsii-calc.IInterfaceImplementedByAbstractClass" - } - } - } - ], - "name": "AbstractClassReturner", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1131 - }, - "name": "returnAbstractFromProperty", - "type": { - "fqn": "jsii-calc.AbstractClassBase" - } - } - ] - }, "jsii-calc.AbstractSuite": { "abstract": true, "assembly": "jsii-calc", @@ -495,226 +324,279 @@ } ] }, - "jsii-calc.AllTypes": { + "jsii-calc.BinaryOperation": { + "abstract": true, "assembly": "jsii-calc", + "base": "@scope/jsii-calc-lib.Operation", "docs": { - "remarks": "The setters will validate\nthat the value set is of the expected type and throw otherwise.", "stability": "experimental", - "summary": "This class includes property for all types supported by jsii." - }, - "fqn": "jsii-calc.AllTypes", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 52 + "summary": "Represents an operation with two operands." }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 220 - }, - "name": "anyIn", - "parameters": [ - { - "name": "inp", - "type": { - "primitive": "any" - } - } - ] + "fqn": "jsii-calc.BinaryOperation", + "initializer": { + "docs": { + "stability": "experimental", + "summary": "Creates a BinaryOperation." }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 212 + "parameters": [ + { + "docs": { + "summary": "Left-hand side operand." + }, + "name": "lhs", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" + } }, - "name": "anyOut", - "returns": { + { + "docs": { + "summary": "Right-hand side operand." + }, + "name": "rhs", "type": { - "primitive": "any" + "fqn": "@scope/jsii-calc-lib.Value" } } - }, + ] + }, + "interfaces": [ + "@scope/jsii-calc-lib.IFriendly" + ], + "kind": "class", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 37 + }, + "methods": [ { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Say hello!" }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 207 + "filename": "lib/calculator.ts", + "line": 47 }, - "name": "enumMethod", - "parameters": [ - { - "name": "value", - "type": { - "fqn": "jsii-calc.StringEnum" - } - } - ], + "name": "hello", + "overrides": "@scope/jsii-calc-lib.IFriendly", "returns": { "type": { - "fqn": "jsii-calc.StringEnum" + "primitive": "string" } } } ], - "name": "AllTypes", + "name": "BinaryOperation", "properties": [ { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Left-hand side operand." }, "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 203 + "filename": "lib/calculator.ts", + "line": 43 }, - "name": "enumPropertyValue", + "name": "lhs", "type": { - "primitive": "number" + "fqn": "@scope/jsii-calc-lib.Value" } }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Right-hand side operand." }, + "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 167 + "filename": "lib/calculator.ts", + "line": 43 }, - "name": "anyArrayProperty", + "name": "rhs", "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "array" - } + "fqn": "@scope/jsii-calc-lib.Value" } + } + ] + }, + "jsii-calc.Calculator": { + "assembly": "jsii-calc", + "base": "jsii-calc.composition.CompositeOperation", + "docs": { + "example": "const calculator = new calc.Calculator();\ncalculator.add(5);\ncalculator.mul(3);\nconsole.log(calculator.expression.value);", + "remarks": "Here's how you use it:\n\n```ts\nconst calculator = new calc.Calculator();\ncalculator.add(5);\ncalculator.mul(3);\nconsole.log(calculator.expression.value);\n```\n\nI will repeat this example again, but in an @example tag.", + "stability": "experimental", + "summary": "A calculator which maintains a current value and allows adding operations." + }, + "fqn": "jsii-calc.Calculator", + "initializer": { + "docs": { + "stability": "experimental", + "summary": "Creates a Calculator object." }, + "parameters": [ + { + "docs": { + "summary": "Initialization properties." + }, + "name": "props", + "optional": true, + "type": { + "fqn": "jsii-calc.CalculatorProps" + } + } + ] + }, + "kind": "class", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 273 + }, + "methods": [ { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Adds a number to the current value." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 168 + "filename": "lib/calculator.ts", + "line": 312 }, - "name": "anyMapProperty", - "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "map" + "name": "add", + "parameters": [ + { + "name": "value", + "type": { + "primitive": "number" + } } - } + ] }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Multiplies the current value by a number." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 166 + "filename": "lib/calculator.ts", + "line": 319 }, - "name": "anyProperty", - "type": { - "primitive": "any" - } + "name": "mul", + "parameters": [ + { + "name": "value", + "type": { + "primitive": "number" + } + } + ] }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Negates the current value." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 152 + "filename": "lib/calculator.ts", + "line": 333 }, - "name": "arrayProperty", - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" - } - } + "name": "neg" }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Raises the current value by a power." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 58 + "filename": "lib/calculator.ts", + "line": 326 }, - "name": "booleanProperty", - "type": { - "primitive": "boolean" - } + "name": "pow", + "parameters": [ + { + "name": "value", + "type": { + "primitive": "number" + } + } + ] }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Returns teh value of the union property (if defined)." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 104 + "filename": "lib/calculator.ts", + "line": 352 }, - "name": "dateProperty", - "type": { - "primitive": "date" + "name": "readUnionValue", + "returns": { + "type": { + "primitive": "number" + } } - }, + } + ], + "name": "Calculator", + "properties": [ { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Returns the expression." }, + "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 187 + "filename": "lib/calculator.ts", + "line": 340 }, - "name": "enumProperty", + "name": "expression", + "overrides": "jsii-calc.composition.CompositeOperation", "type": { - "fqn": "jsii-calc.AllTypesEnum" + "fqn": "@scope/jsii-calc-lib.Value" } }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "A log of all operations." }, + "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 121 + "filename": "lib/calculator.ts", + "line": 302 }, - "name": "jsonProperty", + "name": "operationsLog", "type": { - "primitive": "json" + "collection": { + "elementtype": { + "fqn": "@scope/jsii-calc-lib.Value" + }, + "kind": "array" + } } }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "A map of per operation name of all operations performed." }, + "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 137 + "filename": "lib/calculator.ts", + "line": 297 }, - "name": "mapProperty", + "name": "operationsMap", "type": { "collection": { "elementtype": { - "fqn": "@scope/jsii-calc-lib.Number" + "collection": { + "elementtype": { + "fqn": "@scope/jsii-calc-lib.Value" + }, + "kind": "array" + } }, "kind": "map" } @@ -722,224 +604,232 @@ }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "The current value." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 89 + "filename": "lib/calculator.ts", + "line": 292 }, - "name": "numberProperty", + "name": "curr", "type": { - "primitive": "number" + "fqn": "@scope/jsii-calc-lib.Value" } }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "The maximum value allows in this calculator." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 73 + "filename": "lib/calculator.ts", + "line": 307 }, - "name": "stringProperty", + "name": "maxValue", + "optional": true, "type": { - "primitive": "string" + "primitive": "number" } }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Example of a property that accepts a union of types." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 179 + "filename": "lib/calculator.ts", + "line": 347 }, - "name": "unionArrayProperty", - "type": { - "collection": { - "elementtype": { - "union": { - "types": [ - { - "primitive": "number" - }, - { - "fqn": "@scope/jsii-calc-lib.Value" - } - ] - } - }, - "kind": "array" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 180 - }, - "name": "unionMapProperty", - "type": { - "collection": { - "elementtype": { - "union": { - "types": [ - { - "primitive": "string" - }, - { - "primitive": "number" - }, - { - "fqn": "@scope/jsii-calc-lib.Number" - } - ] - } - }, - "kind": "map" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 178 - }, - "name": "unionProperty", + "name": "unionProperty", + "optional": true, "type": { "union": { "types": [ { - "primitive": "string" - }, - { - "primitive": "number" + "fqn": "jsii-calc.Add" }, { "fqn": "jsii-calc.Multiply" }, { - "fqn": "@scope/jsii-calc-lib.Number" + "fqn": "jsii-calc.Power" } ] } } - }, + } + ] + }, + "jsii-calc.CalculatorProps": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental", + "summary": "Properties for Calculator." + }, + "fqn": "jsii-calc.CalculatorProps", + "kind": "interface", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 234 + }, + "name": "CalculatorProps", + "properties": [ { + "abstract": true, "docs": { - "stability": "experimental" + "default": "0", + "remarks": "NOTE: Any number works here, it's fine.", + "stability": "experimental", + "summary": "The initial value of the calculator." }, + "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 173 + "filename": "lib/calculator.ts", + "line": 242 }, - "name": "unknownArrayProperty", + "name": "initialValue", + "optional": true, "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "array" - } + "primitive": "number" } }, { + "abstract": true, "docs": { - "stability": "experimental" + "default": "none", + "stability": "experimental", + "summary": "The maximum value the calculator can store." }, + "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 174 + "filename": "lib/calculator.ts", + "line": 249 }, - "name": "unknownMapProperty", + "name": "maximumValue", + "optional": true, "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "map" - } + "primitive": "number" } - }, + } + ] + }, + "jsii-calc.IFriendlier": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Even friendlier classes can implement this interface." + }, + "fqn": "jsii-calc.IFriendlier", + "interfaces": [ + "@scope/jsii-calc-lib.IFriendly" + ], + "kind": "interface", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 6 + }, + "methods": [ { + "abstract": true, "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Say farewell." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 172 + "filename": "lib/calculator.ts", + "line": 16 }, - "name": "unknownProperty", - "type": { - "primitive": "any" + "name": "farewell", + "returns": { + "type": { + "primitive": "string" + } } }, { + "abstract": true, "docs": { - "stability": "experimental" + "returns": "A goodbye blessing.", + "stability": "experimental", + "summary": "Say goodbye." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 184 + "filename": "lib/calculator.ts", + "line": 11 }, - "name": "optionalEnumValue", - "optional": true, - "type": { - "fqn": "jsii-calc.StringEnum" + "name": "goodbye", + "returns": { + "type": { + "primitive": "string" + } } } - ] + ], + "name": "IFriendlier" }, - "jsii-calc.AllTypesEnum": { + "jsii-calc.IFriendlyRandomGenerator": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.AllTypesEnum", - "kind": "enum", + "fqn": "jsii-calc.IFriendlyRandomGenerator", + "interfaces": [ + "jsii-calc.IRandomNumberGenerator", + "@scope/jsii-calc-lib.IFriendly" + ], + "kind": "interface", "locationInModule": { - "filename": "lib/compliance.ts", + "filename": "lib/calculator.ts", + "line": 30 + }, + "name": "IFriendlyRandomGenerator" + }, + "jsii-calc.IRandomNumberGenerator": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Generates random numbers." + }, + "fqn": "jsii-calc.IRandomNumberGenerator", + "kind": "interface", + "locationInModule": { + "filename": "lib/calculator.ts", "line": 22 }, - "members": [ - { - "docs": { - "stability": "experimental" - }, - "name": "MY_ENUM_VALUE" - }, + "methods": [ { + "abstract": true, "docs": { - "stability": "experimental" + "returns": "A random number.", + "stability": "experimental", + "summary": "Returns another random number." }, - "name": "YOUR_ENUM_VALUE" - }, - { - "docs": { - "stability": "experimental" + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 27 }, - "name": "THIS_IS_GREAT" + "name": "next", + "returns": { + "type": { + "primitive": "number" + } + } } ], - "name": "AllTypesEnum" + "name": "IRandomNumberGenerator" }, - "jsii-calc.AllowedMethodNames": { + "jsii-calc.MethodNamedProperty": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.AllowedMethodNames", + "fqn": "jsii-calc.MethodNamedProperty", "initializer": {}, "kind": "class", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 606 + "filename": "lib/calculator.ts", + "line": 386 }, "methods": [ { @@ -947,512 +837,356 @@ "stability": "experimental" }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 615 + "filename": "lib/calculator.ts", + "line": 387 }, - "name": "getBar", - "parameters": [ - { - "name": "_p1", - "type": { - "primitive": "string" - } - }, - { - "name": "_p2", - "type": { - "primitive": "number" - } + "name": "property", + "returns": { + "type": { + "primitive": "string" } - ] - }, + } + } + ], + "name": "MethodNamedProperty", + "properties": [ { "docs": { - "stability": "experimental", - "summary": "getXxx() is not allowed (see negatives), but getXxx(a, ...) is okay." + "stability": "experimental" }, + "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 611 - }, - "name": "getFoo", - "parameters": [ - { - "name": "withParam", - "type": { - "primitive": "string" - } - } - ], - "returns": { - "type": { - "primitive": "string" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 626 - }, - "name": "setBar", - "parameters": [ - { - "name": "_x", - "type": { - "primitive": "string" - } - }, - { - "name": "_y", - "type": { - "primitive": "number" - } - }, - { - "name": "_z", - "type": { - "primitive": "boolean" - } - } - ] - }, - { - "docs": { - "stability": "experimental", - "summary": "setFoo(x) is not allowed (see negatives), but setXxx(a, b, ...) is okay." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 622 + "filename": "lib/calculator.ts", + "line": 391 }, - "name": "setFoo", - "parameters": [ - { - "name": "_x", - "type": { - "primitive": "string" - } - }, - { - "name": "_y", - "type": { - "primitive": "number" - } - } - ] + "name": "elite", + "type": { + "primitive": "number" + } } - ], - "name": "AllowedMethodNames" + ] }, - "jsii-calc.AmbiguousParameters": { + "jsii-calc.Multiply": { "assembly": "jsii-calc", + "base": "jsii-calc.BinaryOperation", "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "The \"*\" binary operation." }, - "fqn": "jsii-calc.AmbiguousParameters", + "fqn": "jsii-calc.Multiply", "initializer": { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Creates a BinaryOperation." }, "parameters": [ { - "name": "scope", + "docs": { + "summary": "Left-hand side operand." + }, + "name": "lhs", "type": { - "fqn": "jsii-calc.Bell" + "fqn": "@scope/jsii-calc-lib.Value" } }, { - "name": "props", + "docs": { + "summary": "Right-hand side operand." + }, + "name": "rhs", "type": { - "fqn": "jsii-calc.StructParameterType" + "fqn": "@scope/jsii-calc-lib.Value" } } ] }, + "interfaces": [ + "jsii-calc.IFriendlier", + "jsii-calc.IRandomNumberGenerator" + ], "kind": "class", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2425 + "filename": "lib/calculator.ts", + "line": 68 }, - "name": "AmbiguousParameters", - "properties": [ + "methods": [ { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Say farewell." }, - "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2426 + "filename": "lib/calculator.ts", + "line": 81 }, - "name": "props", - "type": { - "fqn": "jsii-calc.StructParameterType" + "name": "farewell", + "overrides": "jsii-calc.IFriendlier", + "returns": { + "type": { + "primitive": "string" + } } }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Say goodbye." }, - "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2426 + "filename": "lib/calculator.ts", + "line": 77 }, - "name": "scope", - "type": { - "fqn": "jsii-calc.Bell" + "name": "goodbye", + "overrides": "jsii-calc.IFriendlier", + "returns": { + "type": { + "primitive": "string" + } } - } - ] - }, - "jsii-calc.AnonymousImplementationProvider": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.AnonymousImplementationProvider", - "initializer": {}, - "interfaces": [ - "jsii-calc.IAnonymousImplementationProvider" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1976 - }, - "methods": [ + }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Returns another random number." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1979 + "filename": "lib/calculator.ts", + "line": 85 }, - "name": "provideAsClass", - "overrides": "jsii-calc.IAnonymousImplementationProvider", + "name": "next", + "overrides": "jsii-calc.IRandomNumberGenerator", "returns": { "type": { - "fqn": "jsii-calc.Implementation" + "primitive": "number" } } }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "String representation of the value." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1983 + "filename": "lib/calculator.ts", + "line": 73 }, - "name": "provideAsInterface", - "overrides": "jsii-calc.IAnonymousImplementationProvider", + "name": "toString", + "overrides": "@scope/jsii-calc-lib.Operation", "returns": { "type": { - "fqn": "jsii-calc.IAnonymouslyImplementMe" + "primitive": "string" } } } ], - "name": "AnonymousImplementationProvider" + "name": "Multiply", + "properties": [ + { + "docs": { + "stability": "experimental", + "summary": "The value." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 69 + }, + "name": "value", + "overrides": "@scope/jsii-calc-lib.Value", + "type": { + "primitive": "number" + } + } + ] }, - "jsii-calc.AsyncVirtualMethods": { + "jsii-calc.Negate": { "assembly": "jsii-calc", + "base": "jsii-calc.UnaryOperation", "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "The negation operation (\"-value\")." }, - "fqn": "jsii-calc.AsyncVirtualMethods", - "initializer": {}, + "fqn": "jsii-calc.Negate", + "initializer": { + "docs": { + "stability": "experimental" + }, + "parameters": [ + { + "name": "operand", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" + } + } + ] + }, + "interfaces": [ + "jsii-calc.IFriendlier" + ], "kind": "class", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 321 + "filename": "lib/calculator.ts", + "line": 102 }, "methods": [ { - "async": true, "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Say farewell." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 322 + "filename": "lib/calculator.ts", + "line": 119 }, - "name": "callMe", + "name": "farewell", + "overrides": "jsii-calc.IFriendlier", "returns": { "type": { - "primitive": "number" + "primitive": "string" } } }, { - "async": true, "docs": { "stability": "experimental", - "summary": "Just calls \"overrideMeToo\"." + "summary": "Say goodbye." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 337 + "filename": "lib/calculator.ts", + "line": 115 }, - "name": "callMe2", + "name": "goodbye", + "overrides": "jsii-calc.IFriendlier", "returns": { "type": { - "primitive": "number" + "primitive": "string" } } }, { - "async": true, "docs": { - "remarks": "This is a \"double promise\" situation, which\nmeans that callbacks are not going to be available immediate, but only\nafter an \"immediates\" cycle.", "stability": "experimental", - "summary": "This method calls the \"callMe\" async method indirectly, which will then invoke a virtual method." + "summary": "Say hello!" }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 347 - }, - "name": "callMeDoublePromise", - "returns": { - "type": { - "primitive": "number" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 355 - }, - "name": "dontOverrideMe", - "returns": { - "type": { - "primitive": "number" - } - } - }, - { - "async": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 326 + "filename": "lib/calculator.ts", + "line": 111 }, - "name": "overrideMe", - "parameters": [ - { - "name": "mult", - "type": { - "primitive": "number" - } - } - ], + "name": "hello", + "overrides": "@scope/jsii-calc-lib.IFriendly", "returns": { "type": { - "primitive": "number" + "primitive": "string" } } }, { - "async": true, "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "String representation of the value." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 330 + "filename": "lib/calculator.ts", + "line": 107 }, - "name": "overrideMeToo", + "name": "toString", + "overrides": "@scope/jsii-calc-lib.Operation", "returns": { "type": { - "primitive": "number" + "primitive": "string" } } } ], - "name": "AsyncVirtualMethods" - }, - "jsii-calc.AugmentableClass": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.AugmentableClass", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1354 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1355 - }, - "name": "methodOne" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1361 - }, - "name": "methodTwo" - } - ], - "name": "AugmentableClass" - }, - "jsii-calc.BaseJsii976": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.BaseJsii976", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2219 - }, - "name": "BaseJsii976" - }, - "jsii-calc.Bell": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.Bell", - "initializer": {}, - "interfaces": [ - "jsii-calc.IBell" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2163 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2166 - }, - "name": "ring", - "overrides": "jsii-calc.IBell" - } - ], - "name": "Bell", + "name": "Negate", "properties": [ { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "The value." }, + "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2164 + "filename": "lib/calculator.ts", + "line": 103 }, - "name": "rung", + "name": "value", + "overrides": "@scope/jsii-calc-lib.Value", "type": { - "primitive": "boolean" + "primitive": "number" } } ] }, - "jsii-calc.BinaryOperation": { - "abstract": true, + "jsii-calc.Power": { "assembly": "jsii-calc", - "base": "@scope/jsii-calc-lib.Operation", + "base": "jsii-calc.composition.CompositeOperation", "docs": { "stability": "experimental", - "summary": "Represents an operation with two operands." + "summary": "The power operation." }, - "fqn": "jsii-calc.BinaryOperation", + "fqn": "jsii-calc.Power", "initializer": { "docs": { "stability": "experimental", - "summary": "Creates a BinaryOperation." + "summary": "Creates a Power operation." }, "parameters": [ { "docs": { - "summary": "Left-hand side operand." + "summary": "The base of the power." }, - "name": "lhs", + "name": "base", "type": { "fqn": "@scope/jsii-calc-lib.Value" } }, { "docs": { - "summary": "Right-hand side operand." + "summary": "The number of times to multiply." }, - "name": "rhs", + "name": "pow", "type": { "fqn": "@scope/jsii-calc-lib.Value" } } ] }, - "interfaces": [ - "@scope/jsii-calc-lib.IFriendly" - ], "kind": "class", "locationInModule": { "filename": "lib/calculator.ts", - "line": 37 + "line": 211 }, - "methods": [ + "name": "Power", + "properties": [ { "docs": { "stability": "experimental", - "summary": "Say hello!" + "summary": "The base of the power." }, + "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 47 + "line": 218 }, - "name": "hello", - "overrides": "@scope/jsii-calc-lib.IFriendly", - "returns": { - "type": { - "primitive": "string" - } + "name": "base", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" } - } - ], - "name": "BinaryOperation", - "properties": [ + }, { "docs": { + "remarks": "Must be implemented by derived classes.", "stability": "experimental", - "summary": "Left-hand side operand." + "summary": "The expression that this operation consists of." }, "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 43 + "line": 222 }, - "name": "lhs", + "name": "expression", + "overrides": "jsii-calc.composition.CompositeOperation", "type": { "fqn": "@scope/jsii-calc-lib.Value" } @@ -1460,150 +1194,141 @@ { "docs": { "stability": "experimental", - "summary": "Right-hand side operand." + "summary": "The number of times to multiply." }, "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 43 + "line": 218 }, - "name": "rhs", + "name": "pow", "type": { "fqn": "@scope/jsii-calc-lib.Value" } } ] }, - "jsii-calc.Calculator": { + "jsii-calc.PropertyNamedProperty": { "assembly": "jsii-calc", - "base": "jsii-calc.composition.CompositeOperation", "docs": { - "example": "const calculator = new calc.Calculator();\ncalculator.add(5);\ncalculator.mul(3);\nconsole.log(calculator.expression.value);", - "remarks": "Here's how you use it:\n\n```ts\nconst calculator = new calc.Calculator();\ncalculator.add(5);\ncalculator.mul(3);\nconsole.log(calculator.expression.value);\n```\n\nI will repeat this example again, but in an @example tag.", "stability": "experimental", - "summary": "A calculator which maintains a current value and allows adding operations." - }, - "fqn": "jsii-calc.Calculator", - "initializer": { - "docs": { - "stability": "experimental", - "summary": "Creates a Calculator object." - }, - "parameters": [ - { - "docs": { - "summary": "Initialization properties." - }, - "name": "props", - "optional": true, - "type": { - "fqn": "jsii-calc.CalculatorProps" - } - } - ] + "summary": "Reproduction for https://github.com/aws/jsii/issues/1113 Where a method or property named \"property\" would result in impossible to load Python code." }, + "fqn": "jsii-calc.PropertyNamedProperty", + "initializer": {}, "kind": "class", "locationInModule": { "filename": "lib/calculator.ts", - "line": 273 + "line": 382 }, - "methods": [ + "name": "PropertyNamedProperty", + "properties": [ { "docs": { - "stability": "experimental", - "summary": "Adds a number to the current value." + "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 312 + "line": 383 }, - "name": "add", - "parameters": [ - { - "name": "value", - "type": { - "primitive": "number" - } - } - ] + "name": "property", + "type": { + "primitive": "string" + } }, { "docs": { - "stability": "experimental", - "summary": "Multiplies the current value by a number." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 319 - }, - "name": "mul", - "parameters": [ - { - "name": "value", - "type": { - "primitive": "number" - } - } - ] - }, - { - "docs": { - "stability": "experimental", - "summary": "Negates the current value." + "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 333 + "line": 384 }, - "name": "neg" - }, + "name": "yetAnoterOne", + "type": { + "primitive": "boolean" + } + } + ] + }, + "jsii-calc.SmellyStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.SmellyStruct", + "kind": "interface", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 393 + }, + "name": "SmellyStruct", + "properties": [ { + "abstract": true, "docs": { - "stability": "experimental", - "summary": "Raises the current value by a power." + "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 326 + "line": 394 }, - "name": "pow", - "parameters": [ - { - "name": "value", - "type": { - "primitive": "number" - } - } - ] + "name": "property", + "type": { + "primitive": "string" + } }, { + "abstract": true, "docs": { - "stability": "experimental", - "summary": "Returns teh value of the union property (if defined)." + "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 352 + "line": 395 }, - "name": "readUnionValue", - "returns": { - "type": { - "primitive": "number" - } + "name": "yetAnoterOne", + "type": { + "primitive": "boolean" } } - ], - "name": "Calculator", + ] + }, + "jsii-calc.Sum": { + "assembly": "jsii-calc", + "base": "jsii-calc.composition.CompositeOperation", + "docs": { + "stability": "experimental", + "summary": "An operation that sums multiple values." + }, + "fqn": "jsii-calc.Sum", + "initializer": { + "docs": { + "stability": "experimental" + } + }, + "kind": "class", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 186 + }, + "name": "Sum", "properties": [ { "docs": { + "remarks": "Must be implemented by derived classes.", "stability": "experimental", - "summary": "Returns the expression." + "summary": "The expression that this operation consists of." }, "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 340 + "line": 199 }, "name": "expression", "overrides": "jsii-calc.composition.CompositeOperation", @@ -1614,14 +1339,13 @@ { "docs": { "stability": "experimental", - "summary": "A log of all operations." + "summary": "The parts to sum." }, - "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 302 + "line": 191 }, - "name": "operationsLog", + "name": "parts", "type": { "collection": { "elementtype": { @@ -1630,208 +1354,260 @@ "kind": "array" } } + } + ] + }, + "jsii-calc.UnaryOperation": { + "abstract": true, + "assembly": "jsii-calc", + "base": "@scope/jsii-calc-lib.Operation", + "docs": { + "stability": "experimental", + "summary": "An operation on a single operand." + }, + "fqn": "jsii-calc.UnaryOperation", + "initializer": { + "docs": { + "stability": "experimental" }, + "parameters": [ + { + "name": "operand", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" + } + } + ] + }, + "kind": "class", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 93 + }, + "name": "UnaryOperation", + "properties": [ { "docs": { - "stability": "experimental", - "summary": "A map of per operation name of all operations performed." + "stability": "experimental" }, "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 297 + "line": 94 }, - "name": "operationsMap", + "name": "operand", "type": { - "collection": { - "elementtype": { - "collection": { - "elementtype": { - "fqn": "@scope/jsii-calc-lib.Value" - }, - "kind": "array" - } - }, - "kind": "map" - } + "fqn": "@scope/jsii-calc-lib.Value" } - }, + } + ] + }, + "jsii-calc.compliance.AbstractClass": { + "abstract": true, + "assembly": "jsii-calc", + "base": "jsii-calc.compliance.AbstractClassBase", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.AbstractClass", + "initializer": {}, + "interfaces": [ + "jsii-calc.compliance.IInterfaceImplementedByAbstractClass" + ], + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1100 + }, + "methods": [ { + "abstract": true, "docs": { - "stability": "experimental", - "summary": "The current value." + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 292 + "filename": "lib/compliance.ts", + "line": 1105 }, - "name": "curr", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" + "name": "abstractMethod", + "parameters": [ + { + "name": "name", + "type": { + "primitive": "string" + } + } + ], + "returns": { + "type": { + "primitive": "string" + } } }, { "docs": { - "stability": "experimental", - "summary": "The maximum value allows in this calculator." + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 307 + "filename": "lib/compliance.ts", + "line": 1101 }, - "name": "maxValue", - "optional": true, - "type": { - "primitive": "number" + "name": "nonAbstractMethod", + "returns": { + "type": { + "primitive": "number" + } } - }, + } + ], + "name": "AbstractClass", + "namespace": "compliance", + "properties": [ { "docs": { - "stability": "experimental", - "summary": "Example of a property that accepts a union of types." + "stability": "experimental" }, + "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 347 + "filename": "lib/compliance.ts", + "line": 1107 }, - "name": "unionProperty", - "optional": true, + "name": "propFromInterface", + "overrides": "jsii-calc.compliance.IInterfaceImplementedByAbstractClass", "type": { - "union": { - "types": [ - { - "fqn": "jsii-calc.Add" - }, - { - "fqn": "jsii-calc.Multiply" - }, - { - "fqn": "jsii-calc.Power" - } - ] - } + "primitive": "string" } } ] }, - "jsii-calc.CalculatorProps": { + "jsii-calc.compliance.AbstractClassBase": { + "abstract": true, "assembly": "jsii-calc", - "datatype": true, "docs": { - "stability": "experimental", - "summary": "Properties for Calculator." + "stability": "experimental" }, - "fqn": "jsii-calc.CalculatorProps", - "kind": "interface", + "fqn": "jsii-calc.compliance.AbstractClassBase", + "initializer": {}, + "kind": "class", "locationInModule": { - "filename": "lib/calculator.ts", - "line": 234 + "filename": "lib/compliance.ts", + "line": 1096 }, - "name": "CalculatorProps", + "name": "AbstractClassBase", + "namespace": "compliance", "properties": [ { "abstract": true, "docs": { - "default": "0", - "remarks": "NOTE: Any number works here, it's fine.", - "stability": "experimental", - "summary": "The initial value of the calculator." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 242 - }, - "name": "initialValue", - "optional": true, - "type": { - "primitive": "number" - } - }, - { - "abstract": true, - "docs": { - "default": "none", - "stability": "experimental", - "summary": "The maximum value the calculator can store." + "stability": "experimental" }, "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 249 + "filename": "lib/compliance.ts", + "line": 1097 }, - "name": "maximumValue", - "optional": true, + "name": "abstractProperty", "type": { - "primitive": "number" + "primitive": "string" } } ] }, - "jsii-calc.ChildStruct982": { + "jsii-calc.compliance.AbstractClassReturner": { "assembly": "jsii-calc", - "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.ChildStruct982", - "interfaces": [ - "jsii-calc.ParentStruct982" - ], - "kind": "interface", + "fqn": "jsii-calc.compliance.AbstractClassReturner", + "initializer": {}, + "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2244 + "line": 1122 }, - "name": "ChildStruct982", + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1123 + }, + "name": "giveMeAbstract", + "returns": { + "type": { + "fqn": "jsii-calc.compliance.AbstractClass" + } + } + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1127 + }, + "name": "giveMeInterface", + "returns": { + "type": { + "fqn": "jsii-calc.compliance.IInterfaceImplementedByAbstractClass" + } + } + } + ], + "name": "AbstractClassReturner", + "namespace": "compliance", "properties": [ { - "abstract": true, "docs": { "stability": "experimental" }, "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2245 + "line": 1131 }, - "name": "bar", + "name": "returnAbstractFromProperty", "type": { - "primitive": "number" + "fqn": "jsii-calc.compliance.AbstractClassBase" } } ] }, - "jsii-calc.ClassThatImplementsTheInternalInterface": { + "jsii-calc.compliance.AllTypes": { "assembly": "jsii-calc", "docs": { - "stability": "experimental" + "remarks": "The setters will validate\nthat the value set is of the expected type and throw otherwise.", + "stability": "experimental", + "summary": "This class includes property for all types supported by jsii." }, - "fqn": "jsii-calc.ClassThatImplementsTheInternalInterface", + "fqn": "jsii-calc.compliance.AllTypes", "initializer": {}, - "interfaces": [ - "jsii-calc.INonInternalInterface" - ], "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1596 + "line": 52 }, - "name": "ClassThatImplementsTheInternalInterface", - "properties": [ + "methods": [ { "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1597 + "line": 220 }, - "name": "a", - "overrides": "jsii-calc.IAnotherPublicInterface", - "type": { - "primitive": "string" - } + "name": "anyIn", + "parameters": [ + { + "name": "inp", + "type": { + "primitive": "any" + } + } + ] }, { "docs": { @@ -1839,12 +1615,13 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1598 + "line": 212 }, - "name": "b", - "overrides": "jsii-calc.INonInternalInterface", - "type": { - "primitive": "string" + "name": "anyOut", + "returns": { + "type": { + "primitive": "any" + } } }, { @@ -1853,58 +1630,57 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1599 + "line": 207 }, - "name": "c", - "overrides": "jsii-calc.INonInternalInterface", - "type": { - "primitive": "string" + "name": "enumMethod", + "parameters": [ + { + "name": "value", + "type": { + "fqn": "jsii-calc.compliance.StringEnum" + } + } + ], + "returns": { + "type": { + "fqn": "jsii-calc.compliance.StringEnum" + } } - }, + } + ], + "name": "AllTypes", + "namespace": "compliance", + "properties": [ { "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1600 + "line": 203 }, - "name": "d", + "name": "enumPropertyValue", "type": { - "primitive": "string" + "primitive": "number" } - } - ] - }, - "jsii-calc.ClassThatImplementsThePrivateInterface": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.ClassThatImplementsThePrivateInterface", - "initializer": {}, - "interfaces": [ - "jsii-calc.INonInternalInterface" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1603 - }, - "name": "ClassThatImplementsThePrivateInterface", - "properties": [ + }, { "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1604 + "line": 167 }, - "name": "a", - "overrides": "jsii-calc.IAnotherPublicInterface", + "name": "anyArrayProperty", "type": { - "primitive": "string" + "collection": { + "elementtype": { + "primitive": "any" + }, + "kind": "array" + } } }, { @@ -1913,12 +1689,16 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1605 + "line": 168 }, - "name": "b", - "overrides": "jsii-calc.INonInternalInterface", + "name": "anyMapProperty", "type": { - "primitive": "string" + "collection": { + "elementtype": { + "primitive": "any" + }, + "kind": "map" + } } }, { @@ -1927,12 +1707,11 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1606 + "line": 166 }, - "name": "c", - "overrides": "jsii-calc.INonInternalInterface", + "name": "anyProperty", "type": { - "primitive": "string" + "primitive": "any" } }, { @@ -1941,76 +1720,43 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1607 + "line": 152 }, - "name": "e", + "name": "arrayProperty", "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.ClassWithCollections": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.ClassWithCollections", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "map", - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "map" - } - } - }, - { - "name": "array", - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" - } + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "array" } } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1883 - }, - "methods": [ + }, { "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1895 + "line": 58 }, - "name": "createAList", - "returns": { - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" - } - } + "name": "booleanProperty", + "type": { + "primitive": "boolean" + } + }, + { + "docs": { + "stability": "experimental" }, - "static": true + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 104 + }, + "name": "dateProperty", + "type": { + "primitive": "date" + } }, { "docs": { @@ -2018,38 +1764,92 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1899 + "line": 187 }, - "name": "createAMap", - "returns": { - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "map" - } + "name": "enumProperty", + "type": { + "fqn": "jsii-calc.compliance.AllTypesEnum" + } + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 121 + }, + "name": "jsonProperty", + "type": { + "primitive": "json" + } + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 137 + }, + "name": "mapProperty", + "type": { + "collection": { + "elementtype": { + "fqn": "@scope/jsii-calc-lib.Number" + }, + "kind": "map" } + } + }, + { + "docs": { + "stability": "experimental" }, - "static": true - } - ], - "name": "ClassWithCollections", - "properties": [ + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 89 + }, + "name": "numberProperty", + "type": { + "primitive": "number" + } + }, { "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1888 + "line": 73 }, - "name": "staticArray", - "static": true, + "name": "stringProperty", + "type": { + "primitive": "string" + } + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 179 + }, + "name": "unionArrayProperty", "type": { "collection": { "elementtype": { - "primitive": "string" + "union": { + "types": [ + { + "primitive": "number" + }, + { + "fqn": "@scope/jsii-calc-lib.Value" + } + ] + } }, "kind": "array" } @@ -2061,14 +1861,25 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1887 + "line": 180 }, - "name": "staticMap", - "static": true, + "name": "unionMapProperty", "type": { "collection": { "elementtype": { - "primitive": "string" + "union": { + "types": [ + { + "primitive": "string" + }, + { + "primitive": "number" + }, + { + "fqn": "@scope/jsii-calc-lib.Number" + } + ] + } }, "kind": "map" } @@ -2080,13 +1891,41 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1885 + "line": 178 }, - "name": "array", + "name": "unionProperty", + "type": { + "union": { + "types": [ + { + "primitive": "string" + }, + { + "primitive": "number" + }, + { + "fqn": "jsii-calc.Multiply" + }, + { + "fqn": "@scope/jsii-calc-lib.Number" + } + ] + } + } + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 173 + }, + "name": "unknownArrayProperty", "type": { "collection": { "elementtype": { - "primitive": "string" + "primitive": "any" }, "kind": "array" } @@ -2098,151 +1937,92 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1884 + "line": 174 }, - "name": "map", + "name": "unknownMapProperty", "type": { "collection": { "elementtype": { - "primitive": "string" + "primitive": "any" }, "kind": "map" } } - } - ] - }, - "jsii-calc.ClassWithDocs": { - "assembly": "jsii-calc", - "docs": { - "custom": { - "customAttribute": "hasAValue" - }, - "example": "function anExample() {\n}", - "remarks": "The docs are great. They're a bunch of tags.", - "see": "https://aws.amazon.com/", - "stability": "stable", - "summary": "This class has docs." - }, - "fqn": "jsii-calc.ClassWithDocs", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1669 - }, - "name": "ClassWithDocs" - }, - "jsii-calc.ClassWithJavaReservedWords": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.ClassWithJavaReservedWords", - "initializer": { - "docs": { - "stability": "experimental" }, - "parameters": [ - { - "name": "int", - "type": { - "primitive": "string" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1836 - }, - "methods": [ { "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1843 + "line": 172 }, - "name": "import", - "parameters": [ - { - "name": "assert", - "type": { - "primitive": "string" - } - } - ], - "returns": { - "type": { - "primitive": "string" - } + "name": "unknownProperty", + "type": { + "primitive": "any" } - } - ], - "name": "ClassWithJavaReservedWords", - "properties": [ + }, { "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1837 + "line": 184 }, - "name": "int", + "name": "optionalEnumValue", + "optional": true, "type": { - "primitive": "string" + "fqn": "jsii-calc.compliance.StringEnum" } } ] }, - "jsii-calc.ClassWithMutableObjectLiteralProperty": { + "jsii-calc.compliance.AllTypesEnum": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.ClassWithMutableObjectLiteralProperty", - "initializer": {}, - "kind": "class", + "fqn": "jsii-calc.compliance.AllTypesEnum", + "kind": "enum", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1142 + "line": 22 }, - "name": "ClassWithMutableObjectLiteralProperty", - "properties": [ + "members": [ { "docs": { "stability": "experimental" }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1143 + "name": "MY_ENUM_VALUE" + }, + { + "docs": { + "stability": "experimental" }, - "name": "mutableObject", - "type": { - "fqn": "jsii-calc.IMutableObjectLiteral" - } + "name": "YOUR_ENUM_VALUE" + }, + { + "docs": { + "stability": "experimental" + }, + "name": "THIS_IS_GREAT" } - ] + ], + "name": "AllTypesEnum", + "namespace": "compliance" }, - "jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties": { + "jsii-calc.compliance.AllowedMethodNames": { "assembly": "jsii-calc", "docs": { - "stability": "experimental", - "summary": "Class that implements interface properties automatically, but using a private constructor." + "stability": "experimental" }, - "fqn": "jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties", - "interfaces": [ - "jsii-calc.IInterfaceWithProperties" - ], + "fqn": "jsii-calc.compliance.AllowedMethodNames", + "initializer": {}, "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1169 + "line": 606 }, "methods": [ { @@ -2251,18 +2031,37 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1170 + "line": 615 }, - "name": "create", + "name": "getBar", "parameters": [ { - "name": "readOnlyString", + "name": "_p1", "type": { "primitive": "string" } }, { - "name": "readWriteString", + "name": "_p2", + "type": { + "primitive": "number" + } + } + ] + }, + { + "docs": { + "stability": "experimental", + "summary": "getXxx() is not allowed (see negatives), but getXxx(a, ...) is okay." + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 611 + }, + "name": "getFoo", + "parameters": [ + { + "name": "withParam", "type": { "primitive": "string" } @@ -2270,13 +2069,101 @@ ], "returns": { "type": { - "fqn": "jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties" + "primitive": "string" + } + } + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 626 + }, + "name": "setBar", + "parameters": [ + { + "name": "_x", + "type": { + "primitive": "string" + } + }, + { + "name": "_y", + "type": { + "primitive": "number" + } + }, + { + "name": "_z", + "type": { + "primitive": "boolean" + } } + ] + }, + { + "docs": { + "stability": "experimental", + "summary": "setFoo(x) is not allowed (see negatives), but setXxx(a, b, ...) is okay." }, - "static": true + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 622 + }, + "name": "setFoo", + "parameters": [ + { + "name": "_x", + "type": { + "primitive": "string" + } + }, + { + "name": "_y", + "type": { + "primitive": "number" + } + } + ] } ], - "name": "ClassWithPrivateConstructorAndAutomaticProperties", + "name": "AllowedMethodNames", + "namespace": "compliance" + }, + "jsii-calc.compliance.AmbiguousParameters": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.AmbiguousParameters", + "initializer": { + "docs": { + "stability": "experimental" + }, + "parameters": [ + { + "name": "scope", + "type": { + "fqn": "jsii-calc.compliance.Bell" + } + }, + { + "name": "props", + "type": { + "fqn": "jsii-calc.compliance.StructParameterType" + } + } + ] + }, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2425 + }, + "name": "AmbiguousParameters", + "namespace": "compliance", "properties": [ { "docs": { @@ -2285,42 +2172,43 @@ "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1174 + "line": 2426 }, - "name": "readOnlyString", - "overrides": "jsii-calc.IInterfaceWithProperties", + "name": "props", "type": { - "primitive": "string" + "fqn": "jsii-calc.compliance.StructParameterType" } }, { "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1174 + "line": 2426 }, - "name": "readWriteString", - "overrides": "jsii-calc.IInterfaceWithProperties", + "name": "scope", "type": { - "primitive": "string" + "fqn": "jsii-calc.compliance.Bell" } } ] }, - "jsii-calc.ConfusingToJackson": { + "jsii-calc.compliance.AnonymousImplementationProvider": { "assembly": "jsii-calc", "docs": { - "see": "https://github.com/aws/aws-cdk/issues/4080", - "stability": "experimental", - "summary": "This tries to confuse Jackson by having overloaded property setters." + "stability": "experimental" }, - "fqn": "jsii-calc.ConfusingToJackson", + "fqn": "jsii-calc.compliance.AnonymousImplementationProvider", + "initializer": {}, + "interfaces": [ + "jsii-calc.compliance.IAnonymousImplementationProvider" + ], "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2383 + "line": 1976 }, "methods": [ { @@ -2329,15 +2217,15 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2384 + "line": 1979 }, - "name": "makeInstance", + "name": "provideAsClass", + "overrides": "jsii-calc.compliance.IAnonymousImplementationProvider", "returns": { "type": { - "fqn": "jsii-calc.ConfusingToJackson" + "fqn": "jsii-calc.compliance.Implementation" } - }, - "static": true + } }, { "docs": { @@ -2345,188 +2233,83 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2388 + "line": 1983 }, - "name": "makeStructInstance", + "name": "provideAsInterface", + "overrides": "jsii-calc.compliance.IAnonymousImplementationProvider", "returns": { "type": { - "fqn": "jsii-calc.ConfusingToJacksonStruct" - } - }, - "static": true - } - ], - "name": "ConfusingToJackson", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2392 - }, - "name": "unionProperty", - "optional": true, - "type": { - "union": { - "types": [ - { - "fqn": "@scope/jsii-calc-lib.IFriendly" - }, - { - "collection": { - "elementtype": { - "union": { - "types": [ - { - "fqn": "@scope/jsii-calc-lib.IFriendly" - }, - { - "fqn": "jsii-calc.AbstractClass" - } - ] - } - }, - "kind": "array" - } - } - ] + "fqn": "jsii-calc.compliance.IAnonymouslyImplementMe" } } } - ] + ], + "name": "AnonymousImplementationProvider", + "namespace": "compliance" }, - "jsii-calc.ConfusingToJacksonStruct": { + "jsii-calc.compliance.AsyncVirtualMethods": { "assembly": "jsii-calc", - "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.ConfusingToJacksonStruct", - "kind": "interface", + "fqn": "jsii-calc.compliance.AsyncVirtualMethods", + "initializer": {}, + "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2396 + "line": 321 }, - "name": "ConfusingToJacksonStruct", - "properties": [ + "methods": [ { - "abstract": true, + "async": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2397 + "line": 322 }, - "name": "unionProperty", - "optional": true, - "type": { - "union": { - "types": [ - { - "fqn": "@scope/jsii-calc-lib.IFriendly" - }, - { - "collection": { - "elementtype": { - "union": { - "types": [ - { - "fqn": "@scope/jsii-calc-lib.IFriendly" - }, - { - "fqn": "jsii-calc.AbstractClass" - } - ] - } - }, - "kind": "array" - } - } - ] - } - } - } - ] - }, - "jsii-calc.ConstructorPassesThisOut": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.ConstructorPassesThisOut", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "consumer", + "name": "callMe", + "returns": { "type": { - "fqn": "jsii-calc.PartiallyInitializedThisConsumer" + "primitive": "number" } } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1628 - }, - "name": "ConstructorPassesThisOut" - }, - "jsii-calc.Constructors": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.Constructors", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1393 - }, - "methods": [ + }, { + "async": true, "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Just calls \"overrideMeToo\"." }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1410 + "line": 337 }, - "name": "hiddenInterface", + "name": "callMe2", "returns": { "type": { - "fqn": "jsii-calc.IPublicInterface" + "primitive": "number" } - }, - "static": true + } }, { + "async": true, "docs": { - "stability": "experimental" + "remarks": "This is a \"double promise\" situation, which\nmeans that callbacks are not going to be available immediate, but only\nafter an \"immediates\" cycle.", + "stability": "experimental", + "summary": "This method calls the \"callMe\" async method indirectly, which will then invoke a virtual method." }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1414 + "line": 347 }, - "name": "hiddenInterfaces", + "name": "callMeDoublePromise", "returns": { "type": { - "collection": { - "elementtype": { - "fqn": "jsii-calc.IPublicInterface" - }, - "kind": "array" - } + "primitive": "number" } - }, - "static": true + } }, { "docs": { @@ -2534,68 +2317,81 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1418 + "line": 355 }, - "name": "hiddenSubInterfaces", + "name": "dontOverrideMe", "returns": { "type": { - "collection": { - "elementtype": { - "fqn": "jsii-calc.IPublicInterface" - }, - "kind": "array" - } + "primitive": "number" } - }, - "static": true + } }, { + "async": true, "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1394 + "line": 326 }, - "name": "makeClass", + "name": "overrideMe", + "parameters": [ + { + "name": "mult", + "type": { + "primitive": "number" + } + } + ], "returns": { "type": { - "fqn": "jsii-calc.PublicClass" + "primitive": "number" } - }, - "static": true + } }, { + "async": true, "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1398 + "line": 330 }, - "name": "makeInterface", + "name": "overrideMeToo", "returns": { "type": { - "fqn": "jsii-calc.IPublicInterface" + "primitive": "number" } - }, - "static": true - }, + } + } + ], + "name": "AsyncVirtualMethods", + "namespace": "compliance" + }, + "jsii-calc.compliance.AugmentableClass": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.AugmentableClass", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1354 + }, + "methods": [ { "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1402 - }, - "name": "makeInterface2", - "returns": { - "type": { - "fqn": "jsii-calc.IPublicInterface2" - } + "line": 1355 }, - "static": true + "name": "methodOne" }, { "docs": { @@ -2603,47 +2399,43 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1406 - }, - "name": "makeInterfaces", - "returns": { - "type": { - "collection": { - "elementtype": { - "fqn": "jsii-calc.IPublicInterface" - }, - "kind": "array" - } - } + "line": 1361 }, - "static": true + "name": "methodTwo" } ], - "name": "Constructors" + "name": "AugmentableClass", + "namespace": "compliance" }, - "jsii-calc.ConsumePureInterface": { + "jsii-calc.compliance.BaseJsii976": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.ConsumePureInterface", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "delegate", - "type": { - "fqn": "jsii-calc.IStructReturningDelegate" - } - } - ] + "fqn": "jsii-calc.compliance.BaseJsii976", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2219 + }, + "name": "BaseJsii976", + "namespace": "compliance" + }, + "jsii-calc.compliance.Bell": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, + "fqn": "jsii-calc.compliance.Bell", + "initializer": {}, + "interfaces": [ + "jsii-calc.compliance.IBell" + ], "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2406 + "line": 2163 }, "methods": [ { @@ -2652,251 +2444,254 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2409 + "line": 2166 }, - "name": "workItBaby", - "returns": { - "type": { - "fqn": "jsii-calc.StructB" - } + "name": "ring", + "overrides": "jsii-calc.compliance.IBell" + } + ], + "name": "Bell", + "namespace": "compliance", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2164 + }, + "name": "rung", + "type": { + "primitive": "boolean" } } + ] + }, + "jsii-calc.compliance.ChildStruct982": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.ChildStruct982", + "interfaces": [ + "jsii-calc.compliance.ParentStruct982" ], - "name": "ConsumePureInterface" + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2244 + }, + "name": "ChildStruct982", + "namespace": "compliance", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2245 + }, + "name": "bar", + "type": { + "primitive": "number" + } + } + ] }, - "jsii-calc.ConsumerCanRingBell": { + "jsii-calc.compliance.ClassThatImplementsTheInternalInterface": { "assembly": "jsii-calc", "docs": { - "remarks": "Check that if a JSII consumer implements IConsumerWithInterfaceParam, they can call\nthe method on the argument that they're passed...", - "stability": "experimental", - "summary": "Test calling back to consumers that implement interfaces." + "stability": "experimental" }, - "fqn": "jsii-calc.ConsumerCanRingBell", + "fqn": "jsii-calc.compliance.ClassThatImplementsTheInternalInterface", "initializer": {}, + "interfaces": [ + "jsii-calc.compliance.INonInternalInterface" + ], "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2048 + "line": 1596 }, - "methods": [ + "name": "ClassThatImplementsTheInternalInterface", + "namespace": "compliance", + "properties": [ { "docs": { - "remarks": "Returns whether the bell was rung.", - "stability": "experimental", - "summary": "...if the interface is implemented using an object literal." + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2054 - }, - "name": "staticImplementedByObjectLiteral", - "parameters": [ - { - "name": "ringer", - "type": { - "fqn": "jsii-calc.IBellRinger" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } + "line": 1597 }, - "static": true + "name": "a", + "overrides": "jsii-calc.compliance.IAnotherPublicInterface", + "type": { + "primitive": "string" + } }, { "docs": { - "remarks": "Return whether the bell was rung.", - "stability": "experimental", - "summary": "...if the interface is implemented using a private class." + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2080 - }, - "name": "staticImplementedByPrivateClass", - "parameters": [ - { - "name": "ringer", - "type": { - "fqn": "jsii-calc.IBellRinger" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } + "line": 1598 }, - "static": true + "name": "b", + "overrides": "jsii-calc.compliance.INonInternalInterface", + "type": { + "primitive": "string" + } }, { "docs": { - "remarks": "Return whether the bell was rung.", - "stability": "experimental", - "summary": "...if the interface is implemented using a public class." + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2069 - }, - "name": "staticImplementedByPublicClass", - "parameters": [ - { - "name": "ringer", - "type": { - "fqn": "jsii-calc.IBellRinger" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } + "line": 1599 }, - "static": true + "name": "c", + "overrides": "jsii-calc.compliance.INonInternalInterface", + "type": { + "primitive": "string" + } }, { "docs": { - "remarks": "Return whether the bell was rung.", - "stability": "experimental", - "summary": "If the parameter is a concrete class instead of an interface." + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2091 - }, - "name": "staticWhenTypedAsClass", - "parameters": [ - { - "name": "ringer", - "type": { - "fqn": "jsii-calc.IConcreteBellRinger" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } + "line": 1600 }, - "static": true - }, + "name": "d", + "type": { + "primitive": "string" + } + } + ] + }, + "jsii-calc.compliance.ClassThatImplementsThePrivateInterface": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.ClassThatImplementsThePrivateInterface", + "initializer": {}, + "interfaces": [ + "jsii-calc.compliance.INonInternalInterface" + ], + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1603 + }, + "name": "ClassThatImplementsThePrivateInterface", + "namespace": "compliance", + "properties": [ { "docs": { - "remarks": "Returns whether the bell was rung.", - "stability": "experimental", - "summary": "...if the interface is implemented using an object literal." + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2101 + "line": 1604 }, - "name": "implementedByObjectLiteral", - "parameters": [ - { - "name": "ringer", - "type": { - "fqn": "jsii-calc.IBellRinger" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } + "name": "a", + "overrides": "jsii-calc.compliance.IAnotherPublicInterface", + "type": { + "primitive": "string" } }, { "docs": { - "remarks": "Return whether the bell was rung.", - "stability": "experimental", - "summary": "...if the interface is implemented using a private class." + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2127 + "line": 1605 }, - "name": "implementedByPrivateClass", - "parameters": [ - { - "name": "ringer", - "type": { - "fqn": "jsii-calc.IBellRinger" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } + "name": "b", + "overrides": "jsii-calc.compliance.INonInternalInterface", + "type": { + "primitive": "string" } }, { "docs": { - "remarks": "Return whether the bell was rung.", - "stability": "experimental", - "summary": "...if the interface is implemented using a public class." + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2116 + "line": 1606 }, - "name": "implementedByPublicClass", - "parameters": [ - { - "name": "ringer", - "type": { - "fqn": "jsii-calc.IBellRinger" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } + "name": "c", + "overrides": "jsii-calc.compliance.INonInternalInterface", + "type": { + "primitive": "string" } }, { "docs": { - "remarks": "Return whether the bell was rung.", - "stability": "experimental", - "summary": "If the parameter is a concrete class instead of an interface." + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2138 + "line": 1607 }, - "name": "whenTypedAsClass", - "parameters": [ - { - "name": "ringer", - "type": { - "fqn": "jsii-calc.IConcreteBellRinger" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } + "name": "e", + "type": { + "primitive": "string" } } - ], - "name": "ConsumerCanRingBell" + ] }, - "jsii-calc.ConsumersOfThisCrazyTypeSystem": { + "jsii-calc.compliance.ClassWithCollections": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.ConsumersOfThisCrazyTypeSystem", - "initializer": {}, + "fqn": "jsii-calc.compliance.ClassWithCollections", + "initializer": { + "docs": { + "stability": "experimental" + }, + "parameters": [ + { + "name": "map", + "type": { + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "map" + } + } + }, + { + "name": "array", + "type": { + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "array" + } + } + } + ] + }, "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1610 + "line": 1883 }, "methods": [ { @@ -2905,22 +2700,20 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1611 + "line": 1895 }, - "name": "consumeAnotherPublicInterface", - "parameters": [ - { - "name": "obj", - "type": { - "fqn": "jsii-calc.IAnotherPublicInterface" - } - } - ], + "name": "createAList", "returns": { "type": { - "primitive": "string" + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "array" + } } - } + }, + "static": true }, { "docs": { @@ -2928,65 +2721,41 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1615 + "line": 1899 }, - "name": "consumeNonInternalInterface", - "parameters": [ - { - "name": "obj", - "type": { - "fqn": "jsii-calc.INonInternalInterface" - } - } - ], + "name": "createAMap", "returns": { "type": { - "primitive": "any" + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "map" + } } - } + }, + "static": true } ], - "name": "ConsumersOfThisCrazyTypeSystem" - }, - "jsii-calc.DataRenderer": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Verifies proper type handling through dynamic overrides." - }, - "fqn": "jsii-calc.DataRenderer", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1766 - }, - "methods": [ + "name": "ClassWithCollections", + "namespace": "compliance", + "properties": [ { "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1769 + "line": 1888 }, - "name": "render", - "parameters": [ - { - "name": "data", - "optional": true, - "type": { - "fqn": "@scope/jsii-calc-lib.MyFirstStruct" - } - } - ], - "returns": { - "type": { - "primitive": "string" + "name": "staticArray", + "static": true, + "type": { + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "array" } } }, @@ -2996,25 +2765,16 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1773 + "line": 1887 }, - "name": "renderArbitrary", - "parameters": [ - { - "name": "data", - "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "map" - } - } - } - ], - "returns": { - "type": { - "primitive": "string" + "name": "staticMap", + "static": true, + "type": { + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "map" } } }, @@ -3024,86 +2784,112 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1777 + "line": 1885 }, - "name": "renderMap", - "parameters": [ - { - "name": "map", - "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "map" - } - } + "name": "array", + "type": { + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "array" } - ], - "returns": { - "type": { - "primitive": "string" + } + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1884 + }, + "name": "map", + "type": { + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "map" } } } - ], - "name": "DataRenderer" + ] + }, + "jsii-calc.compliance.ClassWithDocs": { + "assembly": "jsii-calc", + "docs": { + "custom": { + "customAttribute": "hasAValue" + }, + "example": "function anExample() {\n}", + "remarks": "The docs are great. They're a bunch of tags.", + "see": "https://aws.amazon.com/", + "stability": "stable", + "summary": "This class has docs." + }, + "fqn": "jsii-calc.compliance.ClassWithDocs", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1669 + }, + "name": "ClassWithDocs", + "namespace": "compliance" }, - "jsii-calc.DefaultedConstructorArgument": { + "jsii-calc.compliance.ClassWithJavaReservedWords": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.DefaultedConstructorArgument", + "fqn": "jsii-calc.compliance.ClassWithJavaReservedWords", "initializer": { "docs": { "stability": "experimental" }, "parameters": [ { - "name": "arg1", - "optional": true, - "type": { - "primitive": "number" - } - }, - { - "name": "arg2", - "optional": true, + "name": "int", "type": { "primitive": "string" } - }, - { - "name": "arg3", - "optional": true, - "type": { - "primitive": "date" - } } ] }, "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 302 + "line": 1836 }, - "name": "DefaultedConstructorArgument", - "properties": [ + "methods": [ { "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 303 + "line": 1843 }, - "name": "arg1", - "type": { - "primitive": "number" + "name": "import", + "parameters": [ + { + "name": "assert", + "type": { + "primitive": "string" + } + } + ], + "returns": { + "type": { + "primitive": "string" + } } - }, + } + ], + "name": "ClassWithJavaReservedWords", + "namespace": "compliance", + "properties": [ { "docs": { "stability": "experimental" @@ -3111,846 +2897,739 @@ "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 305 + "line": 1837 }, - "name": "arg3", + "name": "int", "type": { - "primitive": "date" + "primitive": "string" } - }, + } + ] + }, + "jsii-calc.compliance.ClassWithMutableObjectLiteralProperty": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.ClassWithMutableObjectLiteralProperty", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1142 + }, + "name": "ClassWithMutableObjectLiteralProperty", + "namespace": "compliance", + "properties": [ { "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 304 + "line": 1143 }, - "name": "arg2", - "optional": true, + "name": "mutableObject", "type": { - "primitive": "string" + "fqn": "jsii-calc.compliance.IMutableObjectLiteral" } } ] }, - "jsii-calc.Demonstrate982": { + "jsii-calc.compliance.ClassWithPrivateConstructorAndAutomaticProperties": { "assembly": "jsii-calc", "docs": { - "remarks": "call #takeThis() -> An ObjectRef will be provisioned for the value (it'll be re-used!)\n2. call #takeThisToo() -> The ObjectRef from before will need to be down-cased to the ParentStruct982 type", "stability": "experimental", - "summary": "1." - }, - "fqn": "jsii-calc.Demonstrate982", - "initializer": { - "docs": { - "stability": "experimental" - } + "summary": "Class that implements interface properties automatically, but using a private constructor." }, + "fqn": "jsii-calc.compliance.ClassWithPrivateConstructorAndAutomaticProperties", + "interfaces": [ + "jsii-calc.compliance.IInterfaceWithProperties" + ], "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2251 + "line": 1169 }, "methods": [ { "docs": { - "stability": "experimental", - "summary": "It's dangerous to go alone!" + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2258 + "line": 1170 }, - "name": "takeThis", + "name": "create", + "parameters": [ + { + "name": "readOnlyString", + "type": { + "primitive": "string" + } + }, + { + "name": "readWriteString", + "type": { + "primitive": "string" + } + } + ], "returns": { "type": { - "fqn": "jsii-calc.ChildStruct982" + "fqn": "jsii-calc.compliance.ClassWithPrivateConstructorAndAutomaticProperties" } }, "static": true - }, + } + ], + "name": "ClassWithPrivateConstructorAndAutomaticProperties", + "namespace": "compliance", + "properties": [ { "docs": { - "stability": "experimental", - "summary": "It's dangerous to go alone!" + "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2263 - }, - "name": "takeThisToo", - "returns": { - "type": { - "fqn": "jsii-calc.ParentStruct982" - } + "line": 1174 }, - "static": true - } - ], - "name": "Demonstrate982" - }, - "jsii-calc.DeprecatedClass": { - "assembly": "jsii-calc", - "docs": { - "deprecated": "a pretty boring class", - "stability": "deprecated" - }, - "fqn": "jsii-calc.DeprecatedClass", - "initializer": { - "docs": { - "deprecated": "this constructor is \"just\" okay", - "stability": "deprecated" - }, - "parameters": [ - { - "name": "readonlyString", - "type": { - "primitive": "string" - } - }, - { - "name": "mutableNumber", - "optional": true, - "type": { - "primitive": "number" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 85 - }, - "methods": [ - { - "docs": { - "deprecated": "it was a bad idea", - "stability": "deprecated" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 96 - }, - "name": "method" - } - ], - "name": "DeprecatedClass", - "properties": [ - { - "docs": { - "deprecated": "this is not always \"wazoo\", be ready to be disappointed", - "stability": "deprecated" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 87 - }, - "name": "readonlyProperty", + "name": "readOnlyString", + "overrides": "jsii-calc.compliance.IInterfaceWithProperties", "type": { "primitive": "string" } }, { "docs": { - "deprecated": "shouldn't have been mutable", - "stability": "deprecated" + "stability": "experimental" }, "locationInModule": { - "filename": "lib/stability.ts", - "line": 89 + "filename": "lib/compliance.ts", + "line": 1174 }, - "name": "mutableProperty", - "optional": true, + "name": "readWriteString", + "overrides": "jsii-calc.compliance.IInterfaceWithProperties", "type": { - "primitive": "number" + "primitive": "string" } } ] }, - "jsii-calc.DeprecatedEnum": { + "jsii-calc.compliance.ConfusingToJackson": { "assembly": "jsii-calc", "docs": { - "deprecated": "your deprecated selection of bad options", - "stability": "deprecated" + "see": "https://github.com/aws/aws-cdk/issues/4080", + "stability": "experimental", + "summary": "This tries to confuse Jackson by having overloaded property setters." }, - "fqn": "jsii-calc.DeprecatedEnum", - "kind": "enum", + "fqn": "jsii-calc.compliance.ConfusingToJackson", + "kind": "class", "locationInModule": { - "filename": "lib/stability.ts", - "line": 99 + "filename": "lib/compliance.ts", + "line": 2383 }, - "members": [ + "methods": [ { "docs": { - "deprecated": "option A is not great", - "stability": "deprecated" + "stability": "experimental" }, - "name": "OPTION_A" + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2384 + }, + "name": "makeInstance", + "returns": { + "type": { + "fqn": "jsii-calc.compliance.ConfusingToJackson" + } + }, + "static": true }, { "docs": { - "deprecated": "option B is kinda bad, too", - "stability": "deprecated" + "stability": "experimental" }, - "name": "OPTION_B" + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2388 + }, + "name": "makeStructInstance", + "returns": { + "type": { + "fqn": "jsii-calc.compliance.ConfusingToJacksonStruct" + } + }, + "static": true } ], - "name": "DeprecatedEnum" - }, - "jsii-calc.DeprecatedStruct": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "deprecated": "it just wraps a string", - "stability": "deprecated" - }, - "fqn": "jsii-calc.DeprecatedStruct", - "kind": "interface", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 73 - }, - "name": "DeprecatedStruct", + "name": "ConfusingToJackson", + "namespace": "compliance", "properties": [ { - "abstract": true, "docs": { - "deprecated": "well, yeah", - "stability": "deprecated" + "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/stability.ts", - "line": 75 + "filename": "lib/compliance.ts", + "line": 2392 }, - "name": "readonlyProperty", + "name": "unionProperty", + "optional": true, "type": { - "primitive": "string" + "union": { + "types": [ + { + "fqn": "@scope/jsii-calc-lib.IFriendly" + }, + { + "collection": { + "elementtype": { + "union": { + "types": [ + { + "fqn": "jsii-calc.compliance.AbstractClass" + }, + { + "fqn": "@scope/jsii-calc-lib.IFriendly" + } + ] + } + }, + "kind": "array" + } + } + ] + } } } ] }, - "jsii-calc.DerivedClassHasNoProperties.Base": { + "jsii-calc.compliance.ConfusingToJacksonStruct": { "assembly": "jsii-calc", + "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.DerivedClassHasNoProperties.Base", - "initializer": {}, - "kind": "class", + "fqn": "jsii-calc.compliance.ConfusingToJacksonStruct", + "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 311 + "line": 2396 }, - "name": "Base", - "namespace": "DerivedClassHasNoProperties", + "name": "ConfusingToJacksonStruct", + "namespace": "compliance", "properties": [ { + "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 312 + "line": 2397 }, - "name": "prop", + "name": "unionProperty", + "optional": true, "type": { - "primitive": "string" + "union": { + "types": [ + { + "fqn": "@scope/jsii-calc-lib.IFriendly" + }, + { + "collection": { + "elementtype": { + "union": { + "types": [ + { + "fqn": "jsii-calc.compliance.AbstractClass" + }, + { + "fqn": "@scope/jsii-calc-lib.IFriendly" + } + ] + } + }, + "kind": "array" + } + } + ] + } } } ] }, - "jsii-calc.DerivedClassHasNoProperties.Derived": { + "jsii-calc.compliance.ConstructorPassesThisOut": { "assembly": "jsii-calc", - "base": "jsii-calc.DerivedClassHasNoProperties.Base", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.DerivedClassHasNoProperties.Derived", - "initializer": {}, + "fqn": "jsii-calc.compliance.ConstructorPassesThisOut", + "initializer": { + "docs": { + "stability": "experimental" + }, + "parameters": [ + { + "name": "consumer", + "type": { + "fqn": "jsii-calc.compliance.PartiallyInitializedThisConsumer" + } + } + ] + }, "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 315 + "line": 1628 }, - "name": "Derived", - "namespace": "DerivedClassHasNoProperties" + "name": "ConstructorPassesThisOut", + "namespace": "compliance" }, - "jsii-calc.DerivedStruct": { + "jsii-calc.compliance.Constructors": { "assembly": "jsii-calc", - "datatype": true, "docs": { - "stability": "experimental", - "summary": "A struct which derives from another struct." + "stability": "experimental" }, - "fqn": "jsii-calc.DerivedStruct", - "interfaces": [ - "@scope/jsii-calc-lib.MyFirstStruct" - ], - "kind": "interface", + "fqn": "jsii-calc.compliance.Constructors", + "initializer": {}, + "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 533 + "line": 1393 }, - "name": "DerivedStruct", - "properties": [ + "methods": [ { - "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 539 + "line": 1410 }, - "name": "anotherRequired", - "type": { - "primitive": "date" - } + "name": "hiddenInterface", + "returns": { + "type": { + "fqn": "jsii-calc.compliance.IPublicInterface" + } + }, + "static": true }, { - "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 538 + "line": 1414 }, - "name": "bool", - "type": { - "primitive": "boolean" - } - }, - { - "abstract": true, - "docs": { - "stability": "experimental", - "summary": "An example of a non primitive property." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 537 + "name": "hiddenInterfaces", + "returns": { + "type": { + "collection": { + "elementtype": { + "fqn": "jsii-calc.compliance.IPublicInterface" + }, + "kind": "array" + } + } }, - "name": "nonPrimitive", - "type": { - "fqn": "jsii-calc.DoubleTrouble" - } + "static": true }, { - "abstract": true, "docs": { - "stability": "experimental", - "summary": "This is optional." + "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 545 + "line": 1418 }, - "name": "anotherOptional", - "optional": true, - "type": { - "collection": { - "elementtype": { - "fqn": "@scope/jsii-calc-lib.Value" - }, - "kind": "map" + "name": "hiddenSubInterfaces", + "returns": { + "type": { + "collection": { + "elementtype": { + "fqn": "jsii-calc.compliance.IPublicInterface" + }, + "kind": "array" + } } - } + }, + "static": true }, { - "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 541 + "line": 1394 }, - "name": "optionalAny", - "optional": true, - "type": { - "primitive": "any" - } + "name": "makeClass", + "returns": { + "type": { + "fqn": "jsii-calc.compliance.PublicClass" + } + }, + "static": true }, { - "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 540 + "line": 1398 }, - "name": "optionalArray", - "optional": true, - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" + "name": "makeInterface", + "returns": { + "type": { + "fqn": "jsii-calc.compliance.IPublicInterface" } - } - } - ] - }, - "jsii-calc.DiamondInheritanceBaseLevelStruct": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.DiamondInheritanceBaseLevelStruct", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1811 - }, - "name": "DiamondInheritanceBaseLevelStruct", - "properties": [ + }, + "static": true + }, { - "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1812 + "line": 1402 }, - "name": "baseLevelProperty", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.DiamondInheritanceFirstMidLevelStruct": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.DiamondInheritanceFirstMidLevelStruct", - "interfaces": [ - "jsii-calc.DiamondInheritanceBaseLevelStruct" - ], - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1815 - }, - "name": "DiamondInheritanceFirstMidLevelStruct", - "properties": [ + "name": "makeInterface2", + "returns": { + "type": { + "fqn": "jsii-calc.compliance.IPublicInterface2" + } + }, + "static": true + }, { - "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1816 + "line": 1406 }, - "name": "firstMidLevelProperty", - "type": { - "primitive": "string" - } + "name": "makeInterfaces", + "returns": { + "type": { + "collection": { + "elementtype": { + "fqn": "jsii-calc.compliance.IPublicInterface" + }, + "kind": "array" + } + } + }, + "static": true } - ] + ], + "name": "Constructors", + "namespace": "compliance" }, - "jsii-calc.DiamondInheritanceSecondMidLevelStruct": { + "jsii-calc.compliance.ConsumePureInterface": { "assembly": "jsii-calc", - "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.DiamondInheritanceSecondMidLevelStruct", - "interfaces": [ - "jsii-calc.DiamondInheritanceBaseLevelStruct" - ], - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1819 - }, - "name": "DiamondInheritanceSecondMidLevelStruct", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1820 - }, - "name": "secondMidLevelProperty", - "type": { - "primitive": "string" + "fqn": "jsii-calc.compliance.ConsumePureInterface", + "initializer": { + "docs": { + "stability": "experimental" + }, + "parameters": [ + { + "name": "delegate", + "type": { + "fqn": "jsii-calc.compliance.IStructReturningDelegate" + } } - } - ] - }, - "jsii-calc.DiamondInheritanceTopLevelStruct": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" + ] }, - "fqn": "jsii-calc.DiamondInheritanceTopLevelStruct", - "interfaces": [ - "jsii-calc.DiamondInheritanceFirstMidLevelStruct", - "jsii-calc.DiamondInheritanceSecondMidLevelStruct" - ], - "kind": "interface", + "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1823 + "line": 2406 }, - "name": "DiamondInheritanceTopLevelStruct", - "properties": [ + "methods": [ { - "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1824 + "line": 2409 }, - "name": "topLevelProperty", - "type": { - "primitive": "string" + "name": "workItBaby", + "returns": { + "type": { + "fqn": "jsii-calc.compliance.StructB" + } } } - ] + ], + "name": "ConsumePureInterface", + "namespace": "compliance" }, - "jsii-calc.DisappointingCollectionSource": { + "jsii-calc.compliance.ConsumerCanRingBell": { "assembly": "jsii-calc", "docs": { - "remarks": "This source of collections is disappointing - it'll always give you nothing :(", + "remarks": "Check that if a JSII consumer implements IConsumerWithInterfaceParam, they can call\nthe method on the argument that they're passed...", "stability": "experimental", - "summary": "Verifies that null/undefined can be returned for optional collections." + "summary": "Test calling back to consumers that implement interfaces." }, - "fqn": "jsii-calc.DisappointingCollectionSource", + "fqn": "jsii-calc.compliance.ConsumerCanRingBell", + "initializer": {}, "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2275 + "line": 2048 }, - "name": "DisappointingCollectionSource", - "properties": [ + "methods": [ { - "const": true, "docs": { - "remarks": "(Nah, just a billion dollars mistake!)", + "remarks": "Returns whether the bell was rung.", "stability": "experimental", - "summary": "Some List of strings, maybe?" + "summary": "...if the interface is implemented using an object literal." }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2277 + "line": 2054 }, - "name": "maybeList", - "optional": true, - "static": true, - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" + "name": "staticImplementedByObjectLiteral", + "parameters": [ + { + "name": "ringer", + "type": { + "fqn": "jsii-calc.compliance.IBellRinger" + } } - } + ], + "returns": { + "type": { + "primitive": "boolean" + } + }, + "static": true }, { - "const": true, "docs": { - "remarks": "(Nah, just a billion dollars mistake!)", + "remarks": "Return whether the bell was rung.", "stability": "experimental", - "summary": "Some Map of strings to numbers, maybe?" + "summary": "...if the interface is implemented using a private class." }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2279 + "line": 2080 }, - "name": "maybeMap", - "optional": true, - "static": true, - "type": { - "collection": { - "elementtype": { - "primitive": "number" - }, - "kind": "map" + "name": "staticImplementedByPrivateClass", + "parameters": [ + { + "name": "ringer", + "type": { + "fqn": "jsii-calc.compliance.IBellRinger" + } } - } - } - ] - }, - "jsii-calc.DoNotOverridePrivates": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.DoNotOverridePrivates", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1146 - }, - "methods": [ + ], + "returns": { + "type": { + "primitive": "boolean" + } + }, + "static": true + }, { "docs": { - "stability": "experimental" + "remarks": "Return whether the bell was rung.", + "stability": "experimental", + "summary": "...if the interface is implemented using a public class." }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1161 + "line": 2069 }, - "name": "changePrivatePropertyValue", + "name": "staticImplementedByPublicClass", "parameters": [ { - "name": "newValue", + "name": "ringer", "type": { - "primitive": "string" + "fqn": "jsii-calc.compliance.IBellRinger" } } - ] + ], + "returns": { + "type": { + "primitive": "boolean" + } + }, + "static": true }, { "docs": { - "stability": "experimental" + "remarks": "Return whether the bell was rung.", + "stability": "experimental", + "summary": "If the parameter is a concrete class instead of an interface." }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1153 + "line": 2091 }, - "name": "privateMethodValue", + "name": "staticWhenTypedAsClass", + "parameters": [ + { + "name": "ringer", + "type": { + "fqn": "jsii-calc.compliance.IConcreteBellRinger" + } + } + ], "returns": { "type": { - "primitive": "string" + "primitive": "boolean" } - } + }, + "static": true }, { "docs": { - "stability": "experimental" + "remarks": "Returns whether the bell was rung.", + "stability": "experimental", + "summary": "...if the interface is implemented using an object literal." }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1157 + "line": 2101 }, - "name": "privatePropertyValue", + "name": "implementedByObjectLiteral", + "parameters": [ + { + "name": "ringer", + "type": { + "fqn": "jsii-calc.compliance.IBellRinger" + } + } + ], "returns": { "type": { - "primitive": "string" + "primitive": "boolean" } } - } - ], - "name": "DoNotOverridePrivates" - }, - "jsii-calc.DoNotRecognizeAnyAsOptional": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "jsii#284: do not recognize \"any\" as an optional argument." - }, - "fqn": "jsii-calc.DoNotRecognizeAnyAsOptional", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1195 - }, - "methods": [ + }, { "docs": { - "stability": "experimental" + "remarks": "Return whether the bell was rung.", + "stability": "experimental", + "summary": "...if the interface is implemented using a private class." }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1196 + "line": 2127 }, - "name": "method", + "name": "implementedByPrivateClass", "parameters": [ { - "name": "_requiredAny", - "type": { - "primitive": "any" - } - }, - { - "name": "_optionalAny", - "optional": true, - "type": { - "primitive": "any" - } - }, - { - "name": "_optionalString", - "optional": true, + "name": "ringer", "type": { - "primitive": "string" + "fqn": "jsii-calc.compliance.IBellRinger" } } - ] - } - ], - "name": "DoNotRecognizeAnyAsOptional" - }, - "jsii-calc.DocumentedClass": { - "assembly": "jsii-calc", - "docs": { - "remarks": "This is the meat of the TSDoc comment. It may contain\nmultiple lines and multiple paragraphs.\n\nMultiple paragraphs are separated by an empty line.", - "stability": "stable", - "summary": "Here's the first line of the TSDoc comment." - }, - "fqn": "jsii-calc.DocumentedClass", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/documented.ts", - "line": 11 - }, - "methods": [ + ], + "returns": { + "type": { + "primitive": "boolean" + } + } + }, { "docs": { - "remarks": "This will print out a friendly greeting intended for\nthe indicated person.", - "returns": "A number that everyone knows very well", - "stability": "stable", - "summary": "Greet the indicated person." + "remarks": "Return whether the bell was rung.", + "stability": "experimental", + "summary": "...if the interface is implemented using a public class." }, "locationInModule": { - "filename": "lib/documented.ts", - "line": 22 + "filename": "lib/compliance.ts", + "line": 2116 }, - "name": "greet", + "name": "implementedByPublicClass", "parameters": [ { - "docs": { - "summary": "The person to be greeted." - }, - "name": "greetee", - "optional": true, + "name": "ringer", "type": { - "fqn": "jsii-calc.Greetee" + "fqn": "jsii-calc.compliance.IBellRinger" } } ], "returns": { "type": { - "primitive": "number" + "primitive": "boolean" } } }, { "docs": { + "remarks": "Return whether the bell was rung.", "stability": "experimental", - "summary": "Say ¡Hola!" - }, - "locationInModule": { - "filename": "lib/documented.ts", - "line": 32 - }, - "name": "hola" - } - ], - "name": "DocumentedClass" - }, - "jsii-calc.DontComplainAboutVariadicAfterOptional": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.DontComplainAboutVariadicAfterOptional", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1246 - }, - "methods": [ - { - "docs": { - "stability": "experimental" + "summary": "If the parameter is a concrete class instead of an interface." }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1247 + "line": 2138 }, - "name": "optionalAndVariadic", + "name": "whenTypedAsClass", "parameters": [ { - "name": "optional", - "optional": true, + "name": "ringer", "type": { - "primitive": "string" + "fqn": "jsii-calc.compliance.IConcreteBellRinger" } - }, - { - "name": "things", - "type": { - "primitive": "string" - }, - "variadic": true } ], "returns": { "type": { - "primitive": "string" + "primitive": "boolean" } - }, - "variadic": true + } } ], - "name": "DontComplainAboutVariadicAfterOptional" + "name": "ConsumerCanRingBell", + "namespace": "compliance" }, - "jsii-calc.DoubleTrouble": { + "jsii-calc.compliance.ConsumersOfThisCrazyTypeSystem": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.DoubleTrouble", + "fqn": "jsii-calc.compliance.ConsumersOfThisCrazyTypeSystem", "initializer": {}, - "interfaces": [ - "jsii-calc.IFriendlyRandomGenerator" - ], "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 473 + "line": 1610 }, "methods": [ { "docs": { - "stability": "experimental", - "summary": "Say hello!" + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 478 + "line": 1611 }, - "name": "hello", - "overrides": "@scope/jsii-calc-lib.IFriendly", + "name": "consumeAnotherPublicInterface", + "parameters": [ + { + "name": "obj", + "type": { + "fqn": "jsii-calc.compliance.IAnotherPublicInterface" + } + } + ], "returns": { "type": { "primitive": "string" @@ -3959,34 +3638,47 @@ }, { "docs": { - "stability": "experimental", - "summary": "Returns another random number." + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 474 + "line": 1615 }, - "name": "next", - "overrides": "jsii-calc.IRandomNumberGenerator", + "name": "consumeNonInternalInterface", + "parameters": [ + { + "name": "obj", + "type": { + "fqn": "jsii-calc.compliance.INonInternalInterface" + } + } + ], "returns": { "type": { - "primitive": "number" + "primitive": "any" } } } ], - "name": "DoubleTrouble" + "name": "ConsumersOfThisCrazyTypeSystem", + "namespace": "compliance" }, - "jsii-calc.EnumDispenser": { + "jsii-calc.compliance.DataRenderer": { "assembly": "jsii-calc", "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Verifies proper type handling through dynamic overrides." + }, + "fqn": "jsii-calc.compliance.DataRenderer", + "initializer": { + "docs": { + "stability": "experimental" + } }, - "fqn": "jsii-calc.EnumDispenser", "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 34 + "line": 1766 }, "methods": [ { @@ -3995,15 +3687,23 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 40 + "line": 1769 }, - "name": "randomIntegerLikeEnum", + "name": "render", + "parameters": [ + { + "name": "data", + "optional": true, + "type": { + "fqn": "@scope/jsii-calc-lib.MyFirstStruct" + } + } + ], "returns": { "type": { - "fqn": "jsii-calc.AllTypesEnum" + "primitive": "string" } - }, - "static": true + } }, { "docs": { @@ -4011,347 +3711,268 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 35 - }, - "name": "randomStringLikeEnum", - "returns": { - "type": { - "fqn": "jsii-calc.StringEnum" - } - }, - "static": true - } - ], - "name": "EnumDispenser" - }, - "jsii-calc.EraseUndefinedHashValues": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.EraseUndefinedHashValues", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1449 - }, - "methods": [ - { - "docs": { - "remarks": "Used to check that undefined/null hash values\nare being erased when sending values from native code to JS.", - "stability": "experimental", - "summary": "Returns `true` if `key` is defined in `opts`." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1454 + "line": 1773 }, - "name": "doesKeyExist", + "name": "renderArbitrary", "parameters": [ { - "name": "opts", - "type": { - "fqn": "jsii-calc.EraseUndefinedHashValuesOptions" - } - }, - { - "name": "key", + "name": "data", "type": { - "primitive": "string" + "collection": { + "elementtype": { + "primitive": "any" + }, + "kind": "map" + } } } ], "returns": { "type": { - "primitive": "boolean" + "primitive": "string" } - }, - "static": true + } }, { "docs": { - "stability": "experimental", - "summary": "We expect \"prop1\" to be erased." + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1471 + "line": 1777 }, - "name": "prop1IsNull", - "returns": { - "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "map" + "name": "renderMap", + "parameters": [ + { + "name": "map", + "type": { + "collection": { + "elementtype": { + "primitive": "any" + }, + "kind": "map" + } } } - }, - "static": true - }, - { - "docs": { - "stability": "experimental", - "summary": "We expect \"prop2\" to be erased." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1461 - }, - "name": "prop2IsUndefined", + ], "returns": { "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "map" - } + "primitive": "string" } - }, - "static": true - } - ], - "name": "EraseUndefinedHashValues" - }, - "jsii-calc.EraseUndefinedHashValuesOptions": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.EraseUndefinedHashValuesOptions", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1444 - }, - "name": "EraseUndefinedHashValuesOptions", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1445 - }, - "name": "option1", - "optional": true, - "type": { - "primitive": "string" - } - }, - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1446 - }, - "name": "option2", - "optional": true, - "type": { - "primitive": "string" } } - ] + ], + "name": "DataRenderer", + "namespace": "compliance" }, - "jsii-calc.ExperimentalClass": { + "jsii-calc.compliance.DefaultedConstructorArgument": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.ExperimentalClass", + "fqn": "jsii-calc.compliance.DefaultedConstructorArgument", "initializer": { "docs": { "stability": "experimental" }, "parameters": [ { - "name": "readonlyString", + "name": "arg1", + "optional": true, + "type": { + "primitive": "number" + } + }, + { + "name": "arg2", + "optional": true, "type": { "primitive": "string" } }, { - "name": "mutableNumber", + "name": "arg3", "optional": true, "type": { - "primitive": "number" + "primitive": "date" } } ] }, "kind": "class", "locationInModule": { - "filename": "lib/stability.ts", - "line": 16 + "filename": "lib/compliance.ts", + "line": 302 }, - "methods": [ + "name": "DefaultedConstructorArgument", + "namespace": "compliance", + "properties": [ { "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { - "filename": "lib/stability.ts", - "line": 28 + "filename": "lib/compliance.ts", + "line": 303 }, - "name": "method" - } - ], - "name": "ExperimentalClass", - "properties": [ + "name": "arg1", + "type": { + "primitive": "number" + } + }, { "docs": { "stability": "experimental" }, "immutable": true, "locationInModule": { - "filename": "lib/stability.ts", - "line": 18 + "filename": "lib/compliance.ts", + "line": 305 }, - "name": "readonlyProperty", + "name": "arg3", "type": { - "primitive": "string" + "primitive": "date" } }, { "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { - "filename": "lib/stability.ts", - "line": 20 + "filename": "lib/compliance.ts", + "line": 304 }, - "name": "mutableProperty", + "name": "arg2", "optional": true, "type": { - "primitive": "number" + "primitive": "string" } } ] }, - "jsii-calc.ExperimentalEnum": { + "jsii-calc.compliance.Demonstrate982": { "assembly": "jsii-calc", "docs": { - "stability": "experimental" + "remarks": "call #takeThis() -> An ObjectRef will be provisioned for the value (it'll be re-used!)\n2. call #takeThisToo() -> The ObjectRef from before will need to be down-cased to the ParentStruct982 type", + "stability": "experimental", + "summary": "1." }, - "fqn": "jsii-calc.ExperimentalEnum", - "kind": "enum", + "fqn": "jsii-calc.compliance.Demonstrate982", + "initializer": { + "docs": { + "stability": "experimental" + } + }, + "kind": "class", "locationInModule": { - "filename": "lib/stability.ts", - "line": 31 + "filename": "lib/compliance.ts", + "line": 2251 }, - "members": [ + "methods": [ { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "It's dangerous to go alone!" }, - "name": "OPTION_A" + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2258 + }, + "name": "takeThis", + "returns": { + "type": { + "fqn": "jsii-calc.compliance.ChildStruct982" + } + }, + "static": true }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "It's dangerous to go alone!" }, - "name": "OPTION_B" + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2263 + }, + "name": "takeThisToo", + "returns": { + "type": { + "fqn": "jsii-calc.compliance.ParentStruct982" + } + }, + "static": true } ], - "name": "ExperimentalEnum" + "name": "Demonstrate982", + "namespace": "compliance" }, - "jsii-calc.ExperimentalStruct": { + "jsii-calc.compliance.DerivedClassHasNoProperties.Base": { "assembly": "jsii-calc", - "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.ExperimentalStruct", - "kind": "interface", + "fqn": "jsii-calc.compliance.DerivedClassHasNoProperties.Base", + "initializer": {}, + "kind": "class", "locationInModule": { - "filename": "lib/stability.ts", - "line": 4 + "filename": "lib/compliance.ts", + "line": 311 }, - "name": "ExperimentalStruct", + "name": "Base", + "namespace": "compliance.DerivedClassHasNoProperties", "properties": [ { - "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/stability.ts", - "line": 6 + "filename": "lib/compliance.ts", + "line": 312 }, - "name": "readonlyProperty", + "name": "prop", "type": { "primitive": "string" } } ] }, - "jsii-calc.ExportedBaseClass": { + "jsii-calc.compliance.DerivedClassHasNoProperties.Derived": { "assembly": "jsii-calc", + "base": "jsii-calc.compliance.DerivedClassHasNoProperties.Base", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.ExportedBaseClass", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "success", - "type": { - "primitive": "boolean" - } - } - ] - }, + "fqn": "jsii-calc.compliance.DerivedClassHasNoProperties.Derived", + "initializer": {}, "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1331 + "line": 315 }, - "name": "ExportedBaseClass", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1332 - }, - "name": "success", - "type": { - "primitive": "boolean" - } - } - ] + "name": "Derived", + "namespace": "compliance.DerivedClassHasNoProperties" }, - "jsii-calc.ExtendsInternalInterface": { + "jsii-calc.compliance.DerivedStruct": { "assembly": "jsii-calc", "datatype": true, "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "A struct which derives from another struct." }, - "fqn": "jsii-calc.ExtendsInternalInterface", + "fqn": "jsii-calc.compliance.DerivedStruct", + "interfaces": [ + "@scope/jsii-calc-lib.MyFirstStruct" + ], "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1552 + "line": 533 }, - "name": "ExtendsInternalInterface", + "name": "DerivedStruct", + "namespace": "compliance", "properties": [ { "abstract": true, @@ -4361,11 +3982,11 @@ "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1553 + "line": 539 }, - "name": "boom", + "name": "anotherRequired", "type": { - "primitive": "boolean" + "primitive": "date" } }, { @@ -4376,636 +3997,667 @@ "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1501 + "line": 538 }, - "name": "prop", + "name": "bool", "type": { - "primitive": "string" + "primitive": "boolean" } - } - ] - }, - "jsii-calc.GiveMeStructs": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.GiveMeStructs", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 548 - }, - "methods": [ + }, { + "abstract": true, "docs": { "stability": "experimental", - "summary": "Accepts a struct of type DerivedStruct and returns a struct of type FirstStruct." + "summary": "An example of a non primitive property." }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 566 + "line": 537 }, - "name": "derivedToFirst", - "parameters": [ - { - "name": "derived", - "type": { - "fqn": "jsii-calc.DerivedStruct" - } - } - ], - "returns": { - "type": { - "fqn": "@scope/jsii-calc-lib.MyFirstStruct" - } + "name": "nonPrimitive", + "type": { + "fqn": "jsii-calc.compliance.DoubleTrouble" } }, { + "abstract": true, "docs": { "stability": "experimental", - "summary": "Returns the boolean from a DerivedStruct struct." + "summary": "This is optional." }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 559 + "line": 545 }, - "name": "readDerivedNonPrimitive", - "parameters": [ - { - "name": "derived", - "type": { - "fqn": "jsii-calc.DerivedStruct" - } - } - ], - "returns": { - "type": { - "fqn": "jsii-calc.DoubleTrouble" + "name": "anotherOptional", + "optional": true, + "type": { + "collection": { + "elementtype": { + "fqn": "@scope/jsii-calc-lib.Value" + }, + "kind": "map" } } }, { + "abstract": true, "docs": { - "stability": "experimental", - "summary": "Returns the \"anumber\" from a MyFirstStruct struct;" + "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 552 + "line": 541 }, - "name": "readFirstNumber", - "parameters": [ - { - "name": "first", - "type": { - "fqn": "@scope/jsii-calc-lib.MyFirstStruct" - } - } - ], - "returns": { - "type": { - "primitive": "number" - } + "name": "optionalAny", + "optional": true, + "type": { + "primitive": "any" } - } - ], - "name": "GiveMeStructs", - "properties": [ + }, { + "abstract": true, "docs": { "stability": "experimental" }, "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 570 + "line": 540 }, - "name": "structLiteral", + "name": "optionalArray", + "optional": true, "type": { - "fqn": "@scope/jsii-calc-lib.StructWithOnlyOptionals" + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "array" + } } } ] }, - "jsii-calc.Greetee": { + "jsii-calc.compliance.DiamondInheritanceBaseLevelStruct": { "assembly": "jsii-calc", "datatype": true, "docs": { - "stability": "experimental", - "summary": "These are some arguments you can pass to a method." + "stability": "experimental" }, - "fqn": "jsii-calc.Greetee", + "fqn": "jsii-calc.compliance.DiamondInheritanceBaseLevelStruct", "kind": "interface", "locationInModule": { - "filename": "lib/documented.ts", - "line": 40 + "filename": "lib/compliance.ts", + "line": 1811 }, - "name": "Greetee", + "name": "DiamondInheritanceBaseLevelStruct", + "namespace": "compliance", "properties": [ { "abstract": true, "docs": { - "default": "world", - "stability": "experimental", - "summary": "The name of the greetee." + "stability": "experimental" }, "immutable": true, "locationInModule": { - "filename": "lib/documented.ts", - "line": 46 + "filename": "lib/compliance.ts", + "line": 1812 }, - "name": "name", - "optional": true, + "name": "baseLevelProperty", "type": { "primitive": "string" } } ] }, - "jsii-calc.GreetingAugmenter": { + "jsii-calc.compliance.DiamondInheritanceFirstMidLevelStruct": { "assembly": "jsii-calc", + "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.GreetingAugmenter", - "initializer": {}, - "kind": "class", + "fqn": "jsii-calc.compliance.DiamondInheritanceFirstMidLevelStruct", + "interfaces": [ + "jsii-calc.compliance.DiamondInheritanceBaseLevelStruct" + ], + "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 524 + "line": 1815 }, - "methods": [ + "name": "DiamondInheritanceFirstMidLevelStruct", + "namespace": "compliance", + "properties": [ { + "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 525 + "line": 1816 }, - "name": "betterGreeting", - "parameters": [ - { - "name": "friendly", - "type": { - "fqn": "@scope/jsii-calc-lib.IFriendly" - } - } - ], - "returns": { - "type": { - "primitive": "string" - } + "name": "firstMidLevelProperty", + "type": { + "primitive": "string" } } - ], - "name": "GreetingAugmenter" + ] }, - "jsii-calc.IAnonymousImplementationProvider": { + "jsii-calc.compliance.DiamondInheritanceSecondMidLevelStruct": { "assembly": "jsii-calc", + "datatype": true, "docs": { - "stability": "experimental", - "summary": "We can return an anonymous interface implementation from an override without losing the interface declarations." + "stability": "experimental" }, - "fqn": "jsii-calc.IAnonymousImplementationProvider", + "fqn": "jsii-calc.compliance.DiamondInheritanceSecondMidLevelStruct", + "interfaces": [ + "jsii-calc.compliance.DiamondInheritanceBaseLevelStruct" + ], "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1972 + "line": 1819 }, - "methods": [ + "name": "DiamondInheritanceSecondMidLevelStruct", + "namespace": "compliance", + "properties": [ { "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1974 + "line": 1820 }, - "name": "provideAsClass", - "returns": { - "type": { - "fqn": "jsii-calc.Implementation" - } + "name": "secondMidLevelProperty", + "type": { + "primitive": "string" } - }, + } + ] + }, + "jsii-calc.compliance.DiamondInheritanceTopLevelStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.DiamondInheritanceTopLevelStruct", + "interfaces": [ + "jsii-calc.compliance.DiamondInheritanceFirstMidLevelStruct", + "jsii-calc.compliance.DiamondInheritanceSecondMidLevelStruct" + ], + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1823 + }, + "name": "DiamondInheritanceTopLevelStruct", + "namespace": "compliance", + "properties": [ { "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1973 + "line": 1824 }, - "name": "provideAsInterface", - "returns": { - "type": { - "fqn": "jsii-calc.IAnonymouslyImplementMe" - } + "name": "topLevelProperty", + "type": { + "primitive": "string" } } - ], - "name": "IAnonymousImplementationProvider" + ] }, - "jsii-calc.IAnonymouslyImplementMe": { + "jsii-calc.compliance.DisappointingCollectionSource": { "assembly": "jsii-calc", "docs": { - "stability": "experimental" + "remarks": "This source of collections is disappointing - it'll always give you nothing :(", + "stability": "experimental", + "summary": "Verifies that null/undefined can be returned for optional collections." }, - "fqn": "jsii-calc.IAnonymouslyImplementMe", - "kind": "interface", + "fqn": "jsii-calc.compliance.DisappointingCollectionSource", + "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1990 + "line": 2275 }, - "methods": [ + "name": "DisappointingCollectionSource", + "namespace": "compliance", + "properties": [ { - "abstract": true, + "const": true, "docs": { - "stability": "experimental" + "remarks": "(Nah, just a billion dollars mistake!)", + "stability": "experimental", + "summary": "Some List of strings, maybe?" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1992 + "line": 2277 }, - "name": "verb", - "returns": { - "type": { - "primitive": "string" + "name": "maybeList", + "optional": true, + "static": true, + "type": { + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "array" } } - } - ], - "name": "IAnonymouslyImplementMe", - "properties": [ + }, { - "abstract": true, + "const": true, "docs": { - "stability": "experimental" + "remarks": "(Nah, just a billion dollars mistake!)", + "stability": "experimental", + "summary": "Some Map of strings to numbers, maybe?" }, "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1991 + "line": 2279 }, - "name": "value", + "name": "maybeMap", + "optional": true, + "static": true, "type": { - "primitive": "number" + "collection": { + "elementtype": { + "primitive": "number" + }, + "kind": "map" + } } } ] }, - "jsii-calc.IAnotherPublicInterface": { + "jsii-calc.compliance.DoNotOverridePrivates": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.IAnotherPublicInterface", - "kind": "interface", + "fqn": "jsii-calc.compliance.DoNotOverridePrivates", + "initializer": {}, + "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1573 + "line": 1146 }, - "name": "IAnotherPublicInterface", - "properties": [ + "methods": [ { - "abstract": true, "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1574 + "line": 1161 }, - "name": "a", - "type": { - "primitive": "string" + "name": "changePrivatePropertyValue", + "parameters": [ + { + "name": "newValue", + "type": { + "primitive": "string" + } + } + ] + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1153 + }, + "name": "privateMethodValue", + "returns": { + "type": { + "primitive": "string" + } } - } - ] - }, - "jsii-calc.IBell": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.IBell", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2159 - }, - "methods": [ + }, { - "abstract": true, "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2160 + "line": 1157 }, - "name": "ring" + "name": "privatePropertyValue", + "returns": { + "type": { + "primitive": "string" + } + } } ], - "name": "IBell" + "name": "DoNotOverridePrivates", + "namespace": "compliance" }, - "jsii-calc.IBellRinger": { + "jsii-calc.compliance.DoNotRecognizeAnyAsOptional": { "assembly": "jsii-calc", "docs": { "stability": "experimental", - "summary": "Takes the object parameter as an interface." + "summary": "jsii#284: do not recognize \"any\" as an optional argument." }, - "fqn": "jsii-calc.IBellRinger", - "kind": "interface", + "fqn": "jsii-calc.compliance.DoNotRecognizeAnyAsOptional", + "initializer": {}, + "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2148 + "line": 1195 }, "methods": [ { - "abstract": true, "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2149 + "line": 1196 }, - "name": "yourTurn", + "name": "method", "parameters": [ { - "name": "bell", + "name": "_requiredAny", + "type": { + "primitive": "any" + } + }, + { + "name": "_optionalAny", + "optional": true, + "type": { + "primitive": "any" + } + }, + { + "name": "_optionalString", + "optional": true, "type": { - "fqn": "jsii-calc.IBell" + "primitive": "string" } } ] } ], - "name": "IBellRinger" + "name": "DoNotRecognizeAnyAsOptional", + "namespace": "compliance" }, - "jsii-calc.IConcreteBellRinger": { + "jsii-calc.compliance.DontComplainAboutVariadicAfterOptional": { "assembly": "jsii-calc", "docs": { - "stability": "experimental", - "summary": "Takes the object parameter as a calss." + "stability": "experimental" }, - "fqn": "jsii-calc.IConcreteBellRinger", - "kind": "interface", + "fqn": "jsii-calc.compliance.DontComplainAboutVariadicAfterOptional", + "initializer": {}, + "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2155 + "line": 1246 }, "methods": [ { - "abstract": true, "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2156 + "line": 1247 }, - "name": "yourTurn", + "name": "optionalAndVariadic", "parameters": [ { - "name": "bell", + "name": "optional", + "optional": true, "type": { - "fqn": "jsii-calc.Bell" + "primitive": "string" } + }, + { + "name": "things", + "type": { + "primitive": "string" + }, + "variadic": true } - ] + ], + "returns": { + "type": { + "primitive": "string" + } + }, + "variadic": true } ], - "name": "IConcreteBellRinger" + "name": "DontComplainAboutVariadicAfterOptional", + "namespace": "compliance" }, - "jsii-calc.IDeprecatedInterface": { + "jsii-calc.compliance.DoubleTrouble": { "assembly": "jsii-calc", "docs": { - "deprecated": "useless interface", - "stability": "deprecated" + "stability": "experimental" }, - "fqn": "jsii-calc.IDeprecatedInterface", - "kind": "interface", + "fqn": "jsii-calc.compliance.DoubleTrouble", + "initializer": {}, + "interfaces": [ + "jsii-calc.IFriendlyRandomGenerator" + ], + "kind": "class", "locationInModule": { - "filename": "lib/stability.ts", - "line": 78 + "filename": "lib/compliance.ts", + "line": 473 }, "methods": [ { - "abstract": true, "docs": { - "deprecated": "services no purpose", - "stability": "deprecated" + "stability": "experimental", + "summary": "Say hello!" }, "locationInModule": { - "filename": "lib/stability.ts", - "line": 82 + "filename": "lib/compliance.ts", + "line": 478 }, - "name": "method" - } - ], - "name": "IDeprecatedInterface", - "properties": [ + "name": "hello", + "overrides": "@scope/jsii-calc-lib.IFriendly", + "returns": { + "type": { + "primitive": "string" + } + } + }, { - "abstract": true, "docs": { - "deprecated": "could be better", - "stability": "deprecated" + "stability": "experimental", + "summary": "Returns another random number." }, "locationInModule": { - "filename": "lib/stability.ts", - "line": 80 + "filename": "lib/compliance.ts", + "line": 474 }, - "name": "mutableProperty", - "optional": true, - "type": { - "primitive": "number" + "name": "next", + "overrides": "jsii-calc.IRandomNumberGenerator", + "returns": { + "type": { + "primitive": "number" + } } } - ] + ], + "name": "DoubleTrouble", + "namespace": "compliance" }, - "jsii-calc.IExperimentalInterface": { + "jsii-calc.compliance.EnumDispenser": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.IExperimentalInterface", - "kind": "interface", + "fqn": "jsii-calc.compliance.EnumDispenser", + "kind": "class", "locationInModule": { - "filename": "lib/stability.ts", - "line": 9 + "filename": "lib/compliance.ts", + "line": 34 }, "methods": [ { - "abstract": true, "docs": { "stability": "experimental" }, "locationInModule": { - "filename": "lib/stability.ts", - "line": 13 + "filename": "lib/compliance.ts", + "line": 40 }, - "name": "method" - } - ], - "name": "IExperimentalInterface", - "properties": [ + "name": "randomIntegerLikeEnum", + "returns": { + "type": { + "fqn": "jsii-calc.compliance.AllTypesEnum" + } + }, + "static": true + }, { - "abstract": true, "docs": { "stability": "experimental" }, "locationInModule": { - "filename": "lib/stability.ts", - "line": 11 + "filename": "lib/compliance.ts", + "line": 35 }, - "name": "mutableProperty", - "optional": true, - "type": { - "primitive": "number" - } + "name": "randomStringLikeEnum", + "returns": { + "type": { + "fqn": "jsii-calc.compliance.StringEnum" + } + }, + "static": true } - ] + ], + "name": "EnumDispenser", + "namespace": "compliance" }, - "jsii-calc.IExtendsPrivateInterface": { + "jsii-calc.compliance.EraseUndefinedHashValues": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.IExtendsPrivateInterface", - "kind": "interface", + "fqn": "jsii-calc.compliance.EraseUndefinedHashValues", + "initializer": {}, + "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1564 + "line": 1449 }, - "name": "IExtendsPrivateInterface", - "properties": [ + "methods": [ { - "abstract": true, "docs": { - "stability": "experimental" + "remarks": "Used to check that undefined/null hash values\nare being erased when sending values from native code to JS.", + "stability": "experimental", + "summary": "Returns `true` if `key` is defined in `opts`." }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1565 + "line": 1454 }, - "name": "moreThings", - "type": { - "collection": { - "elementtype": { + "name": "doesKeyExist", + "parameters": [ + { + "name": "opts", + "type": { + "fqn": "jsii-calc.compliance.EraseUndefinedHashValuesOptions" + } + }, + { + "name": "key", + "type": { "primitive": "string" - }, - "kind": "array" + } + } + ], + "returns": { + "type": { + "primitive": "boolean" } - } - }, - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1549 }, - "name": "private", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.IFriendlier": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Even friendlier classes can implement this interface." - }, - "fqn": "jsii-calc.IFriendlier", - "interfaces": [ - "@scope/jsii-calc-lib.IFriendly" - ], - "kind": "interface", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 6 - }, - "methods": [ + "static": true + }, { - "abstract": true, "docs": { "stability": "experimental", - "summary": "Say farewell." + "summary": "We expect \"prop1\" to be erased." }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 16 + "filename": "lib/compliance.ts", + "line": 1471 }, - "name": "farewell", + "name": "prop1IsNull", "returns": { "type": { - "primitive": "string" + "collection": { + "elementtype": { + "primitive": "any" + }, + "kind": "map" + } } - } + }, + "static": true }, { - "abstract": true, "docs": { - "returns": "A goodbye blessing.", "stability": "experimental", - "summary": "Say goodbye." + "summary": "We expect \"prop2\" to be erased." }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 11 + "filename": "lib/compliance.ts", + "line": 1461 }, - "name": "goodbye", + "name": "prop2IsUndefined", "returns": { "type": { - "primitive": "string" + "collection": { + "elementtype": { + "primitive": "any" + }, + "kind": "map" + } } - } + }, + "static": true } ], - "name": "IFriendlier" + "name": "EraseUndefinedHashValues", + "namespace": "compliance" }, - "jsii-calc.IFriendlyRandomGenerator": { + "jsii-calc.compliance.EraseUndefinedHashValuesOptions": { "assembly": "jsii-calc", + "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.IFriendlyRandomGenerator", - "interfaces": [ - "jsii-calc.IRandomNumberGenerator", - "@scope/jsii-calc-lib.IFriendly" - ], - "kind": "interface", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 30 - }, - "name": "IFriendlyRandomGenerator" - }, - "jsii-calc.IInterfaceImplementedByAbstractClass": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "awslabs/jsii#220 Abstract return type." - }, - "fqn": "jsii-calc.IInterfaceImplementedByAbstractClass", + "fqn": "jsii-calc.compliance.EraseUndefinedHashValuesOptions", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1092 + "line": 1444 }, - "name": "IInterfaceImplementedByAbstractClass", + "name": "EraseUndefinedHashValuesOptions", + "namespace": "compliance", "properties": [ { "abstract": true, @@ -5015,32 +4667,14 @@ "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1093 + "line": 1445 }, - "name": "propFromInterface", + "name": "option1", + "optional": true, "type": { "primitive": "string" } - } - ] - }, - "jsii-calc.IInterfaceThatShouldNotBeADataType": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype." - }, - "fqn": "jsii-calc.IInterfaceThatShouldNotBeADataType", - "interfaces": [ - "jsii-calc.IInterfaceWithMethods" - ], - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1188 - }, - "name": "IInterfaceThatShouldNotBeADataType", - "properties": [ + }, { "abstract": true, "docs": { @@ -5049,67 +4683,89 @@ "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1189 + "line": 1446 }, - "name": "otherValue", + "name": "option2", + "optional": true, "type": { "primitive": "string" } } ] }, - "jsii-calc.IInterfaceWithInternal": { + "jsii-calc.compliance.ExportedBaseClass": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.IInterfaceWithInternal", - "kind": "interface", + "fqn": "jsii-calc.compliance.ExportedBaseClass", + "initializer": { + "docs": { + "stability": "experimental" + }, + "parameters": [ + { + "name": "success", + "type": { + "primitive": "boolean" + } + } + ] + }, + "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1512 + "line": 1331 }, - "methods": [ + "name": "ExportedBaseClass", + "namespace": "compliance", + "properties": [ { - "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1513 + "line": 1332 }, - "name": "visible" + "name": "success", + "type": { + "primitive": "boolean" + } } - ], - "name": "IInterfaceWithInternal" + ] }, - "jsii-calc.IInterfaceWithMethods": { + "jsii-calc.compliance.ExtendsInternalInterface": { "assembly": "jsii-calc", + "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.IInterfaceWithMethods", + "fqn": "jsii-calc.compliance.ExtendsInternalInterface", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1178 + "line": 1552 }, - "methods": [ + "name": "ExtendsInternalInterface", + "namespace": "compliance", + "properties": [ { "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1181 + "line": 1553 }, - "name": "doThings" - } - ], - "name": "IInterfaceWithMethods", - "properties": [ + "name": "boom", + "type": { + "primitive": "boolean" + } + }, { "abstract": true, "docs": { @@ -5118,146 +4774,171 @@ "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1179 + "line": 1501 }, - "name": "value", + "name": "prop", "type": { "primitive": "string" } } ] }, - "jsii-calc.IInterfaceWithOptionalMethodArguments": { + "jsii-calc.compliance.GiveMeStructs": { "assembly": "jsii-calc", "docs": { - "stability": "experimental", - "summary": "awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods." + "stability": "experimental" }, - "fqn": "jsii-calc.IInterfaceWithOptionalMethodArguments", - "kind": "interface", + "fqn": "jsii-calc.compliance.GiveMeStructs", + "initializer": {}, + "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1072 + "line": 548 }, "methods": [ { - "abstract": true, "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Accepts a struct of type DerivedStruct and returns a struct of type FirstStruct." }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1073 + "line": 566 }, - "name": "hello", + "name": "derivedToFirst", "parameters": [ { - "name": "arg1", + "name": "derived", "type": { - "primitive": "string" + "fqn": "jsii-calc.compliance.DerivedStruct" } - }, + } + ], + "returns": { + "type": { + "fqn": "@scope/jsii-calc-lib.MyFirstStruct" + } + } + }, + { + "docs": { + "stability": "experimental", + "summary": "Returns the boolean from a DerivedStruct struct." + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 559 + }, + "name": "readDerivedNonPrimitive", + "parameters": [ { - "name": "arg2", - "optional": true, + "name": "derived", "type": { - "primitive": "number" + "fqn": "jsii-calc.compliance.DerivedStruct" } } - ] - } - ], - "name": "IInterfaceWithOptionalMethodArguments" - }, - "jsii-calc.IInterfaceWithProperties": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.IInterfaceWithProperties", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 578 - }, - "name": "IInterfaceWithProperties", - "properties": [ + ], + "returns": { + "type": { + "fqn": "jsii-calc.compliance.DoubleTrouble" + } + } + }, { - "abstract": true, "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Returns the \"anumber\" from a MyFirstStruct struct;" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 579 + "line": 552 }, - "name": "readOnlyString", - "type": { - "primitive": "string" + "name": "readFirstNumber", + "parameters": [ + { + "name": "first", + "type": { + "fqn": "@scope/jsii-calc-lib.MyFirstStruct" + } + } + ], + "returns": { + "type": { + "primitive": "number" + } } - }, + } + ], + "name": "GiveMeStructs", + "namespace": "compliance", + "properties": [ { - "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 580 + "line": 570 }, - "name": "readWriteString", + "name": "structLiteral", "type": { - "primitive": "string" + "fqn": "@scope/jsii-calc-lib.StructWithOnlyOptionals" } } ] }, - "jsii-calc.IInterfaceWithPropertiesExtension": { + "jsii-calc.compliance.GreetingAugmenter": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.IInterfaceWithPropertiesExtension", - "interfaces": [ - "jsii-calc.IInterfaceWithProperties" - ], - "kind": "interface", + "fqn": "jsii-calc.compliance.GreetingAugmenter", + "initializer": {}, + "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 583 + "line": 524 }, - "name": "IInterfaceWithPropertiesExtension", - "properties": [ + "methods": [ { - "abstract": true, "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 584 + "line": 525 }, - "name": "foo", - "type": { - "primitive": "number" + "name": "betterGreeting", + "parameters": [ + { + "name": "friendly", + "type": { + "fqn": "@scope/jsii-calc-lib.IFriendly" + } + } + ], + "returns": { + "type": { + "primitive": "string" + } } } - ] + ], + "name": "GreetingAugmenter", + "namespace": "compliance" }, - "jsii-calc.IJSII417Derived": { + "jsii-calc.compliance.IAnonymousImplementationProvider": { "assembly": "jsii-calc", "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "We can return an anonymous interface implementation from an override without losing the interface declarations." }, - "fqn": "jsii-calc.IJSII417Derived", - "interfaces": [ - "jsii-calc.IJSII417PublicBaseOfBase" - ], + "fqn": "jsii-calc.compliance.IAnonymousImplementationProvider", "kind": "interface", "locationInModule": { - "filename": "lib/erasures.ts", - "line": 37 + "filename": "lib/compliance.ts", + "line": 1972 }, "methods": [ { @@ -5266,10 +4947,15 @@ "stability": "experimental" }, "locationInModule": { - "filename": "lib/erasures.ts", - "line": 35 + "filename": "lib/compliance.ts", + "line": 1974 }, - "name": "bar" + "name": "provideAsClass", + "returns": { + "type": { + "fqn": "jsii-calc.compliance.Implementation" + } + } }, { "abstract": true, @@ -5277,41 +4963,30 @@ "stability": "experimental" }, "locationInModule": { - "filename": "lib/erasures.ts", - "line": 38 - }, - "name": "baz" - } - ], - "name": "IJSII417Derived", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 34 + "filename": "lib/compliance.ts", + "line": 1973 }, - "name": "property", - "type": { - "primitive": "string" + "name": "provideAsInterface", + "returns": { + "type": { + "fqn": "jsii-calc.compliance.IAnonymouslyImplementMe" + } } } - ] + ], + "name": "IAnonymousImplementationProvider", + "namespace": "compliance" }, - "jsii-calc.IJSII417PublicBaseOfBase": { + "jsii-calc.compliance.IAnonymouslyImplementMe": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.IJSII417PublicBaseOfBase", + "fqn": "jsii-calc.compliance.IAnonymouslyImplementMe", "kind": "interface", "locationInModule": { - "filename": "lib/erasures.ts", - "line": 30 + "filename": "lib/compliance.ts", + "line": 1990 }, "methods": [ { @@ -5320,13 +4995,19 @@ "stability": "experimental" }, "locationInModule": { - "filename": "lib/erasures.ts", - "line": 31 + "filename": "lib/compliance.ts", + "line": 1992 }, - "name": "foo" + "name": "verb", + "returns": { + "type": { + "primitive": "string" + } + } } ], - "name": "IJSII417PublicBaseOfBase", + "name": "IAnonymouslyImplementMe", + "namespace": "compliance", "properties": [ { "abstract": true, @@ -5335,67 +5016,29 @@ }, "immutable": true, "locationInModule": { - "filename": "lib/erasures.ts", - "line": 28 + "filename": "lib/compliance.ts", + "line": 1991 }, - "name": "hasRoot", + "name": "value", "type": { - "primitive": "boolean" + "primitive": "number" } } ] }, - "jsii-calc.IJsii487External": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.IJsii487External", - "kind": "interface", - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 45 - }, - "name": "IJsii487External" - }, - "jsii-calc.IJsii487External2": { + "jsii-calc.compliance.IAnotherPublicInterface": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.IJsii487External2", + "fqn": "jsii-calc.compliance.IAnotherPublicInterface", "kind": "interface", "locationInModule": { - "filename": "lib/erasures.ts", - "line": 46 - }, - "name": "IJsii487External2" - }, - "jsii-calc.IJsii496": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" + "filename": "lib/compliance.ts", + "line": 1573 }, - "fqn": "jsii-calc.IJsii496", - "kind": "interface", - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 54 - }, - "name": "IJsii496" - }, - "jsii-calc.IMutableObjectLiteral": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.IMutableObjectLiteral", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1138 - }, - "name": "IMutableObjectLiteral", + "name": "IAnotherPublicInterface", + "namespace": "compliance", "properties": [ { "abstract": true, @@ -5404,45 +5047,27 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1139 + "line": 1574 }, - "name": "value", + "name": "a", "type": { "primitive": "string" } } ] }, - "jsii-calc.INonInternalInterface": { + "jsii-calc.compliance.IBell": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.INonInternalInterface", - "interfaces": [ - "jsii-calc.IAnotherPublicInterface" - ], + "fqn": "jsii-calc.compliance.IBell", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1583 + "line": 2159 }, - "name": "INonInternalInterface", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1580 - }, - "name": "b", - "type": { - "primitive": "string" - } - }, + "methods": [ { "abstract": true, "docs": { @@ -5450,26 +5075,25 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1584 + "line": 2160 }, - "name": "c", - "type": { - "primitive": "string" - } + "name": "ring" } - ] + ], + "name": "IBell", + "namespace": "compliance" }, - "jsii-calc.IObjectWithProperty": { + "jsii-calc.compliance.IBellRinger": { "assembly": "jsii-calc", "docs": { "stability": "experimental", - "summary": "Make sure that setters are properly called on objects with interfaces." + "summary": "Takes the object parameter as an interface." }, - "fqn": "jsii-calc.IObjectWithProperty", + "fqn": "jsii-calc.compliance.IBellRinger", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2287 + "line": 2148 }, "methods": [ { @@ -5479,45 +5103,33 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2289 + "line": 2149 }, - "name": "wasSet", - "returns": { - "type": { - "primitive": "boolean" + "name": "yourTurn", + "parameters": [ + { + "name": "bell", + "type": { + "fqn": "jsii-calc.compliance.IBell" + } } - } + ] } ], - "name": "IObjectWithProperty", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2288 - }, - "name": "property", - "type": { - "primitive": "string" - } - } - ] + "name": "IBellRinger", + "namespace": "compliance" }, - "jsii-calc.IOptionalMethod": { + "jsii-calc.compliance.IConcreteBellRinger": { "assembly": "jsii-calc", "docs": { "stability": "experimental", - "summary": "Checks that optional result from interface method code generates correctly." + "summary": "Takes the object parameter as a calss." }, - "fqn": "jsii-calc.IOptionalMethod", + "fqn": "jsii-calc.compliance.IConcreteBellRinger", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2465 + "line": 2155 }, "methods": [ { @@ -5527,31 +5139,35 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2466 + "line": 2156 }, - "name": "optional", - "returns": { - "optional": true, - "type": { - "primitive": "string" + "name": "yourTurn", + "parameters": [ + { + "name": "bell", + "type": { + "fqn": "jsii-calc.compliance.Bell" + } } - } + ] } ], - "name": "IOptionalMethod" + "name": "IConcreteBellRinger", + "namespace": "compliance" }, - "jsii-calc.IPrivatelyImplemented": { + "jsii-calc.compliance.IExtendsPrivateInterface": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.IPrivatelyImplemented", + "fqn": "jsii-calc.compliance.IExtendsPrivateInterface", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1328 + "line": 1564 }, - "name": "IPrivatelyImplemented", + "name": "IExtendsPrivateInterface", + "namespace": "compliance", "properties": [ { "abstract": true, @@ -5561,27 +5177,18 @@ "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1329 + "line": 1565 }, - "name": "success", + "name": "moreThings", "type": { - "primitive": "boolean" + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "array" + } } - } - ] - }, - "jsii-calc.IPublicInterface": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.IPublicInterface", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1371 - }, - "methods": [ + }, { "abstract": true, "docs": { @@ -5589,124 +5196,119 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1372 + "line": 1549 }, - "name": "bye", - "returns": { - "type": { - "primitive": "string" - } + "name": "private", + "type": { + "primitive": "string" } } - ], - "name": "IPublicInterface" + ] }, - "jsii-calc.IPublicInterface2": { + "jsii-calc.compliance.IInterfaceImplementedByAbstractClass": { "assembly": "jsii-calc", "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "awslabs/jsii#220 Abstract return type." }, - "fqn": "jsii-calc.IPublicInterface2", + "fqn": "jsii-calc.compliance.IInterfaceImplementedByAbstractClass", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1375 + "line": 1092 }, - "methods": [ + "name": "IInterfaceImplementedByAbstractClass", + "namespace": "compliance", + "properties": [ { "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1376 + "line": 1093 }, - "name": "ciao", - "returns": { - "type": { - "primitive": "string" - } + "name": "propFromInterface", + "type": { + "primitive": "string" } } - ], - "name": "IPublicInterface2" + ] }, - "jsii-calc.IRandomNumberGenerator": { + "jsii-calc.compliance.IInterfaceThatShouldNotBeADataType": { "assembly": "jsii-calc", "docs": { "stability": "experimental", - "summary": "Generates random numbers." + "summary": "Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype." }, - "fqn": "jsii-calc.IRandomNumberGenerator", + "fqn": "jsii-calc.compliance.IInterfaceThatShouldNotBeADataType", + "interfaces": [ + "jsii-calc.compliance.IInterfaceWithMethods" + ], "kind": "interface", "locationInModule": { - "filename": "lib/calculator.ts", - "line": 22 + "filename": "lib/compliance.ts", + "line": 1188 }, - "methods": [ + "name": "IInterfaceThatShouldNotBeADataType", + "namespace": "compliance", + "properties": [ { "abstract": true, "docs": { - "returns": "A random number.", - "stability": "experimental", - "summary": "Returns another random number." + "stability": "experimental" }, + "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 27 + "filename": "lib/compliance.ts", + "line": 1189 }, - "name": "next", - "returns": { - "type": { - "primitive": "number" - } + "name": "otherValue", + "type": { + "primitive": "string" } } - ], - "name": "IRandomNumberGenerator" + ] }, - "jsii-calc.IReturnJsii976": { + "jsii-calc.compliance.IInterfaceWithInternal": { "assembly": "jsii-calc", "docs": { - "stability": "experimental", - "summary": "Returns a subclass of a known class which implements an interface." + "stability": "experimental" }, - "fqn": "jsii-calc.IReturnJsii976", + "fqn": "jsii-calc.compliance.IInterfaceWithInternal", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2215 + "line": 1512 }, - "name": "IReturnJsii976", - "properties": [ + "methods": [ { "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2216 + "line": 1513 }, - "name": "foo", - "type": { - "primitive": "number" - } + "name": "visible" } - ] + ], + "name": "IInterfaceWithInternal", + "namespace": "compliance" }, - "jsii-calc.IReturnsNumber": { + "jsii-calc.compliance.IInterfaceWithMethods": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.IReturnsNumber", + "fqn": "jsii-calc.compliance.IInterfaceWithMethods", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 631 + "line": 1178 }, "methods": [ { @@ -5716,17 +5318,13 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 632 + "line": 1181 }, - "name": "obtainNumber", - "returns": { - "type": { - "fqn": "@scope/jsii-calc-lib.IDoublable" - } - } + "name": "doThings" } ], - "name": "IReturnsNumber", + "name": "IInterfaceWithMethods", + "namespace": "compliance", "properties": [ { "abstract": true, @@ -5736,71 +5334,120 @@ "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 634 + "line": 1179 }, - "name": "numberProp", + "name": "value", "type": { - "fqn": "@scope/jsii-calc-lib.Number" + "primitive": "string" } } ] }, - "jsii-calc.IStableInterface": { + "jsii-calc.compliance.IInterfaceWithOptionalMethodArguments": { "assembly": "jsii-calc", "docs": { - "stability": "stable" + "stability": "experimental", + "summary": "awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods." }, - "fqn": "jsii-calc.IStableInterface", + "fqn": "jsii-calc.compliance.IInterfaceWithOptionalMethodArguments", "kind": "interface", "locationInModule": { - "filename": "lib/stability.ts", - "line": 44 + "filename": "lib/compliance.ts", + "line": 1072 }, "methods": [ { "abstract": true, "docs": { - "stability": "stable" + "stability": "experimental" }, "locationInModule": { - "filename": "lib/stability.ts", - "line": 48 + "filename": "lib/compliance.ts", + "line": 1073 }, - "name": "method" - } - ], - "name": "IStableInterface", - "properties": [ - { - "abstract": true, + "name": "hello", + "parameters": [ + { + "name": "arg1", + "type": { + "primitive": "string" + } + }, + { + "name": "arg2", + "optional": true, + "type": { + "primitive": "number" + } + } + ] + } + ], + "name": "IInterfaceWithOptionalMethodArguments", + "namespace": "compliance" + }, + "jsii-calc.compliance.IInterfaceWithProperties": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.IInterfaceWithProperties", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 578 + }, + "name": "IInterfaceWithProperties", + "namespace": "compliance", + "properties": [ + { + "abstract": true, "docs": { - "stability": "stable" + "stability": "experimental" }, + "immutable": true, "locationInModule": { - "filename": "lib/stability.ts", - "line": 46 + "filename": "lib/compliance.ts", + "line": 579 }, - "name": "mutableProperty", - "optional": true, + "name": "readOnlyString", "type": { - "primitive": "number" + "primitive": "string" + } + }, + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 580 + }, + "name": "readWriteString", + "type": { + "primitive": "string" } } ] }, - "jsii-calc.IStructReturningDelegate": { + "jsii-calc.compliance.IInterfaceWithPropertiesExtension": { "assembly": "jsii-calc", "docs": { - "stability": "experimental", - "summary": "Verifies that a \"pure\" implementation of an interface works correctly." + "stability": "experimental" }, - "fqn": "jsii-calc.IStructReturningDelegate", + "fqn": "jsii-calc.compliance.IInterfaceWithPropertiesExtension", + "interfaces": [ + "jsii-calc.compliance.IInterfaceWithProperties" + ], "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2403 + "line": 583 }, - "methods": [ + "name": "IInterfaceWithPropertiesExtension", + "namespace": "compliance", + "properties": [ { "abstract": true, "docs": { @@ -5808,212 +5455,260 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2404 + "line": 584 }, - "name": "returnStruct", - "returns": { - "type": { - "fqn": "jsii-calc.StructB" - } + "name": "foo", + "type": { + "primitive": "number" } } - ], - "name": "IStructReturningDelegate" + ] }, - "jsii-calc.ImplementInternalInterface": { + "jsii-calc.compliance.IMutableObjectLiteral": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.ImplementInternalInterface", - "initializer": {}, - "kind": "class", + "fqn": "jsii-calc.compliance.IMutableObjectLiteral", + "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1556 + "line": 1138 }, - "name": "ImplementInternalInterface", + "name": "IMutableObjectLiteral", + "namespace": "compliance", "properties": [ { + "abstract": true, "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1557 + "line": 1139 }, - "name": "prop", + "name": "value", "type": { "primitive": "string" } } ] }, - "jsii-calc.Implementation": { + "jsii-calc.compliance.INonInternalInterface": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.Implementation", - "initializer": {}, - "kind": "class", + "fqn": "jsii-calc.compliance.INonInternalInterface", + "interfaces": [ + "jsii-calc.compliance.IAnotherPublicInterface" + ], + "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1987 + "line": 1583 }, - "name": "Implementation", + "name": "INonInternalInterface", + "namespace": "compliance", "properties": [ { + "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1988 + "line": 1580 }, - "name": "value", + "name": "b", "type": { - "primitive": "number" + "primitive": "string" + } + }, + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1584 + }, + "name": "c", + "type": { + "primitive": "string" } } ] }, - "jsii-calc.ImplementsInterfaceWithInternal": { + "jsii-calc.compliance.IObjectWithProperty": { "assembly": "jsii-calc", "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Make sure that setters are properly called on objects with interfaces." }, - "fqn": "jsii-calc.ImplementsInterfaceWithInternal", - "initializer": {}, - "interfaces": [ - "jsii-calc.IInterfaceWithInternal" - ], - "kind": "class", + "fqn": "jsii-calc.compliance.IObjectWithProperty", + "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1519 + "line": 2287 }, "methods": [ { + "abstract": true, "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1520 + "line": 2289 }, - "name": "visible", - "overrides": "jsii-calc.IInterfaceWithInternal" + "name": "wasSet", + "returns": { + "type": { + "primitive": "boolean" + } + } } ], - "name": "ImplementsInterfaceWithInternal" + "name": "IObjectWithProperty", + "namespace": "compliance", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2288 + }, + "name": "property", + "type": { + "primitive": "string" + } + } + ] }, - "jsii-calc.ImplementsInterfaceWithInternalSubclass": { + "jsii-calc.compliance.IOptionalMethod": { "assembly": "jsii-calc", - "base": "jsii-calc.ImplementsInterfaceWithInternal", "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Checks that optional result from interface method code generates correctly." }, - "fqn": "jsii-calc.ImplementsInterfaceWithInternalSubclass", - "initializer": {}, - "kind": "class", + "fqn": "jsii-calc.compliance.IOptionalMethod", + "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1532 + "line": 2465 }, - "name": "ImplementsInterfaceWithInternalSubclass" + "methods": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2466 + }, + "name": "optional", + "returns": { + "optional": true, + "type": { + "primitive": "string" + } + } + } + ], + "name": "IOptionalMethod", + "namespace": "compliance" }, - "jsii-calc.ImplementsPrivateInterface": { + "jsii-calc.compliance.IPrivatelyImplemented": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.ImplementsPrivateInterface", - "initializer": {}, - "kind": "class", + "fqn": "jsii-calc.compliance.IPrivatelyImplemented", + "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1560 + "line": 1328 }, - "name": "ImplementsPrivateInterface", + "name": "IPrivatelyImplemented", + "namespace": "compliance", "properties": [ { + "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1561 + "line": 1329 }, - "name": "private", + "name": "success", "type": { - "primitive": "string" + "primitive": "boolean" } } ] }, - "jsii-calc.ImplictBaseOfBase": { + "jsii-calc.compliance.IPublicInterface": { "assembly": "jsii-calc", - "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.ImplictBaseOfBase", - "interfaces": [ - "@scope/jsii-calc-base.BaseProps" - ], + "fqn": "jsii-calc.compliance.IPublicInterface", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1025 + "line": 1371 }, - "name": "ImplictBaseOfBase", - "properties": [ + "methods": [ { "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1026 + "line": 1372 }, - "name": "goo", - "type": { - "primitive": "date" + "name": "bye", + "returns": { + "type": { + "primitive": "string" + } } } - ] + ], + "name": "IPublicInterface", + "namespace": "compliance" }, - "jsii-calc.InbetweenClass": { + "jsii-calc.compliance.IPublicInterface2": { "assembly": "jsii-calc", - "base": "jsii-calc.PublicClass", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.InbetweenClass", - "initializer": {}, - "interfaces": [ - "jsii-calc.IPublicInterface2" - ], - "kind": "class", + "fqn": "jsii-calc.compliance.IPublicInterface2", + "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1378 + "line": 1375 }, "methods": [ { + "abstract": true, "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1379 + "line": 1376 }, "name": "ciao", - "overrides": "jsii-calc.IPublicInterface2", "returns": { "type": { "primitive": "string" @@ -6021,123 +5716,137 @@ } } ], - "name": "InbetweenClass" + "name": "IPublicInterface2", + "namespace": "compliance" }, - "jsii-calc.InterfaceCollections": { + "jsii-calc.compliance.IReturnJsii976": { "assembly": "jsii-calc", "docs": { - "remarks": "See: https://github.com/aws/jsii/issues/1196", "stability": "experimental", - "summary": "Verifies that collections of interfaces or structs are correctly handled." + "summary": "Returns a subclass of a known class which implements an interface." }, - "fqn": "jsii-calc.InterfaceCollections", - "kind": "class", + "fqn": "jsii-calc.compliance.IReturnJsii976", + "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2434 + "line": 2215 }, - "methods": [ + "name": "IReturnJsii976", + "namespace": "compliance", + "properties": [ { + "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2447 + "line": 2216 }, - "name": "listOfInterfaces", - "returns": { - "type": { - "collection": { - "elementtype": { - "fqn": "jsii-calc.IBell" - }, - "kind": "array" - } - } - }, - "static": true - }, + "name": "foo", + "type": { + "primitive": "number" + } + } + ] + }, + "jsii-calc.compliance.IReturnsNumber": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.IReturnsNumber", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 631 + }, + "methods": [ { + "abstract": true, "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2435 + "line": 632 }, - "name": "listOfStructs", + "name": "obtainNumber", "returns": { "type": { - "collection": { - "elementtype": { - "fqn": "jsii-calc.StructA" - }, - "kind": "array" - } + "fqn": "@scope/jsii-calc-lib.IDoublable" } - }, - "static": true - }, + } + } + ], + "name": "IReturnsNumber", + "namespace": "compliance", + "properties": [ { + "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2453 - }, - "name": "mapOfInterfaces", - "returns": { - "type": { - "collection": { - "elementtype": { - "fqn": "jsii-calc.IBell" - }, - "kind": "map" - } - } + "line": 634 }, - "static": true - }, + "name": "numberProp", + "type": { + "fqn": "@scope/jsii-calc-lib.Number" + } + } + ] + }, + "jsii-calc.compliance.IStructReturningDelegate": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Verifies that a \"pure\" implementation of an interface works correctly." + }, + "fqn": "jsii-calc.compliance.IStructReturningDelegate", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2403 + }, + "methods": [ { + "abstract": true, "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2441 + "line": 2404 }, - "name": "mapOfStructs", + "name": "returnStruct", "returns": { "type": { - "collection": { - "elementtype": { - "fqn": "jsii-calc.StructA" - }, - "kind": "map" - } + "fqn": "jsii-calc.compliance.StructB" } - }, - "static": true + } } ], - "name": "InterfaceCollections" + "name": "IStructReturningDelegate", + "namespace": "compliance" }, - "jsii-calc.InterfaceInNamespaceIncludesClasses.Foo": { + "jsii-calc.compliance.ImplementInternalInterface": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.InterfaceInNamespaceIncludesClasses.Foo", + "fqn": "jsii-calc.compliance.ImplementInternalInterface", "initializer": {}, "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1059 + "line": 1556 }, - "name": "Foo", - "namespace": "InterfaceInNamespaceIncludesClasses", + "name": "ImplementInternalInterface", + "namespace": "compliance", "properties": [ { "docs": { @@ -6145,202 +5854,173 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1060 + "line": 1557 }, - "name": "bar", - "optional": true, + "name": "prop", "type": { "primitive": "string" } } ] }, - "jsii-calc.InterfaceInNamespaceIncludesClasses.Hello": { + "jsii-calc.compliance.Implementation": { "assembly": "jsii-calc", - "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.InterfaceInNamespaceIncludesClasses.Hello", - "kind": "interface", + "fqn": "jsii-calc.compliance.Implementation", + "initializer": {}, + "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1063 + "line": 1987 }, - "name": "Hello", - "namespace": "InterfaceInNamespaceIncludesClasses", + "name": "Implementation", + "namespace": "compliance", "properties": [ { - "abstract": true, "docs": { "stability": "experimental" }, "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1064 + "line": 1988 }, - "name": "foo", + "name": "value", "type": { "primitive": "number" } } ] }, - "jsii-calc.InterfaceInNamespaceOnlyInterface.Hello": { + "jsii-calc.compliance.ImplementsInterfaceWithInternal": { "assembly": "jsii-calc", - "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.InterfaceInNamespaceOnlyInterface.Hello", - "kind": "interface", + "fqn": "jsii-calc.compliance.ImplementsInterfaceWithInternal", + "initializer": {}, + "interfaces": [ + "jsii-calc.compliance.IInterfaceWithInternal" + ], + "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1051 + "line": 1519 }, - "name": "Hello", - "namespace": "InterfaceInNamespaceOnlyInterface", - "properties": [ + "methods": [ { - "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1052 + "line": 1520 }, - "name": "foo", - "type": { - "primitive": "number" - } + "name": "visible", + "overrides": "jsii-calc.compliance.IInterfaceWithInternal" } - ] + ], + "name": "ImplementsInterfaceWithInternal", + "namespace": "compliance" }, - "jsii-calc.InterfacesMaker": { + "jsii-calc.compliance.ImplementsInterfaceWithInternalSubclass": { "assembly": "jsii-calc", + "base": "jsii-calc.compliance.ImplementsInterfaceWithInternal", "docs": { - "stability": "experimental", - "summary": "We can return arrays of interfaces See aws/aws-cdk#2362." + "stability": "experimental" }, - "fqn": "jsii-calc.InterfacesMaker", + "fqn": "jsii-calc.compliance.ImplementsInterfaceWithInternalSubclass", + "initializer": {}, "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1871 + "line": 1532 }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1872 - }, - "name": "makeInterfaces", - "parameters": [ - { - "name": "count", - "type": { - "primitive": "number" - } - } - ], - "returns": { - "type": { - "collection": { - "elementtype": { - "fqn": "@scope/jsii-calc-lib.IDoublable" - }, - "kind": "array" - } - } - }, - "static": true - } - ], - "name": "InterfacesMaker" + "name": "ImplementsInterfaceWithInternalSubclass", + "namespace": "compliance" }, - "jsii-calc.JSII417Derived": { + "jsii-calc.compliance.ImplementsPrivateInterface": { "assembly": "jsii-calc", - "base": "jsii-calc.JSII417PublicBaseOfBase", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.JSII417Derived", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "property", - "type": { - "primitive": "string" - } - } - ] - }, + "fqn": "jsii-calc.compliance.ImplementsPrivateInterface", + "initializer": {}, "kind": "class", "locationInModule": { - "filename": "lib/erasures.ts", - "line": 20 + "filename": "lib/compliance.ts", + "line": 1560 }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 21 - }, - "name": "bar" - }, + "name": "ImplementsPrivateInterface", + "namespace": "compliance", + "properties": [ { "docs": { "stability": "experimental" }, "locationInModule": { - "filename": "lib/erasures.ts", - "line": 24 + "filename": "lib/compliance.ts", + "line": 1561 }, - "name": "baz" + "name": "private", + "type": { + "primitive": "string" + } } + ] + }, + "jsii-calc.compliance.ImplictBaseOfBase": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.ImplictBaseOfBase", + "interfaces": [ + "@scope/jsii-calc-base.BaseProps" ], - "name": "JSII417Derived", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1025 + }, + "name": "ImplictBaseOfBase", + "namespace": "compliance", "properties": [ { + "abstract": true, "docs": { "stability": "experimental" }, "immutable": true, "locationInModule": { - "filename": "lib/erasures.ts", - "line": 15 + "filename": "lib/compliance.ts", + "line": 1026 }, - "name": "property", - "protected": true, + "name": "goo", "type": { - "primitive": "string" + "primitive": "date" } } ] }, - "jsii-calc.JSII417PublicBaseOfBase": { + "jsii-calc.compliance.InbetweenClass": { "assembly": "jsii-calc", + "base": "jsii-calc.compliance.PublicClass", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.JSII417PublicBaseOfBase", + "fqn": "jsii-calc.compliance.InbetweenClass", "initializer": {}, + "interfaces": [ + "jsii-calc.compliance.IPublicInterface2" + ], "kind": "class", "locationInModule": { - "filename": "lib/erasures.ts", - "line": 8 + "filename": "lib/compliance.ts", + "line": 1378 }, "methods": [ { @@ -6348,52 +6028,270 @@ "stability": "experimental" }, "locationInModule": { - "filename": "lib/erasures.ts", - "line": 9 + "filename": "lib/compliance.ts", + "line": 1379 }, - "name": "makeInstance", + "name": "ciao", + "overrides": "jsii-calc.compliance.IPublicInterface2", "returns": { "type": { - "fqn": "jsii-calc.JSII417PublicBaseOfBase" + "primitive": "string" } + } + } + ], + "name": "InbetweenClass", + "namespace": "compliance" + }, + "jsii-calc.compliance.InterfaceCollections": { + "assembly": "jsii-calc", + "docs": { + "remarks": "See: https://github.com/aws/jsii/issues/1196", + "stability": "experimental", + "summary": "Verifies that collections of interfaces or structs are correctly handled." + }, + "fqn": "jsii-calc.compliance.InterfaceCollections", + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2434 + }, + "methods": [ + { + "docs": { + "stability": "experimental" }, - "static": true - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 12 - }, - "name": "foo" + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2447 + }, + "name": "listOfInterfaces", + "returns": { + "type": { + "collection": { + "elementtype": { + "fqn": "jsii-calc.compliance.IBell" + }, + "kind": "array" + } + } + }, + "static": true + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2435 + }, + "name": "listOfStructs", + "returns": { + "type": { + "collection": { + "elementtype": { + "fqn": "jsii-calc.compliance.StructA" + }, + "kind": "array" + } + } + }, + "static": true + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2453 + }, + "name": "mapOfInterfaces", + "returns": { + "type": { + "collection": { + "elementtype": { + "fqn": "jsii-calc.compliance.IBell" + }, + "kind": "map" + } + } + }, + "static": true + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2441 + }, + "name": "mapOfStructs", + "returns": { + "type": { + "collection": { + "elementtype": { + "fqn": "jsii-calc.compliance.StructA" + }, + "kind": "map" + } + } + }, + "static": true } ], - "name": "JSII417PublicBaseOfBase", + "name": "InterfaceCollections", + "namespace": "compliance" + }, + "jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Foo": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Foo", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1059 + }, + "name": "Foo", + "namespace": "compliance.InterfaceInNamespaceIncludesClasses", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1060 + }, + "name": "bar", + "optional": true, + "type": { + "primitive": "string" + } + } + ] + }, + "jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Hello": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Hello", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1063 + }, + "name": "Hello", + "namespace": "compliance.InterfaceInNamespaceIncludesClasses", "properties": [ { + "abstract": true, "docs": { "stability": "experimental" }, "immutable": true, "locationInModule": { - "filename": "lib/erasures.ts", - "line": 6 + "filename": "lib/compliance.ts", + "line": 1064 }, - "name": "hasRoot", + "name": "foo", "type": { - "primitive": "boolean" + "primitive": "number" + } + } + ] + }, + "jsii-calc.compliance.InterfaceInNamespaceOnlyInterface.Hello": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.InterfaceInNamespaceOnlyInterface.Hello", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1051 + }, + "name": "Hello", + "namespace": "compliance.InterfaceInNamespaceOnlyInterface", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1052 + }, + "name": "foo", + "type": { + "primitive": "number" } } ] }, - "jsii-calc.JSObjectLiteralForInterface": { + "jsii-calc.compliance.InterfacesMaker": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "We can return arrays of interfaces See aws/aws-cdk#2362." + }, + "fqn": "jsii-calc.compliance.InterfacesMaker", + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1871 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1872 + }, + "name": "makeInterfaces", + "parameters": [ + { + "name": "count", + "type": { + "primitive": "number" + } + } + ], + "returns": { + "type": { + "collection": { + "elementtype": { + "fqn": "@scope/jsii-calc-lib.IDoublable" + }, + "kind": "array" + } + } + }, + "static": true + } + ], + "name": "InterfacesMaker", + "namespace": "compliance" + }, + "jsii-calc.compliance.JSObjectLiteralForInterface": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.JSObjectLiteralForInterface", + "fqn": "jsii-calc.compliance.JSObjectLiteralForInterface", "initializer": {}, "kind": "class", "locationInModule": { @@ -6432,14 +6330,15 @@ } } ], - "name": "JSObjectLiteralForInterface" + "name": "JSObjectLiteralForInterface", + "namespace": "compliance" }, - "jsii-calc.JSObjectLiteralToNative": { + "jsii-calc.compliance.JSObjectLiteralToNative": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.JSObjectLiteralToNative", + "fqn": "jsii-calc.compliance.JSObjectLiteralToNative", "initializer": {}, "kind": "class", "locationInModule": { @@ -6458,19 +6357,20 @@ "name": "returnLiteral", "returns": { "type": { - "fqn": "jsii-calc.JSObjectLiteralToNativeClass" + "fqn": "jsii-calc.compliance.JSObjectLiteralToNativeClass" } } } ], - "name": "JSObjectLiteralToNative" + "name": "JSObjectLiteralToNative", + "namespace": "compliance" }, - "jsii-calc.JSObjectLiteralToNativeClass": { + "jsii-calc.compliance.JSObjectLiteralToNativeClass": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.JSObjectLiteralToNativeClass", + "fqn": "jsii-calc.compliance.JSObjectLiteralToNativeClass", "initializer": {}, "kind": "class", "locationInModule": { @@ -6478,6 +6378,7 @@ "line": 242 }, "name": "JSObjectLiteralToNativeClass", + "namespace": "compliance", "properties": [ { "docs": { @@ -6507,12 +6408,12 @@ } ] }, - "jsii-calc.JavaReservedWords": { + "jsii-calc.compliance.JavaReservedWords": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.JavaReservedWords", + "fqn": "jsii-calc.compliance.JavaReservedWords", "initializer": {}, "kind": "class", "locationInModule": { @@ -7042,6 +6943,7 @@ } ], "name": "JavaReservedWords", + "namespace": "compliance", "properties": [ { "docs": { @@ -7058,48 +6960,13 @@ } ] }, - "jsii-calc.Jsii487Derived": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.Jsii487Derived", - "initializer": {}, - "interfaces": [ - "jsii-calc.IJsii487External2", - "jsii-calc.IJsii487External" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 48 - }, - "name": "Jsii487Derived" - }, - "jsii-calc.Jsii496Derived": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.Jsii496Derived", - "initializer": {}, - "interfaces": [ - "jsii-calc.IJsii496" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 56 - }, - "name": "Jsii496Derived" - }, - "jsii-calc.JsiiAgent": { + "jsii-calc.compliance.JsiiAgent": { "assembly": "jsii-calc", "docs": { "stability": "experimental", "summary": "Host runtime version should be set via JSII_AGENT." }, - "fqn": "jsii-calc.JsiiAgent", + "fqn": "jsii-calc.compliance.JsiiAgent", "initializer": {}, "kind": "class", "locationInModule": { @@ -7107,6 +6974,7 @@ "line": 1343 }, "name": "JsiiAgent", + "namespace": "compliance", "properties": [ { "docs": { @@ -7127,14 +6995,14 @@ } ] }, - "jsii-calc.JsonFormatter": { + "jsii-calc.compliance.JsonFormatter": { "assembly": "jsii-calc", "docs": { "see": "https://github.com/aws/aws-cdk/issues/5066", "stability": "experimental", "summary": "Make sure structs are un-decorated on the way in." }, - "fqn": "jsii-calc.JsonFormatter", + "fqn": "jsii-calc.compliance.JsonFormatter", "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", @@ -7376,22 +7244,24 @@ "static": true } ], - "name": "JsonFormatter" + "name": "JsonFormatter", + "namespace": "compliance" }, - "jsii-calc.LoadBalancedFargateServiceProps": { + "jsii-calc.compliance.LoadBalancedFargateServiceProps": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental", "summary": "jsii#298: show default values in sphinx documentation, and respect newlines." }, - "fqn": "jsii-calc.LoadBalancedFargateServiceProps", + "fqn": "jsii-calc.compliance.LoadBalancedFargateServiceProps", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 1255 }, "name": "LoadBalancedFargateServiceProps", + "namespace": "compliance", "properties": [ { "abstract": true, @@ -7488,108 +7358,64 @@ } ] }, - "jsii-calc.MethodNamedProperty": { + "jsii-calc.compliance.NestedStruct": { "assembly": "jsii-calc", + "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.MethodNamedProperty", - "initializer": {}, - "kind": "class", + "fqn": "jsii-calc.compliance.NestedStruct", + "kind": "interface", "locationInModule": { - "filename": "lib/calculator.ts", - "line": 386 + "filename": "lib/compliance.ts", + "line": 2191 }, - "methods": [ + "name": "NestedStruct", + "namespace": "compliance", + "properties": [ { + "abstract": true, "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 387 - }, - "name": "property", - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "MethodNamedProperty", - "properties": [ - { - "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "When provided, must be > 0." }, "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 391 + "filename": "lib/compliance.ts", + "line": 2195 }, - "name": "elite", + "name": "numberProp", "type": { "primitive": "number" } } ] }, - "jsii-calc.Multiply": { + "jsii-calc.compliance.NodeStandardLibrary": { "assembly": "jsii-calc", - "base": "jsii-calc.BinaryOperation", "docs": { "stability": "experimental", - "summary": "The \"*\" binary operation." - }, - "fqn": "jsii-calc.Multiply", - "initializer": { - "docs": { - "stability": "experimental", - "summary": "Creates a BinaryOperation." - }, - "parameters": [ - { - "docs": { - "summary": "Left-hand side operand." - }, - "name": "lhs", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - }, - { - "docs": { - "summary": "Right-hand side operand." - }, - "name": "rhs", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - } - ] + "summary": "Test fixture to verify that jsii modules can use the node standard library." }, - "interfaces": [ - "jsii-calc.IFriendlier", - "jsii-calc.IRandomNumberGenerator" - ], + "fqn": "jsii-calc.compliance.NodeStandardLibrary", + "initializer": {}, "kind": "class", "locationInModule": { - "filename": "lib/calculator.ts", - "line": 68 + "filename": "lib/compliance.ts", + "line": 977 }, "methods": [ { "docs": { + "returns": "\"6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50\"", "stability": "experimental", - "summary": "Say farewell." + "summary": "Uses node.js \"crypto\" module to calculate sha256 of a string." }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 81 + "filename": "lib/compliance.ts", + "line": 1006 }, - "name": "farewell", - "overrides": "jsii-calc.IFriendlier", + "name": "cryptoSha256", "returns": { "type": { "primitive": "string" @@ -7597,16 +7423,17 @@ } }, { + "async": true, "docs": { + "returns": "\"Hello, resource!\"", "stability": "experimental", - "summary": "Say goodbye." + "summary": "Reads a local resource file (resource.txt) asynchronously." }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 77 + "filename": "lib/compliance.ts", + "line": 982 }, - "name": "goodbye", - "overrides": "jsii-calc.IFriendlier", + "name": "fsReadFile", "returns": { "type": { "primitive": "string" @@ -7615,32 +7442,15 @@ }, { "docs": { + "returns": "\"Hello, resource! SYNC!\"", "stability": "experimental", - "summary": "Returns another random number." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 85 - }, - "name": "next", - "overrides": "jsii-calc.IRandomNumberGenerator", - "returns": { - "type": { - "primitive": "number" - } - } - }, - { - "docs": { - "stability": "experimental", - "summary": "String representation of the value." + "summary": "Sync version of fsReadFile." }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 73 + "filename": "lib/compliance.ts", + "line": 991 }, - "name": "toString", - "overrides": "@scope/jsii-calc-lib.Operation", + "name": "fsReadFileSync", "returns": { "type": { "primitive": "string" @@ -7648,387 +7458,152 @@ } } ], - "name": "Multiply", + "name": "NodeStandardLibrary", + "namespace": "compliance", "properties": [ { "docs": { "stability": "experimental", - "summary": "The value." + "summary": "Returns the current os.platform() from the \"os\" node module." }, "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 69 + "filename": "lib/compliance.ts", + "line": 998 }, - "name": "value", - "overrides": "@scope/jsii-calc-lib.Value", + "name": "osPlatform", "type": { - "primitive": "number" + "primitive": "string" } } ] }, - "jsii-calc.Negate": { + "jsii-calc.compliance.NullShouldBeTreatedAsUndefined": { "assembly": "jsii-calc", - "base": "jsii-calc.UnaryOperation", "docs": { "stability": "experimental", - "summary": "The negation operation (\"-value\")." + "summary": "jsii#282, aws-cdk#157: null should be treated as \"undefined\"." }, - "fqn": "jsii-calc.Negate", + "fqn": "jsii-calc.compliance.NullShouldBeTreatedAsUndefined", "initializer": { "docs": { "stability": "experimental" }, "parameters": [ { - "name": "operand", + "name": "_param1", "type": { - "fqn": "@scope/jsii-calc-lib.Value" + "primitive": "string" + } + }, + { + "name": "optional", + "optional": true, + "type": { + "primitive": "any" } } ] }, - "interfaces": [ - "jsii-calc.IFriendlier" - ], "kind": "class", "locationInModule": { - "filename": "lib/calculator.ts", - "line": 102 + "filename": "lib/compliance.ts", + "line": 1204 }, "methods": [ { "docs": { - "stability": "experimental", - "summary": "Say farewell." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 119 - }, - "name": "farewell", - "overrides": "jsii-calc.IFriendlier", - "returns": { - "type": { - "primitive": "string" - } - } - }, - { - "docs": { - "stability": "experimental", - "summary": "Say goodbye." + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 115 + "filename": "lib/compliance.ts", + "line": 1213 }, - "name": "goodbye", - "overrides": "jsii-calc.IFriendlier", - "returns": { - "type": { - "primitive": "string" + "name": "giveMeUndefined", + "parameters": [ + { + "name": "value", + "optional": true, + "type": { + "primitive": "any" + } } - } + ] }, { "docs": { - "stability": "experimental", - "summary": "Say hello!" + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 111 + "filename": "lib/compliance.ts", + "line": 1219 }, - "name": "hello", - "overrides": "@scope/jsii-calc-lib.IFriendly", - "returns": { - "type": { - "primitive": "string" + "name": "giveMeUndefinedInsideAnObject", + "parameters": [ + { + "name": "input", + "type": { + "fqn": "jsii-calc.compliance.NullShouldBeTreatedAsUndefinedData" + } } - } + ] }, { "docs": { - "stability": "experimental", - "summary": "String representation of the value." + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 107 + "filename": "lib/compliance.ts", + "line": 1234 }, - "name": "toString", - "overrides": "@scope/jsii-calc-lib.Operation", - "returns": { - "type": { - "primitive": "string" - } - } + "name": "verifyPropertyIsUndefined" } ], - "name": "Negate", + "name": "NullShouldBeTreatedAsUndefined", + "namespace": "compliance", "properties": [ { "docs": { - "stability": "experimental", - "summary": "The value." + "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 103 + "filename": "lib/compliance.ts", + "line": 1205 }, - "name": "value", - "overrides": "@scope/jsii-calc-lib.Value", + "name": "changeMeToUndefined", + "optional": true, "type": { - "primitive": "number" + "primitive": "string" } } ] }, - "jsii-calc.NestedStruct": { + "jsii-calc.compliance.NullShouldBeTreatedAsUndefinedData": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.NestedStruct", + "fqn": "jsii-calc.compliance.NullShouldBeTreatedAsUndefinedData", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2191 + "line": 1241 }, - "name": "NestedStruct", + "name": "NullShouldBeTreatedAsUndefinedData", + "namespace": "compliance", "properties": [ { "abstract": true, "docs": { - "stability": "experimental", - "summary": "When provided, must be > 0." + "stability": "experimental" }, "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2195 + "line": 1243 }, - "name": "numberProp", - "type": { - "primitive": "number" - } - } - ] - }, - "jsii-calc.NodeStandardLibrary": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Test fixture to verify that jsii modules can use the node standard library." - }, - "fqn": "jsii-calc.NodeStandardLibrary", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 977 - }, - "methods": [ - { - "docs": { - "returns": "\"6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50\"", - "stability": "experimental", - "summary": "Uses node.js \"crypto\" module to calculate sha256 of a string." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1006 - }, - "name": "cryptoSha256", - "returns": { - "type": { - "primitive": "string" - } - } - }, - { - "async": true, - "docs": { - "returns": "\"Hello, resource!\"", - "stability": "experimental", - "summary": "Reads a local resource file (resource.txt) asynchronously." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 982 - }, - "name": "fsReadFile", - "returns": { - "type": { - "primitive": "string" - } - } - }, - { - "docs": { - "returns": "\"Hello, resource! SYNC!\"", - "stability": "experimental", - "summary": "Sync version of fsReadFile." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 991 - }, - "name": "fsReadFileSync", - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "NodeStandardLibrary", - "properties": [ - { - "docs": { - "stability": "experimental", - "summary": "Returns the current os.platform() from the \"os\" node module." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 998 - }, - "name": "osPlatform", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.NullShouldBeTreatedAsUndefined": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "jsii#282, aws-cdk#157: null should be treated as \"undefined\"." - }, - "fqn": "jsii-calc.NullShouldBeTreatedAsUndefined", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "_param1", - "type": { - "primitive": "string" - } - }, - { - "name": "optional", - "optional": true, - "type": { - "primitive": "any" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1204 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1213 - }, - "name": "giveMeUndefined", - "parameters": [ - { - "name": "value", - "optional": true, - "type": { - "primitive": "any" - } - } - ] - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1219 - }, - "name": "giveMeUndefinedInsideAnObject", - "parameters": [ - { - "name": "input", - "type": { - "fqn": "jsii-calc.NullShouldBeTreatedAsUndefinedData" - } - } - ] - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1234 - }, - "name": "verifyPropertyIsUndefined" - } - ], - "name": "NullShouldBeTreatedAsUndefined", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1205 - }, - "name": "changeMeToUndefined", - "optional": true, - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.NullShouldBeTreatedAsUndefinedData": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.NullShouldBeTreatedAsUndefinedData", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1241 - }, - "name": "NullShouldBeTreatedAsUndefinedData", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1243 - }, - "name": "arrayWithThreeElementsAndUndefinedAsSecondArgument", + "name": "arrayWithThreeElementsAndUndefinedAsSecondArgument", "type": { "collection": { "elementtype": { @@ -8056,13 +7631,13 @@ } ] }, - "jsii-calc.NumberGenerator": { + "jsii-calc.compliance.NumberGenerator": { "assembly": "jsii-calc", "docs": { "stability": "experimental", "summary": "This allows us to test that a reference can be stored for objects that implement interfaces." }, - "fqn": "jsii-calc.NumberGenerator", + "fqn": "jsii-calc.compliance.NumberGenerator", "initializer": { "docs": { "stability": "experimental" @@ -8122,6 +7697,7 @@ } ], "name": "NumberGenerator", + "namespace": "compliance", "properties": [ { "docs": { @@ -8138,13 +7714,13 @@ } ] }, - "jsii-calc.ObjectRefsInCollections": { + "jsii-calc.compliance.ObjectRefsInCollections": { "assembly": "jsii-calc", "docs": { "stability": "experimental", "summary": "Verify that object references can be passed inside collections." }, - "fqn": "jsii-calc.ObjectRefsInCollections", + "fqn": "jsii-calc.compliance.ObjectRefsInCollections", "initializer": {}, "kind": "class", "locationInModule": { @@ -8211,14 +7787,15 @@ } } ], - "name": "ObjectRefsInCollections" + "name": "ObjectRefsInCollections", + "namespace": "compliance" }, - "jsii-calc.ObjectWithPropertyProvider": { + "jsii-calc.compliance.ObjectWithPropertyProvider": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.ObjectWithPropertyProvider", + "fqn": "jsii-calc.compliance.ObjectWithPropertyProvider", "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", @@ -8236,49 +7813,21 @@ "name": "provide", "returns": { "type": { - "fqn": "jsii-calc.IObjectWithProperty" + "fqn": "jsii-calc.compliance.IObjectWithProperty" } }, "static": true } ], - "name": "ObjectWithPropertyProvider" - }, - "jsii-calc.Old": { - "assembly": "jsii-calc", - "docs": { - "deprecated": "Use the new class", - "stability": "deprecated", - "summary": "Old class." - }, - "fqn": "jsii-calc.Old", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/documented.ts", - "line": 54 - }, - "methods": [ - { - "docs": { - "stability": "deprecated", - "summary": "Doo wop that thing." - }, - "locationInModule": { - "filename": "lib/documented.ts", - "line": 58 - }, - "name": "doAThing" - } - ], - "name": "Old" + "name": "ObjectWithPropertyProvider", + "namespace": "compliance" }, - "jsii-calc.OptionalArgumentInvoker": { + "jsii-calc.compliance.OptionalArgumentInvoker": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.OptionalArgumentInvoker", + "fqn": "jsii-calc.compliance.OptionalArgumentInvoker", "initializer": { "docs": { "stability": "experimental" @@ -8287,7 +7836,7 @@ { "name": "delegate", "type": { - "fqn": "jsii-calc.IInterfaceWithOptionalMethodArguments" + "fqn": "jsii-calc.compliance.IInterfaceWithOptionalMethodArguments" } } ] @@ -8319,14 +7868,15 @@ "name": "invokeWithoutOptional" } ], - "name": "OptionalArgumentInvoker" + "name": "OptionalArgumentInvoker", + "namespace": "compliance" }, - "jsii-calc.OptionalConstructorArgument": { + "jsii-calc.compliance.OptionalConstructorArgument": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.OptionalConstructorArgument", + "fqn": "jsii-calc.compliance.OptionalConstructorArgument", "initializer": { "docs": { "stability": "experimental" @@ -8359,6 +7909,7 @@ "line": 295 }, "name": "OptionalConstructorArgument", + "namespace": "compliance", "properties": [ { "docs": { @@ -8405,19 +7956,20 @@ } ] }, - "jsii-calc.OptionalStruct": { + "jsii-calc.compliance.OptionalStruct": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.OptionalStruct", + "fqn": "jsii-calc.compliance.OptionalStruct", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 1650 }, "name": "OptionalStruct", + "namespace": "compliance", "properties": [ { "abstract": true, @@ -8437,12 +7989,12 @@ } ] }, - "jsii-calc.OptionalStructConsumer": { + "jsii-calc.compliance.OptionalStructConsumer": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.OptionalStructConsumer", + "fqn": "jsii-calc.compliance.OptionalStructConsumer", "initializer": { "docs": { "stability": "experimental" @@ -8452,7 +8004,7 @@ "name": "optionalStruct", "optional": true, "type": { - "fqn": "jsii-calc.OptionalStruct" + "fqn": "jsii-calc.compliance.OptionalStruct" } } ] @@ -8463,6 +8015,7 @@ "line": 1641 }, "name": "OptionalStructConsumer", + "namespace": "compliance", "properties": [ { "docs": { @@ -8495,13 +8048,13 @@ } ] }, - "jsii-calc.OverridableProtectedMember": { + "jsii-calc.compliance.OverridableProtectedMember": { "assembly": "jsii-calc", "docs": { "see": "https://github.com/aws/jsii/issues/903", "stability": "experimental" }, - "fqn": "jsii-calc.OverridableProtectedMember", + "fqn": "jsii-calc.compliance.OverridableProtectedMember", "initializer": {}, "kind": "class", "locationInModule": { @@ -8552,6 +8105,7 @@ } ], "name": "OverridableProtectedMember", + "namespace": "compliance", "properties": [ { "docs": { @@ -8584,12 +8138,12 @@ } ] }, - "jsii-calc.OverrideReturnsObject": { + "jsii-calc.compliance.OverrideReturnsObject": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.OverrideReturnsObject", + "fqn": "jsii-calc.compliance.OverrideReturnsObject", "initializer": {}, "kind": "class", "locationInModule": { @@ -8610,7 +8164,7 @@ { "name": "obj", "type": { - "fqn": "jsii-calc.IReturnsNumber" + "fqn": "jsii-calc.compliance.IReturnsNumber" } } ], @@ -8621,22 +8175,24 @@ } } ], - "name": "OverrideReturnsObject" + "name": "OverrideReturnsObject", + "namespace": "compliance" }, - "jsii-calc.ParentStruct982": { + "jsii-calc.compliance.ParentStruct982": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental", "summary": "https://github.com/aws/jsii/issues/982." }, - "fqn": "jsii-calc.ParentStruct982", + "fqn": "jsii-calc.compliance.ParentStruct982", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 2241 }, "name": "ParentStruct982", + "namespace": "compliance", "properties": [ { "abstract": true, @@ -8655,13 +8211,13 @@ } ] }, - "jsii-calc.PartiallyInitializedThisConsumer": { + "jsii-calc.compliance.PartiallyInitializedThisConsumer": { "abstract": true, "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.PartiallyInitializedThisConsumer", + "fqn": "jsii-calc.compliance.PartiallyInitializedThisConsumer", "initializer": {}, "kind": "class", "locationInModule": { @@ -8683,7 +8239,7 @@ { "name": "obj", "type": { - "fqn": "jsii-calc.ConstructorPassesThisOut" + "fqn": "jsii-calc.compliance.ConstructorPassesThisOut" } }, { @@ -8695,7 +8251,7 @@ { "name": "ev", "type": { - "fqn": "jsii-calc.AllTypesEnum" + "fqn": "jsii-calc.compliance.AllTypesEnum" } } ], @@ -8706,14 +8262,15 @@ } } ], - "name": "PartiallyInitializedThisConsumer" + "name": "PartiallyInitializedThisConsumer", + "namespace": "compliance" }, - "jsii-calc.Polymorphism": { + "jsii-calc.compliance.Polymorphism": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.Polymorphism", + "fqn": "jsii-calc.compliance.Polymorphism", "initializer": {}, "kind": "class", "locationInModule": { @@ -8745,149 +8302,15 @@ } } ], - "name": "Polymorphism" + "name": "Polymorphism", + "namespace": "compliance" }, - "jsii-calc.Power": { + "jsii-calc.compliance.PublicClass": { "assembly": "jsii-calc", - "base": "jsii-calc.composition.CompositeOperation", "docs": { - "stability": "experimental", - "summary": "The power operation." + "stability": "experimental" }, - "fqn": "jsii-calc.Power", - "initializer": { - "docs": { - "stability": "experimental", - "summary": "Creates a Power operation." - }, - "parameters": [ - { - "docs": { - "summary": "The base of the power." - }, - "name": "base", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - }, - { - "docs": { - "summary": "The number of times to multiply." - }, - "name": "pow", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 211 - }, - "name": "Power", - "properties": [ - { - "docs": { - "stability": "experimental", - "summary": "The base of the power." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 218 - }, - "name": "base", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - }, - { - "docs": { - "remarks": "Must be implemented by derived classes.", - "stability": "experimental", - "summary": "The expression that this operation consists of." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 222 - }, - "name": "expression", - "overrides": "jsii-calc.composition.CompositeOperation", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - }, - { - "docs": { - "stability": "experimental", - "summary": "The number of times to multiply." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 218 - }, - "name": "pow", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - } - ] - }, - "jsii-calc.PropertyNamedProperty": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Reproduction for https://github.com/aws/jsii/issues/1113 Where a method or property named \"property\" would result in impossible to load Python code." - }, - "fqn": "jsii-calc.PropertyNamedProperty", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 382 - }, - "name": "PropertyNamedProperty", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 383 - }, - "name": "property", - "type": { - "primitive": "string" - } - }, - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 384 - }, - "name": "yetAnoterOne", - "type": { - "primitive": "boolean" - } - } - ] - }, - "jsii-calc.PublicClass": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.PublicClass", + "fqn": "jsii-calc.compliance.PublicClass", "initializer": {}, "kind": "class", "locationInModule": { @@ -8906,14 +8329,15 @@ "name": "hello" } ], - "name": "PublicClass" + "name": "PublicClass", + "namespace": "compliance" }, - "jsii-calc.PythonReservedWords": { + "jsii-calc.compliance.PythonReservedWords": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.PythonReservedWords", + "fqn": "jsii-calc.compliance.PythonReservedWords", "initializer": {}, "kind": "class", "locationInModule": { @@ -9242,15 +8666,16 @@ "name": "yield" } ], - "name": "PythonReservedWords" + "name": "PythonReservedWords", + "namespace": "compliance" }, - "jsii-calc.ReferenceEnumFromScopedPackage": { + "jsii-calc.compliance.ReferenceEnumFromScopedPackage": { "assembly": "jsii-calc", "docs": { "stability": "experimental", "summary": "See awslabs/jsii#138." }, - "fqn": "jsii-calc.ReferenceEnumFromScopedPackage", + "fqn": "jsii-calc.compliance.ReferenceEnumFromScopedPackage", "initializer": {}, "kind": "class", "locationInModule": { @@ -9294,6 +8719,7 @@ } ], "name": "ReferenceEnumFromScopedPackage", + "namespace": "compliance", "properties": [ { "docs": { @@ -9311,7 +8737,7 @@ } ] }, - "jsii-calc.ReturnsPrivateImplementationOfInterface": { + "jsii-calc.compliance.ReturnsPrivateImplementationOfInterface": { "assembly": "jsii-calc", "docs": { "returns": "an instance of an un-exported class that extends `ExportedBaseClass`, declared as `IPrivatelyImplemented`.", @@ -9319,7 +8745,7 @@ "stability": "experimental", "summary": "Helps ensure the JSII kernel & runtime cooperate correctly when an un-exported instance of a class is returned with a declared type that is an exported interface, and the instance inherits from an exported class." }, - "fqn": "jsii-calc.ReturnsPrivateImplementationOfInterface", + "fqn": "jsii-calc.compliance.ReturnsPrivateImplementationOfInterface", "initializer": {}, "kind": "class", "locationInModule": { @@ -9327,6 +8753,7 @@ "line": 1323 }, "name": "ReturnsPrivateImplementationOfInterface", + "namespace": "compliance", "properties": [ { "docs": { @@ -9339,12 +8766,12 @@ }, "name": "privateImplementation", "type": { - "fqn": "jsii-calc.IPrivatelyImplemented" + "fqn": "jsii-calc.compliance.IPrivatelyImplemented" } } ] }, - "jsii-calc.RootStruct": { + "jsii-calc.compliance.RootStruct": { "assembly": "jsii-calc", "datatype": true, "docs": { @@ -9352,13 +8779,14 @@ "stability": "experimental", "summary": "This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary." }, - "fqn": "jsii-calc.RootStruct", + "fqn": "jsii-calc.compliance.RootStruct", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 2184 }, "name": "RootStruct", + "namespace": "compliance", "properties": [ { "abstract": true, @@ -9389,17 +8817,17 @@ "name": "nestedStruct", "optional": true, "type": { - "fqn": "jsii-calc.NestedStruct" + "fqn": "jsii-calc.compliance.NestedStruct" } } ] }, - "jsii-calc.RootStructValidator": { + "jsii-calc.compliance.RootStructValidator": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.RootStructValidator", + "fqn": "jsii-calc.compliance.RootStructValidator", "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", @@ -9419,21 +8847,22 @@ { "name": "struct", "type": { - "fqn": "jsii-calc.RootStruct" + "fqn": "jsii-calc.compliance.RootStruct" } } ], "static": true } ], - "name": "RootStructValidator" + "name": "RootStructValidator", + "namespace": "compliance" }, - "jsii-calc.RuntimeTypeChecking": { + "jsii-calc.compliance.RuntimeTypeChecking": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.RuntimeTypeChecking", + "fqn": "jsii-calc.compliance.RuntimeTypeChecking", "initializer": {}, "kind": "class", "locationInModule": { @@ -9526,21 +8955,23 @@ ] } ], - "name": "RuntimeTypeChecking" + "name": "RuntimeTypeChecking", + "namespace": "compliance" }, - "jsii-calc.SecondLevelStruct": { + "jsii-calc.compliance.SecondLevelStruct": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.SecondLevelStruct", + "fqn": "jsii-calc.compliance.SecondLevelStruct", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 1799 }, "name": "SecondLevelStruct", + "namespace": "compliance", "properties": [ { "abstract": true, @@ -9577,14 +9008,14 @@ } ] }, - "jsii-calc.SingleInstanceTwoTypes": { + "jsii-calc.compliance.SingleInstanceTwoTypes": { "assembly": "jsii-calc", "docs": { "remarks": "JSII clients can instantiate 2 different strongly-typed wrappers for the same\nobject. Unfortunately, this will break object equality, but if we didn't do\nthis it would break runtime type checks in the JVM or CLR.", "stability": "experimental", "summary": "Test that a single instance can be returned under two different FQNs." }, - "fqn": "jsii-calc.SingleInstanceTwoTypes", + "fqn": "jsii-calc.compliance.SingleInstanceTwoTypes", "initializer": {}, "kind": "class", "locationInModule": { @@ -9603,7 +9034,7 @@ "name": "interface1", "returns": { "type": { - "fqn": "jsii-calc.InbetweenClass" + "fqn": "jsii-calc.compliance.InbetweenClass" } } }, @@ -9618,21 +9049,22 @@ "name": "interface2", "returns": { "type": { - "fqn": "jsii-calc.IPublicInterface" + "fqn": "jsii-calc.compliance.IPublicInterface" } } } ], - "name": "SingleInstanceTwoTypes" + "name": "SingleInstanceTwoTypes", + "namespace": "compliance" }, - "jsii-calc.SingletonInt": { + "jsii-calc.compliance.SingletonInt": { "assembly": "jsii-calc", "docs": { "remarks": "https://github.com/aws/jsii/issues/231", "stability": "experimental", "summary": "Verifies that singleton enums are handled correctly." }, - "fqn": "jsii-calc.SingletonInt", + "fqn": "jsii-calc.compliance.SingletonInt", "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", @@ -9663,15 +9095,16 @@ } } ], - "name": "SingletonInt" + "name": "SingletonInt", + "namespace": "compliance" }, - "jsii-calc.SingletonIntEnum": { + "jsii-calc.compliance.SingletonIntEnum": { "assembly": "jsii-calc", "docs": { "stability": "experimental", "summary": "A singleton integer." }, - "fqn": "jsii-calc.SingletonIntEnum", + "fqn": "jsii-calc.compliance.SingletonIntEnum", "kind": "enum", "locationInModule": { "filename": "lib/compliance.ts", @@ -9686,16 +9119,17 @@ "name": "SINGLETON_INT" } ], - "name": "SingletonIntEnum" + "name": "SingletonIntEnum", + "namespace": "compliance" }, - "jsii-calc.SingletonString": { + "jsii-calc.compliance.SingletonString": { "assembly": "jsii-calc", "docs": { "remarks": "https://github.com/aws/jsii/issues/231", "stability": "experimental", "summary": "Verifies that singleton enums are handled correctly." }, - "fqn": "jsii-calc.SingletonString", + "fqn": "jsii-calc.compliance.SingletonString", "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", @@ -9726,15 +9160,16 @@ } } ], - "name": "SingletonString" + "name": "SingletonString", + "namespace": "compliance" }, - "jsii-calc.SingletonStringEnum": { + "jsii-calc.compliance.SingletonStringEnum": { "assembly": "jsii-calc", "docs": { "stability": "experimental", "summary": "A singleton string." }, - "fqn": "jsii-calc.SingletonStringEnum", + "fqn": "jsii-calc.compliance.SingletonStringEnum", "kind": "enum", "locationInModule": { "filename": "lib/compliance.ts", @@ -9749,65 +9184,70 @@ "name": "SINGLETON_STRING" } ], - "name": "SingletonStringEnum" + "name": "SingletonStringEnum", + "namespace": "compliance" }, - "jsii-calc.SmellyStruct": { + "jsii-calc.compliance.SomeTypeJsii976": { "assembly": "jsii-calc", - "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.SmellyStruct", - "kind": "interface", + "fqn": "jsii-calc.compliance.SomeTypeJsii976", + "initializer": {}, + "kind": "class", "locationInModule": { - "filename": "lib/calculator.ts", - "line": 393 + "filename": "lib/compliance.ts", + "line": 2221 }, - "name": "SmellyStruct", - "properties": [ + "methods": [ { - "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 394 + "filename": "lib/compliance.ts", + "line": 2231 }, - "name": "property", - "type": { - "primitive": "string" - } + "name": "returnAnonymous", + "returns": { + "type": { + "primitive": "any" + } + }, + "static": true }, { - "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 395 + "filename": "lib/compliance.ts", + "line": 2223 }, - "name": "yetAnoterOne", - "type": { - "primitive": "boolean" - } + "name": "returnReturn", + "returns": { + "type": { + "fqn": "jsii-calc.compliance.IReturnJsii976" + } + }, + "static": true } - ] + ], + "name": "SomeTypeJsii976", + "namespace": "compliance" }, - "jsii-calc.SomeTypeJsii976": { + "jsii-calc.compliance.StaticContext": { "assembly": "jsii-calc", "docs": { - "stability": "experimental" + "remarks": "https://github.com/awslabs/aws-cdk/issues/2304", + "stability": "experimental", + "summary": "This is used to validate the ability to use `this` from within a static context." }, - "fqn": "jsii-calc.SomeTypeJsii976", - "initializer": {}, + "fqn": "jsii-calc.compliance.StaticContext", "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2221 + "line": 1677 }, "methods": [ { @@ -9816,273 +9256,92 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2231 + "line": 1680 }, - "name": "returnAnonymous", + "name": "canAccessStaticContext", "returns": { "type": { - "primitive": "any" + "primitive": "boolean" } }, "static": true - }, + } + ], + "name": "StaticContext", + "namespace": "compliance", + "properties": [ { "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2223 - }, - "name": "returnReturn", - "returns": { - "type": { - "fqn": "jsii-calc.IReturnJsii976" - } + "line": 1688 }, - "static": true + "name": "staticVariable", + "static": true, + "type": { + "primitive": "boolean" + } } - ], - "name": "SomeTypeJsii976" + ] }, - "jsii-calc.StableClass": { + "jsii-calc.compliance.Statics": { "assembly": "jsii-calc", "docs": { - "stability": "stable" + "stability": "experimental" }, - "fqn": "jsii-calc.StableClass", + "fqn": "jsii-calc.compliance.Statics", "initializer": { "docs": { - "stability": "stable" + "stability": "experimental" }, "parameters": [ { - "name": "readonlyString", + "name": "value", "type": { "primitive": "string" } - }, - { - "name": "mutableNumber", - "optional": true, - "type": { - "primitive": "number" - } } ] }, "kind": "class", "locationInModule": { - "filename": "lib/stability.ts", - "line": 51 + "filename": "lib/compliance.ts", + "line": 681 }, "methods": [ { "docs": { - "stability": "stable" + "stability": "experimental", + "summary": "Jsdocs for static method." }, "locationInModule": { - "filename": "lib/stability.ts", - "line": 62 - }, - "name": "method" - } - ], - "name": "StableClass", - "properties": [ - { - "docs": { - "stability": "stable" + "filename": "lib/compliance.ts", + "line": 689 }, - "immutable": true, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 53 + "name": "staticMethod", + "parameters": [ + { + "docs": { + "summary": "The name of the person to say hello to." + }, + "name": "name", + "type": { + "primitive": "string" + } + } + ], + "returns": { + "type": { + "primitive": "string" + } }, - "name": "readonlyProperty", - "type": { - "primitive": "string" - } + "static": true }, { "docs": { - "stability": "stable" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 55 - }, - "name": "mutableProperty", - "optional": true, - "type": { - "primitive": "number" - } - } - ] - }, - "jsii-calc.StableEnum": { - "assembly": "jsii-calc", - "docs": { - "stability": "stable" - }, - "fqn": "jsii-calc.StableEnum", - "kind": "enum", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 65 - }, - "members": [ - { - "docs": { - "stability": "stable" - }, - "name": "OPTION_A" - }, - { - "docs": { - "stability": "stable" - }, - "name": "OPTION_B" - } - ], - "name": "StableEnum" - }, - "jsii-calc.StableStruct": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "stable" - }, - "fqn": "jsii-calc.StableStruct", - "kind": "interface", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 39 - }, - "name": "StableStruct", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "stable" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 41 - }, - "name": "readonlyProperty", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.StaticContext": { - "assembly": "jsii-calc", - "docs": { - "remarks": "https://github.com/awslabs/aws-cdk/issues/2304", - "stability": "experimental", - "summary": "This is used to validate the ability to use `this` from within a static context." - }, - "fqn": "jsii-calc.StaticContext", - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1677 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1680 - }, - "name": "canAccessStaticContext", - "returns": { - "type": { - "primitive": "boolean" - } - }, - "static": true - } - ], - "name": "StaticContext", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1688 - }, - "name": "staticVariable", - "static": true, - "type": { - "primitive": "boolean" - } - } - ] - }, - "jsii-calc.Statics": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.Statics", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "value", - "type": { - "primitive": "string" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 681 - }, - "methods": [ - { - "docs": { - "stability": "experimental", - "summary": "Jsdocs for static method." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 689 - }, - "name": "staticMethod", - "parameters": [ - { - "docs": { - "summary": "The name of the person to say hello to." - }, - "name": "name", - "type": { - "primitive": "string" - } - } - ], - "returns": { - "type": { - "primitive": "string" - } - }, - "static": true - }, - { - "docs": { - "stability": "experimental" + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", @@ -10097,6 +9356,7 @@ } ], "name": "Statics", + "namespace": "compliance", "properties": [ { "const": true, @@ -10128,7 +9388,7 @@ "name": "ConstObj", "static": true, "type": { - "fqn": "jsii-calc.DoubleTrouble" + "fqn": "jsii-calc.compliance.DoubleTrouble" } }, { @@ -10183,7 +9443,7 @@ "name": "instance", "static": true, "type": { - "fqn": "jsii-calc.Statics" + "fqn": "jsii-calc.compliance.Statics" } }, { @@ -10216,12 +9476,12 @@ } ] }, - "jsii-calc.StringEnum": { + "jsii-calc.compliance.StringEnum": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.StringEnum", + "fqn": "jsii-calc.compliance.StringEnum", "kind": "enum", "locationInModule": { "filename": "lib/compliance.ts", @@ -10247,14 +9507,15 @@ "name": "C" } ], - "name": "StringEnum" + "name": "StringEnum", + "namespace": "compliance" }, - "jsii-calc.StripInternal": { + "jsii-calc.compliance.StripInternal": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.StripInternal", + "fqn": "jsii-calc.compliance.StripInternal", "initializer": {}, "kind": "class", "locationInModule": { @@ -10262,6 +9523,7 @@ "line": 1480 }, "name": "StripInternal", + "namespace": "compliance", "properties": [ { "docs": { @@ -10278,20 +9540,21 @@ } ] }, - "jsii-calc.StructA": { + "jsii-calc.compliance.StructA": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental", "summary": "We can serialize and deserialize structs without silently ignoring optional fields." }, - "fqn": "jsii-calc.StructA", + "fqn": "jsii-calc.compliance.StructA", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 2003 }, "name": "StructA", + "namespace": "compliance", "properties": [ { "abstract": true, @@ -10342,20 +9605,21 @@ } ] }, - "jsii-calc.StructB": { + "jsii-calc.compliance.StructB": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental", "summary": "This intentionally overlaps with StructA (where only requiredString is provided) to test htat the kernel properly disambiguates those." }, - "fqn": "jsii-calc.StructB", + "fqn": "jsii-calc.compliance.StructB", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 2012 }, "name": "StructB", + "namespace": "compliance", "properties": [ { "abstract": true, @@ -10401,12 +9665,12 @@ "name": "optionalStructA", "optional": true, "type": { - "fqn": "jsii-calc.StructA" + "fqn": "jsii-calc.compliance.StructA" } } ] }, - "jsii-calc.StructParameterType": { + "jsii-calc.compliance.StructParameterType": { "assembly": "jsii-calc", "datatype": true, "docs": { @@ -10414,13 +9678,14 @@ "stability": "experimental", "summary": "Verifies that, in languages that do keyword lifting (e.g: Python), having a struct member with the same name as a positional parameter results in the correct code being emitted." }, - "fqn": "jsii-calc.StructParameterType", + "fqn": "jsii-calc.compliance.StructParameterType", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 2421 }, "name": "StructParameterType", + "namespace": "compliance", "properties": [ { "abstract": true, @@ -10455,13 +9720,13 @@ } ] }, - "jsii-calc.StructPassing": { + "jsii-calc.compliance.StructPassing": { "assembly": "jsii-calc", "docs": { "stability": "external", "summary": "Just because we can." }, - "fqn": "jsii-calc.StructPassing", + "fqn": "jsii-calc.compliance.StructPassing", "initializer": {}, "kind": "class", "locationInModule": { @@ -10488,7 +9753,7 @@ { "name": "inputs", "type": { - "fqn": "jsii-calc.TopLevelStruct" + "fqn": "jsii-calc.compliance.TopLevelStruct" }, "variadic": true } @@ -10520,26 +9785,27 @@ { "name": "input", "type": { - "fqn": "jsii-calc.TopLevelStruct" + "fqn": "jsii-calc.compliance.TopLevelStruct" } } ], "returns": { "type": { - "fqn": "jsii-calc.TopLevelStruct" + "fqn": "jsii-calc.compliance.TopLevelStruct" } }, "static": true } ], - "name": "StructPassing" + "name": "StructPassing", + "namespace": "compliance" }, - "jsii-calc.StructUnionConsumer": { + "jsii-calc.compliance.StructUnionConsumer": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.StructUnionConsumer", + "fqn": "jsii-calc.compliance.StructUnionConsumer", "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", @@ -10562,10 +9828,10 @@ "union": { "types": [ { - "fqn": "jsii-calc.StructA" + "fqn": "jsii-calc.compliance.StructA" }, { - "fqn": "jsii-calc.StructB" + "fqn": "jsii-calc.compliance.StructB" } ] } @@ -10595,10 +9861,10 @@ "union": { "types": [ { - "fqn": "jsii-calc.StructA" + "fqn": "jsii-calc.compliance.StructA" }, { - "fqn": "jsii-calc.StructB" + "fqn": "jsii-calc.compliance.StructB" } ] } @@ -10613,21 +9879,23 @@ "static": true } ], - "name": "StructUnionConsumer" + "name": "StructUnionConsumer", + "namespace": "compliance" }, - "jsii-calc.StructWithJavaReservedWords": { + "jsii-calc.compliance.StructWithJavaReservedWords": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.StructWithJavaReservedWords", + "fqn": "jsii-calc.compliance.StructWithJavaReservedWords", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 1827 }, "name": "StructWithJavaReservedWords", + "namespace": "compliance", "properties": [ { "abstract": true, @@ -10694,71 +9962,13 @@ } ] }, - "jsii-calc.Sum": { - "assembly": "jsii-calc", - "base": "jsii-calc.composition.CompositeOperation", - "docs": { - "stability": "experimental", - "summary": "An operation that sums multiple values." - }, - "fqn": "jsii-calc.Sum", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 186 - }, - "name": "Sum", - "properties": [ - { - "docs": { - "remarks": "Must be implemented by derived classes.", - "stability": "experimental", - "summary": "The expression that this operation consists of." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 199 - }, - "name": "expression", - "overrides": "jsii-calc.composition.CompositeOperation", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - }, - { - "docs": { - "stability": "experimental", - "summary": "The parts to sum." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 191 - }, - "name": "parts", - "type": { - "collection": { - "elementtype": { - "fqn": "@scope/jsii-calc-lib.Value" - }, - "kind": "array" - } - } - } - ] - }, - "jsii-calc.SupportsNiceJavaBuilder": { + "jsii-calc.compliance.SupportsNiceJavaBuilder": { "assembly": "jsii-calc", - "base": "jsii-calc.SupportsNiceJavaBuilderWithRequiredProps", + "base": "jsii-calc.compliance.SupportsNiceJavaBuilderWithRequiredProps", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.SupportsNiceJavaBuilder", + "fqn": "jsii-calc.compliance.SupportsNiceJavaBuilder", "initializer": { "docs": { "stability": "experimental" @@ -10790,7 +10000,7 @@ "name": "props", "optional": true, "type": { - "fqn": "jsii-calc.SupportsNiceJavaBuilderProps" + "fqn": "jsii-calc.compliance.SupportsNiceJavaBuilderProps" } }, { @@ -10812,6 +10022,7 @@ "line": 1940 }, "name": "SupportsNiceJavaBuilder", + "namespace": "compliance", "properties": [ { "docs": { @@ -10824,7 +10035,7 @@ "line": 1950 }, "name": "id", - "overrides": "jsii-calc.SupportsNiceJavaBuilderWithRequiredProps", + "overrides": "jsii-calc.compliance.SupportsNiceJavaBuilderWithRequiredProps", "type": { "primitive": "number" } @@ -10850,19 +10061,20 @@ } ] }, - "jsii-calc.SupportsNiceJavaBuilderProps": { + "jsii-calc.compliance.SupportsNiceJavaBuilderProps": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.SupportsNiceJavaBuilderProps", + "fqn": "jsii-calc.compliance.SupportsNiceJavaBuilderProps", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 1955 }, "name": "SupportsNiceJavaBuilderProps", + "namespace": "compliance", "properties": [ { "abstract": true, @@ -10900,13 +10112,13 @@ } ] }, - "jsii-calc.SupportsNiceJavaBuilderWithRequiredProps": { + "jsii-calc.compliance.SupportsNiceJavaBuilderWithRequiredProps": { "assembly": "jsii-calc", "docs": { "stability": "experimental", "summary": "We can generate fancy builders in Java for classes which take a mix of positional & struct parameters." }, - "fqn": "jsii-calc.SupportsNiceJavaBuilderWithRequiredProps", + "fqn": "jsii-calc.compliance.SupportsNiceJavaBuilderWithRequiredProps", "initializer": { "docs": { "stability": "experimental" @@ -10927,7 +10139,7 @@ }, "name": "props", "type": { - "fqn": "jsii-calc.SupportsNiceJavaBuilderProps" + "fqn": "jsii-calc.compliance.SupportsNiceJavaBuilderProps" } } ] @@ -10938,6 +10150,7 @@ "line": 1927 }, "name": "SupportsNiceJavaBuilderWithRequiredProps", + "namespace": "compliance", "properties": [ { "docs": { @@ -10985,12 +10198,12 @@ } ] }, - "jsii-calc.SyncVirtualMethods": { + "jsii-calc.compliance.SyncVirtualMethods": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.SyncVirtualMethods", + "fqn": "jsii-calc.compliance.SyncVirtualMethods", "initializer": {}, "kind": "class", "locationInModule": { @@ -11168,6 +10381,7 @@ } ], "name": "SyncVirtualMethods", + "namespace": "compliance", "properties": [ { "docs": { @@ -11237,243 +10451,1237 @@ }, { "docs": { - "stability": "experimental" + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 411 + }, + "name": "valueOfOtherProperty", + "type": { + "primitive": "string" + } + } + ] + }, + "jsii-calc.compliance.Thrower": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.Thrower", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 643 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 644 + }, + "name": "throwError" + } + ], + "name": "Thrower", + "namespace": "compliance" + }, + "jsii-calc.compliance.TopLevelStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.TopLevelStruct", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1782 + }, + "name": "TopLevelStruct", + "namespace": "compliance", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental", + "summary": "This is a required field." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1786 + }, + "name": "required", + "type": { + "primitive": "string" + } + }, + { + "abstract": true, + "docs": { + "stability": "experimental", + "summary": "A union to really stress test our serialization." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1796 + }, + "name": "secondLevel", + "type": { + "union": { + "types": [ + { + "primitive": "number" + }, + { + "fqn": "jsii-calc.compliance.SecondLevelStruct" + } + ] + } + } + }, + { + "abstract": true, + "docs": { + "stability": "experimental", + "summary": "You don't have to pass this." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1791 + }, + "name": "optional", + "optional": true, + "type": { + "primitive": "string" + } + } + ] + }, + "jsii-calc.compliance.UnionProperties": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.UnionProperties", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 963 + }, + "name": "UnionProperties", + "namespace": "compliance", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 965 + }, + "name": "bar", + "type": { + "union": { + "types": [ + { + "primitive": "string" + }, + { + "primitive": "number" + }, + { + "fqn": "jsii-calc.compliance.AllTypes" + } + ] + } + } + }, + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 964 + }, + "name": "foo", + "optional": true, + "type": { + "union": { + "types": [ + { + "primitive": "string" + }, + { + "primitive": "number" + } + ] + } + } + } + ] + }, + "jsii-calc.compliance.UseBundledDependency": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.UseBundledDependency", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 968 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 969 + }, + "name": "value", + "returns": { + "type": { + "primitive": "any" + } + } + } + ], + "name": "UseBundledDependency", + "namespace": "compliance" + }, + "jsii-calc.compliance.UseCalcBase": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Depend on a type from jsii-calc-base as a test for awslabs/jsii#128." + }, + "fqn": "jsii-calc.compliance.UseCalcBase", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1017 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1018 + }, + "name": "hello", + "returns": { + "type": { + "fqn": "@scope/jsii-calc-base.Base" + } + } + } + ], + "name": "UseCalcBase", + "namespace": "compliance" + }, + "jsii-calc.compliance.UsesInterfaceWithProperties": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.UsesInterfaceWithProperties", + "initializer": { + "docs": { + "stability": "experimental" + }, + "parameters": [ + { + "name": "obj", + "type": { + "fqn": "jsii-calc.compliance.IInterfaceWithProperties" + } + } + ] + }, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 587 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 592 + }, + "name": "justRead", + "returns": { + "type": { + "primitive": "string" + } + } + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 601 + }, + "name": "readStringAndNumber", + "parameters": [ + { + "name": "ext", + "type": { + "fqn": "jsii-calc.compliance.IInterfaceWithPropertiesExtension" + } + } + ], + "returns": { + "type": { + "primitive": "string" + } + } + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 596 + }, + "name": "writeAndRead", + "parameters": [ + { + "name": "value", + "type": { + "primitive": "string" + } + } + ], + "returns": { + "type": { + "primitive": "string" + } + } + } + ], + "name": "UsesInterfaceWithProperties", + "namespace": "compliance", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 588 + }, + "name": "obj", + "type": { + "fqn": "jsii-calc.compliance.IInterfaceWithProperties" + } + } + ] + }, + "jsii-calc.compliance.VariadicInvoker": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.VariadicInvoker", + "initializer": { + "docs": { + "stability": "experimental" + }, + "parameters": [ + { + "name": "method", + "type": { + "fqn": "jsii-calc.compliance.VariadicMethod" + } + } + ] + }, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 672 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 675 + }, + "name": "asArray", + "parameters": [ + { + "name": "values", + "type": { + "primitive": "number" + }, + "variadic": true + } + ], + "returns": { + "type": { + "collection": { + "elementtype": { + "primitive": "number" + }, + "kind": "array" + } + } + }, + "variadic": true + } + ], + "name": "VariadicInvoker", + "namespace": "compliance" + }, + "jsii-calc.compliance.VariadicMethod": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.VariadicMethod", + "initializer": { + "docs": { + "stability": "experimental" + }, + "parameters": [ + { + "docs": { + "summary": "a prefix that will be use for all values returned by `#asArray`." + }, + "name": "prefix", + "type": { + "primitive": "number" + }, + "variadic": true + } + ], + "variadic": true + }, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 653 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 667 + }, + "name": "asArray", + "parameters": [ + { + "docs": { + "summary": "the first element of the array to be returned (after the `prefix` provided at construction time)." + }, + "name": "first", + "type": { + "primitive": "number" + } + }, + { + "docs": { + "summary": "other elements to be included in the array." + }, + "name": "others", + "type": { + "primitive": "number" + }, + "variadic": true + } + ], + "returns": { + "type": { + "collection": { + "elementtype": { + "primitive": "number" + }, + "kind": "array" + } + } + }, + "variadic": true + } + ], + "name": "VariadicMethod", + "namespace": "compliance" + }, + "jsii-calc.compliance.VirtualMethodPlayground": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.compliance.VirtualMethodPlayground", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 436 + }, + "methods": [ + { + "async": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 464 + }, + "name": "overrideMeAsync", + "parameters": [ + { + "name": "index", + "type": { + "primitive": "number" + } + } + ], + "returns": { + "type": { + "primitive": "number" + } + } + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 468 + }, + "name": "overrideMeSync", + "parameters": [ + { + "name": "index", + "type": { + "primitive": "number" + } + } + ], + "returns": { + "type": { + "primitive": "number" + } + } + }, + { + "async": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 446 + }, + "name": "parallelSumAsync", + "parameters": [ + { + "name": "count", + "type": { + "primitive": "number" + } + } + ], + "returns": { + "type": { + "primitive": "number" + } + } + }, + { + "async": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 437 + }, + "name": "serialSumAsync", + "parameters": [ + { + "name": "count", + "type": { + "primitive": "number" + } + } + ], + "returns": { + "type": { + "primitive": "number" + } + } + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 456 + }, + "name": "sumSync", + "parameters": [ + { + "name": "count", + "type": { + "primitive": "number" + } + } + ], + "returns": { + "type": { + "primitive": "number" + } + } + } + ], + "name": "VirtualMethodPlayground", + "namespace": "compliance" + }, + "jsii-calc.compliance.VoidCallback": { + "abstract": true, + "assembly": "jsii-calc", + "docs": { + "remarks": "- Implement `overrideMe` (method does not have to do anything).\n- Invoke `callMe`\n- Verify that `methodWasCalled` is `true`.", + "stability": "experimental", + "summary": "This test is used to validate the runtimes can return correctly from a void callback." + }, + "fqn": "jsii-calc.compliance.VoidCallback", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1706 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1711 + }, + "name": "callMe" + }, + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1715 + }, + "name": "overrideMe", + "protected": true + } + ], + "name": "VoidCallback", + "namespace": "compliance", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1708 + }, + "name": "methodWasCalled", + "type": { + "primitive": "boolean" + } + } + ] + }, + "jsii-calc.compliance.WithPrivatePropertyInConstructor": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Verifies that private property declarations in constructor arguments are hidden." + }, + "fqn": "jsii-calc.compliance.WithPrivatePropertyInConstructor", + "initializer": { + "docs": { + "stability": "experimental" + }, + "parameters": [ + { + "name": "privateField", + "optional": true, + "type": { + "primitive": "string" + } + } + ] + }, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1721 + }, + "name": "WithPrivatePropertyInConstructor", + "namespace": "compliance", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1724 + }, + "name": "success", + "type": { + "primitive": "boolean" + } + } + ] + }, + "jsii-calc.composition.CompositeOperation": { + "abstract": true, + "assembly": "jsii-calc", + "base": "@scope/jsii-calc-lib.Operation", + "docs": { + "stability": "experimental", + "summary": "Abstract operation composed from an expression of other operations." + }, + "fqn": "jsii-calc.composition.CompositeOperation", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 131 + }, + "methods": [ + { + "docs": { + "stability": "experimental", + "summary": "String representation of the value." + }, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 157 + }, + "name": "toString", + "overrides": "@scope/jsii-calc-lib.Operation", + "returns": { + "type": { + "primitive": "string" + } + } + } + ], + "name": "CompositeOperation", + "namespace": "composition", + "properties": [ + { + "abstract": true, + "docs": { + "remarks": "Must be implemented by derived classes.", + "stability": "experimental", + "summary": "The expression that this operation consists of." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 155 + }, + "name": "expression", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" + } + }, + { + "docs": { + "stability": "experimental", + "summary": "The value." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 147 + }, + "name": "value", + "overrides": "@scope/jsii-calc-lib.Value", + "type": { + "primitive": "number" + } + }, + { + "docs": { + "stability": "experimental", + "summary": "A set of postfixes to include in a decorated .toString()." + }, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 145 + }, + "name": "decorationPostfixes", + "type": { + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "array" + } + } + }, + { + "docs": { + "stability": "experimental", + "summary": "A set of prefixes to include in a decorated .toString()." + }, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 140 + }, + "name": "decorationPrefixes", + "type": { + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "array" + } + } + }, + { + "docs": { + "stability": "experimental", + "summary": "The .toString() style." + }, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 135 + }, + "name": "stringStyle", + "type": { + "fqn": "jsii-calc.composition.CompositeOperation.CompositionStringStyle" + } + } + ] + }, + "jsii-calc.composition.CompositeOperation.CompositionStringStyle": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Style of .toString() output for CompositeOperation." + }, + "fqn": "jsii-calc.composition.CompositeOperation.CompositionStringStyle", + "kind": "enum", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 173 + }, + "members": [ + { + "docs": { + "stability": "experimental", + "summary": "Normal string expression." + }, + "name": "NORMAL" + }, + { + "docs": { + "stability": "experimental", + "summary": "Decorated string expression." + }, + "name": "DECORATED" + } + ], + "name": "CompositionStringStyle", + "namespace": "composition.CompositeOperation" + }, + "jsii-calc.documented.DocumentedClass": { + "assembly": "jsii-calc", + "docs": { + "remarks": "This is the meat of the TSDoc comment. It may contain\nmultiple lines and multiple paragraphs.\n\nMultiple paragraphs are separated by an empty line.", + "stability": "stable", + "summary": "Here's the first line of the TSDoc comment." + }, + "fqn": "jsii-calc.documented.DocumentedClass", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/documented.ts", + "line": 11 + }, + "methods": [ + { + "docs": { + "remarks": "This will print out a friendly greeting intended for\nthe indicated person.", + "returns": "A number that everyone knows very well", + "stability": "stable", + "summary": "Greet the indicated person." + }, + "locationInModule": { + "filename": "lib/documented.ts", + "line": 22 + }, + "name": "greet", + "parameters": [ + { + "docs": { + "summary": "The person to be greeted." + }, + "name": "greetee", + "optional": true, + "type": { + "fqn": "jsii-calc.documented.Greetee" + } + } + ], + "returns": { + "type": { + "primitive": "number" + } + } + }, + { + "docs": { + "stability": "experimental", + "summary": "Say ¡Hola!" + }, + "locationInModule": { + "filename": "lib/documented.ts", + "line": 32 + }, + "name": "hola" + } + ], + "name": "DocumentedClass", + "namespace": "documented" + }, + "jsii-calc.documented.Greetee": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental", + "summary": "These are some arguments you can pass to a method." + }, + "fqn": "jsii-calc.documented.Greetee", + "kind": "interface", + "locationInModule": { + "filename": "lib/documented.ts", + "line": 40 + }, + "name": "Greetee", + "namespace": "documented", + "properties": [ + { + "abstract": true, + "docs": { + "default": "world", + "stability": "experimental", + "summary": "The name of the greetee." }, + "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 411 + "filename": "lib/documented.ts", + "line": 46 }, - "name": "valueOfOtherProperty", + "name": "name", + "optional": true, "type": { "primitive": "string" } } ] }, - "jsii-calc.Thrower": { + "jsii-calc.documented.Old": { "assembly": "jsii-calc", "docs": { - "stability": "experimental" + "deprecated": "Use the new class", + "stability": "deprecated", + "summary": "Old class." }, - "fqn": "jsii-calc.Thrower", + "fqn": "jsii-calc.documented.Old", "initializer": {}, "kind": "class", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 643 + "filename": "lib/documented.ts", + "line": 54 }, "methods": [ { "docs": { - "stability": "experimental" + "stability": "deprecated", + "summary": "Doo wop that thing." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 644 + "filename": "lib/documented.ts", + "line": 58 }, - "name": "throwError" + "name": "doAThing" } ], - "name": "Thrower" + "name": "Old", + "namespace": "documented" }, - "jsii-calc.TopLevelStruct": { + "jsii-calc.erasureTests.IJSII417Derived": { "assembly": "jsii-calc", - "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.TopLevelStruct", + "fqn": "jsii-calc.erasureTests.IJSII417Derived", + "interfaces": [ + "jsii-calc.erasureTests.IJSII417PublicBaseOfBase" + ], "kind": "interface", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1782 + "filename": "lib/erasures.ts", + "line": 37 }, - "name": "TopLevelStruct", - "properties": [ + "methods": [ { "abstract": true, "docs": { - "stability": "experimental", - "summary": "This is a required field." + "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1786 + "filename": "lib/erasures.ts", + "line": 35 }, - "name": "required", - "type": { - "primitive": "string" - } + "name": "bar" }, { "abstract": true, "docs": { - "stability": "experimental", - "summary": "A union to really stress test our serialization." + "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1796 + "filename": "lib/erasures.ts", + "line": 38 }, - "name": "secondLevel", - "type": { - "union": { - "types": [ - { - "primitive": "number" - }, - { - "fqn": "jsii-calc.SecondLevelStruct" - } - ] - } - } - }, + "name": "baz" + } + ], + "name": "IJSII417Derived", + "namespace": "erasureTests", + "properties": [ { "abstract": true, "docs": { - "stability": "experimental", - "summary": "You don't have to pass this." + "stability": "experimental" }, "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1791 + "filename": "lib/erasures.ts", + "line": 34 }, - "name": "optional", - "optional": true, + "name": "property", "type": { "primitive": "string" } } ] }, - "jsii-calc.UnaryOperation": { - "abstract": true, + "jsii-calc.erasureTests.IJSII417PublicBaseOfBase": { "assembly": "jsii-calc", - "base": "@scope/jsii-calc-lib.Operation", "docs": { - "stability": "experimental", - "summary": "An operation on a single operand." - }, - "fqn": "jsii-calc.UnaryOperation", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "operand", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - } - ] + "stability": "experimental" }, - "kind": "class", + "fqn": "jsii-calc.erasureTests.IJSII417PublicBaseOfBase", + "kind": "interface", "locationInModule": { - "filename": "lib/calculator.ts", - "line": 93 + "filename": "lib/erasures.ts", + "line": 30 }, - "name": "UnaryOperation", + "methods": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 31 + }, + "name": "foo" + } + ], + "name": "IJSII417PublicBaseOfBase", + "namespace": "erasureTests", "properties": [ { + "abstract": true, "docs": { "stability": "experimental" }, "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 94 + "filename": "lib/erasures.ts", + "line": 28 }, - "name": "operand", + "name": "hasRoot", "type": { - "fqn": "@scope/jsii-calc-lib.Value" + "primitive": "boolean" } } ] }, - "jsii-calc.UnionProperties": { + "jsii-calc.erasureTests.IJsii487External": { "assembly": "jsii-calc", - "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.UnionProperties", + "fqn": "jsii-calc.erasureTests.IJsii487External", "kind": "interface", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 963 + "filename": "lib/erasures.ts", + "line": 45 }, - "name": "UnionProperties", - "properties": [ + "name": "IJsii487External", + "namespace": "erasureTests" + }, + "jsii-calc.erasureTests.IJsii487External2": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.erasureTests.IJsii487External2", + "kind": "interface", + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 46 + }, + "name": "IJsii487External2", + "namespace": "erasureTests" + }, + "jsii-calc.erasureTests.IJsii496": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.erasureTests.IJsii496", + "kind": "interface", + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 54 + }, + "name": "IJsii496", + "namespace": "erasureTests" + }, + "jsii-calc.erasureTests.JSII417Derived": { + "assembly": "jsii-calc", + "base": "jsii-calc.erasureTests.JSII417PublicBaseOfBase", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.erasureTests.JSII417Derived", + "initializer": { + "docs": { + "stability": "experimental" + }, + "parameters": [ + { + "name": "property", + "type": { + "primitive": "string" + } + } + ] + }, + "kind": "class", + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 20 + }, + "methods": [ { - "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 965 + "filename": "lib/erasures.ts", + "line": 21 }, - "name": "bar", - "type": { - "union": { - "types": [ - { - "primitive": "string" - }, - { - "primitive": "number" - }, - { - "fqn": "jsii-calc.AllTypes" - } - ] - } - } + "name": "bar" }, { - "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 964 + "filename": "lib/erasures.ts", + "line": 24 }, - "name": "foo", - "optional": true, - "type": { - "union": { - "types": [ - { - "primitive": "string" - }, - { - "primitive": "number" - } - ] - } + "name": "baz" + } + ], + "name": "JSII417Derived", + "namespace": "erasureTests", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 15 + }, + "name": "property", + "protected": true, + "type": { + "primitive": "string" } } ] }, - "jsii-calc.UseBundledDependency": { + "jsii-calc.erasureTests.JSII417PublicBaseOfBase": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.UseBundledDependency", + "fqn": "jsii-calc.erasureTests.JSII417PublicBaseOfBase", "initializer": {}, "kind": "class", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 968 + "filename": "lib/erasures.ts", + "line": 8 }, "methods": [ { @@ -11481,242 +11689,260 @@ "stability": "experimental" }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 969 + "filename": "lib/erasures.ts", + "line": 9 }, - "name": "value", + "name": "makeInstance", "returns": { "type": { - "primitive": "any" + "fqn": "jsii-calc.erasureTests.JSII417PublicBaseOfBase" } - } + }, + "static": true + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 12 + }, + "name": "foo" } ], - "name": "UseBundledDependency" - }, - "jsii-calc.UseCalcBase": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Depend on a type from jsii-calc-base as a test for awslabs/jsii#128." - }, - "fqn": "jsii-calc.UseCalcBase", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1017 - }, - "methods": [ + "name": "JSII417PublicBaseOfBase", + "namespace": "erasureTests", + "properties": [ { "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1018 + "filename": "lib/erasures.ts", + "line": 6 }, - "name": "hello", - "returns": { - "type": { - "fqn": "@scope/jsii-calc-base.Base" - } + "name": "hasRoot", + "type": { + "primitive": "boolean" } } + ] + }, + "jsii-calc.erasureTests.Jsii487Derived": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.erasureTests.Jsii487Derived", + "initializer": {}, + "interfaces": [ + "jsii-calc.erasureTests.IJsii487External2", + "jsii-calc.erasureTests.IJsii487External" ], - "name": "UseCalcBase" + "kind": "class", + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 48 + }, + "name": "Jsii487Derived", + "namespace": "erasureTests" }, - "jsii-calc.UsesInterfaceWithProperties": { + "jsii-calc.erasureTests.Jsii496Derived": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.UsesInterfaceWithProperties", + "fqn": "jsii-calc.erasureTests.Jsii496Derived", + "initializer": {}, + "interfaces": [ + "jsii-calc.erasureTests.IJsii496" + ], + "kind": "class", + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 56 + }, + "name": "Jsii496Derived", + "namespace": "erasureTests" + }, + "jsii-calc.stability_annotations.DeprecatedClass": { + "assembly": "jsii-calc", + "docs": { + "deprecated": "a pretty boring class", + "stability": "deprecated" + }, + "fqn": "jsii-calc.stability_annotations.DeprecatedClass", "initializer": { "docs": { - "stability": "experimental" + "deprecated": "this constructor is \"just\" okay", + "stability": "deprecated" }, "parameters": [ { - "name": "obj", + "name": "readonlyString", + "type": { + "primitive": "string" + } + }, + { + "name": "mutableNumber", + "optional": true, "type": { - "fqn": "jsii-calc.IInterfaceWithProperties" + "primitive": "number" } } ] }, "kind": "class", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 587 + "filename": "lib/stability.ts", + "line": 85 }, "methods": [ { "docs": { - "stability": "experimental" + "deprecated": "it was a bad idea", + "stability": "deprecated" }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 592 + "filename": "lib/stability.ts", + "line": 96 }, - "name": "justRead", - "returns": { - "type": { - "primitive": "string" - } - } - }, + "name": "method" + } + ], + "name": "DeprecatedClass", + "namespace": "stability_annotations", + "properties": [ { "docs": { - "stability": "experimental" + "deprecated": "this is not always \"wazoo\", be ready to be disappointed", + "stability": "deprecated" }, + "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 601 + "filename": "lib/stability.ts", + "line": 87 }, - "name": "readStringAndNumber", - "parameters": [ - { - "name": "ext", - "type": { - "fqn": "jsii-calc.IInterfaceWithPropertiesExtension" - } - } - ], - "returns": { - "type": { - "primitive": "string" - } + "name": "readonlyProperty", + "type": { + "primitive": "string" } }, { "docs": { - "stability": "experimental" + "deprecated": "shouldn't have been mutable", + "stability": "deprecated" }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 596 + "filename": "lib/stability.ts", + "line": 89 }, - "name": "writeAndRead", - "parameters": [ - { - "name": "value", - "type": { - "primitive": "string" - } - } - ], - "returns": { - "type": { - "primitive": "string" - } + "name": "mutableProperty", + "optional": true, + "type": { + "primitive": "number" } } - ], - "name": "UsesInterfaceWithProperties", - "properties": [ + ] + }, + "jsii-calc.stability_annotations.DeprecatedEnum": { + "assembly": "jsii-calc", + "docs": { + "deprecated": "your deprecated selection of bad options", + "stability": "deprecated" + }, + "fqn": "jsii-calc.stability_annotations.DeprecatedEnum", + "kind": "enum", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 99 + }, + "members": [ { "docs": { - "stability": "experimental" + "deprecated": "option A is not great", + "stability": "deprecated" }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 588 + "name": "OPTION_A" + }, + { + "docs": { + "deprecated": "option B is kinda bad, too", + "stability": "deprecated" }, - "name": "obj", - "type": { - "fqn": "jsii-calc.IInterfaceWithProperties" - } + "name": "OPTION_B" } - ] + ], + "name": "DeprecatedEnum", + "namespace": "stability_annotations" }, - "jsii-calc.VariadicInvoker": { + "jsii-calc.stability_annotations.DeprecatedStruct": { "assembly": "jsii-calc", + "datatype": true, "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.VariadicInvoker", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "method", - "type": { - "fqn": "jsii-calc.VariadicMethod" - } - } - ] + "deprecated": "it just wraps a string", + "stability": "deprecated" }, - "kind": "class", + "fqn": "jsii-calc.stability_annotations.DeprecatedStruct", + "kind": "interface", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 672 + "filename": "lib/stability.ts", + "line": 73 }, - "methods": [ + "name": "DeprecatedStruct", + "namespace": "stability_annotations", + "properties": [ { + "abstract": true, "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 675 + "deprecated": "well, yeah", + "stability": "deprecated" }, - "name": "asArray", - "parameters": [ - { - "name": "values", - "type": { - "primitive": "number" - }, - "variadic": true - } - ], - "returns": { - "type": { - "collection": { - "elementtype": { - "primitive": "number" - }, - "kind": "array" - } - } + "immutable": true, + "locationInModule": { + "filename": "lib/stability.ts", + "line": 75 }, - "variadic": true + "name": "readonlyProperty", + "type": { + "primitive": "string" + } } - ], - "name": "VariadicInvoker" + ] }, - "jsii-calc.VariadicMethod": { + "jsii-calc.stability_annotations.ExperimentalClass": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.VariadicMethod", + "fqn": "jsii-calc.stability_annotations.ExperimentalClass", "initializer": { "docs": { "stability": "experimental" }, "parameters": [ { - "docs": { - "summary": "a prefix that will be use for all values returned by `#asArray`." - }, - "name": "prefix", + "name": "readonlyString", + "type": { + "primitive": "string" + } + }, + { + "name": "mutableNumber", + "optional": true, "type": { "primitive": "number" - }, - "variadic": true + } } - ], - "variadic": true + ] }, "kind": "class", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 653 + "filename": "lib/stability.ts", + "line": 16 }, "methods": [ { @@ -11724,81 +11950,27 @@ "stability": "experimental" }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 667 - }, - "name": "asArray", - "parameters": [ - { - "docs": { - "summary": "the first element of the array to be returned (after the `prefix` provided at construction time)." - }, - "name": "first", - "type": { - "primitive": "number" - } - }, - { - "docs": { - "summary": "other elements to be included in the array." - }, - "name": "others", - "type": { - "primitive": "number" - }, - "variadic": true - } - ], - "returns": { - "type": { - "collection": { - "elementtype": { - "primitive": "number" - }, - "kind": "array" - } - } + "filename": "lib/stability.ts", + "line": 28 }, - "variadic": true + "name": "method" } ], - "name": "VariadicMethod" - }, - "jsii-calc.VirtualMethodPlayground": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.VirtualMethodPlayground", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 436 - }, - "methods": [ + "name": "ExperimentalClass", + "namespace": "stability_annotations", + "properties": [ { - "async": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 464 + "filename": "lib/stability.ts", + "line": 18 }, - "name": "overrideMeAsync", - "parameters": [ - { - "name": "index", - "type": { - "primitive": "number" - } - } - ], - "returns": { - "type": { - "primitive": "number" - } + "name": "readonlyProperty", + "type": { + "primitive": "string" } }, { @@ -11806,355 +11978,349 @@ "stability": "experimental" }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 468 + "filename": "lib/stability.ts", + "line": 20 }, - "name": "overrideMeSync", - "parameters": [ - { - "name": "index", - "type": { - "primitive": "number" - } - } - ], - "returns": { - "type": { - "primitive": "number" - } + "name": "mutableProperty", + "optional": true, + "type": { + "primitive": "number" } - }, + } + ] + }, + "jsii-calc.stability_annotations.ExperimentalEnum": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.stability_annotations.ExperimentalEnum", + "kind": "enum", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 31 + }, + "members": [ { - "async": true, "docs": { "stability": "experimental" }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 446 - }, - "name": "parallelSumAsync", - "parameters": [ - { - "name": "count", - "type": { - "primitive": "number" - } - } - ], - "returns": { - "type": { - "primitive": "number" - } - } + "name": "OPTION_A" }, { - "async": true, "docs": { "stability": "experimental" }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 437 - }, - "name": "serialSumAsync", - "parameters": [ - { - "name": "count", - "type": { - "primitive": "number" - } - } - ], - "returns": { - "type": { - "primitive": "number" - } - } - }, + "name": "OPTION_B" + } + ], + "name": "ExperimentalEnum", + "namespace": "stability_annotations" + }, + "jsii-calc.stability_annotations.ExperimentalStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.stability_annotations.ExperimentalStruct", + "kind": "interface", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 4 + }, + "name": "ExperimentalStruct", + "namespace": "stability_annotations", + "properties": [ { + "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 456 + "filename": "lib/stability.ts", + "line": 6 }, - "name": "sumSync", - "parameters": [ - { - "name": "count", - "type": { - "primitive": "number" - } - } - ], - "returns": { - "type": { - "primitive": "number" - } + "name": "readonlyProperty", + "type": { + "primitive": "string" } } - ], - "name": "VirtualMethodPlayground" + ] }, - "jsii-calc.VoidCallback": { - "abstract": true, + "jsii-calc.stability_annotations.IDeprecatedInterface": { "assembly": "jsii-calc", "docs": { - "remarks": "- Implement `overrideMe` (method does not have to do anything).\n- Invoke `callMe`\n- Verify that `methodWasCalled` is `true`.", - "stability": "experimental", - "summary": "This test is used to validate the runtimes can return correctly from a void callback." + "deprecated": "useless interface", + "stability": "deprecated" }, - "fqn": "jsii-calc.VoidCallback", - "initializer": {}, - "kind": "class", + "fqn": "jsii-calc.stability_annotations.IDeprecatedInterface", + "kind": "interface", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1706 + "filename": "lib/stability.ts", + "line": 78 }, "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1711 - }, - "name": "callMe" - }, { "abstract": true, "docs": { - "stability": "experimental" + "deprecated": "services no purpose", + "stability": "deprecated" }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1715 + "filename": "lib/stability.ts", + "line": 82 }, - "name": "overrideMe", - "protected": true + "name": "method" } ], - "name": "VoidCallback", + "name": "IDeprecatedInterface", + "namespace": "stability_annotations", "properties": [ { + "abstract": true, "docs": { - "stability": "experimental" + "deprecated": "could be better", + "stability": "deprecated" }, - "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1708 + "filename": "lib/stability.ts", + "line": 80 }, - "name": "methodWasCalled", + "name": "mutableProperty", + "optional": true, "type": { - "primitive": "boolean" + "primitive": "number" } } ] }, - "jsii-calc.WithPrivatePropertyInConstructor": { + "jsii-calc.stability_annotations.IExperimentalInterface": { "assembly": "jsii-calc", "docs": { - "stability": "experimental", - "summary": "Verifies that private property declarations in constructor arguments are hidden." - }, - "fqn": "jsii-calc.WithPrivatePropertyInConstructor", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "privateField", - "optional": true, - "type": { - "primitive": "string" - } - } - ] + "stability": "experimental" }, - "kind": "class", + "fqn": "jsii-calc.stability_annotations.IExperimentalInterface", + "kind": "interface", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1721 + "filename": "lib/stability.ts", + "line": 9 }, - "name": "WithPrivatePropertyInConstructor", + "methods": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/stability.ts", + "line": 13 + }, + "name": "method" + } + ], + "name": "IExperimentalInterface", + "namespace": "stability_annotations", "properties": [ { + "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1724 + "filename": "lib/stability.ts", + "line": 11 }, - "name": "success", + "name": "mutableProperty", + "optional": true, "type": { - "primitive": "boolean" + "primitive": "number" } } ] }, - "jsii-calc.composition.CompositeOperation": { - "abstract": true, + "jsii-calc.stability_annotations.IStableInterface": { "assembly": "jsii-calc", - "base": "@scope/jsii-calc-lib.Operation", "docs": { - "stability": "experimental", - "summary": "Abstract operation composed from an expression of other operations." + "stability": "stable" }, - "fqn": "jsii-calc.composition.CompositeOperation", - "initializer": {}, - "kind": "class", + "fqn": "jsii-calc.stability_annotations.IStableInterface", + "kind": "interface", "locationInModule": { - "filename": "lib/calculator.ts", - "line": 131 + "filename": "lib/stability.ts", + "line": 44 }, "methods": [ { + "abstract": true, "docs": { - "stability": "experimental", - "summary": "String representation of the value." + "stability": "stable" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 157 + "filename": "lib/stability.ts", + "line": 48 }, - "name": "toString", - "overrides": "@scope/jsii-calc-lib.Operation", - "returns": { - "type": { - "primitive": "string" - } - } + "name": "method" } ], - "name": "CompositeOperation", - "namespace": "composition", + "name": "IStableInterface", + "namespace": "stability_annotations", "properties": [ { "abstract": true, "docs": { - "remarks": "Must be implemented by derived classes.", - "stability": "experimental", - "summary": "The expression that this operation consists of." + "stability": "stable" }, - "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 155 + "filename": "lib/stability.ts", + "line": 46 }, - "name": "expression", + "name": "mutableProperty", + "optional": true, "type": { - "fqn": "@scope/jsii-calc-lib.Value" + "primitive": "number" } + } + ] + }, + "jsii-calc.stability_annotations.StableClass": { + "assembly": "jsii-calc", + "docs": { + "stability": "stable" + }, + "fqn": "jsii-calc.stability_annotations.StableClass", + "initializer": { + "docs": { + "stability": "stable" }, - { - "docs": { - "stability": "experimental", - "summary": "The value." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 147 + "parameters": [ + { + "name": "readonlyString", + "type": { + "primitive": "string" + } }, - "name": "value", - "overrides": "@scope/jsii-calc-lib.Value", - "type": { - "primitive": "number" + { + "name": "mutableNumber", + "optional": true, + "type": { + "primitive": "number" + } } - }, + ] + }, + "kind": "class", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 51 + }, + "methods": [ { "docs": { - "stability": "experimental", - "summary": "A set of postfixes to include in a decorated .toString()." + "stability": "stable" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 145 + "filename": "lib/stability.ts", + "line": 62 }, - "name": "decorationPostfixes", - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" - } - } - }, + "name": "method" + } + ], + "name": "StableClass", + "namespace": "stability_annotations", + "properties": [ { "docs": { - "stability": "experimental", - "summary": "A set of prefixes to include in a decorated .toString()." + "stability": "stable" }, + "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 140 + "filename": "lib/stability.ts", + "line": 53 }, - "name": "decorationPrefixes", + "name": "readonlyProperty", "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" - } + "primitive": "string" } }, { "docs": { - "stability": "experimental", - "summary": "The .toString() style." + "stability": "stable" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 135 + "filename": "lib/stability.ts", + "line": 55 }, - "name": "stringStyle", + "name": "mutableProperty", + "optional": true, "type": { - "fqn": "jsii-calc.composition.CompositeOperation.CompositionStringStyle" + "primitive": "number" } } ] }, - "jsii-calc.composition.CompositeOperation.CompositionStringStyle": { + "jsii-calc.stability_annotations.StableEnum": { "assembly": "jsii-calc", "docs": { - "stability": "experimental", - "summary": "Style of .toString() output for CompositeOperation." + "stability": "stable" }, - "fqn": "jsii-calc.composition.CompositeOperation.CompositionStringStyle", + "fqn": "jsii-calc.stability_annotations.StableEnum", "kind": "enum", "locationInModule": { - "filename": "lib/calculator.ts", - "line": 173 + "filename": "lib/stability.ts", + "line": 65 }, "members": [ { "docs": { - "stability": "experimental", - "summary": "Normal string expression." + "stability": "stable" }, - "name": "NORMAL" + "name": "OPTION_A" }, { "docs": { - "stability": "experimental", - "summary": "Decorated string expression." + "stability": "stable" }, - "name": "DECORATED" + "name": "OPTION_B" } ], - "name": "CompositionStringStyle", - "namespace": "composition.CompositeOperation" + "name": "StableEnum", + "namespace": "stability_annotations" + }, + "jsii-calc.stability_annotations.StableStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "stable" + }, + "fqn": "jsii-calc.stability_annotations.StableStruct", + "kind": "interface", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 39 + }, + "name": "StableStruct", + "namespace": "stability_annotations", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "stable" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/stability.ts", + "line": 41 + }, + "name": "readonlyProperty", + "type": { + "primitive": "string" + } + } + ] } }, "version": "1.0.0", - "fingerprint": "oTbIPjVGH+NSJCWHMqRYC7fJ3XjjZSr8TvvRkANEonA=" + "fingerprint": "kepnNoJ/U8mTCcljWb5mr15NvRzj2ILa+rYVyr8fFgY=" } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Calculator.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Calculator.cs index 448c28e32f..806c1e9cd3 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Calculator.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Calculator.cs @@ -28,7 +28,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Console.WriteLine(calculator.Expression.Value); /// [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Calculator), fullyQualifiedName: "jsii-calc.Calculator", parametersJson: "[{\"docs\":{\"summary\":\"Initialization properties.\"},\"name\":\"props\",\"optional\":true,\"type\":{\"fqn\":\"jsii-calc.CalculatorProps\"}}]")] - public class Calculator : Amazon.JSII.Tests.CalculatorNamespace.composition.CompositeOperation + public class Calculator : Amazon.JSII.Tests.CalculatorNamespace.Composition.CompositeOperation { /// Creates a Calculator object. /// Initialization properties. diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AbstractClass.cs similarity index 88% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClass.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AbstractClass.cs index 674cac8f98..b2fc112964 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClass.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AbstractClass.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractClass), fullyQualifiedName: "jsii-calc.AbstractClass")] - public abstract class AbstractClass : Amazon.JSII.Tests.CalculatorNamespace.AbstractClassBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceImplementedByAbstractClass + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.AbstractClass), fullyQualifiedName: "jsii-calc.compliance.AbstractClass")] + public abstract class AbstractClass : Amazon.JSII.Tests.CalculatorNamespace.Compliance.AbstractClassBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IInterfaceImplementedByAbstractClass { protected AbstractClass(): base(new DeputyProps(new object[]{})) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassBase.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AbstractClassBase.cs similarity index 89% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassBase.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AbstractClassBase.cs index 04bb8920c1..7b0cf3177b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassBase.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AbstractClassBase.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractClassBase), fullyQualifiedName: "jsii-calc.AbstractClassBase")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.AbstractClassBase), fullyQualifiedName: "jsii-calc.compliance.AbstractClassBase")] public abstract class AbstractClassBase : DeputyBase { protected AbstractClassBase(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassBaseProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AbstractClassBaseProxy.cs similarity index 76% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassBaseProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AbstractClassBaseProxy.cs index 12666dca56..4cde73d468 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassBaseProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AbstractClassBaseProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractClassBase), fullyQualifiedName: "jsii-calc.AbstractClassBase")] - internal sealed class AbstractClassBaseProxy : Amazon.JSII.Tests.CalculatorNamespace.AbstractClassBase + [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.AbstractClassBase), fullyQualifiedName: "jsii-calc.compliance.AbstractClassBase")] + internal sealed class AbstractClassBaseProxy : Amazon.JSII.Tests.CalculatorNamespace.Compliance.AbstractClassBase { private AbstractClassBaseProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AbstractClassProxy.cs similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AbstractClassProxy.cs index 16218d84ec..f34419fbbf 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AbstractClassProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractClass), fullyQualifiedName: "jsii-calc.AbstractClass")] - internal sealed class AbstractClassProxy : Amazon.JSII.Tests.CalculatorNamespace.AbstractClass + [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.AbstractClass), fullyQualifiedName: "jsii-calc.compliance.AbstractClass")] + internal sealed class AbstractClassProxy : Amazon.JSII.Tests.CalculatorNamespace.Compliance.AbstractClass { private AbstractClassProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassReturner.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AbstractClassReturner.cs similarity index 66% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassReturner.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AbstractClassReturner.cs index c6b090cfca..818446cd86 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassReturner.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AbstractClassReturner.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractClassReturner), fullyQualifiedName: "jsii-calc.AbstractClassReturner")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.AbstractClassReturner), fullyQualifiedName: "jsii-calc.compliance.AbstractClassReturner")] public class AbstractClassReturner : DeputyBase { public AbstractClassReturner(): base(new DeputyProps(new object[]{})) @@ -31,28 +31,28 @@ protected AbstractClassReturner(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "giveMeAbstract", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.AbstractClass\"}}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.AbstractClass GiveMeAbstract() + [JsiiMethod(name: "giveMeAbstract", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.AbstractClass\"}}")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.Compliance.AbstractClass GiveMeAbstract() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } /// /// Stability: Experimental /// - [JsiiMethod(name: "giveMeInterface", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.IInterfaceImplementedByAbstractClass\"}}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.IInterfaceImplementedByAbstractClass GiveMeInterface() + [JsiiMethod(name: "giveMeInterface", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.IInterfaceImplementedByAbstractClass\"}}")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.Compliance.IInterfaceImplementedByAbstractClass GiveMeInterface() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } /// /// Stability: Experimental /// - [JsiiProperty(name: "returnAbstractFromProperty", typeJson: "{\"fqn\":\"jsii-calc.AbstractClassBase\"}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.AbstractClassBase ReturnAbstractFromProperty + [JsiiProperty(name: "returnAbstractFromProperty", typeJson: "{\"fqn\":\"jsii-calc.compliance.AbstractClassBase\"}")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.Compliance.AbstractClassBase ReturnAbstractFromProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty(); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AllTypes.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AllTypes.cs similarity index 91% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AllTypes.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AllTypes.cs index 2c19f2ae0f..b5e04be03c 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AllTypes.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AllTypes.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// This class includes property for all types supported by jsii. /// @@ -11,7 +11,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AllTypes), fullyQualifiedName: "jsii-calc.AllTypes")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.AllTypes), fullyQualifiedName: "jsii-calc.compliance.AllTypes")] public class AllTypes : DeputyBase { public AllTypes(): base(new DeputyProps(new object[]{})) @@ -53,10 +53,10 @@ public virtual object AnyOut() /// /// Stability: Experimental /// - [JsiiMethod(name: "enumMethod", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.StringEnum\"}}", parametersJson: "[{\"name\":\"value\",\"type\":{\"fqn\":\"jsii-calc.StringEnum\"}}]")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.StringEnum EnumMethod(Amazon.JSII.Tests.CalculatorNamespace.StringEnum @value) + [JsiiMethod(name: "enumMethod", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.StringEnum\"}}", parametersJson: "[{\"name\":\"value\",\"type\":{\"fqn\":\"jsii-calc.compliance.StringEnum\"}}]")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.Compliance.StringEnum EnumMethod(Amazon.JSII.Tests.CalculatorNamespace.Compliance.StringEnum @value) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.StringEnum)}, new object[]{@value}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.StringEnum)}, new object[]{@value}); } /// @@ -131,10 +131,10 @@ public virtual System.DateTime DateProperty /// /// Stability: Experimental /// - [JsiiProperty(name: "enumProperty", typeJson: "{\"fqn\":\"jsii-calc.AllTypesEnum\"}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.AllTypesEnum EnumProperty + [JsiiProperty(name: "enumProperty", typeJson: "{\"fqn\":\"jsii-calc.compliance.AllTypesEnum\"}")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.Compliance.AllTypesEnum EnumProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty(); set => SetInstanceProperty(value); } @@ -242,10 +242,10 @@ public virtual object UnknownProperty /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: "optionalEnumValue", typeJson: "{\"fqn\":\"jsii-calc.StringEnum\"}", isOptional: true)] - public virtual Amazon.JSII.Tests.CalculatorNamespace.StringEnum? OptionalEnumValue + [JsiiProperty(name: "optionalEnumValue", typeJson: "{\"fqn\":\"jsii-calc.compliance.StringEnum\"}", isOptional: true)] + public virtual Amazon.JSII.Tests.CalculatorNamespace.Compliance.StringEnum? OptionalEnumValue { - get => GetInstanceProperty(); + get => GetInstanceProperty(); set => SetInstanceProperty(value); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AllTypesEnum.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AllTypesEnum.cs similarity index 88% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AllTypesEnum.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AllTypesEnum.cs index f02269efed..86bd0c345c 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AllTypesEnum.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AllTypesEnum.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiEnum(nativeType: typeof(AllTypesEnum), fullyQualifiedName: "jsii-calc.AllTypesEnum")] + [JsiiEnum(nativeType: typeof(AllTypesEnum), fullyQualifiedName: "jsii-calc.compliance.AllTypesEnum")] public enum AllTypesEnum { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AllowedMethodNames.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AllowedMethodNames.cs similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AllowedMethodNames.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AllowedMethodNames.cs index bc997d179b..265969f88c 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AllowedMethodNames.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AllowedMethodNames.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AllowedMethodNames), fullyQualifiedName: "jsii-calc.AllowedMethodNames")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.AllowedMethodNames), fullyQualifiedName: "jsii-calc.compliance.AllowedMethodNames")] public class AllowedMethodNames : DeputyBase { public AllowedMethodNames(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AmbiguousParameters.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AmbiguousParameters.cs similarity index 67% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AmbiguousParameters.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AmbiguousParameters.cs index 7d8a8b3dee..04ef0a0b59 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AmbiguousParameters.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AmbiguousParameters.cs @@ -2,18 +2,18 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AmbiguousParameters), fullyQualifiedName: "jsii-calc.AmbiguousParameters", parametersJson: "[{\"name\":\"scope\",\"type\":{\"fqn\":\"jsii-calc.Bell\"}},{\"name\":\"props\",\"type\":{\"fqn\":\"jsii-calc.StructParameterType\"}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.AmbiguousParameters), fullyQualifiedName: "jsii-calc.compliance.AmbiguousParameters", parametersJson: "[{\"name\":\"scope\",\"type\":{\"fqn\":\"jsii-calc.compliance.Bell\"}},{\"name\":\"props\",\"type\":{\"fqn\":\"jsii-calc.compliance.StructParameterType\"}}]")] public class AmbiguousParameters : DeputyBase { /// /// Stability: Experimental /// - public AmbiguousParameters(Amazon.JSII.Tests.CalculatorNamespace.Bell scope, Amazon.JSII.Tests.CalculatorNamespace.IStructParameterType props): base(new DeputyProps(new object[]{scope, props})) + public AmbiguousParameters(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Bell scope, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IStructParameterType props): base(new DeputyProps(new object[]{scope, props})) { } @@ -34,19 +34,19 @@ protected AmbiguousParameters(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiProperty(name: "props", typeJson: "{\"fqn\":\"jsii-calc.StructParameterType\"}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.IStructParameterType Props + [JsiiProperty(name: "props", typeJson: "{\"fqn\":\"jsii-calc.compliance.StructParameterType\"}")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.Compliance.IStructParameterType Props { - get => GetInstanceProperty(); + get => GetInstanceProperty(); } /// /// Stability: Experimental /// - [JsiiProperty(name: "scope", typeJson: "{\"fqn\":\"jsii-calc.Bell\"}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.Bell Scope + [JsiiProperty(name: "scope", typeJson: "{\"fqn\":\"jsii-calc.compliance.Bell\"}")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.Compliance.Bell Scope { - get => GetInstanceProperty(); + get => GetInstanceProperty(); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AnonymousImplementationProvider.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AnonymousImplementationProvider.cs similarity index 67% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AnonymousImplementationProvider.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AnonymousImplementationProvider.cs index 30b741eff4..9a5e1e3def 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AnonymousImplementationProvider.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AnonymousImplementationProvider.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AnonymousImplementationProvider), fullyQualifiedName: "jsii-calc.AnonymousImplementationProvider")] - public class AnonymousImplementationProvider : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IAnonymousImplementationProvider + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.AnonymousImplementationProvider), fullyQualifiedName: "jsii-calc.compliance.AnonymousImplementationProvider")] + public class AnonymousImplementationProvider : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IAnonymousImplementationProvider { public AnonymousImplementationProvider(): base(new DeputyProps(new object[]{})) { @@ -31,19 +31,19 @@ protected AnonymousImplementationProvider(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "provideAsClass", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.Implementation\"}}", isOverride: true)] - public virtual Amazon.JSII.Tests.CalculatorNamespace.Implementation ProvideAsClass() + [JsiiMethod(name: "provideAsClass", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.Implementation\"}}", isOverride: true)] + public virtual Amazon.JSII.Tests.CalculatorNamespace.Compliance.Implementation ProvideAsClass() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } /// /// Stability: Experimental /// - [JsiiMethod(name: "provideAsInterface", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.IAnonymouslyImplementMe\"}}", isOverride: true)] - public virtual Amazon.JSII.Tests.CalculatorNamespace.IAnonymouslyImplementMe ProvideAsInterface() + [JsiiMethod(name: "provideAsInterface", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.IAnonymouslyImplementMe\"}}", isOverride: true)] + public virtual Amazon.JSII.Tests.CalculatorNamespace.Compliance.IAnonymouslyImplementMe ProvideAsInterface() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AsyncVirtualMethods.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AsyncVirtualMethods.cs similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AsyncVirtualMethods.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AsyncVirtualMethods.cs index 111842b88f..0a3aa9cce7 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AsyncVirtualMethods.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AsyncVirtualMethods.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AsyncVirtualMethods), fullyQualifiedName: "jsii-calc.AsyncVirtualMethods")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.AsyncVirtualMethods), fullyQualifiedName: "jsii-calc.compliance.AsyncVirtualMethods")] public class AsyncVirtualMethods : DeputyBase { public AsyncVirtualMethods(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AugmentableClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AugmentableClass.cs similarity index 91% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AugmentableClass.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AugmentableClass.cs index 8014391671..f85be3865e 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AugmentableClass.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AugmentableClass.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AugmentableClass), fullyQualifiedName: "jsii-calc.AugmentableClass")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.AugmentableClass), fullyQualifiedName: "jsii-calc.compliance.AugmentableClass")] public class AugmentableClass : DeputyBase { public AugmentableClass(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseJsii976.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/BaseJsii976.cs similarity index 88% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseJsii976.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/BaseJsii976.cs index ddab3c0b59..98814352fd 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseJsii976.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/BaseJsii976.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.BaseJsii976), fullyQualifiedName: "jsii-calc.BaseJsii976")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.BaseJsii976), fullyQualifiedName: "jsii-calc.compliance.BaseJsii976")] public class BaseJsii976 : DeputyBase { public BaseJsii976(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Bell.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Bell.cs similarity index 91% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Bell.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Bell.cs index 1422b6b179..e15214c6bf 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Bell.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Bell.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Bell), fullyQualifiedName: "jsii-calc.Bell")] - public class Bell : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IBell + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Bell), fullyQualifiedName: "jsii-calc.compliance.Bell")] + public class Bell : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IBell { public Bell(): base(new DeputyProps(new object[]{})) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ChildStruct982.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ChildStruct982.cs similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ChildStruct982.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ChildStruct982.cs index 1c27bda562..90354d2e98 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ChildStruct982.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ChildStruct982.cs @@ -2,15 +2,15 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { #pragma warning disable CS8618 /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.ChildStruct982")] - public class ChildStruct982 : Amazon.JSII.Tests.CalculatorNamespace.IChildStruct982 + [JsiiByValue(fqn: "jsii-calc.compliance.ChildStruct982")] + public class ChildStruct982 : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IChildStruct982 { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ChildStruct982Proxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ChildStruct982Proxy.cs similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ChildStruct982Proxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ChildStruct982Proxy.cs index e54993d05a..cd51224e30 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ChildStruct982Proxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ChildStruct982Proxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IChildStruct982), fullyQualifiedName: "jsii-calc.ChildStruct982")] - internal sealed class ChildStruct982Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IChildStruct982 + [JsiiTypeProxy(nativeType: typeof(IChildStruct982), fullyQualifiedName: "jsii-calc.compliance.ChildStruct982")] + internal sealed class ChildStruct982Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IChildStruct982 { private ChildStruct982Proxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassThatImplementsTheInternalInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassThatImplementsTheInternalInterface.cs similarity index 89% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassThatImplementsTheInternalInterface.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassThatImplementsTheInternalInterface.cs index 1e95857ca2..d84b488d04 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassThatImplementsTheInternalInterface.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassThatImplementsTheInternalInterface.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassThatImplementsTheInternalInterface), fullyQualifiedName: "jsii-calc.ClassThatImplementsTheInternalInterface")] - public class ClassThatImplementsTheInternalInterface : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.INonInternalInterface + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ClassThatImplementsTheInternalInterface), fullyQualifiedName: "jsii-calc.compliance.ClassThatImplementsTheInternalInterface")] + public class ClassThatImplementsTheInternalInterface : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.INonInternalInterface { public ClassThatImplementsTheInternalInterface(): base(new DeputyProps(new object[]{})) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassThatImplementsThePrivateInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassThatImplementsThePrivateInterface.cs similarity index 89% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassThatImplementsThePrivateInterface.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassThatImplementsThePrivateInterface.cs index d96eeb2564..c0c98a9142 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassThatImplementsThePrivateInterface.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassThatImplementsThePrivateInterface.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassThatImplementsThePrivateInterface), fullyQualifiedName: "jsii-calc.ClassThatImplementsThePrivateInterface")] - public class ClassThatImplementsThePrivateInterface : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.INonInternalInterface + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ClassThatImplementsThePrivateInterface), fullyQualifiedName: "jsii-calc.compliance.ClassThatImplementsThePrivateInterface")] + public class ClassThatImplementsThePrivateInterface : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.INonInternalInterface { public ClassThatImplementsThePrivateInterface(): base(new DeputyProps(new object[]{})) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithCollections.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassWithCollections.cs similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithCollections.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassWithCollections.cs index 1253a83880..882cc19915 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithCollections.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassWithCollections.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections), fullyQualifiedName: "jsii-calc.ClassWithCollections", parametersJson: "[{\"name\":\"map\",\"type\":{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"map\"}}},{\"name\":\"array\",\"type\":{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"array\"}}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ClassWithCollections), fullyQualifiedName: "jsii-calc.compliance.ClassWithCollections", parametersJson: "[{\"name\":\"map\",\"type\":{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"map\"}}},{\"name\":\"array\",\"type\":{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"array\"}}}]")] public class ClassWithCollections : DeputyBase { /// @@ -37,7 +37,7 @@ protected ClassWithCollections(DeputyProps props): base(props) [JsiiMethod(name: "createAList", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"array\"}}}")] public static string[] CreateAList() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ClassWithCollections), new System.Type[]{}, new object[]{}); } /// @@ -46,7 +46,7 @@ public static string[] CreateAList() [JsiiMethod(name: "createAMap", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"map\"}}}")] public static System.Collections.Generic.IDictionary CreateAMap() { - return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ClassWithCollections), new System.Type[]{}, new object[]{}); } /// @@ -55,8 +55,8 @@ public static System.Collections.Generic.IDictionary CreateAMap( [JsiiProperty(name: "staticArray", typeJson: "{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"array\"}}")] public static string[] StaticArray { - get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections)); - set => SetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections), value); + get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ClassWithCollections)); + set => SetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ClassWithCollections), value); } /// @@ -65,8 +65,8 @@ public static string[] StaticArray [JsiiProperty(name: "staticMap", typeJson: "{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"map\"}}")] public static System.Collections.Generic.IDictionary StaticMap { - get => GetStaticProperty>(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections)); - set => SetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections), value); + get => GetStaticProperty>(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ClassWithCollections)); + set => SetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ClassWithCollections), value); } /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithDocs.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassWithDocs.cs similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithDocs.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassWithDocs.cs index 04b2fc29e1..b519816d65 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithDocs.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassWithDocs.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// This class has docs. /// @@ -20,7 +20,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// { /// } /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithDocs), fullyQualifiedName: "jsii-calc.ClassWithDocs")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ClassWithDocs), fullyQualifiedName: "jsii-calc.compliance.ClassWithDocs")] public class ClassWithDocs : DeputyBase { public ClassWithDocs(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithJavaReservedWords.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassWithJavaReservedWords.cs similarity index 88% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithJavaReservedWords.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassWithJavaReservedWords.cs index 32d8bf514c..858caa0f0b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithJavaReservedWords.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassWithJavaReservedWords.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithJavaReservedWords), fullyQualifiedName: "jsii-calc.ClassWithJavaReservedWords", parametersJson: "[{\"name\":\"int\",\"type\":{\"primitive\":\"string\"}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ClassWithJavaReservedWords), fullyQualifiedName: "jsii-calc.compliance.ClassWithJavaReservedWords", parametersJson: "[{\"name\":\"int\",\"type\":{\"primitive\":\"string\"}}]")] public class ClassWithJavaReservedWords : DeputyBase { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithMutableObjectLiteralProperty.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassWithMutableObjectLiteralProperty.cs similarity index 78% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithMutableObjectLiteralProperty.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassWithMutableObjectLiteralProperty.cs index 75655eff04..5e55391c3a 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithMutableObjectLiteralProperty.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassWithMutableObjectLiteralProperty.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithMutableObjectLiteralProperty), fullyQualifiedName: "jsii-calc.ClassWithMutableObjectLiteralProperty")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ClassWithMutableObjectLiteralProperty), fullyQualifiedName: "jsii-calc.compliance.ClassWithMutableObjectLiteralProperty")] public class ClassWithMutableObjectLiteralProperty : DeputyBase { public ClassWithMutableObjectLiteralProperty(): base(new DeputyProps(new object[]{})) @@ -31,10 +31,10 @@ protected ClassWithMutableObjectLiteralProperty(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiProperty(name: "mutableObject", typeJson: "{\"fqn\":\"jsii-calc.IMutableObjectLiteral\"}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.IMutableObjectLiteral MutableObject + [JsiiProperty(name: "mutableObject", typeJson: "{\"fqn\":\"jsii-calc.compliance.IMutableObjectLiteral\"}")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.Compliance.IMutableObjectLiteral MutableObject { - get => GetInstanceProperty(); + get => GetInstanceProperty(); set => SetInstanceProperty(value); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithPrivateConstructorAndAutomaticProperties.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassWithPrivateConstructorAndAutomaticProperties.cs similarity index 67% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithPrivateConstructorAndAutomaticProperties.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassWithPrivateConstructorAndAutomaticProperties.cs index 09263ba3f4..554d7c7758 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithPrivateConstructorAndAutomaticProperties.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassWithPrivateConstructorAndAutomaticProperties.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// Class that implements interface properties automatically, but using a private constructor. /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithPrivateConstructorAndAutomaticProperties), fullyQualifiedName: "jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties")] - public class ClassWithPrivateConstructorAndAutomaticProperties : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithProperties + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ClassWithPrivateConstructorAndAutomaticProperties), fullyQualifiedName: "jsii-calc.compliance.ClassWithPrivateConstructorAndAutomaticProperties")] + public class ClassWithPrivateConstructorAndAutomaticProperties : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IInterfaceWithProperties { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference /// The Javascript-owned object reference @@ -28,10 +28,10 @@ protected ClassWithPrivateConstructorAndAutomaticProperties(DeputyProps props): /// /// Stability: Experimental /// - [JsiiMethod(name: "create", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties\"}}", parametersJson: "[{\"name\":\"readOnlyString\",\"type\":{\"primitive\":\"string\"}},{\"name\":\"readWriteString\",\"type\":{\"primitive\":\"string\"}}]")] - public static Amazon.JSII.Tests.CalculatorNamespace.ClassWithPrivateConstructorAndAutomaticProperties Create(string readOnlyString, string readWriteString) + [JsiiMethod(name: "create", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.ClassWithPrivateConstructorAndAutomaticProperties\"}}", parametersJson: "[{\"name\":\"readOnlyString\",\"type\":{\"primitive\":\"string\"}},{\"name\":\"readWriteString\",\"type\":{\"primitive\":\"string\"}}]")] + public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.ClassWithPrivateConstructorAndAutomaticProperties Create(string readOnlyString, string readWriteString) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithPrivateConstructorAndAutomaticProperties), new System.Type[]{typeof(string), typeof(string)}, new object[]{readOnlyString, readWriteString}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ClassWithPrivateConstructorAndAutomaticProperties), new System.Type[]{typeof(string), typeof(string)}, new object[]{readOnlyString, readWriteString}); } /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConfusingToJackson.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConfusingToJackson.cs similarity index 67% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConfusingToJackson.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConfusingToJackson.cs index a74b653a5a..94366d0497 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConfusingToJackson.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConfusingToJackson.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// This tries to confuse Jackson by having overloaded property setters. /// @@ -10,7 +10,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// See: https://github.com/aws/aws-cdk/issues/4080 /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ConfusingToJackson), fullyQualifiedName: "jsii-calc.ConfusingToJackson")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ConfusingToJackson), fullyQualifiedName: "jsii-calc.compliance.ConfusingToJackson")] public class ConfusingToJackson : DeputyBase { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference @@ -30,26 +30,26 @@ protected ConfusingToJackson(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "makeInstance", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.ConfusingToJackson\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.ConfusingToJackson MakeInstance() + [JsiiMethod(name: "makeInstance", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.ConfusingToJackson\"}}")] + public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.ConfusingToJackson MakeInstance() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConfusingToJackson), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ConfusingToJackson), new System.Type[]{}, new object[]{}); } /// /// Stability: Experimental /// - [JsiiMethod(name: "makeStructInstance", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.ConfusingToJacksonStruct\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.IConfusingToJacksonStruct MakeStructInstance() + [JsiiMethod(name: "makeStructInstance", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.ConfusingToJacksonStruct\"}}")] + public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.IConfusingToJacksonStruct MakeStructInstance() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConfusingToJackson), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ConfusingToJackson), new System.Type[]{}, new object[]{}); } /// /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: "unionProperty", typeJson: "{\"union\":{\"types\":[{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"},{\"collection\":{\"elementtype\":{\"union\":{\"types\":[{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"},{\"fqn\":\"jsii-calc.AbstractClass\"}]}},\"kind\":\"array\"}}]}}", isOptional: true)] + [JsiiProperty(name: "unionProperty", typeJson: "{\"union\":{\"types\":[{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"},{\"collection\":{\"elementtype\":{\"union\":{\"types\":[{\"fqn\":\"jsii-calc.compliance.AbstractClass\"},{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"}]}},\"kind\":\"array\"}}]}}", isOptional: true)] public virtual object? UnionProperty { get => GetInstanceProperty(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConfusingToJacksonStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConfusingToJacksonStruct.cs similarity index 59% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConfusingToJacksonStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConfusingToJacksonStruct.cs index 931605685f..58149a2937 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConfusingToJacksonStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConfusingToJacksonStruct.cs @@ -2,19 +2,19 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.ConfusingToJacksonStruct")] - public class ConfusingToJacksonStruct : Amazon.JSII.Tests.CalculatorNamespace.IConfusingToJacksonStruct + [JsiiByValue(fqn: "jsii-calc.compliance.ConfusingToJacksonStruct")] + public class ConfusingToJacksonStruct : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IConfusingToJacksonStruct { /// /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: "unionProperty", typeJson: "{\"union\":{\"types\":[{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"},{\"collection\":{\"elementtype\":{\"union\":{\"types\":[{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"},{\"fqn\":\"jsii-calc.AbstractClass\"}]}},\"kind\":\"array\"}}]}}", isOptional: true, isOverride: true)] + [JsiiProperty(name: "unionProperty", typeJson: "{\"union\":{\"types\":[{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"},{\"collection\":{\"elementtype\":{\"union\":{\"types\":[{\"fqn\":\"jsii-calc.compliance.AbstractClass\"},{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"}]}},\"kind\":\"array\"}}]}}", isOptional: true, isOverride: true)] public object? UnionProperty { get; diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConfusingToJacksonStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConfusingToJacksonStructProxy.cs similarity index 65% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConfusingToJacksonStructProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConfusingToJacksonStructProxy.cs index 49c24131e4..e0037f8d29 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConfusingToJacksonStructProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConfusingToJacksonStructProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IConfusingToJacksonStruct), fullyQualifiedName: "jsii-calc.ConfusingToJacksonStruct")] - internal sealed class ConfusingToJacksonStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IConfusingToJacksonStruct + [JsiiTypeProxy(nativeType: typeof(IConfusingToJacksonStruct), fullyQualifiedName: "jsii-calc.compliance.ConfusingToJacksonStruct")] + internal sealed class ConfusingToJacksonStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IConfusingToJacksonStruct { private ConfusingToJacksonStructProxy(ByRefValue reference): base(reference) { @@ -18,7 +18,7 @@ private ConfusingToJacksonStructProxy(ByRefValue reference): base(reference) /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: "unionProperty", typeJson: "{\"union\":{\"types\":[{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"},{\"collection\":{\"elementtype\":{\"union\":{\"types\":[{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"},{\"fqn\":\"jsii-calc.AbstractClass\"}]}},\"kind\":\"array\"}}]}}", isOptional: true)] + [JsiiProperty(name: "unionProperty", typeJson: "{\"union\":{\"types\":[{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"},{\"collection\":{\"elementtype\":{\"union\":{\"types\":[{\"fqn\":\"jsii-calc.compliance.AbstractClass\"},{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"}]}},\"kind\":\"array\"}}]}}", isOptional: true)] public object? UnionProperty { get => GetInstanceProperty(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConstructorPassesThisOut.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConstructorPassesThisOut.cs similarity index 75% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConstructorPassesThisOut.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConstructorPassesThisOut.cs index 33d0c74c81..77e15c2ad8 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConstructorPassesThisOut.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConstructorPassesThisOut.cs @@ -2,18 +2,18 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ConstructorPassesThisOut), fullyQualifiedName: "jsii-calc.ConstructorPassesThisOut", parametersJson: "[{\"name\":\"consumer\",\"type\":{\"fqn\":\"jsii-calc.PartiallyInitializedThisConsumer\"}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ConstructorPassesThisOut), fullyQualifiedName: "jsii-calc.compliance.ConstructorPassesThisOut", parametersJson: "[{\"name\":\"consumer\",\"type\":{\"fqn\":\"jsii-calc.compliance.PartiallyInitializedThisConsumer\"}}]")] public class ConstructorPassesThisOut : DeputyBase { /// /// Stability: Experimental /// - public ConstructorPassesThisOut(Amazon.JSII.Tests.CalculatorNamespace.PartiallyInitializedThisConsumer consumer): base(new DeputyProps(new object[]{consumer})) + public ConstructorPassesThisOut(Amazon.JSII.Tests.CalculatorNamespace.Compliance.PartiallyInitializedThisConsumer consumer): base(new DeputyProps(new object[]{consumer})) { } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Constructors.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Constructors.cs similarity index 52% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Constructors.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Constructors.cs index 55e7618385..5120fe4e24 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Constructors.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Constructors.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), fullyQualifiedName: "jsii-calc.Constructors")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Constructors), fullyQualifiedName: "jsii-calc.compliance.Constructors")] public class Constructors : DeputyBase { public Constructors(): base(new DeputyProps(new object[]{})) @@ -31,64 +31,64 @@ protected Constructors(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "hiddenInterface", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.IPublicInterface\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface HiddenInterface() + [JsiiMethod(name: "hiddenInterface", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.IPublicInterface\"}}")] + public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.IPublicInterface HiddenInterface() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Constructors), new System.Type[]{}, new object[]{}); } /// /// Stability: Experimental /// - [JsiiMethod(name: "hiddenInterfaces", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"jsii-calc.IPublicInterface\"},\"kind\":\"array\"}}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface[] HiddenInterfaces() + [JsiiMethod(name: "hiddenInterfaces", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"jsii-calc.compliance.IPublicInterface\"},\"kind\":\"array\"}}}")] + public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.IPublicInterface[] HiddenInterfaces() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Constructors), new System.Type[]{}, new object[]{}); } /// /// Stability: Experimental /// - [JsiiMethod(name: "hiddenSubInterfaces", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"jsii-calc.IPublicInterface\"},\"kind\":\"array\"}}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface[] HiddenSubInterfaces() + [JsiiMethod(name: "hiddenSubInterfaces", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"jsii-calc.compliance.IPublicInterface\"},\"kind\":\"array\"}}}")] + public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.IPublicInterface[] HiddenSubInterfaces() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Constructors), new System.Type[]{}, new object[]{}); } /// /// Stability: Experimental /// - [JsiiMethod(name: "makeClass", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.PublicClass\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.PublicClass MakeClass() + [JsiiMethod(name: "makeClass", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.PublicClass\"}}")] + public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.PublicClass MakeClass() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Constructors), new System.Type[]{}, new object[]{}); } /// /// Stability: Experimental /// - [JsiiMethod(name: "makeInterface", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.IPublicInterface\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface MakeInterface() + [JsiiMethod(name: "makeInterface", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.IPublicInterface\"}}")] + public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.IPublicInterface MakeInterface() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Constructors), new System.Type[]{}, new object[]{}); } /// /// Stability: Experimental /// - [JsiiMethod(name: "makeInterface2", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.IPublicInterface2\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface2 MakeInterface2() + [JsiiMethod(name: "makeInterface2", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.IPublicInterface2\"}}")] + public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.IPublicInterface2 MakeInterface2() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Constructors), new System.Type[]{}, new object[]{}); } /// /// Stability: Experimental /// - [JsiiMethod(name: "makeInterfaces", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"jsii-calc.IPublicInterface\"},\"kind\":\"array\"}}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface[] MakeInterfaces() + [JsiiMethod(name: "makeInterfaces", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"jsii-calc.compliance.IPublicInterface\"},\"kind\":\"array\"}}}")] + public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.IPublicInterface[] MakeInterfaces() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Constructors), new System.Type[]{}, new object[]{}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConsumePureInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConsumePureInterface.cs similarity index 71% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConsumePureInterface.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConsumePureInterface.cs index 409d7b7445..67186b7615 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConsumePureInterface.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConsumePureInterface.cs @@ -2,18 +2,18 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumePureInterface), fullyQualifiedName: "jsii-calc.ConsumePureInterface", parametersJson: "[{\"name\":\"delegate\",\"type\":{\"fqn\":\"jsii-calc.IStructReturningDelegate\"}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ConsumePureInterface), fullyQualifiedName: "jsii-calc.compliance.ConsumePureInterface", parametersJson: "[{\"name\":\"delegate\",\"type\":{\"fqn\":\"jsii-calc.compliance.IStructReturningDelegate\"}}]")] public class ConsumePureInterface : DeputyBase { /// /// Stability: Experimental /// - public ConsumePureInterface(Amazon.JSII.Tests.CalculatorNamespace.IStructReturningDelegate @delegate): base(new DeputyProps(new object[]{@delegate})) + public ConsumePureInterface(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IStructReturningDelegate @delegate): base(new DeputyProps(new object[]{@delegate})) { } @@ -34,10 +34,10 @@ protected ConsumePureInterface(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "workItBaby", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.StructB\"}}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.IStructB WorkItBaby() + [JsiiMethod(name: "workItBaby", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.StructB\"}}")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.Compliance.IStructB WorkItBaby() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConsumerCanRingBell.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConsumerCanRingBell.cs similarity index 69% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConsumerCanRingBell.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConsumerCanRingBell.cs index 693e45d5e3..fdf2ac52da 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConsumerCanRingBell.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConsumerCanRingBell.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// Test calling back to consumers that implement interfaces. /// @@ -11,7 +11,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumerCanRingBell), fullyQualifiedName: "jsii-calc.ConsumerCanRingBell")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ConsumerCanRingBell), fullyQualifiedName: "jsii-calc.compliance.ConsumerCanRingBell")] public class ConsumerCanRingBell : DeputyBase { public ConsumerCanRingBell(): base(new DeputyProps(new object[]{})) @@ -38,10 +38,10 @@ protected ConsumerCanRingBell(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "staticImplementedByObjectLiteral", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.IBellRinger\"}}]")] - public static bool StaticImplementedByObjectLiteral(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger ringer) + [JsiiMethod(name: "staticImplementedByObjectLiteral", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.compliance.IBellRinger\"}}]")] + public static bool StaticImplementedByObjectLiteral(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IBellRinger ringer) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumerCanRingBell), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ConsumerCanRingBell), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IBellRinger)}, new object[]{ringer}); } /// ...if the interface is implemented using a private class. @@ -50,10 +50,10 @@ public static bool StaticImplementedByObjectLiteral(Amazon.JSII.Tests.Calculator /// /// Stability: Experimental /// - [JsiiMethod(name: "staticImplementedByPrivateClass", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.IBellRinger\"}}]")] - public static bool StaticImplementedByPrivateClass(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger ringer) + [JsiiMethod(name: "staticImplementedByPrivateClass", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.compliance.IBellRinger\"}}]")] + public static bool StaticImplementedByPrivateClass(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IBellRinger ringer) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumerCanRingBell), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ConsumerCanRingBell), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IBellRinger)}, new object[]{ringer}); } /// ...if the interface is implemented using a public class. @@ -62,10 +62,10 @@ public static bool StaticImplementedByPrivateClass(Amazon.JSII.Tests.CalculatorN /// /// Stability: Experimental /// - [JsiiMethod(name: "staticImplementedByPublicClass", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.IBellRinger\"}}]")] - public static bool StaticImplementedByPublicClass(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger ringer) + [JsiiMethod(name: "staticImplementedByPublicClass", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.compliance.IBellRinger\"}}]")] + public static bool StaticImplementedByPublicClass(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IBellRinger ringer) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumerCanRingBell), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ConsumerCanRingBell), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IBellRinger)}, new object[]{ringer}); } /// If the parameter is a concrete class instead of an interface. @@ -74,10 +74,10 @@ public static bool StaticImplementedByPublicClass(Amazon.JSII.Tests.CalculatorNa /// /// Stability: Experimental /// - [JsiiMethod(name: "staticWhenTypedAsClass", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.IConcreteBellRinger\"}}]")] - public static bool StaticWhenTypedAsClass(Amazon.JSII.Tests.CalculatorNamespace.IConcreteBellRinger ringer) + [JsiiMethod(name: "staticWhenTypedAsClass", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.compliance.IConcreteBellRinger\"}}]")] + public static bool StaticWhenTypedAsClass(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IConcreteBellRinger ringer) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumerCanRingBell), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IConcreteBellRinger)}, new object[]{ringer}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ConsumerCanRingBell), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IConcreteBellRinger)}, new object[]{ringer}); } /// ...if the interface is implemented using an object literal. @@ -86,10 +86,10 @@ public static bool StaticWhenTypedAsClass(Amazon.JSII.Tests.CalculatorNamespace. /// /// Stability: Experimental /// - [JsiiMethod(name: "implementedByObjectLiteral", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.IBellRinger\"}}]")] - public virtual bool ImplementedByObjectLiteral(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger ringer) + [JsiiMethod(name: "implementedByObjectLiteral", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.compliance.IBellRinger\"}}]")] + public virtual bool ImplementedByObjectLiteral(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IBellRinger ringer) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IBellRinger)}, new object[]{ringer}); } /// ...if the interface is implemented using a private class. @@ -98,10 +98,10 @@ public virtual bool ImplementedByObjectLiteral(Amazon.JSII.Tests.CalculatorNames /// /// Stability: Experimental /// - [JsiiMethod(name: "implementedByPrivateClass", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.IBellRinger\"}}]")] - public virtual bool ImplementedByPrivateClass(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger ringer) + [JsiiMethod(name: "implementedByPrivateClass", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.compliance.IBellRinger\"}}]")] + public virtual bool ImplementedByPrivateClass(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IBellRinger ringer) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IBellRinger)}, new object[]{ringer}); } /// ...if the interface is implemented using a public class. @@ -110,10 +110,10 @@ public virtual bool ImplementedByPrivateClass(Amazon.JSII.Tests.CalculatorNamesp /// /// Stability: Experimental /// - [JsiiMethod(name: "implementedByPublicClass", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.IBellRinger\"}}]")] - public virtual bool ImplementedByPublicClass(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger ringer) + [JsiiMethod(name: "implementedByPublicClass", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.compliance.IBellRinger\"}}]")] + public virtual bool ImplementedByPublicClass(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IBellRinger ringer) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IBellRinger)}, new object[]{ringer}); } /// If the parameter is a concrete class instead of an interface. @@ -122,10 +122,10 @@ public virtual bool ImplementedByPublicClass(Amazon.JSII.Tests.CalculatorNamespa /// /// Stability: Experimental /// - [JsiiMethod(name: "whenTypedAsClass", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.IConcreteBellRinger\"}}]")] - public virtual bool WhenTypedAsClass(Amazon.JSII.Tests.CalculatorNamespace.IConcreteBellRinger ringer) + [JsiiMethod(name: "whenTypedAsClass", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.compliance.IConcreteBellRinger\"}}]")] + public virtual bool WhenTypedAsClass(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IConcreteBellRinger ringer) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IConcreteBellRinger)}, new object[]{ringer}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IConcreteBellRinger)}, new object[]{ringer}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConsumersOfThisCrazyTypeSystem.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConsumersOfThisCrazyTypeSystem.cs similarity index 72% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConsumersOfThisCrazyTypeSystem.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConsumersOfThisCrazyTypeSystem.cs index ce7c6630f5..b25f178baa 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConsumersOfThisCrazyTypeSystem.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConsumersOfThisCrazyTypeSystem.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumersOfThisCrazyTypeSystem), fullyQualifiedName: "jsii-calc.ConsumersOfThisCrazyTypeSystem")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ConsumersOfThisCrazyTypeSystem), fullyQualifiedName: "jsii-calc.compliance.ConsumersOfThisCrazyTypeSystem")] public class ConsumersOfThisCrazyTypeSystem : DeputyBase { public ConsumersOfThisCrazyTypeSystem(): base(new DeputyProps(new object[]{})) @@ -31,19 +31,19 @@ protected ConsumersOfThisCrazyTypeSystem(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "consumeAnotherPublicInterface", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"obj\",\"type\":{\"fqn\":\"jsii-calc.IAnotherPublicInterface\"}}]")] - public virtual string ConsumeAnotherPublicInterface(Amazon.JSII.Tests.CalculatorNamespace.IAnotherPublicInterface obj) + [JsiiMethod(name: "consumeAnotherPublicInterface", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"obj\",\"type\":{\"fqn\":\"jsii-calc.compliance.IAnotherPublicInterface\"}}]")] + public virtual string ConsumeAnotherPublicInterface(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IAnotherPublicInterface obj) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IAnotherPublicInterface)}, new object[]{obj}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IAnotherPublicInterface)}, new object[]{obj}); } /// /// Stability: Experimental /// - [JsiiMethod(name: "consumeNonInternalInterface", returnsJson: "{\"type\":{\"primitive\":\"any\"}}", parametersJson: "[{\"name\":\"obj\",\"type\":{\"fqn\":\"jsii-calc.INonInternalInterface\"}}]")] - public virtual object ConsumeNonInternalInterface(Amazon.JSII.Tests.CalculatorNamespace.INonInternalInterface obj) + [JsiiMethod(name: "consumeNonInternalInterface", returnsJson: "{\"type\":{\"primitive\":\"any\"}}", parametersJson: "[{\"name\":\"obj\",\"type\":{\"fqn\":\"jsii-calc.compliance.INonInternalInterface\"}}]")] + public virtual object ConsumeNonInternalInterface(Amazon.JSII.Tests.CalculatorNamespace.Compliance.INonInternalInterface obj) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.INonInternalInterface)}, new object[]{obj}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.INonInternalInterface)}, new object[]{obj}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DataRenderer.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DataRenderer.cs similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DataRenderer.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DataRenderer.cs index 6710b1a168..2b60ef91e8 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DataRenderer.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DataRenderer.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// Verifies proper type handling through dynamic overrides. /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DataRenderer), fullyQualifiedName: "jsii-calc.DataRenderer")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.DataRenderer), fullyQualifiedName: "jsii-calc.compliance.DataRenderer")] public class DataRenderer : DeputyBase { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DefaultedConstructorArgument.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DefaultedConstructorArgument.cs similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DefaultedConstructorArgument.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DefaultedConstructorArgument.cs index 09c247d989..8b4dc82c48 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DefaultedConstructorArgument.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DefaultedConstructorArgument.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DefaultedConstructorArgument), fullyQualifiedName: "jsii-calc.DefaultedConstructorArgument", parametersJson: "[{\"name\":\"arg1\",\"optional\":true,\"type\":{\"primitive\":\"number\"}},{\"name\":\"arg2\",\"optional\":true,\"type\":{\"primitive\":\"string\"}},{\"name\":\"arg3\",\"optional\":true,\"type\":{\"primitive\":\"date\"}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.DefaultedConstructorArgument), fullyQualifiedName: "jsii-calc.compliance.DefaultedConstructorArgument", parametersJson: "[{\"name\":\"arg1\",\"optional\":true,\"type\":{\"primitive\":\"number\"}},{\"name\":\"arg2\",\"optional\":true,\"type\":{\"primitive\":\"string\"}},{\"name\":\"arg3\",\"optional\":true,\"type\":{\"primitive\":\"date\"}}]")] public class DefaultedConstructorArgument : DeputyBase { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Demonstrate982.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Demonstrate982.cs similarity index 73% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Demonstrate982.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Demonstrate982.cs index 58462c9962..7acd0593dc 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Demonstrate982.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Demonstrate982.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// 1. /// @@ -11,7 +11,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Demonstrate982), fullyQualifiedName: "jsii-calc.Demonstrate982")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Demonstrate982), fullyQualifiedName: "jsii-calc.compliance.Demonstrate982")] public class Demonstrate982 : DeputyBase { /// @@ -39,20 +39,20 @@ protected Demonstrate982(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "takeThis", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.ChildStruct982\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.IChildStruct982 TakeThis() + [JsiiMethod(name: "takeThis", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.ChildStruct982\"}}")] + public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.IChildStruct982 TakeThis() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Demonstrate982), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Demonstrate982), new System.Type[]{}, new object[]{}); } /// It's dangerous to go alone! /// /// Stability: Experimental /// - [JsiiMethod(name: "takeThisToo", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.ParentStruct982\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.IParentStruct982 TakeThisToo() + [JsiiMethod(name: "takeThisToo", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.ParentStruct982\"}}")] + public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.IParentStruct982 TakeThisToo() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Demonstrate982), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Demonstrate982), new System.Type[]{}, new object[]{}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedClassHasNoProperties/Base.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DerivedClassHasNoProperties/Base.cs similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedClassHasNoProperties/Base.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DerivedClassHasNoProperties/Base.cs index a4bdb00ecd..8e9841bc85 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedClassHasNoProperties/Base.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DerivedClassHasNoProperties/Base.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance.DerivedClassHasNoProperties { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties.Base), fullyQualifiedName: "jsii-calc.DerivedClassHasNoProperties.Base")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.DerivedClassHasNoProperties.Base), fullyQualifiedName: "jsii-calc.compliance.DerivedClassHasNoProperties.Base")] public class Base : DeputyBase { public Base(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedClassHasNoProperties/Derived.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DerivedClassHasNoProperties/Derived.cs similarity index 80% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedClassHasNoProperties/Derived.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DerivedClassHasNoProperties/Derived.cs index a15eaf9776..815da1dea4 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedClassHasNoProperties/Derived.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DerivedClassHasNoProperties/Derived.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance.DerivedClassHasNoProperties { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties.Derived), fullyQualifiedName: "jsii-calc.DerivedClassHasNoProperties.Derived")] - public class Derived : Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties.Base + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.DerivedClassHasNoProperties.Derived), fullyQualifiedName: "jsii-calc.compliance.DerivedClassHasNoProperties.Derived")] + public class Derived : Amazon.JSII.Tests.CalculatorNamespace.Compliance.DerivedClassHasNoProperties.Base { public Derived(): base(new DeputyProps(new object[]{})) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DerivedStruct.cs similarity index 92% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DerivedStruct.cs index 3ebd040b64..3c6de9375f 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DerivedStruct.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { #pragma warning disable CS8618 @@ -10,8 +10,8 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.DerivedStruct")] - public class DerivedStruct : Amazon.JSII.Tests.CalculatorNamespace.IDerivedStruct + [JsiiByValue(fqn: "jsii-calc.compliance.DerivedStruct")] + public class DerivedStruct : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IDerivedStruct { /// /// Stability: Experimental @@ -37,8 +37,8 @@ public bool Bool /// /// Stability: Experimental /// - [JsiiProperty(name: "nonPrimitive", typeJson: "{\"fqn\":\"jsii-calc.DoubleTrouble\"}", isOverride: true)] - public Amazon.JSII.Tests.CalculatorNamespace.DoubleTrouble NonPrimitive + [JsiiProperty(name: "nonPrimitive", typeJson: "{\"fqn\":\"jsii-calc.compliance.DoubleTrouble\"}", isOverride: true)] + public Amazon.JSII.Tests.CalculatorNamespace.Compliance.DoubleTrouble NonPrimitive { get; set; diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DerivedStructProxy.cs similarity index 91% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedStructProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DerivedStructProxy.cs index d73f819aa6..46344aa424 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedStructProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DerivedStructProxy.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// A struct which derives from another struct. /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IDerivedStruct), fullyQualifiedName: "jsii-calc.DerivedStruct")] - internal sealed class DerivedStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IDerivedStruct + [JsiiTypeProxy(nativeType: typeof(IDerivedStruct), fullyQualifiedName: "jsii-calc.compliance.DerivedStruct")] + internal sealed class DerivedStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IDerivedStruct { private DerivedStructProxy(ByRefValue reference): base(reference) { @@ -37,10 +37,10 @@ public bool Bool /// /// Stability: Experimental /// - [JsiiProperty(name: "nonPrimitive", typeJson: "{\"fqn\":\"jsii-calc.DoubleTrouble\"}")] - public Amazon.JSII.Tests.CalculatorNamespace.DoubleTrouble NonPrimitive + [JsiiProperty(name: "nonPrimitive", typeJson: "{\"fqn\":\"jsii-calc.compliance.DoubleTrouble\"}")] + public Amazon.JSII.Tests.CalculatorNamespace.Compliance.DoubleTrouble NonPrimitive { - get => GetInstanceProperty(); + get => GetInstanceProperty(); } /// This is optional. diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceBaseLevelStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceBaseLevelStruct.cs similarity index 73% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceBaseLevelStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceBaseLevelStruct.cs index 18964efa05..2bbf4880b7 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceBaseLevelStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceBaseLevelStruct.cs @@ -2,15 +2,15 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { #pragma warning disable CS8618 /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.DiamondInheritanceBaseLevelStruct")] - public class DiamondInheritanceBaseLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceBaseLevelStruct + [JsiiByValue(fqn: "jsii-calc.compliance.DiamondInheritanceBaseLevelStruct")] + public class DiamondInheritanceBaseLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IDiamondInheritanceBaseLevelStruct { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceBaseLevelStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceBaseLevelStructProxy.cs similarity index 74% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceBaseLevelStructProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceBaseLevelStructProxy.cs index 2d3b621874..13dbe12a38 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceBaseLevelStructProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceBaseLevelStructProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IDiamondInheritanceBaseLevelStruct), fullyQualifiedName: "jsii-calc.DiamondInheritanceBaseLevelStruct")] - internal sealed class DiamondInheritanceBaseLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceBaseLevelStruct + [JsiiTypeProxy(nativeType: typeof(IDiamondInheritanceBaseLevelStruct), fullyQualifiedName: "jsii-calc.compliance.DiamondInheritanceBaseLevelStruct")] + internal sealed class DiamondInheritanceBaseLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IDiamondInheritanceBaseLevelStruct { private DiamondInheritanceBaseLevelStructProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceFirstMidLevelStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceFirstMidLevelStruct.cs similarity index 79% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceFirstMidLevelStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceFirstMidLevelStruct.cs index e436e3e1e0..ed8cadcad9 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceFirstMidLevelStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceFirstMidLevelStruct.cs @@ -2,15 +2,15 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { #pragma warning disable CS8618 /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.DiamondInheritanceFirstMidLevelStruct")] - public class DiamondInheritanceFirstMidLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceFirstMidLevelStruct + [JsiiByValue(fqn: "jsii-calc.compliance.DiamondInheritanceFirstMidLevelStruct")] + public class DiamondInheritanceFirstMidLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IDiamondInheritanceFirstMidLevelStruct { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceFirstMidLevelStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceFirstMidLevelStructProxy.cs similarity index 79% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceFirstMidLevelStructProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceFirstMidLevelStructProxy.cs index aa831688a5..e69e58edc6 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceFirstMidLevelStructProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceFirstMidLevelStructProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IDiamondInheritanceFirstMidLevelStruct), fullyQualifiedName: "jsii-calc.DiamondInheritanceFirstMidLevelStruct")] - internal sealed class DiamondInheritanceFirstMidLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceFirstMidLevelStruct + [JsiiTypeProxy(nativeType: typeof(IDiamondInheritanceFirstMidLevelStruct), fullyQualifiedName: "jsii-calc.compliance.DiamondInheritanceFirstMidLevelStruct")] + internal sealed class DiamondInheritanceFirstMidLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IDiamondInheritanceFirstMidLevelStruct { private DiamondInheritanceFirstMidLevelStructProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceSecondMidLevelStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceSecondMidLevelStruct.cs similarity index 79% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceSecondMidLevelStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceSecondMidLevelStruct.cs index ef8d735f16..72d62bd794 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceSecondMidLevelStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceSecondMidLevelStruct.cs @@ -2,15 +2,15 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { #pragma warning disable CS8618 /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.DiamondInheritanceSecondMidLevelStruct")] - public class DiamondInheritanceSecondMidLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceSecondMidLevelStruct + [JsiiByValue(fqn: "jsii-calc.compliance.DiamondInheritanceSecondMidLevelStruct")] + public class DiamondInheritanceSecondMidLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IDiamondInheritanceSecondMidLevelStruct { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceSecondMidLevelStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceSecondMidLevelStructProxy.cs similarity index 79% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceSecondMidLevelStructProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceSecondMidLevelStructProxy.cs index ff88d769b6..2ab461111d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceSecondMidLevelStructProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceSecondMidLevelStructProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IDiamondInheritanceSecondMidLevelStruct), fullyQualifiedName: "jsii-calc.DiamondInheritanceSecondMidLevelStruct")] - internal sealed class DiamondInheritanceSecondMidLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceSecondMidLevelStruct + [JsiiTypeProxy(nativeType: typeof(IDiamondInheritanceSecondMidLevelStruct), fullyQualifiedName: "jsii-calc.compliance.DiamondInheritanceSecondMidLevelStruct")] + internal sealed class DiamondInheritanceSecondMidLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IDiamondInheritanceSecondMidLevelStruct { private DiamondInheritanceSecondMidLevelStructProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceTopLevelStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceTopLevelStruct.cs similarity index 87% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceTopLevelStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceTopLevelStruct.cs index 16435c8c60..561a37d7ce 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceTopLevelStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceTopLevelStruct.cs @@ -2,15 +2,15 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { #pragma warning disable CS8618 /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.DiamondInheritanceTopLevelStruct")] - public class DiamondInheritanceTopLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceTopLevelStruct + [JsiiByValue(fqn: "jsii-calc.compliance.DiamondInheritanceTopLevelStruct")] + public class DiamondInheritanceTopLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IDiamondInheritanceTopLevelStruct { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceTopLevelStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceTopLevelStructProxy.cs similarity index 87% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceTopLevelStructProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceTopLevelStructProxy.cs index b4c89fc547..2a2cbb185a 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceTopLevelStructProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceTopLevelStructProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IDiamondInheritanceTopLevelStruct), fullyQualifiedName: "jsii-calc.DiamondInheritanceTopLevelStruct")] - internal sealed class DiamondInheritanceTopLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceTopLevelStruct + [JsiiTypeProxy(nativeType: typeof(IDiamondInheritanceTopLevelStruct), fullyQualifiedName: "jsii-calc.compliance.DiamondInheritanceTopLevelStruct")] + internal sealed class DiamondInheritanceTopLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IDiamondInheritanceTopLevelStruct { private DiamondInheritanceTopLevelStructProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DisappointingCollectionSource.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DisappointingCollectionSource.cs similarity index 89% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DisappointingCollectionSource.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DisappointingCollectionSource.cs index bef36a3fc8..664989e1ce 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DisappointingCollectionSource.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DisappointingCollectionSource.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// Verifies that null/undefined can be returned for optional collections. /// @@ -10,7 +10,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DisappointingCollectionSource), fullyQualifiedName: "jsii-calc.DisappointingCollectionSource")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.DisappointingCollectionSource), fullyQualifiedName: "jsii-calc.compliance.DisappointingCollectionSource")] public class DisappointingCollectionSource : DeputyBase { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference @@ -38,7 +38,7 @@ public static string[] MaybeList { get; } - = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.DisappointingCollectionSource)); + = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.DisappointingCollectionSource)); /// Some Map of strings to numbers, maybe? /// @@ -51,6 +51,6 @@ public static System.Collections.Generic.IDictionary MaybeMap { get; } - = GetStaticProperty>(typeof(Amazon.JSII.Tests.CalculatorNamespace.DisappointingCollectionSource)); + = GetStaticProperty>(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.DisappointingCollectionSource)); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DoNotOverridePrivates.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DoNotOverridePrivates.cs similarity index 93% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DoNotOverridePrivates.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DoNotOverridePrivates.cs index 84599175cf..452d307858 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DoNotOverridePrivates.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DoNotOverridePrivates.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DoNotOverridePrivates), fullyQualifiedName: "jsii-calc.DoNotOverridePrivates")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.DoNotOverridePrivates), fullyQualifiedName: "jsii-calc.compliance.DoNotOverridePrivates")] public class DoNotOverridePrivates : DeputyBase { public DoNotOverridePrivates(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DoNotRecognizeAnyAsOptional.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DoNotRecognizeAnyAsOptional.cs similarity index 91% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DoNotRecognizeAnyAsOptional.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DoNotRecognizeAnyAsOptional.cs index bd4f50f852..70cf9d34b5 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DoNotRecognizeAnyAsOptional.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DoNotRecognizeAnyAsOptional.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// jsii#284: do not recognize "any" as an optional argument. /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DoNotRecognizeAnyAsOptional), fullyQualifiedName: "jsii-calc.DoNotRecognizeAnyAsOptional")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.DoNotRecognizeAnyAsOptional), fullyQualifiedName: "jsii-calc.compliance.DoNotRecognizeAnyAsOptional")] public class DoNotRecognizeAnyAsOptional : DeputyBase { public DoNotRecognizeAnyAsOptional(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DontComplainAboutVariadicAfterOptional.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DontComplainAboutVariadicAfterOptional.cs similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DontComplainAboutVariadicAfterOptional.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DontComplainAboutVariadicAfterOptional.cs index 5255be3e1a..9a6282716f 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DontComplainAboutVariadicAfterOptional.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DontComplainAboutVariadicAfterOptional.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DontComplainAboutVariadicAfterOptional), fullyQualifiedName: "jsii-calc.DontComplainAboutVariadicAfterOptional")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.DontComplainAboutVariadicAfterOptional), fullyQualifiedName: "jsii-calc.compliance.DontComplainAboutVariadicAfterOptional")] public class DontComplainAboutVariadicAfterOptional : DeputyBase { public DontComplainAboutVariadicAfterOptional(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DoubleTrouble.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DoubleTrouble.cs similarity index 92% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DoubleTrouble.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DoubleTrouble.cs index 1e53d66e69..1f1d0d0e50 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DoubleTrouble.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DoubleTrouble.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DoubleTrouble), fullyQualifiedName: "jsii-calc.DoubleTrouble")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.DoubleTrouble), fullyQualifiedName: "jsii-calc.compliance.DoubleTrouble")] public class DoubleTrouble : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IFriendlyRandomGenerator { public DoubleTrouble(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EnumDispenser.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/EnumDispenser.cs similarity index 66% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EnumDispenser.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/EnumDispenser.cs index 11304b8937..5e17847aec 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EnumDispenser.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/EnumDispenser.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.EnumDispenser), fullyQualifiedName: "jsii-calc.EnumDispenser")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.EnumDispenser), fullyQualifiedName: "jsii-calc.compliance.EnumDispenser")] public class EnumDispenser : DeputyBase { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference @@ -27,19 +27,19 @@ protected EnumDispenser(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "randomIntegerLikeEnum", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.AllTypesEnum\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.AllTypesEnum RandomIntegerLikeEnum() + [JsiiMethod(name: "randomIntegerLikeEnum", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.AllTypesEnum\"}}")] + public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.AllTypesEnum RandomIntegerLikeEnum() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.EnumDispenser), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.EnumDispenser), new System.Type[]{}, new object[]{}); } /// /// Stability: Experimental /// - [JsiiMethod(name: "randomStringLikeEnum", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.StringEnum\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.StringEnum RandomStringLikeEnum() + [JsiiMethod(name: "randomStringLikeEnum", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.StringEnum\"}}")] + public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.StringEnum RandomStringLikeEnum() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.EnumDispenser), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.EnumDispenser), new System.Type[]{}, new object[]{}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EraseUndefinedHashValues.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/EraseUndefinedHashValues.cs similarity index 78% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EraseUndefinedHashValues.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/EraseUndefinedHashValues.cs index 247f3df086..e3f85d4daa 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EraseUndefinedHashValues.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/EraseUndefinedHashValues.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.EraseUndefinedHashValues), fullyQualifiedName: "jsii-calc.EraseUndefinedHashValues")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.EraseUndefinedHashValues), fullyQualifiedName: "jsii-calc.compliance.EraseUndefinedHashValues")] public class EraseUndefinedHashValues : DeputyBase { public EraseUndefinedHashValues(): base(new DeputyProps(new object[]{})) @@ -35,10 +35,10 @@ protected EraseUndefinedHashValues(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "doesKeyExist", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"opts\",\"type\":{\"fqn\":\"jsii-calc.EraseUndefinedHashValuesOptions\"}},{\"name\":\"key\",\"type\":{\"primitive\":\"string\"}}]")] - public static bool DoesKeyExist(Amazon.JSII.Tests.CalculatorNamespace.IEraseUndefinedHashValuesOptions opts, string key) + [JsiiMethod(name: "doesKeyExist", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"opts\",\"type\":{\"fqn\":\"jsii-calc.compliance.EraseUndefinedHashValuesOptions\"}},{\"name\":\"key\",\"type\":{\"primitive\":\"string\"}}]")] + public static bool DoesKeyExist(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IEraseUndefinedHashValuesOptions opts, string key) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.EraseUndefinedHashValues), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IEraseUndefinedHashValuesOptions), typeof(string)}, new object[]{opts, key}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.EraseUndefinedHashValues), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IEraseUndefinedHashValuesOptions), typeof(string)}, new object[]{opts, key}); } /// We expect "prop1" to be erased. @@ -48,7 +48,7 @@ public static bool DoesKeyExist(Amazon.JSII.Tests.CalculatorNamespace.IEraseUnde [JsiiMethod(name: "prop1IsNull", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"primitive\":\"any\"},\"kind\":\"map\"}}}")] public static System.Collections.Generic.IDictionary Prop1IsNull() { - return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.EraseUndefinedHashValues), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.EraseUndefinedHashValues), new System.Type[]{}, new object[]{}); } /// We expect "prop2" to be erased. @@ -58,7 +58,7 @@ public static System.Collections.Generic.IDictionary Prop1IsNull [JsiiMethod(name: "prop2IsUndefined", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"primitive\":\"any\"},\"kind\":\"map\"}}}")] public static System.Collections.Generic.IDictionary Prop2IsUndefined() { - return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.EraseUndefinedHashValues), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.EraseUndefinedHashValues), new System.Type[]{}, new object[]{}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EraseUndefinedHashValuesOptions.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/EraseUndefinedHashValuesOptions.cs similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EraseUndefinedHashValuesOptions.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/EraseUndefinedHashValuesOptions.cs index 210da73b00..704a9ee0b0 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EraseUndefinedHashValuesOptions.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/EraseUndefinedHashValuesOptions.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.EraseUndefinedHashValuesOptions")] - public class EraseUndefinedHashValuesOptions : Amazon.JSII.Tests.CalculatorNamespace.IEraseUndefinedHashValuesOptions + [JsiiByValue(fqn: "jsii-calc.compliance.EraseUndefinedHashValuesOptions")] + public class EraseUndefinedHashValuesOptions : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IEraseUndefinedHashValuesOptions { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EraseUndefinedHashValuesOptionsProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/EraseUndefinedHashValuesOptionsProxy.cs similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EraseUndefinedHashValuesOptionsProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/EraseUndefinedHashValuesOptionsProxy.cs index b052171dcb..3ce4ab3f0b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EraseUndefinedHashValuesOptionsProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/EraseUndefinedHashValuesOptionsProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IEraseUndefinedHashValuesOptions), fullyQualifiedName: "jsii-calc.EraseUndefinedHashValuesOptions")] - internal sealed class EraseUndefinedHashValuesOptionsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IEraseUndefinedHashValuesOptions + [JsiiTypeProxy(nativeType: typeof(IEraseUndefinedHashValuesOptions), fullyQualifiedName: "jsii-calc.compliance.EraseUndefinedHashValuesOptions")] + internal sealed class EraseUndefinedHashValuesOptionsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IEraseUndefinedHashValuesOptions { private EraseUndefinedHashValuesOptionsProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExportedBaseClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ExportedBaseClass.cs similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExportedBaseClass.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ExportedBaseClass.cs index 12ba96ce45..7f499a1058 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExportedBaseClass.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ExportedBaseClass.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ExportedBaseClass), fullyQualifiedName: "jsii-calc.ExportedBaseClass", parametersJson: "[{\"name\":\"success\",\"type\":{\"primitive\":\"boolean\"}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ExportedBaseClass), fullyQualifiedName: "jsii-calc.compliance.ExportedBaseClass", parametersJson: "[{\"name\":\"success\",\"type\":{\"primitive\":\"boolean\"}}]")] public class ExportedBaseClass : DeputyBase { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExtendsInternalInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ExtendsInternalInterface.cs similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExtendsInternalInterface.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ExtendsInternalInterface.cs index e421064e24..c04751d389 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExtendsInternalInterface.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ExtendsInternalInterface.cs @@ -2,15 +2,15 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { #pragma warning disable CS8618 /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.ExtendsInternalInterface")] - public class ExtendsInternalInterface : Amazon.JSII.Tests.CalculatorNamespace.IExtendsInternalInterface + [JsiiByValue(fqn: "jsii-calc.compliance.ExtendsInternalInterface")] + public class ExtendsInternalInterface : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IExtendsInternalInterface { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExtendsInternalInterfaceProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ExtendsInternalInterfaceProxy.cs similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExtendsInternalInterfaceProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ExtendsInternalInterfaceProxy.cs index b59b2a688d..dce5b8bea5 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExtendsInternalInterfaceProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ExtendsInternalInterfaceProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IExtendsInternalInterface), fullyQualifiedName: "jsii-calc.ExtendsInternalInterface")] - internal sealed class ExtendsInternalInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IExtendsInternalInterface + [JsiiTypeProxy(nativeType: typeof(IExtendsInternalInterface), fullyQualifiedName: "jsii-calc.compliance.ExtendsInternalInterface")] + internal sealed class ExtendsInternalInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IExtendsInternalInterface { private ExtendsInternalInterfaceProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/GiveMeStructs.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/GiveMeStructs.cs similarity index 78% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/GiveMeStructs.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/GiveMeStructs.cs index 9eac9f7240..0e3cad1599 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/GiveMeStructs.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/GiveMeStructs.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.GiveMeStructs), fullyQualifiedName: "jsii-calc.GiveMeStructs")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.GiveMeStructs), fullyQualifiedName: "jsii-calc.compliance.GiveMeStructs")] public class GiveMeStructs : DeputyBase { public GiveMeStructs(): base(new DeputyProps(new object[]{})) @@ -32,20 +32,20 @@ protected GiveMeStructs(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "derivedToFirst", returnsJson: "{\"type\":{\"fqn\":\"@scope/jsii-calc-lib.MyFirstStruct\"}}", parametersJson: "[{\"name\":\"derived\",\"type\":{\"fqn\":\"jsii-calc.DerivedStruct\"}}]")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IMyFirstStruct DerivedToFirst(Amazon.JSII.Tests.CalculatorNamespace.IDerivedStruct derived) + [JsiiMethod(name: "derivedToFirst", returnsJson: "{\"type\":{\"fqn\":\"@scope/jsii-calc-lib.MyFirstStruct\"}}", parametersJson: "[{\"name\":\"derived\",\"type\":{\"fqn\":\"jsii-calc.compliance.DerivedStruct\"}}]")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IMyFirstStruct DerivedToFirst(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IDerivedStruct derived) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IDerivedStruct)}, new object[]{derived}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IDerivedStruct)}, new object[]{derived}); } /// Returns the boolean from a DerivedStruct struct. /// /// Stability: Experimental /// - [JsiiMethod(name: "readDerivedNonPrimitive", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.DoubleTrouble\"}}", parametersJson: "[{\"name\":\"derived\",\"type\":{\"fqn\":\"jsii-calc.DerivedStruct\"}}]")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.DoubleTrouble ReadDerivedNonPrimitive(Amazon.JSII.Tests.CalculatorNamespace.IDerivedStruct derived) + [JsiiMethod(name: "readDerivedNonPrimitive", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.DoubleTrouble\"}}", parametersJson: "[{\"name\":\"derived\",\"type\":{\"fqn\":\"jsii-calc.compliance.DerivedStruct\"}}]")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.Compliance.DoubleTrouble ReadDerivedNonPrimitive(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IDerivedStruct derived) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IDerivedStruct)}, new object[]{derived}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IDerivedStruct)}, new object[]{derived}); } /// Returns the "anumber" from a MyFirstStruct struct; diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/GreetingAugmenter.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/GreetingAugmenter.cs similarity index 91% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/GreetingAugmenter.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/GreetingAugmenter.cs index 27f15e61fc..80754960d6 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/GreetingAugmenter.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/GreetingAugmenter.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.GreetingAugmenter), fullyQualifiedName: "jsii-calc.GreetingAugmenter")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.GreetingAugmenter), fullyQualifiedName: "jsii-calc.compliance.GreetingAugmenter")] public class GreetingAugmenter : DeputyBase { public GreetingAugmenter(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymousImplementationProvider.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IAnonymousImplementationProvider.cs similarity index 62% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymousImplementationProvider.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IAnonymousImplementationProvider.cs index b05ab50ed2..717814d7eb 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymousImplementationProvider.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IAnonymousImplementationProvider.cs @@ -2,24 +2,24 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// We can return an anonymous interface implementation from an override without losing the interface declarations. /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IAnonymousImplementationProvider), fullyQualifiedName: "jsii-calc.IAnonymousImplementationProvider")] + [JsiiInterface(nativeType: typeof(IAnonymousImplementationProvider), fullyQualifiedName: "jsii-calc.compliance.IAnonymousImplementationProvider")] public interface IAnonymousImplementationProvider { /// /// Stability: Experimental /// - [JsiiMethod(name: "provideAsClass", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.Implementation\"}}")] - Amazon.JSII.Tests.CalculatorNamespace.Implementation ProvideAsClass(); + [JsiiMethod(name: "provideAsClass", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.Implementation\"}}")] + Amazon.JSII.Tests.CalculatorNamespace.Compliance.Implementation ProvideAsClass(); /// /// Stability: Experimental /// - [JsiiMethod(name: "provideAsInterface", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.IAnonymouslyImplementMe\"}}")] - Amazon.JSII.Tests.CalculatorNamespace.IAnonymouslyImplementMe ProvideAsInterface(); + [JsiiMethod(name: "provideAsInterface", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.IAnonymouslyImplementMe\"}}")] + Amazon.JSII.Tests.CalculatorNamespace.Compliance.IAnonymouslyImplementMe ProvideAsInterface(); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymousImplementationProviderProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IAnonymousImplementationProviderProxy.cs similarity index 58% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymousImplementationProviderProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IAnonymousImplementationProviderProxy.cs index 024b37f5d4..484874fce4 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymousImplementationProviderProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IAnonymousImplementationProviderProxy.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// We can return an anonymous interface implementation from an override without losing the interface declarations. /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IAnonymousImplementationProvider), fullyQualifiedName: "jsii-calc.IAnonymousImplementationProvider")] - internal sealed class IAnonymousImplementationProviderProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IAnonymousImplementationProvider + [JsiiTypeProxy(nativeType: typeof(IAnonymousImplementationProvider), fullyQualifiedName: "jsii-calc.compliance.IAnonymousImplementationProvider")] + internal sealed class IAnonymousImplementationProviderProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IAnonymousImplementationProvider { private IAnonymousImplementationProviderProxy(ByRefValue reference): base(reference) { @@ -18,19 +18,19 @@ private IAnonymousImplementationProviderProxy(ByRefValue reference): base(refere /// /// Stability: Experimental /// - [JsiiMethod(name: "provideAsClass", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.Implementation\"}}")] - public Amazon.JSII.Tests.CalculatorNamespace.Implementation ProvideAsClass() + [JsiiMethod(name: "provideAsClass", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.Implementation\"}}")] + public Amazon.JSII.Tests.CalculatorNamespace.Compliance.Implementation ProvideAsClass() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } /// /// Stability: Experimental /// - [JsiiMethod(name: "provideAsInterface", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.IAnonymouslyImplementMe\"}}")] - public Amazon.JSII.Tests.CalculatorNamespace.IAnonymouslyImplementMe ProvideAsInterface() + [JsiiMethod(name: "provideAsInterface", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.IAnonymouslyImplementMe\"}}")] + public Amazon.JSII.Tests.CalculatorNamespace.Compliance.IAnonymouslyImplementMe ProvideAsInterface() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymouslyImplementMe.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IAnonymouslyImplementMe.cs similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymouslyImplementMe.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IAnonymouslyImplementMe.cs index e597158e5b..c489ab2dbe 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymouslyImplementMe.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IAnonymouslyImplementMe.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IAnonymouslyImplementMe), fullyQualifiedName: "jsii-calc.IAnonymouslyImplementMe")] + [JsiiInterface(nativeType: typeof(IAnonymouslyImplementMe), fullyQualifiedName: "jsii-calc.compliance.IAnonymouslyImplementMe")] public interface IAnonymouslyImplementMe { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymouslyImplementMeProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IAnonymouslyImplementMeProxy.cs similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymouslyImplementMeProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IAnonymouslyImplementMeProxy.cs index 8332a597ee..22ee493947 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymouslyImplementMeProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IAnonymouslyImplementMeProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IAnonymouslyImplementMe), fullyQualifiedName: "jsii-calc.IAnonymouslyImplementMe")] - internal sealed class IAnonymouslyImplementMeProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IAnonymouslyImplementMe + [JsiiTypeProxy(nativeType: typeof(IAnonymouslyImplementMe), fullyQualifiedName: "jsii-calc.compliance.IAnonymouslyImplementMe")] + internal sealed class IAnonymouslyImplementMeProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IAnonymouslyImplementMe { private IAnonymouslyImplementMeProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnotherPublicInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IAnotherPublicInterface.cs similarity index 80% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnotherPublicInterface.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IAnotherPublicInterface.cs index a9e6e70208..73882af025 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnotherPublicInterface.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IAnotherPublicInterface.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IAnotherPublicInterface), fullyQualifiedName: "jsii-calc.IAnotherPublicInterface")] + [JsiiInterface(nativeType: typeof(IAnotherPublicInterface), fullyQualifiedName: "jsii-calc.compliance.IAnotherPublicInterface")] public interface IAnotherPublicInterface { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnotherPublicInterfaceProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IAnotherPublicInterfaceProxy.cs similarity index 77% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnotherPublicInterfaceProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IAnotherPublicInterfaceProxy.cs index c8cc9365ae..e7b91aea6c 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnotherPublicInterfaceProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IAnotherPublicInterfaceProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IAnotherPublicInterface), fullyQualifiedName: "jsii-calc.IAnotherPublicInterface")] - internal sealed class IAnotherPublicInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IAnotherPublicInterface + [JsiiTypeProxy(nativeType: typeof(IAnotherPublicInterface), fullyQualifiedName: "jsii-calc.compliance.IAnotherPublicInterface")] + internal sealed class IAnotherPublicInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IAnotherPublicInterface { private IAnotherPublicInterfaceProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBell.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IBell.cs similarity index 82% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBell.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IBell.cs index 8d9660f909..7c42661bc5 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBell.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IBell.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IBell), fullyQualifiedName: "jsii-calc.IBell")] + [JsiiInterface(nativeType: typeof(IBell), fullyQualifiedName: "jsii-calc.compliance.IBell")] public interface IBell { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBellProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IBellProxy.cs similarity index 82% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBellProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IBellProxy.cs index c97675e990..dc679e1234 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBellProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IBellProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IBell), fullyQualifiedName: "jsii-calc.IBell")] - internal sealed class IBellProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IBell + [JsiiTypeProxy(nativeType: typeof(IBell), fullyQualifiedName: "jsii-calc.compliance.IBell")] + internal sealed class IBellProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IBell { private IBellProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBellRinger.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IBellRinger.cs similarity index 66% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBellRinger.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IBellRinger.cs index c3ce3e7eee..263619581d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBellRinger.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IBellRinger.cs @@ -2,19 +2,19 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// Takes the object parameter as an interface. /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IBellRinger), fullyQualifiedName: "jsii-calc.IBellRinger")] + [JsiiInterface(nativeType: typeof(IBellRinger), fullyQualifiedName: "jsii-calc.compliance.IBellRinger")] public interface IBellRinger { /// /// Stability: Experimental /// - [JsiiMethod(name: "yourTurn", parametersJson: "[{\"name\":\"bell\",\"type\":{\"fqn\":\"jsii-calc.IBell\"}}]")] - void YourTurn(Amazon.JSII.Tests.CalculatorNamespace.IBell bell); + [JsiiMethod(name: "yourTurn", parametersJson: "[{\"name\":\"bell\",\"type\":{\"fqn\":\"jsii-calc.compliance.IBell\"}}]")] + void YourTurn(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IBell bell); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBellRingerProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IBellRingerProxy.cs similarity index 70% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBellRingerProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IBellRingerProxy.cs index 58c94edc91..796f39064a 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBellRingerProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IBellRingerProxy.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// Takes the object parameter as an interface. /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IBellRinger), fullyQualifiedName: "jsii-calc.IBellRinger")] - internal sealed class IBellRingerProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IBellRinger + [JsiiTypeProxy(nativeType: typeof(IBellRinger), fullyQualifiedName: "jsii-calc.compliance.IBellRinger")] + internal sealed class IBellRingerProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IBellRinger { private IBellRingerProxy(ByRefValue reference): base(reference) { @@ -18,10 +18,10 @@ private IBellRingerProxy(ByRefValue reference): base(reference) /// /// Stability: Experimental /// - [JsiiMethod(name: "yourTurn", parametersJson: "[{\"name\":\"bell\",\"type\":{\"fqn\":\"jsii-calc.IBell\"}}]")] - public void YourTurn(Amazon.JSII.Tests.CalculatorNamespace.IBell bell) + [JsiiMethod(name: "yourTurn", parametersJson: "[{\"name\":\"bell\",\"type\":{\"fqn\":\"jsii-calc.compliance.IBell\"}}]")] + public void YourTurn(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IBell bell) { - InvokeInstanceVoidMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBell)}, new object[]{bell}); + InvokeInstanceVoidMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IBell)}, new object[]{bell}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IChildStruct982.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IChildStruct982.cs similarity index 78% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IChildStruct982.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IChildStruct982.cs index 547a089a6d..8749363116 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IChildStruct982.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IChildStruct982.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IChildStruct982), fullyQualifiedName: "jsii-calc.ChildStruct982")] - public interface IChildStruct982 : Amazon.JSII.Tests.CalculatorNamespace.IParentStruct982 + [JsiiInterface(nativeType: typeof(IChildStruct982), fullyQualifiedName: "jsii-calc.compliance.ChildStruct982")] + public interface IChildStruct982 : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IParentStruct982 { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IConcreteBellRinger.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IConcreteBellRinger.cs similarity index 65% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IConcreteBellRinger.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IConcreteBellRinger.cs index 30046d2fe7..4324154581 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IConcreteBellRinger.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IConcreteBellRinger.cs @@ -2,19 +2,19 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// Takes the object parameter as a calss. /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IConcreteBellRinger), fullyQualifiedName: "jsii-calc.IConcreteBellRinger")] + [JsiiInterface(nativeType: typeof(IConcreteBellRinger), fullyQualifiedName: "jsii-calc.compliance.IConcreteBellRinger")] public interface IConcreteBellRinger { /// /// Stability: Experimental /// - [JsiiMethod(name: "yourTurn", parametersJson: "[{\"name\":\"bell\",\"type\":{\"fqn\":\"jsii-calc.Bell\"}}]")] - void YourTurn(Amazon.JSII.Tests.CalculatorNamespace.Bell bell); + [JsiiMethod(name: "yourTurn", parametersJson: "[{\"name\":\"bell\",\"type\":{\"fqn\":\"jsii-calc.compliance.Bell\"}}]")] + void YourTurn(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Bell bell); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IConcreteBellRingerProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IConcreteBellRingerProxy.cs similarity index 68% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IConcreteBellRingerProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IConcreteBellRingerProxy.cs index 2070d3934b..38c96e00bd 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IConcreteBellRingerProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IConcreteBellRingerProxy.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// Takes the object parameter as a calss. /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IConcreteBellRinger), fullyQualifiedName: "jsii-calc.IConcreteBellRinger")] - internal sealed class IConcreteBellRingerProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IConcreteBellRinger + [JsiiTypeProxy(nativeType: typeof(IConcreteBellRinger), fullyQualifiedName: "jsii-calc.compliance.IConcreteBellRinger")] + internal sealed class IConcreteBellRingerProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IConcreteBellRinger { private IConcreteBellRingerProxy(ByRefValue reference): base(reference) { @@ -18,10 +18,10 @@ private IConcreteBellRingerProxy(ByRefValue reference): base(reference) /// /// Stability: Experimental /// - [JsiiMethod(name: "yourTurn", parametersJson: "[{\"name\":\"bell\",\"type\":{\"fqn\":\"jsii-calc.Bell\"}}]")] - public void YourTurn(Amazon.JSII.Tests.CalculatorNamespace.Bell bell) + [JsiiMethod(name: "yourTurn", parametersJson: "[{\"name\":\"bell\",\"type\":{\"fqn\":\"jsii-calc.compliance.Bell\"}}]")] + public void YourTurn(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Bell bell) { - InvokeInstanceVoidMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Bell)}, new object[]{bell}); + InvokeInstanceVoidMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Bell)}, new object[]{bell}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IConfusingToJacksonStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IConfusingToJacksonStruct.cs similarity index 68% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IConfusingToJacksonStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IConfusingToJacksonStruct.cs index 6f977dec15..4fda1e6d13 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IConfusingToJacksonStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IConfusingToJacksonStruct.cs @@ -2,18 +2,18 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IConfusingToJacksonStruct), fullyQualifiedName: "jsii-calc.ConfusingToJacksonStruct")] + [JsiiInterface(nativeType: typeof(IConfusingToJacksonStruct), fullyQualifiedName: "jsii-calc.compliance.ConfusingToJacksonStruct")] public interface IConfusingToJacksonStruct { /// /// Stability: Experimental /// - [JsiiProperty(name: "unionProperty", typeJson: "{\"union\":{\"types\":[{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"},{\"collection\":{\"elementtype\":{\"union\":{\"types\":[{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"},{\"fqn\":\"jsii-calc.AbstractClass\"}]}},\"kind\":\"array\"}}]}}", isOptional: true)] + [JsiiProperty(name: "unionProperty", typeJson: "{\"union\":{\"types\":[{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"},{\"collection\":{\"elementtype\":{\"union\":{\"types\":[{\"fqn\":\"jsii-calc.compliance.AbstractClass\"},{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"}]}},\"kind\":\"array\"}}]}}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] object? UnionProperty { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDerivedStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IDerivedStruct.cs similarity index 91% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDerivedStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IDerivedStruct.cs index d13374e934..053dd89bc5 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDerivedStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IDerivedStruct.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// A struct which derives from another struct. /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IDerivedStruct), fullyQualifiedName: "jsii-calc.DerivedStruct")] + [JsiiInterface(nativeType: typeof(IDerivedStruct), fullyQualifiedName: "jsii-calc.compliance.DerivedStruct")] public interface IDerivedStruct : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IMyFirstStruct { /// @@ -33,8 +33,8 @@ bool Bool /// /// Stability: Experimental /// - [JsiiProperty(name: "nonPrimitive", typeJson: "{\"fqn\":\"jsii-calc.DoubleTrouble\"}")] - Amazon.JSII.Tests.CalculatorNamespace.DoubleTrouble NonPrimitive + [JsiiProperty(name: "nonPrimitive", typeJson: "{\"fqn\":\"jsii-calc.compliance.DoubleTrouble\"}")] + Amazon.JSII.Tests.CalculatorNamespace.Compliance.DoubleTrouble NonPrimitive { get; } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceBaseLevelStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IDiamondInheritanceBaseLevelStruct.cs similarity index 79% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceBaseLevelStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IDiamondInheritanceBaseLevelStruct.cs index 593ddc3b2f..009be2919e 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceBaseLevelStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IDiamondInheritanceBaseLevelStruct.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IDiamondInheritanceBaseLevelStruct), fullyQualifiedName: "jsii-calc.DiamondInheritanceBaseLevelStruct")] + [JsiiInterface(nativeType: typeof(IDiamondInheritanceBaseLevelStruct), fullyQualifiedName: "jsii-calc.compliance.DiamondInheritanceBaseLevelStruct")] public interface IDiamondInheritanceBaseLevelStruct { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceFirstMidLevelStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IDiamondInheritanceFirstMidLevelStruct.cs similarity index 70% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceFirstMidLevelStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IDiamondInheritanceFirstMidLevelStruct.cs index 122e1e2e8c..a5b4e90f1b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceFirstMidLevelStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IDiamondInheritanceFirstMidLevelStruct.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IDiamondInheritanceFirstMidLevelStruct), fullyQualifiedName: "jsii-calc.DiamondInheritanceFirstMidLevelStruct")] - public interface IDiamondInheritanceFirstMidLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceBaseLevelStruct + [JsiiInterface(nativeType: typeof(IDiamondInheritanceFirstMidLevelStruct), fullyQualifiedName: "jsii-calc.compliance.DiamondInheritanceFirstMidLevelStruct")] + public interface IDiamondInheritanceFirstMidLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IDiamondInheritanceBaseLevelStruct { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceSecondMidLevelStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IDiamondInheritanceSecondMidLevelStruct.cs similarity index 70% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceSecondMidLevelStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IDiamondInheritanceSecondMidLevelStruct.cs index b7d5765c88..d19468a159 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceSecondMidLevelStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IDiamondInheritanceSecondMidLevelStruct.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IDiamondInheritanceSecondMidLevelStruct), fullyQualifiedName: "jsii-calc.DiamondInheritanceSecondMidLevelStruct")] - public interface IDiamondInheritanceSecondMidLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceBaseLevelStruct + [JsiiInterface(nativeType: typeof(IDiamondInheritanceSecondMidLevelStruct), fullyQualifiedName: "jsii-calc.compliance.DiamondInheritanceSecondMidLevelStruct")] + public interface IDiamondInheritanceSecondMidLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IDiamondInheritanceBaseLevelStruct { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceTopLevelStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IDiamondInheritanceTopLevelStruct.cs similarity index 64% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceTopLevelStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IDiamondInheritanceTopLevelStruct.cs index 4db183c2f0..1c5e1ba9b3 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceTopLevelStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IDiamondInheritanceTopLevelStruct.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IDiamondInheritanceTopLevelStruct), fullyQualifiedName: "jsii-calc.DiamondInheritanceTopLevelStruct")] - public interface IDiamondInheritanceTopLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceFirstMidLevelStruct, Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceSecondMidLevelStruct + [JsiiInterface(nativeType: typeof(IDiamondInheritanceTopLevelStruct), fullyQualifiedName: "jsii-calc.compliance.DiamondInheritanceTopLevelStruct")] + public interface IDiamondInheritanceTopLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IDiamondInheritanceFirstMidLevelStruct, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IDiamondInheritanceSecondMidLevelStruct { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IEraseUndefinedHashValuesOptions.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IEraseUndefinedHashValuesOptions.cs similarity index 87% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IEraseUndefinedHashValuesOptions.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IEraseUndefinedHashValuesOptions.cs index 9e531f3fc3..385443aabb 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IEraseUndefinedHashValuesOptions.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IEraseUndefinedHashValuesOptions.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IEraseUndefinedHashValuesOptions), fullyQualifiedName: "jsii-calc.EraseUndefinedHashValuesOptions")] + [JsiiInterface(nativeType: typeof(IEraseUndefinedHashValuesOptions), fullyQualifiedName: "jsii-calc.compliance.EraseUndefinedHashValuesOptions")] public interface IEraseUndefinedHashValuesOptions { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExtendsInternalInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IExtendsInternalInterface.cs similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExtendsInternalInterface.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IExtendsInternalInterface.cs index 4d4acef34c..9282678c0d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExtendsInternalInterface.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IExtendsInternalInterface.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IExtendsInternalInterface), fullyQualifiedName: "jsii-calc.ExtendsInternalInterface")] + [JsiiInterface(nativeType: typeof(IExtendsInternalInterface), fullyQualifiedName: "jsii-calc.compliance.ExtendsInternalInterface")] public interface IExtendsInternalInterface { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExtendsPrivateInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IExtendsPrivateInterface.cs similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExtendsPrivateInterface.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IExtendsPrivateInterface.cs index bfa38ca241..b7086540e6 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExtendsPrivateInterface.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IExtendsPrivateInterface.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IExtendsPrivateInterface), fullyQualifiedName: "jsii-calc.IExtendsPrivateInterface")] + [JsiiInterface(nativeType: typeof(IExtendsPrivateInterface), fullyQualifiedName: "jsii-calc.compliance.IExtendsPrivateInterface")] public interface IExtendsPrivateInterface { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExtendsPrivateInterfaceProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IExtendsPrivateInterfaceProxy.cs similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExtendsPrivateInterfaceProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IExtendsPrivateInterfaceProxy.cs index 1487123ed0..5f5f873b9b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExtendsPrivateInterfaceProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IExtendsPrivateInterfaceProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IExtendsPrivateInterface), fullyQualifiedName: "jsii-calc.IExtendsPrivateInterface")] - internal sealed class IExtendsPrivateInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IExtendsPrivateInterface + [JsiiTypeProxy(nativeType: typeof(IExtendsPrivateInterface), fullyQualifiedName: "jsii-calc.compliance.IExtendsPrivateInterface")] + internal sealed class IExtendsPrivateInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IExtendsPrivateInterface { private IExtendsPrivateInterfaceProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IImplictBaseOfBase.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IImplictBaseOfBase.cs similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IImplictBaseOfBase.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IImplictBaseOfBase.cs index 20d87af703..04c0274dd5 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IImplictBaseOfBase.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IImplictBaseOfBase.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IImplictBaseOfBase), fullyQualifiedName: "jsii-calc.ImplictBaseOfBase")] + [JsiiInterface(nativeType: typeof(IImplictBaseOfBase), fullyQualifiedName: "jsii-calc.compliance.ImplictBaseOfBase")] public interface IImplictBaseOfBase : Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.IBaseProps { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceImplementedByAbstractClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceImplementedByAbstractClass.cs similarity index 80% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceImplementedByAbstractClass.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceImplementedByAbstractClass.cs index 31fb8626cd..d3ee621e04 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceImplementedByAbstractClass.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceImplementedByAbstractClass.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// awslabs/jsii#220 Abstract return type. /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IInterfaceImplementedByAbstractClass), fullyQualifiedName: "jsii-calc.IInterfaceImplementedByAbstractClass")] + [JsiiInterface(nativeType: typeof(IInterfaceImplementedByAbstractClass), fullyQualifiedName: "jsii-calc.compliance.IInterfaceImplementedByAbstractClass")] public interface IInterfaceImplementedByAbstractClass { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceImplementedByAbstractClassProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceImplementedByAbstractClassProxy.cs similarity index 75% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceImplementedByAbstractClassProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceImplementedByAbstractClassProxy.cs index a0a1c599dc..74a6dd6b2b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceImplementedByAbstractClassProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceImplementedByAbstractClassProxy.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// awslabs/jsii#220 Abstract return type. /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IInterfaceImplementedByAbstractClass), fullyQualifiedName: "jsii-calc.IInterfaceImplementedByAbstractClass")] - internal sealed class IInterfaceImplementedByAbstractClassProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceImplementedByAbstractClass + [JsiiTypeProxy(nativeType: typeof(IInterfaceImplementedByAbstractClass), fullyQualifiedName: "jsii-calc.compliance.IInterfaceImplementedByAbstractClass")] + internal sealed class IInterfaceImplementedByAbstractClassProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IInterfaceImplementedByAbstractClass { private IInterfaceImplementedByAbstractClassProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceThatShouldNotBeADataType.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceThatShouldNotBeADataType.cs similarity index 77% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceThatShouldNotBeADataType.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceThatShouldNotBeADataType.cs index 2ed4afd7aa..c01647befb 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceThatShouldNotBeADataType.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceThatShouldNotBeADataType.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype. /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IInterfaceThatShouldNotBeADataType), fullyQualifiedName: "jsii-calc.IInterfaceThatShouldNotBeADataType")] - public interface IInterfaceThatShouldNotBeADataType : Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithMethods + [JsiiInterface(nativeType: typeof(IInterfaceThatShouldNotBeADataType), fullyQualifiedName: "jsii-calc.compliance.IInterfaceThatShouldNotBeADataType")] + public interface IInterfaceThatShouldNotBeADataType : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IInterfaceWithMethods { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceThatShouldNotBeADataTypeProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceThatShouldNotBeADataTypeProxy.cs similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceThatShouldNotBeADataTypeProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceThatShouldNotBeADataTypeProxy.cs index 8d94bf4959..1ca539bb6c 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceThatShouldNotBeADataTypeProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceThatShouldNotBeADataTypeProxy.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype. /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IInterfaceThatShouldNotBeADataType), fullyQualifiedName: "jsii-calc.IInterfaceThatShouldNotBeADataType")] - internal sealed class IInterfaceThatShouldNotBeADataTypeProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceThatShouldNotBeADataType + [JsiiTypeProxy(nativeType: typeof(IInterfaceThatShouldNotBeADataType), fullyQualifiedName: "jsii-calc.compliance.IInterfaceThatShouldNotBeADataType")] + internal sealed class IInterfaceThatShouldNotBeADataTypeProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IInterfaceThatShouldNotBeADataType { private IInterfaceThatShouldNotBeADataTypeProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithInternal.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithInternal.cs similarity index 78% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithInternal.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithInternal.cs index 53ffdd4132..0b0f44374c 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithInternal.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithInternal.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IInterfaceWithInternal), fullyQualifiedName: "jsii-calc.IInterfaceWithInternal")] + [JsiiInterface(nativeType: typeof(IInterfaceWithInternal), fullyQualifiedName: "jsii-calc.compliance.IInterfaceWithInternal")] public interface IInterfaceWithInternal { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithInternalProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithInternalProxy.cs similarity index 76% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithInternalProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithInternalProxy.cs index 7fd3e24542..28afb360de 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithInternalProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithInternalProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IInterfaceWithInternal), fullyQualifiedName: "jsii-calc.IInterfaceWithInternal")] - internal sealed class IInterfaceWithInternalProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithInternal + [JsiiTypeProxy(nativeType: typeof(IInterfaceWithInternal), fullyQualifiedName: "jsii-calc.compliance.IInterfaceWithInternal")] + internal sealed class IInterfaceWithInternalProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IInterfaceWithInternal { private IInterfaceWithInternalProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithMethods.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithMethods.cs similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithMethods.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithMethods.cs index e3f276336c..ab63a075b5 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithMethods.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithMethods.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IInterfaceWithMethods), fullyQualifiedName: "jsii-calc.IInterfaceWithMethods")] + [JsiiInterface(nativeType: typeof(IInterfaceWithMethods), fullyQualifiedName: "jsii-calc.compliance.IInterfaceWithMethods")] public interface IInterfaceWithMethods { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithMethodsProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithMethodsProxy.cs similarity index 82% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithMethodsProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithMethodsProxy.cs index e995d959d3..911d1d61b4 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithMethodsProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithMethodsProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IInterfaceWithMethods), fullyQualifiedName: "jsii-calc.IInterfaceWithMethods")] - internal sealed class IInterfaceWithMethodsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithMethods + [JsiiTypeProxy(nativeType: typeof(IInterfaceWithMethods), fullyQualifiedName: "jsii-calc.compliance.IInterfaceWithMethods")] + internal sealed class IInterfaceWithMethodsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IInterfaceWithMethods { private IInterfaceWithMethodsProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithOptionalMethodArguments.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithOptionalMethodArguments.cs similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithOptionalMethodArguments.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithOptionalMethodArguments.cs index b5dffd51a6..2a084de66b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithOptionalMethodArguments.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithOptionalMethodArguments.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods. /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IInterfaceWithOptionalMethodArguments), fullyQualifiedName: "jsii-calc.IInterfaceWithOptionalMethodArguments")] + [JsiiInterface(nativeType: typeof(IInterfaceWithOptionalMethodArguments), fullyQualifiedName: "jsii-calc.compliance.IInterfaceWithOptionalMethodArguments")] public interface IInterfaceWithOptionalMethodArguments { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithOptionalMethodArgumentsProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithOptionalMethodArgumentsProxy.cs similarity index 79% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithOptionalMethodArgumentsProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithOptionalMethodArgumentsProxy.cs index 6646913a80..67c2a59dde 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithOptionalMethodArgumentsProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithOptionalMethodArgumentsProxy.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods. /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IInterfaceWithOptionalMethodArguments), fullyQualifiedName: "jsii-calc.IInterfaceWithOptionalMethodArguments")] - internal sealed class IInterfaceWithOptionalMethodArgumentsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithOptionalMethodArguments + [JsiiTypeProxy(nativeType: typeof(IInterfaceWithOptionalMethodArguments), fullyQualifiedName: "jsii-calc.compliance.IInterfaceWithOptionalMethodArguments")] + internal sealed class IInterfaceWithOptionalMethodArgumentsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IInterfaceWithOptionalMethodArguments { private IInterfaceWithOptionalMethodArgumentsProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithProperties.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithProperties.cs similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithProperties.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithProperties.cs index 294f1202d9..1a974ae881 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithProperties.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithProperties.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IInterfaceWithProperties), fullyQualifiedName: "jsii-calc.IInterfaceWithProperties")] + [JsiiInterface(nativeType: typeof(IInterfaceWithProperties), fullyQualifiedName: "jsii-calc.compliance.IInterfaceWithProperties")] public interface IInterfaceWithProperties { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithPropertiesExtension.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithPropertiesExtension.cs similarity index 72% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithPropertiesExtension.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithPropertiesExtension.cs index bc3a8dd689..03f2ec3396 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithPropertiesExtension.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithPropertiesExtension.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IInterfaceWithPropertiesExtension), fullyQualifiedName: "jsii-calc.IInterfaceWithPropertiesExtension")] - public interface IInterfaceWithPropertiesExtension : Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithProperties + [JsiiInterface(nativeType: typeof(IInterfaceWithPropertiesExtension), fullyQualifiedName: "jsii-calc.compliance.IInterfaceWithPropertiesExtension")] + public interface IInterfaceWithPropertiesExtension : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IInterfaceWithProperties { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithPropertiesExtensionProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithPropertiesExtensionProxy.cs similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithPropertiesExtensionProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithPropertiesExtensionProxy.cs index 7925b7b394..eec1e0002f 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithPropertiesExtensionProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithPropertiesExtensionProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IInterfaceWithPropertiesExtension), fullyQualifiedName: "jsii-calc.IInterfaceWithPropertiesExtension")] - internal sealed class IInterfaceWithPropertiesExtensionProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithPropertiesExtension + [JsiiTypeProxy(nativeType: typeof(IInterfaceWithPropertiesExtension), fullyQualifiedName: "jsii-calc.compliance.IInterfaceWithPropertiesExtension")] + internal sealed class IInterfaceWithPropertiesExtensionProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IInterfaceWithPropertiesExtension { private IInterfaceWithPropertiesExtensionProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithPropertiesProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithPropertiesProxy.cs similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithPropertiesProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithPropertiesProxy.cs index 4e38afd9d6..d424650fb5 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithPropertiesProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithPropertiesProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IInterfaceWithProperties), fullyQualifiedName: "jsii-calc.IInterfaceWithProperties")] - internal sealed class IInterfaceWithPropertiesProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithProperties + [JsiiTypeProxy(nativeType: typeof(IInterfaceWithProperties), fullyQualifiedName: "jsii-calc.compliance.IInterfaceWithProperties")] + internal sealed class IInterfaceWithPropertiesProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IInterfaceWithProperties { private IInterfaceWithPropertiesProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ILoadBalancedFargateServiceProps.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ILoadBalancedFargateServiceProps.cs similarity index 96% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ILoadBalancedFargateServiceProps.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ILoadBalancedFargateServiceProps.cs index 13e935d855..8f1a81eaf2 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ILoadBalancedFargateServiceProps.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ILoadBalancedFargateServiceProps.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// jsii#298: show default values in sphinx documentation, and respect newlines. /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(ILoadBalancedFargateServiceProps), fullyQualifiedName: "jsii-calc.LoadBalancedFargateServiceProps")] + [JsiiInterface(nativeType: typeof(ILoadBalancedFargateServiceProps), fullyQualifiedName: "jsii-calc.compliance.LoadBalancedFargateServiceProps")] public interface ILoadBalancedFargateServiceProps { /// The container port of the application load balancer attached to your Fargate service. diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IMutableObjectLiteral.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IMutableObjectLiteral.cs similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IMutableObjectLiteral.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IMutableObjectLiteral.cs index 4a4a0ef2ec..6d913069f2 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IMutableObjectLiteral.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IMutableObjectLiteral.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IMutableObjectLiteral), fullyQualifiedName: "jsii-calc.IMutableObjectLiteral")] + [JsiiInterface(nativeType: typeof(IMutableObjectLiteral), fullyQualifiedName: "jsii-calc.compliance.IMutableObjectLiteral")] public interface IMutableObjectLiteral { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IMutableObjectLiteralProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IMutableObjectLiteralProxy.cs similarity index 78% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IMutableObjectLiteralProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IMutableObjectLiteralProxy.cs index d40ea185a4..5ab915810e 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IMutableObjectLiteralProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IMutableObjectLiteralProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IMutableObjectLiteral), fullyQualifiedName: "jsii-calc.IMutableObjectLiteral")] - internal sealed class IMutableObjectLiteralProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IMutableObjectLiteral + [JsiiTypeProxy(nativeType: typeof(IMutableObjectLiteral), fullyQualifiedName: "jsii-calc.compliance.IMutableObjectLiteral")] + internal sealed class IMutableObjectLiteralProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IMutableObjectLiteral { private IMutableObjectLiteralProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INestedStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/INestedStruct.cs similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INestedStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/INestedStruct.cs index 0a9b2170b4..357db989b4 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INestedStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/INestedStruct.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(INestedStruct), fullyQualifiedName: "jsii-calc.NestedStruct")] + [JsiiInterface(nativeType: typeof(INestedStruct), fullyQualifiedName: "jsii-calc.compliance.NestedStruct")] public interface INestedStruct { /// When provided, must be > 0. diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INonInternalInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/INonInternalInterface.cs similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INonInternalInterface.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/INonInternalInterface.cs index 74382048e8..d27d8b0ac6 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INonInternalInterface.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/INonInternalInterface.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(INonInternalInterface), fullyQualifiedName: "jsii-calc.INonInternalInterface")] - public interface INonInternalInterface : Amazon.JSII.Tests.CalculatorNamespace.IAnotherPublicInterface + [JsiiInterface(nativeType: typeof(INonInternalInterface), fullyQualifiedName: "jsii-calc.compliance.INonInternalInterface")] + public interface INonInternalInterface : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IAnotherPublicInterface { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INonInternalInterfaceProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/INonInternalInterfaceProxy.cs similarity index 87% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INonInternalInterfaceProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/INonInternalInterfaceProxy.cs index 9aef3b93df..2d777be636 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INonInternalInterfaceProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/INonInternalInterfaceProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(INonInternalInterface), fullyQualifiedName: "jsii-calc.INonInternalInterface")] - internal sealed class INonInternalInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.INonInternalInterface + [JsiiTypeProxy(nativeType: typeof(INonInternalInterface), fullyQualifiedName: "jsii-calc.compliance.INonInternalInterface")] + internal sealed class INonInternalInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.INonInternalInterface { private INonInternalInterfaceProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INullShouldBeTreatedAsUndefinedData.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/INullShouldBeTreatedAsUndefinedData.cs similarity index 87% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INullShouldBeTreatedAsUndefinedData.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/INullShouldBeTreatedAsUndefinedData.cs index e2961d22da..a1270a6e7e 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INullShouldBeTreatedAsUndefinedData.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/INullShouldBeTreatedAsUndefinedData.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(INullShouldBeTreatedAsUndefinedData), fullyQualifiedName: "jsii-calc.NullShouldBeTreatedAsUndefinedData")] + [JsiiInterface(nativeType: typeof(INullShouldBeTreatedAsUndefinedData), fullyQualifiedName: "jsii-calc.compliance.NullShouldBeTreatedAsUndefinedData")] public interface INullShouldBeTreatedAsUndefinedData { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IObjectWithProperty.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IObjectWithProperty.cs similarity index 87% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IObjectWithProperty.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IObjectWithProperty.cs index 2851ffe3cf..b765d11be7 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IObjectWithProperty.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IObjectWithProperty.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// Make sure that setters are properly called on objects with interfaces. /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IObjectWithProperty), fullyQualifiedName: "jsii-calc.IObjectWithProperty")] + [JsiiInterface(nativeType: typeof(IObjectWithProperty), fullyQualifiedName: "jsii-calc.compliance.IObjectWithProperty")] public interface IObjectWithProperty { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IObjectWithPropertyProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IObjectWithPropertyProxy.cs similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IObjectWithPropertyProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IObjectWithPropertyProxy.cs index f56faa6f35..d4a89ac73f 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IObjectWithPropertyProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IObjectWithPropertyProxy.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// Make sure that setters are properly called on objects with interfaces. /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IObjectWithProperty), fullyQualifiedName: "jsii-calc.IObjectWithProperty")] - internal sealed class IObjectWithPropertyProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IObjectWithProperty + [JsiiTypeProxy(nativeType: typeof(IObjectWithProperty), fullyQualifiedName: "jsii-calc.compliance.IObjectWithProperty")] + internal sealed class IObjectWithPropertyProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IObjectWithProperty { private IObjectWithPropertyProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IOptionalMethod.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IOptionalMethod.cs similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IOptionalMethod.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IOptionalMethod.cs index 65f2b701fa..62494f192d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IOptionalMethod.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IOptionalMethod.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// Checks that optional result from interface method code generates correctly. /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IOptionalMethod), fullyQualifiedName: "jsii-calc.IOptionalMethod")] + [JsiiInterface(nativeType: typeof(IOptionalMethod), fullyQualifiedName: "jsii-calc.compliance.IOptionalMethod")] public interface IOptionalMethod { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IOptionalMethodProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IOptionalMethodProxy.cs similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IOptionalMethodProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IOptionalMethodProxy.cs index fc24f81181..e600535e85 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IOptionalMethodProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IOptionalMethodProxy.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// Checks that optional result from interface method code generates correctly. /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IOptionalMethod), fullyQualifiedName: "jsii-calc.IOptionalMethod")] - internal sealed class IOptionalMethodProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IOptionalMethod + [JsiiTypeProxy(nativeType: typeof(IOptionalMethod), fullyQualifiedName: "jsii-calc.compliance.IOptionalMethod")] + internal sealed class IOptionalMethodProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IOptionalMethod { private IOptionalMethodProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IOptionalStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IOptionalStruct.cs similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IOptionalStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IOptionalStruct.cs index f843be2012..c20c2bc8c3 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IOptionalStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IOptionalStruct.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IOptionalStruct), fullyQualifiedName: "jsii-calc.OptionalStruct")] + [JsiiInterface(nativeType: typeof(IOptionalStruct), fullyQualifiedName: "jsii-calc.compliance.OptionalStruct")] public interface IOptionalStruct { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IParentStruct982.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IParentStruct982.cs similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IParentStruct982.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IParentStruct982.cs index 6cb0e65e6d..a30e018826 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IParentStruct982.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IParentStruct982.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// https://github.com/aws/jsii/issues/982. /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IParentStruct982), fullyQualifiedName: "jsii-calc.ParentStruct982")] + [JsiiInterface(nativeType: typeof(IParentStruct982), fullyQualifiedName: "jsii-calc.compliance.ParentStruct982")] public interface IParentStruct982 { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPrivatelyImplemented.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IPrivatelyImplemented.cs similarity index 80% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPrivatelyImplemented.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IPrivatelyImplemented.cs index e90b1a7344..4a60ebe620 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPrivatelyImplemented.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IPrivatelyImplemented.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IPrivatelyImplemented), fullyQualifiedName: "jsii-calc.IPrivatelyImplemented")] + [JsiiInterface(nativeType: typeof(IPrivatelyImplemented), fullyQualifiedName: "jsii-calc.compliance.IPrivatelyImplemented")] public interface IPrivatelyImplemented { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPrivatelyImplementedProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IPrivatelyImplementedProxy.cs similarity index 77% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPrivatelyImplementedProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IPrivatelyImplementedProxy.cs index 5b545a9197..bb5c981a2f 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPrivatelyImplementedProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IPrivatelyImplementedProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IPrivatelyImplemented), fullyQualifiedName: "jsii-calc.IPrivatelyImplemented")] - internal sealed class IPrivatelyImplementedProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IPrivatelyImplemented + [JsiiTypeProxy(nativeType: typeof(IPrivatelyImplemented), fullyQualifiedName: "jsii-calc.compliance.IPrivatelyImplemented")] + internal sealed class IPrivatelyImplementedProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IPrivatelyImplemented { private IPrivatelyImplementedProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IPublicInterface.cs similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterface.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IPublicInterface.cs index a90f2de934..25edc55397 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterface.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IPublicInterface.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IPublicInterface), fullyQualifiedName: "jsii-calc.IPublicInterface")] + [JsiiInterface(nativeType: typeof(IPublicInterface), fullyQualifiedName: "jsii-calc.compliance.IPublicInterface")] public interface IPublicInterface { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterface2.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IPublicInterface2.cs similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterface2.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IPublicInterface2.cs index 42fb8a9d20..f21ad1e35f 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterface2.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IPublicInterface2.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IPublicInterface2), fullyQualifiedName: "jsii-calc.IPublicInterface2")] + [JsiiInterface(nativeType: typeof(IPublicInterface2), fullyQualifiedName: "jsii-calc.compliance.IPublicInterface2")] public interface IPublicInterface2 { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterface2Proxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IPublicInterface2Proxy.cs similarity index 80% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterface2Proxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IPublicInterface2Proxy.cs index ca9ec52744..16138f634d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterface2Proxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IPublicInterface2Proxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IPublicInterface2), fullyQualifiedName: "jsii-calc.IPublicInterface2")] - internal sealed class IPublicInterface2Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface2 + [JsiiTypeProxy(nativeType: typeof(IPublicInterface2), fullyQualifiedName: "jsii-calc.compliance.IPublicInterface2")] + internal sealed class IPublicInterface2Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IPublicInterface2 { private IPublicInterface2Proxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterfaceProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IPublicInterfaceProxy.cs similarity index 80% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterfaceProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IPublicInterfaceProxy.cs index b0a9c3a4d8..e4ebd4cca3 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterfaceProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IPublicInterfaceProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IPublicInterface), fullyQualifiedName: "jsii-calc.IPublicInterface")] - internal sealed class IPublicInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface + [JsiiTypeProxy(nativeType: typeof(IPublicInterface), fullyQualifiedName: "jsii-calc.compliance.IPublicInterface")] + internal sealed class IPublicInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IPublicInterface { private IPublicInterfaceProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnJsii976.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IReturnJsii976.cs similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnJsii976.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IReturnJsii976.cs index 451472dc8f..ff279f86af 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnJsii976.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IReturnJsii976.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// Returns a subclass of a known class which implements an interface. /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IReturnJsii976), fullyQualifiedName: "jsii-calc.IReturnJsii976")] + [JsiiInterface(nativeType: typeof(IReturnJsii976), fullyQualifiedName: "jsii-calc.compliance.IReturnJsii976")] public interface IReturnJsii976 { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnJsii976Proxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IReturnJsii976Proxy.cs similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnJsii976Proxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IReturnJsii976Proxy.cs index e0e1417885..d0e4850dda 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnJsii976Proxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IReturnJsii976Proxy.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// Returns a subclass of a known class which implements an interface. /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IReturnJsii976), fullyQualifiedName: "jsii-calc.IReturnJsii976")] - internal sealed class IReturnJsii976Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IReturnJsii976 + [JsiiTypeProxy(nativeType: typeof(IReturnJsii976), fullyQualifiedName: "jsii-calc.compliance.IReturnJsii976")] + internal sealed class IReturnJsii976Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IReturnJsii976 { private IReturnJsii976Proxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnsNumber.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IReturnsNumber.cs similarity index 89% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnsNumber.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IReturnsNumber.cs index 58caa1a521..ee3b1837d9 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnsNumber.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IReturnsNumber.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IReturnsNumber), fullyQualifiedName: "jsii-calc.IReturnsNumber")] + [JsiiInterface(nativeType: typeof(IReturnsNumber), fullyQualifiedName: "jsii-calc.compliance.IReturnsNumber")] public interface IReturnsNumber { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnsNumberProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IReturnsNumberProxy.cs similarity index 88% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnsNumberProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IReturnsNumberProxy.cs index d5d7968841..8a69ce8dc0 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnsNumberProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IReturnsNumberProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IReturnsNumber), fullyQualifiedName: "jsii-calc.IReturnsNumber")] - internal sealed class IReturnsNumberProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IReturnsNumber + [JsiiTypeProxy(nativeType: typeof(IReturnsNumber), fullyQualifiedName: "jsii-calc.compliance.IReturnsNumber")] + internal sealed class IReturnsNumberProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IReturnsNumber { private IReturnsNumberProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IRootStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IRootStruct.cs similarity index 82% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IRootStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IRootStruct.cs index ab6087c2a4..4318eff604 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IRootStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IRootStruct.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary. /// @@ -11,7 +11,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IRootStruct), fullyQualifiedName: "jsii-calc.RootStruct")] + [JsiiInterface(nativeType: typeof(IRootStruct), fullyQualifiedName: "jsii-calc.compliance.RootStruct")] public interface IRootStruct { /// May not be empty. @@ -27,9 +27,9 @@ string StringProp /// /// Stability: Experimental /// - [JsiiProperty(name: "nestedStruct", typeJson: "{\"fqn\":\"jsii-calc.NestedStruct\"}", isOptional: true)] + [JsiiProperty(name: "nestedStruct", typeJson: "{\"fqn\":\"jsii-calc.compliance.NestedStruct\"}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] - Amazon.JSII.Tests.CalculatorNamespace.INestedStruct? NestedStruct + Amazon.JSII.Tests.CalculatorNamespace.Compliance.INestedStruct? NestedStruct { get { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ISecondLevelStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ISecondLevelStruct.cs similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ISecondLevelStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ISecondLevelStruct.cs index 9a04203a0a..6ed2309318 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ISecondLevelStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ISecondLevelStruct.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(ISecondLevelStruct), fullyQualifiedName: "jsii-calc.SecondLevelStruct")] + [JsiiInterface(nativeType: typeof(ISecondLevelStruct), fullyQualifiedName: "jsii-calc.compliance.SecondLevelStruct")] public interface ISecondLevelStruct { /// It's long and required. diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructA.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IStructA.cs similarity index 93% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructA.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IStructA.cs index 82fc21e9dc..2fec1689b6 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructA.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IStructA.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// We can serialize and deserialize structs without silently ignoring optional fields. /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IStructA), fullyQualifiedName: "jsii-calc.StructA")] + [JsiiInterface(nativeType: typeof(IStructA), fullyQualifiedName: "jsii-calc.compliance.StructA")] public interface IStructA { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructB.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IStructB.cs similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructB.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IStructB.cs index 0f8b980847..ce9627a389 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructB.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IStructB.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// This intentionally overlaps with StructA (where only requiredString is provided) to test htat the kernel properly disambiguates those. /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IStructB), fullyQualifiedName: "jsii-calc.StructB")] + [JsiiInterface(nativeType: typeof(IStructB), fullyQualifiedName: "jsii-calc.compliance.StructB")] public interface IStructB { /// @@ -36,9 +36,9 @@ string RequiredString /// /// Stability: Experimental /// - [JsiiProperty(name: "optionalStructA", typeJson: "{\"fqn\":\"jsii-calc.StructA\"}", isOptional: true)] + [JsiiProperty(name: "optionalStructA", typeJson: "{\"fqn\":\"jsii-calc.compliance.StructA\"}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] - Amazon.JSII.Tests.CalculatorNamespace.IStructA? OptionalStructA + Amazon.JSII.Tests.CalculatorNamespace.Compliance.IStructA? OptionalStructA { get { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructParameterType.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IStructParameterType.cs similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructParameterType.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IStructParameterType.cs index 0add06f85c..2071743858 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructParameterType.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IStructParameterType.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// Verifies that, in languages that do keyword lifting (e.g: Python), having a struct member with the same name as a positional parameter results in the correct code being emitted. /// @@ -10,7 +10,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IStructParameterType), fullyQualifiedName: "jsii-calc.StructParameterType")] + [JsiiInterface(nativeType: typeof(IStructParameterType), fullyQualifiedName: "jsii-calc.compliance.StructParameterType")] public interface IStructParameterType { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructReturningDelegate.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IStructReturningDelegate.cs similarity index 67% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructReturningDelegate.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IStructReturningDelegate.cs index 33fc919397..294509fab2 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructReturningDelegate.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IStructReturningDelegate.cs @@ -2,19 +2,19 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// Verifies that a "pure" implementation of an interface works correctly. /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IStructReturningDelegate), fullyQualifiedName: "jsii-calc.IStructReturningDelegate")] + [JsiiInterface(nativeType: typeof(IStructReturningDelegate), fullyQualifiedName: "jsii-calc.compliance.IStructReturningDelegate")] public interface IStructReturningDelegate { /// /// Stability: Experimental /// - [JsiiMethod(name: "returnStruct", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.StructB\"}}")] - Amazon.JSII.Tests.CalculatorNamespace.IStructB ReturnStruct(); + [JsiiMethod(name: "returnStruct", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.StructB\"}}")] + Amazon.JSII.Tests.CalculatorNamespace.Compliance.IStructB ReturnStruct(); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructReturningDelegateProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IStructReturningDelegateProxy.cs similarity index 64% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructReturningDelegateProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IStructReturningDelegateProxy.cs index 60a2535e65..d799fc4996 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructReturningDelegateProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IStructReturningDelegateProxy.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// Verifies that a "pure" implementation of an interface works correctly. /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IStructReturningDelegate), fullyQualifiedName: "jsii-calc.IStructReturningDelegate")] - internal sealed class IStructReturningDelegateProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IStructReturningDelegate + [JsiiTypeProxy(nativeType: typeof(IStructReturningDelegate), fullyQualifiedName: "jsii-calc.compliance.IStructReturningDelegate")] + internal sealed class IStructReturningDelegateProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IStructReturningDelegate { private IStructReturningDelegateProxy(ByRefValue reference): base(reference) { @@ -18,10 +18,10 @@ private IStructReturningDelegateProxy(ByRefValue reference): base(reference) /// /// Stability: Experimental /// - [JsiiMethod(name: "returnStruct", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.StructB\"}}")] - public Amazon.JSII.Tests.CalculatorNamespace.IStructB ReturnStruct() + [JsiiMethod(name: "returnStruct", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.StructB\"}}")] + public Amazon.JSII.Tests.CalculatorNamespace.Compliance.IStructB ReturnStruct() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructWithJavaReservedWords.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IStructWithJavaReservedWords.cs similarity index 92% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructWithJavaReservedWords.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IStructWithJavaReservedWords.cs index 626cc39b76..447cc30a42 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructWithJavaReservedWords.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IStructWithJavaReservedWords.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IStructWithJavaReservedWords), fullyQualifiedName: "jsii-calc.StructWithJavaReservedWords")] + [JsiiInterface(nativeType: typeof(IStructWithJavaReservedWords), fullyQualifiedName: "jsii-calc.compliance.StructWithJavaReservedWords")] public interface IStructWithJavaReservedWords { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ISupportsNiceJavaBuilderProps.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ISupportsNiceJavaBuilderProps.cs similarity index 89% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ISupportsNiceJavaBuilderProps.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ISupportsNiceJavaBuilderProps.cs index 7ab379d0ed..482eb7b0c4 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ISupportsNiceJavaBuilderProps.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ISupportsNiceJavaBuilderProps.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(ISupportsNiceJavaBuilderProps), fullyQualifiedName: "jsii-calc.SupportsNiceJavaBuilderProps")] + [JsiiInterface(nativeType: typeof(ISupportsNiceJavaBuilderProps), fullyQualifiedName: "jsii-calc.compliance.SupportsNiceJavaBuilderProps")] public interface ISupportsNiceJavaBuilderProps { /// Some number, like 42. diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ITopLevelStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ITopLevelStruct.cs similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ITopLevelStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ITopLevelStruct.cs index de85a44c62..ac1e006004 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ITopLevelStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ITopLevelStruct.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(ITopLevelStruct), fullyQualifiedName: "jsii-calc.TopLevelStruct")] + [JsiiInterface(nativeType: typeof(ITopLevelStruct), fullyQualifiedName: "jsii-calc.compliance.TopLevelStruct")] public interface ITopLevelStruct { /// This is a required field. @@ -24,7 +24,7 @@ string Required /// /// Stability: Experimental /// - [JsiiProperty(name: "secondLevel", typeJson: "{\"union\":{\"types\":[{\"primitive\":\"number\"},{\"fqn\":\"jsii-calc.SecondLevelStruct\"}]}}")] + [JsiiProperty(name: "secondLevel", typeJson: "{\"union\":{\"types\":[{\"primitive\":\"number\"},{\"fqn\":\"jsii-calc.compliance.SecondLevelStruct\"}]}}")] object SecondLevel { get; diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IUnionProperties.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IUnionProperties.cs similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IUnionProperties.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IUnionProperties.cs index 1dfd5102f4..94224ec10e 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IUnionProperties.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IUnionProperties.cs @@ -2,18 +2,18 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IUnionProperties), fullyQualifiedName: "jsii-calc.UnionProperties")] + [JsiiInterface(nativeType: typeof(IUnionProperties), fullyQualifiedName: "jsii-calc.compliance.UnionProperties")] public interface IUnionProperties { /// /// Stability: Experimental /// - [JsiiProperty(name: "bar", typeJson: "{\"union\":{\"types\":[{\"primitive\":\"string\"},{\"primitive\":\"number\"},{\"fqn\":\"jsii-calc.AllTypes\"}]}}")] + [JsiiProperty(name: "bar", typeJson: "{\"union\":{\"types\":[{\"primitive\":\"string\"},{\"primitive\":\"number\"},{\"fqn\":\"jsii-calc.compliance.AllTypes\"}]}}")] object Bar { get; diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementInternalInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ImplementInternalInterface.cs similarity index 89% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementInternalInterface.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ImplementInternalInterface.cs index 6598fd1979..345eb7ead6 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementInternalInterface.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ImplementInternalInterface.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ImplementInternalInterface), fullyQualifiedName: "jsii-calc.ImplementInternalInterface")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ImplementInternalInterface), fullyQualifiedName: "jsii-calc.compliance.ImplementInternalInterface")] public class ImplementInternalInterface : DeputyBase { public ImplementInternalInterface(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Implementation.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Implementation.cs similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Implementation.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Implementation.cs index 2af0448b4f..ec31119b50 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Implementation.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Implementation.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Implementation), fullyQualifiedName: "jsii-calc.Implementation")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Implementation), fullyQualifiedName: "jsii-calc.compliance.Implementation")] public class Implementation : DeputyBase { public Implementation(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementsInterfaceWithInternal.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ImplementsInterfaceWithInternal.cs similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementsInterfaceWithInternal.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ImplementsInterfaceWithInternal.cs index e0c9d93e4d..81f3bc49cc 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementsInterfaceWithInternal.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ImplementsInterfaceWithInternal.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ImplementsInterfaceWithInternal), fullyQualifiedName: "jsii-calc.ImplementsInterfaceWithInternal")] - public class ImplementsInterfaceWithInternal : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithInternal + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ImplementsInterfaceWithInternal), fullyQualifiedName: "jsii-calc.compliance.ImplementsInterfaceWithInternal")] + public class ImplementsInterfaceWithInternal : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IInterfaceWithInternal { public ImplementsInterfaceWithInternal(): base(new DeputyProps(new object[]{})) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementsInterfaceWithInternalSubclass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ImplementsInterfaceWithInternalSubclass.cs similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementsInterfaceWithInternalSubclass.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ImplementsInterfaceWithInternalSubclass.cs index 530305ecb8..9a10a7001c 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementsInterfaceWithInternalSubclass.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ImplementsInterfaceWithInternalSubclass.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ImplementsInterfaceWithInternalSubclass), fullyQualifiedName: "jsii-calc.ImplementsInterfaceWithInternalSubclass")] - public class ImplementsInterfaceWithInternalSubclass : Amazon.JSII.Tests.CalculatorNamespace.ImplementsInterfaceWithInternal + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ImplementsInterfaceWithInternalSubclass), fullyQualifiedName: "jsii-calc.compliance.ImplementsInterfaceWithInternalSubclass")] + public class ImplementsInterfaceWithInternalSubclass : Amazon.JSII.Tests.CalculatorNamespace.Compliance.ImplementsInterfaceWithInternal { public ImplementsInterfaceWithInternalSubclass(): base(new DeputyProps(new object[]{})) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementsPrivateInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ImplementsPrivateInterface.cs similarity index 89% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementsPrivateInterface.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ImplementsPrivateInterface.cs index c8363c6b4d..a3b4f9995f 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementsPrivateInterface.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ImplementsPrivateInterface.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ImplementsPrivateInterface), fullyQualifiedName: "jsii-calc.ImplementsPrivateInterface")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ImplementsPrivateInterface), fullyQualifiedName: "jsii-calc.compliance.ImplementsPrivateInterface")] public class ImplementsPrivateInterface : DeputyBase { public ImplementsPrivateInterface(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplictBaseOfBase.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ImplictBaseOfBase.cs similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplictBaseOfBase.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ImplictBaseOfBase.cs index c71598f91b..8ba4a298d6 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplictBaseOfBase.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ImplictBaseOfBase.cs @@ -2,15 +2,15 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { #pragma warning disable CS8618 /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.ImplictBaseOfBase")] - public class ImplictBaseOfBase : Amazon.JSII.Tests.CalculatorNamespace.IImplictBaseOfBase + [JsiiByValue(fqn: "jsii-calc.compliance.ImplictBaseOfBase")] + public class ImplictBaseOfBase : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IImplictBaseOfBase { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplictBaseOfBaseProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ImplictBaseOfBaseProxy.cs similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplictBaseOfBaseProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ImplictBaseOfBaseProxy.cs index 9fbd7b9fd1..011423e2ec 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplictBaseOfBaseProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ImplictBaseOfBaseProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IImplictBaseOfBase), fullyQualifiedName: "jsii-calc.ImplictBaseOfBase")] - internal sealed class ImplictBaseOfBaseProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IImplictBaseOfBase + [JsiiTypeProxy(nativeType: typeof(IImplictBaseOfBase), fullyQualifiedName: "jsii-calc.compliance.ImplictBaseOfBase")] + internal sealed class ImplictBaseOfBaseProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IImplictBaseOfBase { private ImplictBaseOfBaseProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InbetweenClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InbetweenClass.cs similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InbetweenClass.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InbetweenClass.cs index 754b6b065b..9b4164028c 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InbetweenClass.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InbetweenClass.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.InbetweenClass), fullyQualifiedName: "jsii-calc.InbetweenClass")] - public class InbetweenClass : Amazon.JSII.Tests.CalculatorNamespace.PublicClass, Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface2 + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.InbetweenClass), fullyQualifiedName: "jsii-calc.compliance.InbetweenClass")] + public class InbetweenClass : Amazon.JSII.Tests.CalculatorNamespace.Compliance.PublicClass, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IPublicInterface2 { public InbetweenClass(): base(new DeputyProps(new object[]{})) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceCollections.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceCollections.cs similarity index 58% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceCollections.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceCollections.cs index c913a9de18..601b0fe1e0 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceCollections.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceCollections.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// Verifies that collections of interfaces or structs are correctly handled. /// @@ -10,7 +10,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceCollections), fullyQualifiedName: "jsii-calc.InterfaceCollections")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.InterfaceCollections), fullyQualifiedName: "jsii-calc.compliance.InterfaceCollections")] public class InterfaceCollections : DeputyBase { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference @@ -30,37 +30,37 @@ protected InterfaceCollections(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "listOfInterfaces", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"jsii-calc.IBell\"},\"kind\":\"array\"}}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.IBell[] ListOfInterfaces() + [JsiiMethod(name: "listOfInterfaces", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"jsii-calc.compliance.IBell\"},\"kind\":\"array\"}}}")] + public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.IBell[] ListOfInterfaces() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceCollections), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.InterfaceCollections), new System.Type[]{}, new object[]{}); } /// /// Stability: Experimental /// - [JsiiMethod(name: "listOfStructs", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"jsii-calc.StructA\"},\"kind\":\"array\"}}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.IStructA[] ListOfStructs() + [JsiiMethod(name: "listOfStructs", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"jsii-calc.compliance.StructA\"},\"kind\":\"array\"}}}")] + public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.IStructA[] ListOfStructs() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceCollections), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.InterfaceCollections), new System.Type[]{}, new object[]{}); } /// /// Stability: Experimental /// - [JsiiMethod(name: "mapOfInterfaces", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"jsii-calc.IBell\"},\"kind\":\"map\"}}}")] - public static System.Collections.Generic.IDictionary MapOfInterfaces() + [JsiiMethod(name: "mapOfInterfaces", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"jsii-calc.compliance.IBell\"},\"kind\":\"map\"}}}")] + public static System.Collections.Generic.IDictionary MapOfInterfaces() { - return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceCollections), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.InterfaceCollections), new System.Type[]{}, new object[]{}); } /// /// Stability: Experimental /// - [JsiiMethod(name: "mapOfStructs", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"jsii-calc.StructA\"},\"kind\":\"map\"}}}")] - public static System.Collections.Generic.IDictionary MapOfStructs() + [JsiiMethod(name: "mapOfStructs", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"jsii-calc.compliance.StructA\"},\"kind\":\"map\"}}}")] + public static System.Collections.Generic.IDictionary MapOfStructs() { - return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceCollections), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.InterfaceCollections), new System.Type[]{}, new object[]{}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/Foo.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceIncludesClasses/Foo.cs similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/Foo.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceIncludesClasses/Foo.cs index 3e34aa2f00..29d84f3bd9 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/Foo.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceIncludesClasses/Foo.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClasses +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance.InterfaceInNamespaceIncludesClasses { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClasses.Foo), fullyQualifiedName: "jsii-calc.InterfaceInNamespaceIncludesClasses.Foo")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.InterfaceInNamespaceIncludesClasses.Foo), fullyQualifiedName: "jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Foo")] public class Foo : DeputyBase { public Foo(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceOnlyInterface/Hello.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceIncludesClasses/Hello.cs similarity index 61% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceOnlyInterface/Hello.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceIncludesClasses/Hello.cs index d0f4347ac5..49b2c08c3f 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceOnlyInterface/Hello.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceIncludesClasses/Hello.cs @@ -2,15 +2,15 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceOnlyInterface +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance.InterfaceInNamespaceIncludesClasses { #pragma warning disable CS8618 /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.InterfaceInNamespaceOnlyInterface.Hello")] - public class Hello : Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceOnlyInterface.IHello + [JsiiByValue(fqn: "jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Hello")] + public class Hello : Amazon.JSII.Tests.CalculatorNamespace.Compliance.InterfaceInNamespaceIncludesClasses.IHello { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceOnlyInterface/HelloProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceIncludesClasses/HelloProxy.cs similarity index 73% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceOnlyInterface/HelloProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceIncludesClasses/HelloProxy.cs index ff0c6f5ade..e6e462f1ae 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceOnlyInterface/HelloProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceIncludesClasses/HelloProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceOnlyInterface +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance.InterfaceInNamespaceIncludesClasses { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IHello), fullyQualifiedName: "jsii-calc.InterfaceInNamespaceOnlyInterface.Hello")] - internal sealed class HelloProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceOnlyInterface.IHello + [JsiiTypeProxy(nativeType: typeof(IHello), fullyQualifiedName: "jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Hello")] + internal sealed class HelloProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.InterfaceInNamespaceIncludesClasses.IHello { private HelloProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/IHello.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceIncludesClasses/IHello.cs similarity index 75% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/IHello.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceIncludesClasses/IHello.cs index ea8cc39ce2..5ac2235440 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/IHello.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceIncludesClasses/IHello.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClasses +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance.InterfaceInNamespaceIncludesClasses { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IHello), fullyQualifiedName: "jsii-calc.InterfaceInNamespaceIncludesClasses.Hello")] + [JsiiInterface(nativeType: typeof(IHello), fullyQualifiedName: "jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Hello")] public interface IHello { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/Hello.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceOnlyInterface/Hello.cs similarity index 62% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/Hello.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceOnlyInterface/Hello.cs index 01f793a673..a694e04f49 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/Hello.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceOnlyInterface/Hello.cs @@ -2,15 +2,15 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClasses +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance.InterfaceInNamespaceOnlyInterface { #pragma warning disable CS8618 /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.InterfaceInNamespaceIncludesClasses.Hello")] - public class Hello : Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClasses.IHello + [JsiiByValue(fqn: "jsii-calc.compliance.InterfaceInNamespaceOnlyInterface.Hello")] + public class Hello : Amazon.JSII.Tests.CalculatorNamespace.Compliance.InterfaceInNamespaceOnlyInterface.IHello { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/HelloProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceOnlyInterface/HelloProxy.cs similarity index 73% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/HelloProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceOnlyInterface/HelloProxy.cs index 99836531c8..7e835d1a70 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/HelloProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceOnlyInterface/HelloProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClasses +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance.InterfaceInNamespaceOnlyInterface { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IHello), fullyQualifiedName: "jsii-calc.InterfaceInNamespaceIncludesClasses.Hello")] - internal sealed class HelloProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClasses.IHello + [JsiiTypeProxy(nativeType: typeof(IHello), fullyQualifiedName: "jsii-calc.compliance.InterfaceInNamespaceOnlyInterface.Hello")] + internal sealed class HelloProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.InterfaceInNamespaceOnlyInterface.IHello { private HelloProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceOnlyInterface/IHello.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceOnlyInterface/IHello.cs similarity index 75% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceOnlyInterface/IHello.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceOnlyInterface/IHello.cs index b467b87743..0e941792fd 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceOnlyInterface/IHello.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceOnlyInterface/IHello.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceOnlyInterface +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance.InterfaceInNamespaceOnlyInterface { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IHello), fullyQualifiedName: "jsii-calc.InterfaceInNamespaceOnlyInterface.Hello")] + [JsiiInterface(nativeType: typeof(IHello), fullyQualifiedName: "jsii-calc.compliance.InterfaceInNamespaceOnlyInterface.Hello")] public interface IHello { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfacesMaker.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfacesMaker.cs similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfacesMaker.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfacesMaker.cs index 95a4a6315f..594024df01 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfacesMaker.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfacesMaker.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// We can return arrays of interfaces See aws/aws-cdk#2362. /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfacesMaker), fullyQualifiedName: "jsii-calc.InterfacesMaker")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.InterfacesMaker), fullyQualifiedName: "jsii-calc.compliance.InterfacesMaker")] public class InterfacesMaker : DeputyBase { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference @@ -31,7 +31,7 @@ protected InterfacesMaker(DeputyProps props): base(props) [JsiiMethod(name: "makeInterfaces", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"@scope/jsii-calc-lib.IDoublable\"},\"kind\":\"array\"}}}", parametersJson: "[{\"name\":\"count\",\"type\":{\"primitive\":\"number\"}}]")] public static Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IDoublable[] MakeInterfaces(double count) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfacesMaker), new System.Type[]{typeof(double)}, new object[]{count}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.InterfacesMaker), new System.Type[]{typeof(double)}, new object[]{count}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSObjectLiteralForInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/JSObjectLiteralForInterface.cs similarity index 92% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSObjectLiteralForInterface.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/JSObjectLiteralForInterface.cs index 5d89e6b9b0..4ae066a094 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSObjectLiteralForInterface.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/JSObjectLiteralForInterface.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JSObjectLiteralForInterface), fullyQualifiedName: "jsii-calc.JSObjectLiteralForInterface")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JSObjectLiteralForInterface), fullyQualifiedName: "jsii-calc.compliance.JSObjectLiteralForInterface")] public class JSObjectLiteralForInterface : DeputyBase { public JSObjectLiteralForInterface(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSObjectLiteralToNative.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/JSObjectLiteralToNative.cs similarity index 75% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSObjectLiteralToNative.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/JSObjectLiteralToNative.cs index ab79a78349..85257c9452 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSObjectLiteralToNative.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/JSObjectLiteralToNative.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JSObjectLiteralToNative), fullyQualifiedName: "jsii-calc.JSObjectLiteralToNative")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JSObjectLiteralToNative), fullyQualifiedName: "jsii-calc.compliance.JSObjectLiteralToNative")] public class JSObjectLiteralToNative : DeputyBase { public JSObjectLiteralToNative(): base(new DeputyProps(new object[]{})) @@ -31,10 +31,10 @@ protected JSObjectLiteralToNative(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "returnLiteral", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.JSObjectLiteralToNativeClass\"}}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.JSObjectLiteralToNativeClass ReturnLiteral() + [JsiiMethod(name: "returnLiteral", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.JSObjectLiteralToNativeClass\"}}")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.Compliance.JSObjectLiteralToNativeClass ReturnLiteral() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSObjectLiteralToNativeClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/JSObjectLiteralToNativeClass.cs similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSObjectLiteralToNativeClass.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/JSObjectLiteralToNativeClass.cs index c263a06802..3d7feed527 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSObjectLiteralToNativeClass.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/JSObjectLiteralToNativeClass.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JSObjectLiteralToNativeClass), fullyQualifiedName: "jsii-calc.JSObjectLiteralToNativeClass")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JSObjectLiteralToNativeClass), fullyQualifiedName: "jsii-calc.compliance.JSObjectLiteralToNativeClass")] public class JSObjectLiteralToNativeClass : DeputyBase { public JSObjectLiteralToNativeClass(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JavaReservedWords.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/JavaReservedWords.cs similarity index 98% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JavaReservedWords.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/JavaReservedWords.cs index df59a2e6a9..0a0d29e2cf 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JavaReservedWords.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/JavaReservedWords.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JavaReservedWords), fullyQualifiedName: "jsii-calc.JavaReservedWords")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JavaReservedWords), fullyQualifiedName: "jsii-calc.compliance.JavaReservedWords")] public class JavaReservedWords : DeputyBase { public JavaReservedWords(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JsiiAgent_.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/JsiiAgent_.cs similarity index 89% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JsiiAgent_.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/JsiiAgent_.cs index d01b95db87..8096412e49 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JsiiAgent_.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/JsiiAgent_.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// Host runtime version should be set via JSII_AGENT. /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JsiiAgent_), fullyQualifiedName: "jsii-calc.JsiiAgent")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JsiiAgent_), fullyQualifiedName: "jsii-calc.compliance.JsiiAgent")] public class JsiiAgent_ : DeputyBase { public JsiiAgent_(): base(new DeputyProps(new object[]{})) @@ -37,7 +37,7 @@ protected JsiiAgent_(DeputyProps props): base(props) [JsiiProperty(name: "jsiiAgent", typeJson: "{\"primitive\":\"string\"}", isOptional: true)] public static string? JsiiAgent { - get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsiiAgent_)); + get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JsiiAgent_)); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JsonFormatter.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/JsonFormatter.cs similarity index 79% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JsonFormatter.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/JsonFormatter.cs index ea1591c1ab..75c520b336 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JsonFormatter.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/JsonFormatter.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// Make sure structs are un-decorated on the way in. /// @@ -10,7 +10,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// See: https://github.com/aws/aws-cdk/issues/5066 /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), fullyQualifiedName: "jsii-calc.JsonFormatter")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JsonFormatter), fullyQualifiedName: "jsii-calc.compliance.JsonFormatter")] public class JsonFormatter : DeputyBase { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference @@ -33,7 +33,7 @@ protected JsonFormatter(DeputyProps props): base(props) [JsiiMethod(name: "anyArray", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] public static object AnyArray() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JsonFormatter), new System.Type[]{}, new object[]{}); } /// @@ -42,7 +42,7 @@ public static object AnyArray() [JsiiMethod(name: "anyBooleanFalse", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] public static object AnyBooleanFalse() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JsonFormatter), new System.Type[]{}, new object[]{}); } /// @@ -51,7 +51,7 @@ public static object AnyBooleanFalse() [JsiiMethod(name: "anyBooleanTrue", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] public static object AnyBooleanTrue() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JsonFormatter), new System.Type[]{}, new object[]{}); } /// @@ -60,7 +60,7 @@ public static object AnyBooleanTrue() [JsiiMethod(name: "anyDate", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] public static object AnyDate() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JsonFormatter), new System.Type[]{}, new object[]{}); } /// @@ -69,7 +69,7 @@ public static object AnyDate() [JsiiMethod(name: "anyEmptyString", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] public static object AnyEmptyString() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JsonFormatter), new System.Type[]{}, new object[]{}); } /// @@ -78,7 +78,7 @@ public static object AnyEmptyString() [JsiiMethod(name: "anyFunction", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] public static object AnyFunction() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JsonFormatter), new System.Type[]{}, new object[]{}); } /// @@ -87,7 +87,7 @@ public static object AnyFunction() [JsiiMethod(name: "anyHash", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] public static object AnyHash() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JsonFormatter), new System.Type[]{}, new object[]{}); } /// @@ -96,7 +96,7 @@ public static object AnyHash() [JsiiMethod(name: "anyNull", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] public static object AnyNull() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JsonFormatter), new System.Type[]{}, new object[]{}); } /// @@ -105,7 +105,7 @@ public static object AnyNull() [JsiiMethod(name: "anyNumber", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] public static object AnyNumber() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JsonFormatter), new System.Type[]{}, new object[]{}); } /// @@ -114,7 +114,7 @@ public static object AnyNumber() [JsiiMethod(name: "anyRef", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] public static object AnyRef() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JsonFormatter), new System.Type[]{}, new object[]{}); } /// @@ -123,7 +123,7 @@ public static object AnyRef() [JsiiMethod(name: "anyString", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] public static object AnyString() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JsonFormatter), new System.Type[]{}, new object[]{}); } /// @@ -132,7 +132,7 @@ public static object AnyString() [JsiiMethod(name: "anyUndefined", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] public static object AnyUndefined() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JsonFormatter), new System.Type[]{}, new object[]{}); } /// @@ -141,7 +141,7 @@ public static object AnyUndefined() [JsiiMethod(name: "anyZero", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] public static object AnyZero() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JsonFormatter), new System.Type[]{}, new object[]{}); } /// @@ -150,7 +150,7 @@ public static object AnyZero() [JsiiMethod(name: "stringify", returnsJson: "{\"optional\":true,\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"value\",\"optional\":true,\"type\":{\"primitive\":\"any\"}}]")] public static string? Stringify(object? @value = null) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{typeof(object)}, new object?[]{@value}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JsonFormatter), new System.Type[]{typeof(object)}, new object?[]{@value}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/LoadBalancedFargateServiceProps.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/LoadBalancedFargateServiceProps.cs similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/LoadBalancedFargateServiceProps.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/LoadBalancedFargateServiceProps.cs index 1d6eda47cb..298173c673 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/LoadBalancedFargateServiceProps.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/LoadBalancedFargateServiceProps.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// jsii#298: show default values in sphinx documentation, and respect newlines. /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.LoadBalancedFargateServiceProps")] - public class LoadBalancedFargateServiceProps : Amazon.JSII.Tests.CalculatorNamespace.ILoadBalancedFargateServiceProps + [JsiiByValue(fqn: "jsii-calc.compliance.LoadBalancedFargateServiceProps")] + public class LoadBalancedFargateServiceProps : Amazon.JSII.Tests.CalculatorNamespace.Compliance.ILoadBalancedFargateServiceProps { /// The container port of the application load balancer attached to your Fargate service. /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/LoadBalancedFargateServicePropsProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/LoadBalancedFargateServicePropsProxy.cs similarity index 94% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/LoadBalancedFargateServicePropsProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/LoadBalancedFargateServicePropsProxy.cs index 157359c801..0f8b907f88 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/LoadBalancedFargateServicePropsProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/LoadBalancedFargateServicePropsProxy.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// jsii#298: show default values in sphinx documentation, and respect newlines. /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(ILoadBalancedFargateServiceProps), fullyQualifiedName: "jsii-calc.LoadBalancedFargateServiceProps")] - internal sealed class LoadBalancedFargateServicePropsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ILoadBalancedFargateServiceProps + [JsiiTypeProxy(nativeType: typeof(ILoadBalancedFargateServiceProps), fullyQualifiedName: "jsii-calc.compliance.LoadBalancedFargateServiceProps")] + internal sealed class LoadBalancedFargateServicePropsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.ILoadBalancedFargateServiceProps { private LoadBalancedFargateServicePropsProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NestedStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NestedStruct.cs similarity index 80% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NestedStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NestedStruct.cs index a0ae6d4c83..c970d5c0d5 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NestedStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NestedStruct.cs @@ -2,15 +2,15 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { #pragma warning disable CS8618 /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.NestedStruct")] - public class NestedStruct : Amazon.JSII.Tests.CalculatorNamespace.INestedStruct + [JsiiByValue(fqn: "jsii-calc.compliance.NestedStruct")] + public class NestedStruct : Amazon.JSII.Tests.CalculatorNamespace.Compliance.INestedStruct { /// When provided, must be > 0. /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NestedStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NestedStructProxy.cs similarity index 82% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NestedStructProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NestedStructProxy.cs index e19f2ab74e..f7788f7a92 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NestedStructProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NestedStructProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(INestedStruct), fullyQualifiedName: "jsii-calc.NestedStruct")] - internal sealed class NestedStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.INestedStruct + [JsiiTypeProxy(nativeType: typeof(INestedStruct), fullyQualifiedName: "jsii-calc.compliance.NestedStruct")] + internal sealed class NestedStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.INestedStruct { private NestedStructProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NodeStandardLibrary.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NodeStandardLibrary.cs similarity index 94% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NodeStandardLibrary.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NodeStandardLibrary.cs index 2c6addda10..8cd947430f 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NodeStandardLibrary.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NodeStandardLibrary.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// Test fixture to verify that jsii modules can use the node standard library. /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.NodeStandardLibrary), fullyQualifiedName: "jsii-calc.NodeStandardLibrary")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.NodeStandardLibrary), fullyQualifiedName: "jsii-calc.compliance.NodeStandardLibrary")] public class NodeStandardLibrary : DeputyBase { public NodeStandardLibrary(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NullShouldBeTreatedAsUndefined.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NullShouldBeTreatedAsUndefined.cs similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NullShouldBeTreatedAsUndefined.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NullShouldBeTreatedAsUndefined.cs index f4a238d7fe..2e09cd039a 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NullShouldBeTreatedAsUndefined.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NullShouldBeTreatedAsUndefined.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// jsii#282, aws-cdk#157: null should be treated as "undefined". /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.NullShouldBeTreatedAsUndefined), fullyQualifiedName: "jsii-calc.NullShouldBeTreatedAsUndefined", parametersJson: "[{\"name\":\"_param1\",\"type\":{\"primitive\":\"string\"}},{\"name\":\"optional\",\"optional\":true,\"type\":{\"primitive\":\"any\"}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.NullShouldBeTreatedAsUndefined), fullyQualifiedName: "jsii-calc.compliance.NullShouldBeTreatedAsUndefined", parametersJson: "[{\"name\":\"_param1\",\"type\":{\"primitive\":\"string\"}},{\"name\":\"optional\",\"optional\":true,\"type\":{\"primitive\":\"any\"}}]")] public class NullShouldBeTreatedAsUndefined : DeputyBase { /// @@ -44,10 +44,10 @@ public virtual void GiveMeUndefined(object? @value = null) /// /// Stability: Experimental /// - [JsiiMethod(name: "giveMeUndefinedInsideAnObject", parametersJson: "[{\"name\":\"input\",\"type\":{\"fqn\":\"jsii-calc.NullShouldBeTreatedAsUndefinedData\"}}]")] - public virtual void GiveMeUndefinedInsideAnObject(Amazon.JSII.Tests.CalculatorNamespace.INullShouldBeTreatedAsUndefinedData input) + [JsiiMethod(name: "giveMeUndefinedInsideAnObject", parametersJson: "[{\"name\":\"input\",\"type\":{\"fqn\":\"jsii-calc.compliance.NullShouldBeTreatedAsUndefinedData\"}}]")] + public virtual void GiveMeUndefinedInsideAnObject(Amazon.JSII.Tests.CalculatorNamespace.Compliance.INullShouldBeTreatedAsUndefinedData input) { - InvokeInstanceVoidMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.INullShouldBeTreatedAsUndefinedData)}, new object[]{input}); + InvokeInstanceVoidMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.INullShouldBeTreatedAsUndefinedData)}, new object[]{input}); } /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NullShouldBeTreatedAsUndefinedData.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NullShouldBeTreatedAsUndefinedData.cs similarity index 82% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NullShouldBeTreatedAsUndefinedData.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NullShouldBeTreatedAsUndefinedData.cs index 7bf97343ff..120761da66 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NullShouldBeTreatedAsUndefinedData.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NullShouldBeTreatedAsUndefinedData.cs @@ -2,15 +2,15 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { #pragma warning disable CS8618 /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.NullShouldBeTreatedAsUndefinedData")] - public class NullShouldBeTreatedAsUndefinedData : Amazon.JSII.Tests.CalculatorNamespace.INullShouldBeTreatedAsUndefinedData + [JsiiByValue(fqn: "jsii-calc.compliance.NullShouldBeTreatedAsUndefinedData")] + public class NullShouldBeTreatedAsUndefinedData : Amazon.JSII.Tests.CalculatorNamespace.Compliance.INullShouldBeTreatedAsUndefinedData { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NullShouldBeTreatedAsUndefinedDataProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NullShouldBeTreatedAsUndefinedDataProxy.cs similarity index 82% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NullShouldBeTreatedAsUndefinedDataProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NullShouldBeTreatedAsUndefinedDataProxy.cs index 196225af4a..10d91d2ee2 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NullShouldBeTreatedAsUndefinedDataProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NullShouldBeTreatedAsUndefinedDataProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(INullShouldBeTreatedAsUndefinedData), fullyQualifiedName: "jsii-calc.NullShouldBeTreatedAsUndefinedData")] - internal sealed class NullShouldBeTreatedAsUndefinedDataProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.INullShouldBeTreatedAsUndefinedData + [JsiiTypeProxy(nativeType: typeof(INullShouldBeTreatedAsUndefinedData), fullyQualifiedName: "jsii-calc.compliance.NullShouldBeTreatedAsUndefinedData")] + internal sealed class NullShouldBeTreatedAsUndefinedDataProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.INullShouldBeTreatedAsUndefinedData { private NullShouldBeTreatedAsUndefinedDataProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NumberGenerator.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NumberGenerator.cs similarity index 91% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NumberGenerator.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NumberGenerator.cs index 574e60fb11..f91a9bb1ef 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NumberGenerator.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NumberGenerator.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// This allows us to test that a reference can be stored for objects that implement interfaces. /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.NumberGenerator), fullyQualifiedName: "jsii-calc.NumberGenerator", parametersJson: "[{\"name\":\"generator\",\"type\":{\"fqn\":\"jsii-calc.IRandomNumberGenerator\"}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.NumberGenerator), fullyQualifiedName: "jsii-calc.compliance.NumberGenerator", parametersJson: "[{\"name\":\"generator\",\"type\":{\"fqn\":\"jsii-calc.IRandomNumberGenerator\"}}]")] public class NumberGenerator : DeputyBase { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ObjectRefsInCollections.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ObjectRefsInCollections.cs similarity index 94% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ObjectRefsInCollections.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ObjectRefsInCollections.cs index 7e08cf4e69..967f06861d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ObjectRefsInCollections.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ObjectRefsInCollections.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// Verify that object references can be passed inside collections. /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ObjectRefsInCollections), fullyQualifiedName: "jsii-calc.ObjectRefsInCollections")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ObjectRefsInCollections), fullyQualifiedName: "jsii-calc.compliance.ObjectRefsInCollections")] public class ObjectRefsInCollections : DeputyBase { public ObjectRefsInCollections(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ObjectWithPropertyProvider.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ObjectWithPropertyProvider.cs similarity index 72% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ObjectWithPropertyProvider.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ObjectWithPropertyProvider.cs index 32e1cc2176..aa308aa1fc 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ObjectWithPropertyProvider.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ObjectWithPropertyProvider.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ObjectWithPropertyProvider), fullyQualifiedName: "jsii-calc.ObjectWithPropertyProvider")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ObjectWithPropertyProvider), fullyQualifiedName: "jsii-calc.compliance.ObjectWithPropertyProvider")] public class ObjectWithPropertyProvider : DeputyBase { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference @@ -27,10 +27,10 @@ protected ObjectWithPropertyProvider(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "provide", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.IObjectWithProperty\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.IObjectWithProperty Provide() + [JsiiMethod(name: "provide", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.IObjectWithProperty\"}}")] + public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.IObjectWithProperty Provide() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ObjectWithPropertyProvider), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ObjectWithPropertyProvider), new System.Type[]{}, new object[]{}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalArgumentInvoker.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OptionalArgumentInvoker.cs similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalArgumentInvoker.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OptionalArgumentInvoker.cs index 71a808bded..9a89e56169 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalArgumentInvoker.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OptionalArgumentInvoker.cs @@ -2,18 +2,18 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.OptionalArgumentInvoker), fullyQualifiedName: "jsii-calc.OptionalArgumentInvoker", parametersJson: "[{\"name\":\"delegate\",\"type\":{\"fqn\":\"jsii-calc.IInterfaceWithOptionalMethodArguments\"}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.OptionalArgumentInvoker), fullyQualifiedName: "jsii-calc.compliance.OptionalArgumentInvoker", parametersJson: "[{\"name\":\"delegate\",\"type\":{\"fqn\":\"jsii-calc.compliance.IInterfaceWithOptionalMethodArguments\"}}]")] public class OptionalArgumentInvoker : DeputyBase { /// /// Stability: Experimental /// - public OptionalArgumentInvoker(Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithOptionalMethodArguments @delegate): base(new DeputyProps(new object[]{@delegate})) + public OptionalArgumentInvoker(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IInterfaceWithOptionalMethodArguments @delegate): base(new DeputyProps(new object[]{@delegate})) { } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalConstructorArgument.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OptionalConstructorArgument.cs similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalConstructorArgument.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OptionalConstructorArgument.cs index c2af050109..168f28db5d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalConstructorArgument.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OptionalConstructorArgument.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.OptionalConstructorArgument), fullyQualifiedName: "jsii-calc.OptionalConstructorArgument", parametersJson: "[{\"name\":\"arg1\",\"type\":{\"primitive\":\"number\"}},{\"name\":\"arg2\",\"type\":{\"primitive\":\"string\"}},{\"name\":\"arg3\",\"optional\":true,\"type\":{\"primitive\":\"date\"}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.OptionalConstructorArgument), fullyQualifiedName: "jsii-calc.compliance.OptionalConstructorArgument", parametersJson: "[{\"name\":\"arg1\",\"type\":{\"primitive\":\"number\"}},{\"name\":\"arg2\",\"type\":{\"primitive\":\"string\"}},{\"name\":\"arg3\",\"optional\":true,\"type\":{\"primitive\":\"date\"}}]")] public class OptionalConstructorArgument : DeputyBase { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OptionalStruct.cs similarity index 78% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OptionalStruct.cs index a734f19e6a..40ae9521ab 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OptionalStruct.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.OptionalStruct")] - public class OptionalStruct : Amazon.JSII.Tests.CalculatorNamespace.IOptionalStruct + [JsiiByValue(fqn: "jsii-calc.compliance.OptionalStruct")] + public class OptionalStruct : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IOptionalStruct { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalStructConsumer.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OptionalStructConsumer.cs similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalStructConsumer.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OptionalStructConsumer.cs index a6d80e094c..95218eb94f 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalStructConsumer.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OptionalStructConsumer.cs @@ -2,18 +2,18 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.OptionalStructConsumer), fullyQualifiedName: "jsii-calc.OptionalStructConsumer", parametersJson: "[{\"name\":\"optionalStruct\",\"optional\":true,\"type\":{\"fqn\":\"jsii-calc.OptionalStruct\"}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.OptionalStructConsumer), fullyQualifiedName: "jsii-calc.compliance.OptionalStructConsumer", parametersJson: "[{\"name\":\"optionalStruct\",\"optional\":true,\"type\":{\"fqn\":\"jsii-calc.compliance.OptionalStruct\"}}]")] public class OptionalStructConsumer : DeputyBase { /// /// Stability: Experimental /// - public OptionalStructConsumer(Amazon.JSII.Tests.CalculatorNamespace.IOptionalStruct? optionalStruct = null): base(new DeputyProps(new object?[]{optionalStruct})) + public OptionalStructConsumer(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IOptionalStruct? optionalStruct = null): base(new DeputyProps(new object?[]{optionalStruct})) { } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OptionalStructProxy.cs similarity index 80% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalStructProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OptionalStructProxy.cs index ea0c9fa351..ae4523e7ee 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalStructProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OptionalStructProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IOptionalStruct), fullyQualifiedName: "jsii-calc.OptionalStruct")] - internal sealed class OptionalStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IOptionalStruct + [JsiiTypeProxy(nativeType: typeof(IOptionalStruct), fullyQualifiedName: "jsii-calc.compliance.OptionalStruct")] + internal sealed class OptionalStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IOptionalStruct { private OptionalStructProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OverridableProtectedMember.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OverridableProtectedMember.cs similarity index 94% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OverridableProtectedMember.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OverridableProtectedMember.cs index e86b9610d5..784dd2251e 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OverridableProtectedMember.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OverridableProtectedMember.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// /// See: https://github.com/aws/jsii/issues/903 /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.OverridableProtectedMember), fullyQualifiedName: "jsii-calc.OverridableProtectedMember")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.OverridableProtectedMember), fullyQualifiedName: "jsii-calc.compliance.OverridableProtectedMember")] public class OverridableProtectedMember : DeputyBase { public OverridableProtectedMember(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OverrideReturnsObject.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OverrideReturnsObject.cs similarity index 80% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OverrideReturnsObject.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OverrideReturnsObject.cs index 35434cc6d5..1f1dfa576a 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OverrideReturnsObject.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OverrideReturnsObject.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.OverrideReturnsObject), fullyQualifiedName: "jsii-calc.OverrideReturnsObject")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.OverrideReturnsObject), fullyQualifiedName: "jsii-calc.compliance.OverrideReturnsObject")] public class OverrideReturnsObject : DeputyBase { public OverrideReturnsObject(): base(new DeputyProps(new object[]{})) @@ -31,10 +31,10 @@ protected OverrideReturnsObject(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "test", returnsJson: "{\"type\":{\"primitive\":\"number\"}}", parametersJson: "[{\"name\":\"obj\",\"type\":{\"fqn\":\"jsii-calc.IReturnsNumber\"}}]")] - public virtual double Test(Amazon.JSII.Tests.CalculatorNamespace.IReturnsNumber obj) + [JsiiMethod(name: "test", returnsJson: "{\"type\":{\"primitive\":\"number\"}}", parametersJson: "[{\"name\":\"obj\",\"type\":{\"fqn\":\"jsii-calc.compliance.IReturnsNumber\"}}]")] + public virtual double Test(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IReturnsNumber obj) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IReturnsNumber)}, new object[]{obj}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IReturnsNumber)}, new object[]{obj}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ParentStruct982.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ParentStruct982.cs similarity index 79% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ParentStruct982.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ParentStruct982.cs index 85afd15639..1a07489123 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ParentStruct982.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ParentStruct982.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { #pragma warning disable CS8618 @@ -10,8 +10,8 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.ParentStruct982")] - public class ParentStruct982 : Amazon.JSII.Tests.CalculatorNamespace.IParentStruct982 + [JsiiByValue(fqn: "jsii-calc.compliance.ParentStruct982")] + public class ParentStruct982 : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IParentStruct982 { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ParentStruct982Proxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ParentStruct982Proxy.cs similarity index 80% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ParentStruct982Proxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ParentStruct982Proxy.cs index 275ef7c034..5e42b9a9c9 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ParentStruct982Proxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ParentStruct982Proxy.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// https://github.com/aws/jsii/issues/982. /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IParentStruct982), fullyQualifiedName: "jsii-calc.ParentStruct982")] - internal sealed class ParentStruct982Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IParentStruct982 + [JsiiTypeProxy(nativeType: typeof(IParentStruct982), fullyQualifiedName: "jsii-calc.compliance.ParentStruct982")] + internal sealed class ParentStruct982Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IParentStruct982 { private ParentStruct982Proxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PartiallyInitializedThisConsumer.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/PartiallyInitializedThisConsumer.cs similarity index 72% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PartiallyInitializedThisConsumer.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/PartiallyInitializedThisConsumer.cs index 87ede7b7a4..5d85b025e1 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PartiallyInitializedThisConsumer.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/PartiallyInitializedThisConsumer.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PartiallyInitializedThisConsumer), fullyQualifiedName: "jsii-calc.PartiallyInitializedThisConsumer")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.PartiallyInitializedThisConsumer), fullyQualifiedName: "jsii-calc.compliance.PartiallyInitializedThisConsumer")] public abstract class PartiallyInitializedThisConsumer : DeputyBase { protected PartiallyInitializedThisConsumer(): base(new DeputyProps(new object[]{})) @@ -31,8 +31,8 @@ protected PartiallyInitializedThisConsumer(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "consumePartiallyInitializedThis", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"obj\",\"type\":{\"fqn\":\"jsii-calc.ConstructorPassesThisOut\"}},{\"name\":\"dt\",\"type\":{\"primitive\":\"date\"}},{\"name\":\"ev\",\"type\":{\"fqn\":\"jsii-calc.AllTypesEnum\"}}]")] - public abstract string ConsumePartiallyInitializedThis(Amazon.JSII.Tests.CalculatorNamespace.ConstructorPassesThisOut obj, System.DateTime dt, Amazon.JSII.Tests.CalculatorNamespace.AllTypesEnum ev); + [JsiiMethod(name: "consumePartiallyInitializedThis", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"obj\",\"type\":{\"fqn\":\"jsii-calc.compliance.ConstructorPassesThisOut\"}},{\"name\":\"dt\",\"type\":{\"primitive\":\"date\"}},{\"name\":\"ev\",\"type\":{\"fqn\":\"jsii-calc.compliance.AllTypesEnum\"}}]")] + public abstract string ConsumePartiallyInitializedThis(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ConstructorPassesThisOut obj, System.DateTime dt, Amazon.JSII.Tests.CalculatorNamespace.Compliance.AllTypesEnum ev); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/PartiallyInitializedThisConsumerProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/PartiallyInitializedThisConsumerProxy.cs new file mode 100644 index 0000000000..46ea2654f6 --- /dev/null +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/PartiallyInitializedThisConsumerProxy.cs @@ -0,0 +1,26 @@ +using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.PartiallyInitializedThisConsumer), fullyQualifiedName: "jsii-calc.compliance.PartiallyInitializedThisConsumer")] + internal sealed class PartiallyInitializedThisConsumerProxy : Amazon.JSII.Tests.CalculatorNamespace.Compliance.PartiallyInitializedThisConsumer + { + private PartiallyInitializedThisConsumerProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: "consumePartiallyInitializedThis", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"obj\",\"type\":{\"fqn\":\"jsii-calc.compliance.ConstructorPassesThisOut\"}},{\"name\":\"dt\",\"type\":{\"primitive\":\"date\"}},{\"name\":\"ev\",\"type\":{\"fqn\":\"jsii-calc.compliance.AllTypesEnum\"}}]")] + public override string ConsumePartiallyInitializedThis(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ConstructorPassesThisOut obj, System.DateTime dt, Amazon.JSII.Tests.CalculatorNamespace.Compliance.AllTypesEnum ev) + { + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ConstructorPassesThisOut), typeof(System.DateTime), typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.AllTypesEnum)}, new object[]{obj, dt, ev}); + } + } +} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Polymorphism.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Polymorphism.cs similarity index 91% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Polymorphism.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Polymorphism.cs index 566aaa57e6..91f6e7f436 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Polymorphism.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Polymorphism.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Polymorphism), fullyQualifiedName: "jsii-calc.Polymorphism")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Polymorphism), fullyQualifiedName: "jsii-calc.compliance.Polymorphism")] public class Polymorphism : DeputyBase { public Polymorphism(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PublicClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/PublicClass.cs similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PublicClass.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/PublicClass.cs index 93eba8a103..824f1c5689 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PublicClass.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/PublicClass.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PublicClass), fullyQualifiedName: "jsii-calc.PublicClass")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.PublicClass), fullyQualifiedName: "jsii-calc.compliance.PublicClass")] public class PublicClass : DeputyBase { public PublicClass(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonReservedWords.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/PythonReservedWords.cs similarity index 98% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonReservedWords.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/PythonReservedWords.cs index ac65bd5f4c..22f2882f16 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonReservedWords.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/PythonReservedWords.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PythonReservedWords), fullyQualifiedName: "jsii-calc.PythonReservedWords")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.PythonReservedWords), fullyQualifiedName: "jsii-calc.compliance.PythonReservedWords")] public class PythonReservedWords : DeputyBase { public PythonReservedWords(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ReferenceEnumFromScopedPackage.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ReferenceEnumFromScopedPackage.cs similarity index 93% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ReferenceEnumFromScopedPackage.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ReferenceEnumFromScopedPackage.cs index 6ad440ee3c..195e57e3de 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ReferenceEnumFromScopedPackage.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ReferenceEnumFromScopedPackage.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// See awslabs/jsii#138. /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ReferenceEnumFromScopedPackage), fullyQualifiedName: "jsii-calc.ReferenceEnumFromScopedPackage")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ReferenceEnumFromScopedPackage), fullyQualifiedName: "jsii-calc.compliance.ReferenceEnumFromScopedPackage")] public class ReferenceEnumFromScopedPackage : DeputyBase { public ReferenceEnumFromScopedPackage(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ReturnsPrivateImplementationOfInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ReturnsPrivateImplementationOfInterface.cs similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ReturnsPrivateImplementationOfInterface.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ReturnsPrivateImplementationOfInterface.cs index 2dcb05a14e..e112a055ec 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ReturnsPrivateImplementationOfInterface.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ReturnsPrivateImplementationOfInterface.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// Helps ensure the JSII kernel & runtime cooperate correctly when an un-exported instance of a class is returned with a declared type that is an exported interface, and the instance inherits from an exported class. /// an instance of an un-exported class that extends `ExportedBaseClass`, declared as `IPrivatelyImplemented`. @@ -11,7 +11,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// See: https://github.com/aws/jsii/issues/320 /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ReturnsPrivateImplementationOfInterface), fullyQualifiedName: "jsii-calc.ReturnsPrivateImplementationOfInterface")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ReturnsPrivateImplementationOfInterface), fullyQualifiedName: "jsii-calc.compliance.ReturnsPrivateImplementationOfInterface")] public class ReturnsPrivateImplementationOfInterface : DeputyBase { public ReturnsPrivateImplementationOfInterface(): base(new DeputyProps(new object[]{})) @@ -35,10 +35,10 @@ protected ReturnsPrivateImplementationOfInterface(DeputyProps props): base(props /// /// Stability: Experimental /// - [JsiiProperty(name: "privateImplementation", typeJson: "{\"fqn\":\"jsii-calc.IPrivatelyImplemented\"}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.IPrivatelyImplemented PrivateImplementation + [JsiiProperty(name: "privateImplementation", typeJson: "{\"fqn\":\"jsii-calc.compliance.IPrivatelyImplemented\"}")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.Compliance.IPrivatelyImplemented PrivateImplementation { - get => GetInstanceProperty(); + get => GetInstanceProperty(); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RootStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/RootStruct.cs similarity index 78% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RootStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/RootStruct.cs index 68f3a11453..d58ecdd349 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RootStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/RootStruct.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { #pragma warning disable CS8618 @@ -13,8 +13,8 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.RootStruct")] - public class RootStruct : Amazon.JSII.Tests.CalculatorNamespace.IRootStruct + [JsiiByValue(fqn: "jsii-calc.compliance.RootStruct")] + public class RootStruct : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IRootStruct { /// May not be empty. /// @@ -31,8 +31,8 @@ public string StringProp /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: "nestedStruct", typeJson: "{\"fqn\":\"jsii-calc.NestedStruct\"}", isOptional: true, isOverride: true)] - public Amazon.JSII.Tests.CalculatorNamespace.INestedStruct? NestedStruct + [JsiiProperty(name: "nestedStruct", typeJson: "{\"fqn\":\"jsii-calc.compliance.NestedStruct\"}", isOptional: true, isOverride: true)] + public Amazon.JSII.Tests.CalculatorNamespace.Compliance.INestedStruct? NestedStruct { get; set; diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RootStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/RootStructProxy.cs similarity index 78% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RootStructProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/RootStructProxy.cs index 35c3c57f12..5dc6aca44d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RootStructProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/RootStructProxy.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary. /// @@ -11,8 +11,8 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IRootStruct), fullyQualifiedName: "jsii-calc.RootStruct")] - internal sealed class RootStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IRootStruct + [JsiiTypeProxy(nativeType: typeof(IRootStruct), fullyQualifiedName: "jsii-calc.compliance.RootStruct")] + internal sealed class RootStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IRootStruct { private RootStructProxy(ByRefValue reference): base(reference) { @@ -32,10 +32,10 @@ public string StringProp /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: "nestedStruct", typeJson: "{\"fqn\":\"jsii-calc.NestedStruct\"}", isOptional: true)] - public Amazon.JSII.Tests.CalculatorNamespace.INestedStruct? NestedStruct + [JsiiProperty(name: "nestedStruct", typeJson: "{\"fqn\":\"jsii-calc.compliance.NestedStruct\"}", isOptional: true)] + public Amazon.JSII.Tests.CalculatorNamespace.Compliance.INestedStruct? NestedStruct { - get => GetInstanceProperty(); + get => GetInstanceProperty(); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RootStructValidator.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/RootStructValidator.cs similarity index 75% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RootStructValidator.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/RootStructValidator.cs index f560779442..903bd75d14 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RootStructValidator.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/RootStructValidator.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.RootStructValidator), fullyQualifiedName: "jsii-calc.RootStructValidator")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.RootStructValidator), fullyQualifiedName: "jsii-calc.compliance.RootStructValidator")] public class RootStructValidator : DeputyBase { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference @@ -27,10 +27,10 @@ protected RootStructValidator(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "validate", parametersJson: "[{\"name\":\"struct\",\"type\":{\"fqn\":\"jsii-calc.RootStruct\"}}]")] - public static void Validate(Amazon.JSII.Tests.CalculatorNamespace.IRootStruct @struct) + [JsiiMethod(name: "validate", parametersJson: "[{\"name\":\"struct\",\"type\":{\"fqn\":\"jsii-calc.compliance.RootStruct\"}}]")] + public static void Validate(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IRootStruct @struct) { - InvokeStaticVoidMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.RootStructValidator), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IRootStruct)}, new object[]{@struct}); + InvokeStaticVoidMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.RootStructValidator), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IRootStruct)}, new object[]{@struct}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RuntimeTypeChecking.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/RuntimeTypeChecking.cs similarity index 94% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RuntimeTypeChecking.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/RuntimeTypeChecking.cs index cbc8ad3849..435b0a2049 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RuntimeTypeChecking.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/RuntimeTypeChecking.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.RuntimeTypeChecking), fullyQualifiedName: "jsii-calc.RuntimeTypeChecking")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.RuntimeTypeChecking), fullyQualifiedName: "jsii-calc.compliance.RuntimeTypeChecking")] public class RuntimeTypeChecking : DeputyBase { public RuntimeTypeChecking(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SecondLevelStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SecondLevelStruct.cs similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SecondLevelStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SecondLevelStruct.cs index 18f6fa479d..0c12a4035a 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SecondLevelStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SecondLevelStruct.cs @@ -2,15 +2,15 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { #pragma warning disable CS8618 /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.SecondLevelStruct")] - public class SecondLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.ISecondLevelStruct + [JsiiByValue(fqn: "jsii-calc.compliance.SecondLevelStruct")] + public class SecondLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.Compliance.ISecondLevelStruct { /// It's long and required. /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SecondLevelStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SecondLevelStructProxy.cs similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SecondLevelStructProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SecondLevelStructProxy.cs index 45f51b425f..2319b75451 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SecondLevelStructProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SecondLevelStructProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(ISecondLevelStruct), fullyQualifiedName: "jsii-calc.SecondLevelStruct")] - internal sealed class SecondLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ISecondLevelStruct + [JsiiTypeProxy(nativeType: typeof(ISecondLevelStruct), fullyQualifiedName: "jsii-calc.compliance.SecondLevelStruct")] + internal sealed class SecondLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.ISecondLevelStruct { private SecondLevelStructProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingleInstanceTwoTypes.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SingleInstanceTwoTypes.cs similarity index 75% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingleInstanceTwoTypes.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SingleInstanceTwoTypes.cs index 0cbbc600a7..18fe8c2ff2 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingleInstanceTwoTypes.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SingleInstanceTwoTypes.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// Test that a single instance can be returned under two different FQNs. /// @@ -12,7 +12,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SingleInstanceTwoTypes), fullyQualifiedName: "jsii-calc.SingleInstanceTwoTypes")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.SingleInstanceTwoTypes), fullyQualifiedName: "jsii-calc.compliance.SingleInstanceTwoTypes")] public class SingleInstanceTwoTypes : DeputyBase { public SingleInstanceTwoTypes(): base(new DeputyProps(new object[]{})) @@ -36,19 +36,19 @@ protected SingleInstanceTwoTypes(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "interface1", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.InbetweenClass\"}}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.InbetweenClass Interface1() + [JsiiMethod(name: "interface1", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.InbetweenClass\"}}")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.Compliance.InbetweenClass Interface1() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } /// /// Stability: Experimental /// - [JsiiMethod(name: "interface2", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.IPublicInterface\"}}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface Interface2() + [JsiiMethod(name: "interface2", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.IPublicInterface\"}}")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.Compliance.IPublicInterface Interface2() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonInt.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SingletonInt.cs similarity index 91% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonInt.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SingletonInt.cs index 172df42f94..f5e54a49aa 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonInt.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SingletonInt.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// Verifies that singleton enums are handled correctly. /// @@ -10,7 +10,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SingletonInt), fullyQualifiedName: "jsii-calc.SingletonInt")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.SingletonInt), fullyQualifiedName: "jsii-calc.compliance.SingletonInt")] public class SingletonInt : DeputyBase { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonIntEnum.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SingletonIntEnum.cs similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonIntEnum.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SingletonIntEnum.cs index 255d9ad793..4a586c561c 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonIntEnum.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SingletonIntEnum.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// A singleton integer. /// /// Stability: Experimental /// - [JsiiEnum(nativeType: typeof(SingletonIntEnum), fullyQualifiedName: "jsii-calc.SingletonIntEnum")] + [JsiiEnum(nativeType: typeof(SingletonIntEnum), fullyQualifiedName: "jsii-calc.compliance.SingletonIntEnum")] public enum SingletonIntEnum { /// Elite! diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonString.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SingletonString.cs similarity index 91% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonString.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SingletonString.cs index 0443985851..0369c70773 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonString.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SingletonString.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// Verifies that singleton enums are handled correctly. /// @@ -10,7 +10,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SingletonString), fullyQualifiedName: "jsii-calc.SingletonString")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.SingletonString), fullyQualifiedName: "jsii-calc.compliance.SingletonString")] public class SingletonString : DeputyBase { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonStringEnum.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SingletonStringEnum.cs similarity index 82% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonStringEnum.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SingletonStringEnum.cs index 5e9afb5734..52c90c9d65 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonStringEnum.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SingletonStringEnum.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// A singleton string. /// /// Stability: Experimental /// - [JsiiEnum(nativeType: typeof(SingletonStringEnum), fullyQualifiedName: "jsii-calc.SingletonStringEnum")] + [JsiiEnum(nativeType: typeof(SingletonStringEnum), fullyQualifiedName: "jsii-calc.compliance.SingletonStringEnum")] public enum SingletonStringEnum { /// 1337. diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SomeTypeJsii976.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SomeTypeJsii976.cs similarity index 75% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SomeTypeJsii976.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SomeTypeJsii976.cs index c9c17b6804..64fa80bb22 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SomeTypeJsii976.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SomeTypeJsii976.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SomeTypeJsii976), fullyQualifiedName: "jsii-calc.SomeTypeJsii976")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.SomeTypeJsii976), fullyQualifiedName: "jsii-calc.compliance.SomeTypeJsii976")] public class SomeTypeJsii976 : DeputyBase { public SomeTypeJsii976(): base(new DeputyProps(new object[]{})) @@ -34,16 +34,16 @@ protected SomeTypeJsii976(DeputyProps props): base(props) [JsiiMethod(name: "returnAnonymous", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] public static object ReturnAnonymous() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.SomeTypeJsii976), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.SomeTypeJsii976), new System.Type[]{}, new object[]{}); } /// /// Stability: Experimental /// - [JsiiMethod(name: "returnReturn", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.IReturnJsii976\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.IReturnJsii976 ReturnReturn() + [JsiiMethod(name: "returnReturn", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.IReturnJsii976\"}}")] + public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.IReturnJsii976 ReturnReturn() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.SomeTypeJsii976), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.SomeTypeJsii976), new System.Type[]{}, new object[]{}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StaticContext.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StaticContext.cs similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StaticContext.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StaticContext.cs index d803de2769..f14dc3e76a 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StaticContext.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StaticContext.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// This is used to validate the ability to use `this` from within a static context. /// @@ -10,7 +10,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.StaticContext), fullyQualifiedName: "jsii-calc.StaticContext")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.StaticContext), fullyQualifiedName: "jsii-calc.compliance.StaticContext")] public class StaticContext : DeputyBase { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference @@ -33,7 +33,7 @@ protected StaticContext(DeputyProps props): base(props) [JsiiMethod(name: "canAccessStaticContext", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}")] public static bool CanAccessStaticContext() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.StaticContext), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.StaticContext), new System.Type[]{}, new object[]{}); } /// @@ -42,8 +42,8 @@ public static bool CanAccessStaticContext() [JsiiProperty(name: "staticVariable", typeJson: "{\"primitive\":\"boolean\"}")] public static bool StaticVariable { - get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.StaticContext)); - set => SetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.StaticContext), value); + get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.StaticContext)); + set => SetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.StaticContext), value); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Statics.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Statics.cs similarity index 82% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Statics.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Statics.cs index fabaa43e58..ddb778dcd7 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Statics.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Statics.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics), fullyQualifiedName: "jsii-calc.Statics", parametersJson: "[{\"name\":\"value\",\"type\":{\"primitive\":\"string\"}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Statics), fullyQualifiedName: "jsii-calc.compliance.Statics", parametersJson: "[{\"name\":\"value\",\"type\":{\"primitive\":\"string\"}}]")] public class Statics : DeputyBase { /// @@ -39,7 +39,7 @@ protected Statics(DeputyProps props): base(props) [JsiiMethod(name: "staticMethod", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"docs\":{\"summary\":\"The name of the person to say hello to.\"},\"name\":\"name\",\"type\":{\"primitive\":\"string\"}}]")] public static string StaticMethod(string name) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics), new System.Type[]{typeof(string)}, new object[]{name}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Statics), new System.Type[]{typeof(string)}, new object[]{name}); } /// @@ -60,17 +60,17 @@ public static double BAR { get; } - = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics)); + = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Statics)); /// /// Stability: Experimental /// - [JsiiProperty(name: "ConstObj", typeJson: "{\"fqn\":\"jsii-calc.DoubleTrouble\"}")] - public static Amazon.JSII.Tests.CalculatorNamespace.DoubleTrouble ConstObj + [JsiiProperty(name: "ConstObj", typeJson: "{\"fqn\":\"jsii-calc.compliance.DoubleTrouble\"}")] + public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.DoubleTrouble ConstObj { get; } - = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics)); + = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Statics)); /// Jsdocs for static property. /// @@ -81,7 +81,7 @@ public static string Foo { get; } - = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics)); + = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Statics)); /// Constants can also use camelCase. /// @@ -92,7 +92,7 @@ public static System.Collections.Generic.IDictionary ZooBar { get; } - = GetStaticProperty>(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics)); + = GetStaticProperty>(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Statics)); /// Jsdocs for static getter. /// @@ -100,11 +100,11 @@ public static System.Collections.Generic.IDictionary ZooBar /// /// Stability: Experimental /// - [JsiiProperty(name: "instance", typeJson: "{\"fqn\":\"jsii-calc.Statics\"}")] - public static Amazon.JSII.Tests.CalculatorNamespace.Statics Instance + [JsiiProperty(name: "instance", typeJson: "{\"fqn\":\"jsii-calc.compliance.Statics\"}")] + public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.Statics Instance { - get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics)); - set => SetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics), value); + get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Statics)); + set => SetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Statics), value); } /// @@ -113,8 +113,8 @@ public static Amazon.JSII.Tests.CalculatorNamespace.Statics Instance [JsiiProperty(name: "nonConstStatic", typeJson: "{\"primitive\":\"number\"}")] public static double NonConstStatic { - get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics)); - set => SetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics), value); + get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Statics)); + set => SetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Statics), value); } /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StringEnum.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StringEnum.cs similarity index 87% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StringEnum.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StringEnum.cs index 4c7851da65..e5b435b97e 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StringEnum.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StringEnum.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiEnum(nativeType: typeof(StringEnum), fullyQualifiedName: "jsii-calc.StringEnum")] + [JsiiEnum(nativeType: typeof(StringEnum), fullyQualifiedName: "jsii-calc.compliance.StringEnum")] public enum StringEnum { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StripInternal.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StripInternal.cs similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StripInternal.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StripInternal.cs index e1b17595e7..b9852ee093 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StripInternal.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StripInternal.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.StripInternal), fullyQualifiedName: "jsii-calc.StripInternal")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.StripInternal), fullyQualifiedName: "jsii-calc.compliance.StripInternal")] public class StripInternal : DeputyBase { public StripInternal(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructA.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructA.cs similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructA.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructA.cs index a689765a1d..1b399400cf 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructA.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructA.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { #pragma warning disable CS8618 @@ -10,8 +10,8 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.StructA")] - public class StructA : Amazon.JSII.Tests.CalculatorNamespace.IStructA + [JsiiByValue(fqn: "jsii-calc.compliance.StructA")] + public class StructA : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IStructA { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructAProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructAProxy.cs similarity index 91% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructAProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructAProxy.cs index dfccd35da5..143cc01a48 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructAProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructAProxy.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// We can serialize and deserialize structs without silently ignoring optional fields. /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IStructA), fullyQualifiedName: "jsii-calc.StructA")] - internal sealed class StructAProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IStructA + [JsiiTypeProxy(nativeType: typeof(IStructA), fullyQualifiedName: "jsii-calc.compliance.StructA")] + internal sealed class StructAProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IStructA { private StructAProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructB.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructB.cs similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructB.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructB.cs index 5e3288721b..c97783d59b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructB.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructB.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { #pragma warning disable CS8618 @@ -10,8 +10,8 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.StructB")] - public class StructB : Amazon.JSII.Tests.CalculatorNamespace.IStructB + [JsiiByValue(fqn: "jsii-calc.compliance.StructB")] + public class StructB : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IStructB { /// /// Stability: Experimental @@ -38,8 +38,8 @@ public bool? OptionalBoolean /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: "optionalStructA", typeJson: "{\"fqn\":\"jsii-calc.StructA\"}", isOptional: true, isOverride: true)] - public Amazon.JSII.Tests.CalculatorNamespace.IStructA? OptionalStructA + [JsiiProperty(name: "optionalStructA", typeJson: "{\"fqn\":\"jsii-calc.compliance.StructA\"}", isOptional: true, isOverride: true)] + public Amazon.JSII.Tests.CalculatorNamespace.Compliance.IStructA? OptionalStructA { get; set; diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructBProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructBProxy.cs similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructBProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructBProxy.cs index fbeb80c2fe..15286c71f0 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructBProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructBProxy.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// This intentionally overlaps with StructA (where only requiredString is provided) to test htat the kernel properly disambiguates those. /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IStructB), fullyQualifiedName: "jsii-calc.StructB")] - internal sealed class StructBProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IStructB + [JsiiTypeProxy(nativeType: typeof(IStructB), fullyQualifiedName: "jsii-calc.compliance.StructB")] + internal sealed class StructBProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IStructB { private StructBProxy(ByRefValue reference): base(reference) { @@ -38,10 +38,10 @@ public bool? OptionalBoolean /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: "optionalStructA", typeJson: "{\"fqn\":\"jsii-calc.StructA\"}", isOptional: true)] - public Amazon.JSII.Tests.CalculatorNamespace.IStructA? OptionalStructA + [JsiiProperty(name: "optionalStructA", typeJson: "{\"fqn\":\"jsii-calc.compliance.StructA\"}", isOptional: true)] + public Amazon.JSII.Tests.CalculatorNamespace.Compliance.IStructA? OptionalStructA { - get => GetInstanceProperty(); + get => GetInstanceProperty(); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructParameterType.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructParameterType.cs similarity index 87% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructParameterType.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructParameterType.cs index 498e8ebb67..6a8ce057e4 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructParameterType.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructParameterType.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { #pragma warning disable CS8618 @@ -12,8 +12,8 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.StructParameterType")] - public class StructParameterType : Amazon.JSII.Tests.CalculatorNamespace.IStructParameterType + [JsiiByValue(fqn: "jsii-calc.compliance.StructParameterType")] + public class StructParameterType : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IStructParameterType { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructParameterTypeProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructParameterTypeProxy.cs similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructParameterTypeProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructParameterTypeProxy.cs index 25ffff86b0..098cc3ef4d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructParameterTypeProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructParameterTypeProxy.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// Verifies that, in languages that do keyword lifting (e.g: Python), having a struct member with the same name as a positional parameter results in the correct code being emitted. /// @@ -10,8 +10,8 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IStructParameterType), fullyQualifiedName: "jsii-calc.StructParameterType")] - internal sealed class StructParameterTypeProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IStructParameterType + [JsiiTypeProxy(nativeType: typeof(IStructParameterType), fullyQualifiedName: "jsii-calc.compliance.StructParameterType")] + internal sealed class StructParameterTypeProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IStructParameterType { private StructParameterTypeProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructPassing.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructPassing.cs similarity index 60% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructPassing.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructPassing.cs index 0d7de5953d..77d0aa9125 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructPassing.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructPassing.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// Just because we can. /// /// Stability: External /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.StructPassing), fullyQualifiedName: "jsii-calc.StructPassing")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.StructPassing), fullyQualifiedName: "jsii-calc.compliance.StructPassing")] public class StructPassing : DeputyBase { public StructPassing(): base(new DeputyProps(new object[]{})) @@ -32,19 +32,19 @@ protected StructPassing(DeputyProps props): base(props) /// /// Stability: External /// - [JsiiMethod(name: "howManyVarArgsDidIPass", returnsJson: "{\"type\":{\"primitive\":\"number\"}}", parametersJson: "[{\"name\":\"_positional\",\"type\":{\"primitive\":\"number\"}},{\"name\":\"inputs\",\"type\":{\"fqn\":\"jsii-calc.TopLevelStruct\"},\"variadic\":true}]")] - public static double HowManyVarArgsDidIPass(double positional, params Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct[] inputs) + [JsiiMethod(name: "howManyVarArgsDidIPass", returnsJson: "{\"type\":{\"primitive\":\"number\"}}", parametersJson: "[{\"name\":\"_positional\",\"type\":{\"primitive\":\"number\"}},{\"name\":\"inputs\",\"type\":{\"fqn\":\"jsii-calc.compliance.TopLevelStruct\"},\"variadic\":true}]")] + public static double HowManyVarArgsDidIPass(double positional, params Amazon.JSII.Tests.CalculatorNamespace.Compliance.ITopLevelStruct[] inputs) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.StructPassing), new System.Type[]{typeof(double), typeof(Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct[])}, new object[]{positional, inputs}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.StructPassing), new System.Type[]{typeof(double), typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ITopLevelStruct[])}, new object[]{positional, inputs}); } /// /// Stability: External /// - [JsiiMethod(name: "roundTrip", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.TopLevelStruct\"}}", parametersJson: "[{\"name\":\"_positional\",\"type\":{\"primitive\":\"number\"}},{\"name\":\"input\",\"type\":{\"fqn\":\"jsii-calc.TopLevelStruct\"}}]")] - public static Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct RoundTrip(double positional, Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct input) + [JsiiMethod(name: "roundTrip", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.TopLevelStruct\"}}", parametersJson: "[{\"name\":\"_positional\",\"type\":{\"primitive\":\"number\"}},{\"name\":\"input\",\"type\":{\"fqn\":\"jsii-calc.compliance.TopLevelStruct\"}}]")] + public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.ITopLevelStruct RoundTrip(double positional, Amazon.JSII.Tests.CalculatorNamespace.Compliance.ITopLevelStruct input) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.StructPassing), new System.Type[]{typeof(double), typeof(Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct)}, new object[]{positional, input}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.StructPassing), new System.Type[]{typeof(double), typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ITopLevelStruct)}, new object[]{positional, input}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructUnionConsumer.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructUnionConsumer.cs similarity index 72% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructUnionConsumer.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructUnionConsumer.cs index 550aa1ab46..950ee9352b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructUnionConsumer.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructUnionConsumer.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.StructUnionConsumer), fullyQualifiedName: "jsii-calc.StructUnionConsumer")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.StructUnionConsumer), fullyQualifiedName: "jsii-calc.compliance.StructUnionConsumer")] public class StructUnionConsumer : DeputyBase { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference @@ -27,19 +27,19 @@ protected StructUnionConsumer(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "isStructA", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"struct\",\"type\":{\"union\":{\"types\":[{\"fqn\":\"jsii-calc.StructA\"},{\"fqn\":\"jsii-calc.StructB\"}]}}}]")] + [JsiiMethod(name: "isStructA", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"struct\",\"type\":{\"union\":{\"types\":[{\"fqn\":\"jsii-calc.compliance.StructA\"},{\"fqn\":\"jsii-calc.compliance.StructB\"}]}}}]")] public static bool IsStructA(object @struct) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.StructUnionConsumer), new System.Type[]{typeof(object)}, new object[]{@struct}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.StructUnionConsumer), new System.Type[]{typeof(object)}, new object[]{@struct}); } /// /// Stability: Experimental /// - [JsiiMethod(name: "isStructB", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"struct\",\"type\":{\"union\":{\"types\":[{\"fqn\":\"jsii-calc.StructA\"},{\"fqn\":\"jsii-calc.StructB\"}]}}}]")] + [JsiiMethod(name: "isStructB", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"struct\",\"type\":{\"union\":{\"types\":[{\"fqn\":\"jsii-calc.compliance.StructA\"},{\"fqn\":\"jsii-calc.compliance.StructB\"}]}}}]")] public static bool IsStructB(object @struct) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.StructUnionConsumer), new System.Type[]{typeof(object)}, new object[]{@struct}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.StructUnionConsumer), new System.Type[]{typeof(object)}, new object[]{@struct}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructWithJavaReservedWords.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructWithJavaReservedWords.cs similarity index 88% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructWithJavaReservedWords.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructWithJavaReservedWords.cs index ae29361d74..9abaca8d2d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructWithJavaReservedWords.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructWithJavaReservedWords.cs @@ -2,15 +2,15 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { #pragma warning disable CS8618 /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.StructWithJavaReservedWords")] - public class StructWithJavaReservedWords : Amazon.JSII.Tests.CalculatorNamespace.IStructWithJavaReservedWords + [JsiiByValue(fqn: "jsii-calc.compliance.StructWithJavaReservedWords")] + public class StructWithJavaReservedWords : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IStructWithJavaReservedWords { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructWithJavaReservedWordsProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructWithJavaReservedWordsProxy.cs similarity index 88% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructWithJavaReservedWordsProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructWithJavaReservedWordsProxy.cs index 82d29eef13..9264824a2c 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructWithJavaReservedWordsProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructWithJavaReservedWordsProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IStructWithJavaReservedWords), fullyQualifiedName: "jsii-calc.StructWithJavaReservedWords")] - internal sealed class StructWithJavaReservedWordsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IStructWithJavaReservedWords + [JsiiTypeProxy(nativeType: typeof(IStructWithJavaReservedWords), fullyQualifiedName: "jsii-calc.compliance.StructWithJavaReservedWords")] + internal sealed class StructWithJavaReservedWordsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IStructWithJavaReservedWords { private StructWithJavaReservedWordsProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilder.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SupportsNiceJavaBuilder.cs similarity index 68% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilder.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SupportsNiceJavaBuilder.cs index 4d125e367a..280bfbc7b6 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilder.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SupportsNiceJavaBuilder.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SupportsNiceJavaBuilder), fullyQualifiedName: "jsii-calc.SupportsNiceJavaBuilder", parametersJson: "[{\"docs\":{\"summary\":\"some identifier.\"},\"name\":\"id\",\"type\":{\"primitive\":\"number\"}},{\"docs\":{\"summary\":\"the default value of `bar`.\"},\"name\":\"defaultBar\",\"optional\":true,\"type\":{\"primitive\":\"number\"}},{\"docs\":{\"summary\":\"some props once can provide.\"},\"name\":\"props\",\"optional\":true,\"type\":{\"fqn\":\"jsii-calc.SupportsNiceJavaBuilderProps\"}},{\"docs\":{\"summary\":\"a variadic continuation.\"},\"name\":\"rest\",\"type\":{\"primitive\":\"string\"},\"variadic\":true}]")] - public class SupportsNiceJavaBuilder : Amazon.JSII.Tests.CalculatorNamespace.SupportsNiceJavaBuilderWithRequiredProps + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.SupportsNiceJavaBuilder), fullyQualifiedName: "jsii-calc.compliance.SupportsNiceJavaBuilder", parametersJson: "[{\"docs\":{\"summary\":\"some identifier.\"},\"name\":\"id\",\"type\":{\"primitive\":\"number\"}},{\"docs\":{\"summary\":\"the default value of `bar`.\"},\"name\":\"defaultBar\",\"optional\":true,\"type\":{\"primitive\":\"number\"}},{\"docs\":{\"summary\":\"some props once can provide.\"},\"name\":\"props\",\"optional\":true,\"type\":{\"fqn\":\"jsii-calc.compliance.SupportsNiceJavaBuilderProps\"}},{\"docs\":{\"summary\":\"a variadic continuation.\"},\"name\":\"rest\",\"type\":{\"primitive\":\"string\"},\"variadic\":true}]")] + public class SupportsNiceJavaBuilder : Amazon.JSII.Tests.CalculatorNamespace.Compliance.SupportsNiceJavaBuilderWithRequiredProps { /// some identifier. /// the default value of `bar`. @@ -17,7 +17,7 @@ public class SupportsNiceJavaBuilder : Amazon.JSII.Tests.CalculatorNamespace.Sup /// /// Stability: Experimental /// - public SupportsNiceJavaBuilder(double id, double? defaultBar = null, Amazon.JSII.Tests.CalculatorNamespace.ISupportsNiceJavaBuilderProps? props = null, params string[] rest): base(new DeputyProps(new object?[]{id, defaultBar, props, rest})) + public SupportsNiceJavaBuilder(double id, double? defaultBar = null, Amazon.JSII.Tests.CalculatorNamespace.Compliance.ISupportsNiceJavaBuilderProps? props = null, params string[] rest): base(new DeputyProps(new object?[]{id, defaultBar, props, rest})) { } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilderProps.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SupportsNiceJavaBuilderProps.cs similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilderProps.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SupportsNiceJavaBuilderProps.cs index 16c2819a9d..a960bc263b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilderProps.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SupportsNiceJavaBuilderProps.cs @@ -2,15 +2,15 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { #pragma warning disable CS8618 /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.SupportsNiceJavaBuilderProps")] - public class SupportsNiceJavaBuilderProps : Amazon.JSII.Tests.CalculatorNamespace.ISupportsNiceJavaBuilderProps + [JsiiByValue(fqn: "jsii-calc.compliance.SupportsNiceJavaBuilderProps")] + public class SupportsNiceJavaBuilderProps : Amazon.JSII.Tests.CalculatorNamespace.Compliance.ISupportsNiceJavaBuilderProps { /// Some number, like 42. /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilderPropsProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SupportsNiceJavaBuilderPropsProxy.cs similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilderPropsProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SupportsNiceJavaBuilderPropsProxy.cs index d11df3b092..26eaab45c7 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilderPropsProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SupportsNiceJavaBuilderPropsProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(ISupportsNiceJavaBuilderProps), fullyQualifiedName: "jsii-calc.SupportsNiceJavaBuilderProps")] - internal sealed class SupportsNiceJavaBuilderPropsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ISupportsNiceJavaBuilderProps + [JsiiTypeProxy(nativeType: typeof(ISupportsNiceJavaBuilderProps), fullyQualifiedName: "jsii-calc.compliance.SupportsNiceJavaBuilderProps")] + internal sealed class SupportsNiceJavaBuilderPropsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.ISupportsNiceJavaBuilderProps { private SupportsNiceJavaBuilderPropsProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilderWithRequiredProps.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SupportsNiceJavaBuilderWithRequiredProps.cs similarity index 80% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilderWithRequiredProps.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SupportsNiceJavaBuilderWithRequiredProps.cs index 2f9b227c46..595d741dea 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilderWithRequiredProps.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SupportsNiceJavaBuilderWithRequiredProps.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// We can generate fancy builders in Java for classes which take a mix of positional & struct parameters. /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SupportsNiceJavaBuilderWithRequiredProps), fullyQualifiedName: "jsii-calc.SupportsNiceJavaBuilderWithRequiredProps", parametersJson: "[{\"docs\":{\"summary\":\"some identifier of your choice.\"},\"name\":\"id\",\"type\":{\"primitive\":\"number\"}},{\"docs\":{\"summary\":\"some properties.\"},\"name\":\"props\",\"type\":{\"fqn\":\"jsii-calc.SupportsNiceJavaBuilderProps\"}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.SupportsNiceJavaBuilderWithRequiredProps), fullyQualifiedName: "jsii-calc.compliance.SupportsNiceJavaBuilderWithRequiredProps", parametersJson: "[{\"docs\":{\"summary\":\"some identifier of your choice.\"},\"name\":\"id\",\"type\":{\"primitive\":\"number\"}},{\"docs\":{\"summary\":\"some properties.\"},\"name\":\"props\",\"type\":{\"fqn\":\"jsii-calc.compliance.SupportsNiceJavaBuilderProps\"}}]")] public class SupportsNiceJavaBuilderWithRequiredProps : DeputyBase { /// some identifier of your choice. @@ -16,7 +16,7 @@ public class SupportsNiceJavaBuilderWithRequiredProps : DeputyBase /// /// Stability: Experimental /// - public SupportsNiceJavaBuilderWithRequiredProps(double id, Amazon.JSII.Tests.CalculatorNamespace.ISupportsNiceJavaBuilderProps props): base(new DeputyProps(new object[]{id, props})) + public SupportsNiceJavaBuilderWithRequiredProps(double id, Amazon.JSII.Tests.CalculatorNamespace.Compliance.ISupportsNiceJavaBuilderProps props): base(new DeputyProps(new object[]{id, props})) { } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SyncVirtualMethods.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SyncVirtualMethods.cs similarity index 97% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SyncVirtualMethods.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SyncVirtualMethods.cs index 130db1db59..3106beae4e 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SyncVirtualMethods.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SyncVirtualMethods.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SyncVirtualMethods), fullyQualifiedName: "jsii-calc.SyncVirtualMethods")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.SyncVirtualMethods), fullyQualifiedName: "jsii-calc.compliance.SyncVirtualMethods")] public class SyncVirtualMethods : DeputyBase { public SyncVirtualMethods(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Thrower.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Thrower.cs similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Thrower.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Thrower.cs index 16df088228..69db55bd5f 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Thrower.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Thrower.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Thrower), fullyQualifiedName: "jsii-calc.Thrower")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Thrower), fullyQualifiedName: "jsii-calc.compliance.Thrower")] public class Thrower : DeputyBase { public Thrower(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/TopLevelStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/TopLevelStruct.cs similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/TopLevelStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/TopLevelStruct.cs index 71952e0149..fe201b9821 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/TopLevelStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/TopLevelStruct.cs @@ -2,15 +2,15 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { #pragma warning disable CS8618 /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.TopLevelStruct")] - public class TopLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct + [JsiiByValue(fqn: "jsii-calc.compliance.TopLevelStruct")] + public class TopLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.Compliance.ITopLevelStruct { /// This is a required field. /// @@ -27,7 +27,7 @@ public string Required /// /// Stability: Experimental /// - [JsiiProperty(name: "secondLevel", typeJson: "{\"union\":{\"types\":[{\"primitive\":\"number\"},{\"fqn\":\"jsii-calc.SecondLevelStruct\"}]}}", isOverride: true)] + [JsiiProperty(name: "secondLevel", typeJson: "{\"union\":{\"types\":[{\"primitive\":\"number\"},{\"fqn\":\"jsii-calc.compliance.SecondLevelStruct\"}]}}", isOverride: true)] public object SecondLevel { get; diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/TopLevelStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/TopLevelStructProxy.cs similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/TopLevelStructProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/TopLevelStructProxy.cs index 9c94640e97..18ea15f5f8 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/TopLevelStructProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/TopLevelStructProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(ITopLevelStruct), fullyQualifiedName: "jsii-calc.TopLevelStruct")] - internal sealed class TopLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct + [JsiiTypeProxy(nativeType: typeof(ITopLevelStruct), fullyQualifiedName: "jsii-calc.compliance.TopLevelStruct")] + internal sealed class TopLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.ITopLevelStruct { private TopLevelStructProxy(ByRefValue reference): base(reference) { @@ -28,7 +28,7 @@ public string Required /// /// Stability: Experimental /// - [JsiiProperty(name: "secondLevel", typeJson: "{\"union\":{\"types\":[{\"primitive\":\"number\"},{\"fqn\":\"jsii-calc.SecondLevelStruct\"}]}}")] + [JsiiProperty(name: "secondLevel", typeJson: "{\"union\":{\"types\":[{\"primitive\":\"number\"},{\"fqn\":\"jsii-calc.compliance.SecondLevelStruct\"}]}}")] public object SecondLevel { get => GetInstanceProperty(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UnionProperties.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/UnionProperties.cs similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UnionProperties.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/UnionProperties.cs index c827b0e642..464d5377f8 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UnionProperties.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/UnionProperties.cs @@ -2,20 +2,20 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { #pragma warning disable CS8618 /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.UnionProperties")] - public class UnionProperties : Amazon.JSII.Tests.CalculatorNamespace.IUnionProperties + [JsiiByValue(fqn: "jsii-calc.compliance.UnionProperties")] + public class UnionProperties : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IUnionProperties { /// /// Stability: Experimental /// - [JsiiProperty(name: "bar", typeJson: "{\"union\":{\"types\":[{\"primitive\":\"string\"},{\"primitive\":\"number\"},{\"fqn\":\"jsii-calc.AllTypes\"}]}}", isOverride: true)] + [JsiiProperty(name: "bar", typeJson: "{\"union\":{\"types\":[{\"primitive\":\"string\"},{\"primitive\":\"number\"},{\"fqn\":\"jsii-calc.compliance.AllTypes\"}]}}", isOverride: true)] public object Bar { get; diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UnionPropertiesProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/UnionPropertiesProxy.cs similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UnionPropertiesProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/UnionPropertiesProxy.cs index 16732ebbcf..ad648aabb1 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UnionPropertiesProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/UnionPropertiesProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IUnionProperties), fullyQualifiedName: "jsii-calc.UnionProperties")] - internal sealed class UnionPropertiesProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IUnionProperties + [JsiiTypeProxy(nativeType: typeof(IUnionProperties), fullyQualifiedName: "jsii-calc.compliance.UnionProperties")] + internal sealed class UnionPropertiesProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IUnionProperties { private UnionPropertiesProxy(ByRefValue reference): base(reference) { @@ -17,7 +17,7 @@ private UnionPropertiesProxy(ByRefValue reference): base(reference) /// /// Stability: Experimental /// - [JsiiProperty(name: "bar", typeJson: "{\"union\":{\"types\":[{\"primitive\":\"string\"},{\"primitive\":\"number\"},{\"fqn\":\"jsii-calc.AllTypes\"}]}}")] + [JsiiProperty(name: "bar", typeJson: "{\"union\":{\"types\":[{\"primitive\":\"string\"},{\"primitive\":\"number\"},{\"fqn\":\"jsii-calc.compliance.AllTypes\"}]}}")] public object Bar { get => GetInstanceProperty(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UseBundledDependency.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/UseBundledDependency.cs similarity index 89% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UseBundledDependency.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/UseBundledDependency.cs index cbf27fedd2..8f96a9734a 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UseBundledDependency.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/UseBundledDependency.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UseBundledDependency), fullyQualifiedName: "jsii-calc.UseBundledDependency")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.UseBundledDependency), fullyQualifiedName: "jsii-calc.compliance.UseBundledDependency")] public class UseBundledDependency : DeputyBase { public UseBundledDependency(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UseCalcBase.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/UseCalcBase.cs similarity index 91% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UseCalcBase.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/UseCalcBase.cs index ef9929be49..c17012e96e 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UseCalcBase.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/UseCalcBase.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// Depend on a type from jsii-calc-base as a test for awslabs/jsii#128. /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UseCalcBase), fullyQualifiedName: "jsii-calc.UseCalcBase")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.UseCalcBase), fullyQualifiedName: "jsii-calc.compliance.UseCalcBase")] public class UseCalcBase : DeputyBase { public UseCalcBase(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UsesInterfaceWithProperties.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/UsesInterfaceWithProperties.cs similarity index 75% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UsesInterfaceWithProperties.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/UsesInterfaceWithProperties.cs index 85b8ea2818..1ff637ee4a 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UsesInterfaceWithProperties.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/UsesInterfaceWithProperties.cs @@ -2,18 +2,18 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UsesInterfaceWithProperties), fullyQualifiedName: "jsii-calc.UsesInterfaceWithProperties", parametersJson: "[{\"name\":\"obj\",\"type\":{\"fqn\":\"jsii-calc.IInterfaceWithProperties\"}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.UsesInterfaceWithProperties), fullyQualifiedName: "jsii-calc.compliance.UsesInterfaceWithProperties", parametersJson: "[{\"name\":\"obj\",\"type\":{\"fqn\":\"jsii-calc.compliance.IInterfaceWithProperties\"}}]")] public class UsesInterfaceWithProperties : DeputyBase { /// /// Stability: Experimental /// - public UsesInterfaceWithProperties(Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithProperties obj): base(new DeputyProps(new object[]{obj})) + public UsesInterfaceWithProperties(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IInterfaceWithProperties obj): base(new DeputyProps(new object[]{obj})) { } @@ -43,10 +43,10 @@ public virtual string JustRead() /// /// Stability: Experimental /// - [JsiiMethod(name: "readStringAndNumber", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"ext\",\"type\":{\"fqn\":\"jsii-calc.IInterfaceWithPropertiesExtension\"}}]")] - public virtual string ReadStringAndNumber(Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithPropertiesExtension ext) + [JsiiMethod(name: "readStringAndNumber", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"ext\",\"type\":{\"fqn\":\"jsii-calc.compliance.IInterfaceWithPropertiesExtension\"}}]")] + public virtual string ReadStringAndNumber(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IInterfaceWithPropertiesExtension ext) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithPropertiesExtension)}, new object[]{ext}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IInterfaceWithPropertiesExtension)}, new object[]{ext}); } /// @@ -61,10 +61,10 @@ public virtual string WriteAndRead(string @value) /// /// Stability: Experimental /// - [JsiiProperty(name: "obj", typeJson: "{\"fqn\":\"jsii-calc.IInterfaceWithProperties\"}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithProperties Obj + [JsiiProperty(name: "obj", typeJson: "{\"fqn\":\"jsii-calc.compliance.IInterfaceWithProperties\"}")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.Compliance.IInterfaceWithProperties Obj { - get => GetInstanceProperty(); + get => GetInstanceProperty(); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VariadicInvoker.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/VariadicInvoker.cs similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VariadicInvoker.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/VariadicInvoker.cs index 2c7f3d7d65..aa4c838612 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VariadicInvoker.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/VariadicInvoker.cs @@ -2,18 +2,18 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.VariadicInvoker), fullyQualifiedName: "jsii-calc.VariadicInvoker", parametersJson: "[{\"name\":\"method\",\"type\":{\"fqn\":\"jsii-calc.VariadicMethod\"}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.VariadicInvoker), fullyQualifiedName: "jsii-calc.compliance.VariadicInvoker", parametersJson: "[{\"name\":\"method\",\"type\":{\"fqn\":\"jsii-calc.compliance.VariadicMethod\"}}]")] public class VariadicInvoker : DeputyBase { /// /// Stability: Experimental /// - public VariadicInvoker(Amazon.JSII.Tests.CalculatorNamespace.VariadicMethod method): base(new DeputyProps(new object[]{method})) + public VariadicInvoker(Amazon.JSII.Tests.CalculatorNamespace.Compliance.VariadicMethod method): base(new DeputyProps(new object[]{method})) { } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VariadicMethod.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/VariadicMethod.cs similarity index 87% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VariadicMethod.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/VariadicMethod.cs index 102b19b473..15f9b3f389 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VariadicMethod.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/VariadicMethod.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.VariadicMethod), fullyQualifiedName: "jsii-calc.VariadicMethod", parametersJson: "[{\"docs\":{\"summary\":\"a prefix that will be use for all values returned by `#asArray`.\"},\"name\":\"prefix\",\"type\":{\"primitive\":\"number\"},\"variadic\":true}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.VariadicMethod), fullyQualifiedName: "jsii-calc.compliance.VariadicMethod", parametersJson: "[{\"docs\":{\"summary\":\"a prefix that will be use for all values returned by `#asArray`.\"},\"name\":\"prefix\",\"type\":{\"primitive\":\"number\"},\"variadic\":true}]")] public class VariadicMethod : DeputyBase { /// a prefix that will be use for all values returned by `#asArray`. diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VirtualMethodPlayground.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/VirtualMethodPlayground.cs similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VirtualMethodPlayground.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/VirtualMethodPlayground.cs index e55286686c..29d42f0c76 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VirtualMethodPlayground.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/VirtualMethodPlayground.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.VirtualMethodPlayground), fullyQualifiedName: "jsii-calc.VirtualMethodPlayground")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.VirtualMethodPlayground), fullyQualifiedName: "jsii-calc.compliance.VirtualMethodPlayground")] public class VirtualMethodPlayground : DeputyBase { public VirtualMethodPlayground(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VoidCallback.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/VoidCallback.cs similarity index 93% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VoidCallback.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/VoidCallback.cs index 0b71fc3d26..0e353001ee 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VoidCallback.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/VoidCallback.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// This test is used to validate the runtimes can return correctly from a void callback. /// @@ -14,7 +14,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.VoidCallback), fullyQualifiedName: "jsii-calc.VoidCallback")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.VoidCallback), fullyQualifiedName: "jsii-calc.compliance.VoidCallback")] public abstract class VoidCallback : DeputyBase { protected VoidCallback(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VoidCallbackProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/VoidCallbackProxy.cs similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VoidCallbackProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/VoidCallbackProxy.cs index 17fcef5856..8cbb3233b7 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VoidCallbackProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/VoidCallbackProxy.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// This test is used to validate the runtimes can return correctly from a void callback. /// @@ -14,8 +14,8 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.VoidCallback), fullyQualifiedName: "jsii-calc.VoidCallback")] - internal sealed class VoidCallbackProxy : Amazon.JSII.Tests.CalculatorNamespace.VoidCallback + [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.VoidCallback), fullyQualifiedName: "jsii-calc.compliance.VoidCallback")] + internal sealed class VoidCallbackProxy : Amazon.JSII.Tests.CalculatorNamespace.Compliance.VoidCallback { private VoidCallbackProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/WithPrivatePropertyInConstructor.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/WithPrivatePropertyInConstructor.cs similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/WithPrivatePropertyInConstructor.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/WithPrivatePropertyInConstructor.cs index 2dfcb9651f..4d9ad46830 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/WithPrivatePropertyInConstructor.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/WithPrivatePropertyInConstructor.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance { /// Verifies that private property declarations in constructor arguments are hidden. /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.WithPrivatePropertyInConstructor), fullyQualifiedName: "jsii-calc.WithPrivatePropertyInConstructor", parametersJson: "[{\"name\":\"privateField\",\"optional\":true,\"type\":{\"primitive\":\"string\"}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.WithPrivatePropertyInConstructor), fullyQualifiedName: "jsii-calc.compliance.WithPrivatePropertyInConstructor", parametersJson: "[{\"name\":\"privateField\",\"optional\":true,\"type\":{\"primitive\":\"string\"}}]")] public class WithPrivatePropertyInConstructor : DeputyBase { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DocumentedClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Documented/DocumentedClass.cs similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DocumentedClass.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Documented/DocumentedClass.cs index 39b9d51f4d..bdc648dae8 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DocumentedClass.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Documented/DocumentedClass.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Documented { /// Here's the first line of the TSDoc comment. /// @@ -13,7 +13,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// /// Stability: Stable /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DocumentedClass), fullyQualifiedName: "jsii-calc.DocumentedClass")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Documented.DocumentedClass), fullyQualifiedName: "jsii-calc.documented.DocumentedClass")] public class DocumentedClass : DeputyBase { public DocumentedClass(): base(new DeputyProps(new object[]{})) @@ -43,10 +43,10 @@ protected DocumentedClass(DeputyProps props): base(props) /// /// Stability: Stable /// - [JsiiMethod(name: "greet", returnsJson: "{\"type\":{\"primitive\":\"number\"}}", parametersJson: "[{\"docs\":{\"summary\":\"The person to be greeted.\"},\"name\":\"greetee\",\"optional\":true,\"type\":{\"fqn\":\"jsii-calc.Greetee\"}}]")] - public virtual double Greet(Amazon.JSII.Tests.CalculatorNamespace.IGreetee? greetee = null) + [JsiiMethod(name: "greet", returnsJson: "{\"type\":{\"primitive\":\"number\"}}", parametersJson: "[{\"docs\":{\"summary\":\"The person to be greeted.\"},\"name\":\"greetee\",\"optional\":true,\"type\":{\"fqn\":\"jsii-calc.documented.Greetee\"}}]")] + public virtual double Greet(Amazon.JSII.Tests.CalculatorNamespace.Documented.IGreetee? greetee = null) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IGreetee)}, new object?[]{greetee}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Documented.IGreetee)}, new object?[]{greetee}); } /// Say ¡Hola! diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Greetee.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Documented/Greetee.cs similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Greetee.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Documented/Greetee.cs index 48d1f46546..8ef5800fd7 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Greetee.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Documented/Greetee.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Documented { /// These are some arguments you can pass to a method. /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.Greetee")] - public class Greetee : Amazon.JSII.Tests.CalculatorNamespace.IGreetee + [JsiiByValue(fqn: "jsii-calc.documented.Greetee")] + public class Greetee : Amazon.JSII.Tests.CalculatorNamespace.Documented.IGreetee { /// The name of the greetee. /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/GreeteeProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Documented/GreeteeProxy.cs similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/GreeteeProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Documented/GreeteeProxy.cs index 063f33cc48..5de3632e79 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/GreeteeProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Documented/GreeteeProxy.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Documented { /// These are some arguments you can pass to a method. /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IGreetee), fullyQualifiedName: "jsii-calc.Greetee")] - internal sealed class GreeteeProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IGreetee + [JsiiTypeProxy(nativeType: typeof(IGreetee), fullyQualifiedName: "jsii-calc.documented.Greetee")] + internal sealed class GreeteeProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Documented.IGreetee { private GreeteeProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IGreetee.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Documented/IGreetee.cs similarity index 89% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IGreetee.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Documented/IGreetee.cs index dd4e12710b..b48b807293 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IGreetee.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Documented/IGreetee.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Documented { /// These are some arguments you can pass to a method. /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IGreetee), fullyQualifiedName: "jsii-calc.Greetee")] + [JsiiInterface(nativeType: typeof(IGreetee), fullyQualifiedName: "jsii-calc.documented.Greetee")] public interface IGreetee { /// The name of the greetee. diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Old.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Documented/Old.cs similarity index 91% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Old.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Documented/Old.cs index a1b2d15a4b..316baf2d53 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Old.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Documented/Old.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.Documented { /// Old class. /// /// Stability: Deprecated /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Old), fullyQualifiedName: "jsii-calc.Old")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Documented.Old), fullyQualifiedName: "jsii-calc.documented.Old")] [System.Obsolete("Use the new class")] public class Old : DeputyBase { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417Derived.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJSII417Derived.cs similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417Derived.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJSII417Derived.cs index 7e0e6c7eca..a6b0d652f4 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417Derived.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJSII417Derived.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.ErasureTests { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IJSII417Derived), fullyQualifiedName: "jsii-calc.IJSII417Derived")] - public interface IJSII417Derived : Amazon.JSII.Tests.CalculatorNamespace.IJSII417PublicBaseOfBase + [JsiiInterface(nativeType: typeof(IJSII417Derived), fullyQualifiedName: "jsii-calc.erasureTests.IJSII417Derived")] + public interface IJSII417Derived : Amazon.JSII.Tests.CalculatorNamespace.ErasureTests.IJSII417PublicBaseOfBase { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417DerivedProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJSII417DerivedProxy.cs similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417DerivedProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJSII417DerivedProxy.cs index 7802c21a47..af499220ed 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417DerivedProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJSII417DerivedProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.ErasureTests { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IJSII417Derived), fullyQualifiedName: "jsii-calc.IJSII417Derived")] - internal sealed class IJSII417DerivedProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IJSII417Derived + [JsiiTypeProxy(nativeType: typeof(IJSII417Derived), fullyQualifiedName: "jsii-calc.erasureTests.IJSII417Derived")] + internal sealed class IJSII417DerivedProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ErasureTests.IJSII417Derived { private IJSII417DerivedProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417PublicBaseOfBase.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJSII417PublicBaseOfBase.cs similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417PublicBaseOfBase.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJSII417PublicBaseOfBase.cs index c5681e0a2b..20a717ac67 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417PublicBaseOfBase.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJSII417PublicBaseOfBase.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.ErasureTests { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IJSII417PublicBaseOfBase), fullyQualifiedName: "jsii-calc.IJSII417PublicBaseOfBase")] + [JsiiInterface(nativeType: typeof(IJSII417PublicBaseOfBase), fullyQualifiedName: "jsii-calc.erasureTests.IJSII417PublicBaseOfBase")] public interface IJSII417PublicBaseOfBase { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417PublicBaseOfBaseProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJSII417PublicBaseOfBaseProxy.cs similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417PublicBaseOfBaseProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJSII417PublicBaseOfBaseProxy.cs index 01a7b4700f..704f096327 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417PublicBaseOfBaseProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJSII417PublicBaseOfBaseProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.ErasureTests { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IJSII417PublicBaseOfBase), fullyQualifiedName: "jsii-calc.IJSII417PublicBaseOfBase")] - internal sealed class IJSII417PublicBaseOfBaseProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IJSII417PublicBaseOfBase + [JsiiTypeProxy(nativeType: typeof(IJSII417PublicBaseOfBase), fullyQualifiedName: "jsii-calc.erasureTests.IJSII417PublicBaseOfBase")] + internal sealed class IJSII417PublicBaseOfBaseProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ErasureTests.IJSII417PublicBaseOfBase { private IJSII417PublicBaseOfBaseProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487External.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJsii487External.cs similarity index 70% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487External.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJsii487External.cs index de1260883b..9b674debb8 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487External.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJsii487External.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.ErasureTests { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IJsii487External), fullyQualifiedName: "jsii-calc.IJsii487External")] + [JsiiInterface(nativeType: typeof(IJsii487External), fullyQualifiedName: "jsii-calc.erasureTests.IJsii487External")] public interface IJsii487External { } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487External2.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJsii487External2.cs similarity index 70% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487External2.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJsii487External2.cs index 2eaeb8cba4..7c9be2c457 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487External2.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJsii487External2.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.ErasureTests { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IJsii487External2), fullyQualifiedName: "jsii-calc.IJsii487External2")] + [JsiiInterface(nativeType: typeof(IJsii487External2), fullyQualifiedName: "jsii-calc.erasureTests.IJsii487External2")] public interface IJsii487External2 { } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487External2Proxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJsii487External2Proxy.cs similarity index 68% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487External2Proxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJsii487External2Proxy.cs index a1c3449a59..3276a34004 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487External2Proxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJsii487External2Proxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.ErasureTests { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IJsii487External2), fullyQualifiedName: "jsii-calc.IJsii487External2")] - internal sealed class IJsii487External2Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IJsii487External2 + [JsiiTypeProxy(nativeType: typeof(IJsii487External2), fullyQualifiedName: "jsii-calc.erasureTests.IJsii487External2")] + internal sealed class IJsii487External2Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ErasureTests.IJsii487External2 { private IJsii487External2Proxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487ExternalProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJsii487ExternalProxy.cs similarity index 68% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487ExternalProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJsii487ExternalProxy.cs index 6d6488ae8f..d49d00081b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487ExternalProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJsii487ExternalProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.ErasureTests { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IJsii487External), fullyQualifiedName: "jsii-calc.IJsii487External")] - internal sealed class IJsii487ExternalProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IJsii487External + [JsiiTypeProxy(nativeType: typeof(IJsii487External), fullyQualifiedName: "jsii-calc.erasureTests.IJsii487External")] + internal sealed class IJsii487ExternalProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ErasureTests.IJsii487External { private IJsii487ExternalProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii496.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJsii496.cs similarity index 73% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii496.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJsii496.cs index 06d683366f..0edb5a2d96 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii496.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJsii496.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.ErasureTests { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IJsii496), fullyQualifiedName: "jsii-calc.IJsii496")] + [JsiiInterface(nativeType: typeof(IJsii496), fullyQualifiedName: "jsii-calc.erasureTests.IJsii496")] public interface IJsii496 { } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii496Proxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJsii496Proxy.cs similarity index 72% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii496Proxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJsii496Proxy.cs index bc1adf5c06..8ccec8f5e0 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii496Proxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJsii496Proxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.ErasureTests { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IJsii496), fullyQualifiedName: "jsii-calc.IJsii496")] - internal sealed class IJsii496Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IJsii496 + [JsiiTypeProxy(nativeType: typeof(IJsii496), fullyQualifiedName: "jsii-calc.erasureTests.IJsii496")] + internal sealed class IJsii496Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ErasureTests.IJsii496 { private IJsii496Proxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSII417Derived.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/JSII417Derived.cs similarity index 87% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSII417Derived.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/JSII417Derived.cs index e70c3cd65d..103d4300a8 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSII417Derived.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/JSII417Derived.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.ErasureTests { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JSII417Derived), fullyQualifiedName: "jsii-calc.JSII417Derived", parametersJson: "[{\"name\":\"property\",\"type\":{\"primitive\":\"string\"}}]")] - public class JSII417Derived : Amazon.JSII.Tests.CalculatorNamespace.JSII417PublicBaseOfBase + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ErasureTests.JSII417Derived), fullyQualifiedName: "jsii-calc.erasureTests.JSII417Derived", parametersJson: "[{\"name\":\"property\",\"type\":{\"primitive\":\"string\"}}]")] + public class JSII417Derived : Amazon.JSII.Tests.CalculatorNamespace.ErasureTests.JSII417PublicBaseOfBase { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSII417PublicBaseOfBase.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/JSII417PublicBaseOfBase.cs similarity index 78% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSII417PublicBaseOfBase.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/JSII417PublicBaseOfBase.cs index bb7a64cdb0..3025d46046 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSII417PublicBaseOfBase.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/JSII417PublicBaseOfBase.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.ErasureTests { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JSII417PublicBaseOfBase), fullyQualifiedName: "jsii-calc.JSII417PublicBaseOfBase")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ErasureTests.JSII417PublicBaseOfBase), fullyQualifiedName: "jsii-calc.erasureTests.JSII417PublicBaseOfBase")] public class JSII417PublicBaseOfBase : DeputyBase { public JSII417PublicBaseOfBase(): base(new DeputyProps(new object[]{})) @@ -31,10 +31,10 @@ protected JSII417PublicBaseOfBase(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "makeInstance", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.JSII417PublicBaseOfBase\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.JSII417PublicBaseOfBase MakeInstance() + [JsiiMethod(name: "makeInstance", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.erasureTests.JSII417PublicBaseOfBase\"}}")] + public static Amazon.JSII.Tests.CalculatorNamespace.ErasureTests.JSII417PublicBaseOfBase MakeInstance() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JSII417PublicBaseOfBase), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ErasureTests.JSII417PublicBaseOfBase), new System.Type[]{}, new object[]{}); } /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Jsii487Derived.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/Jsii487Derived.cs similarity index 80% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Jsii487Derived.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/Jsii487Derived.cs index aa7d3d8b0b..d7cec01d51 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Jsii487Derived.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/Jsii487Derived.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.ErasureTests { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Jsii487Derived), fullyQualifiedName: "jsii-calc.Jsii487Derived")] - public class Jsii487Derived : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IJsii487External2, Amazon.JSII.Tests.CalculatorNamespace.IJsii487External + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ErasureTests.Jsii487Derived), fullyQualifiedName: "jsii-calc.erasureTests.Jsii487Derived")] + public class Jsii487Derived : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ErasureTests.IJsii487External2, Amazon.JSII.Tests.CalculatorNamespace.ErasureTests.IJsii487External { public Jsii487Derived(): base(new DeputyProps(new object[]{})) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Jsii496Derived.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/Jsii496Derived.cs similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Jsii496Derived.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/Jsii496Derived.cs index 416f9ac50e..4bee446aa0 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Jsii496Derived.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/Jsii496Derived.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.ErasureTests { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Jsii496Derived), fullyQualifiedName: "jsii-calc.Jsii496Derived")] - public class Jsii496Derived : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IJsii496 + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ErasureTests.Jsii496Derived), fullyQualifiedName: "jsii-calc.erasureTests.Jsii496Derived")] + public class Jsii496Derived : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ErasureTests.IJsii496 { public Jsii496Derived(): base(new DeputyProps(new object[]{})) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PartiallyInitializedThisConsumerProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PartiallyInitializedThisConsumerProxy.cs deleted file mode 100644 index 721a24c93a..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PartiallyInitializedThisConsumerProxy.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PartiallyInitializedThisConsumer), fullyQualifiedName: "jsii-calc.PartiallyInitializedThisConsumer")] - internal sealed class PartiallyInitializedThisConsumerProxy : Amazon.JSII.Tests.CalculatorNamespace.PartiallyInitializedThisConsumer - { - private PartiallyInitializedThisConsumerProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "consumePartiallyInitializedThis", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"obj\",\"type\":{\"fqn\":\"jsii-calc.ConstructorPassesThisOut\"}},{\"name\":\"dt\",\"type\":{\"primitive\":\"date\"}},{\"name\":\"ev\",\"type\":{\"fqn\":\"jsii-calc.AllTypesEnum\"}}]")] - public override string ConsumePartiallyInitializedThis(Amazon.JSII.Tests.CalculatorNamespace.ConstructorPassesThisOut obj, System.DateTime dt, Amazon.JSII.Tests.CalculatorNamespace.AllTypesEnum ev) - { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.ConstructorPassesThisOut), typeof(System.DateTime), typeof(Amazon.JSII.Tests.CalculatorNamespace.AllTypesEnum)}, new object[]{obj, dt, ev}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Power.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Power.cs index fe37ebe7b0..f366aa6847 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Power.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Power.cs @@ -9,7 +9,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Power), fullyQualifiedName: "jsii-calc.Power", parametersJson: "[{\"docs\":{\"summary\":\"The base of the power.\"},\"name\":\"base\",\"type\":{\"fqn\":\"@scope/jsii-calc-lib.Value\"}},{\"docs\":{\"summary\":\"The number of times to multiply.\"},\"name\":\"pow\",\"type\":{\"fqn\":\"@scope/jsii-calc-lib.Value\"}}]")] - public class Power : Amazon.JSII.Tests.CalculatorNamespace.composition.CompositeOperation + public class Power : Amazon.JSII.Tests.CalculatorNamespace.Composition.CompositeOperation { /// Creates a Power operation. /// The base of the power. diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/DeprecatedClass.cs similarity index 88% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedClass.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/DeprecatedClass.cs index 755679743a..d40feddab5 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedClass.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/DeprecatedClass.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations { /// /// Stability: Deprecated /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DeprecatedClass), fullyQualifiedName: "jsii-calc.DeprecatedClass", parametersJson: "[{\"name\":\"readonlyString\",\"type\":{\"primitive\":\"string\"}},{\"name\":\"mutableNumber\",\"optional\":true,\"type\":{\"primitive\":\"number\"}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations.DeprecatedClass), fullyQualifiedName: "jsii-calc.stability_annotations.DeprecatedClass", parametersJson: "[{\"name\":\"readonlyString\",\"type\":{\"primitive\":\"string\"}},{\"name\":\"mutableNumber\",\"optional\":true,\"type\":{\"primitive\":\"number\"}}]")] [System.Obsolete("a pretty boring class")] public class DeprecatedClass : DeputyBase { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedEnum.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/DeprecatedEnum.cs similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedEnum.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/DeprecatedEnum.cs index bac1794583..64a84113bf 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedEnum.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/DeprecatedEnum.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations { /// /// Stability: Deprecated /// - [JsiiEnum(nativeType: typeof(DeprecatedEnum), fullyQualifiedName: "jsii-calc.DeprecatedEnum")] + [JsiiEnum(nativeType: typeof(DeprecatedEnum), fullyQualifiedName: "jsii-calc.stability_annotations.DeprecatedEnum")] [System.Obsolete("your deprecated selection of bad options")] public enum DeprecatedEnum { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/DeprecatedStruct.cs similarity index 76% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/DeprecatedStruct.cs index 41bdd5203a..be7e264ae9 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/DeprecatedStruct.cs @@ -2,15 +2,15 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations { #pragma warning disable CS8618 /// /// Stability: Deprecated /// - [JsiiByValue(fqn: "jsii-calc.DeprecatedStruct")] - public class DeprecatedStruct : Amazon.JSII.Tests.CalculatorNamespace.IDeprecatedStruct + [JsiiByValue(fqn: "jsii-calc.stability_annotations.DeprecatedStruct")] + public class DeprecatedStruct : Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations.IDeprecatedStruct { /// /// Stability: Deprecated diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/DeprecatedStructProxy.cs similarity index 78% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedStructProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/DeprecatedStructProxy.cs index e09c590c3d..e658eb1624 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedStructProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/DeprecatedStructProxy.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations { /// /// Stability: Deprecated /// - [JsiiTypeProxy(nativeType: typeof(IDeprecatedStruct), fullyQualifiedName: "jsii-calc.DeprecatedStruct")] + [JsiiTypeProxy(nativeType: typeof(IDeprecatedStruct), fullyQualifiedName: "jsii-calc.stability_annotations.DeprecatedStruct")] [System.Obsolete("it just wraps a string")] - internal sealed class DeprecatedStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IDeprecatedStruct + internal sealed class DeprecatedStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations.IDeprecatedStruct { private DeprecatedStructProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/ExperimentalClass.cs similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalClass.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/ExperimentalClass.cs index c3637f9d89..d9bb9ae33e 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalClass.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/ExperimentalClass.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ExperimentalClass), fullyQualifiedName: "jsii-calc.ExperimentalClass", parametersJson: "[{\"name\":\"readonlyString\",\"type\":{\"primitive\":\"string\"}},{\"name\":\"mutableNumber\",\"optional\":true,\"type\":{\"primitive\":\"number\"}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations.ExperimentalClass), fullyQualifiedName: "jsii-calc.stability_annotations.ExperimentalClass", parametersJson: "[{\"name\":\"readonlyString\",\"type\":{\"primitive\":\"string\"}},{\"name\":\"mutableNumber\",\"optional\":true,\"type\":{\"primitive\":\"number\"}}]")] public class ExperimentalClass : DeputyBase { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalEnum.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/ExperimentalEnum.cs similarity index 82% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalEnum.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/ExperimentalEnum.cs index 044ca3163c..8d269f7f74 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalEnum.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/ExperimentalEnum.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations { /// /// Stability: Experimental /// - [JsiiEnum(nativeType: typeof(ExperimentalEnum), fullyQualifiedName: "jsii-calc.ExperimentalEnum")] + [JsiiEnum(nativeType: typeof(ExperimentalEnum), fullyQualifiedName: "jsii-calc.stability_annotations.ExperimentalEnum")] public enum ExperimentalEnum { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/ExperimentalStruct.cs similarity index 74% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/ExperimentalStruct.cs index ce67d8764d..989f25f066 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/ExperimentalStruct.cs @@ -2,15 +2,15 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations { #pragma warning disable CS8618 /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.ExperimentalStruct")] - public class ExperimentalStruct : Amazon.JSII.Tests.CalculatorNamespace.IExperimentalStruct + [JsiiByValue(fqn: "jsii-calc.stability_annotations.ExperimentalStruct")] + public class ExperimentalStruct : Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations.IExperimentalStruct { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/ExperimentalStructProxy.cs similarity index 76% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalStructProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/ExperimentalStructProxy.cs index d0d4e8c78e..ba4e481b31 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalStructProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/ExperimentalStructProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IExperimentalStruct), fullyQualifiedName: "jsii-calc.ExperimentalStruct")] - internal sealed class ExperimentalStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IExperimentalStruct + [JsiiTypeProxy(nativeType: typeof(IExperimentalStruct), fullyQualifiedName: "jsii-calc.stability_annotations.ExperimentalStruct")] + internal sealed class ExperimentalStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations.IExperimentalStruct { private ExperimentalStructProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDeprecatedInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IDeprecatedInterface.cs similarity index 88% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDeprecatedInterface.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IDeprecatedInterface.cs index cf3eec3a0b..3d32ad3535 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDeprecatedInterface.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IDeprecatedInterface.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations { /// /// Stability: Deprecated /// - [JsiiInterface(nativeType: typeof(IDeprecatedInterface), fullyQualifiedName: "jsii-calc.IDeprecatedInterface")] + [JsiiInterface(nativeType: typeof(IDeprecatedInterface), fullyQualifiedName: "jsii-calc.stability_annotations.IDeprecatedInterface")] [System.Obsolete("useless interface")] public interface IDeprecatedInterface { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDeprecatedInterfaceProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IDeprecatedInterfaceProxy.cs similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDeprecatedInterfaceProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IDeprecatedInterfaceProxy.cs index 3088276b2b..7ee2014c41 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDeprecatedInterfaceProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IDeprecatedInterfaceProxy.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations { /// /// Stability: Deprecated /// - [JsiiTypeProxy(nativeType: typeof(IDeprecatedInterface), fullyQualifiedName: "jsii-calc.IDeprecatedInterface")] + [JsiiTypeProxy(nativeType: typeof(IDeprecatedInterface), fullyQualifiedName: "jsii-calc.stability_annotations.IDeprecatedInterface")] [System.Obsolete("useless interface")] - internal sealed class IDeprecatedInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IDeprecatedInterface + internal sealed class IDeprecatedInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations.IDeprecatedInterface { private IDeprecatedInterfaceProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDeprecatedStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IDeprecatedStruct.cs similarity index 82% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDeprecatedStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IDeprecatedStruct.cs index 9ac07e113a..110b2618e8 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDeprecatedStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IDeprecatedStruct.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations { /// /// Stability: Deprecated /// - [JsiiInterface(nativeType: typeof(IDeprecatedStruct), fullyQualifiedName: "jsii-calc.DeprecatedStruct")] + [JsiiInterface(nativeType: typeof(IDeprecatedStruct), fullyQualifiedName: "jsii-calc.stability_annotations.DeprecatedStruct")] [System.Obsolete("it just wraps a string")] public interface IDeprecatedStruct { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExperimentalInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IExperimentalInterface.cs similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExperimentalInterface.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IExperimentalInterface.cs index 6490862fd1..dece1e6513 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExperimentalInterface.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IExperimentalInterface.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IExperimentalInterface), fullyQualifiedName: "jsii-calc.IExperimentalInterface")] + [JsiiInterface(nativeType: typeof(IExperimentalInterface), fullyQualifiedName: "jsii-calc.stability_annotations.IExperimentalInterface")] public interface IExperimentalInterface { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExperimentalInterfaceProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IExperimentalInterfaceProxy.cs similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExperimentalInterfaceProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IExperimentalInterfaceProxy.cs index 0116a80ac4..57544d3aed 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExperimentalInterfaceProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IExperimentalInterfaceProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IExperimentalInterface), fullyQualifiedName: "jsii-calc.IExperimentalInterface")] - internal sealed class IExperimentalInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IExperimentalInterface + [JsiiTypeProxy(nativeType: typeof(IExperimentalInterface), fullyQualifiedName: "jsii-calc.stability_annotations.IExperimentalInterface")] + internal sealed class IExperimentalInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations.IExperimentalInterface { private IExperimentalInterfaceProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExperimentalStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IExperimentalStruct.cs similarity index 79% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExperimentalStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IExperimentalStruct.cs index b7e3ead730..33e6482343 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExperimentalStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IExperimentalStruct.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IExperimentalStruct), fullyQualifiedName: "jsii-calc.ExperimentalStruct")] + [JsiiInterface(nativeType: typeof(IExperimentalStruct), fullyQualifiedName: "jsii-calc.stability_annotations.ExperimentalStruct")] public interface IExperimentalStruct { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStableInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IStableInterface.cs similarity index 87% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStableInterface.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IStableInterface.cs index 1cf2da11af..a4e095764a 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStableInterface.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IStableInterface.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations { /// /// Stability: Stable /// - [JsiiInterface(nativeType: typeof(IStableInterface), fullyQualifiedName: "jsii-calc.IStableInterface")] + [JsiiInterface(nativeType: typeof(IStableInterface), fullyQualifiedName: "jsii-calc.stability_annotations.IStableInterface")] public interface IStableInterface { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStableInterfaceProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IStableInterfaceProxy.cs similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStableInterfaceProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IStableInterfaceProxy.cs index 74f9263890..198cb93c03 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStableInterfaceProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IStableInterfaceProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations { /// /// Stability: Stable /// - [JsiiTypeProxy(nativeType: typeof(IStableInterface), fullyQualifiedName: "jsii-calc.IStableInterface")] - internal sealed class IStableInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IStableInterface + [JsiiTypeProxy(nativeType: typeof(IStableInterface), fullyQualifiedName: "jsii-calc.stability_annotations.IStableInterface")] + internal sealed class IStableInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations.IStableInterface { private IStableInterfaceProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStableStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IStableStruct.cs similarity index 80% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStableStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IStableStruct.cs index 9ffedb742b..0916aadfea 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStableStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IStableStruct.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations { /// /// Stability: Stable /// - [JsiiInterface(nativeType: typeof(IStableStruct), fullyQualifiedName: "jsii-calc.StableStruct")] + [JsiiInterface(nativeType: typeof(IStableStruct), fullyQualifiedName: "jsii-calc.stability_annotations.StableStruct")] public interface IStableStruct { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/StableClass.cs similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableClass.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/StableClass.cs index 02354c12df..0faef41ad8 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableClass.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/StableClass.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations { /// /// Stability: Stable /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.StableClass), fullyQualifiedName: "jsii-calc.StableClass", parametersJson: "[{\"name\":\"readonlyString\",\"type\":{\"primitive\":\"string\"}},{\"name\":\"mutableNumber\",\"optional\":true,\"type\":{\"primitive\":\"number\"}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations.StableClass), fullyQualifiedName: "jsii-calc.stability_annotations.StableClass", parametersJson: "[{\"name\":\"readonlyString\",\"type\":{\"primitive\":\"string\"}},{\"name\":\"mutableNumber\",\"optional\":true,\"type\":{\"primitive\":\"number\"}}]")] public class StableClass : DeputyBase { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableEnum.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/StableEnum.cs similarity index 82% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableEnum.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/StableEnum.cs index 464d91e8be..703717b1fc 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableEnum.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/StableEnum.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations { /// /// Stability: Stable /// - [JsiiEnum(nativeType: typeof(StableEnum), fullyQualifiedName: "jsii-calc.StableEnum")] + [JsiiEnum(nativeType: typeof(StableEnum), fullyQualifiedName: "jsii-calc.stability_annotations.StableEnum")] public enum StableEnum { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/StableStruct.cs similarity index 75% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/StableStruct.cs index 2c91c36aaf..b580b3a5ca 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/StableStruct.cs @@ -2,15 +2,15 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations { #pragma warning disable CS8618 /// /// Stability: Stable /// - [JsiiByValue(fqn: "jsii-calc.StableStruct")] - public class StableStruct : Amazon.JSII.Tests.CalculatorNamespace.IStableStruct + [JsiiByValue(fqn: "jsii-calc.stability_annotations.StableStruct")] + public class StableStruct : Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations.IStableStruct { /// /// Stability: Stable diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/StableStructProxy.cs similarity index 77% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableStructProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/StableStructProxy.cs index db9e5f1e19..b9350a486d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableStructProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/StableStructProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace +namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations { /// /// Stability: Stable /// - [JsiiTypeProxy(nativeType: typeof(IStableStruct), fullyQualifiedName: "jsii-calc.StableStruct")] - internal sealed class StableStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IStableStruct + [JsiiTypeProxy(nativeType: typeof(IStableStruct), fullyQualifiedName: "jsii-calc.stability_annotations.StableStruct")] + internal sealed class StableStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations.IStableStruct { private StableStructProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Sum.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Sum.cs index c58a18874c..a6c703dc0e 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Sum.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Sum.cs @@ -9,7 +9,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Stability: Experimental /// [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Sum), fullyQualifiedName: "jsii-calc.Sum")] - public class Sum : Amazon.JSII.Tests.CalculatorNamespace.composition.CompositeOperation + public class Sum : Amazon.JSII.Tests.CalculatorNamespace.Composition.CompositeOperation { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/composition/CompositeOperation.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/composition/CompositeOperation.cs index 3a63d09ea9..d1cb0ef425 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/composition/CompositeOperation.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/composition/CompositeOperation.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.composition +namespace Amazon.JSII.Tests.CalculatorNamespace.Composition { /// Abstract operation composed from an expression of other operations. /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.composition.CompositeOperation), fullyQualifiedName: "jsii-calc.composition.CompositeOperation")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Composition.CompositeOperation), fullyQualifiedName: "jsii-calc.composition.CompositeOperation")] public abstract class CompositeOperation : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Operation { protected CompositeOperation(): base(new DeputyProps(new object[]{})) @@ -88,9 +88,9 @@ public virtual string[] DecorationPrefixes /// Stability: Experimental /// [JsiiProperty(name: "stringStyle", typeJson: "{\"fqn\":\"jsii-calc.composition.CompositeOperation.CompositionStringStyle\"}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.composition.CompositeOperation.CompositionStringStyle StringStyle + public virtual Amazon.JSII.Tests.CalculatorNamespace.Composition.CompositeOperation.CompositionStringStyle StringStyle { - get => GetInstanceProperty(); + get => GetInstanceProperty(); set => SetInstanceProperty(value); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/composition/CompositeOperationProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/composition/CompositeOperationProxy.cs index 4f70dac317..ab8f07c320 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/composition/CompositeOperationProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/composition/CompositeOperationProxy.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.composition +namespace Amazon.JSII.Tests.CalculatorNamespace.Composition { /// Abstract operation composed from an expression of other operations. /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.composition.CompositeOperation), fullyQualifiedName: "jsii-calc.composition.CompositeOperation")] - internal sealed class CompositeOperationProxy : Amazon.JSII.Tests.CalculatorNamespace.composition.CompositeOperation + [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Composition.CompositeOperation), fullyQualifiedName: "jsii-calc.composition.CompositeOperation")] + internal sealed class CompositeOperationProxy : Amazon.JSII.Tests.CalculatorNamespace.Composition.CompositeOperation { private CompositeOperationProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/$Module.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/$Module.java index 71c0f3d93d..9f18789ff0 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/$Module.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/$Module.java @@ -18,195 +18,195 @@ public List> getDependencies() { @Override protected Class resolveClass(final String fqn) throws ClassNotFoundException { switch (fqn) { - case "jsii-calc.AbstractClass": return software.amazon.jsii.tests.calculator.AbstractClass.class; - case "jsii-calc.AbstractClassBase": return software.amazon.jsii.tests.calculator.AbstractClassBase.class; - case "jsii-calc.AbstractClassReturner": return software.amazon.jsii.tests.calculator.AbstractClassReturner.class; case "jsii-calc.AbstractSuite": return software.amazon.jsii.tests.calculator.AbstractSuite.class; case "jsii-calc.Add": return software.amazon.jsii.tests.calculator.Add.class; - case "jsii-calc.AllTypes": return software.amazon.jsii.tests.calculator.AllTypes.class; - case "jsii-calc.AllTypesEnum": return software.amazon.jsii.tests.calculator.AllTypesEnum.class; - case "jsii-calc.AllowedMethodNames": return software.amazon.jsii.tests.calculator.AllowedMethodNames.class; - case "jsii-calc.AmbiguousParameters": return software.amazon.jsii.tests.calculator.AmbiguousParameters.class; - case "jsii-calc.AnonymousImplementationProvider": return software.amazon.jsii.tests.calculator.AnonymousImplementationProvider.class; - case "jsii-calc.AsyncVirtualMethods": return software.amazon.jsii.tests.calculator.AsyncVirtualMethods.class; - case "jsii-calc.AugmentableClass": return software.amazon.jsii.tests.calculator.AugmentableClass.class; - case "jsii-calc.BaseJsii976": return software.amazon.jsii.tests.calculator.BaseJsii976.class; - case "jsii-calc.Bell": return software.amazon.jsii.tests.calculator.Bell.class; case "jsii-calc.BinaryOperation": return software.amazon.jsii.tests.calculator.BinaryOperation.class; case "jsii-calc.Calculator": return software.amazon.jsii.tests.calculator.Calculator.class; case "jsii-calc.CalculatorProps": return software.amazon.jsii.tests.calculator.CalculatorProps.class; - case "jsii-calc.ChildStruct982": return software.amazon.jsii.tests.calculator.ChildStruct982.class; - case "jsii-calc.ClassThatImplementsTheInternalInterface": return software.amazon.jsii.tests.calculator.ClassThatImplementsTheInternalInterface.class; - case "jsii-calc.ClassThatImplementsThePrivateInterface": return software.amazon.jsii.tests.calculator.ClassThatImplementsThePrivateInterface.class; - case "jsii-calc.ClassWithCollections": return software.amazon.jsii.tests.calculator.ClassWithCollections.class; - case "jsii-calc.ClassWithDocs": return software.amazon.jsii.tests.calculator.ClassWithDocs.class; - case "jsii-calc.ClassWithJavaReservedWords": return software.amazon.jsii.tests.calculator.ClassWithJavaReservedWords.class; - case "jsii-calc.ClassWithMutableObjectLiteralProperty": return software.amazon.jsii.tests.calculator.ClassWithMutableObjectLiteralProperty.class; - case "jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties": return software.amazon.jsii.tests.calculator.ClassWithPrivateConstructorAndAutomaticProperties.class; - case "jsii-calc.ConfusingToJackson": return software.amazon.jsii.tests.calculator.ConfusingToJackson.class; - case "jsii-calc.ConfusingToJacksonStruct": return software.amazon.jsii.tests.calculator.ConfusingToJacksonStruct.class; - case "jsii-calc.ConstructorPassesThisOut": return software.amazon.jsii.tests.calculator.ConstructorPassesThisOut.class; - case "jsii-calc.Constructors": return software.amazon.jsii.tests.calculator.Constructors.class; - case "jsii-calc.ConsumePureInterface": return software.amazon.jsii.tests.calculator.ConsumePureInterface.class; - case "jsii-calc.ConsumerCanRingBell": return software.amazon.jsii.tests.calculator.ConsumerCanRingBell.class; - case "jsii-calc.ConsumersOfThisCrazyTypeSystem": return software.amazon.jsii.tests.calculator.ConsumersOfThisCrazyTypeSystem.class; - case "jsii-calc.DataRenderer": return software.amazon.jsii.tests.calculator.DataRenderer.class; - case "jsii-calc.DefaultedConstructorArgument": return software.amazon.jsii.tests.calculator.DefaultedConstructorArgument.class; - case "jsii-calc.Demonstrate982": return software.amazon.jsii.tests.calculator.Demonstrate982.class; - case "jsii-calc.DeprecatedClass": return software.amazon.jsii.tests.calculator.DeprecatedClass.class; - case "jsii-calc.DeprecatedEnum": return software.amazon.jsii.tests.calculator.DeprecatedEnum.class; - case "jsii-calc.DeprecatedStruct": return software.amazon.jsii.tests.calculator.DeprecatedStruct.class; - case "jsii-calc.DerivedClassHasNoProperties.Base": return software.amazon.jsii.tests.calculator.DerivedClassHasNoProperties.Base.class; - case "jsii-calc.DerivedClassHasNoProperties.Derived": return software.amazon.jsii.tests.calculator.DerivedClassHasNoProperties.Derived.class; - case "jsii-calc.DerivedStruct": return software.amazon.jsii.tests.calculator.DerivedStruct.class; - case "jsii-calc.DiamondInheritanceBaseLevelStruct": return software.amazon.jsii.tests.calculator.DiamondInheritanceBaseLevelStruct.class; - case "jsii-calc.DiamondInheritanceFirstMidLevelStruct": return software.amazon.jsii.tests.calculator.DiamondInheritanceFirstMidLevelStruct.class; - case "jsii-calc.DiamondInheritanceSecondMidLevelStruct": return software.amazon.jsii.tests.calculator.DiamondInheritanceSecondMidLevelStruct.class; - case "jsii-calc.DiamondInheritanceTopLevelStruct": return software.amazon.jsii.tests.calculator.DiamondInheritanceTopLevelStruct.class; - case "jsii-calc.DisappointingCollectionSource": return software.amazon.jsii.tests.calculator.DisappointingCollectionSource.class; - case "jsii-calc.DoNotOverridePrivates": return software.amazon.jsii.tests.calculator.DoNotOverridePrivates.class; - case "jsii-calc.DoNotRecognizeAnyAsOptional": return software.amazon.jsii.tests.calculator.DoNotRecognizeAnyAsOptional.class; - case "jsii-calc.DocumentedClass": return software.amazon.jsii.tests.calculator.DocumentedClass.class; - case "jsii-calc.DontComplainAboutVariadicAfterOptional": return software.amazon.jsii.tests.calculator.DontComplainAboutVariadicAfterOptional.class; - case "jsii-calc.DoubleTrouble": return software.amazon.jsii.tests.calculator.DoubleTrouble.class; - case "jsii-calc.EnumDispenser": return software.amazon.jsii.tests.calculator.EnumDispenser.class; - case "jsii-calc.EraseUndefinedHashValues": return software.amazon.jsii.tests.calculator.EraseUndefinedHashValues.class; - case "jsii-calc.EraseUndefinedHashValuesOptions": return software.amazon.jsii.tests.calculator.EraseUndefinedHashValuesOptions.class; - case "jsii-calc.ExperimentalClass": return software.amazon.jsii.tests.calculator.ExperimentalClass.class; - case "jsii-calc.ExperimentalEnum": return software.amazon.jsii.tests.calculator.ExperimentalEnum.class; - case "jsii-calc.ExperimentalStruct": return software.amazon.jsii.tests.calculator.ExperimentalStruct.class; - case "jsii-calc.ExportedBaseClass": return software.amazon.jsii.tests.calculator.ExportedBaseClass.class; - case "jsii-calc.ExtendsInternalInterface": return software.amazon.jsii.tests.calculator.ExtendsInternalInterface.class; - case "jsii-calc.GiveMeStructs": return software.amazon.jsii.tests.calculator.GiveMeStructs.class; - case "jsii-calc.Greetee": return software.amazon.jsii.tests.calculator.Greetee.class; - case "jsii-calc.GreetingAugmenter": return software.amazon.jsii.tests.calculator.GreetingAugmenter.class; - case "jsii-calc.IAnonymousImplementationProvider": return software.amazon.jsii.tests.calculator.IAnonymousImplementationProvider.class; - case "jsii-calc.IAnonymouslyImplementMe": return software.amazon.jsii.tests.calculator.IAnonymouslyImplementMe.class; - case "jsii-calc.IAnotherPublicInterface": return software.amazon.jsii.tests.calculator.IAnotherPublicInterface.class; - case "jsii-calc.IBell": return software.amazon.jsii.tests.calculator.IBell.class; - case "jsii-calc.IBellRinger": return software.amazon.jsii.tests.calculator.IBellRinger.class; - case "jsii-calc.IConcreteBellRinger": return software.amazon.jsii.tests.calculator.IConcreteBellRinger.class; - case "jsii-calc.IDeprecatedInterface": return software.amazon.jsii.tests.calculator.IDeprecatedInterface.class; - case "jsii-calc.IExperimentalInterface": return software.amazon.jsii.tests.calculator.IExperimentalInterface.class; - case "jsii-calc.IExtendsPrivateInterface": return software.amazon.jsii.tests.calculator.IExtendsPrivateInterface.class; case "jsii-calc.IFriendlier": return software.amazon.jsii.tests.calculator.IFriendlier.class; case "jsii-calc.IFriendlyRandomGenerator": return software.amazon.jsii.tests.calculator.IFriendlyRandomGenerator.class; - case "jsii-calc.IInterfaceImplementedByAbstractClass": return software.amazon.jsii.tests.calculator.IInterfaceImplementedByAbstractClass.class; - case "jsii-calc.IInterfaceThatShouldNotBeADataType": return software.amazon.jsii.tests.calculator.IInterfaceThatShouldNotBeADataType.class; - case "jsii-calc.IInterfaceWithInternal": return software.amazon.jsii.tests.calculator.IInterfaceWithInternal.class; - case "jsii-calc.IInterfaceWithMethods": return software.amazon.jsii.tests.calculator.IInterfaceWithMethods.class; - case "jsii-calc.IInterfaceWithOptionalMethodArguments": return software.amazon.jsii.tests.calculator.IInterfaceWithOptionalMethodArguments.class; - case "jsii-calc.IInterfaceWithProperties": return software.amazon.jsii.tests.calculator.IInterfaceWithProperties.class; - case "jsii-calc.IInterfaceWithPropertiesExtension": return software.amazon.jsii.tests.calculator.IInterfaceWithPropertiesExtension.class; - case "jsii-calc.IJSII417Derived": return software.amazon.jsii.tests.calculator.IJSII417Derived.class; - case "jsii-calc.IJSII417PublicBaseOfBase": return software.amazon.jsii.tests.calculator.IJSII417PublicBaseOfBase.class; - case "jsii-calc.IJsii487External": return software.amazon.jsii.tests.calculator.IJsii487External.class; - case "jsii-calc.IJsii487External2": return software.amazon.jsii.tests.calculator.IJsii487External2.class; - case "jsii-calc.IJsii496": return software.amazon.jsii.tests.calculator.IJsii496.class; - case "jsii-calc.IMutableObjectLiteral": return software.amazon.jsii.tests.calculator.IMutableObjectLiteral.class; - case "jsii-calc.INonInternalInterface": return software.amazon.jsii.tests.calculator.INonInternalInterface.class; - case "jsii-calc.IObjectWithProperty": return software.amazon.jsii.tests.calculator.IObjectWithProperty.class; - case "jsii-calc.IOptionalMethod": return software.amazon.jsii.tests.calculator.IOptionalMethod.class; - case "jsii-calc.IPrivatelyImplemented": return software.amazon.jsii.tests.calculator.IPrivatelyImplemented.class; - case "jsii-calc.IPublicInterface": return software.amazon.jsii.tests.calculator.IPublicInterface.class; - case "jsii-calc.IPublicInterface2": return software.amazon.jsii.tests.calculator.IPublicInterface2.class; case "jsii-calc.IRandomNumberGenerator": return software.amazon.jsii.tests.calculator.IRandomNumberGenerator.class; - case "jsii-calc.IReturnJsii976": return software.amazon.jsii.tests.calculator.IReturnJsii976.class; - case "jsii-calc.IReturnsNumber": return software.amazon.jsii.tests.calculator.IReturnsNumber.class; - case "jsii-calc.IStableInterface": return software.amazon.jsii.tests.calculator.IStableInterface.class; - case "jsii-calc.IStructReturningDelegate": return software.amazon.jsii.tests.calculator.IStructReturningDelegate.class; - case "jsii-calc.ImplementInternalInterface": return software.amazon.jsii.tests.calculator.ImplementInternalInterface.class; - case "jsii-calc.Implementation": return software.amazon.jsii.tests.calculator.Implementation.class; - case "jsii-calc.ImplementsInterfaceWithInternal": return software.amazon.jsii.tests.calculator.ImplementsInterfaceWithInternal.class; - case "jsii-calc.ImplementsInterfaceWithInternalSubclass": return software.amazon.jsii.tests.calculator.ImplementsInterfaceWithInternalSubclass.class; - case "jsii-calc.ImplementsPrivateInterface": return software.amazon.jsii.tests.calculator.ImplementsPrivateInterface.class; - case "jsii-calc.ImplictBaseOfBase": return software.amazon.jsii.tests.calculator.ImplictBaseOfBase.class; - case "jsii-calc.InbetweenClass": return software.amazon.jsii.tests.calculator.InbetweenClass.class; - case "jsii-calc.InterfaceCollections": return software.amazon.jsii.tests.calculator.InterfaceCollections.class; - case "jsii-calc.InterfaceInNamespaceIncludesClasses.Foo": return software.amazon.jsii.tests.calculator.InterfaceInNamespaceIncludesClasses.Foo.class; - case "jsii-calc.InterfaceInNamespaceIncludesClasses.Hello": return software.amazon.jsii.tests.calculator.InterfaceInNamespaceIncludesClasses.Hello.class; - case "jsii-calc.InterfaceInNamespaceOnlyInterface.Hello": return software.amazon.jsii.tests.calculator.InterfaceInNamespaceOnlyInterface.Hello.class; - case "jsii-calc.InterfacesMaker": return software.amazon.jsii.tests.calculator.InterfacesMaker.class; - case "jsii-calc.JSII417Derived": return software.amazon.jsii.tests.calculator.JSII417Derived.class; - case "jsii-calc.JSII417PublicBaseOfBase": return software.amazon.jsii.tests.calculator.JSII417PublicBaseOfBase.class; - case "jsii-calc.JSObjectLiteralForInterface": return software.amazon.jsii.tests.calculator.JSObjectLiteralForInterface.class; - case "jsii-calc.JSObjectLiteralToNative": return software.amazon.jsii.tests.calculator.JSObjectLiteralToNative.class; - case "jsii-calc.JSObjectLiteralToNativeClass": return software.amazon.jsii.tests.calculator.JSObjectLiteralToNativeClass.class; - case "jsii-calc.JavaReservedWords": return software.amazon.jsii.tests.calculator.JavaReservedWords.class; - case "jsii-calc.Jsii487Derived": return software.amazon.jsii.tests.calculator.Jsii487Derived.class; - case "jsii-calc.Jsii496Derived": return software.amazon.jsii.tests.calculator.Jsii496Derived.class; - case "jsii-calc.JsiiAgent": return software.amazon.jsii.tests.calculator.JsiiAgent.class; - case "jsii-calc.JsonFormatter": return software.amazon.jsii.tests.calculator.JsonFormatter.class; - case "jsii-calc.LoadBalancedFargateServiceProps": return software.amazon.jsii.tests.calculator.LoadBalancedFargateServiceProps.class; case "jsii-calc.MethodNamedProperty": return software.amazon.jsii.tests.calculator.MethodNamedProperty.class; case "jsii-calc.Multiply": return software.amazon.jsii.tests.calculator.Multiply.class; case "jsii-calc.Negate": return software.amazon.jsii.tests.calculator.Negate.class; - case "jsii-calc.NestedStruct": return software.amazon.jsii.tests.calculator.NestedStruct.class; - case "jsii-calc.NodeStandardLibrary": return software.amazon.jsii.tests.calculator.NodeStandardLibrary.class; - case "jsii-calc.NullShouldBeTreatedAsUndefined": return software.amazon.jsii.tests.calculator.NullShouldBeTreatedAsUndefined.class; - case "jsii-calc.NullShouldBeTreatedAsUndefinedData": return software.amazon.jsii.tests.calculator.NullShouldBeTreatedAsUndefinedData.class; - case "jsii-calc.NumberGenerator": return software.amazon.jsii.tests.calculator.NumberGenerator.class; - case "jsii-calc.ObjectRefsInCollections": return software.amazon.jsii.tests.calculator.ObjectRefsInCollections.class; - case "jsii-calc.ObjectWithPropertyProvider": return software.amazon.jsii.tests.calculator.ObjectWithPropertyProvider.class; - case "jsii-calc.Old": return software.amazon.jsii.tests.calculator.Old.class; - case "jsii-calc.OptionalArgumentInvoker": return software.amazon.jsii.tests.calculator.OptionalArgumentInvoker.class; - case "jsii-calc.OptionalConstructorArgument": return software.amazon.jsii.tests.calculator.OptionalConstructorArgument.class; - case "jsii-calc.OptionalStruct": return software.amazon.jsii.tests.calculator.OptionalStruct.class; - case "jsii-calc.OptionalStructConsumer": return software.amazon.jsii.tests.calculator.OptionalStructConsumer.class; - case "jsii-calc.OverridableProtectedMember": return software.amazon.jsii.tests.calculator.OverridableProtectedMember.class; - case "jsii-calc.OverrideReturnsObject": return software.amazon.jsii.tests.calculator.OverrideReturnsObject.class; - case "jsii-calc.ParentStruct982": return software.amazon.jsii.tests.calculator.ParentStruct982.class; - case "jsii-calc.PartiallyInitializedThisConsumer": return software.amazon.jsii.tests.calculator.PartiallyInitializedThisConsumer.class; - case "jsii-calc.Polymorphism": return software.amazon.jsii.tests.calculator.Polymorphism.class; case "jsii-calc.Power": return software.amazon.jsii.tests.calculator.Power.class; case "jsii-calc.PropertyNamedProperty": return software.amazon.jsii.tests.calculator.PropertyNamedProperty.class; - case "jsii-calc.PublicClass": return software.amazon.jsii.tests.calculator.PublicClass.class; - case "jsii-calc.PythonReservedWords": return software.amazon.jsii.tests.calculator.PythonReservedWords.class; - case "jsii-calc.ReferenceEnumFromScopedPackage": return software.amazon.jsii.tests.calculator.ReferenceEnumFromScopedPackage.class; - case "jsii-calc.ReturnsPrivateImplementationOfInterface": return software.amazon.jsii.tests.calculator.ReturnsPrivateImplementationOfInterface.class; - case "jsii-calc.RootStruct": return software.amazon.jsii.tests.calculator.RootStruct.class; - case "jsii-calc.RootStructValidator": return software.amazon.jsii.tests.calculator.RootStructValidator.class; - case "jsii-calc.RuntimeTypeChecking": return software.amazon.jsii.tests.calculator.RuntimeTypeChecking.class; - case "jsii-calc.SecondLevelStruct": return software.amazon.jsii.tests.calculator.SecondLevelStruct.class; - case "jsii-calc.SingleInstanceTwoTypes": return software.amazon.jsii.tests.calculator.SingleInstanceTwoTypes.class; - case "jsii-calc.SingletonInt": return software.amazon.jsii.tests.calculator.SingletonInt.class; - case "jsii-calc.SingletonIntEnum": return software.amazon.jsii.tests.calculator.SingletonIntEnum.class; - case "jsii-calc.SingletonString": return software.amazon.jsii.tests.calculator.SingletonString.class; - case "jsii-calc.SingletonStringEnum": return software.amazon.jsii.tests.calculator.SingletonStringEnum.class; case "jsii-calc.SmellyStruct": return software.amazon.jsii.tests.calculator.SmellyStruct.class; - case "jsii-calc.SomeTypeJsii976": return software.amazon.jsii.tests.calculator.SomeTypeJsii976.class; - case "jsii-calc.StableClass": return software.amazon.jsii.tests.calculator.StableClass.class; - case "jsii-calc.StableEnum": return software.amazon.jsii.tests.calculator.StableEnum.class; - case "jsii-calc.StableStruct": return software.amazon.jsii.tests.calculator.StableStruct.class; - case "jsii-calc.StaticContext": return software.amazon.jsii.tests.calculator.StaticContext.class; - case "jsii-calc.Statics": return software.amazon.jsii.tests.calculator.Statics.class; - case "jsii-calc.StringEnum": return software.amazon.jsii.tests.calculator.StringEnum.class; - case "jsii-calc.StripInternal": return software.amazon.jsii.tests.calculator.StripInternal.class; - case "jsii-calc.StructA": return software.amazon.jsii.tests.calculator.StructA.class; - case "jsii-calc.StructB": return software.amazon.jsii.tests.calculator.StructB.class; - case "jsii-calc.StructParameterType": return software.amazon.jsii.tests.calculator.StructParameterType.class; - case "jsii-calc.StructPassing": return software.amazon.jsii.tests.calculator.StructPassing.class; - case "jsii-calc.StructUnionConsumer": return software.amazon.jsii.tests.calculator.StructUnionConsumer.class; - case "jsii-calc.StructWithJavaReservedWords": return software.amazon.jsii.tests.calculator.StructWithJavaReservedWords.class; case "jsii-calc.Sum": return software.amazon.jsii.tests.calculator.Sum.class; - case "jsii-calc.SupportsNiceJavaBuilder": return software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilder.class; - case "jsii-calc.SupportsNiceJavaBuilderProps": return software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderProps.class; - case "jsii-calc.SupportsNiceJavaBuilderWithRequiredProps": return software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderWithRequiredProps.class; - case "jsii-calc.SyncVirtualMethods": return software.amazon.jsii.tests.calculator.SyncVirtualMethods.class; - case "jsii-calc.Thrower": return software.amazon.jsii.tests.calculator.Thrower.class; - case "jsii-calc.TopLevelStruct": return software.amazon.jsii.tests.calculator.TopLevelStruct.class; case "jsii-calc.UnaryOperation": return software.amazon.jsii.tests.calculator.UnaryOperation.class; - case "jsii-calc.UnionProperties": return software.amazon.jsii.tests.calculator.UnionProperties.class; - case "jsii-calc.UseBundledDependency": return software.amazon.jsii.tests.calculator.UseBundledDependency.class; - case "jsii-calc.UseCalcBase": return software.amazon.jsii.tests.calculator.UseCalcBase.class; - case "jsii-calc.UsesInterfaceWithProperties": return software.amazon.jsii.tests.calculator.UsesInterfaceWithProperties.class; - case "jsii-calc.VariadicInvoker": return software.amazon.jsii.tests.calculator.VariadicInvoker.class; - case "jsii-calc.VariadicMethod": return software.amazon.jsii.tests.calculator.VariadicMethod.class; - case "jsii-calc.VirtualMethodPlayground": return software.amazon.jsii.tests.calculator.VirtualMethodPlayground.class; - case "jsii-calc.VoidCallback": return software.amazon.jsii.tests.calculator.VoidCallback.class; - case "jsii-calc.WithPrivatePropertyInConstructor": return software.amazon.jsii.tests.calculator.WithPrivatePropertyInConstructor.class; + case "jsii-calc.compliance.AbstractClass": return software.amazon.jsii.tests.calculator.compliance.AbstractClass.class; + case "jsii-calc.compliance.AbstractClassBase": return software.amazon.jsii.tests.calculator.compliance.AbstractClassBase.class; + case "jsii-calc.compliance.AbstractClassReturner": return software.amazon.jsii.tests.calculator.compliance.AbstractClassReturner.class; + case "jsii-calc.compliance.AllTypes": return software.amazon.jsii.tests.calculator.compliance.AllTypes.class; + case "jsii-calc.compliance.AllTypesEnum": return software.amazon.jsii.tests.calculator.compliance.AllTypesEnum.class; + case "jsii-calc.compliance.AllowedMethodNames": return software.amazon.jsii.tests.calculator.compliance.AllowedMethodNames.class; + case "jsii-calc.compliance.AmbiguousParameters": return software.amazon.jsii.tests.calculator.compliance.AmbiguousParameters.class; + case "jsii-calc.compliance.AnonymousImplementationProvider": return software.amazon.jsii.tests.calculator.compliance.AnonymousImplementationProvider.class; + case "jsii-calc.compliance.AsyncVirtualMethods": return software.amazon.jsii.tests.calculator.compliance.AsyncVirtualMethods.class; + case "jsii-calc.compliance.AugmentableClass": return software.amazon.jsii.tests.calculator.compliance.AugmentableClass.class; + case "jsii-calc.compliance.BaseJsii976": return software.amazon.jsii.tests.calculator.compliance.BaseJsii976.class; + case "jsii-calc.compliance.Bell": return software.amazon.jsii.tests.calculator.compliance.Bell.class; + case "jsii-calc.compliance.ChildStruct982": return software.amazon.jsii.tests.calculator.compliance.ChildStruct982.class; + case "jsii-calc.compliance.ClassThatImplementsTheInternalInterface": return software.amazon.jsii.tests.calculator.compliance.ClassThatImplementsTheInternalInterface.class; + case "jsii-calc.compliance.ClassThatImplementsThePrivateInterface": return software.amazon.jsii.tests.calculator.compliance.ClassThatImplementsThePrivateInterface.class; + case "jsii-calc.compliance.ClassWithCollections": return software.amazon.jsii.tests.calculator.compliance.ClassWithCollections.class; + case "jsii-calc.compliance.ClassWithDocs": return software.amazon.jsii.tests.calculator.compliance.ClassWithDocs.class; + case "jsii-calc.compliance.ClassWithJavaReservedWords": return software.amazon.jsii.tests.calculator.compliance.ClassWithJavaReservedWords.class; + case "jsii-calc.compliance.ClassWithMutableObjectLiteralProperty": return software.amazon.jsii.tests.calculator.compliance.ClassWithMutableObjectLiteralProperty.class; + case "jsii-calc.compliance.ClassWithPrivateConstructorAndAutomaticProperties": return software.amazon.jsii.tests.calculator.compliance.ClassWithPrivateConstructorAndAutomaticProperties.class; + case "jsii-calc.compliance.ConfusingToJackson": return software.amazon.jsii.tests.calculator.compliance.ConfusingToJackson.class; + case "jsii-calc.compliance.ConfusingToJacksonStruct": return software.amazon.jsii.tests.calculator.compliance.ConfusingToJacksonStruct.class; + case "jsii-calc.compliance.ConstructorPassesThisOut": return software.amazon.jsii.tests.calculator.compliance.ConstructorPassesThisOut.class; + case "jsii-calc.compliance.Constructors": return software.amazon.jsii.tests.calculator.compliance.Constructors.class; + case "jsii-calc.compliance.ConsumePureInterface": return software.amazon.jsii.tests.calculator.compliance.ConsumePureInterface.class; + case "jsii-calc.compliance.ConsumerCanRingBell": return software.amazon.jsii.tests.calculator.compliance.ConsumerCanRingBell.class; + case "jsii-calc.compliance.ConsumersOfThisCrazyTypeSystem": return software.amazon.jsii.tests.calculator.compliance.ConsumersOfThisCrazyTypeSystem.class; + case "jsii-calc.compliance.DataRenderer": return software.amazon.jsii.tests.calculator.compliance.DataRenderer.class; + case "jsii-calc.compliance.DefaultedConstructorArgument": return software.amazon.jsii.tests.calculator.compliance.DefaultedConstructorArgument.class; + case "jsii-calc.compliance.Demonstrate982": return software.amazon.jsii.tests.calculator.compliance.Demonstrate982.class; + case "jsii-calc.compliance.DerivedClassHasNoProperties.Base": return software.amazon.jsii.tests.calculator.compliance.derived_class_has_no_properties.Base.class; + case "jsii-calc.compliance.DerivedClassHasNoProperties.Derived": return software.amazon.jsii.tests.calculator.compliance.derived_class_has_no_properties.Derived.class; + case "jsii-calc.compliance.DerivedStruct": return software.amazon.jsii.tests.calculator.compliance.DerivedStruct.class; + case "jsii-calc.compliance.DiamondInheritanceBaseLevelStruct": return software.amazon.jsii.tests.calculator.compliance.DiamondInheritanceBaseLevelStruct.class; + case "jsii-calc.compliance.DiamondInheritanceFirstMidLevelStruct": return software.amazon.jsii.tests.calculator.compliance.DiamondInheritanceFirstMidLevelStruct.class; + case "jsii-calc.compliance.DiamondInheritanceSecondMidLevelStruct": return software.amazon.jsii.tests.calculator.compliance.DiamondInheritanceSecondMidLevelStruct.class; + case "jsii-calc.compliance.DiamondInheritanceTopLevelStruct": return software.amazon.jsii.tests.calculator.compliance.DiamondInheritanceTopLevelStruct.class; + case "jsii-calc.compliance.DisappointingCollectionSource": return software.amazon.jsii.tests.calculator.compliance.DisappointingCollectionSource.class; + case "jsii-calc.compliance.DoNotOverridePrivates": return software.amazon.jsii.tests.calculator.compliance.DoNotOverridePrivates.class; + case "jsii-calc.compliance.DoNotRecognizeAnyAsOptional": return software.amazon.jsii.tests.calculator.compliance.DoNotRecognizeAnyAsOptional.class; + case "jsii-calc.compliance.DontComplainAboutVariadicAfterOptional": return software.amazon.jsii.tests.calculator.compliance.DontComplainAboutVariadicAfterOptional.class; + case "jsii-calc.compliance.DoubleTrouble": return software.amazon.jsii.tests.calculator.compliance.DoubleTrouble.class; + case "jsii-calc.compliance.EnumDispenser": return software.amazon.jsii.tests.calculator.compliance.EnumDispenser.class; + case "jsii-calc.compliance.EraseUndefinedHashValues": return software.amazon.jsii.tests.calculator.compliance.EraseUndefinedHashValues.class; + case "jsii-calc.compliance.EraseUndefinedHashValuesOptions": return software.amazon.jsii.tests.calculator.compliance.EraseUndefinedHashValuesOptions.class; + case "jsii-calc.compliance.ExportedBaseClass": return software.amazon.jsii.tests.calculator.compliance.ExportedBaseClass.class; + case "jsii-calc.compliance.ExtendsInternalInterface": return software.amazon.jsii.tests.calculator.compliance.ExtendsInternalInterface.class; + case "jsii-calc.compliance.GiveMeStructs": return software.amazon.jsii.tests.calculator.compliance.GiveMeStructs.class; + case "jsii-calc.compliance.GreetingAugmenter": return software.amazon.jsii.tests.calculator.compliance.GreetingAugmenter.class; + case "jsii-calc.compliance.IAnonymousImplementationProvider": return software.amazon.jsii.tests.calculator.compliance.IAnonymousImplementationProvider.class; + case "jsii-calc.compliance.IAnonymouslyImplementMe": return software.amazon.jsii.tests.calculator.compliance.IAnonymouslyImplementMe.class; + case "jsii-calc.compliance.IAnotherPublicInterface": return software.amazon.jsii.tests.calculator.compliance.IAnotherPublicInterface.class; + case "jsii-calc.compliance.IBell": return software.amazon.jsii.tests.calculator.compliance.IBell.class; + case "jsii-calc.compliance.IBellRinger": return software.amazon.jsii.tests.calculator.compliance.IBellRinger.class; + case "jsii-calc.compliance.IConcreteBellRinger": return software.amazon.jsii.tests.calculator.compliance.IConcreteBellRinger.class; + case "jsii-calc.compliance.IExtendsPrivateInterface": return software.amazon.jsii.tests.calculator.compliance.IExtendsPrivateInterface.class; + case "jsii-calc.compliance.IInterfaceImplementedByAbstractClass": return software.amazon.jsii.tests.calculator.compliance.IInterfaceImplementedByAbstractClass.class; + case "jsii-calc.compliance.IInterfaceThatShouldNotBeADataType": return software.amazon.jsii.tests.calculator.compliance.IInterfaceThatShouldNotBeADataType.class; + case "jsii-calc.compliance.IInterfaceWithInternal": return software.amazon.jsii.tests.calculator.compliance.IInterfaceWithInternal.class; + case "jsii-calc.compliance.IInterfaceWithMethods": return software.amazon.jsii.tests.calculator.compliance.IInterfaceWithMethods.class; + case "jsii-calc.compliance.IInterfaceWithOptionalMethodArguments": return software.amazon.jsii.tests.calculator.compliance.IInterfaceWithOptionalMethodArguments.class; + case "jsii-calc.compliance.IInterfaceWithProperties": return software.amazon.jsii.tests.calculator.compliance.IInterfaceWithProperties.class; + case "jsii-calc.compliance.IInterfaceWithPropertiesExtension": return software.amazon.jsii.tests.calculator.compliance.IInterfaceWithPropertiesExtension.class; + case "jsii-calc.compliance.IMutableObjectLiteral": return software.amazon.jsii.tests.calculator.compliance.IMutableObjectLiteral.class; + case "jsii-calc.compliance.INonInternalInterface": return software.amazon.jsii.tests.calculator.compliance.INonInternalInterface.class; + case "jsii-calc.compliance.IObjectWithProperty": return software.amazon.jsii.tests.calculator.compliance.IObjectWithProperty.class; + case "jsii-calc.compliance.IOptionalMethod": return software.amazon.jsii.tests.calculator.compliance.IOptionalMethod.class; + case "jsii-calc.compliance.IPrivatelyImplemented": return software.amazon.jsii.tests.calculator.compliance.IPrivatelyImplemented.class; + case "jsii-calc.compliance.IPublicInterface": return software.amazon.jsii.tests.calculator.compliance.IPublicInterface.class; + case "jsii-calc.compliance.IPublicInterface2": return software.amazon.jsii.tests.calculator.compliance.IPublicInterface2.class; + case "jsii-calc.compliance.IReturnJsii976": return software.amazon.jsii.tests.calculator.compliance.IReturnJsii976.class; + case "jsii-calc.compliance.IReturnsNumber": return software.amazon.jsii.tests.calculator.compliance.IReturnsNumber.class; + case "jsii-calc.compliance.IStructReturningDelegate": return software.amazon.jsii.tests.calculator.compliance.IStructReturningDelegate.class; + case "jsii-calc.compliance.ImplementInternalInterface": return software.amazon.jsii.tests.calculator.compliance.ImplementInternalInterface.class; + case "jsii-calc.compliance.Implementation": return software.amazon.jsii.tests.calculator.compliance.Implementation.class; + case "jsii-calc.compliance.ImplementsInterfaceWithInternal": return software.amazon.jsii.tests.calculator.compliance.ImplementsInterfaceWithInternal.class; + case "jsii-calc.compliance.ImplementsInterfaceWithInternalSubclass": return software.amazon.jsii.tests.calculator.compliance.ImplementsInterfaceWithInternalSubclass.class; + case "jsii-calc.compliance.ImplementsPrivateInterface": return software.amazon.jsii.tests.calculator.compliance.ImplementsPrivateInterface.class; + case "jsii-calc.compliance.ImplictBaseOfBase": return software.amazon.jsii.tests.calculator.compliance.ImplictBaseOfBase.class; + case "jsii-calc.compliance.InbetweenClass": return software.amazon.jsii.tests.calculator.compliance.InbetweenClass.class; + case "jsii-calc.compliance.InterfaceCollections": return software.amazon.jsii.tests.calculator.compliance.InterfaceCollections.class; + case "jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Foo": return software.amazon.jsii.tests.calculator.compliance.interface_in_namespace_includes_classes.Foo.class; + case "jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Hello": return software.amazon.jsii.tests.calculator.compliance.interface_in_namespace_includes_classes.Hello.class; + case "jsii-calc.compliance.InterfaceInNamespaceOnlyInterface.Hello": return software.amazon.jsii.tests.calculator.compliance.interface_in_namespace_only_interface.Hello.class; + case "jsii-calc.compliance.InterfacesMaker": return software.amazon.jsii.tests.calculator.compliance.InterfacesMaker.class; + case "jsii-calc.compliance.JSObjectLiteralForInterface": return software.amazon.jsii.tests.calculator.compliance.JSObjectLiteralForInterface.class; + case "jsii-calc.compliance.JSObjectLiteralToNative": return software.amazon.jsii.tests.calculator.compliance.JSObjectLiteralToNative.class; + case "jsii-calc.compliance.JSObjectLiteralToNativeClass": return software.amazon.jsii.tests.calculator.compliance.JSObjectLiteralToNativeClass.class; + case "jsii-calc.compliance.JavaReservedWords": return software.amazon.jsii.tests.calculator.compliance.JavaReservedWords.class; + case "jsii-calc.compliance.JsiiAgent": return software.amazon.jsii.tests.calculator.compliance.JsiiAgent.class; + case "jsii-calc.compliance.JsonFormatter": return software.amazon.jsii.tests.calculator.compliance.JsonFormatter.class; + case "jsii-calc.compliance.LoadBalancedFargateServiceProps": return software.amazon.jsii.tests.calculator.compliance.LoadBalancedFargateServiceProps.class; + case "jsii-calc.compliance.NestedStruct": return software.amazon.jsii.tests.calculator.compliance.NestedStruct.class; + case "jsii-calc.compliance.NodeStandardLibrary": return software.amazon.jsii.tests.calculator.compliance.NodeStandardLibrary.class; + case "jsii-calc.compliance.NullShouldBeTreatedAsUndefined": return software.amazon.jsii.tests.calculator.compliance.NullShouldBeTreatedAsUndefined.class; + case "jsii-calc.compliance.NullShouldBeTreatedAsUndefinedData": return software.amazon.jsii.tests.calculator.compliance.NullShouldBeTreatedAsUndefinedData.class; + case "jsii-calc.compliance.NumberGenerator": return software.amazon.jsii.tests.calculator.compliance.NumberGenerator.class; + case "jsii-calc.compliance.ObjectRefsInCollections": return software.amazon.jsii.tests.calculator.compliance.ObjectRefsInCollections.class; + case "jsii-calc.compliance.ObjectWithPropertyProvider": return software.amazon.jsii.tests.calculator.compliance.ObjectWithPropertyProvider.class; + case "jsii-calc.compliance.OptionalArgumentInvoker": return software.amazon.jsii.tests.calculator.compliance.OptionalArgumentInvoker.class; + case "jsii-calc.compliance.OptionalConstructorArgument": return software.amazon.jsii.tests.calculator.compliance.OptionalConstructorArgument.class; + case "jsii-calc.compliance.OptionalStruct": return software.amazon.jsii.tests.calculator.compliance.OptionalStruct.class; + case "jsii-calc.compliance.OptionalStructConsumer": return software.amazon.jsii.tests.calculator.compliance.OptionalStructConsumer.class; + case "jsii-calc.compliance.OverridableProtectedMember": return software.amazon.jsii.tests.calculator.compliance.OverridableProtectedMember.class; + case "jsii-calc.compliance.OverrideReturnsObject": return software.amazon.jsii.tests.calculator.compliance.OverrideReturnsObject.class; + case "jsii-calc.compliance.ParentStruct982": return software.amazon.jsii.tests.calculator.compliance.ParentStruct982.class; + case "jsii-calc.compliance.PartiallyInitializedThisConsumer": return software.amazon.jsii.tests.calculator.compliance.PartiallyInitializedThisConsumer.class; + case "jsii-calc.compliance.Polymorphism": return software.amazon.jsii.tests.calculator.compliance.Polymorphism.class; + case "jsii-calc.compliance.PublicClass": return software.amazon.jsii.tests.calculator.compliance.PublicClass.class; + case "jsii-calc.compliance.PythonReservedWords": return software.amazon.jsii.tests.calculator.compliance.PythonReservedWords.class; + case "jsii-calc.compliance.ReferenceEnumFromScopedPackage": return software.amazon.jsii.tests.calculator.compliance.ReferenceEnumFromScopedPackage.class; + case "jsii-calc.compliance.ReturnsPrivateImplementationOfInterface": return software.amazon.jsii.tests.calculator.compliance.ReturnsPrivateImplementationOfInterface.class; + case "jsii-calc.compliance.RootStruct": return software.amazon.jsii.tests.calculator.compliance.RootStruct.class; + case "jsii-calc.compliance.RootStructValidator": return software.amazon.jsii.tests.calculator.compliance.RootStructValidator.class; + case "jsii-calc.compliance.RuntimeTypeChecking": return software.amazon.jsii.tests.calculator.compliance.RuntimeTypeChecking.class; + case "jsii-calc.compliance.SecondLevelStruct": return software.amazon.jsii.tests.calculator.compliance.SecondLevelStruct.class; + case "jsii-calc.compliance.SingleInstanceTwoTypes": return software.amazon.jsii.tests.calculator.compliance.SingleInstanceTwoTypes.class; + case "jsii-calc.compliance.SingletonInt": return software.amazon.jsii.tests.calculator.compliance.SingletonInt.class; + case "jsii-calc.compliance.SingletonIntEnum": return software.amazon.jsii.tests.calculator.compliance.SingletonIntEnum.class; + case "jsii-calc.compliance.SingletonString": return software.amazon.jsii.tests.calculator.compliance.SingletonString.class; + case "jsii-calc.compliance.SingletonStringEnum": return software.amazon.jsii.tests.calculator.compliance.SingletonStringEnum.class; + case "jsii-calc.compliance.SomeTypeJsii976": return software.amazon.jsii.tests.calculator.compliance.SomeTypeJsii976.class; + case "jsii-calc.compliance.StaticContext": return software.amazon.jsii.tests.calculator.compliance.StaticContext.class; + case "jsii-calc.compliance.Statics": return software.amazon.jsii.tests.calculator.compliance.Statics.class; + case "jsii-calc.compliance.StringEnum": return software.amazon.jsii.tests.calculator.compliance.StringEnum.class; + case "jsii-calc.compliance.StripInternal": return software.amazon.jsii.tests.calculator.compliance.StripInternal.class; + case "jsii-calc.compliance.StructA": return software.amazon.jsii.tests.calculator.compliance.StructA.class; + case "jsii-calc.compliance.StructB": return software.amazon.jsii.tests.calculator.compliance.StructB.class; + case "jsii-calc.compliance.StructParameterType": return software.amazon.jsii.tests.calculator.compliance.StructParameterType.class; + case "jsii-calc.compliance.StructPassing": return software.amazon.jsii.tests.calculator.compliance.StructPassing.class; + case "jsii-calc.compliance.StructUnionConsumer": return software.amazon.jsii.tests.calculator.compliance.StructUnionConsumer.class; + case "jsii-calc.compliance.StructWithJavaReservedWords": return software.amazon.jsii.tests.calculator.compliance.StructWithJavaReservedWords.class; + case "jsii-calc.compliance.SupportsNiceJavaBuilder": return software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilder.class; + case "jsii-calc.compliance.SupportsNiceJavaBuilderProps": return software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilderProps.class; + case "jsii-calc.compliance.SupportsNiceJavaBuilderWithRequiredProps": return software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilderWithRequiredProps.class; + case "jsii-calc.compliance.SyncVirtualMethods": return software.amazon.jsii.tests.calculator.compliance.SyncVirtualMethods.class; + case "jsii-calc.compliance.Thrower": return software.amazon.jsii.tests.calculator.compliance.Thrower.class; + case "jsii-calc.compliance.TopLevelStruct": return software.amazon.jsii.tests.calculator.compliance.TopLevelStruct.class; + case "jsii-calc.compliance.UnionProperties": return software.amazon.jsii.tests.calculator.compliance.UnionProperties.class; + case "jsii-calc.compliance.UseBundledDependency": return software.amazon.jsii.tests.calculator.compliance.UseBundledDependency.class; + case "jsii-calc.compliance.UseCalcBase": return software.amazon.jsii.tests.calculator.compliance.UseCalcBase.class; + case "jsii-calc.compliance.UsesInterfaceWithProperties": return software.amazon.jsii.tests.calculator.compliance.UsesInterfaceWithProperties.class; + case "jsii-calc.compliance.VariadicInvoker": return software.amazon.jsii.tests.calculator.compliance.VariadicInvoker.class; + case "jsii-calc.compliance.VariadicMethod": return software.amazon.jsii.tests.calculator.compliance.VariadicMethod.class; + case "jsii-calc.compliance.VirtualMethodPlayground": return software.amazon.jsii.tests.calculator.compliance.VirtualMethodPlayground.class; + case "jsii-calc.compliance.VoidCallback": return software.amazon.jsii.tests.calculator.compliance.VoidCallback.class; + case "jsii-calc.compliance.WithPrivatePropertyInConstructor": return software.amazon.jsii.tests.calculator.compliance.WithPrivatePropertyInConstructor.class; case "jsii-calc.composition.CompositeOperation": return software.amazon.jsii.tests.calculator.composition.CompositeOperation.class; case "jsii-calc.composition.CompositeOperation.CompositionStringStyle": return software.amazon.jsii.tests.calculator.composition.CompositeOperation.CompositionStringStyle.class; + case "jsii-calc.documented.DocumentedClass": return software.amazon.jsii.tests.calculator.documented.DocumentedClass.class; + case "jsii-calc.documented.Greetee": return software.amazon.jsii.tests.calculator.documented.Greetee.class; + case "jsii-calc.documented.Old": return software.amazon.jsii.tests.calculator.documented.Old.class; + case "jsii-calc.erasureTests.IJSII417Derived": return software.amazon.jsii.tests.calculator.erasure_tests.IJSII417Derived.class; + case "jsii-calc.erasureTests.IJSII417PublicBaseOfBase": return software.amazon.jsii.tests.calculator.erasure_tests.IJSII417PublicBaseOfBase.class; + case "jsii-calc.erasureTests.IJsii487External": return software.amazon.jsii.tests.calculator.erasure_tests.IJsii487External.class; + case "jsii-calc.erasureTests.IJsii487External2": return software.amazon.jsii.tests.calculator.erasure_tests.IJsii487External2.class; + case "jsii-calc.erasureTests.IJsii496": return software.amazon.jsii.tests.calculator.erasure_tests.IJsii496.class; + case "jsii-calc.erasureTests.JSII417Derived": return software.amazon.jsii.tests.calculator.erasure_tests.JSII417Derived.class; + case "jsii-calc.erasureTests.JSII417PublicBaseOfBase": return software.amazon.jsii.tests.calculator.erasure_tests.JSII417PublicBaseOfBase.class; + case "jsii-calc.erasureTests.Jsii487Derived": return software.amazon.jsii.tests.calculator.erasure_tests.Jsii487Derived.class; + case "jsii-calc.erasureTests.Jsii496Derived": return software.amazon.jsii.tests.calculator.erasure_tests.Jsii496Derived.class; + case "jsii-calc.stability_annotations.DeprecatedClass": return software.amazon.jsii.tests.calculator.stability_annotations.DeprecatedClass.class; + case "jsii-calc.stability_annotations.DeprecatedEnum": return software.amazon.jsii.tests.calculator.stability_annotations.DeprecatedEnum.class; + case "jsii-calc.stability_annotations.DeprecatedStruct": return software.amazon.jsii.tests.calculator.stability_annotations.DeprecatedStruct.class; + case "jsii-calc.stability_annotations.ExperimentalClass": return software.amazon.jsii.tests.calculator.stability_annotations.ExperimentalClass.class; + case "jsii-calc.stability_annotations.ExperimentalEnum": return software.amazon.jsii.tests.calculator.stability_annotations.ExperimentalEnum.class; + case "jsii-calc.stability_annotations.ExperimentalStruct": return software.amazon.jsii.tests.calculator.stability_annotations.ExperimentalStruct.class; + case "jsii-calc.stability_annotations.IDeprecatedInterface": return software.amazon.jsii.tests.calculator.stability_annotations.IDeprecatedInterface.class; + case "jsii-calc.stability_annotations.IExperimentalInterface": return software.amazon.jsii.tests.calculator.stability_annotations.IExperimentalInterface.class; + case "jsii-calc.stability_annotations.IStableInterface": return software.amazon.jsii.tests.calculator.stability_annotations.IStableInterface.class; + case "jsii-calc.stability_annotations.StableClass": return software.amazon.jsii.tests.calculator.stability_annotations.StableClass.class; + case "jsii-calc.stability_annotations.StableEnum": return software.amazon.jsii.tests.calculator.stability_annotations.StableEnum.class; + case "jsii-calc.stability_annotations.StableStruct": return software.amazon.jsii.tests.calculator.stability_annotations.StableStruct.class; default: throw new ClassNotFoundException("Unknown JSII type: " + fqn); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AbstractClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AbstractClass.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AbstractClass.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AbstractClass.java index 0e86f59872..688367f273 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AbstractClass.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AbstractClass.java @@ -1,12 +1,12 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AbstractClass") -public abstract class AbstractClass extends software.amazon.jsii.tests.calculator.AbstractClassBase implements software.amazon.jsii.tests.calculator.IInterfaceImplementedByAbstractClass { +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.AbstractClass") +public abstract class AbstractClass extends software.amazon.jsii.tests.calculator.compliance.AbstractClassBase implements software.amazon.jsii.tests.calculator.compliance.IInterfaceImplementedByAbstractClass { protected AbstractClass(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); @@ -49,7 +49,7 @@ protected AbstractClass() { /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.AbstractClass { + final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.compliance.AbstractClass { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AbstractClassBase.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AbstractClassBase.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AbstractClassBase.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AbstractClassBase.java index 7f34db48e9..190f800eb6 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AbstractClassBase.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AbstractClassBase.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AbstractClassBase") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.AbstractClassBase") public abstract class AbstractClassBase extends software.amazon.jsii.JsiiObject { protected AbstractClassBase(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -30,7 +30,7 @@ protected AbstractClassBase() { /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.AbstractClassBase { + final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.compliance.AbstractClassBase { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AbstractClassReturner.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AbstractClassReturner.java similarity index 72% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AbstractClassReturner.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AbstractClassReturner.java index 35e26e2596..037ced9f24 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AbstractClassReturner.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AbstractClassReturner.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AbstractClassReturner") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.AbstractClassReturner") public class AbstractClassReturner extends software.amazon.jsii.JsiiObject { protected AbstractClassReturner(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -25,23 +25,23 @@ public AbstractClassReturner() { * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.AbstractClass giveMeAbstract() { - return this.jsiiCall("giveMeAbstract", software.amazon.jsii.tests.calculator.AbstractClass.class); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.AbstractClass giveMeAbstract() { + return this.jsiiCall("giveMeAbstract", software.amazon.jsii.tests.calculator.compliance.AbstractClass.class); } /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IInterfaceImplementedByAbstractClass giveMeInterface() { - return this.jsiiCall("giveMeInterface", software.amazon.jsii.tests.calculator.IInterfaceImplementedByAbstractClass.class); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IInterfaceImplementedByAbstractClass giveMeInterface() { + return this.jsiiCall("giveMeInterface", software.amazon.jsii.tests.calculator.compliance.IInterfaceImplementedByAbstractClass.class); } /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.AbstractClassBase getReturnAbstractFromProperty() { - return this.jsiiGet("returnAbstractFromProperty", software.amazon.jsii.tests.calculator.AbstractClassBase.class); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.AbstractClassBase getReturnAbstractFromProperty() { + return this.jsiiGet("returnAbstractFromProperty", software.amazon.jsii.tests.calculator.compliance.AbstractClassBase.class); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AllTypes.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AllTypes.java similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AllTypes.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AllTypes.java index 6a7ab2d088..c7d8ba2955 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AllTypes.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AllTypes.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * This class includes property for all types supported by jsii. @@ -10,7 +10,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AllTypes") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.AllTypes") public class AllTypes extends software.amazon.jsii.JsiiObject { protected AllTypes(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -50,8 +50,8 @@ public void anyIn(final @org.jetbrains.annotations.NotNull java.lang.Object inp) * @param value This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StringEnum enumMethod(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StringEnum value) { - return this.jsiiCall("enumMethod", software.amazon.jsii.tests.calculator.StringEnum.class, new Object[] { java.util.Objects.requireNonNull(value, "value is required") }); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.StringEnum enumMethod(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.StringEnum value) { + return this.jsiiCall("enumMethod", software.amazon.jsii.tests.calculator.compliance.StringEnum.class, new Object[] { java.util.Objects.requireNonNull(value, "value is required") }); } /** @@ -162,15 +162,15 @@ public void setDateProperty(final @org.jetbrains.annotations.NotNull java.time.I * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.AllTypesEnum getEnumProperty() { - return this.jsiiGet("enumProperty", software.amazon.jsii.tests.calculator.AllTypesEnum.class); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.AllTypesEnum getEnumProperty() { + return this.jsiiGet("enumProperty", software.amazon.jsii.tests.calculator.compliance.AllTypesEnum.class); } /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setEnumProperty(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.AllTypesEnum value) { + public void setEnumProperty(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.AllTypesEnum value) { this.jsiiSet("enumProperty", java.util.Objects.requireNonNull(value, "enumProperty is required")); } @@ -362,15 +362,15 @@ public void setUnknownProperty(final @org.jetbrains.annotations.NotNull java.lan * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.StringEnum getOptionalEnumValue() { - return this.jsiiGet("optionalEnumValue", software.amazon.jsii.tests.calculator.StringEnum.class); + public @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.compliance.StringEnum getOptionalEnumValue() { + return this.jsiiGet("optionalEnumValue", software.amazon.jsii.tests.calculator.compliance.StringEnum.class); } /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setOptionalEnumValue(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.StringEnum value) { + public void setOptionalEnumValue(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.compliance.StringEnum value) { this.jsiiSet("optionalEnumValue", value); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AllTypesEnum.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AllTypesEnum.java similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AllTypesEnum.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AllTypesEnum.java index 5037016559..c2d9187620 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AllTypesEnum.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AllTypesEnum.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AllTypesEnum") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.AllTypesEnum") public enum AllTypesEnum { /** * EXPERIMENTAL diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AllowedMethodNames.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AllowedMethodNames.java similarity index 96% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AllowedMethodNames.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AllowedMethodNames.java index ae4d22996b..cb85e1b1aa 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AllowedMethodNames.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AllowedMethodNames.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AllowedMethodNames") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.AllowedMethodNames") public class AllowedMethodNames extends software.amazon.jsii.JsiiObject { protected AllowedMethodNames(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AmbiguousParameters.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AmbiguousParameters.java similarity index 75% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AmbiguousParameters.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AmbiguousParameters.java index 5abb3cf504..7c972ec598 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AmbiguousParameters.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AmbiguousParameters.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AmbiguousParameters") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.AmbiguousParameters") public class AmbiguousParameters extends software.amazon.jsii.JsiiObject { protected AmbiguousParameters(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -23,7 +23,7 @@ protected AmbiguousParameters(final software.amazon.jsii.JsiiObject.Initializati * @param props This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public AmbiguousParameters(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Bell scope, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StructParameterType props) { + public AmbiguousParameters(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.Bell scope, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.StructParameterType props) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(props, "props is required") }); } @@ -32,20 +32,20 @@ public AmbiguousParameters(final @org.jetbrains.annotations.NotNull software.ama * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StructParameterType getProps() { - return this.jsiiGet("props", software.amazon.jsii.tests.calculator.StructParameterType.class); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.StructParameterType getProps() { + return this.jsiiGet("props", software.amazon.jsii.tests.calculator.compliance.StructParameterType.class); } /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Bell getScope() { - return this.jsiiGet("scope", software.amazon.jsii.tests.calculator.Bell.class); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.Bell getScope() { + return this.jsiiGet("scope", software.amazon.jsii.tests.calculator.compliance.Bell.class); } /** - * A fluent builder for {@link software.amazon.jsii.tests.calculator.AmbiguousParameters}. + * A fluent builder for {@link software.amazon.jsii.tests.calculator.compliance.AmbiguousParameters}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static final class Builder { @@ -56,16 +56,16 @@ public static final class Builder { * @param scope This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static Builder create(final software.amazon.jsii.tests.calculator.Bell scope) { + public static Builder create(final software.amazon.jsii.tests.calculator.compliance.Bell scope) { return new Builder(scope); } - private final software.amazon.jsii.tests.calculator.Bell scope; - private final software.amazon.jsii.tests.calculator.StructParameterType.Builder props; + private final software.amazon.jsii.tests.calculator.compliance.Bell scope; + private final software.amazon.jsii.tests.calculator.compliance.StructParameterType.Builder props; - private Builder(final software.amazon.jsii.tests.calculator.Bell scope) { + private Builder(final software.amazon.jsii.tests.calculator.compliance.Bell scope) { this.scope = scope; - this.props = new software.amazon.jsii.tests.calculator.StructParameterType.Builder(); + this.props = new software.amazon.jsii.tests.calculator.compliance.StructParameterType.Builder(); } /** @@ -93,11 +93,11 @@ public Builder props(final java.lang.Boolean props) { } /** - * @returns a newly built instance of {@link software.amazon.jsii.tests.calculator.AmbiguousParameters}. + * @returns a newly built instance of {@link software.amazon.jsii.tests.calculator.compliance.AmbiguousParameters}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public software.amazon.jsii.tests.calculator.AmbiguousParameters build() { - return new software.amazon.jsii.tests.calculator.AmbiguousParameters( + public software.amazon.jsii.tests.calculator.compliance.AmbiguousParameters build() { + return new software.amazon.jsii.tests.calculator.compliance.AmbiguousParameters( this.scope, this.props.build() ); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AnonymousImplementationProvider.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AnonymousImplementationProvider.java similarity index 75% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AnonymousImplementationProvider.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AnonymousImplementationProvider.java index b319f7377c..312798cc58 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AnonymousImplementationProvider.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AnonymousImplementationProvider.java @@ -1,12 +1,12 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AnonymousImplementationProvider") -public class AnonymousImplementationProvider extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IAnonymousImplementationProvider { +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.AnonymousImplementationProvider") +public class AnonymousImplementationProvider extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IAnonymousImplementationProvider { protected AnonymousImplementationProvider(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); @@ -26,8 +26,8 @@ public AnonymousImplementationProvider() { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Implementation provideAsClass() { - return this.jsiiCall("provideAsClass", software.amazon.jsii.tests.calculator.Implementation.class); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.Implementation provideAsClass() { + return this.jsiiCall("provideAsClass", software.amazon.jsii.tests.calculator.compliance.Implementation.class); } /** @@ -35,7 +35,7 @@ public AnonymousImplementationProvider() { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IAnonymouslyImplementMe provideAsInterface() { - return this.jsiiCall("provideAsInterface", software.amazon.jsii.tests.calculator.IAnonymouslyImplementMe.class); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IAnonymouslyImplementMe provideAsInterface() { + return this.jsiiCall("provideAsInterface", software.amazon.jsii.tests.calculator.compliance.IAnonymouslyImplementMe.class); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AsyncVirtualMethods.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AsyncVirtualMethods.java similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AsyncVirtualMethods.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AsyncVirtualMethods.java index 2b07f84373..1bcce38edc 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AsyncVirtualMethods.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AsyncVirtualMethods.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AsyncVirtualMethods") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.AsyncVirtualMethods") public class AsyncVirtualMethods extends software.amazon.jsii.JsiiObject { protected AsyncVirtualMethods(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AugmentableClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AugmentableClass.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AugmentableClass.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AugmentableClass.java index 065961928e..e92277d04d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AugmentableClass.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AugmentableClass.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AugmentableClass") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.AugmentableClass") public class AugmentableClass extends software.amazon.jsii.JsiiObject { protected AugmentableClass(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/BaseJsii976.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/BaseJsii976.java similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/BaseJsii976.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/BaseJsii976.java index 7f5c012371..1ee96666ef 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/BaseJsii976.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/BaseJsii976.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.BaseJsii976") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.BaseJsii976") public class BaseJsii976 extends software.amazon.jsii.JsiiObject { protected BaseJsii976(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Bell.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Bell.java similarity index 89% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Bell.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Bell.java index 9d95cd9112..22e079dc8c 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Bell.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Bell.java @@ -1,12 +1,12 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Bell") -public class Bell extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IBell { +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.Bell") +public class Bell extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IBell { protected Bell(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ChildStruct982.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ChildStruct982.java similarity index 94% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ChildStruct982.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ChildStruct982.java index 88e41ae378..771bb4485f 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ChildStruct982.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ChildStruct982.java @@ -1,13 +1,13 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ChildStruct982") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ChildStruct982") @software.amazon.jsii.Jsii.Proxy(ChildStruct982.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface ChildStruct982 extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.ParentStruct982 { +public interface ChildStruct982 extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.compliance.ParentStruct982 { /** * EXPERIMENTAL @@ -109,7 +109,7 @@ public java.lang.String getFoo() { data.set("foo", om.valueToTree(this.getFoo())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.ChildStruct982")); + struct.set("fqn", om.valueToTree("jsii-calc.compliance.ChildStruct982")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassThatImplementsTheInternalInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassThatImplementsTheInternalInterface.java similarity index 94% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassThatImplementsTheInternalInterface.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassThatImplementsTheInternalInterface.java index 852647d59e..3c0961db91 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassThatImplementsTheInternalInterface.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassThatImplementsTheInternalInterface.java @@ -1,12 +1,12 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ClassThatImplementsTheInternalInterface") -public class ClassThatImplementsTheInternalInterface extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.INonInternalInterface { +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ClassThatImplementsTheInternalInterface") +public class ClassThatImplementsTheInternalInterface extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.INonInternalInterface { protected ClassThatImplementsTheInternalInterface(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassThatImplementsThePrivateInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassThatImplementsThePrivateInterface.java similarity index 94% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassThatImplementsThePrivateInterface.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassThatImplementsThePrivateInterface.java index bf11210c1a..04ce1a11ca 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassThatImplementsThePrivateInterface.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassThatImplementsThePrivateInterface.java @@ -1,12 +1,12 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ClassThatImplementsThePrivateInterface") -public class ClassThatImplementsThePrivateInterface extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.INonInternalInterface { +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ClassThatImplementsThePrivateInterface") +public class ClassThatImplementsThePrivateInterface extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.INonInternalInterface { protected ClassThatImplementsThePrivateInterface(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithCollections.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassWithCollections.java similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithCollections.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassWithCollections.java index fde75d67a0..7b5a356a8b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithCollections.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassWithCollections.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ClassWithCollections") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ClassWithCollections") public class ClassWithCollections extends software.amazon.jsii.JsiiObject { protected ClassWithCollections(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -33,7 +33,7 @@ public ClassWithCollections(final @org.jetbrains.annotations.NotNull java.util.M */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.util.List createAList() { - return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ClassWithCollections.class, "createAList", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); + return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.ClassWithCollections.class, "createAList", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); } /** @@ -41,7 +41,7 @@ public ClassWithCollections(final @org.jetbrains.annotations.NotNull java.util.M */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.util.Map createAMap() { - return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ClassWithCollections.class, "createAMap", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); + return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.ClassWithCollections.class, "createAMap", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); } /** @@ -49,7 +49,7 @@ public ClassWithCollections(final @org.jetbrains.annotations.NotNull java.util.M */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.util.List getStaticArray() { - return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.ClassWithCollections.class, "staticArray", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); + return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.compliance.ClassWithCollections.class, "staticArray", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); } /** @@ -57,7 +57,7 @@ public ClassWithCollections(final @org.jetbrains.annotations.NotNull java.util.M */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static void setStaticArray(final @org.jetbrains.annotations.NotNull java.util.List value) { - software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.ClassWithCollections.class, "staticArray", java.util.Objects.requireNonNull(value, "staticArray is required")); + software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.compliance.ClassWithCollections.class, "staticArray", java.util.Objects.requireNonNull(value, "staticArray is required")); } /** @@ -65,7 +65,7 @@ public static void setStaticArray(final @org.jetbrains.annotations.NotNull java. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.util.Map getStaticMap() { - return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.ClassWithCollections.class, "staticMap", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); + return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.compliance.ClassWithCollections.class, "staticMap", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); } /** @@ -73,7 +73,7 @@ public static void setStaticArray(final @org.jetbrains.annotations.NotNull java. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static void setStaticMap(final @org.jetbrains.annotations.NotNull java.util.Map value) { - software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.ClassWithCollections.class, "staticMap", java.util.Objects.requireNonNull(value, "staticMap is required")); + software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.compliance.ClassWithCollections.class, "staticMap", java.util.Objects.requireNonNull(value, "staticMap is required")); } /** diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithDocs.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassWithDocs.java similarity index 88% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithDocs.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassWithDocs.java index 8490328692..8ccf02ac78 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithDocs.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassWithDocs.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * This class has docs. @@ -16,7 +16,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ClassWithDocs") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ClassWithDocs") public class ClassWithDocs extends software.amazon.jsii.JsiiObject { protected ClassWithDocs(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithJavaReservedWords.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassWithJavaReservedWords.java similarity index 93% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithJavaReservedWords.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassWithJavaReservedWords.java index 8909302c32..913319ee50 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithJavaReservedWords.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassWithJavaReservedWords.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ClassWithJavaReservedWords") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ClassWithJavaReservedWords") public class ClassWithJavaReservedWords extends software.amazon.jsii.JsiiObject { protected ClassWithJavaReservedWords(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithMutableObjectLiteralProperty.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassWithMutableObjectLiteralProperty.java similarity index 78% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithMutableObjectLiteralProperty.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassWithMutableObjectLiteralProperty.java index b8b547dacb..2b7495576c 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithMutableObjectLiteralProperty.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassWithMutableObjectLiteralProperty.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ClassWithMutableObjectLiteralProperty") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ClassWithMutableObjectLiteralProperty") public class ClassWithMutableObjectLiteralProperty extends software.amazon.jsii.JsiiObject { protected ClassWithMutableObjectLiteralProperty(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -25,15 +25,15 @@ public ClassWithMutableObjectLiteralProperty() { * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IMutableObjectLiteral getMutableObject() { - return this.jsiiGet("mutableObject", software.amazon.jsii.tests.calculator.IMutableObjectLiteral.class); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IMutableObjectLiteral getMutableObject() { + return this.jsiiGet("mutableObject", software.amazon.jsii.tests.calculator.compliance.IMutableObjectLiteral.class); } /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setMutableObject(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IMutableObjectLiteral value) { + public void setMutableObject(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IMutableObjectLiteral value) { this.jsiiSet("mutableObject", java.util.Objects.requireNonNull(value, "mutableObject is required")); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithPrivateConstructorAndAutomaticProperties.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassWithPrivateConstructorAndAutomaticProperties.java similarity index 70% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithPrivateConstructorAndAutomaticProperties.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassWithPrivateConstructorAndAutomaticProperties.java index aa9b4d92d6..7257b1f9ee 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithPrivateConstructorAndAutomaticProperties.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassWithPrivateConstructorAndAutomaticProperties.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * Class that implements interface properties automatically, but using a private constructor. @@ -7,8 +7,8 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties") -public class ClassWithPrivateConstructorAndAutomaticProperties extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceWithProperties { +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ClassWithPrivateConstructorAndAutomaticProperties") +public class ClassWithPrivateConstructorAndAutomaticProperties extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IInterfaceWithProperties { protected ClassWithPrivateConstructorAndAutomaticProperties(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); @@ -25,8 +25,8 @@ protected ClassWithPrivateConstructorAndAutomaticProperties(final software.amazo * @param readWriteString This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.ClassWithPrivateConstructorAndAutomaticProperties create(final @org.jetbrains.annotations.NotNull java.lang.String readOnlyString, final @org.jetbrains.annotations.NotNull java.lang.String readWriteString) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ClassWithPrivateConstructorAndAutomaticProperties.class, "create", software.amazon.jsii.tests.calculator.ClassWithPrivateConstructorAndAutomaticProperties.class, new Object[] { java.util.Objects.requireNonNull(readOnlyString, "readOnlyString is required"), java.util.Objects.requireNonNull(readWriteString, "readWriteString is required") }); + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.ClassWithPrivateConstructorAndAutomaticProperties create(final @org.jetbrains.annotations.NotNull java.lang.String readOnlyString, final @org.jetbrains.annotations.NotNull java.lang.String readWriteString) { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.ClassWithPrivateConstructorAndAutomaticProperties.class, "create", software.amazon.jsii.tests.calculator.compliance.ClassWithPrivateConstructorAndAutomaticProperties.class, new Object[] { java.util.Objects.requireNonNull(readOnlyString, "readOnlyString is required"), java.util.Objects.requireNonNull(readWriteString, "readWriteString is required") }); } /** diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConfusingToJackson.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ConfusingToJackson.java similarity index 76% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConfusingToJackson.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ConfusingToJackson.java index 50693499d4..557380e547 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConfusingToJackson.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ConfusingToJackson.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * This tries to confuse Jackson by having overloaded property setters. @@ -9,7 +9,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ConfusingToJackson") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ConfusingToJackson") public class ConfusingToJackson extends software.amazon.jsii.JsiiObject { protected ConfusingToJackson(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -24,16 +24,16 @@ protected ConfusingToJackson(final software.amazon.jsii.JsiiObject.Initializatio * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.ConfusingToJackson makeInstance() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ConfusingToJackson.class, "makeInstance", software.amazon.jsii.tests.calculator.ConfusingToJackson.class); + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.ConfusingToJackson makeInstance() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.ConfusingToJackson.class, "makeInstance", software.amazon.jsii.tests.calculator.compliance.ConfusingToJackson.class); } /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.ConfusingToJacksonStruct makeStructInstance() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ConfusingToJackson.class, "makeStructInstance", software.amazon.jsii.tests.calculator.ConfusingToJacksonStruct.class); + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.ConfusingToJacksonStruct makeStructInstance() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.ConfusingToJackson.class, "makeStructInstance", software.amazon.jsii.tests.calculator.compliance.ConfusingToJacksonStruct.class); } /** diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConfusingToJacksonStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ConfusingToJacksonStruct.java similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConfusingToJacksonStruct.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ConfusingToJacksonStruct.java index 7fea0c033f..6cd11536b6 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConfusingToJacksonStruct.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ConfusingToJacksonStruct.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ConfusingToJacksonStruct") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ConfusingToJacksonStruct") @software.amazon.jsii.Jsii.Proxy(ConfusingToJacksonStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface ConfusingToJacksonStruct extends software.amazon.jsii.JsiiSerializable { @@ -103,7 +103,7 @@ public java.lang.Object getUnionProperty() { } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.ConfusingToJacksonStruct")); + struct.set("fqn", om.valueToTree("jsii-calc.compliance.ConfusingToJacksonStruct")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConstructorPassesThisOut.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ConstructorPassesThisOut.java similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConstructorPassesThisOut.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ConstructorPassesThisOut.java index df0af47c17..7fae756b2b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConstructorPassesThisOut.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ConstructorPassesThisOut.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ConstructorPassesThisOut") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ConstructorPassesThisOut") public class ConstructorPassesThisOut extends software.amazon.jsii.JsiiObject { protected ConstructorPassesThisOut(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -22,7 +22,7 @@ protected ConstructorPassesThisOut(final software.amazon.jsii.JsiiObject.Initial * @param consumer This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public ConstructorPassesThisOut(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.PartiallyInitializedThisConsumer consumer) { + public ConstructorPassesThisOut(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.PartiallyInitializedThisConsumer consumer) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(consumer, "consumer is required") }); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Constructors.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Constructors.java similarity index 58% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Constructors.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Constructors.java index 584a444da5..442f3e201e 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Constructors.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Constructors.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Constructors") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.Constructors") public class Constructors extends software.amazon.jsii.JsiiObject { protected Constructors(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -25,55 +25,55 @@ public Constructors() { * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IPublicInterface hiddenInterface() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, "hiddenInterface", software.amazon.jsii.tests.calculator.IPublicInterface.class); + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IPublicInterface hiddenInterface() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.Constructors.class, "hiddenInterface", software.amazon.jsii.tests.calculator.compliance.IPublicInterface.class); } /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.util.List hiddenInterfaces() { - return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, "hiddenInterfaces", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.IPublicInterface.class)))); + public static @org.jetbrains.annotations.NotNull java.util.List hiddenInterfaces() { + return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.Constructors.class, "hiddenInterfaces", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.compliance.IPublicInterface.class)))); } /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.util.List hiddenSubInterfaces() { - return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, "hiddenSubInterfaces", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.IPublicInterface.class)))); + public static @org.jetbrains.annotations.NotNull java.util.List hiddenSubInterfaces() { + return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.Constructors.class, "hiddenSubInterfaces", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.compliance.IPublicInterface.class)))); } /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.PublicClass makeClass() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, "makeClass", software.amazon.jsii.tests.calculator.PublicClass.class); + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.PublicClass makeClass() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.Constructors.class, "makeClass", software.amazon.jsii.tests.calculator.compliance.PublicClass.class); } /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IPublicInterface makeInterface() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, "makeInterface", software.amazon.jsii.tests.calculator.IPublicInterface.class); + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IPublicInterface makeInterface() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.Constructors.class, "makeInterface", software.amazon.jsii.tests.calculator.compliance.IPublicInterface.class); } /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IPublicInterface2 makeInterface2() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, "makeInterface2", software.amazon.jsii.tests.calculator.IPublicInterface2.class); + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IPublicInterface2 makeInterface2() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.Constructors.class, "makeInterface2", software.amazon.jsii.tests.calculator.compliance.IPublicInterface2.class); } /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.util.List makeInterfaces() { - return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, "makeInterfaces", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.IPublicInterface.class)))); + public static @org.jetbrains.annotations.NotNull java.util.List makeInterfaces() { + return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.Constructors.class, "makeInterfaces", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.compliance.IPublicInterface.class)))); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConsumePureInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ConsumePureInterface.java similarity index 80% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConsumePureInterface.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ConsumePureInterface.java index 10ee1b8178..d967986f83 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConsumePureInterface.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ConsumePureInterface.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ConsumePureInterface") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ConsumePureInterface") public class ConsumePureInterface extends software.amazon.jsii.JsiiObject { protected ConsumePureInterface(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -22,7 +22,7 @@ protected ConsumePureInterface(final software.amazon.jsii.JsiiObject.Initializat * @param delegate This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public ConsumePureInterface(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IStructReturningDelegate delegate) { + public ConsumePureInterface(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IStructReturningDelegate delegate) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(delegate, "delegate is required") }); } @@ -31,7 +31,7 @@ public ConsumePureInterface(final @org.jetbrains.annotations.NotNull software.am * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StructB workItBaby() { - return this.jsiiCall("workItBaby", software.amazon.jsii.tests.calculator.StructB.class); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.StructB workItBaby() { + return this.jsiiCall("workItBaby", software.amazon.jsii.tests.calculator.compliance.StructB.class); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConsumerCanRingBell.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ConsumerCanRingBell.java similarity index 77% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConsumerCanRingBell.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ConsumerCanRingBell.java index cd44105f27..d784b66701 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConsumerCanRingBell.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ConsumerCanRingBell.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * Test calling back to consumers that implement interfaces. @@ -10,7 +10,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ConsumerCanRingBell") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ConsumerCanRingBell") public class ConsumerCanRingBell extends software.amazon.jsii.JsiiObject { protected ConsumerCanRingBell(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -36,8 +36,8 @@ public ConsumerCanRingBell() { * @param ringer This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.lang.Boolean staticImplementedByObjectLiteral(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBellRinger ringer) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ConsumerCanRingBell.class, "staticImplementedByObjectLiteral", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); + public static @org.jetbrains.annotations.NotNull java.lang.Boolean staticImplementedByObjectLiteral(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IBellRinger ringer) { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.ConsumerCanRingBell.class, "staticImplementedByObjectLiteral", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); } /** @@ -50,8 +50,8 @@ public ConsumerCanRingBell() { * @param ringer This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.lang.Boolean staticImplementedByPrivateClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBellRinger ringer) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ConsumerCanRingBell.class, "staticImplementedByPrivateClass", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); + public static @org.jetbrains.annotations.NotNull java.lang.Boolean staticImplementedByPrivateClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IBellRinger ringer) { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.ConsumerCanRingBell.class, "staticImplementedByPrivateClass", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); } /** @@ -64,8 +64,8 @@ public ConsumerCanRingBell() { * @param ringer This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.lang.Boolean staticImplementedByPublicClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBellRinger ringer) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ConsumerCanRingBell.class, "staticImplementedByPublicClass", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); + public static @org.jetbrains.annotations.NotNull java.lang.Boolean staticImplementedByPublicClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IBellRinger ringer) { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.ConsumerCanRingBell.class, "staticImplementedByPublicClass", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); } /** @@ -78,8 +78,8 @@ public ConsumerCanRingBell() { * @param ringer This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.lang.Boolean staticWhenTypedAsClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IConcreteBellRinger ringer) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ConsumerCanRingBell.class, "staticWhenTypedAsClass", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); + public static @org.jetbrains.annotations.NotNull java.lang.Boolean staticWhenTypedAsClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IConcreteBellRinger ringer) { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.ConsumerCanRingBell.class, "staticWhenTypedAsClass", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); } /** @@ -92,7 +92,7 @@ public ConsumerCanRingBell() { * @param ringer This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Boolean implementedByObjectLiteral(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBellRinger ringer) { + public @org.jetbrains.annotations.NotNull java.lang.Boolean implementedByObjectLiteral(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IBellRinger ringer) { return this.jsiiCall("implementedByObjectLiteral", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); } @@ -106,7 +106,7 @@ public ConsumerCanRingBell() { * @param ringer This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Boolean implementedByPrivateClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBellRinger ringer) { + public @org.jetbrains.annotations.NotNull java.lang.Boolean implementedByPrivateClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IBellRinger ringer) { return this.jsiiCall("implementedByPrivateClass", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); } @@ -120,7 +120,7 @@ public ConsumerCanRingBell() { * @param ringer This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Boolean implementedByPublicClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBellRinger ringer) { + public @org.jetbrains.annotations.NotNull java.lang.Boolean implementedByPublicClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IBellRinger ringer) { return this.jsiiCall("implementedByPublicClass", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); } @@ -134,7 +134,7 @@ public ConsumerCanRingBell() { * @param ringer This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Boolean whenTypedAsClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IConcreteBellRinger ringer) { + public @org.jetbrains.annotations.NotNull java.lang.Boolean whenTypedAsClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IConcreteBellRinger ringer) { return this.jsiiCall("whenTypedAsClass", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConsumersOfThisCrazyTypeSystem.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ConsumersOfThisCrazyTypeSystem.java similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConsumersOfThisCrazyTypeSystem.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ConsumersOfThisCrazyTypeSystem.java index b3e29f27df..f141e85b1f 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConsumersOfThisCrazyTypeSystem.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ConsumersOfThisCrazyTypeSystem.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ConsumersOfThisCrazyTypeSystem") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ConsumersOfThisCrazyTypeSystem") public class ConsumersOfThisCrazyTypeSystem extends software.amazon.jsii.JsiiObject { protected ConsumersOfThisCrazyTypeSystem(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -27,7 +27,7 @@ public ConsumersOfThisCrazyTypeSystem() { * @param obj This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String consumeAnotherPublicInterface(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IAnotherPublicInterface obj) { + public @org.jetbrains.annotations.NotNull java.lang.String consumeAnotherPublicInterface(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IAnotherPublicInterface obj) { return this.jsiiCall("consumeAnotherPublicInterface", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(obj, "obj is required") }); } @@ -37,7 +37,7 @@ public ConsumersOfThisCrazyTypeSystem() { * @param obj This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Object consumeNonInternalInterface(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.INonInternalInterface obj) { + public @org.jetbrains.annotations.NotNull java.lang.Object consumeNonInternalInterface(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.INonInternalInterface obj) { return this.jsiiCall("consumeNonInternalInterface", java.lang.Object.class, new Object[] { java.util.Objects.requireNonNull(obj, "obj is required") }); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DataRenderer.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DataRenderer.java similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DataRenderer.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DataRenderer.java index abcb865f83..af046024e4 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DataRenderer.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DataRenderer.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * Verifies proper type handling through dynamic overrides. @@ -7,7 +7,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DataRenderer") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.DataRenderer") public class DataRenderer extends software.amazon.jsii.JsiiObject { protected DataRenderer(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DefaultedConstructorArgument.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DefaultedConstructorArgument.java similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DefaultedConstructorArgument.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DefaultedConstructorArgument.java index 804a6ff2e9..21e2f31be3 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DefaultedConstructorArgument.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DefaultedConstructorArgument.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DefaultedConstructorArgument") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.DefaultedConstructorArgument") public class DefaultedConstructorArgument extends software.amazon.jsii.JsiiObject { protected DefaultedConstructorArgument(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Demonstrate982.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Demonstrate982.java similarity index 74% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Demonstrate982.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Demonstrate982.java index 44d9540c2d..e99b540d32 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Demonstrate982.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Demonstrate982.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * 1. @@ -10,7 +10,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Demonstrate982") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.Demonstrate982") public class Demonstrate982 extends software.amazon.jsii.JsiiObject { protected Demonstrate982(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -36,8 +36,8 @@ public Demonstrate982() { * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.ChildStruct982 takeThis() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Demonstrate982.class, "takeThis", software.amazon.jsii.tests.calculator.ChildStruct982.class); + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.ChildStruct982 takeThis() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.Demonstrate982.class, "takeThis", software.amazon.jsii.tests.calculator.compliance.ChildStruct982.class); } /** @@ -46,7 +46,7 @@ public Demonstrate982() { * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.ParentStruct982 takeThisToo() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Demonstrate982.class, "takeThisToo", software.amazon.jsii.tests.calculator.ParentStruct982.class); + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.ParentStruct982 takeThisToo() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.Demonstrate982.class, "takeThisToo", software.amazon.jsii.tests.calculator.compliance.ParentStruct982.class); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DerivedStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DerivedStruct.java similarity index 93% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DerivedStruct.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DerivedStruct.java index 1ab89122ec..d33b29c2ac 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DerivedStruct.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DerivedStruct.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * A struct which derives from another struct. @@ -6,7 +6,7 @@ * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DerivedStruct") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.DerivedStruct") @software.amazon.jsii.Jsii.Proxy(DerivedStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface DerivedStruct extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.lib.MyFirstStruct { @@ -29,7 +29,7 @@ public interface DerivedStruct extends software.amazon.jsii.JsiiSerializable, so * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.DoubleTrouble getNonPrimitive(); + @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.DoubleTrouble getNonPrimitive(); /** * This is optional. @@ -71,7 +71,7 @@ static Builder builder() { public static final class Builder { private java.time.Instant anotherRequired; private java.lang.Boolean bool; - private software.amazon.jsii.tests.calculator.DoubleTrouble nonPrimitive; + private software.amazon.jsii.tests.calculator.compliance.DoubleTrouble nonPrimitive; private java.util.Map anotherOptional; private java.lang.Object optionalAny; private java.util.List optionalArray; @@ -107,7 +107,7 @@ public Builder bool(java.lang.Boolean bool) { * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder nonPrimitive(software.amazon.jsii.tests.calculator.DoubleTrouble nonPrimitive) { + public Builder nonPrimitive(software.amazon.jsii.tests.calculator.compliance.DoubleTrouble nonPrimitive) { this.nonPrimitive = nonPrimitive; return this; } @@ -199,7 +199,7 @@ public DerivedStruct build() { final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DerivedStruct { private final java.time.Instant anotherRequired; private final java.lang.Boolean bool; - private final software.amazon.jsii.tests.calculator.DoubleTrouble nonPrimitive; + private final software.amazon.jsii.tests.calculator.compliance.DoubleTrouble nonPrimitive; private final java.util.Map anotherOptional; private final java.lang.Object optionalAny; private final java.util.List optionalArray; @@ -215,7 +215,7 @@ final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements Derive super(objRef); this.anotherRequired = this.jsiiGet("anotherRequired", java.time.Instant.class); this.bool = this.jsiiGet("bool", java.lang.Boolean.class); - this.nonPrimitive = this.jsiiGet("nonPrimitive", software.amazon.jsii.tests.calculator.DoubleTrouble.class); + this.nonPrimitive = this.jsiiGet("nonPrimitive", software.amazon.jsii.tests.calculator.compliance.DoubleTrouble.class); this.anotherOptional = this.jsiiGet("anotherOptional", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.lib.Value.class))); this.optionalAny = this.jsiiGet("optionalAny", java.lang.Object.class); this.optionalArray = this.jsiiGet("optionalArray", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))); @@ -227,7 +227,7 @@ final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements Derive /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ - private Jsii$Proxy(final java.time.Instant anotherRequired, final java.lang.Boolean bool, final software.amazon.jsii.tests.calculator.DoubleTrouble nonPrimitive, final java.util.Map anotherOptional, final java.lang.Object optionalAny, final java.util.List optionalArray, final java.lang.Number anumber, final java.lang.String astring, final java.util.List firstOptional) { + private Jsii$Proxy(final java.time.Instant anotherRequired, final java.lang.Boolean bool, final software.amazon.jsii.tests.calculator.compliance.DoubleTrouble nonPrimitive, final java.util.Map anotherOptional, final java.lang.Object optionalAny, final java.util.List optionalArray, final java.lang.Number anumber, final java.lang.String astring, final java.util.List firstOptional) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.anotherRequired = java.util.Objects.requireNonNull(anotherRequired, "anotherRequired is required"); this.bool = java.util.Objects.requireNonNull(bool, "bool is required"); @@ -251,7 +251,7 @@ public java.lang.Boolean getBool() { } @Override - public software.amazon.jsii.tests.calculator.DoubleTrouble getNonPrimitive() { + public software.amazon.jsii.tests.calculator.compliance.DoubleTrouble getNonPrimitive() { return this.nonPrimitive; } @@ -309,7 +309,7 @@ public java.util.List getFirstOptional() { } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.DerivedStruct")); + struct.set("fqn", om.valueToTree("jsii-calc.compliance.DerivedStruct")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceBaseLevelStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DiamondInheritanceBaseLevelStruct.java similarity index 94% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceBaseLevelStruct.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DiamondInheritanceBaseLevelStruct.java index 97936c3ce7..9feffb86f8 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceBaseLevelStruct.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DiamondInheritanceBaseLevelStruct.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DiamondInheritanceBaseLevelStruct") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.DiamondInheritanceBaseLevelStruct") @software.amazon.jsii.Jsii.Proxy(DiamondInheritanceBaseLevelStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface DiamondInheritanceBaseLevelStruct extends software.amazon.jsii.JsiiSerializable { @@ -88,7 +88,7 @@ public java.lang.String getBaseLevelProperty() { data.set("baseLevelProperty", om.valueToTree(this.getBaseLevelProperty())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.DiamondInheritanceBaseLevelStruct")); + struct.set("fqn", om.valueToTree("jsii-calc.compliance.DiamondInheritanceBaseLevelStruct")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceFirstMidLevelStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DiamondInheritanceFirstMidLevelStruct.java similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceFirstMidLevelStruct.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DiamondInheritanceFirstMidLevelStruct.java index 4a1acc70e2..e0b9a0fb58 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceFirstMidLevelStruct.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DiamondInheritanceFirstMidLevelStruct.java @@ -1,13 +1,13 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DiamondInheritanceFirstMidLevelStruct") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.DiamondInheritanceFirstMidLevelStruct") @software.amazon.jsii.Jsii.Proxy(DiamondInheritanceFirstMidLevelStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface DiamondInheritanceFirstMidLevelStruct extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.DiamondInheritanceBaseLevelStruct { +public interface DiamondInheritanceFirstMidLevelStruct extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.compliance.DiamondInheritanceBaseLevelStruct { /** * EXPERIMENTAL @@ -109,7 +109,7 @@ public java.lang.String getBaseLevelProperty() { data.set("baseLevelProperty", om.valueToTree(this.getBaseLevelProperty())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.DiamondInheritanceFirstMidLevelStruct")); + struct.set("fqn", om.valueToTree("jsii-calc.compliance.DiamondInheritanceFirstMidLevelStruct")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceSecondMidLevelStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DiamondInheritanceSecondMidLevelStruct.java similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceSecondMidLevelStruct.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DiamondInheritanceSecondMidLevelStruct.java index a68ed28bcc..e9f5cb092e 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceSecondMidLevelStruct.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DiamondInheritanceSecondMidLevelStruct.java @@ -1,13 +1,13 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DiamondInheritanceSecondMidLevelStruct") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.DiamondInheritanceSecondMidLevelStruct") @software.amazon.jsii.Jsii.Proxy(DiamondInheritanceSecondMidLevelStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface DiamondInheritanceSecondMidLevelStruct extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.DiamondInheritanceBaseLevelStruct { +public interface DiamondInheritanceSecondMidLevelStruct extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.compliance.DiamondInheritanceBaseLevelStruct { /** * EXPERIMENTAL @@ -109,7 +109,7 @@ public java.lang.String getBaseLevelProperty() { data.set("baseLevelProperty", om.valueToTree(this.getBaseLevelProperty())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.DiamondInheritanceSecondMidLevelStruct")); + struct.set("fqn", om.valueToTree("jsii-calc.compliance.DiamondInheritanceSecondMidLevelStruct")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceTopLevelStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DiamondInheritanceTopLevelStruct.java similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceTopLevelStruct.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DiamondInheritanceTopLevelStruct.java index f9ca6d4863..1d0779a6d0 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceTopLevelStruct.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DiamondInheritanceTopLevelStruct.java @@ -1,13 +1,13 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DiamondInheritanceTopLevelStruct") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.DiamondInheritanceTopLevelStruct") @software.amazon.jsii.Jsii.Proxy(DiamondInheritanceTopLevelStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface DiamondInheritanceTopLevelStruct extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.DiamondInheritanceFirstMidLevelStruct, software.amazon.jsii.tests.calculator.DiamondInheritanceSecondMidLevelStruct { +public interface DiamondInheritanceTopLevelStruct extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.compliance.DiamondInheritanceFirstMidLevelStruct, software.amazon.jsii.tests.calculator.compliance.DiamondInheritanceSecondMidLevelStruct { /** * EXPERIMENTAL @@ -151,7 +151,7 @@ public java.lang.String getSecondMidLevelProperty() { data.set("secondMidLevelProperty", om.valueToTree(this.getSecondMidLevelProperty())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.DiamondInheritanceTopLevelStruct")); + struct.set("fqn", om.valueToTree("jsii-calc.compliance.DiamondInheritanceTopLevelStruct")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DisappointingCollectionSource.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DisappointingCollectionSource.java similarity index 70% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DisappointingCollectionSource.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DisappointingCollectionSource.java index cd8437b7cd..34279b9b83 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DisappointingCollectionSource.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DisappointingCollectionSource.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * Verifies that null/undefined can be returned for optional collections. @@ -9,7 +9,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DisappointingCollectionSource") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.DisappointingCollectionSource") public class DisappointingCollectionSource extends software.amazon.jsii.JsiiObject { protected DisappointingCollectionSource(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -21,8 +21,8 @@ protected DisappointingCollectionSource(final software.amazon.jsii.JsiiObject.In } static { - MAYBE_LIST = java.util.Optional.ofNullable((java.util.List)(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.DisappointingCollectionSource.class, "maybeList", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))))).map(java.util.Collections::unmodifiableList).orElse(null); - MAYBE_MAP = java.util.Optional.ofNullable((java.util.Map)(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.DisappointingCollectionSource.class, "maybeMap", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Number.class))))).map(java.util.Collections::unmodifiableMap).orElse(null); + MAYBE_LIST = java.util.Optional.ofNullable((java.util.List)(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.compliance.DisappointingCollectionSource.class, "maybeList", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))))).map(java.util.Collections::unmodifiableList).orElse(null); + MAYBE_MAP = java.util.Optional.ofNullable((java.util.Map)(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.compliance.DisappointingCollectionSource.class, "maybeMap", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Number.class))))).map(java.util.Collections::unmodifiableMap).orElse(null); } /** diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DoNotOverridePrivates.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DoNotOverridePrivates.java similarity index 93% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DoNotOverridePrivates.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DoNotOverridePrivates.java index a75a7ce0f7..3c70d179df 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DoNotOverridePrivates.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DoNotOverridePrivates.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DoNotOverridePrivates") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.DoNotOverridePrivates") public class DoNotOverridePrivates extends software.amazon.jsii.JsiiObject { protected DoNotOverridePrivates(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DoNotRecognizeAnyAsOptional.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DoNotRecognizeAnyAsOptional.java similarity index 94% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DoNotRecognizeAnyAsOptional.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DoNotRecognizeAnyAsOptional.java index f2e9e59f05..32251548a8 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DoNotRecognizeAnyAsOptional.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DoNotRecognizeAnyAsOptional.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * jsii#284: do not recognize "any" as an optional argument. @@ -7,7 +7,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DoNotRecognizeAnyAsOptional") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.DoNotRecognizeAnyAsOptional") public class DoNotRecognizeAnyAsOptional extends software.amazon.jsii.JsiiObject { protected DoNotRecognizeAnyAsOptional(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DontComplainAboutVariadicAfterOptional.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DontComplainAboutVariadicAfterOptional.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DontComplainAboutVariadicAfterOptional.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DontComplainAboutVariadicAfterOptional.java index 981ccf313b..97cc1918b9 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DontComplainAboutVariadicAfterOptional.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DontComplainAboutVariadicAfterOptional.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DontComplainAboutVariadicAfterOptional") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.DontComplainAboutVariadicAfterOptional") public class DontComplainAboutVariadicAfterOptional extends software.amazon.jsii.JsiiObject { protected DontComplainAboutVariadicAfterOptional(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DoubleTrouble.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DoubleTrouble.java similarity index 91% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DoubleTrouble.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DoubleTrouble.java index 3c3b16d8cc..152813686e 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DoubleTrouble.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DoubleTrouble.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DoubleTrouble") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.DoubleTrouble") public class DoubleTrouble extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IFriendlyRandomGenerator { protected DoubleTrouble(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/EnumDispenser.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/EnumDispenser.java similarity index 63% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/EnumDispenser.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/EnumDispenser.java index 77f137eb25..af887af311 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/EnumDispenser.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/EnumDispenser.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.EnumDispenser") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.EnumDispenser") public class EnumDispenser extends software.amazon.jsii.JsiiObject { protected EnumDispenser(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -20,15 +20,15 @@ protected EnumDispenser(final software.amazon.jsii.JsiiObject.InitializationMode * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.AllTypesEnum randomIntegerLikeEnum() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.EnumDispenser.class, "randomIntegerLikeEnum", software.amazon.jsii.tests.calculator.AllTypesEnum.class); + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.AllTypesEnum randomIntegerLikeEnum() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.EnumDispenser.class, "randomIntegerLikeEnum", software.amazon.jsii.tests.calculator.compliance.AllTypesEnum.class); } /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StringEnum randomStringLikeEnum() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.EnumDispenser.class, "randomStringLikeEnum", software.amazon.jsii.tests.calculator.StringEnum.class); + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.StringEnum randomStringLikeEnum() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.EnumDispenser.class, "randomStringLikeEnum", software.amazon.jsii.tests.calculator.compliance.StringEnum.class); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/EraseUndefinedHashValues.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/EraseUndefinedHashValues.java similarity index 71% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/EraseUndefinedHashValues.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/EraseUndefinedHashValues.java index 84ead405b7..503e75f74e 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/EraseUndefinedHashValues.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/EraseUndefinedHashValues.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.EraseUndefinedHashValues") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.EraseUndefinedHashValues") public class EraseUndefinedHashValues extends software.amazon.jsii.JsiiObject { protected EraseUndefinedHashValues(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -33,8 +33,8 @@ public EraseUndefinedHashValues() { * @param key This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.lang.Boolean doesKeyExist(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.EraseUndefinedHashValuesOptions opts, final @org.jetbrains.annotations.NotNull java.lang.String key) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.EraseUndefinedHashValues.class, "doesKeyExist", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(opts, "opts is required"), java.util.Objects.requireNonNull(key, "key is required") }); + public static @org.jetbrains.annotations.NotNull java.lang.Boolean doesKeyExist(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.EraseUndefinedHashValuesOptions opts, final @org.jetbrains.annotations.NotNull java.lang.String key) { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.EraseUndefinedHashValues.class, "doesKeyExist", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(opts, "opts is required"), java.util.Objects.requireNonNull(key, "key is required") }); } /** @@ -44,7 +44,7 @@ public EraseUndefinedHashValues() { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.util.Map prop1IsNull() { - return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.EraseUndefinedHashValues.class, "prop1IsNull", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); + return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.EraseUndefinedHashValues.class, "prop1IsNull", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); } /** @@ -54,6 +54,6 @@ public EraseUndefinedHashValues() { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.util.Map prop2IsUndefined() { - return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.EraseUndefinedHashValues.class, "prop2IsUndefined", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); + return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.EraseUndefinedHashValues.class, "prop2IsUndefined", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/EraseUndefinedHashValuesOptions.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/EraseUndefinedHashValuesOptions.java similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/EraseUndefinedHashValuesOptions.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/EraseUndefinedHashValuesOptions.java index 8a395ffb82..3a07e88a8e 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/EraseUndefinedHashValuesOptions.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/EraseUndefinedHashValuesOptions.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.EraseUndefinedHashValuesOptions") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.EraseUndefinedHashValuesOptions") @software.amazon.jsii.Jsii.Proxy(EraseUndefinedHashValuesOptions.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface EraseUndefinedHashValuesOptions extends software.amazon.jsii.JsiiSerializable { @@ -123,7 +123,7 @@ public java.lang.String getOption2() { } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.EraseUndefinedHashValuesOptions")); + struct.set("fqn", om.valueToTree("jsii-calc.compliance.EraseUndefinedHashValuesOptions")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExportedBaseClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ExportedBaseClass.java similarity index 91% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExportedBaseClass.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ExportedBaseClass.java index aa3ab4a33b..e2f790c3dd 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExportedBaseClass.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ExportedBaseClass.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ExportedBaseClass") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ExportedBaseClass") public class ExportedBaseClass extends software.amazon.jsii.JsiiObject { protected ExportedBaseClass(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExtendsInternalInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ExtendsInternalInterface.java similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExtendsInternalInterface.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ExtendsInternalInterface.java index 0534d07a37..870d66631c 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExtendsInternalInterface.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ExtendsInternalInterface.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ExtendsInternalInterface") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ExtendsInternalInterface") @software.amazon.jsii.Jsii.Proxy(ExtendsInternalInterface.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface ExtendsInternalInterface extends software.amazon.jsii.JsiiSerializable { @@ -115,7 +115,7 @@ public java.lang.String getProp() { data.set("prop", om.valueToTree(this.getProp())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.ExtendsInternalInterface")); + struct.set("fqn", om.valueToTree("jsii-calc.compliance.ExtendsInternalInterface")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/GiveMeStructs.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/GiveMeStructs.java similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/GiveMeStructs.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/GiveMeStructs.java index 8284547a08..4371eba987 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/GiveMeStructs.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/GiveMeStructs.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.GiveMeStructs") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.GiveMeStructs") public class GiveMeStructs extends software.amazon.jsii.JsiiObject { protected GiveMeStructs(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -29,7 +29,7 @@ public GiveMeStructs() { * @param derived This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.MyFirstStruct derivedToFirst(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.DerivedStruct derived) { + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.MyFirstStruct derivedToFirst(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.DerivedStruct derived) { return this.jsiiCall("derivedToFirst", software.amazon.jsii.tests.calculator.lib.MyFirstStruct.class, new Object[] { java.util.Objects.requireNonNull(derived, "derived is required") }); } @@ -41,8 +41,8 @@ public GiveMeStructs() { * @param derived This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.DoubleTrouble readDerivedNonPrimitive(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.DerivedStruct derived) { - return this.jsiiCall("readDerivedNonPrimitive", software.amazon.jsii.tests.calculator.DoubleTrouble.class, new Object[] { java.util.Objects.requireNonNull(derived, "derived is required") }); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.DoubleTrouble readDerivedNonPrimitive(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.DerivedStruct derived) { + return this.jsiiCall("readDerivedNonPrimitive", software.amazon.jsii.tests.calculator.compliance.DoubleTrouble.class, new Object[] { java.util.Objects.requireNonNull(derived, "derived is required") }); } /** diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/GreetingAugmenter.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/GreetingAugmenter.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/GreetingAugmenter.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/GreetingAugmenter.java index e98a50372b..adf820a89c 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/GreetingAugmenter.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/GreetingAugmenter.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.GreetingAugmenter") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.GreetingAugmenter") public class GreetingAugmenter extends software.amazon.jsii.JsiiObject { protected GreetingAugmenter(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IAnonymousImplementationProvider.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IAnonymousImplementationProvider.java similarity index 72% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IAnonymousImplementationProvider.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IAnonymousImplementationProvider.java index 56ded56652..f7a63db06d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IAnonymousImplementationProvider.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IAnonymousImplementationProvider.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * We can return an anonymous interface implementation from an override without losing the interface declarations. @@ -6,7 +6,7 @@ * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IAnonymousImplementationProvider") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IAnonymousImplementationProvider") @software.amazon.jsii.Jsii.Proxy(IAnonymousImplementationProvider.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IAnonymousImplementationProvider extends software.amazon.jsii.JsiiSerializable { @@ -15,18 +15,18 @@ public interface IAnonymousImplementationProvider extends software.amazon.jsii.J * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Implementation provideAsClass(); + @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.Implementation provideAsClass(); /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IAnonymouslyImplementMe provideAsInterface(); + @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IAnonymouslyImplementMe provideAsInterface(); /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IAnonymousImplementationProvider { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IAnonymousImplementationProvider { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } @@ -36,8 +36,8 @@ final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Implementation provideAsClass() { - return this.jsiiCall("provideAsClass", software.amazon.jsii.tests.calculator.Implementation.class); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.Implementation provideAsClass() { + return this.jsiiCall("provideAsClass", software.amazon.jsii.tests.calculator.compliance.Implementation.class); } /** @@ -45,8 +45,8 @@ final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IAnonymouslyImplementMe provideAsInterface() { - return this.jsiiCall("provideAsInterface", software.amazon.jsii.tests.calculator.IAnonymouslyImplementMe.class); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IAnonymouslyImplementMe provideAsInterface() { + return this.jsiiCall("provideAsInterface", software.amazon.jsii.tests.calculator.compliance.IAnonymouslyImplementMe.class); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IAnonymouslyImplementMe.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IAnonymouslyImplementMe.java similarity index 87% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IAnonymouslyImplementMe.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IAnonymouslyImplementMe.java index 06a8760603..f085e0c1ac 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IAnonymouslyImplementMe.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IAnonymouslyImplementMe.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IAnonymouslyImplementMe") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IAnonymouslyImplementMe") @software.amazon.jsii.Jsii.Proxy(IAnonymouslyImplementMe.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IAnonymouslyImplementMe extends software.amazon.jsii.JsiiSerializable { @@ -24,7 +24,7 @@ public interface IAnonymouslyImplementMe extends software.amazon.jsii.JsiiSerial /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IAnonymouslyImplementMe { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IAnonymouslyImplementMe { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IAnotherPublicInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IAnotherPublicInterface.java similarity index 87% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IAnotherPublicInterface.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IAnotherPublicInterface.java index 24df9c1f7e..d1e0c2cdfd 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IAnotherPublicInterface.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IAnotherPublicInterface.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IAnotherPublicInterface") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IAnotherPublicInterface") @software.amazon.jsii.Jsii.Proxy(IAnotherPublicInterface.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IAnotherPublicInterface extends software.amazon.jsii.JsiiSerializable { @@ -23,7 +23,7 @@ public interface IAnotherPublicInterface extends software.amazon.jsii.JsiiSerial /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IAnotherPublicInterface { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IAnotherPublicInterface { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IBell.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IBell.java similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IBell.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IBell.java index f393b3b3d9..4d6dee601f 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IBell.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IBell.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IBell") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IBell") @software.amazon.jsii.Jsii.Proxy(IBell.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IBell extends software.amazon.jsii.JsiiSerializable { @@ -18,7 +18,7 @@ public interface IBell extends software.amazon.jsii.JsiiSerializable { /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IBell { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IBell { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IBellRinger.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IBellRinger.java similarity index 80% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IBellRinger.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IBellRinger.java index 2e022ab157..ff104d4fef 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IBellRinger.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IBellRinger.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * Takes the object parameter as an interface. @@ -6,7 +6,7 @@ * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IBellRinger") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IBellRinger") @software.amazon.jsii.Jsii.Proxy(IBellRinger.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IBellRinger extends software.amazon.jsii.JsiiSerializable { @@ -17,12 +17,12 @@ public interface IBellRinger extends software.amazon.jsii.JsiiSerializable { * @param bell This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - void yourTurn(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBell bell); + void yourTurn(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IBell bell); /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IBellRinger { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IBellRinger { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } @@ -34,7 +34,7 @@ final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override - public void yourTurn(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBell bell) { + public void yourTurn(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IBell bell) { this.jsiiCall("yourTurn", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(bell, "bell is required") }); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IConcreteBellRinger.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IConcreteBellRinger.java similarity index 80% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IConcreteBellRinger.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IConcreteBellRinger.java index 33f277235c..350de59b54 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IConcreteBellRinger.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IConcreteBellRinger.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * Takes the object parameter as a calss. @@ -6,7 +6,7 @@ * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IConcreteBellRinger") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IConcreteBellRinger") @software.amazon.jsii.Jsii.Proxy(IConcreteBellRinger.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IConcreteBellRinger extends software.amazon.jsii.JsiiSerializable { @@ -17,12 +17,12 @@ public interface IConcreteBellRinger extends software.amazon.jsii.JsiiSerializab * @param bell This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - void yourTurn(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Bell bell); + void yourTurn(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.Bell bell); /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IConcreteBellRinger { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IConcreteBellRinger { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } @@ -34,7 +34,7 @@ final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override - public void yourTurn(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Bell bell) { + public void yourTurn(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.Bell bell) { this.jsiiCall("yourTurn", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(bell, "bell is required") }); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IExtendsPrivateInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IExtendsPrivateInterface.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IExtendsPrivateInterface.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IExtendsPrivateInterface.java index f42620283e..5909a1e3a5 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IExtendsPrivateInterface.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IExtendsPrivateInterface.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IExtendsPrivateInterface") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IExtendsPrivateInterface") @software.amazon.jsii.Jsii.Proxy(IExtendsPrivateInterface.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IExtendsPrivateInterface extends software.amazon.jsii.JsiiSerializable { @@ -29,7 +29,7 @@ public interface IExtendsPrivateInterface extends software.amazon.jsii.JsiiSeria /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IExtendsPrivateInterface { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IExtendsPrivateInterface { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceImplementedByAbstractClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceImplementedByAbstractClass.java similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceImplementedByAbstractClass.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceImplementedByAbstractClass.java index d1694f02e4..2b95d6c0dd 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceImplementedByAbstractClass.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceImplementedByAbstractClass.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * awslabs/jsii#220 Abstract return type. @@ -6,7 +6,7 @@ * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IInterfaceImplementedByAbstractClass") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IInterfaceImplementedByAbstractClass") @software.amazon.jsii.Jsii.Proxy(IInterfaceImplementedByAbstractClass.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IInterfaceImplementedByAbstractClass extends software.amazon.jsii.JsiiSerializable { @@ -20,7 +20,7 @@ public interface IInterfaceImplementedByAbstractClass extends software.amazon.js /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceImplementedByAbstractClass { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IInterfaceImplementedByAbstractClass { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceThatShouldNotBeADataType.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceThatShouldNotBeADataType.java similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceThatShouldNotBeADataType.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceThatShouldNotBeADataType.java index 2ea770a360..fbec41149f 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceThatShouldNotBeADataType.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceThatShouldNotBeADataType.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype. @@ -6,10 +6,10 @@ * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IInterfaceThatShouldNotBeADataType") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IInterfaceThatShouldNotBeADataType") @software.amazon.jsii.Jsii.Proxy(IInterfaceThatShouldNotBeADataType.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IInterfaceThatShouldNotBeADataType extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.IInterfaceWithMethods { +public interface IInterfaceThatShouldNotBeADataType extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.compliance.IInterfaceWithMethods { /** * EXPERIMENTAL @@ -20,7 +20,7 @@ public interface IInterfaceThatShouldNotBeADataType extends software.amazon.jsii /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceThatShouldNotBeADataType { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IInterfaceThatShouldNotBeADataType { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithInternal.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceWithInternal.java similarity index 82% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithInternal.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceWithInternal.java index 9c94f424f3..839756fc25 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithInternal.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceWithInternal.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IInterfaceWithInternal") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IInterfaceWithInternal") @software.amazon.jsii.Jsii.Proxy(IInterfaceWithInternal.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IInterfaceWithInternal extends software.amazon.jsii.JsiiSerializable { @@ -18,7 +18,7 @@ public interface IInterfaceWithInternal extends software.amazon.jsii.JsiiSeriali /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceWithInternal { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IInterfaceWithInternal { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithMethods.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceWithMethods.java similarity index 87% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithMethods.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceWithMethods.java index a06c61e818..adcac21a1d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithMethods.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceWithMethods.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IInterfaceWithMethods") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IInterfaceWithMethods") @software.amazon.jsii.Jsii.Proxy(IInterfaceWithMethods.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IInterfaceWithMethods extends software.amazon.jsii.JsiiSerializable { @@ -24,7 +24,7 @@ public interface IInterfaceWithMethods extends software.amazon.jsii.JsiiSerializ /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceWithMethods { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IInterfaceWithMethods { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithOptionalMethodArguments.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceWithOptionalMethodArguments.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithOptionalMethodArguments.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceWithOptionalMethodArguments.java index 9df417e6e1..92dbd75af9 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithOptionalMethodArguments.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceWithOptionalMethodArguments.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods. @@ -6,7 +6,7 @@ * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IInterfaceWithOptionalMethodArguments") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IInterfaceWithOptionalMethodArguments") @software.amazon.jsii.Jsii.Proxy(IInterfaceWithOptionalMethodArguments.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IInterfaceWithOptionalMethodArguments extends software.amazon.jsii.JsiiSerializable { @@ -31,7 +31,7 @@ public interface IInterfaceWithOptionalMethodArguments extends software.amazon.j /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceWithOptionalMethodArguments { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IInterfaceWithOptionalMethodArguments { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithProperties.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceWithProperties.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithProperties.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceWithProperties.java index b076c29f7d..2e40c332bc 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithProperties.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceWithProperties.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IInterfaceWithProperties") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IInterfaceWithProperties") @software.amazon.jsii.Jsii.Proxy(IInterfaceWithProperties.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IInterfaceWithProperties extends software.amazon.jsii.JsiiSerializable { @@ -29,7 +29,7 @@ public interface IInterfaceWithProperties extends software.amazon.jsii.JsiiSeria /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceWithProperties { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IInterfaceWithProperties { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithPropertiesExtension.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceWithPropertiesExtension.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithPropertiesExtension.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceWithPropertiesExtension.java index 77a23479f5..a52f3017c4 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithPropertiesExtension.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceWithPropertiesExtension.java @@ -1,13 +1,13 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IInterfaceWithPropertiesExtension") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IInterfaceWithPropertiesExtension") @software.amazon.jsii.Jsii.Proxy(IInterfaceWithPropertiesExtension.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IInterfaceWithPropertiesExtension extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.IInterfaceWithProperties { +public interface IInterfaceWithPropertiesExtension extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.compliance.IInterfaceWithProperties { /** * EXPERIMENTAL @@ -23,7 +23,7 @@ public interface IInterfaceWithPropertiesExtension extends software.amazon.jsii. /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceWithPropertiesExtension { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IInterfaceWithPropertiesExtension { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IMutableObjectLiteral.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IMutableObjectLiteral.java similarity index 87% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IMutableObjectLiteral.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IMutableObjectLiteral.java index c586b60c1a..26f2d3d6c0 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IMutableObjectLiteral.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IMutableObjectLiteral.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IMutableObjectLiteral") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IMutableObjectLiteral") @software.amazon.jsii.Jsii.Proxy(IMutableObjectLiteral.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IMutableObjectLiteral extends software.amazon.jsii.JsiiSerializable { @@ -23,7 +23,7 @@ public interface IMutableObjectLiteral extends software.amazon.jsii.JsiiSerializ /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IMutableObjectLiteral { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IMutableObjectLiteral { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/INonInternalInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/INonInternalInterface.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/INonInternalInterface.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/INonInternalInterface.java index 0eeeddc90b..1342e24e7c 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/INonInternalInterface.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/INonInternalInterface.java @@ -1,13 +1,13 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.INonInternalInterface") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.INonInternalInterface") @software.amazon.jsii.Jsii.Proxy(INonInternalInterface.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface INonInternalInterface extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.IAnotherPublicInterface { +public interface INonInternalInterface extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.compliance.IAnotherPublicInterface { /** * EXPERIMENTAL @@ -34,7 +34,7 @@ public interface INonInternalInterface extends software.amazon.jsii.JsiiSerializ /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.INonInternalInterface { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.INonInternalInterface { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IObjectWithProperty.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IObjectWithProperty.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IObjectWithProperty.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IObjectWithProperty.java index 52858a88d7..71b289afc5 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IObjectWithProperty.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IObjectWithProperty.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * Make sure that setters are properly called on objects with interfaces. @@ -6,7 +6,7 @@ * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IObjectWithProperty") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IObjectWithProperty") @software.amazon.jsii.Jsii.Proxy(IObjectWithProperty.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IObjectWithProperty extends software.amazon.jsii.JsiiSerializable { @@ -31,7 +31,7 @@ public interface IObjectWithProperty extends software.amazon.jsii.JsiiSerializab /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IObjectWithProperty { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IObjectWithProperty { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IOptionalMethod.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IOptionalMethod.java similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IOptionalMethod.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IOptionalMethod.java index f84d3541fb..df2901bba8 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IOptionalMethod.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IOptionalMethod.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * Checks that optional result from interface method code generates correctly. @@ -6,7 +6,7 @@ * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IOptionalMethod") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IOptionalMethod") @software.amazon.jsii.Jsii.Proxy(IOptionalMethod.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IOptionalMethod extends software.amazon.jsii.JsiiSerializable { @@ -20,7 +20,7 @@ public interface IOptionalMethod extends software.amazon.jsii.JsiiSerializable { /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IOptionalMethod { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IOptionalMethod { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IPrivatelyImplemented.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IPrivatelyImplemented.java similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IPrivatelyImplemented.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IPrivatelyImplemented.java index 05e1101d39..c96046aec6 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IPrivatelyImplemented.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IPrivatelyImplemented.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IPrivatelyImplemented") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IPrivatelyImplemented") @software.amazon.jsii.Jsii.Proxy(IPrivatelyImplemented.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IPrivatelyImplemented extends software.amazon.jsii.JsiiSerializable { @@ -18,7 +18,7 @@ public interface IPrivatelyImplemented extends software.amazon.jsii.JsiiSerializ /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IPrivatelyImplemented { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IPrivatelyImplemented { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IPublicInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IPublicInterface.java similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IPublicInterface.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IPublicInterface.java index adf477fa24..4244787df3 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IPublicInterface.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IPublicInterface.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IPublicInterface") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IPublicInterface") @software.amazon.jsii.Jsii.Proxy(IPublicInterface.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IPublicInterface extends software.amazon.jsii.JsiiSerializable { @@ -18,7 +18,7 @@ public interface IPublicInterface extends software.amazon.jsii.JsiiSerializable /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IPublicInterface { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IPublicInterface { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IPublicInterface2.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IPublicInterface2.java similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IPublicInterface2.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IPublicInterface2.java index a206803a86..f3259e7ef7 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IPublicInterface2.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IPublicInterface2.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IPublicInterface2") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IPublicInterface2") @software.amazon.jsii.Jsii.Proxy(IPublicInterface2.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IPublicInterface2 extends software.amazon.jsii.JsiiSerializable { @@ -18,7 +18,7 @@ public interface IPublicInterface2 extends software.amazon.jsii.JsiiSerializable /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IPublicInterface2 { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IPublicInterface2 { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IReturnJsii976.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IReturnJsii976.java similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IReturnJsii976.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IReturnJsii976.java index cebf6f3a30..8559b331f3 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IReturnJsii976.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IReturnJsii976.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * Returns a subclass of a known class which implements an interface. @@ -6,7 +6,7 @@ * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IReturnJsii976") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IReturnJsii976") @software.amazon.jsii.Jsii.Proxy(IReturnJsii976.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IReturnJsii976 extends software.amazon.jsii.JsiiSerializable { @@ -20,7 +20,7 @@ public interface IReturnJsii976 extends software.amazon.jsii.JsiiSerializable { /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IReturnJsii976 { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IReturnJsii976 { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IReturnsNumber.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IReturnsNumber.java similarity index 89% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IReturnsNumber.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IReturnsNumber.java index 0ed94b4e90..386e879ccf 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IReturnsNumber.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IReturnsNumber.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IReturnsNumber") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IReturnsNumber") @software.amazon.jsii.Jsii.Proxy(IReturnsNumber.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IReturnsNumber extends software.amazon.jsii.JsiiSerializable { @@ -24,7 +24,7 @@ public interface IReturnsNumber extends software.amazon.jsii.JsiiSerializable { /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IReturnsNumber { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IReturnsNumber { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IStructReturningDelegate.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IStructReturningDelegate.java similarity index 75% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IStructReturningDelegate.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IStructReturningDelegate.java index 9636fde34c..1b1ac4f489 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IStructReturningDelegate.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IStructReturningDelegate.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * Verifies that a "pure" implementation of an interface works correctly. @@ -6,7 +6,7 @@ * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IStructReturningDelegate") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IStructReturningDelegate") @software.amazon.jsii.Jsii.Proxy(IStructReturningDelegate.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IStructReturningDelegate extends software.amazon.jsii.JsiiSerializable { @@ -15,12 +15,12 @@ public interface IStructReturningDelegate extends software.amazon.jsii.JsiiSeria * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StructB returnStruct(); + @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.StructB returnStruct(); /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IStructReturningDelegate { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IStructReturningDelegate { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } @@ -30,8 +30,8 @@ final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StructB returnStruct() { - return this.jsiiCall("returnStruct", software.amazon.jsii.tests.calculator.StructB.class); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.StructB returnStruct() { + return this.jsiiCall("returnStruct", software.amazon.jsii.tests.calculator.compliance.StructB.class); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementInternalInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ImplementInternalInterface.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementInternalInterface.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ImplementInternalInterface.java index cff9447725..84965ecf75 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementInternalInterface.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ImplementInternalInterface.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ImplementInternalInterface") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ImplementInternalInterface") public class ImplementInternalInterface extends software.amazon.jsii.JsiiObject { protected ImplementInternalInterface(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Implementation.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Implementation.java similarity index 88% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Implementation.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Implementation.java index efcf61a699..5f3ec061c5 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Implementation.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Implementation.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Implementation") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.Implementation") public class Implementation extends software.amazon.jsii.JsiiObject { protected Implementation(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementsInterfaceWithInternal.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ImplementsInterfaceWithInternal.java similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementsInterfaceWithInternal.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ImplementsInterfaceWithInternal.java index 109cc2474c..25abd7565a 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementsInterfaceWithInternal.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ImplementsInterfaceWithInternal.java @@ -1,12 +1,12 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ImplementsInterfaceWithInternal") -public class ImplementsInterfaceWithInternal extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceWithInternal { +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ImplementsInterfaceWithInternal") +public class ImplementsInterfaceWithInternal extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IInterfaceWithInternal { protected ImplementsInterfaceWithInternal(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementsInterfaceWithInternalSubclass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ImplementsInterfaceWithInternalSubclass.java similarity index 77% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementsInterfaceWithInternalSubclass.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ImplementsInterfaceWithInternalSubclass.java index 10f483d926..8d5571b723 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementsInterfaceWithInternalSubclass.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ImplementsInterfaceWithInternalSubclass.java @@ -1,12 +1,12 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ImplementsInterfaceWithInternalSubclass") -public class ImplementsInterfaceWithInternalSubclass extends software.amazon.jsii.tests.calculator.ImplementsInterfaceWithInternal { +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ImplementsInterfaceWithInternalSubclass") +public class ImplementsInterfaceWithInternalSubclass extends software.amazon.jsii.tests.calculator.compliance.ImplementsInterfaceWithInternal { protected ImplementsInterfaceWithInternalSubclass(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementsPrivateInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ImplementsPrivateInterface.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementsPrivateInterface.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ImplementsPrivateInterface.java index 85c7b17af8..305d516788 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementsPrivateInterface.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ImplementsPrivateInterface.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ImplementsPrivateInterface") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ImplementsPrivateInterface") public class ImplementsPrivateInterface extends software.amazon.jsii.JsiiObject { protected ImplementsPrivateInterface(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplictBaseOfBase.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ImplictBaseOfBase.java similarity index 96% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplictBaseOfBase.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ImplictBaseOfBase.java index 68ba8b019f..15c5fb2a6c 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplictBaseOfBase.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ImplictBaseOfBase.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ImplictBaseOfBase") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ImplictBaseOfBase") @software.amazon.jsii.Jsii.Proxy(ImplictBaseOfBase.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface ImplictBaseOfBase extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.base.BaseProps { @@ -128,7 +128,7 @@ public software.amazon.jsii.tests.calculator.baseofbase.Very getFoo() { data.set("foo", om.valueToTree(this.getFoo())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.ImplictBaseOfBase")); + struct.set("fqn", om.valueToTree("jsii-calc.compliance.ImplictBaseOfBase")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InbetweenClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/InbetweenClass.java similarity index 80% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InbetweenClass.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/InbetweenClass.java index 5faf132294..0237e7caa1 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InbetweenClass.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/InbetweenClass.java @@ -1,12 +1,12 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.InbetweenClass") -public class InbetweenClass extends software.amazon.jsii.tests.calculator.PublicClass implements software.amazon.jsii.tests.calculator.IPublicInterface2 { +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.InbetweenClass") +public class InbetweenClass extends software.amazon.jsii.tests.calculator.compliance.PublicClass implements software.amazon.jsii.tests.calculator.compliance.IPublicInterface2 { protected InbetweenClass(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InterfaceCollections.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/InterfaceCollections.java similarity index 59% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InterfaceCollections.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/InterfaceCollections.java index 6eb438dc1e..a846652a8c 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InterfaceCollections.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/InterfaceCollections.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * Verifies that collections of interfaces or structs are correctly handled. @@ -9,7 +9,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.InterfaceCollections") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.InterfaceCollections") public class InterfaceCollections extends software.amazon.jsii.JsiiObject { protected InterfaceCollections(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -24,31 +24,31 @@ protected InterfaceCollections(final software.amazon.jsii.JsiiObject.Initializat * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.util.List listOfInterfaces() { - return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.InterfaceCollections.class, "listOfInterfaces", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.IBell.class)))); + public static @org.jetbrains.annotations.NotNull java.util.List listOfInterfaces() { + return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.InterfaceCollections.class, "listOfInterfaces", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.compliance.IBell.class)))); } /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.util.List listOfStructs() { - return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.InterfaceCollections.class, "listOfStructs", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.StructA.class)))); + public static @org.jetbrains.annotations.NotNull java.util.List listOfStructs() { + return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.InterfaceCollections.class, "listOfStructs", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.compliance.StructA.class)))); } /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.util.Map mapOfInterfaces() { - return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.InterfaceCollections.class, "mapOfInterfaces", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.IBell.class)))); + public static @org.jetbrains.annotations.NotNull java.util.Map mapOfInterfaces() { + return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.InterfaceCollections.class, "mapOfInterfaces", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.compliance.IBell.class)))); } /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.util.Map mapOfStructs() { - return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.InterfaceCollections.class, "mapOfStructs", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.StructA.class)))); + public static @org.jetbrains.annotations.NotNull java.util.Map mapOfStructs() { + return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.InterfaceCollections.class, "mapOfStructs", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.compliance.StructA.class)))); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InterfacesMaker.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/InterfacesMaker.java similarity index 73% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InterfacesMaker.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/InterfacesMaker.java index ce7235ff56..bc42613cd9 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InterfacesMaker.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/InterfacesMaker.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * We can return arrays of interfaces See aws/aws-cdk#2362. @@ -7,7 +7,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.InterfacesMaker") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.InterfacesMaker") public class InterfacesMaker extends software.amazon.jsii.JsiiObject { protected InterfacesMaker(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -25,6 +25,6 @@ protected InterfacesMaker(final software.amazon.jsii.JsiiObject.InitializationMo */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.util.List makeInterfaces(final @org.jetbrains.annotations.NotNull java.lang.Number count) { - return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.InterfacesMaker.class, "makeInterfaces", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.lib.IDoublable.class)), new Object[] { java.util.Objects.requireNonNull(count, "count is required") })); + return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.InterfacesMaker.class, "makeInterfaces", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.lib.IDoublable.class)), new Object[] { java.util.Objects.requireNonNull(count, "count is required") })); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSObjectLiteralForInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/JSObjectLiteralForInterface.java similarity index 91% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSObjectLiteralForInterface.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/JSObjectLiteralForInterface.java index f2668b54b7..74864b41b5 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSObjectLiteralForInterface.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/JSObjectLiteralForInterface.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.JSObjectLiteralForInterface") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.JSObjectLiteralForInterface") public class JSObjectLiteralForInterface extends software.amazon.jsii.JsiiObject { protected JSObjectLiteralForInterface(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSObjectLiteralToNative.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/JSObjectLiteralToNative.java similarity index 78% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSObjectLiteralToNative.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/JSObjectLiteralToNative.java index 065c6834e1..90507568bc 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSObjectLiteralToNative.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/JSObjectLiteralToNative.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.JSObjectLiteralToNative") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.JSObjectLiteralToNative") public class JSObjectLiteralToNative extends software.amazon.jsii.JsiiObject { protected JSObjectLiteralToNative(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -25,7 +25,7 @@ public JSObjectLiteralToNative() { * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.JSObjectLiteralToNativeClass returnLiteral() { - return this.jsiiCall("returnLiteral", software.amazon.jsii.tests.calculator.JSObjectLiteralToNativeClass.class); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.JSObjectLiteralToNativeClass returnLiteral() { + return this.jsiiCall("returnLiteral", software.amazon.jsii.tests.calculator.compliance.JSObjectLiteralToNativeClass.class); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSObjectLiteralToNativeClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/JSObjectLiteralToNativeClass.java similarity index 93% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSObjectLiteralToNativeClass.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/JSObjectLiteralToNativeClass.java index d6030d18b3..b9ef534a5b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSObjectLiteralToNativeClass.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/JSObjectLiteralToNativeClass.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.JSObjectLiteralToNativeClass") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.JSObjectLiteralToNativeClass") public class JSObjectLiteralToNativeClass extends software.amazon.jsii.JsiiObject { protected JSObjectLiteralToNativeClass(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JavaReservedWords.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/JavaReservedWords.java similarity index 99% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JavaReservedWords.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/JavaReservedWords.java index fbf2ae995a..77f6eb6c7d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JavaReservedWords.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/JavaReservedWords.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.JavaReservedWords") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.JavaReservedWords") public class JavaReservedWords extends software.amazon.jsii.JsiiObject { protected JavaReservedWords(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JsiiAgent.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/JsiiAgent.java similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JsiiAgent.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/JsiiAgent.java index cb76cd3a65..0ad5e7b46e 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JsiiAgent.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/JsiiAgent.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * Host runtime version should be set via JSII_AGENT. @@ -7,7 +7,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.JsiiAgent") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.JsiiAgent") public class JsiiAgent extends software.amazon.jsii.JsiiObject { protected JsiiAgent(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -30,6 +30,6 @@ public JsiiAgent() { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.Nullable java.lang.String getJsiiAgent() { - return software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.JsiiAgent.class, "jsiiAgent", java.lang.String.class); + return software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.compliance.JsiiAgent.class, "jsiiAgent", java.lang.String.class); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JsonFormatter.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/JsonFormatter.java similarity index 73% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JsonFormatter.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/JsonFormatter.java index cfebde74fa..7fc59c71b7 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JsonFormatter.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/JsonFormatter.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * Make sure structs are un-decorated on the way in. @@ -9,7 +9,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.JsonFormatter") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.JsonFormatter") public class JsonFormatter extends software.amazon.jsii.JsiiObject { protected JsonFormatter(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -25,7 +25,7 @@ protected JsonFormatter(final software.amazon.jsii.JsiiObject.InitializationMode */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyArray() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyArray", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.JsonFormatter.class, "anyArray", java.lang.Object.class); } /** @@ -33,7 +33,7 @@ protected JsonFormatter(final software.amazon.jsii.JsiiObject.InitializationMode */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyBooleanFalse() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyBooleanFalse", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.JsonFormatter.class, "anyBooleanFalse", java.lang.Object.class); } /** @@ -41,7 +41,7 @@ protected JsonFormatter(final software.amazon.jsii.JsiiObject.InitializationMode */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyBooleanTrue() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyBooleanTrue", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.JsonFormatter.class, "anyBooleanTrue", java.lang.Object.class); } /** @@ -49,7 +49,7 @@ protected JsonFormatter(final software.amazon.jsii.JsiiObject.InitializationMode */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyDate() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyDate", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.JsonFormatter.class, "anyDate", java.lang.Object.class); } /** @@ -57,7 +57,7 @@ protected JsonFormatter(final software.amazon.jsii.JsiiObject.InitializationMode */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyEmptyString() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyEmptyString", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.JsonFormatter.class, "anyEmptyString", java.lang.Object.class); } /** @@ -65,7 +65,7 @@ protected JsonFormatter(final software.amazon.jsii.JsiiObject.InitializationMode */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyFunction() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyFunction", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.JsonFormatter.class, "anyFunction", java.lang.Object.class); } /** @@ -73,7 +73,7 @@ protected JsonFormatter(final software.amazon.jsii.JsiiObject.InitializationMode */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyHash() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyHash", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.JsonFormatter.class, "anyHash", java.lang.Object.class); } /** @@ -81,7 +81,7 @@ protected JsonFormatter(final software.amazon.jsii.JsiiObject.InitializationMode */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyNull() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyNull", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.JsonFormatter.class, "anyNull", java.lang.Object.class); } /** @@ -89,7 +89,7 @@ protected JsonFormatter(final software.amazon.jsii.JsiiObject.InitializationMode */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyNumber() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyNumber", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.JsonFormatter.class, "anyNumber", java.lang.Object.class); } /** @@ -97,7 +97,7 @@ protected JsonFormatter(final software.amazon.jsii.JsiiObject.InitializationMode */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyRef() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyRef", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.JsonFormatter.class, "anyRef", java.lang.Object.class); } /** @@ -105,7 +105,7 @@ protected JsonFormatter(final software.amazon.jsii.JsiiObject.InitializationMode */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyString() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyString", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.JsonFormatter.class, "anyString", java.lang.Object.class); } /** @@ -113,7 +113,7 @@ protected JsonFormatter(final software.amazon.jsii.JsiiObject.InitializationMode */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyUndefined() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyUndefined", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.JsonFormatter.class, "anyUndefined", java.lang.Object.class); } /** @@ -121,7 +121,7 @@ protected JsonFormatter(final software.amazon.jsii.JsiiObject.InitializationMode */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyZero() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyZero", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.JsonFormatter.class, "anyZero", java.lang.Object.class); } /** @@ -131,7 +131,7 @@ protected JsonFormatter(final software.amazon.jsii.JsiiObject.InitializationMode */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.Nullable java.lang.String stringify(final @org.jetbrains.annotations.Nullable java.lang.Object value) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "stringify", java.lang.String.class, new Object[] { value }); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.JsonFormatter.class, "stringify", java.lang.String.class, new Object[] { value }); } /** @@ -139,6 +139,6 @@ protected JsonFormatter(final software.amazon.jsii.JsiiObject.InitializationMode */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.Nullable java.lang.String stringify() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "stringify", java.lang.String.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.JsonFormatter.class, "stringify", java.lang.String.class); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/LoadBalancedFargateServiceProps.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/LoadBalancedFargateServiceProps.java similarity index 98% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/LoadBalancedFargateServiceProps.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/LoadBalancedFargateServiceProps.java index 481985e467..2b9e8d59ac 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/LoadBalancedFargateServiceProps.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/LoadBalancedFargateServiceProps.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * jsii#298: show default values in sphinx documentation, and respect newlines. @@ -6,7 +6,7 @@ * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.LoadBalancedFargateServiceProps") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.LoadBalancedFargateServiceProps") @software.amazon.jsii.Jsii.Proxy(LoadBalancedFargateServiceProps.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface LoadBalancedFargateServiceProps extends software.amazon.jsii.JsiiSerializable { @@ -287,7 +287,7 @@ public java.lang.Boolean getPublicTasks() { } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.LoadBalancedFargateServiceProps")); + struct.set("fqn", om.valueToTree("jsii-calc.compliance.LoadBalancedFargateServiceProps")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NestedStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/NestedStruct.java similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NestedStruct.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/NestedStruct.java index 8829c25054..98afd3a4b4 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NestedStruct.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/NestedStruct.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.NestedStruct") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.NestedStruct") @software.amazon.jsii.Jsii.Proxy(NestedStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface NestedStruct extends software.amazon.jsii.JsiiSerializable { @@ -90,7 +90,7 @@ public java.lang.Number getNumberProp() { data.set("numberProp", om.valueToTree(this.getNumberProp())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.NestedStruct")); + struct.set("fqn", om.valueToTree("jsii-calc.compliance.NestedStruct")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NodeStandardLibrary.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/NodeStandardLibrary.java similarity index 94% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NodeStandardLibrary.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/NodeStandardLibrary.java index 23eaffccc8..7e1789a65f 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NodeStandardLibrary.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/NodeStandardLibrary.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * Test fixture to verify that jsii modules can use the node standard library. @@ -7,7 +7,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.NodeStandardLibrary") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.NodeStandardLibrary") public class NodeStandardLibrary extends software.amazon.jsii.JsiiObject { protected NodeStandardLibrary(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NullShouldBeTreatedAsUndefined.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/NullShouldBeTreatedAsUndefined.java similarity index 93% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NullShouldBeTreatedAsUndefined.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/NullShouldBeTreatedAsUndefined.java index 034b052505..b9e0080ead 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NullShouldBeTreatedAsUndefined.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/NullShouldBeTreatedAsUndefined.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * jsii#282, aws-cdk#157: null should be treated as "undefined". @@ -7,7 +7,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.NullShouldBeTreatedAsUndefined") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.NullShouldBeTreatedAsUndefined") public class NullShouldBeTreatedAsUndefined extends software.amazon.jsii.JsiiObject { protected NullShouldBeTreatedAsUndefined(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -65,7 +65,7 @@ public void giveMeUndefined() { * @param input This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void giveMeUndefinedInsideAnObject(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.NullShouldBeTreatedAsUndefinedData input) { + public void giveMeUndefinedInsideAnObject(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.NullShouldBeTreatedAsUndefinedData input) { this.jsiiCall("giveMeUndefinedInsideAnObject", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(input, "input is required") }); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NullShouldBeTreatedAsUndefinedData.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/NullShouldBeTreatedAsUndefinedData.java similarity index 96% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NullShouldBeTreatedAsUndefinedData.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/NullShouldBeTreatedAsUndefinedData.java index 7f687bbf98..00d5a4f471 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NullShouldBeTreatedAsUndefinedData.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/NullShouldBeTreatedAsUndefinedData.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.NullShouldBeTreatedAsUndefinedData") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.NullShouldBeTreatedAsUndefinedData") @software.amazon.jsii.Jsii.Proxy(NullShouldBeTreatedAsUndefinedData.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface NullShouldBeTreatedAsUndefinedData extends software.amazon.jsii.JsiiSerializable { @@ -119,7 +119,7 @@ public java.lang.Object getThisShouldBeUndefined() { } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.NullShouldBeTreatedAsUndefinedData")); + struct.set("fqn", om.valueToTree("jsii-calc.compliance.NullShouldBeTreatedAsUndefinedData")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NumberGenerator.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/NumberGenerator.java similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NumberGenerator.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/NumberGenerator.java index e41d1086fc..4ad25c582c 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NumberGenerator.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/NumberGenerator.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * This allows us to test that a reference can be stored for objects that implement interfaces. @@ -7,7 +7,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.NumberGenerator") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.NumberGenerator") public class NumberGenerator extends software.amazon.jsii.JsiiObject { protected NumberGenerator(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ObjectRefsInCollections.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ObjectRefsInCollections.java similarity index 93% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ObjectRefsInCollections.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ObjectRefsInCollections.java index 00a10b6936..609d7e3c47 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ObjectRefsInCollections.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ObjectRefsInCollections.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * Verify that object references can be passed inside collections. @@ -7,7 +7,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ObjectRefsInCollections") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ObjectRefsInCollections") public class ObjectRefsInCollections extends software.amazon.jsii.JsiiObject { protected ObjectRefsInCollections(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ObjectWithPropertyProvider.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ObjectWithPropertyProvider.java similarity index 69% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ObjectWithPropertyProvider.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ObjectWithPropertyProvider.java index 399ccc041d..4e600cce0d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ObjectWithPropertyProvider.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ObjectWithPropertyProvider.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ObjectWithPropertyProvider") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ObjectWithPropertyProvider") public class ObjectWithPropertyProvider extends software.amazon.jsii.JsiiObject { protected ObjectWithPropertyProvider(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -20,7 +20,7 @@ protected ObjectWithPropertyProvider(final software.amazon.jsii.JsiiObject.Initi * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IObjectWithProperty provide() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ObjectWithPropertyProvider.class, "provide", software.amazon.jsii.tests.calculator.IObjectWithProperty.class); + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IObjectWithProperty provide() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.ObjectWithPropertyProvider.class, "provide", software.amazon.jsii.tests.calculator.compliance.IObjectWithProperty.class); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalArgumentInvoker.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/OptionalArgumentInvoker.java similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalArgumentInvoker.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/OptionalArgumentInvoker.java index 1487518bfe..f405167c75 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalArgumentInvoker.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/OptionalArgumentInvoker.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.OptionalArgumentInvoker") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.OptionalArgumentInvoker") public class OptionalArgumentInvoker extends software.amazon.jsii.JsiiObject { protected OptionalArgumentInvoker(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -22,7 +22,7 @@ protected OptionalArgumentInvoker(final software.amazon.jsii.JsiiObject.Initiali * @param delegate This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public OptionalArgumentInvoker(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IInterfaceWithOptionalMethodArguments delegate) { + public OptionalArgumentInvoker(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IInterfaceWithOptionalMethodArguments delegate) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(delegate, "delegate is required") }); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalConstructorArgument.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/OptionalConstructorArgument.java similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalConstructorArgument.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/OptionalConstructorArgument.java index 10d69a4bf7..7ae112bd2b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalConstructorArgument.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/OptionalConstructorArgument.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.OptionalConstructorArgument") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.OptionalConstructorArgument") public class OptionalConstructorArgument extends software.amazon.jsii.JsiiObject { protected OptionalConstructorArgument(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/OptionalStruct.java similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalStruct.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/OptionalStruct.java index a56204583e..a298413c44 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalStruct.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/OptionalStruct.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.OptionalStruct") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.OptionalStruct") @software.amazon.jsii.Jsii.Proxy(OptionalStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface OptionalStruct extends software.amazon.jsii.JsiiSerializable { @@ -92,7 +92,7 @@ public java.lang.String getField() { } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.OptionalStruct")); + struct.set("fqn", om.valueToTree("jsii-calc.compliance.OptionalStruct")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalStructConsumer.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/OptionalStructConsumer.java similarity index 80% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalStructConsumer.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/OptionalStructConsumer.java index a0c9e08e2d..0a2e2c448d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalStructConsumer.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/OptionalStructConsumer.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.OptionalStructConsumer") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.OptionalStructConsumer") public class OptionalStructConsumer extends software.amazon.jsii.JsiiObject { protected OptionalStructConsumer(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -22,7 +22,7 @@ protected OptionalStructConsumer(final software.amazon.jsii.JsiiObject.Initializ * @param optionalStruct */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public OptionalStructConsumer(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.OptionalStruct optionalStruct) { + public OptionalStructConsumer(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.compliance.OptionalStruct optionalStruct) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { optionalStruct }); } @@ -53,7 +53,7 @@ public OptionalStructConsumer() { } /** - * A fluent builder for {@link software.amazon.jsii.tests.calculator.OptionalStructConsumer}. + * A fluent builder for {@link software.amazon.jsii.tests.calculator.compliance.OptionalStructConsumer}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static final class Builder { @@ -67,7 +67,7 @@ public static Builder create() { return new Builder(); } - private software.amazon.jsii.tests.calculator.OptionalStruct.Builder optionalStruct; + private software.amazon.jsii.tests.calculator.compliance.OptionalStruct.Builder optionalStruct; private Builder() { } @@ -85,18 +85,18 @@ public Builder field(final java.lang.String field) { } /** - * @returns a newly built instance of {@link software.amazon.jsii.tests.calculator.OptionalStructConsumer}. + * @returns a newly built instance of {@link software.amazon.jsii.tests.calculator.compliance.OptionalStructConsumer}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public software.amazon.jsii.tests.calculator.OptionalStructConsumer build() { - return new software.amazon.jsii.tests.calculator.OptionalStructConsumer( + public software.amazon.jsii.tests.calculator.compliance.OptionalStructConsumer build() { + return new software.amazon.jsii.tests.calculator.compliance.OptionalStructConsumer( this.optionalStruct != null ? this.optionalStruct.build() : null ); } - private software.amazon.jsii.tests.calculator.OptionalStruct.Builder optionalStruct() { + private software.amazon.jsii.tests.calculator.compliance.OptionalStruct.Builder optionalStruct() { if (this.optionalStruct == null) { - this.optionalStruct = new software.amazon.jsii.tests.calculator.OptionalStruct.Builder(); + this.optionalStruct = new software.amazon.jsii.tests.calculator.compliance.OptionalStruct.Builder(); } return this.optionalStruct; } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OverridableProtectedMember.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/OverridableProtectedMember.java similarity index 94% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OverridableProtectedMember.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/OverridableProtectedMember.java index c3cf0a2f5a..6d47041d5c 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OverridableProtectedMember.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/OverridableProtectedMember.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL @@ -7,7 +7,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.OverridableProtectedMember") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.OverridableProtectedMember") public class OverridableProtectedMember extends software.amazon.jsii.JsiiObject { protected OverridableProtectedMember(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OverrideReturnsObject.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/OverrideReturnsObject.java similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OverrideReturnsObject.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/OverrideReturnsObject.java index d0a12cc6d8..062ec877ba 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OverrideReturnsObject.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/OverrideReturnsObject.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.OverrideReturnsObject") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.OverrideReturnsObject") public class OverrideReturnsObject extends software.amazon.jsii.JsiiObject { protected OverrideReturnsObject(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -27,7 +27,7 @@ public OverrideReturnsObject() { * @param obj This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number test(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IReturnsNumber obj) { + public @org.jetbrains.annotations.NotNull java.lang.Number test(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IReturnsNumber obj) { return this.jsiiCall("test", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(obj, "obj is required") }); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ParentStruct982.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ParentStruct982.java similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ParentStruct982.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ParentStruct982.java index 67b88e0df4..1b619dfb10 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ParentStruct982.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ParentStruct982.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * https://github.com/aws/jsii/issues/982. @@ -6,7 +6,7 @@ * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ParentStruct982") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ParentStruct982") @software.amazon.jsii.Jsii.Proxy(ParentStruct982.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface ParentStruct982 extends software.amazon.jsii.JsiiSerializable { @@ -90,7 +90,7 @@ public java.lang.String getFoo() { data.set("foo", om.valueToTree(this.getFoo())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.ParentStruct982")); + struct.set("fqn", om.valueToTree("jsii-calc.compliance.ParentStruct982")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/PartiallyInitializedThisConsumer.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/PartiallyInitializedThisConsumer.java similarity index 75% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/PartiallyInitializedThisConsumer.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/PartiallyInitializedThisConsumer.java index 3dde64f3d0..727f54af7e 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/PartiallyInitializedThisConsumer.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/PartiallyInitializedThisConsumer.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.PartiallyInitializedThisConsumer") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.PartiallyInitializedThisConsumer") public abstract class PartiallyInitializedThisConsumer extends software.amazon.jsii.JsiiObject { protected PartiallyInitializedThisConsumer(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -29,12 +29,12 @@ protected PartiallyInitializedThisConsumer() { * @param ev This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public abstract @org.jetbrains.annotations.NotNull java.lang.String consumePartiallyInitializedThis(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.ConstructorPassesThisOut obj, final @org.jetbrains.annotations.NotNull java.time.Instant dt, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.AllTypesEnum ev); + public abstract @org.jetbrains.annotations.NotNull java.lang.String consumePartiallyInitializedThis(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.ConstructorPassesThisOut obj, final @org.jetbrains.annotations.NotNull java.time.Instant dt, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.AllTypesEnum ev); /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.PartiallyInitializedThisConsumer { + final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.compliance.PartiallyInitializedThisConsumer { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } @@ -48,7 +48,7 @@ final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.Part */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override - public @org.jetbrains.annotations.NotNull java.lang.String consumePartiallyInitializedThis(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.ConstructorPassesThisOut obj, final @org.jetbrains.annotations.NotNull java.time.Instant dt, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.AllTypesEnum ev) { + public @org.jetbrains.annotations.NotNull java.lang.String consumePartiallyInitializedThis(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.ConstructorPassesThisOut obj, final @org.jetbrains.annotations.NotNull java.time.Instant dt, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.AllTypesEnum ev) { return this.jsiiCall("consumePartiallyInitializedThis", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(obj, "obj is required"), java.util.Objects.requireNonNull(dt, "dt is required"), java.util.Objects.requireNonNull(ev, "ev is required") }); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Polymorphism.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Polymorphism.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Polymorphism.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Polymorphism.java index f19e13b1d0..79fb305238 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Polymorphism.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Polymorphism.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Polymorphism") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.Polymorphism") public class Polymorphism extends software.amazon.jsii.JsiiObject { protected Polymorphism(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/PublicClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/PublicClass.java similarity index 88% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/PublicClass.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/PublicClass.java index 512802e367..b49c80a29f 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/PublicClass.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/PublicClass.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.PublicClass") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.PublicClass") public class PublicClass extends software.amazon.jsii.JsiiObject { protected PublicClass(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/PythonReservedWords.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/PythonReservedWords.java similarity index 98% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/PythonReservedWords.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/PythonReservedWords.java index 3f2eec1838..4472022d48 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/PythonReservedWords.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/PythonReservedWords.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.PythonReservedWords") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.PythonReservedWords") public class PythonReservedWords extends software.amazon.jsii.JsiiObject { protected PythonReservedWords(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ReferenceEnumFromScopedPackage.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ReferenceEnumFromScopedPackage.java similarity index 94% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ReferenceEnumFromScopedPackage.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ReferenceEnumFromScopedPackage.java index 5ad21d50b0..a754c77032 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ReferenceEnumFromScopedPackage.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ReferenceEnumFromScopedPackage.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * See awslabs/jsii#138. @@ -7,7 +7,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ReferenceEnumFromScopedPackage") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ReferenceEnumFromScopedPackage") public class ReferenceEnumFromScopedPackage extends software.amazon.jsii.JsiiObject { protected ReferenceEnumFromScopedPackage(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ReturnsPrivateImplementationOfInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ReturnsPrivateImplementationOfInterface.java similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ReturnsPrivateImplementationOfInterface.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ReturnsPrivateImplementationOfInterface.java index e8beb1b973..7197be6670 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ReturnsPrivateImplementationOfInterface.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ReturnsPrivateImplementationOfInterface.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * Helps ensure the JSII kernel & runtime cooperate correctly when an un-exported instance of a class is returned with a declared type that is an exported interface, and the instance inherits from an exported class. @@ -10,7 +10,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ReturnsPrivateImplementationOfInterface") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ReturnsPrivateImplementationOfInterface") public class ReturnsPrivateImplementationOfInterface extends software.amazon.jsii.JsiiObject { protected ReturnsPrivateImplementationOfInterface(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -30,7 +30,7 @@ public ReturnsPrivateImplementationOfInterface() { * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IPrivatelyImplemented getPrivateImplementation() { - return this.jsiiGet("privateImplementation", software.amazon.jsii.tests.calculator.IPrivatelyImplemented.class); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IPrivatelyImplemented getPrivateImplementation() { + return this.jsiiGet("privateImplementation", software.amazon.jsii.tests.calculator.compliance.IPrivatelyImplemented.class); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/RootStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/RootStruct.java similarity index 88% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/RootStruct.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/RootStruct.java index bd8962a444..73c10c1991 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/RootStruct.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/RootStruct.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary. @@ -9,7 +9,7 @@ * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.RootStruct") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.RootStruct") @software.amazon.jsii.Jsii.Proxy(RootStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface RootStruct extends software.amazon.jsii.JsiiSerializable { @@ -26,7 +26,7 @@ public interface RootStruct extends software.amazon.jsii.JsiiSerializable { * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - default @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.NestedStruct getNestedStruct() { + default @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.compliance.NestedStruct getNestedStruct() { return null; } @@ -43,7 +43,7 @@ static Builder builder() { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static final class Builder { private java.lang.String stringProp; - private software.amazon.jsii.tests.calculator.NestedStruct nestedStruct; + private software.amazon.jsii.tests.calculator.compliance.NestedStruct nestedStruct; /** * Sets the value of {@link RootStruct#getStringProp} @@ -62,7 +62,7 @@ public Builder stringProp(java.lang.String stringProp) { * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder nestedStruct(software.amazon.jsii.tests.calculator.NestedStruct nestedStruct) { + public Builder nestedStruct(software.amazon.jsii.tests.calculator.compliance.NestedStruct nestedStruct) { this.nestedStruct = nestedStruct; return this; } @@ -84,7 +84,7 @@ public RootStruct build() { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements RootStruct { private final java.lang.String stringProp; - private final software.amazon.jsii.tests.calculator.NestedStruct nestedStruct; + private final software.amazon.jsii.tests.calculator.compliance.NestedStruct nestedStruct; /** * Constructor that initializes the object based on values retrieved from the JsiiObject. @@ -93,13 +93,13 @@ final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements RootSt protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); this.stringProp = this.jsiiGet("stringProp", java.lang.String.class); - this.nestedStruct = this.jsiiGet("nestedStruct", software.amazon.jsii.tests.calculator.NestedStruct.class); + this.nestedStruct = this.jsiiGet("nestedStruct", software.amazon.jsii.tests.calculator.compliance.NestedStruct.class); } /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ - private Jsii$Proxy(final java.lang.String stringProp, final software.amazon.jsii.tests.calculator.NestedStruct nestedStruct) { + private Jsii$Proxy(final java.lang.String stringProp, final software.amazon.jsii.tests.calculator.compliance.NestedStruct nestedStruct) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.stringProp = java.util.Objects.requireNonNull(stringProp, "stringProp is required"); this.nestedStruct = nestedStruct; @@ -111,7 +111,7 @@ public java.lang.String getStringProp() { } @Override - public software.amazon.jsii.tests.calculator.NestedStruct getNestedStruct() { + public software.amazon.jsii.tests.calculator.compliance.NestedStruct getNestedStruct() { return this.nestedStruct; } @@ -126,7 +126,7 @@ public software.amazon.jsii.tests.calculator.NestedStruct getNestedStruct() { } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.RootStruct")); + struct.set("fqn", om.valueToTree("jsii-calc.compliance.RootStruct")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/RootStructValidator.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/RootStructValidator.java similarity index 68% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/RootStructValidator.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/RootStructValidator.java index d0eddb2d97..d7b9971060 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/RootStructValidator.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/RootStructValidator.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.RootStructValidator") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.RootStructValidator") public class RootStructValidator extends software.amazon.jsii.JsiiObject { protected RootStructValidator(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -22,7 +22,7 @@ protected RootStructValidator(final software.amazon.jsii.JsiiObject.Initializati * @param struct This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static void validate(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.RootStruct struct) { - software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.RootStructValidator.class, "validate", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(struct, "struct is required") }); + public static void validate(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.RootStruct struct) { + software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.RootStructValidator.class, "validate", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(struct, "struct is required") }); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/RuntimeTypeChecking.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/RuntimeTypeChecking.java similarity index 97% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/RuntimeTypeChecking.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/RuntimeTypeChecking.java index 9bb1c91fe7..89f3304746 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/RuntimeTypeChecking.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/RuntimeTypeChecking.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.RuntimeTypeChecking") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.RuntimeTypeChecking") public class RuntimeTypeChecking extends software.amazon.jsii.JsiiObject { protected RuntimeTypeChecking(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SecondLevelStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SecondLevelStruct.java similarity index 96% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SecondLevelStruct.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SecondLevelStruct.java index 731f8d6cdd..a2b7ab80b2 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SecondLevelStruct.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SecondLevelStruct.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SecondLevelStruct") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.SecondLevelStruct") @software.amazon.jsii.Jsii.Proxy(SecondLevelStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface SecondLevelStruct extends software.amazon.jsii.JsiiSerializable { @@ -123,7 +123,7 @@ public java.lang.String getDeeperOptionalProp() { } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.SecondLevelStruct")); + struct.set("fqn", om.valueToTree("jsii-calc.compliance.SecondLevelStruct")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingleInstanceTwoTypes.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SingleInstanceTwoTypes.java similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingleInstanceTwoTypes.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SingleInstanceTwoTypes.java index 5e5a37deab..359fee1a77 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingleInstanceTwoTypes.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SingleInstanceTwoTypes.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * Test that a single instance can be returned under two different FQNs. @@ -11,7 +11,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SingleInstanceTwoTypes") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.SingleInstanceTwoTypes") public class SingleInstanceTwoTypes extends software.amazon.jsii.JsiiObject { protected SingleInstanceTwoTypes(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -31,15 +31,15 @@ public SingleInstanceTwoTypes() { * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.InbetweenClass interface1() { - return this.jsiiCall("interface1", software.amazon.jsii.tests.calculator.InbetweenClass.class); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.InbetweenClass interface1() { + return this.jsiiCall("interface1", software.amazon.jsii.tests.calculator.compliance.InbetweenClass.class); } /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IPublicInterface interface2() { - return this.jsiiCall("interface2", software.amazon.jsii.tests.calculator.IPublicInterface.class); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IPublicInterface interface2() { + return this.jsiiCall("interface2", software.amazon.jsii.tests.calculator.compliance.IPublicInterface.class); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonInt.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SingletonInt.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonInt.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SingletonInt.java index ddfc60cac4..51b763128f 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonInt.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SingletonInt.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * Verifies that singleton enums are handled correctly. @@ -9,7 +9,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SingletonInt") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.SingletonInt") public class SingletonInt extends software.amazon.jsii.JsiiObject { protected SingletonInt(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonIntEnum.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SingletonIntEnum.java similarity index 77% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonIntEnum.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SingletonIntEnum.java index 954ee14d05..86cf90de6d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonIntEnum.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SingletonIntEnum.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * A singleton integer. @@ -7,7 +7,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SingletonIntEnum") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.SingletonIntEnum") public enum SingletonIntEnum { /** * Elite! diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonString.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SingletonString.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonString.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SingletonString.java index bb6c34c8d1..f2391e2e75 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonString.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SingletonString.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * Verifies that singleton enums are handled correctly. @@ -9,7 +9,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SingletonString") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.SingletonString") public class SingletonString extends software.amazon.jsii.JsiiObject { protected SingletonString(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonStringEnum.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SingletonStringEnum.java similarity index 77% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonStringEnum.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SingletonStringEnum.java index eb528aa343..34eac489fa 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonStringEnum.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SingletonStringEnum.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * A singleton string. @@ -7,7 +7,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SingletonStringEnum") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.SingletonStringEnum") public enum SingletonStringEnum { /** * 1337. diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SomeTypeJsii976.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SomeTypeJsii976.java similarity index 73% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SomeTypeJsii976.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SomeTypeJsii976.java index dcca957771..49de4361c3 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SomeTypeJsii976.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SomeTypeJsii976.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SomeTypeJsii976") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.SomeTypeJsii976") public class SomeTypeJsii976 extends software.amazon.jsii.JsiiObject { protected SomeTypeJsii976(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -26,14 +26,14 @@ public SomeTypeJsii976() { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object returnAnonymous() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.SomeTypeJsii976.class, "returnAnonymous", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.SomeTypeJsii976.class, "returnAnonymous", java.lang.Object.class); } /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IReturnJsii976 returnReturn() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.SomeTypeJsii976.class, "returnReturn", software.amazon.jsii.tests.calculator.IReturnJsii976.class); + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IReturnJsii976 returnReturn() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.SomeTypeJsii976.class, "returnReturn", software.amazon.jsii.tests.calculator.compliance.IReturnJsii976.class); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StaticContext.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StaticContext.java similarity index 75% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StaticContext.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StaticContext.java index bd8decd15b..253eacfc54 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StaticContext.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StaticContext.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * This is used to validate the ability to use `this` from within a static context. @@ -9,7 +9,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StaticContext") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.StaticContext") public class StaticContext extends software.amazon.jsii.JsiiObject { protected StaticContext(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -25,7 +25,7 @@ protected StaticContext(final software.amazon.jsii.JsiiObject.InitializationMode */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Boolean canAccessStaticContext() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.StaticContext.class, "canAccessStaticContext", java.lang.Boolean.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.StaticContext.class, "canAccessStaticContext", java.lang.Boolean.class); } /** @@ -33,7 +33,7 @@ protected StaticContext(final software.amazon.jsii.JsiiObject.InitializationMode */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Boolean getStaticVariable() { - return software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.StaticContext.class, "staticVariable", java.lang.Boolean.class); + return software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.compliance.StaticContext.class, "staticVariable", java.lang.Boolean.class); } /** @@ -41,6 +41,6 @@ protected StaticContext(final software.amazon.jsii.JsiiObject.InitializationMode */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static void setStaticVariable(final @org.jetbrains.annotations.NotNull java.lang.Boolean value) { - software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.StaticContext.class, "staticVariable", java.util.Objects.requireNonNull(value, "staticVariable is required")); + software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.compliance.StaticContext.class, "staticVariable", java.util.Objects.requireNonNull(value, "staticVariable is required")); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Statics.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Statics.java similarity index 74% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Statics.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Statics.java index e6721a2d42..0a1f0f8b8a 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Statics.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Statics.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Statics") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.Statics") public class Statics extends software.amazon.jsii.JsiiObject { protected Statics(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -17,10 +17,10 @@ protected Statics(final software.amazon.jsii.JsiiObject.InitializationMode initi } static { - BAR = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.Statics.class, "BAR", java.lang.Number.class); - CONST_OBJ = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.Statics.class, "ConstObj", software.amazon.jsii.tests.calculator.DoubleTrouble.class); - FOO = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.Statics.class, "Foo", java.lang.String.class); - ZOO_BAR = java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.Statics.class, "zooBar", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); + BAR = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.compliance.Statics.class, "BAR", java.lang.Number.class); + CONST_OBJ = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.compliance.Statics.class, "ConstObj", software.amazon.jsii.tests.calculator.compliance.DoubleTrouble.class); + FOO = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.compliance.Statics.class, "Foo", java.lang.String.class); + ZOO_BAR = java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.compliance.Statics.class, "zooBar", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); } /** @@ -43,7 +43,7 @@ public Statics(final @org.jetbrains.annotations.NotNull java.lang.String value) */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.String staticMethod(final @org.jetbrains.annotations.NotNull java.lang.String name) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Statics.class, "staticMethod", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(name, "name is required") }); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.Statics.class, "staticMethod", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(name, "name is required") }); } /** @@ -66,7 +66,7 @@ public Statics(final @org.jetbrains.annotations.NotNull java.lang.String value) * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public final static software.amazon.jsii.tests.calculator.DoubleTrouble CONST_OBJ; + public final static software.amazon.jsii.tests.calculator.compliance.DoubleTrouble CONST_OBJ; /** * Jsdocs for static property. @@ -92,8 +92,8 @@ public Statics(final @org.jetbrains.annotations.NotNull java.lang.String value) * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Statics getInstance() { - return software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.Statics.class, "instance", software.amazon.jsii.tests.calculator.Statics.class); + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.Statics getInstance() { + return software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.compliance.Statics.class, "instance", software.amazon.jsii.tests.calculator.compliance.Statics.class); } /** @@ -104,8 +104,8 @@ public Statics(final @org.jetbrains.annotations.NotNull java.lang.String value) * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static void setInstance(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Statics value) { - software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.Statics.class, "instance", java.util.Objects.requireNonNull(value, "instance is required")); + public static void setInstance(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.Statics value) { + software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.compliance.Statics.class, "instance", java.util.Objects.requireNonNull(value, "instance is required")); } /** @@ -113,7 +113,7 @@ public static void setInstance(final @org.jetbrains.annotations.NotNull software */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Number getNonConstStatic() { - return software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.Statics.class, "nonConstStatic", java.lang.Number.class); + return software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.compliance.Statics.class, "nonConstStatic", java.lang.Number.class); } /** @@ -121,7 +121,7 @@ public static void setInstance(final @org.jetbrains.annotations.NotNull software */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static void setNonConstStatic(final @org.jetbrains.annotations.NotNull java.lang.Number value) { - software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.Statics.class, "nonConstStatic", java.util.Objects.requireNonNull(value, "nonConstStatic is required")); + software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.compliance.Statics.class, "nonConstStatic", java.util.Objects.requireNonNull(value, "nonConstStatic is required")); } /** diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StringEnum.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StringEnum.java similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StringEnum.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StringEnum.java index 948d3e50f3..909584a795 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StringEnum.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StringEnum.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StringEnum") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.StringEnum") public enum StringEnum { /** * EXPERIMENTAL diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StripInternal.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StripInternal.java similarity index 91% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StripInternal.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StripInternal.java index 64ac68fabe..063cbb7465 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StripInternal.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StripInternal.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StripInternal") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.StripInternal") public class StripInternal extends software.amazon.jsii.JsiiObject { protected StripInternal(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructA.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StructA.java similarity index 97% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructA.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StructA.java index 374c3ec085..f1d9f26694 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructA.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StructA.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * We can serialize and deserialize structs without silently ignoring optional fields. @@ -6,7 +6,7 @@ * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StructA") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.StructA") @software.amazon.jsii.Jsii.Proxy(StructA.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface StructA extends software.amazon.jsii.JsiiSerializable { @@ -152,7 +152,7 @@ public java.lang.String getOptionalString() { } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.StructA")); + struct.set("fqn", om.valueToTree("jsii-calc.compliance.StructA")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructB.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StructB.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructB.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StructB.java index b1d440d443..e841026e2b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructB.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StructB.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * This intentionally overlaps with StructA (where only requiredString is provided) to test htat the kernel properly disambiguates those. @@ -6,7 +6,7 @@ * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StructB") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.StructB") @software.amazon.jsii.Jsii.Proxy(StructB.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface StructB extends software.amazon.jsii.JsiiSerializable { @@ -29,7 +29,7 @@ public interface StructB extends software.amazon.jsii.JsiiSerializable { * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - default @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.StructA getOptionalStructA() { + default @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.compliance.StructA getOptionalStructA() { return null; } @@ -47,7 +47,7 @@ static Builder builder() { public static final class Builder { private java.lang.String requiredString; private java.lang.Boolean optionalBoolean; - private software.amazon.jsii.tests.calculator.StructA optionalStructA; + private software.amazon.jsii.tests.calculator.compliance.StructA optionalStructA; /** * Sets the value of {@link StructB#getRequiredString} @@ -77,7 +77,7 @@ public Builder optionalBoolean(java.lang.Boolean optionalBoolean) { * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder optionalStructA(software.amazon.jsii.tests.calculator.StructA optionalStructA) { + public Builder optionalStructA(software.amazon.jsii.tests.calculator.compliance.StructA optionalStructA) { this.optionalStructA = optionalStructA; return this; } @@ -100,7 +100,7 @@ public StructB build() { final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements StructB { private final java.lang.String requiredString; private final java.lang.Boolean optionalBoolean; - private final software.amazon.jsii.tests.calculator.StructA optionalStructA; + private final software.amazon.jsii.tests.calculator.compliance.StructA optionalStructA; /** * Constructor that initializes the object based on values retrieved from the JsiiObject. @@ -110,13 +110,13 @@ final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements Struct super(objRef); this.requiredString = this.jsiiGet("requiredString", java.lang.String.class); this.optionalBoolean = this.jsiiGet("optionalBoolean", java.lang.Boolean.class); - this.optionalStructA = this.jsiiGet("optionalStructA", software.amazon.jsii.tests.calculator.StructA.class); + this.optionalStructA = this.jsiiGet("optionalStructA", software.amazon.jsii.tests.calculator.compliance.StructA.class); } /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ - private Jsii$Proxy(final java.lang.String requiredString, final java.lang.Boolean optionalBoolean, final software.amazon.jsii.tests.calculator.StructA optionalStructA) { + private Jsii$Proxy(final java.lang.String requiredString, final java.lang.Boolean optionalBoolean, final software.amazon.jsii.tests.calculator.compliance.StructA optionalStructA) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.requiredString = java.util.Objects.requireNonNull(requiredString, "requiredString is required"); this.optionalBoolean = optionalBoolean; @@ -134,7 +134,7 @@ public java.lang.Boolean getOptionalBoolean() { } @Override - public software.amazon.jsii.tests.calculator.StructA getOptionalStructA() { + public software.amazon.jsii.tests.calculator.compliance.StructA getOptionalStructA() { return this.optionalStructA; } @@ -152,7 +152,7 @@ public software.amazon.jsii.tests.calculator.StructA getOptionalStructA() { } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.StructB")); + struct.set("fqn", om.valueToTree("jsii-calc.compliance.StructB")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructParameterType.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StructParameterType.java similarity index 96% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructParameterType.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StructParameterType.java index 14508ac359..9d39f74ec6 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructParameterType.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StructParameterType.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * Verifies that, in languages that do keyword lifting (e.g: Python), having a struct member with the same name as a positional parameter results in the correct code being emitted. @@ -8,7 +8,7 @@ * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StructParameterType") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.StructParameterType") @software.amazon.jsii.Jsii.Proxy(StructParameterType.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface StructParameterType extends software.amazon.jsii.JsiiSerializable { @@ -123,7 +123,7 @@ public java.lang.Boolean getProps() { } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.StructParameterType")); + struct.set("fqn", om.valueToTree("jsii-calc.compliance.StructParameterType")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructPassing.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StructPassing.java similarity index 58% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructPassing.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StructPassing.java index 8de8c3a13a..0d31f007f5 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructPassing.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StructPassing.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * Just because we can. */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StructPassing") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.StructPassing") public class StructPassing extends software.amazon.jsii.JsiiObject { protected StructPassing(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -26,8 +26,8 @@ public StructPassing() { * @param inputs This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) - public static @org.jetbrains.annotations.NotNull java.lang.Number howManyVarArgsDidIPass(final @org.jetbrains.annotations.NotNull java.lang.Number _positional, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.TopLevelStruct... inputs) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.StructPassing.class, "howManyVarArgsDidIPass", java.lang.Number.class, java.util.stream.Stream.concat(java.util.Arrays.stream(new Object[] { java.util.Objects.requireNonNull(_positional, "_positional is required") }), java.util.Arrays.stream(inputs)).toArray(Object[]::new)); + public static @org.jetbrains.annotations.NotNull java.lang.Number howManyVarArgsDidIPass(final @org.jetbrains.annotations.NotNull java.lang.Number _positional, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.TopLevelStruct... inputs) { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.StructPassing.class, "howManyVarArgsDidIPass", java.lang.Number.class, java.util.stream.Stream.concat(java.util.Arrays.stream(new Object[] { java.util.Objects.requireNonNull(_positional, "_positional is required") }), java.util.Arrays.stream(inputs)).toArray(Object[]::new)); } /** @@ -35,7 +35,7 @@ public StructPassing() { * @param input This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.TopLevelStruct roundTrip(final @org.jetbrains.annotations.NotNull java.lang.Number _positional, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.TopLevelStruct input) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.StructPassing.class, "roundTrip", software.amazon.jsii.tests.calculator.TopLevelStruct.class, new Object[] { java.util.Objects.requireNonNull(_positional, "_positional is required"), java.util.Objects.requireNonNull(input, "input is required") }); + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.TopLevelStruct roundTrip(final @org.jetbrains.annotations.NotNull java.lang.Number _positional, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.TopLevelStruct input) { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.StructPassing.class, "roundTrip", software.amazon.jsii.tests.calculator.compliance.TopLevelStruct.class, new Object[] { java.util.Objects.requireNonNull(_positional, "_positional is required"), java.util.Objects.requireNonNull(input, "input is required") }); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructUnionConsumer.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StructUnionConsumer.java similarity index 72% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructUnionConsumer.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StructUnionConsumer.java index 045dac6713..8d6ba5a75f 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructUnionConsumer.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StructUnionConsumer.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StructUnionConsumer") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.StructUnionConsumer") public class StructUnionConsumer extends software.amazon.jsii.JsiiObject { protected StructUnionConsumer(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -23,7 +23,7 @@ protected StructUnionConsumer(final software.amazon.jsii.JsiiObject.Initializati */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Boolean isStructA(final @org.jetbrains.annotations.NotNull java.lang.Object struct) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.StructUnionConsumer.class, "isStructA", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(struct, "struct is required") }); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.StructUnionConsumer.class, "isStructA", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(struct, "struct is required") }); } /** @@ -33,6 +33,6 @@ protected StructUnionConsumer(final software.amazon.jsii.JsiiObject.Initializati */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Boolean isStructB(final @org.jetbrains.annotations.NotNull java.lang.Object struct) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.StructUnionConsumer.class, "isStructB", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(struct, "struct is required") }); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.StructUnionConsumer.class, "isStructB", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(struct, "struct is required") }); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructWithJavaReservedWords.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StructWithJavaReservedWords.java similarity index 97% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructWithJavaReservedWords.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StructWithJavaReservedWords.java index 08d05baaa7..83fedce168 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructWithJavaReservedWords.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StructWithJavaReservedWords.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StructWithJavaReservedWords") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.StructWithJavaReservedWords") @software.amazon.jsii.Jsii.Proxy(StructWithJavaReservedWords.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface StructWithJavaReservedWords extends software.amazon.jsii.JsiiSerializable { @@ -181,7 +181,7 @@ public java.lang.String getThat() { } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.StructWithJavaReservedWords")); + struct.set("fqn", om.valueToTree("jsii-calc.compliance.StructWithJavaReservedWords")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SupportsNiceJavaBuilder.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SupportsNiceJavaBuilder.java similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SupportsNiceJavaBuilder.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SupportsNiceJavaBuilder.java index 3394a1fc20..988cb2a9f7 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SupportsNiceJavaBuilder.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SupportsNiceJavaBuilder.java @@ -1,12 +1,12 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SupportsNiceJavaBuilder") -public class SupportsNiceJavaBuilder extends software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderWithRequiredProps { +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.SupportsNiceJavaBuilder") +public class SupportsNiceJavaBuilder extends software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilderWithRequiredProps { protected SupportsNiceJavaBuilder(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); @@ -25,7 +25,7 @@ protected SupportsNiceJavaBuilder(final software.amazon.jsii.JsiiObject.Initiali * @param rest a variadic continuation. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public SupportsNiceJavaBuilder(final @org.jetbrains.annotations.NotNull java.lang.Number id, final @org.jetbrains.annotations.Nullable java.lang.Number defaultBar, final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderProps props, final @org.jetbrains.annotations.NotNull java.lang.String... rest) { + public SupportsNiceJavaBuilder(final @org.jetbrains.annotations.NotNull java.lang.Number id, final @org.jetbrains.annotations.Nullable java.lang.Number defaultBar, final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilderProps props, final @org.jetbrains.annotations.NotNull java.lang.String... rest) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, java.util.stream.Stream.concat(java.util.Arrays.stream(new Object[] { java.util.Objects.requireNonNull(id, "id is required"), defaultBar, props }), java.util.Arrays.stream(rest)).toArray(Object[]::new)); } @@ -50,7 +50,7 @@ public SupportsNiceJavaBuilder(final @org.jetbrains.annotations.NotNull java.lan } /** - * A fluent builder for {@link software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilder}. + * A fluent builder for {@link software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilder}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static final class Builder { @@ -80,7 +80,7 @@ public static Builder create(final java.lang.Number id) { private final java.lang.Number id; private final java.lang.Number defaultBar; private final java.lang.String[] rest; - private software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderProps.Builder props; + private software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilderProps.Builder props; private Builder(final java.lang.Number id, final java.lang.Number defaultBar, final java.lang.String... rest) { this.id = id; @@ -119,11 +119,11 @@ public Builder id(final java.lang.String id) { } /** - * @returns a newly built instance of {@link software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilder}. + * @returns a newly built instance of {@link software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilder}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilder build() { - return new software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilder( + public software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilder build() { + return new software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilder( this.id, this.defaultBar, this.props != null ? this.props.build() : null, @@ -131,9 +131,9 @@ public software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilder build() { ); } - private software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderProps.Builder props() { + private software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilderProps.Builder props() { if (this.props == null) { - this.props = new software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderProps.Builder(); + this.props = new software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilderProps.Builder(); } return this.props; } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SupportsNiceJavaBuilderProps.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SupportsNiceJavaBuilderProps.java similarity index 96% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SupportsNiceJavaBuilderProps.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SupportsNiceJavaBuilderProps.java index abd09065de..e5ceea097d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SupportsNiceJavaBuilderProps.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SupportsNiceJavaBuilderProps.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SupportsNiceJavaBuilderProps") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.SupportsNiceJavaBuilderProps") @software.amazon.jsii.Jsii.Proxy(SupportsNiceJavaBuilderProps.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface SupportsNiceJavaBuilderProps extends software.amazon.jsii.JsiiSerializable { @@ -126,7 +126,7 @@ public java.lang.String getId() { } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.SupportsNiceJavaBuilderProps")); + struct.set("fqn", om.valueToTree("jsii-calc.compliance.SupportsNiceJavaBuilderProps")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SupportsNiceJavaBuilderWithRequiredProps.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SupportsNiceJavaBuilderWithRequiredProps.java similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SupportsNiceJavaBuilderWithRequiredProps.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SupportsNiceJavaBuilderWithRequiredProps.java index 08c2d49c2f..7f017b4a54 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SupportsNiceJavaBuilderWithRequiredProps.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SupportsNiceJavaBuilderWithRequiredProps.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * We can generate fancy builders in Java for classes which take a mix of positional & struct parameters. @@ -7,7 +7,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SupportsNiceJavaBuilderWithRequiredProps") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.SupportsNiceJavaBuilderWithRequiredProps") public class SupportsNiceJavaBuilderWithRequiredProps extends software.amazon.jsii.JsiiObject { protected SupportsNiceJavaBuilderWithRequiredProps(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -25,7 +25,7 @@ protected SupportsNiceJavaBuilderWithRequiredProps(final software.amazon.jsii.Js * @param props some properties. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public SupportsNiceJavaBuilderWithRequiredProps(final @org.jetbrains.annotations.NotNull java.lang.Number id, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderProps props) { + public SupportsNiceJavaBuilderWithRequiredProps(final @org.jetbrains.annotations.NotNull java.lang.Number id, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilderProps props) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(props, "props is required") }); } @@ -57,7 +57,7 @@ public SupportsNiceJavaBuilderWithRequiredProps(final @org.jetbrains.annotations } /** - * A fluent builder for {@link software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderWithRequiredProps}. + * A fluent builder for {@link software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilderWithRequiredProps}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static final class Builder { @@ -73,11 +73,11 @@ public static Builder create(final java.lang.Number id) { } private final java.lang.Number id; - private final software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderProps.Builder props; + private final software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilderProps.Builder props; private Builder(final java.lang.Number id) { this.id = id; - this.props = new software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderProps.Builder(); + this.props = new software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilderProps.Builder(); } /** @@ -111,11 +111,11 @@ public Builder id(final java.lang.String id) { } /** - * @returns a newly built instance of {@link software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderWithRequiredProps}. + * @returns a newly built instance of {@link software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilderWithRequiredProps}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderWithRequiredProps build() { - return new software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderWithRequiredProps( + public software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilderWithRequiredProps build() { + return new software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilderWithRequiredProps( this.id, this.props.build() ); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SyncVirtualMethods.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SyncVirtualMethods.java similarity index 98% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SyncVirtualMethods.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SyncVirtualMethods.java index e63bcab0bf..a20dca77a1 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SyncVirtualMethods.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SyncVirtualMethods.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SyncVirtualMethods") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.SyncVirtualMethods") public class SyncVirtualMethods extends software.amazon.jsii.JsiiObject { protected SyncVirtualMethods(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Thrower.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Thrower.java similarity index 88% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Thrower.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Thrower.java index cb11bafd06..90b840b0a1 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Thrower.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Thrower.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Thrower") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.Thrower") public class Thrower extends software.amazon.jsii.JsiiObject { protected Thrower(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/TopLevelStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/TopLevelStruct.java similarity index 96% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/TopLevelStruct.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/TopLevelStruct.java index 44ed331fde..8b0803d1e0 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/TopLevelStruct.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/TopLevelStruct.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.TopLevelStruct") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.TopLevelStruct") @software.amazon.jsii.Jsii.Proxy(TopLevelStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface TopLevelStruct extends software.amazon.jsii.JsiiSerializable { @@ -79,7 +79,7 @@ public Builder secondLevel(java.lang.Number secondLevel) { * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder secondLevel(software.amazon.jsii.tests.calculator.SecondLevelStruct secondLevel) { + public Builder secondLevel(software.amazon.jsii.tests.calculator.compliance.SecondLevelStruct secondLevel) { this.secondLevel = secondLevel; return this; } @@ -163,7 +163,7 @@ public java.lang.String getOptional() { } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.TopLevelStruct")); + struct.set("fqn", om.valueToTree("jsii-calc.compliance.TopLevelStruct")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UnionProperties.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/UnionProperties.java similarity index 96% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UnionProperties.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/UnionProperties.java index e1c525de0a..9f12368541 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UnionProperties.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/UnionProperties.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.UnionProperties") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.UnionProperties") @software.amazon.jsii.Jsii.Proxy(UnionProperties.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface UnionProperties extends software.amazon.jsii.JsiiSerializable { @@ -66,7 +66,7 @@ public Builder bar(java.lang.Number bar) { * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder bar(software.amazon.jsii.tests.calculator.AllTypes bar) { + public Builder bar(software.amazon.jsii.tests.calculator.compliance.AllTypes bar) { this.bar = bar; return this; } @@ -152,7 +152,7 @@ public java.lang.Object getFoo() { } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.UnionProperties")); + struct.set("fqn", om.valueToTree("jsii-calc.compliance.UnionProperties")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UseBundledDependency.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/UseBundledDependency.java similarity index 88% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UseBundledDependency.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/UseBundledDependency.java index 31377964d5..a8eb21a140 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UseBundledDependency.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/UseBundledDependency.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.UseBundledDependency") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.UseBundledDependency") public class UseBundledDependency extends software.amazon.jsii.JsiiObject { protected UseBundledDependency(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UseCalcBase.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/UseCalcBase.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UseCalcBase.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/UseCalcBase.java index eff7d25cdc..3fa167f8c5 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UseCalcBase.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/UseCalcBase.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * Depend on a type from jsii-calc-base as a test for awslabs/jsii#128. @@ -7,7 +7,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.UseCalcBase") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.UseCalcBase") public class UseCalcBase extends software.amazon.jsii.JsiiObject { protected UseCalcBase(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UsesInterfaceWithProperties.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/UsesInterfaceWithProperties.java similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UsesInterfaceWithProperties.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/UsesInterfaceWithProperties.java index fc14df07e5..98cf447f22 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UsesInterfaceWithProperties.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/UsesInterfaceWithProperties.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.UsesInterfaceWithProperties") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.UsesInterfaceWithProperties") public class UsesInterfaceWithProperties extends software.amazon.jsii.JsiiObject { protected UsesInterfaceWithProperties(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -22,7 +22,7 @@ protected UsesInterfaceWithProperties(final software.amazon.jsii.JsiiObject.Init * @param obj This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public UsesInterfaceWithProperties(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IInterfaceWithProperties obj) { + public UsesInterfaceWithProperties(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IInterfaceWithProperties obj) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(obj, "obj is required") }); } @@ -41,7 +41,7 @@ public UsesInterfaceWithProperties(final @org.jetbrains.annotations.NotNull soft * @param ext This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String readStringAndNumber(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IInterfaceWithPropertiesExtension ext) { + public @org.jetbrains.annotations.NotNull java.lang.String readStringAndNumber(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IInterfaceWithPropertiesExtension ext) { return this.jsiiCall("readStringAndNumber", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(ext, "ext is required") }); } @@ -59,7 +59,7 @@ public UsesInterfaceWithProperties(final @org.jetbrains.annotations.NotNull soft * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IInterfaceWithProperties getObj() { - return this.jsiiGet("obj", software.amazon.jsii.tests.calculator.IInterfaceWithProperties.class); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IInterfaceWithProperties getObj() { + return this.jsiiGet("obj", software.amazon.jsii.tests.calculator.compliance.IInterfaceWithProperties.class); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VariadicInvoker.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/VariadicInvoker.java similarity index 88% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VariadicInvoker.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/VariadicInvoker.java index 701f53dce1..6e47eae127 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VariadicInvoker.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/VariadicInvoker.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.VariadicInvoker") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.VariadicInvoker") public class VariadicInvoker extends software.amazon.jsii.JsiiObject { protected VariadicInvoker(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -22,7 +22,7 @@ protected VariadicInvoker(final software.amazon.jsii.JsiiObject.InitializationMo * @param method This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public VariadicInvoker(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.VariadicMethod method) { + public VariadicInvoker(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.VariadicMethod method) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(method, "method is required") }); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VariadicMethod.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/VariadicMethod.java similarity index 94% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VariadicMethod.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/VariadicMethod.java index 2d61b3fa33..e2f04f44f3 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VariadicMethod.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/VariadicMethod.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.VariadicMethod") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.VariadicMethod") public class VariadicMethod extends software.amazon.jsii.JsiiObject { protected VariadicMethod(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VirtualMethodPlayground.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/VirtualMethodPlayground.java similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VirtualMethodPlayground.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/VirtualMethodPlayground.java index af2db09e1b..6078c4fffc 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VirtualMethodPlayground.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/VirtualMethodPlayground.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.VirtualMethodPlayground") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.VirtualMethodPlayground") public class VirtualMethodPlayground extends software.amazon.jsii.JsiiObject { protected VirtualMethodPlayground(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VoidCallback.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/VoidCallback.java similarity index 93% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VoidCallback.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/VoidCallback.java index e666e38fec..f49338dd6a 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VoidCallback.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/VoidCallback.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * This test is used to validate the runtimes can return correctly from a void callback. @@ -13,7 +13,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.VoidCallback") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.VoidCallback") public abstract class VoidCallback extends software.amazon.jsii.JsiiObject { protected VoidCallback(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -54,7 +54,7 @@ public void callMe() { /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.VoidCallback { + final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.compliance.VoidCallback { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/WithPrivatePropertyInConstructor.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/WithPrivatePropertyInConstructor.java similarity index 92% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/WithPrivatePropertyInConstructor.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/WithPrivatePropertyInConstructor.java index 307ba31434..7b965323bd 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/WithPrivatePropertyInConstructor.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/WithPrivatePropertyInConstructor.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.compliance; /** * Verifies that private property declarations in constructor arguments are hidden. @@ -7,7 +7,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.WithPrivatePropertyInConstructor") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.WithPrivatePropertyInConstructor") public class WithPrivatePropertyInConstructor extends software.amazon.jsii.JsiiObject { protected WithPrivatePropertyInConstructor(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DerivedClassHasNoProperties/Base.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/derived_class_has_no_properties/Base.java similarity index 87% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DerivedClassHasNoProperties/Base.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/derived_class_has_no_properties/Base.java index 089588633c..8b8d1e67f2 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DerivedClassHasNoProperties/Base.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/derived_class_has_no_properties/Base.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.DerivedClassHasNoProperties; +package software.amazon.jsii.tests.calculator.compliance.derived_class_has_no_properties; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DerivedClassHasNoProperties.Base") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.DerivedClassHasNoProperties.Base") public class Base extends software.amazon.jsii.JsiiObject { protected Base(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DerivedClassHasNoProperties/Derived.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/derived_class_has_no_properties/Derived.java similarity index 75% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DerivedClassHasNoProperties/Derived.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/derived_class_has_no_properties/Derived.java index a21a1dba31..c2fd8a2fba 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DerivedClassHasNoProperties/Derived.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/derived_class_has_no_properties/Derived.java @@ -1,12 +1,12 @@ -package software.amazon.jsii.tests.calculator.DerivedClassHasNoProperties; +package software.amazon.jsii.tests.calculator.compliance.derived_class_has_no_properties; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DerivedClassHasNoProperties.Derived") -public class Derived extends software.amazon.jsii.tests.calculator.DerivedClassHasNoProperties.Base { +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.DerivedClassHasNoProperties.Derived") +public class Derived extends software.amazon.jsii.tests.calculator.compliance.derived_class_has_no_properties.Base { protected Derived(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InterfaceInNamespaceIncludesClasses/Foo.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/interface_in_namespace_includes_classes/Foo.java similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InterfaceInNamespaceIncludesClasses/Foo.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/interface_in_namespace_includes_classes/Foo.java index c5d4bd64c0..eea7b5cb9b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InterfaceInNamespaceIncludesClasses/Foo.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/interface_in_namespace_includes_classes/Foo.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.InterfaceInNamespaceIncludesClasses; +package software.amazon.jsii.tests.calculator.compliance.interface_in_namespace_includes_classes; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.InterfaceInNamespaceIncludesClasses.Foo") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Foo") public class Foo extends software.amazon.jsii.JsiiObject { protected Foo(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InterfaceInNamespaceOnlyInterface/Hello.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/interface_in_namespace_includes_classes/Hello.java similarity index 93% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InterfaceInNamespaceOnlyInterface/Hello.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/interface_in_namespace_includes_classes/Hello.java index 2651725351..b35b7d1de5 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InterfaceInNamespaceOnlyInterface/Hello.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/interface_in_namespace_includes_classes/Hello.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.InterfaceInNamespaceOnlyInterface; +package software.amazon.jsii.tests.calculator.compliance.interface_in_namespace_includes_classes; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.InterfaceInNamespaceOnlyInterface.Hello") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Hello") @software.amazon.jsii.Jsii.Proxy(Hello.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface Hello extends software.amazon.jsii.JsiiSerializable { @@ -88,7 +88,7 @@ public java.lang.Number getFoo() { data.set("foo", om.valueToTree(this.getFoo())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.InterfaceInNamespaceOnlyInterface.Hello")); + struct.set("fqn", om.valueToTree("jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Hello")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InterfaceInNamespaceIncludesClasses/Hello.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/interface_in_namespace_only_interface/Hello.java similarity index 93% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InterfaceInNamespaceIncludesClasses/Hello.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/interface_in_namespace_only_interface/Hello.java index c043e21246..e5a3881998 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InterfaceInNamespaceIncludesClasses/Hello.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/interface_in_namespace_only_interface/Hello.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.InterfaceInNamespaceIncludesClasses; +package software.amazon.jsii.tests.calculator.compliance.interface_in_namespace_only_interface; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.InterfaceInNamespaceIncludesClasses.Hello") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.InterfaceInNamespaceOnlyInterface.Hello") @software.amazon.jsii.Jsii.Proxy(Hello.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface Hello extends software.amazon.jsii.JsiiSerializable { @@ -88,7 +88,7 @@ public java.lang.Number getFoo() { data.set("foo", om.valueToTree(this.getFoo())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.InterfaceInNamespaceIncludesClasses.Hello")); + struct.set("fqn", om.valueToTree("jsii-calc.compliance.InterfaceInNamespaceOnlyInterface.Hello")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DocumentedClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/documented/DocumentedClass.java similarity index 92% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DocumentedClass.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/documented/DocumentedClass.java index 0a7bee5b6c..61314c4610 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DocumentedClass.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/documented/DocumentedClass.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.documented; /** * Here's the first line of the TSDoc comment. @@ -10,7 +10,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DocumentedClass") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.documented.DocumentedClass") public class DocumentedClass extends software.amazon.jsii.JsiiObject { protected DocumentedClass(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -36,7 +36,7 @@ public DocumentedClass() { * @param greetee The person to be greeted. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) - public @org.jetbrains.annotations.NotNull java.lang.Number greet(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.Greetee greetee) { + public @org.jetbrains.annotations.NotNull java.lang.Number greet(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.documented.Greetee greetee) { return this.jsiiCall("greet", java.lang.Number.class, new Object[] { greetee }); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Greetee.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/documented/Greetee.java similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Greetee.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/documented/Greetee.java index 247bbb53f6..b69f54b349 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Greetee.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/documented/Greetee.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.documented; /** * These are some arguments you can pass to a method. @@ -6,7 +6,7 @@ * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Greetee") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.documented.Greetee") @software.amazon.jsii.Jsii.Proxy(Greetee.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface Greetee extends software.amazon.jsii.JsiiSerializable { @@ -98,7 +98,7 @@ public java.lang.String getName() { } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.Greetee")); + struct.set("fqn", om.valueToTree("jsii-calc.documented.Greetee")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Old.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/documented/Old.java similarity index 89% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Old.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/documented/Old.java index ef6e2e728c..74d833caa9 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Old.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/documented/Old.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.documented; /** * Old class. @@ -8,7 +8,7 @@ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Old") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.documented.Old") public class Old extends software.amazon.jsii.JsiiObject { protected Old(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJSII417Derived.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/IJSII417Derived.java similarity index 88% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJSII417Derived.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/IJSII417Derived.java index 54ba7132dc..eecd65c1fc 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJSII417Derived.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/IJSII417Derived.java @@ -1,13 +1,13 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.erasure_tests; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IJSII417Derived") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.erasureTests.IJSII417Derived") @software.amazon.jsii.Jsii.Proxy(IJSII417Derived.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IJSII417Derived extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.IJSII417PublicBaseOfBase { +public interface IJSII417Derived extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.erasure_tests.IJSII417PublicBaseOfBase { /** * EXPERIMENTAL @@ -30,7 +30,7 @@ public interface IJSII417Derived extends software.amazon.jsii.JsiiSerializable, /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IJSII417Derived { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.erasure_tests.IJSII417Derived { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJSII417PublicBaseOfBase.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/IJSII417PublicBaseOfBase.java similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJSII417PublicBaseOfBase.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/IJSII417PublicBaseOfBase.java index 2c6820d81d..ca6aa70b9f 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJSII417PublicBaseOfBase.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/IJSII417PublicBaseOfBase.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.erasure_tests; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IJSII417PublicBaseOfBase") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.erasureTests.IJSII417PublicBaseOfBase") @software.amazon.jsii.Jsii.Proxy(IJSII417PublicBaseOfBase.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IJSII417PublicBaseOfBase extends software.amazon.jsii.JsiiSerializable { @@ -24,7 +24,7 @@ public interface IJSII417PublicBaseOfBase extends software.amazon.jsii.JsiiSeria /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IJSII417PublicBaseOfBase { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.erasure_tests.IJSII417PublicBaseOfBase { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJsii487External.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/IJsii487External.java similarity index 74% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJsii487External.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/IJsii487External.java index 7cde89a598..8f5a543d8b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJsii487External.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/IJsii487External.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.erasure_tests; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IJsii487External") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.erasureTests.IJsii487External") @software.amazon.jsii.Jsii.Proxy(IJsii487External.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IJsii487External extends software.amazon.jsii.JsiiSerializable { @@ -12,7 +12,7 @@ public interface IJsii487External extends software.amazon.jsii.JsiiSerializable /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IJsii487External { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.erasure_tests.IJsii487External { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJsii487External2.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/IJsii487External2.java similarity index 74% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJsii487External2.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/IJsii487External2.java index 8bc93504a3..39a61bafd4 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJsii487External2.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/IJsii487External2.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.erasure_tests; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IJsii487External2") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.erasureTests.IJsii487External2") @software.amazon.jsii.Jsii.Proxy(IJsii487External2.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IJsii487External2 extends software.amazon.jsii.JsiiSerializable { @@ -12,7 +12,7 @@ public interface IJsii487External2 extends software.amazon.jsii.JsiiSerializable /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IJsii487External2 { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.erasure_tests.IJsii487External2 { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJsii496.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/IJsii496.java similarity index 75% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJsii496.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/IJsii496.java index e460b03bc6..5dfcefcb95 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJsii496.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/IJsii496.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.erasure_tests; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IJsii496") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.erasureTests.IJsii496") @software.amazon.jsii.Jsii.Proxy(IJsii496.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IJsii496 extends software.amazon.jsii.JsiiSerializable { @@ -12,7 +12,7 @@ public interface IJsii496 extends software.amazon.jsii.JsiiSerializable { /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IJsii496 { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.erasure_tests.IJsii496 { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSII417Derived.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/JSII417Derived.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSII417Derived.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/JSII417Derived.java index bba61e636c..47950804f2 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSII417Derived.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/JSII417Derived.java @@ -1,12 +1,12 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.erasure_tests; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.JSII417Derived") -public class JSII417Derived extends software.amazon.jsii.tests.calculator.JSII417PublicBaseOfBase { +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.erasureTests.JSII417Derived") +public class JSII417Derived extends software.amazon.jsii.tests.calculator.erasure_tests.JSII417PublicBaseOfBase { protected JSII417Derived(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSII417PublicBaseOfBase.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/JSII417PublicBaseOfBase.java similarity index 79% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSII417PublicBaseOfBase.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/JSII417PublicBaseOfBase.java index 91652bcb91..906ceee129 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSII417PublicBaseOfBase.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/JSII417PublicBaseOfBase.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.erasure_tests; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.JSII417PublicBaseOfBase") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.erasureTests.JSII417PublicBaseOfBase") public class JSII417PublicBaseOfBase extends software.amazon.jsii.JsiiObject { protected JSII417PublicBaseOfBase(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -25,8 +25,8 @@ public JSII417PublicBaseOfBase() { * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.JSII417PublicBaseOfBase makeInstance() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JSII417PublicBaseOfBase.class, "makeInstance", software.amazon.jsii.tests.calculator.JSII417PublicBaseOfBase.class); + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.erasure_tests.JSII417PublicBaseOfBase makeInstance() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.erasure_tests.JSII417PublicBaseOfBase.class, "makeInstance", software.amazon.jsii.tests.calculator.erasure_tests.JSII417PublicBaseOfBase.class); } /** diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Jsii487Derived.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/Jsii487Derived.java similarity index 71% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Jsii487Derived.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/Jsii487Derived.java index d004cbb1e6..3d539eb3d3 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Jsii487Derived.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/Jsii487Derived.java @@ -1,12 +1,12 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.erasure_tests; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Jsii487Derived") -public class Jsii487Derived extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IJsii487External2,software.amazon.jsii.tests.calculator.IJsii487External { +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.erasureTests.Jsii487Derived") +public class Jsii487Derived extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.erasure_tests.IJsii487External2,software.amazon.jsii.tests.calculator.erasure_tests.IJsii487External { protected Jsii487Derived(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Jsii496Derived.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/Jsii496Derived.java similarity index 77% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Jsii496Derived.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/Jsii496Derived.java index ab0d7145d6..33236be210 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Jsii496Derived.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/Jsii496Derived.java @@ -1,12 +1,12 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.erasure_tests; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Jsii496Derived") -public class Jsii496Derived extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IJsii496 { +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.erasureTests.Jsii496Derived") +public class Jsii496Derived extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.erasure_tests.IJsii496 { protected Jsii496Derived(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DeprecatedClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/DeprecatedClass.java similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DeprecatedClass.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/DeprecatedClass.java index 164665b54e..b15f8514c7 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DeprecatedClass.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/DeprecatedClass.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.stability_annotations; /** * @deprecated a pretty boring class @@ -6,7 +6,7 @@ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DeprecatedClass") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.stability_annotations.DeprecatedClass") public class DeprecatedClass extends software.amazon.jsii.JsiiObject { protected DeprecatedClass(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DeprecatedEnum.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/DeprecatedEnum.java similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DeprecatedEnum.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/DeprecatedEnum.java index aee4dd6aaf..64ca88681b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DeprecatedEnum.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/DeprecatedEnum.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.stability_annotations; /** * @deprecated your deprecated selection of bad options @@ -6,7 +6,7 @@ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DeprecatedEnum") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.stability_annotations.DeprecatedEnum") public enum DeprecatedEnum { /** * @deprecated option A is not great diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DeprecatedStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/DeprecatedStruct.java similarity index 94% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DeprecatedStruct.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/DeprecatedStruct.java index f4c0449daf..180a7cb082 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DeprecatedStruct.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/DeprecatedStruct.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.stability_annotations; /** * @deprecated it just wraps a string */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DeprecatedStruct") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.stability_annotations.DeprecatedStruct") @software.amazon.jsii.Jsii.Proxy(DeprecatedStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated @@ -96,7 +96,7 @@ public java.lang.String getReadonlyProperty() { data.set("readonlyProperty", om.valueToTree(this.getReadonlyProperty())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.DeprecatedStruct")); + struct.set("fqn", om.valueToTree("jsii-calc.stability_annotations.DeprecatedStruct")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExperimentalClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/ExperimentalClass.java similarity index 94% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExperimentalClass.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/ExperimentalClass.java index f2e82b1ca5..f47b661033 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExperimentalClass.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/ExperimentalClass.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.stability_annotations; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ExperimentalClass") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.stability_annotations.ExperimentalClass") public class ExperimentalClass extends software.amazon.jsii.JsiiObject { protected ExperimentalClass(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExperimentalEnum.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/ExperimentalEnum.java similarity index 77% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExperimentalEnum.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/ExperimentalEnum.java index f4fdd8d755..f283a1d68d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExperimentalEnum.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/ExperimentalEnum.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.stability_annotations; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ExperimentalEnum") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.stability_annotations.ExperimentalEnum") public enum ExperimentalEnum { /** * EXPERIMENTAL diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExperimentalStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/ExperimentalStruct.java similarity index 94% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExperimentalStruct.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/ExperimentalStruct.java index bb5760fd96..e30fbf2ce1 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExperimentalStruct.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/ExperimentalStruct.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.stability_annotations; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ExperimentalStruct") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.stability_annotations.ExperimentalStruct") @software.amazon.jsii.Jsii.Proxy(ExperimentalStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface ExperimentalStruct extends software.amazon.jsii.JsiiSerializable { @@ -88,7 +88,7 @@ public java.lang.String getReadonlyProperty() { data.set("readonlyProperty", om.valueToTree(this.getReadonlyProperty())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.ExperimentalStruct")); + struct.set("fqn", om.valueToTree("jsii-calc.stability_annotations.ExperimentalStruct")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IDeprecatedInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/IDeprecatedInterface.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IDeprecatedInterface.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/IDeprecatedInterface.java index e21e8f6b01..ecd8318c4a 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IDeprecatedInterface.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/IDeprecatedInterface.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.stability_annotations; /** * @deprecated useless interface */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IDeprecatedInterface") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.stability_annotations.IDeprecatedInterface") @software.amazon.jsii.Jsii.Proxy(IDeprecatedInterface.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated @@ -37,7 +37,7 @@ default void setMutableProperty(final @org.jetbrains.annotations.Nullable java.l /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IDeprecatedInterface { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.stability_annotations.IDeprecatedInterface { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IExperimentalInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/IExperimentalInterface.java similarity index 89% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IExperimentalInterface.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/IExperimentalInterface.java index 0275bc94ce..000bedbd23 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IExperimentalInterface.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/IExperimentalInterface.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.stability_annotations; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IExperimentalInterface") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.stability_annotations.IExperimentalInterface") @software.amazon.jsii.Jsii.Proxy(IExperimentalInterface.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IExperimentalInterface extends software.amazon.jsii.JsiiSerializable { @@ -34,7 +34,7 @@ default void setMutableProperty(final @org.jetbrains.annotations.Nullable java.l /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IExperimentalInterface { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.stability_annotations.IExperimentalInterface { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IStableInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/IStableInterface.java similarity index 89% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IStableInterface.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/IStableInterface.java index 156691d894..465be10a15 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IStableInterface.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/IStableInterface.java @@ -1,9 +1,9 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.stability_annotations; /** */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IStableInterface") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.stability_annotations.IStableInterface") @software.amazon.jsii.Jsii.Proxy(IStableInterface.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public interface IStableInterface extends software.amazon.jsii.JsiiSerializable { @@ -30,7 +30,7 @@ default void setMutableProperty(final @org.jetbrains.annotations.Nullable java.l /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IStableInterface { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.stability_annotations.IStableInterface { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StableClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/StableClass.java similarity index 94% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StableClass.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/StableClass.java index c98dd77ac2..c6d8d1ce78 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StableClass.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/StableClass.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.stability_annotations; /** */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StableClass") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.stability_annotations.StableClass") public class StableClass extends software.amazon.jsii.JsiiObject { protected StableClass(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StableEnum.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/StableEnum.java similarity index 75% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StableEnum.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/StableEnum.java index 7bc834ceba..0a7ce94cef 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StableEnum.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/StableEnum.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.stability_annotations; /** */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StableEnum") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.stability_annotations.StableEnum") public enum StableEnum { /** */ diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StableStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/StableStruct.java similarity index 94% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StableStruct.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/StableStruct.java index 4013d396ec..ff5a310ce9 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StableStruct.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/StableStruct.java @@ -1,9 +1,9 @@ -package software.amazon.jsii.tests.calculator; +package software.amazon.jsii.tests.calculator.stability_annotations; /** */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StableStruct") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.stability_annotations.StableStruct") @software.amazon.jsii.Jsii.Proxy(StableStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public interface StableStruct extends software.amazon.jsii.JsiiSerializable { @@ -86,7 +86,7 @@ public java.lang.String getReadonlyProperty() { data.set("readonlyProperty", om.valueToTree(this.getReadonlyProperty())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.StableStruct")); + struct.set("fqn", om.valueToTree("jsii-calc.stability_annotations.StableStruct")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/__init__.py index 1178cc94f9..ace6563656 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/__init__.py @@ -31,11 +31,11 @@ import builtins import datetime import enum +import publication import typing import jsii import jsii.compat -import publication import scope.jsii_calc_base import scope.jsii_calc_base_of_base @@ -44,74 +44,6 @@ __jsii_assembly__ = jsii.JSIIAssembly.load("jsii-calc", "1.0.0", __name__, "jsii-calc@1.0.0.jsii.tgz") -class AbstractClassBase(metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.AbstractClassBase"): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _AbstractClassBaseProxy - - def __init__(self) -> None: - jsii.create(AbstractClassBase, self, []) - - @builtins.property - @jsii.member(jsii_name="abstractProperty") - @abc.abstractmethod - def abstract_property(self) -> str: - """ - stability - :stability: experimental - """ - ... - - -class _AbstractClassBaseProxy(AbstractClassBase): - @builtins.property - @jsii.member(jsii_name="abstractProperty") - def abstract_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "abstractProperty") - - -class AbstractClassReturner(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AbstractClassReturner"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(AbstractClassReturner, self, []) - - @jsii.member(jsii_name="giveMeAbstract") - def give_me_abstract(self) -> "AbstractClass": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "giveMeAbstract", []) - - @jsii.member(jsii_name="giveMeInterface") - def give_me_interface(self) -> "IInterfaceImplementedByAbstractClass": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "giveMeInterface", []) - - @builtins.property - @jsii.member(jsii_name="returnAbstractFromProperty") - def return_abstract_from_property(self) -> "AbstractClassBase": - """ - stability - :stability: experimental - """ - return jsii.get(self, "returnAbstractFromProperty") - - class AbstractSuite(metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.AbstractSuite"): """Ensures abstract members implementations correctly register overrides in various languages. @@ -188,8163 +120,8156 @@ def _property(self, value: str): jsii.set(self, "property", value) -class AllTypes(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AllTypes"): - """This class includes property for all types supported by jsii. - - The setters will validate - that the value set is of the expected type and throw otherwise. +@jsii.implements(scope.jsii_calc_lib.IFriendly) +class BinaryOperation(scope.jsii_calc_lib.Operation, metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.BinaryOperation"): + """Represents an operation with two operands. stability :stability: experimental """ - def __init__(self) -> None: - jsii.create(AllTypes, self, []) + @builtins.staticmethod + def __jsii_proxy_class__(): + return _BinaryOperationProxy - @jsii.member(jsii_name="anyIn") - def any_in(self, inp: typing.Any) -> None: - """ - :param inp: - + def __init__(self, lhs: scope.jsii_calc_lib.Value, rhs: scope.jsii_calc_lib.Value) -> None: + """Creates a BinaryOperation. - stability - :stability: experimental - """ - return jsii.invoke(self, "anyIn", [inp]) + :param lhs: Left-hand side operand. + :param rhs: Right-hand side operand. - @jsii.member(jsii_name="anyOut") - def any_out(self) -> typing.Any: - """ stability :stability: experimental """ - return jsii.invoke(self, "anyOut", []) + jsii.create(BinaryOperation, self, [lhs, rhs]) - @jsii.member(jsii_name="enumMethod") - def enum_method(self, value: "StringEnum") -> "StringEnum": - """ - :param value: - + @jsii.member(jsii_name="hello") + def hello(self) -> str: + """Say hello! stability :stability: experimental """ - return jsii.invoke(self, "enumMethod", [value]) + return jsii.invoke(self, "hello", []) @builtins.property - @jsii.member(jsii_name="enumPropertyValue") - def enum_property_value(self) -> jsii.Number: - """ + @jsii.member(jsii_name="lhs") + def lhs(self) -> scope.jsii_calc_lib.Value: + """Left-hand side operand. + stability :stability: experimental """ - return jsii.get(self, "enumPropertyValue") + return jsii.get(self, "lhs") @builtins.property - @jsii.member(jsii_name="anyArrayProperty") - def any_array_property(self) -> typing.List[typing.Any]: - """ + @jsii.member(jsii_name="rhs") + def rhs(self) -> scope.jsii_calc_lib.Value: + """Right-hand side operand. + stability :stability: experimental """ - return jsii.get(self, "anyArrayProperty") + return jsii.get(self, "rhs") - @any_array_property.setter - def any_array_property(self, value: typing.List[typing.Any]): - jsii.set(self, "anyArrayProperty", value) - @builtins.property - @jsii.member(jsii_name="anyMapProperty") - def any_map_property(self) -> typing.Mapping[str,typing.Any]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "anyMapProperty") +class _BinaryOperationProxy(BinaryOperation, jsii.proxy_for(scope.jsii_calc_lib.Operation)): + pass + +@jsii.data_type(jsii_type="jsii-calc.CalculatorProps", jsii_struct_bases=[], name_mapping={'initial_value': 'initialValue', 'maximum_value': 'maximumValue'}) +class CalculatorProps(): + def __init__(self, *, initial_value: typing.Optional[jsii.Number]=None, maximum_value: typing.Optional[jsii.Number]=None): + """Properties for Calculator. - @any_map_property.setter - def any_map_property(self, value: typing.Mapping[str,typing.Any]): - jsii.set(self, "anyMapProperty", value) + :param initial_value: The initial value of the calculator. NOTE: Any number works here, it's fine. Default: 0 + :param maximum_value: The maximum value the calculator can store. Default: none - @builtins.property - @jsii.member(jsii_name="anyProperty") - def any_property(self) -> typing.Any: - """ stability :stability: experimental """ - return jsii.get(self, "anyProperty") - - @any_property.setter - def any_property(self, value: typing.Any): - jsii.set(self, "anyProperty", value) + self._values = { + } + if initial_value is not None: self._values["initial_value"] = initial_value + if maximum_value is not None: self._values["maximum_value"] = maximum_value @builtins.property - @jsii.member(jsii_name="arrayProperty") - def array_property(self) -> typing.List[str]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "arrayProperty") + def initial_value(self) -> typing.Optional[jsii.Number]: + """The initial value of the calculator. - @array_property.setter - def array_property(self, value: typing.List[str]): - jsii.set(self, "arrayProperty", value) + NOTE: Any number works here, it's fine. + + default + :default: 0 - @builtins.property - @jsii.member(jsii_name="booleanProperty") - def boolean_property(self) -> bool: - """ stability :stability: experimental """ - return jsii.get(self, "booleanProperty") - - @boolean_property.setter - def boolean_property(self, value: bool): - jsii.set(self, "booleanProperty", value) + return self._values.get('initial_value') @builtins.property - @jsii.member(jsii_name="dateProperty") - def date_property(self) -> datetime.datetime: - """ - stability - :stability: experimental - """ - return jsii.get(self, "dateProperty") + def maximum_value(self) -> typing.Optional[jsii.Number]: + """The maximum value the calculator can store. - @date_property.setter - def date_property(self, value: datetime.datetime): - jsii.set(self, "dateProperty", value) + default + :default: none - @builtins.property - @jsii.member(jsii_name="enumProperty") - def enum_property(self) -> "AllTypesEnum": - """ stability :stability: experimental """ - return jsii.get(self, "enumProperty") + return self._values.get('maximum_value') - @enum_property.setter - def enum_property(self, value: "AllTypesEnum"): - jsii.set(self, "enumProperty", value) + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values - @builtins.property - @jsii.member(jsii_name="jsonProperty") - def json_property(self) -> typing.Mapping[typing.Any, typing.Any]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "jsonProperty") + def __ne__(self, rhs) -> bool: + return not (rhs == self) - @json_property.setter - def json_property(self, value: typing.Mapping[typing.Any, typing.Any]): - jsii.set(self, "jsonProperty", value) + def __repr__(self) -> str: + return 'CalculatorProps(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - @builtins.property - @jsii.member(jsii_name="mapProperty") - def map_property(self) -> typing.Mapping[str,scope.jsii_calc_lib.Number]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "mapProperty") - @map_property.setter - def map_property(self, value: typing.Mapping[str,scope.jsii_calc_lib.Number]): - jsii.set(self, "mapProperty", value) +@jsii.interface(jsii_type="jsii-calc.IFriendlier") +class IFriendlier(scope.jsii_calc_lib.IFriendly, jsii.compat.Protocol): + """Even friendlier classes can implement this interface. + + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IFriendlierProxy + + @jsii.member(jsii_name="farewell") + def farewell(self) -> str: + """Say farewell. - @builtins.property - @jsii.member(jsii_name="numberProperty") - def number_property(self) -> jsii.Number: - """ stability :stability: experimental """ - return jsii.get(self, "numberProperty") + ... + + @jsii.member(jsii_name="goodbye") + def goodbye(self) -> str: + """Say goodbye. - @number_property.setter - def number_property(self, value: jsii.Number): - jsii.set(self, "numberProperty", value) + return + :return: A goodbye blessing. - @builtins.property - @jsii.member(jsii_name="stringProperty") - def string_property(self) -> str: - """ stability :stability: experimental """ - return jsii.get(self, "stringProperty") + ... - @string_property.setter - def string_property(self, value: str): - jsii.set(self, "stringProperty", value) - @builtins.property - @jsii.member(jsii_name="unionArrayProperty") - def union_array_property(self) -> typing.List[typing.Union[jsii.Number, scope.jsii_calc_lib.Value]]: - """ +class _IFriendlierProxy(jsii.proxy_for(scope.jsii_calc_lib.IFriendly)): + """Even friendlier classes can implement this interface. + + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.IFriendlier" + @jsii.member(jsii_name="farewell") + def farewell(self) -> str: + """Say farewell. + stability :stability: experimental """ - return jsii.get(self, "unionArrayProperty") + return jsii.invoke(self, "farewell", []) - @union_array_property.setter - def union_array_property(self, value: typing.List[typing.Union[jsii.Number, scope.jsii_calc_lib.Value]]): - jsii.set(self, "unionArrayProperty", value) + @jsii.member(jsii_name="goodbye") + def goodbye(self) -> str: + """Say goodbye. + + return + :return: A goodbye blessing. - @builtins.property - @jsii.member(jsii_name="unionMapProperty") - def union_map_property(self) -> typing.Mapping[str,typing.Union[str, jsii.Number, scope.jsii_calc_lib.Number]]: - """ stability :stability: experimental """ - return jsii.get(self, "unionMapProperty") + return jsii.invoke(self, "goodbye", []) - @union_map_property.setter - def union_map_property(self, value: typing.Mapping[str,typing.Union[str, jsii.Number, scope.jsii_calc_lib.Number]]): - jsii.set(self, "unionMapProperty", value) - @builtins.property - @jsii.member(jsii_name="unionProperty") - def union_property(self) -> typing.Union[str, jsii.Number, "Multiply", scope.jsii_calc_lib.Number]: - """ +@jsii.interface(jsii_type="jsii-calc.IRandomNumberGenerator") +class IRandomNumberGenerator(jsii.compat.Protocol): + """Generates random numbers. + + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IRandomNumberGeneratorProxy + + @jsii.member(jsii_name="next") + def next(self) -> jsii.Number: + """Returns another random number. + + return + :return: A random number. + stability :stability: experimental """ - return jsii.get(self, "unionProperty") + ... - @union_property.setter - def union_property(self, value: typing.Union[str, jsii.Number, "Multiply", scope.jsii_calc_lib.Number]): - jsii.set(self, "unionProperty", value) - @builtins.property - @jsii.member(jsii_name="unknownArrayProperty") - def unknown_array_property(self) -> typing.List[typing.Any]: - """ +class _IRandomNumberGeneratorProxy(): + """Generates random numbers. + + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.IRandomNumberGenerator" + @jsii.member(jsii_name="next") + def next(self) -> jsii.Number: + """Returns another random number. + + return + :return: A random number. + stability :stability: experimental """ - return jsii.get(self, "unknownArrayProperty") + return jsii.invoke(self, "next", []) - @unknown_array_property.setter - def unknown_array_property(self, value: typing.List[typing.Any]): - jsii.set(self, "unknownArrayProperty", value) - @builtins.property - @jsii.member(jsii_name="unknownMapProperty") - def unknown_map_property(self) -> typing.Mapping[str,typing.Any]: +class MethodNamedProperty(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.MethodNamedProperty"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(MethodNamedProperty, self, []) + + @jsii.member(jsii_name="property") + def property(self) -> str: """ stability :stability: experimental """ - return jsii.get(self, "unknownMapProperty") - - @unknown_map_property.setter - def unknown_map_property(self, value: typing.Mapping[str,typing.Any]): - jsii.set(self, "unknownMapProperty", value) + return jsii.invoke(self, "property", []) @builtins.property - @jsii.member(jsii_name="unknownProperty") - def unknown_property(self) -> typing.Any: + @jsii.member(jsii_name="elite") + def elite(self) -> jsii.Number: """ stability :stability: experimental """ - return jsii.get(self, "unknownProperty") + return jsii.get(self, "elite") - @unknown_property.setter - def unknown_property(self, value: typing.Any): - jsii.set(self, "unknownProperty", value) - @builtins.property - @jsii.member(jsii_name="optionalEnumValue") - def optional_enum_value(self) -> typing.Optional["StringEnum"]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "optionalEnumValue") - - @optional_enum_value.setter - def optional_enum_value(self, value: typing.Optional["StringEnum"]): - jsii.set(self, "optionalEnumValue", value) - - -@jsii.enum(jsii_type="jsii-calc.AllTypesEnum") -class AllTypesEnum(enum.Enum): - """ - stability - :stability: experimental - """ - MY_ENUM_VALUE = "MY_ENUM_VALUE" - """ - stability - :stability: experimental - """ - YOUR_ENUM_VALUE = "YOUR_ENUM_VALUE" - """ - stability - :stability: experimental - """ - THIS_IS_GREAT = "THIS_IS_GREAT" - """ - stability - :stability: experimental - """ +@jsii.implements(IFriendlier, IRandomNumberGenerator) +class Multiply(BinaryOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Multiply"): + """The "*" binary operation. -class AllowedMethodNames(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AllowedMethodNames"): - """ stability :stability: experimental """ - def __init__(self) -> None: - jsii.create(AllowedMethodNames, self, []) + def __init__(self, lhs: scope.jsii_calc_lib.Value, rhs: scope.jsii_calc_lib.Value) -> None: + """Creates a BinaryOperation. - @jsii.member(jsii_name="getBar") - def get_bar(self, _p1: str, _p2: jsii.Number) -> None: - """ - :param _p1: - - :param _p2: - + :param lhs: Left-hand side operand. + :param rhs: Right-hand side operand. stability :stability: experimental """ - return jsii.invoke(self, "getBar", [_p1, _p2]) - - @jsii.member(jsii_name="getFoo") - def get_foo(self, with_param: str) -> str: - """getXxx() is not allowed (see negatives), but getXxx(a, ...) is okay. + jsii.create(Multiply, self, [lhs, rhs]) - :param with_param: - + @jsii.member(jsii_name="farewell") + def farewell(self) -> str: + """Say farewell. stability :stability: experimental """ - return jsii.invoke(self, "getFoo", [with_param]) + return jsii.invoke(self, "farewell", []) - @jsii.member(jsii_name="setBar") - def set_bar(self, _x: str, _y: jsii.Number, _z: bool) -> None: - """ - :param _x: - - :param _y: - - :param _z: - + @jsii.member(jsii_name="goodbye") + def goodbye(self) -> str: + """Say goodbye. stability :stability: experimental """ - return jsii.invoke(self, "setBar", [_x, _y, _z]) - - @jsii.member(jsii_name="setFoo") - def set_foo(self, _x: str, _y: jsii.Number) -> None: - """setFoo(x) is not allowed (see negatives), but setXxx(a, b, ...) is okay. + return jsii.invoke(self, "goodbye", []) - :param _x: - - :param _y: - + @jsii.member(jsii_name="next") + def next(self) -> jsii.Number: + """Returns another random number. stability :stability: experimental """ - return jsii.invoke(self, "setFoo", [_x, _y]) - + return jsii.invoke(self, "next", []) -class AmbiguousParameters(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AmbiguousParameters"): - """ - stability - :stability: experimental - """ - def __init__(self, scope_: "Bell", *, scope: str, props: typing.Optional[bool]=None) -> None: - """ - :param scope_: - - :param scope: - :param props: + @jsii.member(jsii_name="toString") + def to_string(self) -> str: + """String representation of the value. stability :stability: experimental """ - props_ = StructParameterType(scope=scope, props=props) - - jsii.create(AmbiguousParameters, self, [scope_, props_]) + return jsii.invoke(self, "toString", []) @builtins.property - @jsii.member(jsii_name="props") - def props(self) -> "StructParameterType": - """ - stability - :stability: experimental - """ - return jsii.get(self, "props") + @jsii.member(jsii_name="value") + def value(self) -> jsii.Number: + """The value. - @builtins.property - @jsii.member(jsii_name="scope") - def scope(self) -> "Bell": - """ stability :stability: experimental """ - return jsii.get(self, "scope") + return jsii.get(self, "value") -class AsyncVirtualMethods(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AsyncVirtualMethods"): - """ +class PropertyNamedProperty(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.PropertyNamedProperty"): + """Reproduction for https://github.com/aws/jsii/issues/1113 Where a method or property named "property" would result in impossible to load Python code. + stability :stability: experimental """ def __init__(self) -> None: - jsii.create(AsyncVirtualMethods, self, []) + jsii.create(PropertyNamedProperty, self, []) - @jsii.member(jsii_name="callMe") - def call_me(self) -> jsii.Number: + @builtins.property + @jsii.member(jsii_name="property") + def property(self) -> str: """ stability :stability: experimental """ - return jsii.ainvoke(self, "callMe", []) - - @jsii.member(jsii_name="callMe2") - def call_me2(self) -> jsii.Number: - """Just calls "overrideMeToo". + return jsii.get(self, "property") - stability - :stability: experimental + @builtins.property + @jsii.member(jsii_name="yetAnoterOne") + def yet_anoter_one(self) -> bool: """ - return jsii.ainvoke(self, "callMe2", []) - - @jsii.member(jsii_name="callMeDoublePromise") - def call_me_double_promise(self) -> jsii.Number: - """This method calls the "callMe" async method indirectly, which will then invoke a virtual method. - - This is a "double promise" situation, which - means that callbacks are not going to be available immediate, but only - after an "immediates" cycle. - stability :stability: experimental """ - return jsii.ainvoke(self, "callMeDoublePromise", []) + return jsii.get(self, "yetAnoterOne") - @jsii.member(jsii_name="dontOverrideMe") - def dont_override_me(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "dontOverrideMe", []) - @jsii.member(jsii_name="overrideMe") - def override_me(self, mult: jsii.Number) -> jsii.Number: +@jsii.data_type(jsii_type="jsii-calc.SmellyStruct", jsii_struct_bases=[], name_mapping={'property': 'property', 'yet_anoter_one': 'yetAnoterOne'}) +class SmellyStruct(): + def __init__(self, *, property: str, yet_anoter_one: bool): """ - :param mult: - + :param property: + :param yet_anoter_one: stability :stability: experimental """ - return jsii.ainvoke(self, "overrideMe", [mult]) + self._values = { + 'property': property, + 'yet_anoter_one': yet_anoter_one, + } - @jsii.member(jsii_name="overrideMeToo") - def override_me_too(self) -> jsii.Number: + @builtins.property + def property(self) -> str: """ stability :stability: experimental """ - return jsii.ainvoke(self, "overrideMeToo", []) - - -class AugmentableClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AugmentableClass"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(AugmentableClass, self, []) + return self._values.get('property') - @jsii.member(jsii_name="methodOne") - def method_one(self) -> None: + @builtins.property + def yet_anoter_one(self) -> bool: """ stability :stability: experimental """ - return jsii.invoke(self, "methodOne", []) + return self._values.get('yet_anoter_one') - @jsii.member(jsii_name="methodTwo") - def method_two(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "methodTwo", []) + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + def __ne__(self, rhs) -> bool: + return not (rhs == self) -class BaseJsii976(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.BaseJsii976"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(BaseJsii976, self, []) + def __repr__(self) -> str: + return 'SmellyStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) -@jsii.implements(scope.jsii_calc_lib.IFriendly) -class BinaryOperation(scope.jsii_calc_lib.Operation, metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.BinaryOperation"): - """Represents an operation with two operands. +class UnaryOperation(scope.jsii_calc_lib.Operation, metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.UnaryOperation"): + """An operation on a single operand. stability :stability: experimental """ @builtins.staticmethod def __jsii_proxy_class__(): - return _BinaryOperationProxy - - def __init__(self, lhs: scope.jsii_calc_lib.Value, rhs: scope.jsii_calc_lib.Value) -> None: - """Creates a BinaryOperation. - - :param lhs: Left-hand side operand. - :param rhs: Right-hand side operand. + return _UnaryOperationProxy - stability - :stability: experimental + def __init__(self, operand: scope.jsii_calc_lib.Value) -> None: """ - jsii.create(BinaryOperation, self, [lhs, rhs]) - - @jsii.member(jsii_name="hello") - def hello(self) -> str: - """Say hello! + :param operand: - stability :stability: experimental """ - return jsii.invoke(self, "hello", []) + jsii.create(UnaryOperation, self, [operand]) @builtins.property - @jsii.member(jsii_name="lhs") - def lhs(self) -> scope.jsii_calc_lib.Value: - """Left-hand side operand. - + @jsii.member(jsii_name="operand") + def operand(self) -> scope.jsii_calc_lib.Value: + """ stability :stability: experimental """ - return jsii.get(self, "lhs") + return jsii.get(self, "operand") - @builtins.property - @jsii.member(jsii_name="rhs") - def rhs(self) -> scope.jsii_calc_lib.Value: - """Right-hand side operand. +class _UnaryOperationProxy(UnaryOperation, jsii.proxy_for(scope.jsii_calc_lib.Operation)): + pass + +class compliance: + class AbstractClassBase(metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.compliance.AbstractClassBase"): + """ stability :stability: experimental """ - return jsii.get(self, "rhs") + @builtins.staticmethod + def __jsii_proxy_class__(): + return _AbstractClassBaseProxy + def __init__(self) -> None: + jsii.create(AbstractClassBase, self, []) -class _BinaryOperationProxy(BinaryOperation, jsii.proxy_for(scope.jsii_calc_lib.Operation)): - pass + @builtins.property + @jsii.member(jsii_name="abstractProperty") + @abc.abstractmethod + def abstract_property(self) -> str: + """ + stability + :stability: experimental + """ + ... -class Add(BinaryOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Add"): - """The "+" binary operation. - stability - :stability: experimental - """ - def __init__(self, lhs: scope.jsii_calc_lib.Value, rhs: scope.jsii_calc_lib.Value) -> None: - """Creates a BinaryOperation. + class _AbstractClassBaseProxy(AbstractClassBase): + @builtins.property + @jsii.member(jsii_name="abstractProperty") + def abstract_property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "abstractProperty") - :param lhs: Left-hand side operand. - :param rhs: Right-hand side operand. - stability - :stability: experimental + class AbstractClassReturner(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.AbstractClassReturner"): """ - jsii.create(Add, self, [lhs, rhs]) - - @jsii.member(jsii_name="toString") - def to_string(self) -> str: - """String representation of the value. - stability :stability: experimental """ - return jsii.invoke(self, "toString", []) + def __init__(self) -> None: + jsii.create(AbstractClassReturner, self, []) - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> jsii.Number: - """The value. + @jsii.member(jsii_name="giveMeAbstract") + def give_me_abstract(self) -> "AbstractClass": + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "giveMeAbstract", []) - stability - :stability: experimental - """ - return jsii.get(self, "value") + @jsii.member(jsii_name="giveMeInterface") + def give_me_interface(self) -> "IInterfaceImplementedByAbstractClass": + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "giveMeInterface", []) + @builtins.property + @jsii.member(jsii_name="returnAbstractFromProperty") + def return_abstract_from_property(self) -> "AbstractClassBase": + """ + stability + :stability: experimental + """ + return jsii.get(self, "returnAbstractFromProperty") -@jsii.data_type(jsii_type="jsii-calc.CalculatorProps", jsii_struct_bases=[], name_mapping={'initial_value': 'initialValue', 'maximum_value': 'maximumValue'}) -class CalculatorProps(): - def __init__(self, *, initial_value: typing.Optional[jsii.Number]=None, maximum_value: typing.Optional[jsii.Number]=None): - """Properties for Calculator. - :param initial_value: The initial value of the calculator. NOTE: Any number works here, it's fine. Default: 0 - :param maximum_value: The maximum value the calculator can store. Default: none + class AllTypes(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.AllTypes"): + """This class includes property for all types supported by jsii. + + The setters will validate + that the value set is of the expected type and throw otherwise. stability :stability: experimental """ - self._values = { - } - if initial_value is not None: self._values["initial_value"] = initial_value - if maximum_value is not None: self._values["maximum_value"] = maximum_value + def __init__(self) -> None: + jsii.create(AllTypes, self, []) - @builtins.property - def initial_value(self) -> typing.Optional[jsii.Number]: - """The initial value of the calculator. + @jsii.member(jsii_name="anyIn") + def any_in(self, inp: typing.Any) -> None: + """ + :param inp: - - NOTE: Any number works here, it's fine. + stability + :stability: experimental + """ + return jsii.invoke(self, "anyIn", [inp]) - default - :default: 0 + @jsii.member(jsii_name="anyOut") + def any_out(self) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "anyOut", []) - stability - :stability: experimental - """ - return self._values.get('initial_value') + @jsii.member(jsii_name="enumMethod") + def enum_method(self, value: "StringEnum") -> "StringEnum": + """ + :param value: - - @builtins.property - def maximum_value(self) -> typing.Optional[jsii.Number]: - """The maximum value the calculator can store. + stability + :stability: experimental + """ + return jsii.invoke(self, "enumMethod", [value]) - default - :default: none + @builtins.property + @jsii.member(jsii_name="enumPropertyValue") + def enum_property_value(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.get(self, "enumPropertyValue") - stability - :stability: experimental - """ - return self._values.get('maximum_value') + @builtins.property + @jsii.member(jsii_name="anyArrayProperty") + def any_array_property(self) -> typing.List[typing.Any]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "anyArrayProperty") - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values + @any_array_property.setter + def any_array_property(self, value: typing.List[typing.Any]): + jsii.set(self, "anyArrayProperty", value) - def __ne__(self, rhs) -> bool: - return not (rhs == self) + @builtins.property + @jsii.member(jsii_name="anyMapProperty") + def any_map_property(self) -> typing.Mapping[str,typing.Any]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "anyMapProperty") - def __repr__(self) -> str: - return 'CalculatorProps(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + @any_map_property.setter + def any_map_property(self, value: typing.Mapping[str,typing.Any]): + jsii.set(self, "anyMapProperty", value) + @builtins.property + @jsii.member(jsii_name="anyProperty") + def any_property(self) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.get(self, "anyProperty") -class ClassWithCollections(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassWithCollections"): - """ - stability - :stability: experimental - """ - def __init__(self, map: typing.Mapping[str,str], array: typing.List[str]) -> None: - """ - :param map: - - :param array: - + @any_property.setter + def any_property(self, value: typing.Any): + jsii.set(self, "anyProperty", value) - stability - :stability: experimental - """ - jsii.create(ClassWithCollections, self, [map, array]) + @builtins.property + @jsii.member(jsii_name="arrayProperty") + def array_property(self) -> typing.List[str]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "arrayProperty") - @jsii.member(jsii_name="createAList") - @builtins.classmethod - def create_a_list(cls) -> typing.List[str]: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "createAList", []) + @array_property.setter + def array_property(self, value: typing.List[str]): + jsii.set(self, "arrayProperty", value) - @jsii.member(jsii_name="createAMap") - @builtins.classmethod - def create_a_map(cls) -> typing.Mapping[str,str]: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "createAMap", []) + @builtins.property + @jsii.member(jsii_name="booleanProperty") + def boolean_property(self) -> bool: + """ + stability + :stability: experimental + """ + return jsii.get(self, "booleanProperty") - @jsii.python.classproperty - @jsii.member(jsii_name="staticArray") - def static_array(cls) -> typing.List[str]: - """ - stability - :stability: experimental - """ - return jsii.sget(cls, "staticArray") + @boolean_property.setter + def boolean_property(self, value: bool): + jsii.set(self, "booleanProperty", value) - @static_array.setter - def static_array(cls, value: typing.List[str]): - jsii.sset(cls, "staticArray", value) + @builtins.property + @jsii.member(jsii_name="dateProperty") + def date_property(self) -> datetime.datetime: + """ + stability + :stability: experimental + """ + return jsii.get(self, "dateProperty") - @jsii.python.classproperty - @jsii.member(jsii_name="staticMap") - def static_map(cls) -> typing.Mapping[str,str]: - """ - stability - :stability: experimental - """ - return jsii.sget(cls, "staticMap") + @date_property.setter + def date_property(self, value: datetime.datetime): + jsii.set(self, "dateProperty", value) - @static_map.setter - def static_map(cls, value: typing.Mapping[str,str]): - jsii.sset(cls, "staticMap", value) + @builtins.property + @jsii.member(jsii_name="enumProperty") + def enum_property(self) -> "AllTypesEnum": + """ + stability + :stability: experimental + """ + return jsii.get(self, "enumProperty") - @builtins.property - @jsii.member(jsii_name="array") - def array(self) -> typing.List[str]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "array") + @enum_property.setter + def enum_property(self, value: "AllTypesEnum"): + jsii.set(self, "enumProperty", value) - @array.setter - def array(self, value: typing.List[str]): - jsii.set(self, "array", value) + @builtins.property + @jsii.member(jsii_name="jsonProperty") + def json_property(self) -> typing.Mapping[typing.Any, typing.Any]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "jsonProperty") - @builtins.property - @jsii.member(jsii_name="map") - def map(self) -> typing.Mapping[str,str]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "map") + @json_property.setter + def json_property(self, value: typing.Mapping[typing.Any, typing.Any]): + jsii.set(self, "jsonProperty", value) - @map.setter - def map(self, value: typing.Mapping[str,str]): - jsii.set(self, "map", value) + @builtins.property + @jsii.member(jsii_name="mapProperty") + def map_property(self) -> typing.Mapping[str,scope.jsii_calc_lib.Number]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "mapProperty") + @map_property.setter + def map_property(self, value: typing.Mapping[str,scope.jsii_calc_lib.Number]): + jsii.set(self, "mapProperty", value) -class ClassWithDocs(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassWithDocs"): - """This class has docs. + @builtins.property + @jsii.member(jsii_name="numberProperty") + def number_property(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.get(self, "numberProperty") - The docs are great. They're a bunch of tags. + @number_property.setter + def number_property(self, value: jsii.Number): + jsii.set(self, "numberProperty", value) - see - :see: https://aws.amazon.com/ - customAttribute: - :customAttribute:: hasAValue + @builtins.property + @jsii.member(jsii_name="stringProperty") + def string_property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "stringProperty") - Example:: + @string_property.setter + def string_property(self, value: str): + jsii.set(self, "stringProperty", value) - # Example automatically generated. See https://github.com/aws/jsii/issues/826 - def an_example(): - pass - """ - def __init__(self) -> None: - jsii.create(ClassWithDocs, self, []) + @builtins.property + @jsii.member(jsii_name="unionArrayProperty") + def union_array_property(self) -> typing.List[typing.Union[jsii.Number, scope.jsii_calc_lib.Value]]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "unionArrayProperty") + @union_array_property.setter + def union_array_property(self, value: typing.List[typing.Union[jsii.Number, scope.jsii_calc_lib.Value]]): + jsii.set(self, "unionArrayProperty", value) -class ClassWithJavaReservedWords(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassWithJavaReservedWords"): - """ - stability - :stability: experimental - """ - def __init__(self, int: str) -> None: - """ - :param int: - + @builtins.property + @jsii.member(jsii_name="unionMapProperty") + def union_map_property(self) -> typing.Mapping[str,typing.Union[str, jsii.Number, scope.jsii_calc_lib.Number]]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "unionMapProperty") - stability - :stability: experimental - """ - jsii.create(ClassWithJavaReservedWords, self, [int]) + @union_map_property.setter + def union_map_property(self, value: typing.Mapping[str,typing.Union[str, jsii.Number, scope.jsii_calc_lib.Number]]): + jsii.set(self, "unionMapProperty", value) - @jsii.member(jsii_name="import") - def import_(self, assert_: str) -> str: - """ - :param assert_: - + @builtins.property + @jsii.member(jsii_name="unionProperty") + def union_property(self) -> typing.Union[str, jsii.Number, jsii_calc.Multiply, scope.jsii_calc_lib.Number]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "unionProperty") - stability - :stability: experimental - """ - return jsii.invoke(self, "import", [assert_]) + @union_property.setter + def union_property(self, value: typing.Union[str, jsii.Number, jsii_calc.Multiply, scope.jsii_calc_lib.Number]): + jsii.set(self, "unionProperty", value) - @builtins.property - @jsii.member(jsii_name="int") - def int(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "int") + @builtins.property + @jsii.member(jsii_name="unknownArrayProperty") + def unknown_array_property(self) -> typing.List[typing.Any]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "unknownArrayProperty") + @unknown_array_property.setter + def unknown_array_property(self, value: typing.List[typing.Any]): + jsii.set(self, "unknownArrayProperty", value) -class ClassWithMutableObjectLiteralProperty(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassWithMutableObjectLiteralProperty"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(ClassWithMutableObjectLiteralProperty, self, []) + @builtins.property + @jsii.member(jsii_name="unknownMapProperty") + def unknown_map_property(self) -> typing.Mapping[str,typing.Any]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "unknownMapProperty") - @builtins.property - @jsii.member(jsii_name="mutableObject") - def mutable_object(self) -> "IMutableObjectLiteral": - """ - stability - :stability: experimental - """ - return jsii.get(self, "mutableObject") + @unknown_map_property.setter + def unknown_map_property(self, value: typing.Mapping[str,typing.Any]): + jsii.set(self, "unknownMapProperty", value) + + @builtins.property + @jsii.member(jsii_name="unknownProperty") + def unknown_property(self) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.get(self, "unknownProperty") - @mutable_object.setter - def mutable_object(self, value: "IMutableObjectLiteral"): - jsii.set(self, "mutableObject", value) + @unknown_property.setter + def unknown_property(self, value: typing.Any): + jsii.set(self, "unknownProperty", value) + @builtins.property + @jsii.member(jsii_name="optionalEnumValue") + def optional_enum_value(self) -> typing.Optional["StringEnum"]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "optionalEnumValue") -class ConfusingToJackson(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConfusingToJackson"): - """This tries to confuse Jackson by having overloaded property setters. + @optional_enum_value.setter + def optional_enum_value(self, value: typing.Optional["StringEnum"]): + jsii.set(self, "optionalEnumValue", value) - see - :see: https://github.com/aws/aws-cdk/issues/4080 - stability - :stability: experimental - """ - @jsii.member(jsii_name="makeInstance") - @builtins.classmethod - def make_instance(cls) -> "ConfusingToJackson": + + @jsii.enum(jsii_type="jsii-calc.compliance.AllTypesEnum") + class AllTypesEnum(enum.Enum): """ stability :stability: experimental """ - return jsii.sinvoke(cls, "makeInstance", []) - - @jsii.member(jsii_name="makeStructInstance") - @builtins.classmethod - def make_struct_instance(cls) -> "ConfusingToJacksonStruct": + MY_ENUM_VALUE = "MY_ENUM_VALUE" """ stability :stability: experimental """ - return jsii.sinvoke(cls, "makeStructInstance", []) - - @builtins.property - @jsii.member(jsii_name="unionProperty") - def union_property(self) -> typing.Optional[typing.Union[typing.Optional[scope.jsii_calc_lib.IFriendly], typing.Optional[typing.List[typing.Union[scope.jsii_calc_lib.IFriendly, "AbstractClass"]]]]]: + YOUR_ENUM_VALUE = "YOUR_ENUM_VALUE" """ stability :stability: experimental """ - return jsii.get(self, "unionProperty") - - @union_property.setter - def union_property(self, value: typing.Optional[typing.Union[typing.Optional[scope.jsii_calc_lib.IFriendly], typing.Optional[typing.List[typing.Union[scope.jsii_calc_lib.IFriendly, "AbstractClass"]]]]]): - jsii.set(self, "unionProperty", value) - - -@jsii.data_type(jsii_type="jsii-calc.ConfusingToJacksonStruct", jsii_struct_bases=[], name_mapping={'union_property': 'unionProperty'}) -class ConfusingToJacksonStruct(): - def __init__(self, *, union_property: typing.Optional[typing.Union[typing.Optional[scope.jsii_calc_lib.IFriendly], typing.Optional[typing.List[typing.Union[scope.jsii_calc_lib.IFriendly, "AbstractClass"]]]]]=None): + THIS_IS_GREAT = "THIS_IS_GREAT" """ - :param union_property: - stability :stability: experimental """ - self._values = { - } - if union_property is not None: self._values["union_property"] = union_property - @builtins.property - def union_property(self) -> typing.Optional[typing.Union[typing.Optional[scope.jsii_calc_lib.IFriendly], typing.Optional[typing.List[typing.Union[scope.jsii_calc_lib.IFriendly, "AbstractClass"]]]]]: + class AllowedMethodNames(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.AllowedMethodNames"): """ stability :stability: experimental """ - return self._values.get('union_property') + def __init__(self) -> None: + jsii.create(AllowedMethodNames, self, []) - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values + @jsii.member(jsii_name="getBar") + def get_bar(self, _p1: str, _p2: jsii.Number) -> None: + """ + :param _p1: - + :param _p2: - - def __ne__(self, rhs) -> bool: - return not (rhs == self) + stability + :stability: experimental + """ + return jsii.invoke(self, "getBar", [_p1, _p2]) - def __repr__(self) -> str: - return 'ConfusingToJacksonStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + @jsii.member(jsii_name="getFoo") + def get_foo(self, with_param: str) -> str: + """getXxx() is not allowed (see negatives), but getXxx(a, ...) is okay. + :param with_param: - -class ConstructorPassesThisOut(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConstructorPassesThisOut"): - """ - stability - :stability: experimental - """ - def __init__(self, consumer: "PartiallyInitializedThisConsumer") -> None: - """ - :param consumer: - + stability + :stability: experimental + """ + return jsii.invoke(self, "getFoo", [with_param]) - stability - :stability: experimental - """ - jsii.create(ConstructorPassesThisOut, self, [consumer]) + @jsii.member(jsii_name="setBar") + def set_bar(self, _x: str, _y: jsii.Number, _z: bool) -> None: + """ + :param _x: - + :param _y: - + :param _z: - + stability + :stability: experimental + """ + return jsii.invoke(self, "setBar", [_x, _y, _z]) -class Constructors(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Constructors"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(Constructors, self, []) + @jsii.member(jsii_name="setFoo") + def set_foo(self, _x: str, _y: jsii.Number) -> None: + """setFoo(x) is not allowed (see negatives), but setXxx(a, b, ...) is okay. - @jsii.member(jsii_name="hiddenInterface") - @builtins.classmethod - def hidden_interface(cls) -> "IPublicInterface": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "hiddenInterface", []) + :param _x: - + :param _y: - - @jsii.member(jsii_name="hiddenInterfaces") - @builtins.classmethod - def hidden_interfaces(cls) -> typing.List["IPublicInterface"]: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "hiddenInterfaces", []) + stability + :stability: experimental + """ + return jsii.invoke(self, "setFoo", [_x, _y]) - @jsii.member(jsii_name="hiddenSubInterfaces") - @builtins.classmethod - def hidden_sub_interfaces(cls) -> typing.List["IPublicInterface"]: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "hiddenSubInterfaces", []) - @jsii.member(jsii_name="makeClass") - @builtins.classmethod - def make_class(cls) -> "PublicClass": + class AmbiguousParameters(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.AmbiguousParameters"): """ stability :stability: experimental """ - return jsii.sinvoke(cls, "makeClass", []) + def __init__(self, scope_: "Bell", *, scope: str, props: typing.Optional[bool]=None) -> None: + """ + :param scope_: - + :param scope: + :param props: - @jsii.member(jsii_name="makeInterface") - @builtins.classmethod - def make_interface(cls) -> "IPublicInterface": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "makeInterface", []) + stability + :stability: experimental + """ + props_ = StructParameterType(scope=scope, props=props) - @jsii.member(jsii_name="makeInterface2") - @builtins.classmethod - def make_interface2(cls) -> "IPublicInterface2": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "makeInterface2", []) - - @jsii.member(jsii_name="makeInterfaces") - @builtins.classmethod - def make_interfaces(cls) -> typing.List["IPublicInterface"]: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "makeInterfaces", []) + jsii.create(AmbiguousParameters, self, [scope_, props_]) + @builtins.property + @jsii.member(jsii_name="props") + def props(self) -> "StructParameterType": + """ + stability + :stability: experimental + """ + return jsii.get(self, "props") -class ConsumePureInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConsumePureInterface"): - """ - stability - :stability: experimental - """ - def __init__(self, delegate: "IStructReturningDelegate") -> None: - """ - :param delegate: - + @builtins.property + @jsii.member(jsii_name="scope") + def scope(self) -> "Bell": + """ + stability + :stability: experimental + """ + return jsii.get(self, "scope") - stability - :stability: experimental - """ - jsii.create(ConsumePureInterface, self, [delegate]) - @jsii.member(jsii_name="workItBaby") - def work_it_baby(self) -> "StructB": + class AsyncVirtualMethods(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.AsyncVirtualMethods"): """ stability :stability: experimental """ - return jsii.invoke(self, "workItBaby", []) + def __init__(self) -> None: + jsii.create(AsyncVirtualMethods, self, []) + @jsii.member(jsii_name="callMe") + def call_me(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.ainvoke(self, "callMe", []) -class ConsumerCanRingBell(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConsumerCanRingBell"): - """Test calling back to consumers that implement interfaces. + @jsii.member(jsii_name="callMe2") + def call_me2(self) -> jsii.Number: + """Just calls "overrideMeToo". - Check that if a JSII consumer implements IConsumerWithInterfaceParam, they can call - the method on the argument that they're passed... + stability + :stability: experimental + """ + return jsii.ainvoke(self, "callMe2", []) - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(ConsumerCanRingBell, self, []) + @jsii.member(jsii_name="callMeDoublePromise") + def call_me_double_promise(self) -> jsii.Number: + """This method calls the "callMe" async method indirectly, which will then invoke a virtual method. - @jsii.member(jsii_name="staticImplementedByObjectLiteral") - @builtins.classmethod - def static_implemented_by_object_literal(cls, ringer: "IBellRinger") -> bool: - """...if the interface is implemented using an object literal. + This is a "double promise" situation, which + means that callbacks are not going to be available immediate, but only + after an "immediates" cycle. - Returns whether the bell was rung. + stability + :stability: experimental + """ + return jsii.ainvoke(self, "callMeDoublePromise", []) - :param ringer: - + @jsii.member(jsii_name="dontOverrideMe") + def dont_override_me(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "dontOverrideMe", []) - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "staticImplementedByObjectLiteral", [ringer]) + @jsii.member(jsii_name="overrideMe") + def override_me(self, mult: jsii.Number) -> jsii.Number: + """ + :param mult: - - @jsii.member(jsii_name="staticImplementedByPrivateClass") - @builtins.classmethod - def static_implemented_by_private_class(cls, ringer: "IBellRinger") -> bool: - """...if the interface is implemented using a private class. + stability + :stability: experimental + """ + return jsii.ainvoke(self, "overrideMe", [mult]) - Return whether the bell was rung. + @jsii.member(jsii_name="overrideMeToo") + def override_me_too(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.ainvoke(self, "overrideMeToo", []) - :param ringer: - + class AugmentableClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.AugmentableClass"): + """ stability :stability: experimental """ - return jsii.sinvoke(cls, "staticImplementedByPrivateClass", [ringer]) + def __init__(self) -> None: + jsii.create(AugmentableClass, self, []) - @jsii.member(jsii_name="staticImplementedByPublicClass") - @builtins.classmethod - def static_implemented_by_public_class(cls, ringer: "IBellRinger") -> bool: - """...if the interface is implemented using a public class. + @jsii.member(jsii_name="methodOne") + def method_one(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "methodOne", []) - Return whether the bell was rung. + @jsii.member(jsii_name="methodTwo") + def method_two(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "methodTwo", []) - :param ringer: - + class BaseJsii976(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.BaseJsii976"): + """ stability :stability: experimental """ - return jsii.sinvoke(cls, "staticImplementedByPublicClass", [ringer]) - - @jsii.member(jsii_name="staticWhenTypedAsClass") - @builtins.classmethod - def static_when_typed_as_class(cls, ringer: "IConcreteBellRinger") -> bool: - """If the parameter is a concrete class instead of an interface. - - Return whether the bell was rung. + def __init__(self) -> None: + jsii.create(BaseJsii976, self, []) - :param ringer: - + class ClassWithCollections(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ClassWithCollections"): + """ stability :stability: experimental """ - return jsii.sinvoke(cls, "staticWhenTypedAsClass", [ringer]) + def __init__(self, map: typing.Mapping[str,str], array: typing.List[str]) -> None: + """ + :param map: - + :param array: - - @jsii.member(jsii_name="implementedByObjectLiteral") - def implemented_by_object_literal(self, ringer: "IBellRinger") -> bool: - """...if the interface is implemented using an object literal. + stability + :stability: experimental + """ + jsii.create(ClassWithCollections, self, [map, array]) - Returns whether the bell was rung. + @jsii.member(jsii_name="createAList") + @builtins.classmethod + def create_a_list(cls) -> typing.List[str]: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "createAList", []) - :param ringer: - + @jsii.member(jsii_name="createAMap") + @builtins.classmethod + def create_a_map(cls) -> typing.Mapping[str,str]: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "createAMap", []) - stability - :stability: experimental - """ - return jsii.invoke(self, "implementedByObjectLiteral", [ringer]) + @jsii.python.classproperty + @jsii.member(jsii_name="staticArray") + def static_array(cls) -> typing.List[str]: + """ + stability + :stability: experimental + """ + return jsii.sget(cls, "staticArray") - @jsii.member(jsii_name="implementedByPrivateClass") - def implemented_by_private_class(self, ringer: "IBellRinger") -> bool: - """...if the interface is implemented using a private class. + @static_array.setter + def static_array(cls, value: typing.List[str]): + jsii.sset(cls, "staticArray", value) - Return whether the bell was rung. + @jsii.python.classproperty + @jsii.member(jsii_name="staticMap") + def static_map(cls) -> typing.Mapping[str,str]: + """ + stability + :stability: experimental + """ + return jsii.sget(cls, "staticMap") - :param ringer: - + @static_map.setter + def static_map(cls, value: typing.Mapping[str,str]): + jsii.sset(cls, "staticMap", value) - stability - :stability: experimental - """ - return jsii.invoke(self, "implementedByPrivateClass", [ringer]) + @builtins.property + @jsii.member(jsii_name="array") + def array(self) -> typing.List[str]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "array") - @jsii.member(jsii_name="implementedByPublicClass") - def implemented_by_public_class(self, ringer: "IBellRinger") -> bool: - """...if the interface is implemented using a public class. + @array.setter + def array(self, value: typing.List[str]): + jsii.set(self, "array", value) - Return whether the bell was rung. + @builtins.property + @jsii.member(jsii_name="map") + def map(self) -> typing.Mapping[str,str]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "map") - :param ringer: - + @map.setter + def map(self, value: typing.Mapping[str,str]): + jsii.set(self, "map", value) - stability - :stability: experimental - """ - return jsii.invoke(self, "implementedByPublicClass", [ringer]) - @jsii.member(jsii_name="whenTypedAsClass") - def when_typed_as_class(self, ringer: "IConcreteBellRinger") -> bool: - """If the parameter is a concrete class instead of an interface. + class ClassWithDocs(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ClassWithDocs"): + """This class has docs. - Return whether the bell was rung. + The docs are great. They're a bunch of tags. - :param ringer: - + see + :see: https://aws.amazon.com/ + customAttribute: + :customAttribute:: hasAValue - stability - :stability: experimental - """ - return jsii.invoke(self, "whenTypedAsClass", [ringer]) + Example:: + # Example automatically generated. See https://github.com/aws/jsii/issues/826 + def an_example(): + pass + """ + def __init__(self) -> None: + jsii.create(ClassWithDocs, self, []) -class ConsumersOfThisCrazyTypeSystem(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConsumersOfThisCrazyTypeSystem"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(ConsumersOfThisCrazyTypeSystem, self, []) - @jsii.member(jsii_name="consumeAnotherPublicInterface") - def consume_another_public_interface(self, obj: "IAnotherPublicInterface") -> str: + class ClassWithJavaReservedWords(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ClassWithJavaReservedWords"): """ - :param obj: - - stability :stability: experimental """ - return jsii.invoke(self, "consumeAnotherPublicInterface", [obj]) + def __init__(self, int: str) -> None: + """ + :param int: - - @jsii.member(jsii_name="consumeNonInternalInterface") - def consume_non_internal_interface(self, obj: "INonInternalInterface") -> typing.Any: - """ - :param obj: - + stability + :stability: experimental + """ + jsii.create(ClassWithJavaReservedWords, self, [int]) - stability - :stability: experimental - """ - return jsii.invoke(self, "consumeNonInternalInterface", [obj]) + @jsii.member(jsii_name="import") + def import_(self, assert_: str) -> str: + """ + :param assert_: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "import", [assert_]) + @builtins.property + @jsii.member(jsii_name="int") + def int(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "int") -class DataRenderer(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DataRenderer"): - """Verifies proper type handling through dynamic overrides. - stability - :stability: experimental - """ - def __init__(self) -> None: + class ClassWithMutableObjectLiteralProperty(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ClassWithMutableObjectLiteralProperty"): """ stability :stability: experimental """ - jsii.create(DataRenderer, self, []) + def __init__(self) -> None: + jsii.create(ClassWithMutableObjectLiteralProperty, self, []) - @jsii.member(jsii_name="render") - def render(self, *, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None) -> str: - """ - :param anumber: An awesome number value. - :param astring: A string value. - :param first_optional: + @builtins.property + @jsii.member(jsii_name="mutableObject") + def mutable_object(self) -> "IMutableObjectLiteral": + """ + stability + :stability: experimental + """ + return jsii.get(self, "mutableObject") - stability - :stability: experimental - """ - data = scope.jsii_calc_lib.MyFirstStruct(anumber=anumber, astring=astring, first_optional=first_optional) + @mutable_object.setter + def mutable_object(self, value: "IMutableObjectLiteral"): + jsii.set(self, "mutableObject", value) - return jsii.invoke(self, "render", [data]) - @jsii.member(jsii_name="renderArbitrary") - def render_arbitrary(self, data: typing.Mapping[str,typing.Any]) -> str: - """ - :param data: - + class ConfusingToJackson(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ConfusingToJackson"): + """This tries to confuse Jackson by having overloaded property setters. + see + :see: https://github.com/aws/aws-cdk/issues/4080 stability :stability: experimental """ - return jsii.invoke(self, "renderArbitrary", [data]) + @jsii.member(jsii_name="makeInstance") + @builtins.classmethod + def make_instance(cls) -> "ConfusingToJackson": + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "makeInstance", []) - @jsii.member(jsii_name="renderMap") - def render_map(self, map: typing.Mapping[str,typing.Any]) -> str: - """ - :param map: - + @jsii.member(jsii_name="makeStructInstance") + @builtins.classmethod + def make_struct_instance(cls) -> "ConfusingToJacksonStruct": + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "makeStructInstance", []) - stability - :stability: experimental - """ - return jsii.invoke(self, "renderMap", [map]) + @builtins.property + @jsii.member(jsii_name="unionProperty") + def union_property(self) -> typing.Optional[typing.Union[typing.Optional[scope.jsii_calc_lib.IFriendly], typing.Optional[typing.List[typing.Union["AbstractClass", scope.jsii_calc_lib.IFriendly]]]]]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "unionProperty") + @union_property.setter + def union_property(self, value: typing.Optional[typing.Union[typing.Optional[scope.jsii_calc_lib.IFriendly], typing.Optional[typing.List[typing.Union["AbstractClass", scope.jsii_calc_lib.IFriendly]]]]]): + jsii.set(self, "unionProperty", value) -class DefaultedConstructorArgument(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DefaultedConstructorArgument"): - """ - stability - :stability: experimental - """ - def __init__(self, arg1: typing.Optional[jsii.Number]=None, arg2: typing.Optional[str]=None, arg3: typing.Optional[datetime.datetime]=None) -> None: - """ - :param arg1: - - :param arg2: - - :param arg3: - - stability - :stability: experimental - """ - jsii.create(DefaultedConstructorArgument, self, [arg1, arg2, arg3]) + @jsii.data_type(jsii_type="jsii-calc.compliance.ConfusingToJacksonStruct", jsii_struct_bases=[], name_mapping={'union_property': 'unionProperty'}) + class ConfusingToJacksonStruct(): + def __init__(self, *, union_property: typing.Optional[typing.Union[typing.Optional[scope.jsii_calc_lib.IFriendly], typing.Optional[typing.List[typing.Union["AbstractClass", scope.jsii_calc_lib.IFriendly]]]]]=None): + """ + :param union_property: - @builtins.property - @jsii.member(jsii_name="arg1") - def arg1(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "arg1") + stability + :stability: experimental + """ + self._values = { + } + if union_property is not None: self._values["union_property"] = union_property - @builtins.property - @jsii.member(jsii_name="arg3") - def arg3(self) -> datetime.datetime: - """ - stability - :stability: experimental - """ - return jsii.get(self, "arg3") + @builtins.property + def union_property(self) -> typing.Optional[typing.Union[typing.Optional[scope.jsii_calc_lib.IFriendly], typing.Optional[typing.List[typing.Union["AbstractClass", scope.jsii_calc_lib.IFriendly]]]]]: + """ + stability + :stability: experimental + """ + return self._values.get('union_property') - @builtins.property - @jsii.member(jsii_name="arg2") - def arg2(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "arg2") + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + def __ne__(self, rhs) -> bool: + return not (rhs == self) -class Demonstrate982(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Demonstrate982"): - """1. + def __repr__(self) -> str: + return 'ConfusingToJacksonStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - call #takeThis() -> An ObjectRef will be provisioned for the value (it'll be re-used!) - 2. call #takeThisToo() -> The ObjectRef from before will need to be down-cased to the ParentStruct982 type - stability - :stability: experimental - """ - def __init__(self) -> None: + class ConstructorPassesThisOut(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ConstructorPassesThisOut"): """ stability :stability: experimental """ - jsii.create(Demonstrate982, self, []) - - @jsii.member(jsii_name="takeThis") - @builtins.classmethod - def take_this(cls) -> "ChildStruct982": - """It's dangerous to go alone! + def __init__(self, consumer: "PartiallyInitializedThisConsumer") -> None: + """ + :param consumer: - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "takeThis", []) + stability + :stability: experimental + """ + jsii.create(ConstructorPassesThisOut, self, [consumer]) - @jsii.member(jsii_name="takeThisToo") - @builtins.classmethod - def take_this_too(cls) -> "ParentStruct982": - """It's dangerous to go alone! + class Constructors(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.Constructors"): + """ stability :stability: experimental """ - return jsii.sinvoke(cls, "takeThisToo", []) - + def __init__(self) -> None: + jsii.create(Constructors, self, []) -class DeprecatedClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DeprecatedClass"): - """ - deprecated - :deprecated: a pretty boring class + @jsii.member(jsii_name="hiddenInterface") + @builtins.classmethod + def hidden_interface(cls) -> "IPublicInterface": + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "hiddenInterface", []) - stability - :stability: deprecated - """ - def __init__(self, readonly_string: str, mutable_number: typing.Optional[jsii.Number]=None) -> None: - """ - :param readonly_string: - - :param mutable_number: - + @jsii.member(jsii_name="hiddenInterfaces") + @builtins.classmethod + def hidden_interfaces(cls) -> typing.List["IPublicInterface"]: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "hiddenInterfaces", []) - deprecated - :deprecated: this constructor is "just" okay + @jsii.member(jsii_name="hiddenSubInterfaces") + @builtins.classmethod + def hidden_sub_interfaces(cls) -> typing.List["IPublicInterface"]: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "hiddenSubInterfaces", []) - stability - :stability: deprecated - """ - jsii.create(DeprecatedClass, self, [readonly_string, mutable_number]) + @jsii.member(jsii_name="makeClass") + @builtins.classmethod + def make_class(cls) -> "PublicClass": + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "makeClass", []) - @jsii.member(jsii_name="method") - def method(self) -> None: - """ - deprecated - :deprecated: it was a bad idea + @jsii.member(jsii_name="makeInterface") + @builtins.classmethod + def make_interface(cls) -> "IPublicInterface": + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "makeInterface", []) - stability - :stability: deprecated - """ - return jsii.invoke(self, "method", []) + @jsii.member(jsii_name="makeInterface2") + @builtins.classmethod + def make_interface2(cls) -> "IPublicInterface2": + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "makeInterface2", []) - @builtins.property - @jsii.member(jsii_name="readonlyProperty") - def readonly_property(self) -> str: - """ - deprecated - :deprecated: this is not always "wazoo", be ready to be disappointed + @jsii.member(jsii_name="makeInterfaces") + @builtins.classmethod + def make_interfaces(cls) -> typing.List["IPublicInterface"]: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "makeInterfaces", []) - stability - :stability: deprecated - """ - return jsii.get(self, "readonlyProperty") - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: + class ConsumePureInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ConsumePureInterface"): """ - deprecated - :deprecated: shouldn't have been mutable - stability - :stability: deprecated + :stability: experimental """ - return jsii.get(self, "mutableProperty") - - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]): - jsii.set(self, "mutableProperty", value) - - -@jsii.enum(jsii_type="jsii-calc.DeprecatedEnum") -class DeprecatedEnum(enum.Enum): - """ - deprecated - :deprecated: your deprecated selection of bad options + def __init__(self, delegate: "IStructReturningDelegate") -> None: + """ + :param delegate: - - stability - :stability: deprecated - """ - OPTION_A = "OPTION_A" - """ - deprecated - :deprecated: option A is not great + stability + :stability: experimental + """ + jsii.create(ConsumePureInterface, self, [delegate]) - stability - :stability: deprecated - """ - OPTION_B = "OPTION_B" - """ - deprecated - :deprecated: option B is kinda bad, too + @jsii.member(jsii_name="workItBaby") + def work_it_baby(self) -> "StructB": + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "workItBaby", []) - stability - :stability: deprecated - """ -@jsii.data_type(jsii_type="jsii-calc.DeprecatedStruct", jsii_struct_bases=[], name_mapping={'readonly_property': 'readonlyProperty'}) -class DeprecatedStruct(): - def __init__(self, *, readonly_property: str): - """ - :param readonly_property: + class ConsumerCanRingBell(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ConsumerCanRingBell"): + """Test calling back to consumers that implement interfaces. - deprecated - :deprecated: it just wraps a string + Check that if a JSII consumer implements IConsumerWithInterfaceParam, they can call + the method on the argument that they're passed... stability - :stability: deprecated + :stability: experimental """ - self._values = { - 'readonly_property': readonly_property, - } + def __init__(self) -> None: + jsii.create(ConsumerCanRingBell, self, []) - @builtins.property - def readonly_property(self) -> str: - """ - deprecated - :deprecated: well, yeah + @jsii.member(jsii_name="staticImplementedByObjectLiteral") + @builtins.classmethod + def static_implemented_by_object_literal(cls, ringer: "IBellRinger") -> bool: + """...if the interface is implemented using an object literal. - stability - :stability: deprecated - """ - return self._values.get('readonly_property') + Returns whether the bell was rung. - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values + :param ringer: - - def __ne__(self, rhs) -> bool: - return not (rhs == self) + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "staticImplementedByObjectLiteral", [ringer]) - def __repr__(self) -> str: - return 'DeprecatedStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + @jsii.member(jsii_name="staticImplementedByPrivateClass") + @builtins.classmethod + def static_implemented_by_private_class(cls, ringer: "IBellRinger") -> bool: + """...if the interface is implemented using a private class. + Return whether the bell was rung. -class DerivedClassHasNoProperties: - class Base(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DerivedClassHasNoProperties.Base"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(DerivedClassHasNoProperties.Base, self, []) + :param ringer: - - @builtins.property - @jsii.member(jsii_name="prop") - def prop(self) -> str: - """ stability :stability: experimental """ - return jsii.get(self, "prop") + return jsii.sinvoke(cls, "staticImplementedByPrivateClass", [ringer]) - @prop.setter - def prop(self, value: str): - jsii.set(self, "prop", value) + @jsii.member(jsii_name="staticImplementedByPublicClass") + @builtins.classmethod + def static_implemented_by_public_class(cls, ringer: "IBellRinger") -> bool: + """...if the interface is implemented using a public class. + Return whether the bell was rung. - class Derived(Base, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DerivedClassHasNoProperties.Derived"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(DerivedClassHasNoProperties.Derived, self, []) + :param ringer: - + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "staticImplementedByPublicClass", [ringer]) + @jsii.member(jsii_name="staticWhenTypedAsClass") + @builtins.classmethod + def static_when_typed_as_class(cls, ringer: "IConcreteBellRinger") -> bool: + """If the parameter is a concrete class instead of an interface. -@jsii.data_type(jsii_type="jsii-calc.DerivedStruct", jsii_struct_bases=[scope.jsii_calc_lib.MyFirstStruct], name_mapping={'anumber': 'anumber', 'astring': 'astring', 'first_optional': 'firstOptional', 'another_required': 'anotherRequired', 'bool': 'bool', 'non_primitive': 'nonPrimitive', 'another_optional': 'anotherOptional', 'optional_any': 'optionalAny', 'optional_array': 'optionalArray'}) -class DerivedStruct(scope.jsii_calc_lib.MyFirstStruct): - def __init__(self, *, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None, another_required: datetime.datetime, bool: bool, non_primitive: "DoubleTrouble", another_optional: typing.Optional[typing.Mapping[str,scope.jsii_calc_lib.Value]]=None, optional_any: typing.Any=None, optional_array: typing.Optional[typing.List[str]]=None): - """A struct which derives from another struct. + Return whether the bell was rung. - :param anumber: An awesome number value. - :param astring: A string value. - :param first_optional: - :param another_required: - :param bool: - :param non_primitive: An example of a non primitive property. - :param another_optional: This is optional. - :param optional_any: - :param optional_array: + :param ringer: - - stability - :stability: experimental - """ - self._values = { - 'anumber': anumber, - 'astring': astring, - 'another_required': another_required, - 'bool': bool, - 'non_primitive': non_primitive, - } - if first_optional is not None: self._values["first_optional"] = first_optional - if another_optional is not None: self._values["another_optional"] = another_optional - if optional_any is not None: self._values["optional_any"] = optional_any - if optional_array is not None: self._values["optional_array"] = optional_array + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "staticWhenTypedAsClass", [ringer]) - @builtins.property - def anumber(self) -> jsii.Number: - """An awesome number value. + @jsii.member(jsii_name="implementedByObjectLiteral") + def implemented_by_object_literal(self, ringer: "IBellRinger") -> bool: + """...if the interface is implemented using an object literal. - stability - :stability: deprecated - """ - return self._values.get('anumber') + Returns whether the bell was rung. - @builtins.property - def astring(self) -> str: - """A string value. + :param ringer: - - stability - :stability: deprecated - """ - return self._values.get('astring') + stability + :stability: experimental + """ + return jsii.invoke(self, "implementedByObjectLiteral", [ringer]) - @builtins.property - def first_optional(self) -> typing.Optional[typing.List[str]]: - """ - stability - :stability: deprecated - """ - return self._values.get('first_optional') + @jsii.member(jsii_name="implementedByPrivateClass") + def implemented_by_private_class(self, ringer: "IBellRinger") -> bool: + """...if the interface is implemented using a private class. - @builtins.property - def another_required(self) -> datetime.datetime: - """ - stability - :stability: experimental - """ - return self._values.get('another_required') + Return whether the bell was rung. - @builtins.property - def bool(self) -> bool: - """ - stability - :stability: experimental - """ - return self._values.get('bool') + :param ringer: - - @builtins.property - def non_primitive(self) -> "DoubleTrouble": - """An example of a non primitive property. + stability + :stability: experimental + """ + return jsii.invoke(self, "implementedByPrivateClass", [ringer]) - stability - :stability: experimental - """ - return self._values.get('non_primitive') + @jsii.member(jsii_name="implementedByPublicClass") + def implemented_by_public_class(self, ringer: "IBellRinger") -> bool: + """...if the interface is implemented using a public class. - @builtins.property - def another_optional(self) -> typing.Optional[typing.Mapping[str,scope.jsii_calc_lib.Value]]: - """This is optional. + Return whether the bell was rung. - stability - :stability: experimental - """ - return self._values.get('another_optional') + :param ringer: - - @builtins.property - def optional_any(self) -> typing.Any: - """ - stability - :stability: experimental - """ - return self._values.get('optional_any') + stability + :stability: experimental + """ + return jsii.invoke(self, "implementedByPublicClass", [ringer]) - @builtins.property - def optional_array(self) -> typing.Optional[typing.List[str]]: - """ - stability - :stability: experimental - """ - return self._values.get('optional_array') + @jsii.member(jsii_name="whenTypedAsClass") + def when_typed_as_class(self, ringer: "IConcreteBellRinger") -> bool: + """If the parameter is a concrete class instead of an interface. - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values + Return whether the bell was rung. - def __ne__(self, rhs) -> bool: - return not (rhs == self) + :param ringer: - - def __repr__(self) -> str: - return 'DerivedStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + stability + :stability: experimental + """ + return jsii.invoke(self, "whenTypedAsClass", [ringer]) -@jsii.data_type(jsii_type="jsii-calc.DiamondInheritanceBaseLevelStruct", jsii_struct_bases=[], name_mapping={'base_level_property': 'baseLevelProperty'}) -class DiamondInheritanceBaseLevelStruct(): - def __init__(self, *, base_level_property: str): + class ConsumersOfThisCrazyTypeSystem(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ConsumersOfThisCrazyTypeSystem"): """ - :param base_level_property: - stability :stability: experimental """ - self._values = { - 'base_level_property': base_level_property, - } + def __init__(self) -> None: + jsii.create(ConsumersOfThisCrazyTypeSystem, self, []) - @builtins.property - def base_level_property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('base_level_property') + @jsii.member(jsii_name="consumeAnotherPublicInterface") + def consume_another_public_interface(self, obj: "IAnotherPublicInterface") -> str: + """ + :param obj: - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values + stability + :stability: experimental + """ + return jsii.invoke(self, "consumeAnotherPublicInterface", [obj]) - def __ne__(self, rhs) -> bool: - return not (rhs == self) + @jsii.member(jsii_name="consumeNonInternalInterface") + def consume_non_internal_interface(self, obj: "INonInternalInterface") -> typing.Any: + """ + :param obj: - - def __repr__(self) -> str: - return 'DiamondInheritanceBaseLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + stability + :stability: experimental + """ + return jsii.invoke(self, "consumeNonInternalInterface", [obj]) -@jsii.data_type(jsii_type="jsii-calc.DiamondInheritanceFirstMidLevelStruct", jsii_struct_bases=[DiamondInheritanceBaseLevelStruct], name_mapping={'base_level_property': 'baseLevelProperty', 'first_mid_level_property': 'firstMidLevelProperty'}) -class DiamondInheritanceFirstMidLevelStruct(DiamondInheritanceBaseLevelStruct): - def __init__(self, *, base_level_property: str, first_mid_level_property: str): - """ - :param base_level_property: - :param first_mid_level_property: + class DataRenderer(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.DataRenderer"): + """Verifies proper type handling through dynamic overrides. stability :stability: experimental """ - self._values = { - 'base_level_property': base_level_property, - 'first_mid_level_property': first_mid_level_property, - } + def __init__(self) -> None: + """ + stability + :stability: experimental + """ + jsii.create(DataRenderer, self, []) - @builtins.property - def base_level_property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('base_level_property') + @jsii.member(jsii_name="render") + def render(self, *, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None) -> str: + """ + :param anumber: An awesome number value. + :param astring: A string value. + :param first_optional: - @builtins.property - def first_mid_level_property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('first_mid_level_property') + stability + :stability: experimental + """ + data = scope.jsii_calc_lib.MyFirstStruct(anumber=anumber, astring=astring, first_optional=first_optional) - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values + return jsii.invoke(self, "render", [data]) - def __ne__(self, rhs) -> bool: - return not (rhs == self) + @jsii.member(jsii_name="renderArbitrary") + def render_arbitrary(self, data: typing.Mapping[str,typing.Any]) -> str: + """ + :param data: - - def __repr__(self) -> str: - return 'DiamondInheritanceFirstMidLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + stability + :stability: experimental + """ + return jsii.invoke(self, "renderArbitrary", [data]) + @jsii.member(jsii_name="renderMap") + def render_map(self, map: typing.Mapping[str,typing.Any]) -> str: + """ + :param map: - -@jsii.data_type(jsii_type="jsii-calc.DiamondInheritanceSecondMidLevelStruct", jsii_struct_bases=[DiamondInheritanceBaseLevelStruct], name_mapping={'base_level_property': 'baseLevelProperty', 'second_mid_level_property': 'secondMidLevelProperty'}) -class DiamondInheritanceSecondMidLevelStruct(DiamondInheritanceBaseLevelStruct): - def __init__(self, *, base_level_property: str, second_mid_level_property: str): - """ - :param base_level_property: - :param second_mid_level_property: + stability + :stability: experimental + """ + return jsii.invoke(self, "renderMap", [map]) - stability - :stability: experimental - """ - self._values = { - 'base_level_property': base_level_property, - 'second_mid_level_property': second_mid_level_property, - } - @builtins.property - def base_level_property(self) -> str: + class DefaultedConstructorArgument(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.DefaultedConstructorArgument"): """ stability :stability: experimental """ - return self._values.get('base_level_property') + def __init__(self, arg1: typing.Optional[jsii.Number]=None, arg2: typing.Optional[str]=None, arg3: typing.Optional[datetime.datetime]=None) -> None: + """ + :param arg1: - + :param arg2: - + :param arg3: - - @builtins.property - def second_mid_level_property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('second_mid_level_property') + stability + :stability: experimental + """ + jsii.create(DefaultedConstructorArgument, self, [arg1, arg2, arg3]) - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values + @builtins.property + @jsii.member(jsii_name="arg1") + def arg1(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.get(self, "arg1") - def __ne__(self, rhs) -> bool: - return not (rhs == self) + @builtins.property + @jsii.member(jsii_name="arg3") + def arg3(self) -> datetime.datetime: + """ + stability + :stability: experimental + """ + return jsii.get(self, "arg3") - def __repr__(self) -> str: - return 'DiamondInheritanceSecondMidLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + @builtins.property + @jsii.member(jsii_name="arg2") + def arg2(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "arg2") -@jsii.data_type(jsii_type="jsii-calc.DiamondInheritanceTopLevelStruct", jsii_struct_bases=[DiamondInheritanceFirstMidLevelStruct, DiamondInheritanceSecondMidLevelStruct], name_mapping={'base_level_property': 'baseLevelProperty', 'first_mid_level_property': 'firstMidLevelProperty', 'second_mid_level_property': 'secondMidLevelProperty', 'top_level_property': 'topLevelProperty'}) -class DiamondInheritanceTopLevelStruct(DiamondInheritanceFirstMidLevelStruct, DiamondInheritanceSecondMidLevelStruct): - def __init__(self, *, base_level_property: str, first_mid_level_property: str, second_mid_level_property: str, top_level_property: str): - """ - :param base_level_property: - :param first_mid_level_property: - :param second_mid_level_property: - :param top_level_property: + class Demonstrate982(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.Demonstrate982"): + """1. - stability - :stability: experimental - """ - self._values = { - 'base_level_property': base_level_property, - 'first_mid_level_property': first_mid_level_property, - 'second_mid_level_property': second_mid_level_property, - 'top_level_property': top_level_property, - } + call #takeThis() -> An ObjectRef will be provisioned for the value (it'll be re-used!) + 2. call #takeThisToo() -> The ObjectRef from before will need to be down-cased to the ParentStruct982 type - @builtins.property - def base_level_property(self) -> str: - """ stability :stability: experimental """ - return self._values.get('base_level_property') + def __init__(self) -> None: + """ + stability + :stability: experimental + """ + jsii.create(Demonstrate982, self, []) - @builtins.property - def first_mid_level_property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('first_mid_level_property') - - @builtins.property - def second_mid_level_property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('second_mid_level_property') + @jsii.member(jsii_name="takeThis") + @builtins.classmethod + def take_this(cls) -> "ChildStruct982": + """It's dangerous to go alone! - @builtins.property - def top_level_property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('top_level_property') + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "takeThis", []) - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values + @jsii.member(jsii_name="takeThisToo") + @builtins.classmethod + def take_this_too(cls) -> "ParentStruct982": + """It's dangerous to go alone! - def __ne__(self, rhs) -> bool: - return not (rhs == self) + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "takeThisToo", []) - def __repr__(self) -> str: - return 'DiamondInheritanceTopLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + class derived_class_has_no_properties: + class Base(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.DerivedClassHasNoProperties.Base"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(jsii_calc.compliance.DerivedClassHasNoProperties.Base, self, []) -class DisappointingCollectionSource(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DisappointingCollectionSource"): - """Verifies that null/undefined can be returned for optional collections. + @builtins.property + @jsii.member(jsii_name="prop") + def prop(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "prop") - This source of collections is disappointing - it'll always give you nothing :( + @prop.setter + def prop(self, value: str): + jsii.set(self, "prop", value) - stability - :stability: experimental - """ - @jsii.python.classproperty - @jsii.member(jsii_name="maybeList") - def MAYBE_LIST(cls) -> typing.Optional[typing.List[str]]: - """Some List of strings, maybe? - (Nah, just a billion dollars mistake!) + class Derived(jsii_calc.compliance.DerivedClassHasNoProperties.Base, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.DerivedClassHasNoProperties.Derived"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(jsii_calc.compliance.DerivedClassHasNoProperties.Derived, self, []) - stability - :stability: experimental - """ - return jsii.sget(cls, "maybeList") - @jsii.python.classproperty - @jsii.member(jsii_name="maybeMap") - def MAYBE_MAP(cls) -> typing.Optional[typing.Mapping[str,jsii.Number]]: - """Some Map of strings to numbers, maybe? - (Nah, just a billion dollars mistake!) + @jsii.data_type(jsii_type="jsii-calc.compliance.DerivedStruct", jsii_struct_bases=[scope.jsii_calc_lib.MyFirstStruct], name_mapping={'anumber': 'anumber', 'astring': 'astring', 'first_optional': 'firstOptional', 'another_required': 'anotherRequired', 'bool': 'bool', 'non_primitive': 'nonPrimitive', 'another_optional': 'anotherOptional', 'optional_any': 'optionalAny', 'optional_array': 'optionalArray'}) + class DerivedStruct(scope.jsii_calc_lib.MyFirstStruct): + def __init__(self, *, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None, another_required: datetime.datetime, bool: bool, non_primitive: "DoubleTrouble", another_optional: typing.Optional[typing.Mapping[str,scope.jsii_calc_lib.Value]]=None, optional_any: typing.Any=None, optional_array: typing.Optional[typing.List[str]]=None): + """A struct which derives from another struct. - stability - :stability: experimental - """ - return jsii.sget(cls, "maybeMap") + :param anumber: An awesome number value. + :param astring: A string value. + :param first_optional: + :param another_required: + :param bool: + :param non_primitive: An example of a non primitive property. + :param another_optional: This is optional. + :param optional_any: + :param optional_array: + stability + :stability: experimental + """ + self._values = { + 'anumber': anumber, + 'astring': astring, + 'another_required': another_required, + 'bool': bool, + 'non_primitive': non_primitive, + } + if first_optional is not None: self._values["first_optional"] = first_optional + if another_optional is not None: self._values["another_optional"] = another_optional + if optional_any is not None: self._values["optional_any"] = optional_any + if optional_array is not None: self._values["optional_array"] = optional_array -class DoNotOverridePrivates(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DoNotOverridePrivates"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(DoNotOverridePrivates, self, []) + @builtins.property + def anumber(self) -> jsii.Number: + """An awesome number value. - @jsii.member(jsii_name="changePrivatePropertyValue") - def change_private_property_value(self, new_value: str) -> None: - """ - :param new_value: - + stability + :stability: deprecated + """ + return self._values.get('anumber') - stability - :stability: experimental - """ - return jsii.invoke(self, "changePrivatePropertyValue", [new_value]) + @builtins.property + def astring(self) -> str: + """A string value. - @jsii.member(jsii_name="privateMethodValue") - def private_method_value(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "privateMethodValue", []) + stability + :stability: deprecated + """ + return self._values.get('astring') - @jsii.member(jsii_name="privatePropertyValue") - def private_property_value(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "privatePropertyValue", []) + @builtins.property + def first_optional(self) -> typing.Optional[typing.List[str]]: + """ + stability + :stability: deprecated + """ + return self._values.get('first_optional') + @builtins.property + def another_required(self) -> datetime.datetime: + """ + stability + :stability: experimental + """ + return self._values.get('another_required') -class DoNotRecognizeAnyAsOptional(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DoNotRecognizeAnyAsOptional"): - """jsii#284: do not recognize "any" as an optional argument. + @builtins.property + def bool(self) -> bool: + """ + stability + :stability: experimental + """ + return self._values.get('bool') - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(DoNotRecognizeAnyAsOptional, self, []) + @builtins.property + def non_primitive(self) -> "DoubleTrouble": + """An example of a non primitive property. - @jsii.member(jsii_name="method") - def method(self, _required_any: typing.Any, _optional_any: typing.Any=None, _optional_string: typing.Optional[str]=None) -> None: - """ - :param _required_any: - - :param _optional_any: - - :param _optional_string: - + stability + :stability: experimental + """ + return self._values.get('non_primitive') - stability - :stability: experimental - """ - return jsii.invoke(self, "method", [_required_any, _optional_any, _optional_string]) + @builtins.property + def another_optional(self) -> typing.Optional[typing.Mapping[str,scope.jsii_calc_lib.Value]]: + """This is optional. + stability + :stability: experimental + """ + return self._values.get('another_optional') -class DocumentedClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DocumentedClass"): - """Here's the first line of the TSDoc comment. + @builtins.property + def optional_any(self) -> typing.Any: + """ + stability + :stability: experimental + """ + return self._values.get('optional_any') - This is the meat of the TSDoc comment. It may contain - multiple lines and multiple paragraphs. + @builtins.property + def optional_array(self) -> typing.Optional[typing.List[str]]: + """ + stability + :stability: experimental + """ + return self._values.get('optional_array') - Multiple paragraphs are separated by an empty line. - """ - def __init__(self) -> None: - jsii.create(DocumentedClass, self, []) + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values - @jsii.member(jsii_name="greet") - def greet(self, *, name: typing.Optional[str]=None) -> jsii.Number: - """Greet the indicated person. + def __ne__(self, rhs) -> bool: + return not (rhs == self) - This will print out a friendly greeting intended for - the indicated person. + def __repr__(self) -> str: + return 'DerivedStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - :param name: The name of the greetee. Default: world - return - :return: A number that everyone knows very well - """ - greetee = Greetee(name=name) + @jsii.data_type(jsii_type="jsii-calc.compliance.DiamondInheritanceBaseLevelStruct", jsii_struct_bases=[], name_mapping={'base_level_property': 'baseLevelProperty'}) + class DiamondInheritanceBaseLevelStruct(): + def __init__(self, *, base_level_property: str): + """ + :param base_level_property: - return jsii.invoke(self, "greet", [greetee]) + stability + :stability: experimental + """ + self._values = { + 'base_level_property': base_level_property, + } - @jsii.member(jsii_name="hola") - def hola(self) -> None: - """Say ¡Hola! + @builtins.property + def base_level_property(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('base_level_property') - stability - :stability: experimental - """ - return jsii.invoke(self, "hola", []) + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + def __ne__(self, rhs) -> bool: + return not (rhs == self) -class DontComplainAboutVariadicAfterOptional(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DontComplainAboutVariadicAfterOptional"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(DontComplainAboutVariadicAfterOptional, self, []) + def __repr__(self) -> str: + return 'DiamondInheritanceBaseLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - @jsii.member(jsii_name="optionalAndVariadic") - def optional_and_variadic(self, optional: typing.Optional[str]=None, *things: str) -> str: - """ - :param optional: - - :param things: - - stability - :stability: experimental - """ - return jsii.invoke(self, "optionalAndVariadic", [optional, *things]) + @jsii.data_type(jsii_type="jsii-calc.compliance.DiamondInheritanceFirstMidLevelStruct", jsii_struct_bases=[DiamondInheritanceBaseLevelStruct], name_mapping={'base_level_property': 'baseLevelProperty', 'first_mid_level_property': 'firstMidLevelProperty'}) + class DiamondInheritanceFirstMidLevelStruct(DiamondInheritanceBaseLevelStruct): + def __init__(self, *, base_level_property: str, first_mid_level_property: str): + """ + :param base_level_property: + :param first_mid_level_property: + stability + :stability: experimental + """ + self._values = { + 'base_level_property': base_level_property, + 'first_mid_level_property': first_mid_level_property, + } -class EnumDispenser(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.EnumDispenser"): - """ - stability - :stability: experimental - """ - @jsii.member(jsii_name="randomIntegerLikeEnum") - @builtins.classmethod - def random_integer_like_enum(cls) -> "AllTypesEnum": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "randomIntegerLikeEnum", []) + @builtins.property + def base_level_property(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('base_level_property') - @jsii.member(jsii_name="randomStringLikeEnum") - @builtins.classmethod - def random_string_like_enum(cls) -> "StringEnum": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "randomStringLikeEnum", []) + @builtins.property + def first_mid_level_property(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('first_mid_level_property') + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values -class EraseUndefinedHashValues(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.EraseUndefinedHashValues"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(EraseUndefinedHashValues, self, []) + def __ne__(self, rhs) -> bool: + return not (rhs == self) - @jsii.member(jsii_name="doesKeyExist") - @builtins.classmethod - def does_key_exist(cls, opts: "EraseUndefinedHashValuesOptions", key: str) -> bool: - """Returns ``true`` if ``key`` is defined in ``opts``. + def __repr__(self) -> str: + return 'DiamondInheritanceFirstMidLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - Used to check that undefined/null hash values - are being erased when sending values from native code to JS. - :param opts: - - :param key: - + @jsii.data_type(jsii_type="jsii-calc.compliance.DiamondInheritanceSecondMidLevelStruct", jsii_struct_bases=[DiamondInheritanceBaseLevelStruct], name_mapping={'base_level_property': 'baseLevelProperty', 'second_mid_level_property': 'secondMidLevelProperty'}) + class DiamondInheritanceSecondMidLevelStruct(DiamondInheritanceBaseLevelStruct): + def __init__(self, *, base_level_property: str, second_mid_level_property: str): + """ + :param base_level_property: + :param second_mid_level_property: - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "doesKeyExist", [opts, key]) + stability + :stability: experimental + """ + self._values = { + 'base_level_property': base_level_property, + 'second_mid_level_property': second_mid_level_property, + } - @jsii.member(jsii_name="prop1IsNull") - @builtins.classmethod - def prop1_is_null(cls) -> typing.Mapping[str,typing.Any]: - """We expect "prop1" to be erased. + @builtins.property + def base_level_property(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('base_level_property') - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "prop1IsNull", []) + @builtins.property + def second_mid_level_property(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('second_mid_level_property') - @jsii.member(jsii_name="prop2IsUndefined") - @builtins.classmethod - def prop2_is_undefined(cls) -> typing.Mapping[str,typing.Any]: - """We expect "prop2" to be erased. + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "prop2IsUndefined", []) + def __ne__(self, rhs) -> bool: + return not (rhs == self) + def __repr__(self) -> str: + return 'DiamondInheritanceSecondMidLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) -@jsii.data_type(jsii_type="jsii-calc.EraseUndefinedHashValuesOptions", jsii_struct_bases=[], name_mapping={'option1': 'option1', 'option2': 'option2'}) -class EraseUndefinedHashValuesOptions(): - def __init__(self, *, option1: typing.Optional[str]=None, option2: typing.Optional[str]=None): - """ - :param option1: - :param option2: - stability - :stability: experimental - """ - self._values = { - } - if option1 is not None: self._values["option1"] = option1 - if option2 is not None: self._values["option2"] = option2 + @jsii.data_type(jsii_type="jsii-calc.compliance.DiamondInheritanceTopLevelStruct", jsii_struct_bases=[DiamondInheritanceFirstMidLevelStruct, DiamondInheritanceSecondMidLevelStruct], name_mapping={'base_level_property': 'baseLevelProperty', 'first_mid_level_property': 'firstMidLevelProperty', 'second_mid_level_property': 'secondMidLevelProperty', 'top_level_property': 'topLevelProperty'}) + class DiamondInheritanceTopLevelStruct(DiamondInheritanceFirstMidLevelStruct, DiamondInheritanceSecondMidLevelStruct): + def __init__(self, *, base_level_property: str, first_mid_level_property: str, second_mid_level_property: str, top_level_property: str): + """ + :param base_level_property: + :param first_mid_level_property: + :param second_mid_level_property: + :param top_level_property: - @builtins.property - def option1(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return self._values.get('option1') + stability + :stability: experimental + """ + self._values = { + 'base_level_property': base_level_property, + 'first_mid_level_property': first_mid_level_property, + 'second_mid_level_property': second_mid_level_property, + 'top_level_property': top_level_property, + } - @builtins.property - def option2(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return self._values.get('option2') + @builtins.property + def base_level_property(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('base_level_property') - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values + @builtins.property + def first_mid_level_property(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('first_mid_level_property') - def __ne__(self, rhs) -> bool: - return not (rhs == self) + @builtins.property + def second_mid_level_property(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('second_mid_level_property') - def __repr__(self) -> str: - return 'EraseUndefinedHashValuesOptions(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + @builtins.property + def top_level_property(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('top_level_property') + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values -class ExperimentalClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ExperimentalClass"): - """ - stability - :stability: experimental - """ - def __init__(self, readonly_string: str, mutable_number: typing.Optional[jsii.Number]=None) -> None: - """ - :param readonly_string: - - :param mutable_number: - + def __ne__(self, rhs) -> bool: + return not (rhs == self) - stability - :stability: experimental - """ - jsii.create(ExperimentalClass, self, [readonly_string, mutable_number]) + def __repr__(self) -> str: + return 'DiamondInheritanceTopLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - @jsii.member(jsii_name="method") - def method(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "method", []) - @builtins.property - @jsii.member(jsii_name="readonlyProperty") - def readonly_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "readonlyProperty") + class DisappointingCollectionSource(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.DisappointingCollectionSource"): + """Verifies that null/undefined can be returned for optional collections. + + This source of collections is disappointing - it'll always give you nothing :( - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: - """ stability :stability: experimental """ - return jsii.get(self, "mutableProperty") + @jsii.python.classproperty + @jsii.member(jsii_name="maybeList") + def MAYBE_LIST(cls) -> typing.Optional[typing.List[str]]: + """Some List of strings, maybe? + + (Nah, just a billion dollars mistake!) - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]): - jsii.set(self, "mutableProperty", value) + stability + :stability: experimental + """ + return jsii.sget(cls, "maybeList") + @jsii.python.classproperty + @jsii.member(jsii_name="maybeMap") + def MAYBE_MAP(cls) -> typing.Optional[typing.Mapping[str,jsii.Number]]: + """Some Map of strings to numbers, maybe? -@jsii.enum(jsii_type="jsii-calc.ExperimentalEnum") -class ExperimentalEnum(enum.Enum): - """ - stability - :stability: experimental - """ - OPTION_A = "OPTION_A" - """ - stability - :stability: experimental - """ - OPTION_B = "OPTION_B" - """ - stability - :stability: experimental - """ + (Nah, just a billion dollars mistake!) -@jsii.data_type(jsii_type="jsii-calc.ExperimentalStruct", jsii_struct_bases=[], name_mapping={'readonly_property': 'readonlyProperty'}) -class ExperimentalStruct(): - def __init__(self, *, readonly_property: str): - """ - :param readonly_property: + stability + :stability: experimental + """ + return jsii.sget(cls, "maybeMap") - stability - :stability: experimental - """ - self._values = { - 'readonly_property': readonly_property, - } - @builtins.property - def readonly_property(self) -> str: + class DoNotOverridePrivates(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.DoNotOverridePrivates"): """ stability :stability: experimental """ - return self._values.get('readonly_property') + def __init__(self) -> None: + jsii.create(DoNotOverridePrivates, self, []) - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values + @jsii.member(jsii_name="changePrivatePropertyValue") + def change_private_property_value(self, new_value: str) -> None: + """ + :param new_value: - - def __ne__(self, rhs) -> bool: - return not (rhs == self) + stability + :stability: experimental + """ + return jsii.invoke(self, "changePrivatePropertyValue", [new_value]) - def __repr__(self) -> str: - return 'ExperimentalStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + @jsii.member(jsii_name="privateMethodValue") + def private_method_value(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "privateMethodValue", []) + @jsii.member(jsii_name="privatePropertyValue") + def private_property_value(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "privatePropertyValue", []) -class ExportedBaseClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ExportedBaseClass"): - """ - stability - :stability: experimental - """ - def __init__(self, success: bool) -> None: - """ - :param success: - + + class DoNotRecognizeAnyAsOptional(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.DoNotRecognizeAnyAsOptional"): + """jsii#284: do not recognize "any" as an optional argument. stability :stability: experimental """ - jsii.create(ExportedBaseClass, self, [success]) + def __init__(self) -> None: + jsii.create(DoNotRecognizeAnyAsOptional, self, []) - @builtins.property - @jsii.member(jsii_name="success") - def success(self) -> bool: + @jsii.member(jsii_name="method") + def method(self, _required_any: typing.Any, _optional_any: typing.Any=None, _optional_string: typing.Optional[str]=None) -> None: + """ + :param _required_any: - + :param _optional_any: - + :param _optional_string: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "method", [_required_any, _optional_any, _optional_string]) + + + class DontComplainAboutVariadicAfterOptional(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.DontComplainAboutVariadicAfterOptional"): """ stability :stability: experimental """ - return jsii.get(self, "success") + def __init__(self) -> None: + jsii.create(DontComplainAboutVariadicAfterOptional, self, []) + @jsii.member(jsii_name="optionalAndVariadic") + def optional_and_variadic(self, optional: typing.Optional[str]=None, *things: str) -> str: + """ + :param optional: - + :param things: - -@jsii.data_type(jsii_type="jsii-calc.ExtendsInternalInterface", jsii_struct_bases=[], name_mapping={'boom': 'boom', 'prop': 'prop'}) -class ExtendsInternalInterface(): - def __init__(self, *, boom: bool, prop: str): - """ - :param boom: - :param prop: + stability + :stability: experimental + """ + return jsii.invoke(self, "optionalAndVariadic", [optional, *things]) + + @jsii.implements(jsii_calc.IFriendlyRandomGenerator) + class DoubleTrouble(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.DoubleTrouble"): + """ stability :stability: experimental """ - self._values = { - 'boom': boom, - 'prop': prop, - } + def __init__(self) -> None: + jsii.create(DoubleTrouble, self, []) - @builtins.property - def boom(self) -> bool: + @jsii.member(jsii_name="hello") + def hello(self) -> str: + """Say hello! + + stability + :stability: experimental + """ + return jsii.invoke(self, "hello", []) + + @jsii.member(jsii_name="next") + def next(self) -> jsii.Number: + """Returns another random number. + + stability + :stability: experimental + """ + return jsii.invoke(self, "next", []) + + + class EnumDispenser(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.EnumDispenser"): """ stability :stability: experimental """ - return self._values.get('boom') + @jsii.member(jsii_name="randomIntegerLikeEnum") + @builtins.classmethod + def random_integer_like_enum(cls) -> "AllTypesEnum": + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "randomIntegerLikeEnum", []) - @builtins.property - def prop(self) -> str: + @jsii.member(jsii_name="randomStringLikeEnum") + @builtins.classmethod + def random_string_like_enum(cls) -> "StringEnum": + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "randomStringLikeEnum", []) + + + class EraseUndefinedHashValues(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.EraseUndefinedHashValues"): """ stability :stability: experimental """ - return self._values.get('prop') + def __init__(self) -> None: + jsii.create(EraseUndefinedHashValues, self, []) - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values + @jsii.member(jsii_name="doesKeyExist") + @builtins.classmethod + def does_key_exist(cls, opts: "EraseUndefinedHashValuesOptions", key: str) -> bool: + """Returns ``true`` if ``key`` is defined in ``opts``. - def __ne__(self, rhs) -> bool: - return not (rhs == self) + Used to check that undefined/null hash values + are being erased when sending values from native code to JS. - def __repr__(self) -> str: - return 'ExtendsInternalInterface(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + :param opts: - + :param key: - + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "doesKeyExist", [opts, key]) -class GiveMeStructs(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.GiveMeStructs"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(GiveMeStructs, self, []) + @jsii.member(jsii_name="prop1IsNull") + @builtins.classmethod + def prop1_is_null(cls) -> typing.Mapping[str,typing.Any]: + """We expect "prop1" to be erased. - @jsii.member(jsii_name="derivedToFirst") - def derived_to_first(self, *, another_required: datetime.datetime, bool: bool, non_primitive: "DoubleTrouble", another_optional: typing.Optional[typing.Mapping[str,scope.jsii_calc_lib.Value]]=None, optional_any: typing.Any=None, optional_array: typing.Optional[typing.List[str]]=None, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None) -> scope.jsii_calc_lib.MyFirstStruct: - """Accepts a struct of type DerivedStruct and returns a struct of type FirstStruct. + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "prop1IsNull", []) - :param another_required: - :param bool: - :param non_primitive: An example of a non primitive property. - :param another_optional: This is optional. - :param optional_any: - :param optional_array: - :param anumber: An awesome number value. - :param astring: A string value. - :param first_optional: + @jsii.member(jsii_name="prop2IsUndefined") + @builtins.classmethod + def prop2_is_undefined(cls) -> typing.Mapping[str,typing.Any]: + """We expect "prop2" to be erased. - stability - :stability: experimental - """ - derived = DerivedStruct(another_required=another_required, bool=bool, non_primitive=non_primitive, another_optional=another_optional, optional_any=optional_any, optional_array=optional_array, anumber=anumber, astring=astring, first_optional=first_optional) + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "prop2IsUndefined", []) - return jsii.invoke(self, "derivedToFirst", [derived]) - @jsii.member(jsii_name="readDerivedNonPrimitive") - def read_derived_non_primitive(self, *, another_required: datetime.datetime, bool: bool, non_primitive: "DoubleTrouble", another_optional: typing.Optional[typing.Mapping[str,scope.jsii_calc_lib.Value]]=None, optional_any: typing.Any=None, optional_array: typing.Optional[typing.List[str]]=None, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None) -> "DoubleTrouble": - """Returns the boolean from a DerivedStruct struct. + @jsii.data_type(jsii_type="jsii-calc.compliance.EraseUndefinedHashValuesOptions", jsii_struct_bases=[], name_mapping={'option1': 'option1', 'option2': 'option2'}) + class EraseUndefinedHashValuesOptions(): + def __init__(self, *, option1: typing.Optional[str]=None, option2: typing.Optional[str]=None): + """ + :param option1: + :param option2: - :param another_required: - :param bool: - :param non_primitive: An example of a non primitive property. - :param another_optional: This is optional. - :param optional_any: - :param optional_array: - :param anumber: An awesome number value. - :param astring: A string value. - :param first_optional: + stability + :stability: experimental + """ + self._values = { + } + if option1 is not None: self._values["option1"] = option1 + if option2 is not None: self._values["option2"] = option2 - stability - :stability: experimental - """ - derived = DerivedStruct(another_required=another_required, bool=bool, non_primitive=non_primitive, another_optional=another_optional, optional_any=optional_any, optional_array=optional_array, anumber=anumber, astring=astring, first_optional=first_optional) + @builtins.property + def option1(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + return self._values.get('option1') - return jsii.invoke(self, "readDerivedNonPrimitive", [derived]) + @builtins.property + def option2(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + return self._values.get('option2') - @jsii.member(jsii_name="readFirstNumber") - def read_first_number(self, *, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None) -> jsii.Number: - """Returns the "anumber" from a MyFirstStruct struct; + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values - :param anumber: An awesome number value. - :param astring: A string value. - :param first_optional: + def __ne__(self, rhs) -> bool: + return not (rhs == self) - stability - :stability: experimental - """ - first = scope.jsii_calc_lib.MyFirstStruct(anumber=anumber, astring=astring, first_optional=first_optional) + def __repr__(self) -> str: + return 'EraseUndefinedHashValuesOptions(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - return jsii.invoke(self, "readFirstNumber", [first]) - @builtins.property - @jsii.member(jsii_name="structLiteral") - def struct_literal(self) -> scope.jsii_calc_lib.StructWithOnlyOptionals: + class ExportedBaseClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ExportedBaseClass"): """ stability :stability: experimental """ - return jsii.get(self, "structLiteral") + def __init__(self, success: bool) -> None: + """ + :param success: - + stability + :stability: experimental + """ + jsii.create(ExportedBaseClass, self, [success]) -@jsii.data_type(jsii_type="jsii-calc.Greetee", jsii_struct_bases=[], name_mapping={'name': 'name'}) -class Greetee(): - def __init__(self, *, name: typing.Optional[str]=None): - """These are some arguments you can pass to a method. + @builtins.property + @jsii.member(jsii_name="success") + def success(self) -> bool: + """ + stability + :stability: experimental + """ + return jsii.get(self, "success") - :param name: The name of the greetee. Default: world - stability - :stability: experimental - """ - self._values = { - } - if name is not None: self._values["name"] = name + @jsii.data_type(jsii_type="jsii-calc.compliance.ExtendsInternalInterface", jsii_struct_bases=[], name_mapping={'boom': 'boom', 'prop': 'prop'}) + class ExtendsInternalInterface(): + def __init__(self, *, boom: bool, prop: str): + """ + :param boom: + :param prop: - @builtins.property - def name(self) -> typing.Optional[str]: - """The name of the greetee. + stability + :stability: experimental + """ + self._values = { + 'boom': boom, + 'prop': prop, + } + + @builtins.property + def boom(self) -> bool: + """ + stability + :stability: experimental + """ + return self._values.get('boom') + + @builtins.property + def prop(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('prop') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'ExtendsInternalInterface(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - default - :default: world + class GiveMeStructs(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.GiveMeStructs"): + """ stability :stability: experimental """ - return self._values.get('name') + def __init__(self) -> None: + jsii.create(GiveMeStructs, self, []) + + @jsii.member(jsii_name="derivedToFirst") + def derived_to_first(self, *, another_required: datetime.datetime, bool: bool, non_primitive: "DoubleTrouble", another_optional: typing.Optional[typing.Mapping[str,scope.jsii_calc_lib.Value]]=None, optional_any: typing.Any=None, optional_array: typing.Optional[typing.List[str]]=None, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None) -> scope.jsii_calc_lib.MyFirstStruct: + """Accepts a struct of type DerivedStruct and returns a struct of type FirstStruct. + + :param another_required: + :param bool: + :param non_primitive: An example of a non primitive property. + :param another_optional: This is optional. + :param optional_any: + :param optional_array: + :param anumber: An awesome number value. + :param astring: A string value. + :param first_optional: - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values + stability + :stability: experimental + """ + derived = DerivedStruct(another_required=another_required, bool=bool, non_primitive=non_primitive, another_optional=another_optional, optional_any=optional_any, optional_array=optional_array, anumber=anumber, astring=astring, first_optional=first_optional) - def __ne__(self, rhs) -> bool: - return not (rhs == self) + return jsii.invoke(self, "derivedToFirst", [derived]) - def __repr__(self) -> str: - return 'Greetee(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + @jsii.member(jsii_name="readDerivedNonPrimitive") + def read_derived_non_primitive(self, *, another_required: datetime.datetime, bool: bool, non_primitive: "DoubleTrouble", another_optional: typing.Optional[typing.Mapping[str,scope.jsii_calc_lib.Value]]=None, optional_any: typing.Any=None, optional_array: typing.Optional[typing.List[str]]=None, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None) -> "DoubleTrouble": + """Returns the boolean from a DerivedStruct struct. + :param another_required: + :param bool: + :param non_primitive: An example of a non primitive property. + :param another_optional: This is optional. + :param optional_any: + :param optional_array: + :param anumber: An awesome number value. + :param astring: A string value. + :param first_optional: -class GreetingAugmenter(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.GreetingAugmenter"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(GreetingAugmenter, self, []) + stability + :stability: experimental + """ + derived = DerivedStruct(another_required=another_required, bool=bool, non_primitive=non_primitive, another_optional=another_optional, optional_any=optional_any, optional_array=optional_array, anumber=anumber, astring=astring, first_optional=first_optional) - @jsii.member(jsii_name="betterGreeting") - def better_greeting(self, friendly: scope.jsii_calc_lib.IFriendly) -> str: - """ - :param friendly: - + return jsii.invoke(self, "readDerivedNonPrimitive", [derived]) - stability - :stability: experimental - """ - return jsii.invoke(self, "betterGreeting", [friendly]) + @jsii.member(jsii_name="readFirstNumber") + def read_first_number(self, *, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None) -> jsii.Number: + """Returns the "anumber" from a MyFirstStruct struct; + :param anumber: An awesome number value. + :param astring: A string value. + :param first_optional: -@jsii.interface(jsii_type="jsii-calc.IAnonymousImplementationProvider") -class IAnonymousImplementationProvider(jsii.compat.Protocol): - """We can return an anonymous interface implementation from an override without losing the interface declarations. + stability + :stability: experimental + """ + first = scope.jsii_calc_lib.MyFirstStruct(anumber=anumber, astring=astring, first_optional=first_optional) - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IAnonymousImplementationProviderProxy + return jsii.invoke(self, "readFirstNumber", [first]) - @jsii.member(jsii_name="provideAsClass") - def provide_as_class(self) -> "Implementation": + @builtins.property + @jsii.member(jsii_name="structLiteral") + def struct_literal(self) -> scope.jsii_calc_lib.StructWithOnlyOptionals: + """ + stability + :stability: experimental + """ + return jsii.get(self, "structLiteral") + + + class GreetingAugmenter(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.GreetingAugmenter"): """ stability :stability: experimental """ - ... + def __init__(self) -> None: + jsii.create(GreetingAugmenter, self, []) - @jsii.member(jsii_name="provideAsInterface") - def provide_as_interface(self) -> "IAnonymouslyImplementMe": - """ - stability - :stability: experimental - """ - ... + @jsii.member(jsii_name="betterGreeting") + def better_greeting(self, friendly: scope.jsii_calc_lib.IFriendly) -> str: + """ + :param friendly: - + stability + :stability: experimental + """ + return jsii.invoke(self, "betterGreeting", [friendly]) -class _IAnonymousImplementationProviderProxy(): - """We can return an anonymous interface implementation from an override without losing the interface declarations. - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.IAnonymousImplementationProvider" - @jsii.member(jsii_name="provideAsClass") - def provide_as_class(self) -> "Implementation": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "provideAsClass", []) + @jsii.interface(jsii_type="jsii-calc.compliance.IAnonymousImplementationProvider") + class IAnonymousImplementationProvider(jsii.compat.Protocol): + """We can return an anonymous interface implementation from an override without losing the interface declarations. - @jsii.member(jsii_name="provideAsInterface") - def provide_as_interface(self) -> "IAnonymouslyImplementMe": - """ stability :stability: experimental """ - return jsii.invoke(self, "provideAsInterface", []) + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IAnonymousImplementationProviderProxy + @jsii.member(jsii_name="provideAsClass") + def provide_as_class(self) -> "Implementation": + """ + stability + :stability: experimental + """ + ... -@jsii.implements(IAnonymousImplementationProvider) -class AnonymousImplementationProvider(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AnonymousImplementationProvider"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(AnonymousImplementationProvider, self, []) + @jsii.member(jsii_name="provideAsInterface") + def provide_as_interface(self) -> "IAnonymouslyImplementMe": + """ + stability + :stability: experimental + """ + ... + + + class _IAnonymousImplementationProviderProxy(): + """We can return an anonymous interface implementation from an override without losing the interface declarations. - @jsii.member(jsii_name="provideAsClass") - def provide_as_class(self) -> "Implementation": - """ stability :stability: experimental """ - return jsii.invoke(self, "provideAsClass", []) + __jsii_type__ = "jsii-calc.compliance.IAnonymousImplementationProvider" + @jsii.member(jsii_name="provideAsClass") + def provide_as_class(self) -> "Implementation": + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "provideAsClass", []) + + @jsii.member(jsii_name="provideAsInterface") + def provide_as_interface(self) -> "IAnonymouslyImplementMe": + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "provideAsInterface", []) + - @jsii.member(jsii_name="provideAsInterface") - def provide_as_interface(self) -> "IAnonymouslyImplementMe": + @jsii.interface(jsii_type="jsii-calc.compliance.IAnonymouslyImplementMe") + class IAnonymouslyImplementMe(jsii.compat.Protocol): """ stability :stability: experimental """ - return jsii.invoke(self, "provideAsInterface", []) + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IAnonymouslyImplementMeProxy + @builtins.property + @jsii.member(jsii_name="value") + def value(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + ... -@jsii.interface(jsii_type="jsii-calc.IAnonymouslyImplementMe") -class IAnonymouslyImplementMe(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IAnonymouslyImplementMeProxy + @jsii.member(jsii_name="verb") + def verb(self) -> str: + """ + stability + :stability: experimental + """ + ... - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> jsii.Number: + + class _IAnonymouslyImplementMeProxy(): """ stability :stability: experimental """ - ... + __jsii_type__ = "jsii-calc.compliance.IAnonymouslyImplementMe" + @builtins.property + @jsii.member(jsii_name="value") + def value(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.get(self, "value") + + @jsii.member(jsii_name="verb") + def verb(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "verb", []) + - @jsii.member(jsii_name="verb") - def verb(self) -> str: + @jsii.interface(jsii_type="jsii-calc.compliance.IAnotherPublicInterface") + class IAnotherPublicInterface(jsii.compat.Protocol): """ stability :stability: experimental """ - ... + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IAnotherPublicInterfaceProxy + + @builtins.property + @jsii.member(jsii_name="a") + def a(self) -> str: + """ + stability + :stability: experimental + """ + ... + @a.setter + def a(self, value: str): + ... -class _IAnonymouslyImplementMeProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.IAnonymouslyImplementMe" - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> jsii.Number: + + class _IAnotherPublicInterfaceProxy(): """ stability :stability: experimental """ - return jsii.get(self, "value") + __jsii_type__ = "jsii-calc.compliance.IAnotherPublicInterface" + @builtins.property + @jsii.member(jsii_name="a") + def a(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "a") + + @a.setter + def a(self, value: str): + jsii.set(self, "a", value) - @jsii.member(jsii_name="verb") - def verb(self) -> str: + + @jsii.interface(jsii_type="jsii-calc.compliance.IBell") + class IBell(jsii.compat.Protocol): """ stability :stability: experimental """ - return jsii.invoke(self, "verb", []) + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IBellProxy + @jsii.member(jsii_name="ring") + def ring(self) -> None: + """ + stability + :stability: experimental + """ + ... -@jsii.interface(jsii_type="jsii-calc.IAnotherPublicInterface") -class IAnotherPublicInterface(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IAnotherPublicInterfaceProxy - @builtins.property - @jsii.member(jsii_name="a") - def a(self) -> str: + class _IBellProxy(): """ stability :stability: experimental """ - ... + __jsii_type__ = "jsii-calc.compliance.IBell" + @jsii.member(jsii_name="ring") + def ring(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "ring", []) - @a.setter - def a(self, value: str): - ... + @jsii.interface(jsii_type="jsii-calc.compliance.IBellRinger") + class IBellRinger(jsii.compat.Protocol): + """Takes the object parameter as an interface. -class _IAnotherPublicInterfaceProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.IAnotherPublicInterface" - @builtins.property - @jsii.member(jsii_name="a") - def a(self) -> str: - """ stability :stability: experimental """ - return jsii.get(self, "a") + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IBellRingerProxy + + @jsii.member(jsii_name="yourTurn") + def your_turn(self, bell: "IBell") -> None: + """ + :param bell: - - @a.setter - def a(self, value: str): - jsii.set(self, "a", value) + stability + :stability: experimental + """ + ... -@jsii.interface(jsii_type="jsii-calc.IBell") -class IBell(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IBellProxy + class _IBellRingerProxy(): + """Takes the object parameter as an interface. - @jsii.member(jsii_name="ring") - def ring(self) -> None: - """ stability :stability: experimental """ - ... + __jsii_type__ = "jsii-calc.compliance.IBellRinger" + @jsii.member(jsii_name="yourTurn") + def your_turn(self, bell: "IBell") -> None: + """ + :param bell: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "yourTurn", [bell]) -class _IBellProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.IBell" - @jsii.member(jsii_name="ring") - def ring(self) -> None: - """ + @jsii.interface(jsii_type="jsii-calc.compliance.IConcreteBellRinger") + class IConcreteBellRinger(jsii.compat.Protocol): + """Takes the object parameter as a calss. + stability :stability: experimental """ - return jsii.invoke(self, "ring", []) + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IConcreteBellRingerProxy + @jsii.member(jsii_name="yourTurn") + def your_turn(self, bell: "Bell") -> None: + """ + :param bell: - -@jsii.implements(IBell) -class Bell(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Bell"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(Bell, self, []) + stability + :stability: experimental + """ + ... + + + class _IConcreteBellRingerProxy(): + """Takes the object parameter as a calss. - @jsii.member(jsii_name="ring") - def ring(self) -> None: - """ stability :stability: experimental """ - return jsii.invoke(self, "ring", []) + __jsii_type__ = "jsii-calc.compliance.IConcreteBellRinger" + @jsii.member(jsii_name="yourTurn") + def your_turn(self, bell: "Bell") -> None: + """ + :param bell: - - @builtins.property - @jsii.member(jsii_name="rung") - def rung(self) -> bool: + stability + :stability: experimental + """ + return jsii.invoke(self, "yourTurn", [bell]) + + + @jsii.interface(jsii_type="jsii-calc.compliance.IExtendsPrivateInterface") + class IExtendsPrivateInterface(jsii.compat.Protocol): """ stability :stability: experimental """ - return jsii.get(self, "rung") + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IExtendsPrivateInterfaceProxy - @rung.setter - def rung(self, value: bool): - jsii.set(self, "rung", value) + @builtins.property + @jsii.member(jsii_name="moreThings") + def more_things(self) -> typing.List[str]: + """ + stability + :stability: experimental + """ + ... + @builtins.property + @jsii.member(jsii_name="private") + def private(self) -> str: + """ + stability + :stability: experimental + """ + ... -@jsii.interface(jsii_type="jsii-calc.IBellRinger") -class IBellRinger(jsii.compat.Protocol): - """Takes the object parameter as an interface. + @private.setter + def private(self, value: str): + ... - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IBellRingerProxy - @jsii.member(jsii_name="yourTurn") - def your_turn(self, bell: "IBell") -> None: + class _IExtendsPrivateInterfaceProxy(): """ - :param bell: - - stability :stability: experimental """ - ... + __jsii_type__ = "jsii-calc.compliance.IExtendsPrivateInterface" + @builtins.property + @jsii.member(jsii_name="moreThings") + def more_things(self) -> typing.List[str]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "moreThings") + @builtins.property + @jsii.member(jsii_name="private") + def private(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "private") -class _IBellRingerProxy(): - """Takes the object parameter as an interface. + @private.setter + def private(self, value: str): + jsii.set(self, "private", value) - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.IBellRinger" - @jsii.member(jsii_name="yourTurn") - def your_turn(self, bell: "IBell") -> None: - """ - :param bell: - + + @jsii.interface(jsii_type="jsii-calc.compliance.IInterfaceImplementedByAbstractClass") + class IInterfaceImplementedByAbstractClass(jsii.compat.Protocol): + """awslabs/jsii#220 Abstract return type. stability :stability: experimental """ - return jsii.invoke(self, "yourTurn", [bell]) - + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IInterfaceImplementedByAbstractClassProxy -@jsii.interface(jsii_type="jsii-calc.IConcreteBellRinger") -class IConcreteBellRinger(jsii.compat.Protocol): - """Takes the object parameter as a calss. + @builtins.property + @jsii.member(jsii_name="propFromInterface") + def prop_from_interface(self) -> str: + """ + stability + :stability: experimental + """ + ... - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IConcreteBellRingerProxy - @jsii.member(jsii_name="yourTurn") - def your_turn(self, bell: "Bell") -> None: - """ - :param bell: - + class _IInterfaceImplementedByAbstractClassProxy(): + """awslabs/jsii#220 Abstract return type. stability :stability: experimental """ - ... - + __jsii_type__ = "jsii-calc.compliance.IInterfaceImplementedByAbstractClass" + @builtins.property + @jsii.member(jsii_name="propFromInterface") + def prop_from_interface(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "propFromInterface") -class _IConcreteBellRingerProxy(): - """Takes the object parameter as a calss. - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.IConcreteBellRinger" - @jsii.member(jsii_name="yourTurn") - def your_turn(self, bell: "Bell") -> None: + @jsii.interface(jsii_type="jsii-calc.compliance.IInterfaceWithInternal") + class IInterfaceWithInternal(jsii.compat.Protocol): """ - :param bell: - - stability :stability: experimental """ - return jsii.invoke(self, "yourTurn", [bell]) - + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IInterfaceWithInternalProxy -@jsii.interface(jsii_type="jsii-calc.IDeprecatedInterface") -class IDeprecatedInterface(jsii.compat.Protocol): - """ - deprecated - :deprecated: useless interface + @jsii.member(jsii_name="visible") + def visible(self) -> None: + """ + stability + :stability: experimental + """ + ... - stability - :stability: deprecated - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IDeprecatedInterfaceProxy - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: + class _IInterfaceWithInternalProxy(): """ - deprecated - :deprecated: could be better - stability - :stability: deprecated + :stability: experimental """ - ... + __jsii_type__ = "jsii-calc.compliance.IInterfaceWithInternal" + @jsii.member(jsii_name="visible") + def visible(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "visible", []) - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]): - ... - @jsii.member(jsii_name="method") - def method(self) -> None: + @jsii.interface(jsii_type="jsii-calc.compliance.IInterfaceWithMethods") + class IInterfaceWithMethods(jsii.compat.Protocol): """ - deprecated - :deprecated: services no purpose - stability - :stability: deprecated + :stability: experimental """ - ... + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IInterfaceWithMethodsProxy + + @builtins.property + @jsii.member(jsii_name="value") + def value(self) -> str: + """ + stability + :stability: experimental + """ + ... + @jsii.member(jsii_name="doThings") + def do_things(self) -> None: + """ + stability + :stability: experimental + """ + ... -class _IDeprecatedInterfaceProxy(): - """ - deprecated - :deprecated: useless interface - stability - :stability: deprecated - """ - __jsii_type__ = "jsii-calc.IDeprecatedInterface" - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: + class _IInterfaceWithMethodsProxy(): """ - deprecated - :deprecated: could be better - stability - :stability: deprecated + :stability: experimental """ - return jsii.get(self, "mutableProperty") + __jsii_type__ = "jsii-calc.compliance.IInterfaceWithMethods" + @builtins.property + @jsii.member(jsii_name="value") + def value(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "value") - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]): - jsii.set(self, "mutableProperty", value) + @jsii.member(jsii_name="doThings") + def do_things(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "doThings", []) - @jsii.member(jsii_name="method") - def method(self) -> None: - """ - deprecated - :deprecated: services no purpose + + @jsii.interface(jsii_type="jsii-calc.compliance.IInterfaceWithOptionalMethodArguments") + class IInterfaceWithOptionalMethodArguments(jsii.compat.Protocol): + """awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods. stability - :stability: deprecated + :stability: experimental """ - return jsii.invoke(self, "method", []) + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IInterfaceWithOptionalMethodArgumentsProxy + @jsii.member(jsii_name="hello") + def hello(self, arg1: str, arg2: typing.Optional[jsii.Number]=None) -> None: + """ + :param arg1: - + :param arg2: - -@jsii.interface(jsii_type="jsii-calc.IExperimentalInterface") -class IExperimentalInterface(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IExperimentalInterfaceProxy + stability + :stability: experimental + """ + ... + + + class _IInterfaceWithOptionalMethodArgumentsProxy(): + """awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods. - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: - """ stability :stability: experimental """ - ... + __jsii_type__ = "jsii-calc.compliance.IInterfaceWithOptionalMethodArguments" + @jsii.member(jsii_name="hello") + def hello(self, arg1: str, arg2: typing.Optional[jsii.Number]=None) -> None: + """ + :param arg1: - + :param arg2: - - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]): - ... + stability + :stability: experimental + """ + return jsii.invoke(self, "hello", [arg1, arg2]) - @jsii.member(jsii_name="method") - def method(self) -> None: + + @jsii.interface(jsii_type="jsii-calc.compliance.IInterfaceWithProperties") + class IInterfaceWithProperties(jsii.compat.Protocol): """ stability :stability: experimental """ - ... + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IInterfaceWithPropertiesProxy + + @builtins.property + @jsii.member(jsii_name="readOnlyString") + def read_only_string(self) -> str: + """ + stability + :stability: experimental + """ + ... + + @builtins.property + @jsii.member(jsii_name="readWriteString") + def read_write_string(self) -> str: + """ + stability + :stability: experimental + """ + ... + @read_write_string.setter + def read_write_string(self, value: str): + ... -class _IExperimentalInterfaceProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.IExperimentalInterface" - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: + + class _IInterfaceWithPropertiesProxy(): """ stability :stability: experimental """ - return jsii.get(self, "mutableProperty") + __jsii_type__ = "jsii-calc.compliance.IInterfaceWithProperties" + @builtins.property + @jsii.member(jsii_name="readOnlyString") + def read_only_string(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "readOnlyString") + + @builtins.property + @jsii.member(jsii_name="readWriteString") + def read_write_string(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "readWriteString") - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]): - jsii.set(self, "mutableProperty", value) + @read_write_string.setter + def read_write_string(self, value: str): + jsii.set(self, "readWriteString", value) - @jsii.member(jsii_name="method") - def method(self) -> None: + + @jsii.interface(jsii_type="jsii-calc.compliance.IInterfaceWithPropertiesExtension") + class IInterfaceWithPropertiesExtension(IInterfaceWithProperties, jsii.compat.Protocol): """ stability :stability: experimental """ - return jsii.invoke(self, "method", []) + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IInterfaceWithPropertiesExtensionProxy + + @builtins.property + @jsii.member(jsii_name="foo") + def foo(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + ... + @foo.setter + def foo(self, value: jsii.Number): + ... -@jsii.interface(jsii_type="jsii-calc.IExtendsPrivateInterface") -class IExtendsPrivateInterface(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IExtendsPrivateInterfaceProxy - @builtins.property - @jsii.member(jsii_name="moreThings") - def more_things(self) -> typing.List[str]: + class _IInterfaceWithPropertiesExtensionProxy(jsii.proxy_for(IInterfaceWithProperties)): """ stability :stability: experimental """ - ... + __jsii_type__ = "jsii-calc.compliance.IInterfaceWithPropertiesExtension" + @builtins.property + @jsii.member(jsii_name="foo") + def foo(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.get(self, "foo") - @builtins.property - @jsii.member(jsii_name="private") - def private(self) -> str: + @foo.setter + def foo(self, value: jsii.Number): + jsii.set(self, "foo", value) + + + @jsii.interface(jsii_type="jsii-calc.compliance.IMutableObjectLiteral") + class IMutableObjectLiteral(jsii.compat.Protocol): """ stability :stability: experimental """ - ... + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IMutableObjectLiteralProxy - @private.setter - def private(self, value: str): - ... + @builtins.property + @jsii.member(jsii_name="value") + def value(self) -> str: + """ + stability + :stability: experimental + """ + ... + @value.setter + def value(self, value: str): + ... -class _IExtendsPrivateInterfaceProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.IExtendsPrivateInterface" - @builtins.property - @jsii.member(jsii_name="moreThings") - def more_things(self) -> typing.List[str]: + + class _IMutableObjectLiteralProxy(): """ stability :stability: experimental """ - return jsii.get(self, "moreThings") + __jsii_type__ = "jsii-calc.compliance.IMutableObjectLiteral" + @builtins.property + @jsii.member(jsii_name="value") + def value(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "value") - @builtins.property - @jsii.member(jsii_name="private") - def private(self) -> str: + @value.setter + def value(self, value: str): + jsii.set(self, "value", value) + + + @jsii.interface(jsii_type="jsii-calc.compliance.INonInternalInterface") + class INonInternalInterface(IAnotherPublicInterface, jsii.compat.Protocol): """ stability :stability: experimental """ - return jsii.get(self, "private") + @builtins.staticmethod + def __jsii_proxy_class__(): + return _INonInternalInterfaceProxy - @private.setter - def private(self, value: str): - jsii.set(self, "private", value) + @builtins.property + @jsii.member(jsii_name="b") + def b(self) -> str: + """ + stability + :stability: experimental + """ + ... + @b.setter + def b(self, value: str): + ... -@jsii.interface(jsii_type="jsii-calc.IFriendlier") -class IFriendlier(scope.jsii_calc_lib.IFriendly, jsii.compat.Protocol): - """Even friendlier classes can implement this interface. + @builtins.property + @jsii.member(jsii_name="c") + def c(self) -> str: + """ + stability + :stability: experimental + """ + ... - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IFriendlierProxy + @c.setter + def c(self, value: str): + ... - @jsii.member(jsii_name="farewell") - def farewell(self) -> str: - """Say farewell. + class _INonInternalInterfaceProxy(jsii.proxy_for(IAnotherPublicInterface)): + """ stability :stability: experimental """ - ... + __jsii_type__ = "jsii-calc.compliance.INonInternalInterface" + @builtins.property + @jsii.member(jsii_name="b") + def b(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "b") - @jsii.member(jsii_name="goodbye") - def goodbye(self) -> str: - """Say goodbye. + @b.setter + def b(self, value: str): + jsii.set(self, "b", value) + + @builtins.property + @jsii.member(jsii_name="c") + def c(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "c") + + @c.setter + def c(self, value: str): + jsii.set(self, "c", value) - return - :return: A goodbye blessing. + + @jsii.interface(jsii_type="jsii-calc.compliance.IObjectWithProperty") + class IObjectWithProperty(jsii.compat.Protocol): + """Make sure that setters are properly called on objects with interfaces. stability :stability: experimental """ - ... + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IObjectWithPropertyProxy + @builtins.property + @jsii.member(jsii_name="property") + def property(self) -> str: + """ + stability + :stability: experimental + """ + ... -class _IFriendlierProxy(jsii.proxy_for(scope.jsii_calc_lib.IFriendly)): - """Even friendlier classes can implement this interface. + @property.setter + def property(self, value: str): + ... + + @jsii.member(jsii_name="wasSet") + def was_set(self) -> bool: + """ + stability + :stability: experimental + """ + ... - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.IFriendlier" - @jsii.member(jsii_name="farewell") - def farewell(self) -> str: - """Say farewell. + + class _IObjectWithPropertyProxy(): + """Make sure that setters are properly called on objects with interfaces. stability :stability: experimental """ - return jsii.invoke(self, "farewell", []) + __jsii_type__ = "jsii-calc.compliance.IObjectWithProperty" + @builtins.property + @jsii.member(jsii_name="property") + def property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "property") - @jsii.member(jsii_name="goodbye") - def goodbye(self) -> str: - """Say goodbye. + @property.setter + def property(self, value: str): + jsii.set(self, "property", value) - return - :return: A goodbye blessing. + @jsii.member(jsii_name="wasSet") + def was_set(self) -> bool: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "wasSet", []) + + + @jsii.interface(jsii_type="jsii-calc.compliance.IOptionalMethod") + class IOptionalMethod(jsii.compat.Protocol): + """Checks that optional result from interface method code generates correctly. stability :stability: experimental """ - return jsii.invoke(self, "goodbye", []) + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IOptionalMethodProxy + @jsii.member(jsii_name="optional") + def optional(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + ... -@jsii.interface(jsii_type="jsii-calc.IInterfaceImplementedByAbstractClass") -class IInterfaceImplementedByAbstractClass(jsii.compat.Protocol): - """awslabs/jsii#220 Abstract return type. - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IInterfaceImplementedByAbstractClassProxy + class _IOptionalMethodProxy(): + """Checks that optional result from interface method code generates correctly. - @builtins.property - @jsii.member(jsii_name="propFromInterface") - def prop_from_interface(self) -> str: - """ stability :stability: experimental """ - ... - + __jsii_type__ = "jsii-calc.compliance.IOptionalMethod" + @jsii.member(jsii_name="optional") + def optional(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "optional", []) -class _IInterfaceImplementedByAbstractClassProxy(): - """awslabs/jsii#220 Abstract return type. - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.IInterfaceImplementedByAbstractClass" - @builtins.property - @jsii.member(jsii_name="propFromInterface") - def prop_from_interface(self) -> str: + @jsii.interface(jsii_type="jsii-calc.compliance.IPrivatelyImplemented") + class IPrivatelyImplemented(jsii.compat.Protocol): """ stability :stability: experimental """ - return jsii.get(self, "propFromInterface") - + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IPrivatelyImplementedProxy -@jsii.implements(IInterfaceImplementedByAbstractClass) -class AbstractClass(AbstractClassBase, metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.AbstractClass"): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _AbstractClassProxy + @builtins.property + @jsii.member(jsii_name="success") + def success(self) -> bool: + """ + stability + :stability: experimental + """ + ... - def __init__(self) -> None: - jsii.create(AbstractClass, self, []) - @jsii.member(jsii_name="abstractMethod") - @abc.abstractmethod - def abstract_method(self, name: str) -> str: + class _IPrivatelyImplementedProxy(): """ - :param name: - - stability :stability: experimental """ - ... + __jsii_type__ = "jsii-calc.compliance.IPrivatelyImplemented" + @builtins.property + @jsii.member(jsii_name="success") + def success(self) -> bool: + """ + stability + :stability: experimental + """ + return jsii.get(self, "success") - @jsii.member(jsii_name="nonAbstractMethod") - def non_abstract_method(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "nonAbstractMethod", []) - @builtins.property - @jsii.member(jsii_name="propFromInterface") - def prop_from_interface(self) -> str: + @jsii.interface(jsii_type="jsii-calc.compliance.IPublicInterface") + class IPublicInterface(jsii.compat.Protocol): """ stability :stability: experimental """ - return jsii.get(self, "propFromInterface") + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IPublicInterfaceProxy + @jsii.member(jsii_name="bye") + def bye(self) -> str: + """ + stability + :stability: experimental + """ + ... -class _AbstractClassProxy(AbstractClass, jsii.proxy_for(AbstractClassBase)): - @jsii.member(jsii_name="abstractMethod") - def abstract_method(self, name: str) -> str: - """ - :param name: - + class _IPublicInterfaceProxy(): + """ stability :stability: experimental """ - return jsii.invoke(self, "abstractMethod", [name]) - + __jsii_type__ = "jsii-calc.compliance.IPublicInterface" + @jsii.member(jsii_name="bye") + def bye(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "bye", []) -@jsii.interface(jsii_type="jsii-calc.IInterfaceWithInternal") -class IInterfaceWithInternal(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IInterfaceWithInternalProxy - @jsii.member(jsii_name="visible") - def visible(self) -> None: + @jsii.interface(jsii_type="jsii-calc.compliance.IPublicInterface2") + class IPublicInterface2(jsii.compat.Protocol): """ stability :stability: experimental """ - ... + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IPublicInterface2Proxy + + @jsii.member(jsii_name="ciao") + def ciao(self) -> str: + """ + stability + :stability: experimental + """ + ... -class _IInterfaceWithInternalProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.IInterfaceWithInternal" - @jsii.member(jsii_name="visible") - def visible(self) -> None: + class _IPublicInterface2Proxy(): """ stability :stability: experimental """ - return jsii.invoke(self, "visible", []) + __jsii_type__ = "jsii-calc.compliance.IPublicInterface2" + @jsii.member(jsii_name="ciao") + def ciao(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "ciao", []) -@jsii.interface(jsii_type="jsii-calc.IInterfaceWithMethods") -class IInterfaceWithMethods(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IInterfaceWithMethodsProxy + @jsii.interface(jsii_type="jsii-calc.compliance.IReturnJsii976") + class IReturnJsii976(jsii.compat.Protocol): + """Returns a subclass of a known class which implements an interface. - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> str: - """ stability :stability: experimental """ - ... + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IReturnJsii976Proxy - @jsii.member(jsii_name="doThings") - def do_things(self) -> None: - """ - stability - :stability: experimental - """ - ... + @builtins.property + @jsii.member(jsii_name="foo") + def foo(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + ... -class _IInterfaceWithMethodsProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.IInterfaceWithMethods" - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> str: - """ + class _IReturnJsii976Proxy(): + """Returns a subclass of a known class which implements an interface. + stability :stability: experimental """ - return jsii.get(self, "value") + __jsii_type__ = "jsii-calc.compliance.IReturnJsii976" + @builtins.property + @jsii.member(jsii_name="foo") + def foo(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.get(self, "foo") - @jsii.member(jsii_name="doThings") - def do_things(self) -> None: + + @jsii.interface(jsii_type="jsii-calc.compliance.IReturnsNumber") + class IReturnsNumber(jsii.compat.Protocol): """ stability :stability: experimental """ - return jsii.invoke(self, "doThings", []) + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IReturnsNumberProxy + @builtins.property + @jsii.member(jsii_name="numberProp") + def number_prop(self) -> scope.jsii_calc_lib.Number: + """ + stability + :stability: experimental + """ + ... -@jsii.interface(jsii_type="jsii-calc.IInterfaceThatShouldNotBeADataType") -class IInterfaceThatShouldNotBeADataType(IInterfaceWithMethods, jsii.compat.Protocol): - """Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype. + @jsii.member(jsii_name="obtainNumber") + def obtain_number(self) -> scope.jsii_calc_lib.IDoublable: + """ + stability + :stability: experimental + """ + ... - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IInterfaceThatShouldNotBeADataTypeProxy - @builtins.property - @jsii.member(jsii_name="otherValue") - def other_value(self) -> str: + class _IReturnsNumberProxy(): """ stability :stability: experimental """ - ... + __jsii_type__ = "jsii-calc.compliance.IReturnsNumber" + @builtins.property + @jsii.member(jsii_name="numberProp") + def number_prop(self) -> scope.jsii_calc_lib.Number: + """ + stability + :stability: experimental + """ + return jsii.get(self, "numberProp") + + @jsii.member(jsii_name="obtainNumber") + def obtain_number(self) -> scope.jsii_calc_lib.IDoublable: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "obtainNumber", []) -class _IInterfaceThatShouldNotBeADataTypeProxy(jsii.proxy_for(IInterfaceWithMethods)): - """Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype. + @jsii.interface(jsii_type="jsii-calc.compliance.IStructReturningDelegate") + class IStructReturningDelegate(jsii.compat.Protocol): + """Verifies that a "pure" implementation of an interface works correctly. - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.IInterfaceThatShouldNotBeADataType" - @builtins.property - @jsii.member(jsii_name="otherValue") - def other_value(self) -> str: - """ stability :stability: experimental """ - return jsii.get(self, "otherValue") - + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IStructReturningDelegateProxy -@jsii.interface(jsii_type="jsii-calc.IInterfaceWithOptionalMethodArguments") -class IInterfaceWithOptionalMethodArguments(jsii.compat.Protocol): - """awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods. + @jsii.member(jsii_name="returnStruct") + def return_struct(self) -> "StructB": + """ + stability + :stability: experimental + """ + ... - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IInterfaceWithOptionalMethodArgumentsProxy - @jsii.member(jsii_name="hello") - def hello(self, arg1: str, arg2: typing.Optional[jsii.Number]=None) -> None: - """ - :param arg1: - - :param arg2: - + class _IStructReturningDelegateProxy(): + """Verifies that a "pure" implementation of an interface works correctly. stability :stability: experimental """ - ... - + __jsii_type__ = "jsii-calc.compliance.IStructReturningDelegate" + @jsii.member(jsii_name="returnStruct") + def return_struct(self) -> "StructB": + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "returnStruct", []) -class _IInterfaceWithOptionalMethodArgumentsProxy(): - """awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods. - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.IInterfaceWithOptionalMethodArguments" - @jsii.member(jsii_name="hello") - def hello(self, arg1: str, arg2: typing.Optional[jsii.Number]=None) -> None: + class ImplementInternalInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ImplementInternalInterface"): """ - :param arg1: - - :param arg2: - - stability :stability: experimental """ - return jsii.invoke(self, "hello", [arg1, arg2]) + def __init__(self) -> None: + jsii.create(ImplementInternalInterface, self, []) + @builtins.property + @jsii.member(jsii_name="prop") + def prop(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "prop") -@jsii.interface(jsii_type="jsii-calc.IInterfaceWithProperties") -class IInterfaceWithProperties(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IInterfaceWithPropertiesProxy + @prop.setter + def prop(self, value: str): + jsii.set(self, "prop", value) - @builtins.property - @jsii.member(jsii_name="readOnlyString") - def read_only_string(self) -> str: + + class Implementation(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.Implementation"): """ stability :stability: experimental """ - ... + def __init__(self) -> None: + jsii.create(Implementation, self, []) - @builtins.property - @jsii.member(jsii_name="readWriteString") - def read_write_string(self) -> str: + @builtins.property + @jsii.member(jsii_name="value") + def value(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.get(self, "value") + + + @jsii.implements(IInterfaceWithInternal) + class ImplementsInterfaceWithInternal(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ImplementsInterfaceWithInternal"): """ stability :stability: experimental """ - ... + def __init__(self) -> None: + jsii.create(ImplementsInterfaceWithInternal, self, []) - @read_write_string.setter - def read_write_string(self, value: str): - ... + @jsii.member(jsii_name="visible") + def visible(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "visible", []) -class _IInterfaceWithPropertiesProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.IInterfaceWithProperties" - @builtins.property - @jsii.member(jsii_name="readOnlyString") - def read_only_string(self) -> str: + class ImplementsInterfaceWithInternalSubclass(ImplementsInterfaceWithInternal, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ImplementsInterfaceWithInternalSubclass"): """ stability :stability: experimental """ - return jsii.get(self, "readOnlyString") + def __init__(self) -> None: + jsii.create(ImplementsInterfaceWithInternalSubclass, self, []) - @builtins.property - @jsii.member(jsii_name="readWriteString") - def read_write_string(self) -> str: + + class ImplementsPrivateInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ImplementsPrivateInterface"): """ stability :stability: experimental """ - return jsii.get(self, "readWriteString") - - @read_write_string.setter - def read_write_string(self, value: str): - jsii.set(self, "readWriteString", value) - - -@jsii.implements(IInterfaceWithProperties) -class ClassWithPrivateConstructorAndAutomaticProperties(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties"): - """Class that implements interface properties automatically, but using a private constructor. + def __init__(self) -> None: + jsii.create(ImplementsPrivateInterface, self, []) - stability - :stability: experimental - """ - @jsii.member(jsii_name="create") - @builtins.classmethod - def create(cls, read_only_string: str, read_write_string: str) -> "ClassWithPrivateConstructorAndAutomaticProperties": - """ - :param read_only_string: - - :param read_write_string: - + @builtins.property + @jsii.member(jsii_name="private") + def private(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "private") - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "create", [read_only_string, read_write_string]) + @private.setter + def private(self, value: str): + jsii.set(self, "private", value) - @builtins.property - @jsii.member(jsii_name="readOnlyString") - def read_only_string(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "readOnlyString") - @builtins.property - @jsii.member(jsii_name="readWriteString") - def read_write_string(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "readWriteString") + @jsii.data_type(jsii_type="jsii-calc.compliance.ImplictBaseOfBase", jsii_struct_bases=[scope.jsii_calc_base.BaseProps], name_mapping={'foo': 'foo', 'bar': 'bar', 'goo': 'goo'}) + class ImplictBaseOfBase(scope.jsii_calc_base.BaseProps): + def __init__(self, *, foo: scope.jsii_calc_base_of_base.Very, bar: str, goo: datetime.datetime): + """ + :param foo: - + :param bar: - + :param goo: - @read_write_string.setter - def read_write_string(self, value: str): - jsii.set(self, "readWriteString", value) + stability + :stability: experimental + """ + self._values = { + 'foo': foo, + 'bar': bar, + 'goo': goo, + } + @builtins.property + def foo(self) -> scope.jsii_calc_base_of_base.Very: + return self._values.get('foo') -@jsii.interface(jsii_type="jsii-calc.IInterfaceWithPropertiesExtension") -class IInterfaceWithPropertiesExtension(IInterfaceWithProperties, jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IInterfaceWithPropertiesExtensionProxy + @builtins.property + def bar(self) -> str: + return self._values.get('bar') - @builtins.property - @jsii.member(jsii_name="foo") - def foo(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - ... + @builtins.property + def goo(self) -> datetime.datetime: + """ + stability + :stability: experimental + """ + return self._values.get('goo') - @foo.setter - def foo(self, value: jsii.Number): - ... + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + def __ne__(self, rhs) -> bool: + return not (rhs == self) -class _IInterfaceWithPropertiesExtensionProxy(jsii.proxy_for(IInterfaceWithProperties)): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.IInterfaceWithPropertiesExtension" - @builtins.property - @jsii.member(jsii_name="foo") - def foo(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "foo") + def __repr__(self) -> str: + return 'ImplictBaseOfBase(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - @foo.setter - def foo(self, value: jsii.Number): - jsii.set(self, "foo", value) + class InterfaceCollections(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.InterfaceCollections"): + """Verifies that collections of interfaces or structs are correctly handled. -@jsii.interface(jsii_type="jsii-calc.IJSII417PublicBaseOfBase") -class IJSII417PublicBaseOfBase(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IJSII417PublicBaseOfBaseProxy + See: https://github.com/aws/jsii/issues/1196 - @builtins.property - @jsii.member(jsii_name="hasRoot") - def has_root(self) -> bool: - """ stability :stability: experimental """ - ... + @jsii.member(jsii_name="listOfInterfaces") + @builtins.classmethod + def list_of_interfaces(cls) -> typing.List["IBell"]: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "listOfInterfaces", []) - @jsii.member(jsii_name="foo") - def foo(self) -> None: - """ - stability - :stability: experimental - """ - ... + @jsii.member(jsii_name="listOfStructs") + @builtins.classmethod + def list_of_structs(cls) -> typing.List["StructA"]: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "listOfStructs", []) + @jsii.member(jsii_name="mapOfInterfaces") + @builtins.classmethod + def map_of_interfaces(cls) -> typing.Mapping[str,"IBell"]: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "mapOfInterfaces", []) -class _IJSII417PublicBaseOfBaseProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.IJSII417PublicBaseOfBase" - @builtins.property - @jsii.member(jsii_name="hasRoot") - def has_root(self) -> bool: - """ - stability - :stability: experimental - """ - return jsii.get(self, "hasRoot") + @jsii.member(jsii_name="mapOfStructs") + @builtins.classmethod + def map_of_structs(cls) -> typing.Mapping[str,"StructA"]: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "mapOfStructs", []) - @jsii.member(jsii_name="foo") - def foo(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "foo", []) + class interface_in_namespace_includes_classes: + class Foo(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Foo"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(jsii_calc.compliance.InterfaceInNamespaceIncludesClasses.Foo, self, []) -@jsii.interface(jsii_type="jsii-calc.IJSII417Derived") -class IJSII417Derived(IJSII417PublicBaseOfBase, jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IJSII417DerivedProxy + @builtins.property + @jsii.member(jsii_name="bar") + def bar(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "bar") - @builtins.property - @jsii.member(jsii_name="property") - def property(self) -> str: - """ - stability - :stability: experimental - """ - ... + @bar.setter + def bar(self, value: typing.Optional[str]): + jsii.set(self, "bar", value) - @jsii.member(jsii_name="bar") - def bar(self) -> None: - """ - stability - :stability: experimental - """ - ... - @jsii.member(jsii_name="baz") - def baz(self) -> None: - """ - stability - :stability: experimental - """ - ... + @jsii.data_type(jsii_type="jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Hello", jsii_struct_bases=[], name_mapping={'foo': 'foo'}) + class Hello(): + def __init__(self, *, foo: jsii.Number): + """ + :param foo: + stability + :stability: experimental + """ + self._values = { + 'foo': foo, + } -class _IJSII417DerivedProxy(jsii.proxy_for(IJSII417PublicBaseOfBase)): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.IJSII417Derived" - @builtins.property - @jsii.member(jsii_name="property") - def property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "property") + @builtins.property + def foo(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return self._values.get('foo') - @jsii.member(jsii_name="bar") - def bar(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "bar", []) + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values - @jsii.member(jsii_name="baz") - def baz(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "baz", []) + def __ne__(self, rhs) -> bool: + return not (rhs == self) + def __repr__(self) -> str: + return 'Hello(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) -@jsii.interface(jsii_type="jsii-calc.IJsii487External") -class IJsii487External(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IJsii487ExternalProxy - pass -class _IJsii487ExternalProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.IJsii487External" - pass + class interface_in_namespace_only_interface: + @jsii.data_type(jsii_type="jsii-calc.compliance.InterfaceInNamespaceOnlyInterface.Hello", jsii_struct_bases=[], name_mapping={'foo': 'foo'}) + class Hello(): + def __init__(self, *, foo: jsii.Number): + """ + :param foo: -@jsii.interface(jsii_type="jsii-calc.IJsii487External2") -class IJsii487External2(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IJsii487External2Proxy + stability + :stability: experimental + """ + self._values = { + 'foo': foo, + } - pass + @builtins.property + def foo(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return self._values.get('foo') -class _IJsii487External2Proxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.IJsii487External2" - pass + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values -@jsii.interface(jsii_type="jsii-calc.IJsii496") -class IJsii496(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IJsii496Proxy + def __ne__(self, rhs) -> bool: + return not (rhs == self) - pass + def __repr__(self) -> str: + return 'Hello(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) -class _IJsii496Proxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.IJsii496" - pass -@jsii.interface(jsii_type="jsii-calc.IMutableObjectLiteral") -class IMutableObjectLiteral(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IMutableObjectLiteralProxy - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> str: - """ + class InterfacesMaker(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.InterfacesMaker"): + """We can return arrays of interfaces See aws/aws-cdk#2362. + stability :stability: experimental """ - ... + @jsii.member(jsii_name="makeInterfaces") + @builtins.classmethod + def make_interfaces(cls, count: jsii.Number) -> typing.List[scope.jsii_calc_lib.IDoublable]: + """ + :param count: - - @value.setter - def value(self, value: str): - ... + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "makeInterfaces", [count]) -class _IMutableObjectLiteralProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.IMutableObjectLiteral" - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> str: + class JSObjectLiteralForInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.JSObjectLiteralForInterface"): """ stability :stability: experimental """ - return jsii.get(self, "value") + def __init__(self) -> None: + jsii.create(JSObjectLiteralForInterface, self, []) - @value.setter - def value(self, value: str): - jsii.set(self, "value", value) + @jsii.member(jsii_name="giveMeFriendly") + def give_me_friendly(self) -> scope.jsii_calc_lib.IFriendly: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "giveMeFriendly", []) + @jsii.member(jsii_name="giveMeFriendlyGenerator") + def give_me_friendly_generator(self) -> jsii_calc.IFriendlyRandomGenerator: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "giveMeFriendlyGenerator", []) -@jsii.interface(jsii_type="jsii-calc.INonInternalInterface") -class INonInternalInterface(IAnotherPublicInterface, jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _INonInternalInterfaceProxy - @builtins.property - @jsii.member(jsii_name="b") - def b(self) -> str: + class JSObjectLiteralToNative(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.JSObjectLiteralToNative"): """ stability :stability: experimental """ - ... + def __init__(self) -> None: + jsii.create(JSObjectLiteralToNative, self, []) - @b.setter - def b(self, value: str): - ... + @jsii.member(jsii_name="returnLiteral") + def return_literal(self) -> "JSObjectLiteralToNativeClass": + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "returnLiteral", []) - @builtins.property - @jsii.member(jsii_name="c") - def c(self) -> str: + + class JSObjectLiteralToNativeClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.JSObjectLiteralToNativeClass"): """ stability :stability: experimental """ - ... + def __init__(self) -> None: + jsii.create(JSObjectLiteralToNativeClass, self, []) - @c.setter - def c(self, value: str): - ... + @builtins.property + @jsii.member(jsii_name="propA") + def prop_a(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "propA") + @prop_a.setter + def prop_a(self, value: str): + jsii.set(self, "propA", value) -class _INonInternalInterfaceProxy(jsii.proxy_for(IAnotherPublicInterface)): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.INonInternalInterface" - @builtins.property - @jsii.member(jsii_name="b") - def b(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "b") - - @b.setter - def b(self, value: str): - jsii.set(self, "b", value) - - @builtins.property - @jsii.member(jsii_name="c") - def c(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "c") - - @c.setter - def c(self, value: str): - jsii.set(self, "c", value) - - -@jsii.implements(INonInternalInterface) -class ClassThatImplementsTheInternalInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassThatImplementsTheInternalInterface"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(ClassThatImplementsTheInternalInterface, self, []) - - @builtins.property - @jsii.member(jsii_name="a") - def a(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "a") - - @a.setter - def a(self, value: str): - jsii.set(self, "a", value) - - @builtins.property - @jsii.member(jsii_name="b") - def b(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "b") - - @b.setter - def b(self, value: str): - jsii.set(self, "b", value) - - @builtins.property - @jsii.member(jsii_name="c") - def c(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "c") - - @c.setter - def c(self, value: str): - jsii.set(self, "c", value) - - @builtins.property - @jsii.member(jsii_name="d") - def d(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "d") - - @d.setter - def d(self, value: str): - jsii.set(self, "d", value) - - -@jsii.implements(INonInternalInterface) -class ClassThatImplementsThePrivateInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassThatImplementsThePrivateInterface"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(ClassThatImplementsThePrivateInterface, self, []) - - @builtins.property - @jsii.member(jsii_name="a") - def a(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "a") - - @a.setter - def a(self, value: str): - jsii.set(self, "a", value) - - @builtins.property - @jsii.member(jsii_name="b") - def b(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "b") - - @b.setter - def b(self, value: str): - jsii.set(self, "b", value) - - @builtins.property - @jsii.member(jsii_name="c") - def c(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "c") - - @c.setter - def c(self, value: str): - jsii.set(self, "c", value) - - @builtins.property - @jsii.member(jsii_name="e") - def e(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "e") - - @e.setter - def e(self, value: str): - jsii.set(self, "e", value) - - -@jsii.interface(jsii_type="jsii-calc.IObjectWithProperty") -class IObjectWithProperty(jsii.compat.Protocol): - """Make sure that setters are properly called on objects with interfaces. - - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IObjectWithPropertyProxy - - @builtins.property - @jsii.member(jsii_name="property") - def property(self) -> str: - """ - stability - :stability: experimental - """ - ... - - @property.setter - def property(self, value: str): - ... - - @jsii.member(jsii_name="wasSet") - def was_set(self) -> bool: - """ - stability - :stability: experimental - """ - ... - - -class _IObjectWithPropertyProxy(): - """Make sure that setters are properly called on objects with interfaces. - - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.IObjectWithProperty" - @builtins.property - @jsii.member(jsii_name="property") - def property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "property") - - @property.setter - def property(self, value: str): - jsii.set(self, "property", value) - - @jsii.member(jsii_name="wasSet") - def was_set(self) -> bool: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "wasSet", []) - - -@jsii.interface(jsii_type="jsii-calc.IOptionalMethod") -class IOptionalMethod(jsii.compat.Protocol): - """Checks that optional result from interface method code generates correctly. - - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IOptionalMethodProxy - - @jsii.member(jsii_name="optional") - def optional(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - ... - - -class _IOptionalMethodProxy(): - """Checks that optional result from interface method code generates correctly. - - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.IOptionalMethod" - @jsii.member(jsii_name="optional") - def optional(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "optional", []) - - -@jsii.interface(jsii_type="jsii-calc.IPrivatelyImplemented") -class IPrivatelyImplemented(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IPrivatelyImplementedProxy - - @builtins.property - @jsii.member(jsii_name="success") - def success(self) -> bool: - """ - stability - :stability: experimental - """ - ... - - -class _IPrivatelyImplementedProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.IPrivatelyImplemented" - @builtins.property - @jsii.member(jsii_name="success") - def success(self) -> bool: - """ - stability - :stability: experimental - """ - return jsii.get(self, "success") - - -@jsii.interface(jsii_type="jsii-calc.IPublicInterface") -class IPublicInterface(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IPublicInterfaceProxy - - @jsii.member(jsii_name="bye") - def bye(self) -> str: - """ - stability - :stability: experimental - """ - ... - - -class _IPublicInterfaceProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.IPublicInterface" - @jsii.member(jsii_name="bye") - def bye(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "bye", []) - - -@jsii.interface(jsii_type="jsii-calc.IPublicInterface2") -class IPublicInterface2(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IPublicInterface2Proxy - - @jsii.member(jsii_name="ciao") - def ciao(self) -> str: - """ - stability - :stability: experimental - """ - ... - - -class _IPublicInterface2Proxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.IPublicInterface2" - @jsii.member(jsii_name="ciao") - def ciao(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "ciao", []) - - -@jsii.interface(jsii_type="jsii-calc.IRandomNumberGenerator") -class IRandomNumberGenerator(jsii.compat.Protocol): - """Generates random numbers. - - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IRandomNumberGeneratorProxy - - @jsii.member(jsii_name="next") - def next(self) -> jsii.Number: - """Returns another random number. - - return - :return: A random number. - - stability - :stability: experimental - """ - ... - - -class _IRandomNumberGeneratorProxy(): - """Generates random numbers. - - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.IRandomNumberGenerator" - @jsii.member(jsii_name="next") - def next(self) -> jsii.Number: - """Returns another random number. - - return - :return: A random number. - - stability - :stability: experimental - """ - return jsii.invoke(self, "next", []) - - -@jsii.interface(jsii_type="jsii-calc.IFriendlyRandomGenerator") -class IFriendlyRandomGenerator(IRandomNumberGenerator, scope.jsii_calc_lib.IFriendly, jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IFriendlyRandomGeneratorProxy - - pass - -class _IFriendlyRandomGeneratorProxy(jsii.proxy_for(IRandomNumberGenerator), jsii.proxy_for(scope.jsii_calc_lib.IFriendly)): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.IFriendlyRandomGenerator" - pass - -@jsii.implements(IFriendlyRandomGenerator) -class DoubleTrouble(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DoubleTrouble"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(DoubleTrouble, self, []) - - @jsii.member(jsii_name="hello") - def hello(self) -> str: - """Say hello! - - stability - :stability: experimental - """ - return jsii.invoke(self, "hello", []) - - @jsii.member(jsii_name="next") - def next(self) -> jsii.Number: - """Returns another random number. - - stability - :stability: experimental - """ - return jsii.invoke(self, "next", []) - - -@jsii.interface(jsii_type="jsii-calc.IReturnJsii976") -class IReturnJsii976(jsii.compat.Protocol): - """Returns a subclass of a known class which implements an interface. - - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IReturnJsii976Proxy - - @builtins.property - @jsii.member(jsii_name="foo") - def foo(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - ... - - -class _IReturnJsii976Proxy(): - """Returns a subclass of a known class which implements an interface. - - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.IReturnJsii976" - @builtins.property - @jsii.member(jsii_name="foo") - def foo(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "foo") - - -@jsii.interface(jsii_type="jsii-calc.IReturnsNumber") -class IReturnsNumber(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IReturnsNumberProxy - - @builtins.property - @jsii.member(jsii_name="numberProp") - def number_prop(self) -> scope.jsii_calc_lib.Number: - """ - stability - :stability: experimental - """ - ... - - @jsii.member(jsii_name="obtainNumber") - def obtain_number(self) -> scope.jsii_calc_lib.IDoublable: - """ - stability - :stability: experimental - """ - ... - - -class _IReturnsNumberProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.IReturnsNumber" - @builtins.property - @jsii.member(jsii_name="numberProp") - def number_prop(self) -> scope.jsii_calc_lib.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "numberProp") - - @jsii.member(jsii_name="obtainNumber") - def obtain_number(self) -> scope.jsii_calc_lib.IDoublable: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "obtainNumber", []) - - -@jsii.interface(jsii_type="jsii-calc.IStableInterface") -class IStableInterface(jsii.compat.Protocol): - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IStableInterfaceProxy - - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: - ... - - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]): - ... - - @jsii.member(jsii_name="method") - def method(self) -> None: - ... - - -class _IStableInterfaceProxy(): - __jsii_type__ = "jsii-calc.IStableInterface" - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: - return jsii.get(self, "mutableProperty") - - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]): - jsii.set(self, "mutableProperty", value) - - @jsii.member(jsii_name="method") - def method(self) -> None: - return jsii.invoke(self, "method", []) - - -@jsii.interface(jsii_type="jsii-calc.IStructReturningDelegate") -class IStructReturningDelegate(jsii.compat.Protocol): - """Verifies that a "pure" implementation of an interface works correctly. - - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IStructReturningDelegateProxy - - @jsii.member(jsii_name="returnStruct") - def return_struct(self) -> "StructB": - """ - stability - :stability: experimental - """ - ... - - -class _IStructReturningDelegateProxy(): - """Verifies that a "pure" implementation of an interface works correctly. - - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.IStructReturningDelegate" - @jsii.member(jsii_name="returnStruct") - def return_struct(self) -> "StructB": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "returnStruct", []) - - -class ImplementInternalInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ImplementInternalInterface"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(ImplementInternalInterface, self, []) - - @builtins.property - @jsii.member(jsii_name="prop") - def prop(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "prop") - - @prop.setter - def prop(self, value: str): - jsii.set(self, "prop", value) - - -class Implementation(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Implementation"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(Implementation, self, []) - - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "value") - - -@jsii.implements(IInterfaceWithInternal) -class ImplementsInterfaceWithInternal(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ImplementsInterfaceWithInternal"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(ImplementsInterfaceWithInternal, self, []) - - @jsii.member(jsii_name="visible") - def visible(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "visible", []) - - -class ImplementsInterfaceWithInternalSubclass(ImplementsInterfaceWithInternal, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ImplementsInterfaceWithInternalSubclass"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(ImplementsInterfaceWithInternalSubclass, self, []) - - -class ImplementsPrivateInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ImplementsPrivateInterface"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(ImplementsPrivateInterface, self, []) - - @builtins.property - @jsii.member(jsii_name="private") - def private(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "private") - - @private.setter - def private(self, value: str): - jsii.set(self, "private", value) - - -@jsii.data_type(jsii_type="jsii-calc.ImplictBaseOfBase", jsii_struct_bases=[scope.jsii_calc_base.BaseProps], name_mapping={'foo': 'foo', 'bar': 'bar', 'goo': 'goo'}) -class ImplictBaseOfBase(scope.jsii_calc_base.BaseProps): - def __init__(self, *, foo: scope.jsii_calc_base_of_base.Very, bar: str, goo: datetime.datetime): - """ - :param foo: - - :param bar: - - :param goo: - - stability - :stability: experimental - """ - self._values = { - 'foo': foo, - 'bar': bar, - 'goo': goo, - } - - @builtins.property - def foo(self) -> scope.jsii_calc_base_of_base.Very: - return self._values.get('foo') - - @builtins.property - def bar(self) -> str: - return self._values.get('bar') - - @builtins.property - def goo(self) -> datetime.datetime: - """ - stability - :stability: experimental - """ - return self._values.get('goo') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'ImplictBaseOfBase(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - -class InterfaceCollections(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.InterfaceCollections"): - """Verifies that collections of interfaces or structs are correctly handled. - - See: https://github.com/aws/jsii/issues/1196 - - stability - :stability: experimental - """ - @jsii.member(jsii_name="listOfInterfaces") - @builtins.classmethod - def list_of_interfaces(cls) -> typing.List["IBell"]: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "listOfInterfaces", []) - - @jsii.member(jsii_name="listOfStructs") - @builtins.classmethod - def list_of_structs(cls) -> typing.List["StructA"]: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "listOfStructs", []) - - @jsii.member(jsii_name="mapOfInterfaces") - @builtins.classmethod - def map_of_interfaces(cls) -> typing.Mapping[str,"IBell"]: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "mapOfInterfaces", []) + @builtins.property + @jsii.member(jsii_name="propB") + def prop_b(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.get(self, "propB") - @jsii.member(jsii_name="mapOfStructs") - @builtins.classmethod - def map_of_structs(cls) -> typing.Mapping[str,"StructA"]: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "mapOfStructs", []) + @prop_b.setter + def prop_b(self, value: jsii.Number): + jsii.set(self, "propB", value) -class InterfaceInNamespaceIncludesClasses: - class Foo(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.InterfaceInNamespaceIncludesClasses.Foo"): + class JavaReservedWords(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.JavaReservedWords"): """ stability :stability: experimental """ def __init__(self) -> None: - jsii.create(InterfaceInNamespaceIncludesClasses.Foo, self, []) + jsii.create(JavaReservedWords, self, []) - @builtins.property - @jsii.member(jsii_name="bar") - def bar(self) -> typing.Optional[str]: + @jsii.member(jsii_name="abstract") + def abstract(self) -> None: """ stability :stability: experimental """ - return jsii.get(self, "bar") - - @bar.setter - def bar(self, value: typing.Optional[str]): - jsii.set(self, "bar", value) + return jsii.invoke(self, "abstract", []) + @jsii.member(jsii_name="assert") + def assert_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "assert", []) - @jsii.data_type(jsii_type="jsii-calc.InterfaceInNamespaceIncludesClasses.Hello", jsii_struct_bases=[], name_mapping={'foo': 'foo'}) - class Hello(): - def __init__(self, *, foo: jsii.Number): + @jsii.member(jsii_name="boolean") + def boolean(self) -> None: """ - :param foo: + stability + :stability: experimental + """ + return jsii.invoke(self, "boolean", []) + @jsii.member(jsii_name="break") + def break_(self) -> None: + """ stability :stability: experimental """ - self._values = { - 'foo': foo, - } + return jsii.invoke(self, "break", []) - @builtins.property - def foo(self) -> jsii.Number: + @jsii.member(jsii_name="byte") + def byte(self) -> None: """ stability :stability: experimental """ - return self._values.get('foo') + return jsii.invoke(self, "byte", []) - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values + @jsii.member(jsii_name="case") + def case(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "case", []) - def __ne__(self, rhs) -> bool: - return not (rhs == self) + @jsii.member(jsii_name="catch") + def catch(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "catch", []) - def __repr__(self) -> str: - return 'Hello(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + @jsii.member(jsii_name="char") + def char(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "char", []) + @jsii.member(jsii_name="class") + def class_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "class", []) + @jsii.member(jsii_name="const") + def const(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "const", []) -class InterfaceInNamespaceOnlyInterface: - @jsii.data_type(jsii_type="jsii-calc.InterfaceInNamespaceOnlyInterface.Hello", jsii_struct_bases=[], name_mapping={'foo': 'foo'}) - class Hello(): - def __init__(self, *, foo: jsii.Number): + @jsii.member(jsii_name="continue") + def continue_(self) -> None: """ - :param foo: + stability + :stability: experimental + """ + return jsii.invoke(self, "continue", []) + @jsii.member(jsii_name="default") + def default(self) -> None: + """ stability :stability: experimental """ - self._values = { - 'foo': foo, - } + return jsii.invoke(self, "default", []) - @builtins.property - def foo(self) -> jsii.Number: + @jsii.member(jsii_name="do") + def do(self) -> None: """ stability :stability: experimental """ - return self._values.get('foo') + return jsii.invoke(self, "do", []) - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values + @jsii.member(jsii_name="double") + def double(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "double", []) - def __ne__(self, rhs) -> bool: - return not (rhs == self) + @jsii.member(jsii_name="else") + def else_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "else", []) - def __repr__(self) -> str: - return 'Hello(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + @jsii.member(jsii_name="enum") + def enum(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "enum", []) + @jsii.member(jsii_name="extends") + def extends(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "extends", []) + @jsii.member(jsii_name="false") + def false(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "false", []) -class InterfacesMaker(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.InterfacesMaker"): - """We can return arrays of interfaces See aws/aws-cdk#2362. + @jsii.member(jsii_name="final") + def final(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "final", []) - stability - :stability: experimental - """ - @jsii.member(jsii_name="makeInterfaces") - @builtins.classmethod - def make_interfaces(cls, count: jsii.Number) -> typing.List[scope.jsii_calc_lib.IDoublable]: - """ - :param count: - + @jsii.member(jsii_name="finally") + def finally_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "finally", []) - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "makeInterfaces", [count]) + @jsii.member(jsii_name="float") + def float(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "float", []) + @jsii.member(jsii_name="for") + def for_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "for", []) -class JSII417PublicBaseOfBase(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JSII417PublicBaseOfBase"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(JSII417PublicBaseOfBase, self, []) + @jsii.member(jsii_name="goto") + def goto(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "goto", []) - @jsii.member(jsii_name="makeInstance") - @builtins.classmethod - def make_instance(cls) -> "JSII417PublicBaseOfBase": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "makeInstance", []) + @jsii.member(jsii_name="if") + def if_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "if", []) - @jsii.member(jsii_name="foo") - def foo(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "foo", []) + @jsii.member(jsii_name="implements") + def implements(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "implements", []) - @builtins.property - @jsii.member(jsii_name="hasRoot") - def has_root(self) -> bool: - """ - stability - :stability: experimental - """ - return jsii.get(self, "hasRoot") + @jsii.member(jsii_name="import") + def import_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "import", []) + @jsii.member(jsii_name="instanceof") + def instanceof(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "instanceof", []) -class JSII417Derived(JSII417PublicBaseOfBase, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JSII417Derived"): - """ - stability - :stability: experimental - """ - def __init__(self, property: str) -> None: - """ - :param property: - + @jsii.member(jsii_name="int") + def int(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "int", []) - stability - :stability: experimental - """ - jsii.create(JSII417Derived, self, [property]) + @jsii.member(jsii_name="interface") + def interface(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "interface", []) - @jsii.member(jsii_name="bar") - def bar(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "bar", []) + @jsii.member(jsii_name="long") + def long(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "long", []) - @jsii.member(jsii_name="baz") - def baz(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "baz", []) + @jsii.member(jsii_name="native") + def native(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "native", []) - @builtins.property - @jsii.member(jsii_name="property") - def _property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "property") + @jsii.member(jsii_name="new") + def new(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "new", []) + @jsii.member(jsii_name="null") + def null(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "null", []) -class JSObjectLiteralForInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JSObjectLiteralForInterface"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(JSObjectLiteralForInterface, self, []) + @jsii.member(jsii_name="package") + def package(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "package", []) - @jsii.member(jsii_name="giveMeFriendly") - def give_me_friendly(self) -> scope.jsii_calc_lib.IFriendly: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "giveMeFriendly", []) + @jsii.member(jsii_name="private") + def private(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "private", []) - @jsii.member(jsii_name="giveMeFriendlyGenerator") - def give_me_friendly_generator(self) -> "IFriendlyRandomGenerator": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "giveMeFriendlyGenerator", []) + @jsii.member(jsii_name="protected") + def protected(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "protected", []) + @jsii.member(jsii_name="public") + def public(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "public", []) -class JSObjectLiteralToNative(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JSObjectLiteralToNative"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(JSObjectLiteralToNative, self, []) + @jsii.member(jsii_name="return") + def return_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "return", []) - @jsii.member(jsii_name="returnLiteral") - def return_literal(self) -> "JSObjectLiteralToNativeClass": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "returnLiteral", []) + @jsii.member(jsii_name="short") + def short(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "short", []) + @jsii.member(jsii_name="static") + def static(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "static", []) -class JSObjectLiteralToNativeClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JSObjectLiteralToNativeClass"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(JSObjectLiteralToNativeClass, self, []) + @jsii.member(jsii_name="strictfp") + def strictfp(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "strictfp", []) - @builtins.property - @jsii.member(jsii_name="propA") - def prop_a(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "propA") + @jsii.member(jsii_name="super") + def super(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "super", []) - @prop_a.setter - def prop_a(self, value: str): - jsii.set(self, "propA", value) + @jsii.member(jsii_name="switch") + def switch(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "switch", []) - @builtins.property - @jsii.member(jsii_name="propB") - def prop_b(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "propB") + @jsii.member(jsii_name="synchronized") + def synchronized(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "synchronized", []) - @prop_b.setter - def prop_b(self, value: jsii.Number): - jsii.set(self, "propB", value) + @jsii.member(jsii_name="this") + def this(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "this", []) + @jsii.member(jsii_name="throw") + def throw(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "throw", []) -class JavaReservedWords(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JavaReservedWords"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(JavaReservedWords, self, []) + @jsii.member(jsii_name="throws") + def throws(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "throws", []) - @jsii.member(jsii_name="abstract") - def abstract(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "abstract", []) + @jsii.member(jsii_name="transient") + def transient(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "transient", []) - @jsii.member(jsii_name="assert") - def assert_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "assert", []) + @jsii.member(jsii_name="true") + def true(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "true", []) - @jsii.member(jsii_name="boolean") - def boolean(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "boolean", []) + @jsii.member(jsii_name="try") + def try_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "try", []) - @jsii.member(jsii_name="break") - def break_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "break", []) + @jsii.member(jsii_name="void") + def void(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "void", []) - @jsii.member(jsii_name="byte") - def byte(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "byte", []) + @jsii.member(jsii_name="volatile") + def volatile(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "volatile", []) - @jsii.member(jsii_name="case") - def case(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "case", []) + @builtins.property + @jsii.member(jsii_name="while") + def while_(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "while") - @jsii.member(jsii_name="catch") - def catch(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "catch", []) + @while_.setter + def while_(self, value: str): + jsii.set(self, "while", value) - @jsii.member(jsii_name="char") - def char(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "char", []) - @jsii.member(jsii_name="class") - def class_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "class", []) + class JsiiAgent(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.JsiiAgent"): + """Host runtime version should be set via JSII_AGENT. - @jsii.member(jsii_name="const") - def const(self) -> None: - """ stability :stability: experimental """ - return jsii.invoke(self, "const", []) + def __init__(self) -> None: + jsii.create(JsiiAgent, self, []) - @jsii.member(jsii_name="continue") - def continue_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "continue", []) + @jsii.python.classproperty + @jsii.member(jsii_name="jsiiAgent") + def jsii_agent(cls) -> typing.Optional[str]: + """Returns the value of the JSII_AGENT environment variable. - @jsii.member(jsii_name="default") - def default(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "default", []) + stability + :stability: experimental + """ + return jsii.sget(cls, "jsiiAgent") - @jsii.member(jsii_name="do") - def do(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "do", []) - @jsii.member(jsii_name="double") - def double(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "double", []) + class JsonFormatter(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.JsonFormatter"): + """Make sure structs are un-decorated on the way in. - @jsii.member(jsii_name="else") - def else_(self) -> None: - """ + see + :see: https://github.com/aws/aws-cdk/issues/5066 stability :stability: experimental """ - return jsii.invoke(self, "else", []) + @jsii.member(jsii_name="anyArray") + @builtins.classmethod + def any_array(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyArray", []) - @jsii.member(jsii_name="enum") - def enum(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "enum", []) + @jsii.member(jsii_name="anyBooleanFalse") + @builtins.classmethod + def any_boolean_false(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyBooleanFalse", []) - @jsii.member(jsii_name="extends") - def extends(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "extends", []) + @jsii.member(jsii_name="anyBooleanTrue") + @builtins.classmethod + def any_boolean_true(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyBooleanTrue", []) - @jsii.member(jsii_name="false") - def false(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "false", []) + @jsii.member(jsii_name="anyDate") + @builtins.classmethod + def any_date(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyDate", []) - @jsii.member(jsii_name="final") - def final(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "final", []) + @jsii.member(jsii_name="anyEmptyString") + @builtins.classmethod + def any_empty_string(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyEmptyString", []) - @jsii.member(jsii_name="finally") - def finally_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "finally", []) + @jsii.member(jsii_name="anyFunction") + @builtins.classmethod + def any_function(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyFunction", []) - @jsii.member(jsii_name="float") - def float(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "float", []) + @jsii.member(jsii_name="anyHash") + @builtins.classmethod + def any_hash(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyHash", []) - @jsii.member(jsii_name="for") - def for_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "for", []) + @jsii.member(jsii_name="anyNull") + @builtins.classmethod + def any_null(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyNull", []) - @jsii.member(jsii_name="goto") - def goto(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "goto", []) + @jsii.member(jsii_name="anyNumber") + @builtins.classmethod + def any_number(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyNumber", []) - @jsii.member(jsii_name="if") - def if_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "if", []) + @jsii.member(jsii_name="anyRef") + @builtins.classmethod + def any_ref(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyRef", []) - @jsii.member(jsii_name="implements") - def implements(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "implements", []) + @jsii.member(jsii_name="anyString") + @builtins.classmethod + def any_string(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyString", []) - @jsii.member(jsii_name="import") - def import_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "import", []) + @jsii.member(jsii_name="anyUndefined") + @builtins.classmethod + def any_undefined(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyUndefined", []) - @jsii.member(jsii_name="instanceof") - def instanceof(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "instanceof", []) + @jsii.member(jsii_name="anyZero") + @builtins.classmethod + def any_zero(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyZero", []) - @jsii.member(jsii_name="int") - def int(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "int", []) + @jsii.member(jsii_name="stringify") + @builtins.classmethod + def stringify(cls, value: typing.Any=None) -> typing.Optional[str]: + """ + :param value: - - @jsii.member(jsii_name="interface") - def interface(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "interface", []) + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "stringify", [value]) - @jsii.member(jsii_name="long") - def long(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "long", []) - @jsii.member(jsii_name="native") - def native(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "native", []) + @jsii.data_type(jsii_type="jsii-calc.compliance.LoadBalancedFargateServiceProps", jsii_struct_bases=[], name_mapping={'container_port': 'containerPort', 'cpu': 'cpu', 'memory_mib': 'memoryMiB', 'public_load_balancer': 'publicLoadBalancer', 'public_tasks': 'publicTasks'}) + class LoadBalancedFargateServiceProps(): + def __init__(self, *, container_port: typing.Optional[jsii.Number]=None, cpu: typing.Optional[str]=None, memory_mib: typing.Optional[str]=None, public_load_balancer: typing.Optional[bool]=None, public_tasks: typing.Optional[bool]=None): + """jsii#298: show default values in sphinx documentation, and respect newlines. - @jsii.member(jsii_name="new") - def new(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "new", []) + :param container_port: The container port of the application load balancer attached to your Fargate service. Corresponds to container port mapping. Default: 80 + :param cpu: The number of cpu units used by the task. Valid values, which determines your range of valid values for the memory parameter: 256 (.25 vCPU) - Available memory values: 0.5GB, 1GB, 2GB 512 (.5 vCPU) - Available memory values: 1GB, 2GB, 3GB, 4GB 1024 (1 vCPU) - Available memory values: 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB 2048 (2 vCPU) - Available memory values: Between 4GB and 16GB in 1GB increments 4096 (4 vCPU) - Available memory values: Between 8GB and 30GB in 1GB increments This default is set in the underlying FargateTaskDefinition construct. Default: 256 + :param memory_mib: The amount (in MiB) of memory used by the task. This field is required and you must use one of the following values, which determines your range of valid values for the cpu parameter: 0.5GB, 1GB, 2GB - Available cpu values: 256 (.25 vCPU) 1GB, 2GB, 3GB, 4GB - Available cpu values: 512 (.5 vCPU) 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - Available cpu values: 1024 (1 vCPU) Between 4GB and 16GB in 1GB increments - Available cpu values: 2048 (2 vCPU) Between 8GB and 30GB in 1GB increments - Available cpu values: 4096 (4 vCPU) This default is set in the underlying FargateTaskDefinition construct. Default: 512 + :param public_load_balancer: Determines whether the Application Load Balancer will be internet-facing. Default: true + :param public_tasks: Determines whether your Fargate Service will be assigned a public IP address. Default: false - @jsii.member(jsii_name="null") - def null(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "null", []) + stability + :stability: experimental + """ + self._values = { + } + if container_port is not None: self._values["container_port"] = container_port + if cpu is not None: self._values["cpu"] = cpu + if memory_mib is not None: self._values["memory_mib"] = memory_mib + if public_load_balancer is not None: self._values["public_load_balancer"] = public_load_balancer + if public_tasks is not None: self._values["public_tasks"] = public_tasks - @jsii.member(jsii_name="package") - def package(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "package", []) + @builtins.property + def container_port(self) -> typing.Optional[jsii.Number]: + """The container port of the application load balancer attached to your Fargate service. - @jsii.member(jsii_name="private") - def private(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "private", []) + Corresponds to container port mapping. - @jsii.member(jsii_name="protected") - def protected(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "protected", []) + default + :default: 80 - @jsii.member(jsii_name="public") - def public(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "public", []) + stability + :stability: experimental + """ + return self._values.get('container_port') - @jsii.member(jsii_name="return") - def return_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "return", []) + @builtins.property + def cpu(self) -> typing.Optional[str]: + """The number of cpu units used by the task. - @jsii.member(jsii_name="short") - def short(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "short", []) + Valid values, which determines your range of valid values for the memory parameter: + 256 (.25 vCPU) - Available memory values: 0.5GB, 1GB, 2GB + 512 (.5 vCPU) - Available memory values: 1GB, 2GB, 3GB, 4GB + 1024 (1 vCPU) - Available memory values: 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB + 2048 (2 vCPU) - Available memory values: Between 4GB and 16GB in 1GB increments + 4096 (4 vCPU) - Available memory values: Between 8GB and 30GB in 1GB increments - @jsii.member(jsii_name="static") - def static(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "static", []) + This default is set in the underlying FargateTaskDefinition construct. - @jsii.member(jsii_name="strictfp") - def strictfp(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "strictfp", []) + default + :default: 256 - @jsii.member(jsii_name="super") - def super(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "super", []) + stability + :stability: experimental + """ + return self._values.get('cpu') - @jsii.member(jsii_name="switch") - def switch(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "switch", []) + @builtins.property + def memory_mib(self) -> typing.Optional[str]: + """The amount (in MiB) of memory used by the task. - @jsii.member(jsii_name="synchronized") - def synchronized(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "synchronized", []) + This field is required and you must use one of the following values, which determines your range of valid values + for the cpu parameter: - @jsii.member(jsii_name="this") - def this(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "this", []) + 0.5GB, 1GB, 2GB - Available cpu values: 256 (.25 vCPU) - @jsii.member(jsii_name="throw") - def throw(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "throw", []) + 1GB, 2GB, 3GB, 4GB - Available cpu values: 512 (.5 vCPU) - @jsii.member(jsii_name="throws") - def throws(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "throws", []) + 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - Available cpu values: 1024 (1 vCPU) - @jsii.member(jsii_name="transient") - def transient(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "transient", []) + Between 4GB and 16GB in 1GB increments - Available cpu values: 2048 (2 vCPU) - @jsii.member(jsii_name="true") - def true(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "true", []) + Between 8GB and 30GB in 1GB increments - Available cpu values: 4096 (4 vCPU) - @jsii.member(jsii_name="try") - def try_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "try", []) + This default is set in the underlying FargateTaskDefinition construct. - @jsii.member(jsii_name="void") - def void(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "void", []) + default + :default: 512 - @jsii.member(jsii_name="volatile") - def volatile(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "volatile", []) + stability + :stability: experimental + """ + return self._values.get('memory_mib') - @builtins.property - @jsii.member(jsii_name="while") - def while_(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "while") + @builtins.property + def public_load_balancer(self) -> typing.Optional[bool]: + """Determines whether the Application Load Balancer will be internet-facing. - @while_.setter - def while_(self, value: str): - jsii.set(self, "while", value) + default + :default: true + stability + :stability: experimental + """ + return self._values.get('public_load_balancer') -@jsii.implements(IJsii487External2, IJsii487External) -class Jsii487Derived(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Jsii487Derived"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(Jsii487Derived, self, []) + @builtins.property + def public_tasks(self) -> typing.Optional[bool]: + """Determines whether your Fargate Service will be assigned a public IP address. + default + :default: false -@jsii.implements(IJsii496) -class Jsii496Derived(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Jsii496Derived"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(Jsii496Derived, self, []) + stability + :stability: experimental + """ + return self._values.get('public_tasks') + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values -class JsiiAgent(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JsiiAgent"): - """Host runtime version should be set via JSII_AGENT. + def __ne__(self, rhs) -> bool: + return not (rhs == self) - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(JsiiAgent, self, []) + def __repr__(self) -> str: + return 'LoadBalancedFargateServiceProps(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - @jsii.python.classproperty - @jsii.member(jsii_name="jsiiAgent") - def jsii_agent(cls) -> typing.Optional[str]: - """Returns the value of the JSII_AGENT environment variable. - stability - :stability: experimental - """ - return jsii.sget(cls, "jsiiAgent") + @jsii.data_type(jsii_type="jsii-calc.compliance.NestedStruct", jsii_struct_bases=[], name_mapping={'number_prop': 'numberProp'}) + class NestedStruct(): + def __init__(self, *, number_prop: jsii.Number): + """ + :param number_prop: When provided, must be > 0. + stability + :stability: experimental + """ + self._values = { + 'number_prop': number_prop, + } -class JsonFormatter(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JsonFormatter"): - """Make sure structs are un-decorated on the way in. + @builtins.property + def number_prop(self) -> jsii.Number: + """When provided, must be > 0. - see - :see: https://github.com/aws/aws-cdk/issues/5066 - stability - :stability: experimental - """ - @jsii.member(jsii_name="anyArray") - @builtins.classmethod - def any_array(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyArray", []) + stability + :stability: experimental + """ + return self._values.get('number_prop') - @jsii.member(jsii_name="anyBooleanFalse") - @builtins.classmethod - def any_boolean_false(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyBooleanFalse", []) + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values - @jsii.member(jsii_name="anyBooleanTrue") - @builtins.classmethod - def any_boolean_true(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyBooleanTrue", []) + def __ne__(self, rhs) -> bool: + return not (rhs == self) - @jsii.member(jsii_name="anyDate") - @builtins.classmethod - def any_date(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyDate", []) + def __repr__(self) -> str: + return 'NestedStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - @jsii.member(jsii_name="anyEmptyString") - @builtins.classmethod - def any_empty_string(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyEmptyString", []) - @jsii.member(jsii_name="anyFunction") - @builtins.classmethod - def any_function(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyFunction", []) + class NodeStandardLibrary(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.NodeStandardLibrary"): + """Test fixture to verify that jsii modules can use the node standard library. - @jsii.member(jsii_name="anyHash") - @builtins.classmethod - def any_hash(cls) -> typing.Any: - """ stability :stability: experimental """ - return jsii.sinvoke(cls, "anyHash", []) + def __init__(self) -> None: + jsii.create(NodeStandardLibrary, self, []) - @jsii.member(jsii_name="anyNull") - @builtins.classmethod - def any_null(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyNull", []) + @jsii.member(jsii_name="cryptoSha256") + def crypto_sha256(self) -> str: + """Uses node.js "crypto" module to calculate sha256 of a string. - @jsii.member(jsii_name="anyNumber") - @builtins.classmethod - def any_number(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyNumber", []) + return + :return: "6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50" - @jsii.member(jsii_name="anyRef") - @builtins.classmethod - def any_ref(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyRef", []) + stability + :stability: experimental + """ + return jsii.invoke(self, "cryptoSha256", []) - @jsii.member(jsii_name="anyString") - @builtins.classmethod - def any_string(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyString", []) + @jsii.member(jsii_name="fsReadFile") + def fs_read_file(self) -> str: + """Reads a local resource file (resource.txt) asynchronously. - @jsii.member(jsii_name="anyUndefined") - @builtins.classmethod - def any_undefined(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyUndefined", []) + return + :return: "Hello, resource!" - @jsii.member(jsii_name="anyZero") - @builtins.classmethod - def any_zero(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyZero", []) + stability + :stability: experimental + """ + return jsii.ainvoke(self, "fsReadFile", []) - @jsii.member(jsii_name="stringify") - @builtins.classmethod - def stringify(cls, value: typing.Any=None) -> typing.Optional[str]: - """ - :param value: - + @jsii.member(jsii_name="fsReadFileSync") + def fs_read_file_sync(self) -> str: + """Sync version of fsReadFile. - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "stringify", [value]) + return + :return: "Hello, resource! SYNC!" + + stability + :stability: experimental + """ + return jsii.invoke(self, "fsReadFileSync", []) + @builtins.property + @jsii.member(jsii_name="osPlatform") + def os_platform(self) -> str: + """Returns the current os.platform() from the "os" node module. + + stability + :stability: experimental + """ + return jsii.get(self, "osPlatform") -@jsii.data_type(jsii_type="jsii-calc.LoadBalancedFargateServiceProps", jsii_struct_bases=[], name_mapping={'container_port': 'containerPort', 'cpu': 'cpu', 'memory_mib': 'memoryMiB', 'public_load_balancer': 'publicLoadBalancer', 'public_tasks': 'publicTasks'}) -class LoadBalancedFargateServiceProps(): - def __init__(self, *, container_port: typing.Optional[jsii.Number]=None, cpu: typing.Optional[str]=None, memory_mib: typing.Optional[str]=None, public_load_balancer: typing.Optional[bool]=None, public_tasks: typing.Optional[bool]=None): - """jsii#298: show default values in sphinx documentation, and respect newlines. - :param container_port: The container port of the application load balancer attached to your Fargate service. Corresponds to container port mapping. Default: 80 - :param cpu: The number of cpu units used by the task. Valid values, which determines your range of valid values for the memory parameter: 256 (.25 vCPU) - Available memory values: 0.5GB, 1GB, 2GB 512 (.5 vCPU) - Available memory values: 1GB, 2GB, 3GB, 4GB 1024 (1 vCPU) - Available memory values: 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB 2048 (2 vCPU) - Available memory values: Between 4GB and 16GB in 1GB increments 4096 (4 vCPU) - Available memory values: Between 8GB and 30GB in 1GB increments This default is set in the underlying FargateTaskDefinition construct. Default: 256 - :param memory_mib: The amount (in MiB) of memory used by the task. This field is required and you must use one of the following values, which determines your range of valid values for the cpu parameter: 0.5GB, 1GB, 2GB - Available cpu values: 256 (.25 vCPU) 1GB, 2GB, 3GB, 4GB - Available cpu values: 512 (.5 vCPU) 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - Available cpu values: 1024 (1 vCPU) Between 4GB and 16GB in 1GB increments - Available cpu values: 2048 (2 vCPU) Between 8GB and 30GB in 1GB increments - Available cpu values: 4096 (4 vCPU) This default is set in the underlying FargateTaskDefinition construct. Default: 512 - :param public_load_balancer: Determines whether the Application Load Balancer will be internet-facing. Default: true - :param public_tasks: Determines whether your Fargate Service will be assigned a public IP address. Default: false + class NullShouldBeTreatedAsUndefined(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.NullShouldBeTreatedAsUndefined"): + """jsii#282, aws-cdk#157: null should be treated as "undefined". stability :stability: experimental """ - self._values = { - } - if container_port is not None: self._values["container_port"] = container_port - if cpu is not None: self._values["cpu"] = cpu - if memory_mib is not None: self._values["memory_mib"] = memory_mib - if public_load_balancer is not None: self._values["public_load_balancer"] = public_load_balancer - if public_tasks is not None: self._values["public_tasks"] = public_tasks + def __init__(self, _param1: str, optional: typing.Any=None) -> None: + """ + :param _param1: - + :param optional: - - @builtins.property - def container_port(self) -> typing.Optional[jsii.Number]: - """The container port of the application load balancer attached to your Fargate service. + stability + :stability: experimental + """ + jsii.create(NullShouldBeTreatedAsUndefined, self, [_param1, optional]) - Corresponds to container port mapping. + @jsii.member(jsii_name="giveMeUndefined") + def give_me_undefined(self, value: typing.Any=None) -> None: + """ + :param value: - - default - :default: 80 + stability + :stability: experimental + """ + return jsii.invoke(self, "giveMeUndefined", [value]) - stability - :stability: experimental - """ - return self._values.get('container_port') + @jsii.member(jsii_name="giveMeUndefinedInsideAnObject") + def give_me_undefined_inside_an_object(self, *, array_with_three_elements_and_undefined_as_second_argument: typing.List[typing.Any], this_should_be_undefined: typing.Any=None) -> None: + """ + :param array_with_three_elements_and_undefined_as_second_argument: + :param this_should_be_undefined: - @builtins.property - def cpu(self) -> typing.Optional[str]: - """The number of cpu units used by the task. + stability + :stability: experimental + """ + input = NullShouldBeTreatedAsUndefinedData(array_with_three_elements_and_undefined_as_second_argument=array_with_three_elements_and_undefined_as_second_argument, this_should_be_undefined=this_should_be_undefined) - Valid values, which determines your range of valid values for the memory parameter: - 256 (.25 vCPU) - Available memory values: 0.5GB, 1GB, 2GB - 512 (.5 vCPU) - Available memory values: 1GB, 2GB, 3GB, 4GB - 1024 (1 vCPU) - Available memory values: 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - 2048 (2 vCPU) - Available memory values: Between 4GB and 16GB in 1GB increments - 4096 (4 vCPU) - Available memory values: Between 8GB and 30GB in 1GB increments + return jsii.invoke(self, "giveMeUndefinedInsideAnObject", [input]) - This default is set in the underlying FargateTaskDefinition construct. + @jsii.member(jsii_name="verifyPropertyIsUndefined") + def verify_property_is_undefined(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "verifyPropertyIsUndefined", []) - default - :default: 256 + @builtins.property + @jsii.member(jsii_name="changeMeToUndefined") + def change_me_to_undefined(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "changeMeToUndefined") - stability - :stability: experimental - """ - return self._values.get('cpu') + @change_me_to_undefined.setter + def change_me_to_undefined(self, value: typing.Optional[str]): + jsii.set(self, "changeMeToUndefined", value) - @builtins.property - def memory_mib(self) -> typing.Optional[str]: - """The amount (in MiB) of memory used by the task. - This field is required and you must use one of the following values, which determines your range of valid values - for the cpu parameter: + @jsii.data_type(jsii_type="jsii-calc.compliance.NullShouldBeTreatedAsUndefinedData", jsii_struct_bases=[], name_mapping={'array_with_three_elements_and_undefined_as_second_argument': 'arrayWithThreeElementsAndUndefinedAsSecondArgument', 'this_should_be_undefined': 'thisShouldBeUndefined'}) + class NullShouldBeTreatedAsUndefinedData(): + def __init__(self, *, array_with_three_elements_and_undefined_as_second_argument: typing.List[typing.Any], this_should_be_undefined: typing.Any=None): + """ + :param array_with_three_elements_and_undefined_as_second_argument: + :param this_should_be_undefined: + + stability + :stability: experimental + """ + self._values = { + 'array_with_three_elements_and_undefined_as_second_argument': array_with_three_elements_and_undefined_as_second_argument, + } + if this_should_be_undefined is not None: self._values["this_should_be_undefined"] = this_should_be_undefined - 0.5GB, 1GB, 2GB - Available cpu values: 256 (.25 vCPU) + @builtins.property + def array_with_three_elements_and_undefined_as_second_argument(self) -> typing.List[typing.Any]: + """ + stability + :stability: experimental + """ + return self._values.get('array_with_three_elements_and_undefined_as_second_argument') - 1GB, 2GB, 3GB, 4GB - Available cpu values: 512 (.5 vCPU) + @builtins.property + def this_should_be_undefined(self) -> typing.Any: + """ + stability + :stability: experimental + """ + return self._values.get('this_should_be_undefined') - 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - Available cpu values: 1024 (1 vCPU) + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values - Between 4GB and 16GB in 1GB increments - Available cpu values: 2048 (2 vCPU) + def __ne__(self, rhs) -> bool: + return not (rhs == self) - Between 8GB and 30GB in 1GB increments - Available cpu values: 4096 (4 vCPU) + def __repr__(self) -> str: + return 'NullShouldBeTreatedAsUndefinedData(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - This default is set in the underlying FargateTaskDefinition construct. - default - :default: 512 + class NumberGenerator(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.NumberGenerator"): + """This allows us to test that a reference can be stored for objects that implement interfaces. stability :stability: experimental """ - return self._values.get('memory_mib') + def __init__(self, generator: jsii_calc.IRandomNumberGenerator) -> None: + """ + :param generator: - - @builtins.property - def public_load_balancer(self) -> typing.Optional[bool]: - """Determines whether the Application Load Balancer will be internet-facing. + stability + :stability: experimental + """ + jsii.create(NumberGenerator, self, [generator]) - default - :default: true + @jsii.member(jsii_name="isSameGenerator") + def is_same_generator(self, gen: jsii_calc.IRandomNumberGenerator) -> bool: + """ + :param gen: - - stability - :stability: experimental - """ - return self._values.get('public_load_balancer') + stability + :stability: experimental + """ + return jsii.invoke(self, "isSameGenerator", [gen]) - @builtins.property - def public_tasks(self) -> typing.Optional[bool]: - """Determines whether your Fargate Service will be assigned a public IP address. + @jsii.member(jsii_name="nextTimes100") + def next_times100(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "nextTimes100", []) + + @builtins.property + @jsii.member(jsii_name="generator") + def generator(self) -> jsii_calc.IRandomNumberGenerator: + """ + stability + :stability: experimental + """ + return jsii.get(self, "generator") + + @generator.setter + def generator(self, value: jsii_calc.IRandomNumberGenerator): + jsii.set(self, "generator", value) - default - :default: false + + class ObjectRefsInCollections(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ObjectRefsInCollections"): + """Verify that object references can be passed inside collections. stability :stability: experimental """ - return self._values.get('public_tasks') + def __init__(self) -> None: + jsii.create(ObjectRefsInCollections, self, []) - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values + @jsii.member(jsii_name="sumFromArray") + def sum_from_array(self, values: typing.List[scope.jsii_calc_lib.Value]) -> jsii.Number: + """Returns the sum of all values. - def __ne__(self, rhs) -> bool: - return not (rhs == self) + :param values: - - def __repr__(self) -> str: - return 'LoadBalancedFargateServiceProps(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + stability + :stability: experimental + """ + return jsii.invoke(self, "sumFromArray", [values]) + @jsii.member(jsii_name="sumFromMap") + def sum_from_map(self, values: typing.Mapping[str,scope.jsii_calc_lib.Value]) -> jsii.Number: + """Returns the sum of all values in a map. -class MethodNamedProperty(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.MethodNamedProperty"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(MethodNamedProperty, self, []) + :param values: - - @jsii.member(jsii_name="property") - def property(self) -> str: + stability + :stability: experimental + """ + return jsii.invoke(self, "sumFromMap", [values]) + + + class ObjectWithPropertyProvider(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ObjectWithPropertyProvider"): """ stability :stability: experimental """ - return jsii.invoke(self, "property", []) + @jsii.member(jsii_name="provide") + @builtins.classmethod + def provide(cls) -> "IObjectWithProperty": + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "provide", []) - @builtins.property - @jsii.member(jsii_name="elite") - def elite(self) -> jsii.Number: + + class OptionalArgumentInvoker(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.OptionalArgumentInvoker"): """ stability :stability: experimental """ - return jsii.get(self, "elite") + def __init__(self, delegate: "IInterfaceWithOptionalMethodArguments") -> None: + """ + :param delegate: - + stability + :stability: experimental + """ + jsii.create(OptionalArgumentInvoker, self, [delegate]) -@jsii.implements(IFriendlier, IRandomNumberGenerator) -class Multiply(BinaryOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Multiply"): - """The "*" binary operation. + @jsii.member(jsii_name="invokeWithOptional") + def invoke_with_optional(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "invokeWithOptional", []) - stability - :stability: experimental - """ - def __init__(self, lhs: scope.jsii_calc_lib.Value, rhs: scope.jsii_calc_lib.Value) -> None: - """Creates a BinaryOperation. + @jsii.member(jsii_name="invokeWithoutOptional") + def invoke_without_optional(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "invokeWithoutOptional", []) - :param lhs: Left-hand side operand. - :param rhs: Right-hand side operand. + class OptionalConstructorArgument(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.OptionalConstructorArgument"): + """ stability :stability: experimental """ - jsii.create(Multiply, self, [lhs, rhs]) + def __init__(self, arg1: jsii.Number, arg2: str, arg3: typing.Optional[datetime.datetime]=None) -> None: + """ + :param arg1: - + :param arg2: - + :param arg3: - - @jsii.member(jsii_name="farewell") - def farewell(self) -> str: - """Say farewell. + stability + :stability: experimental + """ + jsii.create(OptionalConstructorArgument, self, [arg1, arg2, arg3]) - stability - :stability: experimental - """ - return jsii.invoke(self, "farewell", []) + @builtins.property + @jsii.member(jsii_name="arg1") + def arg1(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.get(self, "arg1") - @jsii.member(jsii_name="goodbye") - def goodbye(self) -> str: - """Say goodbye. + @builtins.property + @jsii.member(jsii_name="arg2") + def arg2(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "arg2") - stability - :stability: experimental - """ - return jsii.invoke(self, "goodbye", []) + @builtins.property + @jsii.member(jsii_name="arg3") + def arg3(self) -> typing.Optional[datetime.datetime]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "arg3") - @jsii.member(jsii_name="next") - def next(self) -> jsii.Number: - """Returns another random number. - stability - :stability: experimental - """ - return jsii.invoke(self, "next", []) + @jsii.data_type(jsii_type="jsii-calc.compliance.OptionalStruct", jsii_struct_bases=[], name_mapping={'field': 'field'}) + class OptionalStruct(): + def __init__(self, *, field: typing.Optional[str]=None): + """ + :param field: + + stability + :stability: experimental + """ + self._values = { + } + if field is not None: self._values["field"] = field + + @builtins.property + def field(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + return self._values.get('field') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'OptionalStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - @jsii.member(jsii_name="toString") - def to_string(self) -> str: - """String representation of the value. + class OptionalStructConsumer(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.OptionalStructConsumer"): + """ stability :stability: experimental """ - return jsii.invoke(self, "toString", []) + def __init__(self, *, field: typing.Optional[str]=None) -> None: + """ + :param field: + + stability + :stability: experimental + """ + optional_struct = OptionalStruct(field=field) + + jsii.create(OptionalStructConsumer, self, [optional_struct]) + + @builtins.property + @jsii.member(jsii_name="parameterWasUndefined") + def parameter_was_undefined(self) -> bool: + """ + stability + :stability: experimental + """ + return jsii.get(self, "parameterWasUndefined") + + @builtins.property + @jsii.member(jsii_name="fieldValue") + def field_value(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "fieldValue") - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> jsii.Number: - """The value. + class OverridableProtectedMember(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.OverridableProtectedMember"): + """ + see + :see: https://github.com/aws/jsii/issues/903 stability :stability: experimental """ - return jsii.get(self, "value") + def __init__(self) -> None: + jsii.create(OverridableProtectedMember, self, []) + + @jsii.member(jsii_name="overrideMe") + def _override_me(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "overrideMe", []) + + @jsii.member(jsii_name="switchModes") + def switch_modes(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "switchModes", []) + + @jsii.member(jsii_name="valueFromProtected") + def value_from_protected(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "valueFromProtected", []) + @builtins.property + @jsii.member(jsii_name="overrideReadOnly") + def _override_read_only(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "overrideReadOnly") -@jsii.data_type(jsii_type="jsii-calc.NestedStruct", jsii_struct_bases=[], name_mapping={'number_prop': 'numberProp'}) -class NestedStruct(): - def __init__(self, *, number_prop: jsii.Number): - """ - :param number_prop: When provided, must be > 0. + @builtins.property + @jsii.member(jsii_name="overrideReadWrite") + def _override_read_write(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "overrideReadWrite") - stability - :stability: experimental - """ - self._values = { - 'number_prop': number_prop, - } + @_override_read_write.setter + def _override_read_write(self, value: str): + jsii.set(self, "overrideReadWrite", value) - @builtins.property - def number_prop(self) -> jsii.Number: - """When provided, must be > 0. + class OverrideReturnsObject(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.OverrideReturnsObject"): + """ stability :stability: experimental """ - return self._values.get('number_prop') + def __init__(self) -> None: + jsii.create(OverrideReturnsObject, self, []) - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values + @jsii.member(jsii_name="test") + def test(self, obj: "IReturnsNumber") -> jsii.Number: + """ + :param obj: - - def __ne__(self, rhs) -> bool: - return not (rhs == self) + stability + :stability: experimental + """ + return jsii.invoke(self, "test", [obj]) - def __repr__(self) -> str: - return 'NestedStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + @jsii.data_type(jsii_type="jsii-calc.compliance.ParentStruct982", jsii_struct_bases=[], name_mapping={'foo': 'foo'}) + class ParentStruct982(): + def __init__(self, *, foo: str): + """https://github.com/aws/jsii/issues/982. -class NodeStandardLibrary(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.NodeStandardLibrary"): - """Test fixture to verify that jsii modules can use the node standard library. + :param foo: - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(NodeStandardLibrary, self, []) + stability + :stability: experimental + """ + self._values = { + 'foo': foo, + } - @jsii.member(jsii_name="cryptoSha256") - def crypto_sha256(self) -> str: - """Uses node.js "crypto" module to calculate sha256 of a string. + @builtins.property + def foo(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('foo') - return - :return: "6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50" + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values - stability - :stability: experimental - """ - return jsii.invoke(self, "cryptoSha256", []) + def __ne__(self, rhs) -> bool: + return not (rhs == self) - @jsii.member(jsii_name="fsReadFile") - def fs_read_file(self) -> str: - """Reads a local resource file (resource.txt) asynchronously. + def __repr__(self) -> str: + return 'ParentStruct982(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - return - :return: "Hello, resource!" - stability - :stability: experimental + class PartiallyInitializedThisConsumer(metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.compliance.PartiallyInitializedThisConsumer"): """ - return jsii.ainvoke(self, "fsReadFile", []) - - @jsii.member(jsii_name="fsReadFileSync") - def fs_read_file_sync(self) -> str: - """Sync version of fsReadFile. - - return - :return: "Hello, resource! SYNC!" - stability :stability: experimental """ - return jsii.invoke(self, "fsReadFileSync", []) - - @builtins.property - @jsii.member(jsii_name="osPlatform") - def os_platform(self) -> str: - """Returns the current os.platform() from the "os" node module. + @builtins.staticmethod + def __jsii_proxy_class__(): + return _PartiallyInitializedThisConsumerProxy - stability - :stability: experimental - """ - return jsii.get(self, "osPlatform") + def __init__(self) -> None: + jsii.create(PartiallyInitializedThisConsumer, self, []) + @jsii.member(jsii_name="consumePartiallyInitializedThis") + @abc.abstractmethod + def consume_partially_initialized_this(self, obj: "ConstructorPassesThisOut", dt: datetime.datetime, ev: "AllTypesEnum") -> str: + """ + :param obj: - + :param dt: - + :param ev: - -class NullShouldBeTreatedAsUndefined(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.NullShouldBeTreatedAsUndefined"): - """jsii#282, aws-cdk#157: null should be treated as "undefined". + stability + :stability: experimental + """ + ... - stability - :stability: experimental - """ - def __init__(self, _param1: str, optional: typing.Any=None) -> None: - """ - :param _param1: - - :param optional: - - stability - :stability: experimental - """ - jsii.create(NullShouldBeTreatedAsUndefined, self, [_param1, optional]) + class _PartiallyInitializedThisConsumerProxy(PartiallyInitializedThisConsumer): + @jsii.member(jsii_name="consumePartiallyInitializedThis") + def consume_partially_initialized_this(self, obj: "ConstructorPassesThisOut", dt: datetime.datetime, ev: "AllTypesEnum") -> str: + """ + :param obj: - + :param dt: - + :param ev: - - @jsii.member(jsii_name="giveMeUndefined") - def give_me_undefined(self, value: typing.Any=None) -> None: - """ - :param value: - + stability + :stability: experimental + """ + return jsii.invoke(self, "consumePartiallyInitializedThis", [obj, dt, ev]) - stability - :stability: experimental - """ - return jsii.invoke(self, "giveMeUndefined", [value]) - @jsii.member(jsii_name="giveMeUndefinedInsideAnObject") - def give_me_undefined_inside_an_object(self, *, array_with_three_elements_and_undefined_as_second_argument: typing.List[typing.Any], this_should_be_undefined: typing.Any=None) -> None: + class Polymorphism(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.Polymorphism"): """ - :param array_with_three_elements_and_undefined_as_second_argument: - :param this_should_be_undefined: - stability :stability: experimental """ - input = NullShouldBeTreatedAsUndefinedData(array_with_three_elements_and_undefined_as_second_argument=array_with_three_elements_and_undefined_as_second_argument, this_should_be_undefined=this_should_be_undefined) + def __init__(self) -> None: + jsii.create(Polymorphism, self, []) - return jsii.invoke(self, "giveMeUndefinedInsideAnObject", [input]) + @jsii.member(jsii_name="sayHello") + def say_hello(self, friendly: scope.jsii_calc_lib.IFriendly) -> str: + """ + :param friendly: - - @jsii.member(jsii_name="verifyPropertyIsUndefined") - def verify_property_is_undefined(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "verifyPropertyIsUndefined", []) + stability + :stability: experimental + """ + return jsii.invoke(self, "sayHello", [friendly]) - @builtins.property - @jsii.member(jsii_name="changeMeToUndefined") - def change_me_to_undefined(self) -> typing.Optional[str]: + + class PublicClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.PublicClass"): """ stability :stability: experimental """ - return jsii.get(self, "changeMeToUndefined") - - @change_me_to_undefined.setter - def change_me_to_undefined(self, value: typing.Optional[str]): - jsii.set(self, "changeMeToUndefined", value) - + def __init__(self) -> None: + jsii.create(PublicClass, self, []) -@jsii.data_type(jsii_type="jsii-calc.NullShouldBeTreatedAsUndefinedData", jsii_struct_bases=[], name_mapping={'array_with_three_elements_and_undefined_as_second_argument': 'arrayWithThreeElementsAndUndefinedAsSecondArgument', 'this_should_be_undefined': 'thisShouldBeUndefined'}) -class NullShouldBeTreatedAsUndefinedData(): - def __init__(self, *, array_with_three_elements_and_undefined_as_second_argument: typing.List[typing.Any], this_should_be_undefined: typing.Any=None): - """ - :param array_with_three_elements_and_undefined_as_second_argument: - :param this_should_be_undefined: + @jsii.member(jsii_name="hello") + def hello(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "hello", []) - stability - :stability: experimental - """ - self._values = { - 'array_with_three_elements_and_undefined_as_second_argument': array_with_three_elements_and_undefined_as_second_argument, - } - if this_should_be_undefined is not None: self._values["this_should_be_undefined"] = this_should_be_undefined - @builtins.property - def array_with_three_elements_and_undefined_as_second_argument(self) -> typing.List[typing.Any]: + class PythonReservedWords(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.PythonReservedWords"): """ stability :stability: experimental """ - return self._values.get('array_with_three_elements_and_undefined_as_second_argument') + def __init__(self) -> None: + jsii.create(PythonReservedWords, self, []) - @builtins.property - def this_should_be_undefined(self) -> typing.Any: - """ - stability - :stability: experimental - """ - return self._values.get('this_should_be_undefined') + @jsii.member(jsii_name="and") + def and_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "and", []) - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values + @jsii.member(jsii_name="as") + def as_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "as", []) - def __ne__(self, rhs) -> bool: - return not (rhs == self) + @jsii.member(jsii_name="assert") + def assert_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "assert", []) - def __repr__(self) -> str: - return 'NullShouldBeTreatedAsUndefinedData(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + @jsii.member(jsii_name="async") + def async_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "async", []) + @jsii.member(jsii_name="await") + def await_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "await", []) -class NumberGenerator(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.NumberGenerator"): - """This allows us to test that a reference can be stored for objects that implement interfaces. + @jsii.member(jsii_name="break") + def break_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "break", []) - stability - :stability: experimental - """ - def __init__(self, generator: "IRandomNumberGenerator") -> None: - """ - :param generator: - + @jsii.member(jsii_name="class") + def class_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "class", []) - stability - :stability: experimental - """ - jsii.create(NumberGenerator, self, [generator]) + @jsii.member(jsii_name="continue") + def continue_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "continue", []) - @jsii.member(jsii_name="isSameGenerator") - def is_same_generator(self, gen: "IRandomNumberGenerator") -> bool: - """ - :param gen: - + @jsii.member(jsii_name="def") + def def_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "def", []) - stability - :stability: experimental - """ - return jsii.invoke(self, "isSameGenerator", [gen]) + @jsii.member(jsii_name="del") + def del_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "del", []) - @jsii.member(jsii_name="nextTimes100") - def next_times100(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "nextTimes100", []) + @jsii.member(jsii_name="elif") + def elif_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "elif", []) - @builtins.property - @jsii.member(jsii_name="generator") - def generator(self) -> "IRandomNumberGenerator": - """ - stability - :stability: experimental - """ - return jsii.get(self, "generator") + @jsii.member(jsii_name="else") + def else_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "else", []) - @generator.setter - def generator(self, value: "IRandomNumberGenerator"): - jsii.set(self, "generator", value) + @jsii.member(jsii_name="except") + def except_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "except", []) + @jsii.member(jsii_name="finally") + def finally_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "finally", []) -class ObjectRefsInCollections(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ObjectRefsInCollections"): - """Verify that object references can be passed inside collections. + @jsii.member(jsii_name="for") + def for_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "for", []) - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(ObjectRefsInCollections, self, []) + @jsii.member(jsii_name="from") + def from_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "from", []) - @jsii.member(jsii_name="sumFromArray") - def sum_from_array(self, values: typing.List[scope.jsii_calc_lib.Value]) -> jsii.Number: - """Returns the sum of all values. + @jsii.member(jsii_name="global") + def global_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "global", []) - :param values: - + @jsii.member(jsii_name="if") + def if_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "if", []) - stability - :stability: experimental - """ - return jsii.invoke(self, "sumFromArray", [values]) + @jsii.member(jsii_name="import") + def import_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "import", []) - @jsii.member(jsii_name="sumFromMap") - def sum_from_map(self, values: typing.Mapping[str,scope.jsii_calc_lib.Value]) -> jsii.Number: - """Returns the sum of all values in a map. + @jsii.member(jsii_name="in") + def in_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "in", []) - :param values: - + @jsii.member(jsii_name="is") + def is_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "is", []) - stability - :stability: experimental - """ - return jsii.invoke(self, "sumFromMap", [values]) + @jsii.member(jsii_name="lambda") + def lambda_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "lambda", []) + @jsii.member(jsii_name="nonlocal") + def nonlocal_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "nonlocal", []) -class ObjectWithPropertyProvider(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ObjectWithPropertyProvider"): - """ - stability - :stability: experimental - """ - @jsii.member(jsii_name="provide") - @builtins.classmethod - def provide(cls) -> "IObjectWithProperty": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "provide", []) + @jsii.member(jsii_name="not") + def not_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "not", []) + @jsii.member(jsii_name="or") + def or_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "or", []) -class Old(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Old"): - """Old class. + @jsii.member(jsii_name="pass") + def pass_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "pass", []) - deprecated - :deprecated: Use the new class + @jsii.member(jsii_name="raise") + def raise_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "raise", []) - stability - :stability: deprecated - """ - def __init__(self) -> None: - jsii.create(Old, self, []) + @jsii.member(jsii_name="return") + def return_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "return", []) - @jsii.member(jsii_name="doAThing") - def do_a_thing(self) -> None: - """Doo wop that thing. + @jsii.member(jsii_name="try") + def try_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "try", []) - stability - :stability: deprecated - """ - return jsii.invoke(self, "doAThing", []) + @jsii.member(jsii_name="while") + def while_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "while", []) + @jsii.member(jsii_name="with") + def with_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "with", []) -class OptionalArgumentInvoker(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OptionalArgumentInvoker"): - """ - stability - :stability: experimental - """ - def __init__(self, delegate: "IInterfaceWithOptionalMethodArguments") -> None: - """ - :param delegate: - + @jsii.member(jsii_name="yield") + def yield_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "yield", []) - stability - :stability: experimental - """ - jsii.create(OptionalArgumentInvoker, self, [delegate]) - @jsii.member(jsii_name="invokeWithOptional") - def invoke_with_optional(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "invokeWithOptional", []) + class ReferenceEnumFromScopedPackage(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ReferenceEnumFromScopedPackage"): + """See awslabs/jsii#138. - @jsii.member(jsii_name="invokeWithoutOptional") - def invoke_without_optional(self) -> None: - """ stability :stability: experimental """ - return jsii.invoke(self, "invokeWithoutOptional", []) - + def __init__(self) -> None: + jsii.create(ReferenceEnumFromScopedPackage, self, []) -class OptionalConstructorArgument(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OptionalConstructorArgument"): - """ - stability - :stability: experimental - """ - def __init__(self, arg1: jsii.Number, arg2: str, arg3: typing.Optional[datetime.datetime]=None) -> None: - """ - :param arg1: - - :param arg2: - - :param arg3: - + @jsii.member(jsii_name="loadFoo") + def load_foo(self) -> typing.Optional[scope.jsii_calc_lib.EnumFromScopedModule]: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "loadFoo", []) - stability - :stability: experimental - """ - jsii.create(OptionalConstructorArgument, self, [arg1, arg2, arg3]) + @jsii.member(jsii_name="saveFoo") + def save_foo(self, value: scope.jsii_calc_lib.EnumFromScopedModule) -> None: + """ + :param value: - - @builtins.property - @jsii.member(jsii_name="arg1") - def arg1(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "arg1") + stability + :stability: experimental + """ + return jsii.invoke(self, "saveFoo", [value]) - @builtins.property - @jsii.member(jsii_name="arg2") - def arg2(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "arg2") + @builtins.property + @jsii.member(jsii_name="foo") + def foo(self) -> typing.Optional[scope.jsii_calc_lib.EnumFromScopedModule]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "foo") - @builtins.property - @jsii.member(jsii_name="arg3") - def arg3(self) -> typing.Optional[datetime.datetime]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "arg3") + @foo.setter + def foo(self, value: typing.Optional[scope.jsii_calc_lib.EnumFromScopedModule]): + jsii.set(self, "foo", value) -@jsii.data_type(jsii_type="jsii-calc.OptionalStruct", jsii_struct_bases=[], name_mapping={'field': 'field'}) -class OptionalStruct(): - def __init__(self, *, field: typing.Optional[str]=None): - """ - :param field: + class ReturnsPrivateImplementationOfInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ReturnsPrivateImplementationOfInterface"): + """Helps ensure the JSII kernel & runtime cooperate correctly when an un-exported instance of a class is returned with a declared type that is an exported interface, and the instance inherits from an exported class. - stability - :stability: experimental - """ - self._values = { - } - if field is not None: self._values["field"] = field + return + :return: an instance of an un-exported class that extends ``ExportedBaseClass``, declared as ``IPrivatelyImplemented``. - @builtins.property - def field(self) -> typing.Optional[str]: - """ + see + :see: https://github.com/aws/jsii/issues/320 stability :stability: experimental """ - return self._values.get('field') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) + def __init__(self) -> None: + jsii.create(ReturnsPrivateImplementationOfInterface, self, []) - def __repr__(self) -> str: - return 'OptionalStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + @builtins.property + @jsii.member(jsii_name="privateImplementation") + def private_implementation(self) -> "IPrivatelyImplemented": + """ + stability + :stability: experimental + """ + return jsii.get(self, "privateImplementation") -class OptionalStructConsumer(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OptionalStructConsumer"): - """ - stability - :stability: experimental - """ - def __init__(self, *, field: typing.Optional[str]=None) -> None: - """ - :param field: + @jsii.data_type(jsii_type="jsii-calc.compliance.RootStruct", jsii_struct_bases=[], name_mapping={'string_prop': 'stringProp', 'nested_struct': 'nestedStruct'}) + class RootStruct(): + def __init__(self, *, string_prop: str, nested_struct: typing.Optional["NestedStruct"]=None): + """This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary. - stability - :stability: experimental - """ - optional_struct = OptionalStruct(field=field) + This is cheating with the (current) declared types, but this is the "more + idiomatic" way for Pythonists. - jsii.create(OptionalStructConsumer, self, [optional_struct]) + :param string_prop: May not be empty. + :param nested_struct: - @builtins.property - @jsii.member(jsii_name="parameterWasUndefined") - def parameter_was_undefined(self) -> bool: - """ - stability - :stability: experimental - """ - return jsii.get(self, "parameterWasUndefined") + stability + :stability: experimental + """ + if isinstance(nested_struct, dict): nested_struct = NestedStruct(**nested_struct) + self._values = { + 'string_prop': string_prop, + } + if nested_struct is not None: self._values["nested_struct"] = nested_struct - @builtins.property - @jsii.member(jsii_name="fieldValue") - def field_value(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "fieldValue") + @builtins.property + def string_prop(self) -> str: + """May not be empty. + stability + :stability: experimental + """ + return self._values.get('string_prop') -class OverridableProtectedMember(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OverridableProtectedMember"): - """ - see - :see: https://github.com/aws/jsii/issues/903 - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(OverridableProtectedMember, self, []) + @builtins.property + def nested_struct(self) -> typing.Optional["NestedStruct"]: + """ + stability + :stability: experimental + """ + return self._values.get('nested_struct') - @jsii.member(jsii_name="overrideMe") - def _override_me(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "overrideMe", []) + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values - @jsii.member(jsii_name="switchModes") - def switch_modes(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "switchModes", []) + def __ne__(self, rhs) -> bool: + return not (rhs == self) - @jsii.member(jsii_name="valueFromProtected") - def value_from_protected(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "valueFromProtected", []) + def __repr__(self) -> str: + return 'RootStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - @builtins.property - @jsii.member(jsii_name="overrideReadOnly") - def _override_read_only(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "overrideReadOnly") - @builtins.property - @jsii.member(jsii_name="overrideReadWrite") - def _override_read_write(self) -> str: + class RootStructValidator(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.RootStructValidator"): """ stability :stability: experimental """ - return jsii.get(self, "overrideReadWrite") + @jsii.member(jsii_name="validate") + @builtins.classmethod + def validate(cls, *, string_prop: str, nested_struct: typing.Optional["NestedStruct"]=None) -> None: + """ + :param string_prop: May not be empty. + :param nested_struct: - @_override_read_write.setter - def _override_read_write(self, value: str): - jsii.set(self, "overrideReadWrite", value) + stability + :stability: experimental + """ + struct = RootStruct(string_prop=string_prop, nested_struct=nested_struct) + return jsii.sinvoke(cls, "validate", [struct]) -class OverrideReturnsObject(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OverrideReturnsObject"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(OverrideReturnsObject, self, []) - @jsii.member(jsii_name="test") - def test(self, obj: "IReturnsNumber") -> jsii.Number: + class RuntimeTypeChecking(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.RuntimeTypeChecking"): """ - :param obj: - - stability :stability: experimental """ - return jsii.invoke(self, "test", [obj]) + def __init__(self) -> None: + jsii.create(RuntimeTypeChecking, self, []) + @jsii.member(jsii_name="methodWithDefaultedArguments") + def method_with_defaulted_arguments(self, arg1: typing.Optional[jsii.Number]=None, arg2: typing.Optional[str]=None, arg3: typing.Optional[datetime.datetime]=None) -> None: + """ + :param arg1: - + :param arg2: - + :param arg3: - -@jsii.data_type(jsii_type="jsii-calc.ParentStruct982", jsii_struct_bases=[], name_mapping={'foo': 'foo'}) -class ParentStruct982(): - def __init__(self, *, foo: str): - """https://github.com/aws/jsii/issues/982. + stability + :stability: experimental + """ + return jsii.invoke(self, "methodWithDefaultedArguments", [arg1, arg2, arg3]) - :param foo: + @jsii.member(jsii_name="methodWithOptionalAnyArgument") + def method_with_optional_any_argument(self, arg: typing.Any=None) -> None: + """ + :param arg: - - stability - :stability: experimental - """ - self._values = { - 'foo': foo, - } + stability + :stability: experimental + """ + return jsii.invoke(self, "methodWithOptionalAnyArgument", [arg]) - @builtins.property - def foo(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('foo') + @jsii.member(jsii_name="methodWithOptionalArguments") + def method_with_optional_arguments(self, arg1: jsii.Number, arg2: str, arg3: typing.Optional[datetime.datetime]=None) -> None: + """Used to verify verification of number of method arguments. - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values + :param arg1: - + :param arg2: - + :param arg3: - - def __ne__(self, rhs) -> bool: - return not (rhs == self) + stability + :stability: experimental + """ + return jsii.invoke(self, "methodWithOptionalArguments", [arg1, arg2, arg3]) - def __repr__(self) -> str: - return 'ParentStruct982(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + @jsii.data_type(jsii_type="jsii-calc.compliance.SecondLevelStruct", jsii_struct_bases=[], name_mapping={'deeper_required_prop': 'deeperRequiredProp', 'deeper_optional_prop': 'deeperOptionalProp'}) + class SecondLevelStruct(): + def __init__(self, *, deeper_required_prop: str, deeper_optional_prop: typing.Optional[str]=None): + """ + :param deeper_required_prop: It's long and required. + :param deeper_optional_prop: It's long, but you'll almost never pass it. -@jsii.data_type(jsii_type="jsii-calc.ChildStruct982", jsii_struct_bases=[ParentStruct982], name_mapping={'foo': 'foo', 'bar': 'bar'}) -class ChildStruct982(ParentStruct982): - def __init__(self, *, foo: str, bar: jsii.Number): - """ - :param foo: - :param bar: + stability + :stability: experimental + """ + self._values = { + 'deeper_required_prop': deeper_required_prop, + } + if deeper_optional_prop is not None: self._values["deeper_optional_prop"] = deeper_optional_prop - stability - :stability: experimental - """ - self._values = { - 'foo': foo, - 'bar': bar, - } + @builtins.property + def deeper_required_prop(self) -> str: + """It's long and required. - @builtins.property - def foo(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('foo') + stability + :stability: experimental + """ + return self._values.get('deeper_required_prop') - @builtins.property - def bar(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return self._values.get('bar') + @builtins.property + def deeper_optional_prop(self) -> typing.Optional[str]: + """It's long, but you'll almost never pass it. - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values + stability + :stability: experimental + """ + return self._values.get('deeper_optional_prop') - def __ne__(self, rhs) -> bool: - return not (rhs == self) + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values - def __repr__(self) -> str: - return 'ChildStruct982(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + def __ne__(self, rhs) -> bool: + return not (rhs == self) + def __repr__(self) -> str: + return 'SecondLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) -class PartiallyInitializedThisConsumer(metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.PartiallyInitializedThisConsumer"): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _PartiallyInitializedThisConsumerProxy - def __init__(self) -> None: - jsii.create(PartiallyInitializedThisConsumer, self, []) + class SingleInstanceTwoTypes(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.SingleInstanceTwoTypes"): + """Test that a single instance can be returned under two different FQNs. - @jsii.member(jsii_name="consumePartiallyInitializedThis") - @abc.abstractmethod - def consume_partially_initialized_this(self, obj: "ConstructorPassesThisOut", dt: datetime.datetime, ev: "AllTypesEnum") -> str: - """ - :param obj: - - :param dt: - - :param ev: - + JSII clients can instantiate 2 different strongly-typed wrappers for the same + object. Unfortunately, this will break object equality, but if we didn't do + this it would break runtime type checks in the JVM or CLR. stability :stability: experimental """ - ... - + def __init__(self) -> None: + jsii.create(SingleInstanceTwoTypes, self, []) -class _PartiallyInitializedThisConsumerProxy(PartiallyInitializedThisConsumer): - @jsii.member(jsii_name="consumePartiallyInitializedThis") - def consume_partially_initialized_this(self, obj: "ConstructorPassesThisOut", dt: datetime.datetime, ev: "AllTypesEnum") -> str: - """ - :param obj: - - :param dt: - - :param ev: - + @jsii.member(jsii_name="interface1") + def interface1(self) -> "InbetweenClass": + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "interface1", []) - stability - :stability: experimental - """ - return jsii.invoke(self, "consumePartiallyInitializedThis", [obj, dt, ev]) + @jsii.member(jsii_name="interface2") + def interface2(self) -> "IPublicInterface": + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "interface2", []) -class Polymorphism(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Polymorphism"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(Polymorphism, self, []) + class SingletonInt(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.SingletonInt"): + """Verifies that singleton enums are handled correctly. - @jsii.member(jsii_name="sayHello") - def say_hello(self, friendly: scope.jsii_calc_lib.IFriendly) -> str: - """ - :param friendly: - + https://github.com/aws/jsii/issues/231 stability :stability: experimental """ - return jsii.invoke(self, "sayHello", [friendly]) + @jsii.member(jsii_name="isSingletonInt") + def is_singleton_int(self, value: jsii.Number) -> bool: + """ + :param value: - + stability + :stability: experimental + """ + return jsii.invoke(self, "isSingletonInt", [value]) -class PropertyNamedProperty(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.PropertyNamedProperty"): - """Reproduction for https://github.com/aws/jsii/issues/1113 Where a method or property named "property" would result in impossible to load Python code. - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(PropertyNamedProperty, self, []) + @jsii.enum(jsii_type="jsii-calc.compliance.SingletonIntEnum") + class SingletonIntEnum(enum.Enum): + """A singleton integer. - @builtins.property - @jsii.member(jsii_name="property") - def property(self) -> str: - """ stability :stability: experimental """ - return jsii.get(self, "property") + SINGLETON_INT = "SINGLETON_INT" + """Elite! - @builtins.property - @jsii.member(jsii_name="yetAnoterOne") - def yet_anoter_one(self) -> bool: - """ stability :stability: experimental """ - return jsii.get(self, "yetAnoterOne") + class SingletonString(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.SingletonString"): + """Verifies that singleton enums are handled correctly. -class PublicClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.PublicClass"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(PublicClass, self, []) + https://github.com/aws/jsii/issues/231 - @jsii.member(jsii_name="hello") - def hello(self) -> None: - """ stability :stability: experimental """ - return jsii.invoke(self, "hello", []) - - -@jsii.implements(IPublicInterface2) -class InbetweenClass(PublicClass, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.InbetweenClass"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(InbetweenClass, self, []) + @jsii.member(jsii_name="isSingletonString") + def is_singleton_string(self, value: str) -> bool: + """ + :param value: - - @jsii.member(jsii_name="ciao") - def ciao(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "ciao", []) + stability + :stability: experimental + """ + return jsii.invoke(self, "isSingletonString", [value]) -class PythonReservedWords(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.PythonReservedWords"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(PythonReservedWords, self, []) + @jsii.enum(jsii_type="jsii-calc.compliance.SingletonStringEnum") + class SingletonStringEnum(enum.Enum): + """A singleton string. - @jsii.member(jsii_name="and") - def and_(self) -> None: - """ stability :stability: experimental """ - return jsii.invoke(self, "and", []) + SINGLETON_STRING = "SINGLETON_STRING" + """1337. - @jsii.member(jsii_name="as") - def as_(self) -> None: - """ stability :stability: experimental """ - return jsii.invoke(self, "as", []) - @jsii.member(jsii_name="assert") - def assert_(self) -> None: + class SomeTypeJsii976(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.SomeTypeJsii976"): """ stability :stability: experimental """ - return jsii.invoke(self, "assert", []) + def __init__(self) -> None: + jsii.create(SomeTypeJsii976, self, []) - @jsii.member(jsii_name="async") - def async_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "async", []) + @jsii.member(jsii_name="returnAnonymous") + @builtins.classmethod + def return_anonymous(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "returnAnonymous", []) - @jsii.member(jsii_name="await") - def await_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "await", []) + @jsii.member(jsii_name="returnReturn") + @builtins.classmethod + def return_return(cls) -> "IReturnJsii976": + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "returnReturn", []) + + + class StaticContext(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.StaticContext"): + """This is used to validate the ability to use ``this`` from within a static context. + + https://github.com/awslabs/aws-cdk/issues/2304 - @jsii.member(jsii_name="break") - def break_(self) -> None: - """ stability :stability: experimental """ - return jsii.invoke(self, "break", []) + @jsii.member(jsii_name="canAccessStaticContext") + @builtins.classmethod + def can_access_static_context(cls) -> bool: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "canAccessStaticContext", []) + + @jsii.python.classproperty + @jsii.member(jsii_name="staticVariable") + def static_variable(cls) -> bool: + """ + stability + :stability: experimental + """ + return jsii.sget(cls, "staticVariable") + + @static_variable.setter + def static_variable(cls, value: bool): + jsii.sset(cls, "staticVariable", value) - @jsii.member(jsii_name="class") - def class_(self) -> None: + + class Statics(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.Statics"): """ stability :stability: experimental """ - return jsii.invoke(self, "class", []) + def __init__(self, value: str) -> None: + """ + :param value: - + + stability + :stability: experimental + """ + jsii.create(Statics, self, [value]) + + @jsii.member(jsii_name="staticMethod") + @builtins.classmethod + def static_method(cls, name: str) -> str: + """Jsdocs for static method. + + :param name: The name of the person to say hello to. + + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "staticMethod", [name]) + + @jsii.member(jsii_name="justMethod") + def just_method(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "justMethod", []) + + @jsii.python.classproperty + @jsii.member(jsii_name="BAR") + def BAR(cls) -> jsii.Number: + """Constants may also use all-caps. + + stability + :stability: experimental + """ + return jsii.sget(cls, "BAR") - @jsii.member(jsii_name="continue") - def continue_(self) -> None: + @jsii.python.classproperty + @jsii.member(jsii_name="ConstObj") + def CONST_OBJ(cls) -> "DoubleTrouble": + """ + stability + :stability: experimental + """ + return jsii.sget(cls, "ConstObj") + + @jsii.python.classproperty + @jsii.member(jsii_name="Foo") + def FOO(cls) -> str: + """Jsdocs for static property. + + stability + :stability: experimental + """ + return jsii.sget(cls, "Foo") + + @jsii.python.classproperty + @jsii.member(jsii_name="zooBar") + def ZOO_BAR(cls) -> typing.Mapping[str,str]: + """Constants can also use camelCase. + + stability + :stability: experimental + """ + return jsii.sget(cls, "zooBar") + + @jsii.python.classproperty + @jsii.member(jsii_name="instance") + def instance(cls) -> "Statics": + """Jsdocs for static getter. + + Jsdocs for static setter. + + stability + :stability: experimental + """ + return jsii.sget(cls, "instance") + + @instance.setter + def instance(cls, value: "Statics"): + jsii.sset(cls, "instance", value) + + @jsii.python.classproperty + @jsii.member(jsii_name="nonConstStatic") + def non_const_static(cls) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.sget(cls, "nonConstStatic") + + @non_const_static.setter + def non_const_static(cls, value: jsii.Number): + jsii.sset(cls, "nonConstStatic", value) + + @builtins.property + @jsii.member(jsii_name="value") + def value(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "value") + + + @jsii.enum(jsii_type="jsii-calc.compliance.StringEnum") + class StringEnum(enum.Enum): """ stability :stability: experimental """ - return jsii.invoke(self, "continue", []) - - @jsii.member(jsii_name="def") - def def_(self) -> None: + A = "A" """ stability :stability: experimental """ - return jsii.invoke(self, "def", []) - - @jsii.member(jsii_name="del") - def del_(self) -> None: + B = "B" """ stability :stability: experimental """ - return jsii.invoke(self, "del", []) - - @jsii.member(jsii_name="elif") - def elif_(self) -> None: + C = "C" """ stability :stability: experimental """ - return jsii.invoke(self, "elif", []) - @jsii.member(jsii_name="else") - def else_(self) -> None: + class StripInternal(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.StripInternal"): """ stability :stability: experimental """ - return jsii.invoke(self, "else", []) + def __init__(self) -> None: + jsii.create(StripInternal, self, []) + + @builtins.property + @jsii.member(jsii_name="youSeeMe") + def you_see_me(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "youSeeMe") + + @you_see_me.setter + def you_see_me(self, value: str): + jsii.set(self, "youSeeMe", value) + + + @jsii.data_type(jsii_type="jsii-calc.compliance.StructA", jsii_struct_bases=[], name_mapping={'required_string': 'requiredString', 'optional_number': 'optionalNumber', 'optional_string': 'optionalString'}) + class StructA(): + def __init__(self, *, required_string: str, optional_number: typing.Optional[jsii.Number]=None, optional_string: typing.Optional[str]=None): + """We can serialize and deserialize structs without silently ignoring optional fields. + + :param required_string: + :param optional_number: + :param optional_string: + + stability + :stability: experimental + """ + self._values = { + 'required_string': required_string, + } + if optional_number is not None: self._values["optional_number"] = optional_number + if optional_string is not None: self._values["optional_string"] = optional_string + + @builtins.property + def required_string(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('required_string') + + @builtins.property + def optional_number(self) -> typing.Optional[jsii.Number]: + """ + stability + :stability: experimental + """ + return self._values.get('optional_number') + + @builtins.property + def optional_string(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + return self._values.get('optional_string') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'StructA(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + + @jsii.data_type(jsii_type="jsii-calc.compliance.StructB", jsii_struct_bases=[], name_mapping={'required_string': 'requiredString', 'optional_boolean': 'optionalBoolean', 'optional_struct_a': 'optionalStructA'}) + class StructB(): + def __init__(self, *, required_string: str, optional_boolean: typing.Optional[bool]=None, optional_struct_a: typing.Optional["StructA"]=None): + """This intentionally overlaps with StructA (where only requiredString is provided) to test htat the kernel properly disambiguates those. + + :param required_string: + :param optional_boolean: + :param optional_struct_a: + + stability + :stability: experimental + """ + if isinstance(optional_struct_a, dict): optional_struct_a = StructA(**optional_struct_a) + self._values = { + 'required_string': required_string, + } + if optional_boolean is not None: self._values["optional_boolean"] = optional_boolean + if optional_struct_a is not None: self._values["optional_struct_a"] = optional_struct_a + + @builtins.property + def required_string(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('required_string') + + @builtins.property + def optional_boolean(self) -> typing.Optional[bool]: + """ + stability + :stability: experimental + """ + return self._values.get('optional_boolean') + + @builtins.property + def optional_struct_a(self) -> typing.Optional["StructA"]: + """ + stability + :stability: experimental + """ + return self._values.get('optional_struct_a') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'StructB(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + + @jsii.data_type(jsii_type="jsii-calc.compliance.StructParameterType", jsii_struct_bases=[], name_mapping={'scope': 'scope', 'props': 'props'}) + class StructParameterType(): + def __init__(self, *, scope: str, props: typing.Optional[bool]=None): + """Verifies that, in languages that do keyword lifting (e.g: Python), having a struct member with the same name as a positional parameter results in the correct code being emitted. + + See: https://github.com/aws/aws-cdk/issues/4302 + + :param scope: + :param props: + + stability + :stability: experimental + """ + self._values = { + 'scope': scope, + } + if props is not None: self._values["props"] = props - @jsii.member(jsii_name="except") - def except_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "except", []) + @builtins.property + def scope(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('scope') - @jsii.member(jsii_name="finally") - def finally_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "finally", []) + @builtins.property + def props(self) -> typing.Optional[bool]: + """ + stability + :stability: experimental + """ + return self._values.get('props') - @jsii.member(jsii_name="for") - def for_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "for", []) + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values - @jsii.member(jsii_name="from") - def from_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "from", []) + def __ne__(self, rhs) -> bool: + return not (rhs == self) - @jsii.member(jsii_name="global") - def global_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "global", []) + def __repr__(self) -> str: + return 'StructParameterType(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - @jsii.member(jsii_name="if") - def if_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "if", []) - @jsii.member(jsii_name="import") - def import_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "import", []) + class StructPassing(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.StructPassing"): + """Just because we can.""" + def __init__(self) -> None: + jsii.create(StructPassing, self, []) - @jsii.member(jsii_name="in") - def in_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "in", []) + @jsii.member(jsii_name="howManyVarArgsDidIPass") + @builtins.classmethod + def how_many_var_args_did_i_pass(cls, _positional: jsii.Number, *inputs: "TopLevelStruct") -> jsii.Number: + """ + :param _positional: - + :param inputs: - + """ + return jsii.sinvoke(cls, "howManyVarArgsDidIPass", [_positional, *inputs]) - @jsii.member(jsii_name="is") - def is_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "is", []) + @jsii.member(jsii_name="roundTrip") + @builtins.classmethod + def round_trip(cls, _positional: jsii.Number, *, required: str, second_level: typing.Union[jsii.Number, "SecondLevelStruct"], optional: typing.Optional[str]=None) -> "TopLevelStruct": + """ + :param _positional: - + :param required: This is a required field. + :param second_level: A union to really stress test our serialization. + :param optional: You don't have to pass this. + """ + input = TopLevelStruct(required=required, second_level=second_level, optional=optional) - @jsii.member(jsii_name="lambda") - def lambda_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "lambda", []) + return jsii.sinvoke(cls, "roundTrip", [_positional, input]) - @jsii.member(jsii_name="nonlocal") - def nonlocal_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "nonlocal", []) - @jsii.member(jsii_name="not") - def not_(self) -> None: + class StructUnionConsumer(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.StructUnionConsumer"): """ stability :stability: experimental """ - return jsii.invoke(self, "not", []) + @jsii.member(jsii_name="isStructA") + @builtins.classmethod + def is_struct_a(cls, struct: typing.Union["StructA", "StructB"]) -> bool: + """ + :param struct: - - @jsii.member(jsii_name="or") - def or_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "or", []) + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "isStructA", [struct]) - @jsii.member(jsii_name="pass") - def pass_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "pass", []) + @jsii.member(jsii_name="isStructB") + @builtins.classmethod + def is_struct_b(cls, struct: typing.Union["StructA", "StructB"]) -> bool: + """ + :param struct: - - @jsii.member(jsii_name="raise") - def raise_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "raise", []) + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "isStructB", [struct]) - @jsii.member(jsii_name="return") - def return_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "return", []) - @jsii.member(jsii_name="try") - def try_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "try", []) + @jsii.data_type(jsii_type="jsii-calc.compliance.StructWithJavaReservedWords", jsii_struct_bases=[], name_mapping={'default': 'default', 'assert_': 'assert', 'result': 'result', 'that': 'that'}) + class StructWithJavaReservedWords(): + def __init__(self, *, default: str, assert_: typing.Optional[str]=None, result: typing.Optional[str]=None, that: typing.Optional[str]=None): + """ + :param default: + :param assert_: + :param result: + :param that: - @jsii.member(jsii_name="while") - def while_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "while", []) + stability + :stability: experimental + """ + self._values = { + 'default': default, + } + if assert_ is not None: self._values["assert_"] = assert_ + if result is not None: self._values["result"] = result + if that is not None: self._values["that"] = that - @jsii.member(jsii_name="with") - def with_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "with", []) + @builtins.property + def default(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('default') - @jsii.member(jsii_name="yield") - def yield_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "yield", []) + @builtins.property + def assert_(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + return self._values.get('assert_') + @builtins.property + def result(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + return self._values.get('result') + + @builtins.property + def that(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + return self._values.get('that') -class ReferenceEnumFromScopedPackage(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ReferenceEnumFromScopedPackage"): - """See awslabs/jsii#138. + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(ReferenceEnumFromScopedPackage, self, []) + def __ne__(self, rhs) -> bool: + return not (rhs == self) - @jsii.member(jsii_name="loadFoo") - def load_foo(self) -> typing.Optional[scope.jsii_calc_lib.EnumFromScopedModule]: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "loadFoo", []) + def __repr__(self) -> str: + return 'StructWithJavaReservedWords(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - @jsii.member(jsii_name="saveFoo") - def save_foo(self, value: scope.jsii_calc_lib.EnumFromScopedModule) -> None: - """ - :param value: - - stability - :stability: experimental - """ - return jsii.invoke(self, "saveFoo", [value]) + @jsii.data_type(jsii_type="jsii-calc.compliance.SupportsNiceJavaBuilderProps", jsii_struct_bases=[], name_mapping={'bar': 'bar', 'id': 'id'}) + class SupportsNiceJavaBuilderProps(): + def __init__(self, *, bar: jsii.Number, id: typing.Optional[str]=None): + """ + :param bar: Some number, like 42. + :param id: An ``id`` field here is terrible API design, because the constructor of ``SupportsNiceJavaBuilder`` already has a parameter named ``id``. But here we are, doing it like we didn't care. - @builtins.property - @jsii.member(jsii_name="foo") - def foo(self) -> typing.Optional[scope.jsii_calc_lib.EnumFromScopedModule]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "foo") + stability + :stability: experimental + """ + self._values = { + 'bar': bar, + } + if id is not None: self._values["id"] = id - @foo.setter - def foo(self, value: typing.Optional[scope.jsii_calc_lib.EnumFromScopedModule]): - jsii.set(self, "foo", value) + @builtins.property + def bar(self) -> jsii.Number: + """Some number, like 42. + stability + :stability: experimental + """ + return self._values.get('bar') -class ReturnsPrivateImplementationOfInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ReturnsPrivateImplementationOfInterface"): - """Helps ensure the JSII kernel & runtime cooperate correctly when an un-exported instance of a class is returned with a declared type that is an exported interface, and the instance inherits from an exported class. + @builtins.property + def id(self) -> typing.Optional[str]: + """An ``id`` field here is terrible API design, because the constructor of ``SupportsNiceJavaBuilder`` already has a parameter named ``id``. - return - :return: an instance of an un-exported class that extends ``ExportedBaseClass``, declared as ``IPrivatelyImplemented``. + But here we are, doing it like we didn't care. - see - :see: https://github.com/aws/jsii/issues/320 - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(ReturnsPrivateImplementationOfInterface, self, []) + stability + :stability: experimental + """ + return self._values.get('id') - @builtins.property - @jsii.member(jsii_name="privateImplementation") - def private_implementation(self) -> "IPrivatelyImplemented": - """ - stability - :stability: experimental - """ - return jsii.get(self, "privateImplementation") + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + def __ne__(self, rhs) -> bool: + return not (rhs == self) -@jsii.data_type(jsii_type="jsii-calc.RootStruct", jsii_struct_bases=[], name_mapping={'string_prop': 'stringProp', 'nested_struct': 'nestedStruct'}) -class RootStruct(): - def __init__(self, *, string_prop: str, nested_struct: typing.Optional["NestedStruct"]=None): - """This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary. + def __repr__(self) -> str: + return 'SupportsNiceJavaBuilderProps(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - This is cheating with the (current) declared types, but this is the "more - idiomatic" way for Pythonists. - :param string_prop: May not be empty. - :param nested_struct: + class SupportsNiceJavaBuilderWithRequiredProps(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.SupportsNiceJavaBuilderWithRequiredProps"): + """We can generate fancy builders in Java for classes which take a mix of positional & struct parameters. stability :stability: experimental """ - if isinstance(nested_struct, dict): nested_struct = NestedStruct(**nested_struct) - self._values = { - 'string_prop': string_prop, - } - if nested_struct is not None: self._values["nested_struct"] = nested_struct + def __init__(self, id_: jsii.Number, *, bar: jsii.Number, id: typing.Optional[str]=None) -> None: + """ + :param id_: some identifier of your choice. + :param bar: Some number, like 42. + :param id: An ``id`` field here is terrible API design, because the constructor of ``SupportsNiceJavaBuilder`` already has a parameter named ``id``. But here we are, doing it like we didn't care. - @builtins.property - def string_prop(self) -> str: - """May not be empty. + stability + :stability: experimental + """ + props = SupportsNiceJavaBuilderProps(bar=bar, id=id) - stability - :stability: experimental - """ - return self._values.get('string_prop') + jsii.create(SupportsNiceJavaBuilderWithRequiredProps, self, [id_, props]) - @builtins.property - def nested_struct(self) -> typing.Optional["NestedStruct"]: - """ - stability - :stability: experimental - """ - return self._values.get('nested_struct') + @builtins.property + @jsii.member(jsii_name="bar") + def bar(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.get(self, "bar") - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values + @builtins.property + @jsii.member(jsii_name="id") + def id(self) -> jsii.Number: + """some identifier of your choice. - def __ne__(self, rhs) -> bool: - return not (rhs == self) + stability + :stability: experimental + """ + return jsii.get(self, "id") - def __repr__(self) -> str: - return 'RootStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + @builtins.property + @jsii.member(jsii_name="propId") + def prop_id(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "propId") -class RootStructValidator(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.RootStructValidator"): - """ - stability - :stability: experimental - """ - @jsii.member(jsii_name="validate") - @builtins.classmethod - def validate(cls, *, string_prop: str, nested_struct: typing.Optional["NestedStruct"]=None) -> None: + class SyncVirtualMethods(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.SyncVirtualMethods"): """ - :param string_prop: May not be empty. - :param nested_struct: - stability :stability: experimental """ - struct = RootStruct(string_prop=string_prop, nested_struct=nested_struct) + def __init__(self) -> None: + jsii.create(SyncVirtualMethods, self, []) - return jsii.sinvoke(cls, "validate", [struct]) + @jsii.member(jsii_name="callerIsAsync") + def caller_is_async(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.ainvoke(self, "callerIsAsync", []) + @jsii.member(jsii_name="callerIsMethod") + def caller_is_method(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "callerIsMethod", []) -class RuntimeTypeChecking(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.RuntimeTypeChecking"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(RuntimeTypeChecking, self, []) + @jsii.member(jsii_name="modifyOtherProperty") + def modify_other_property(self, value: str) -> None: + """ + :param value: - - @jsii.member(jsii_name="methodWithDefaultedArguments") - def method_with_defaulted_arguments(self, arg1: typing.Optional[jsii.Number]=None, arg2: typing.Optional[str]=None, arg3: typing.Optional[datetime.datetime]=None) -> None: - """ - :param arg1: - - :param arg2: - - :param arg3: - + stability + :stability: experimental + """ + return jsii.invoke(self, "modifyOtherProperty", [value]) - stability - :stability: experimental - """ - return jsii.invoke(self, "methodWithDefaultedArguments", [arg1, arg2, arg3]) + @jsii.member(jsii_name="modifyValueOfTheProperty") + def modify_value_of_the_property(self, value: str) -> None: + """ + :param value: - - @jsii.member(jsii_name="methodWithOptionalAnyArgument") - def method_with_optional_any_argument(self, arg: typing.Any=None) -> None: - """ - :param arg: - + stability + :stability: experimental + """ + return jsii.invoke(self, "modifyValueOfTheProperty", [value]) + + @jsii.member(jsii_name="readA") + def read_a(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "readA", []) + + @jsii.member(jsii_name="retrieveOtherProperty") + def retrieve_other_property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "retrieveOtherProperty", []) - stability - :stability: experimental - """ - return jsii.invoke(self, "methodWithOptionalAnyArgument", [arg]) + @jsii.member(jsii_name="retrieveReadOnlyProperty") + def retrieve_read_only_property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "retrieveReadOnlyProperty", []) - @jsii.member(jsii_name="methodWithOptionalArguments") - def method_with_optional_arguments(self, arg1: jsii.Number, arg2: str, arg3: typing.Optional[datetime.datetime]=None) -> None: - """Used to verify verification of number of method arguments. + @jsii.member(jsii_name="retrieveValueOfTheProperty") + def retrieve_value_of_the_property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "retrieveValueOfTheProperty", []) - :param arg1: - - :param arg2: - - :param arg3: - + @jsii.member(jsii_name="virtualMethod") + def virtual_method(self, n: jsii.Number) -> jsii.Number: + """ + :param n: - - stability - :stability: experimental - """ - return jsii.invoke(self, "methodWithOptionalArguments", [arg1, arg2, arg3]) + stability + :stability: experimental + """ + return jsii.invoke(self, "virtualMethod", [n]) + @jsii.member(jsii_name="writeA") + def write_a(self, value: jsii.Number) -> None: + """ + :param value: - -@jsii.data_type(jsii_type="jsii-calc.SecondLevelStruct", jsii_struct_bases=[], name_mapping={'deeper_required_prop': 'deeperRequiredProp', 'deeper_optional_prop': 'deeperOptionalProp'}) -class SecondLevelStruct(): - def __init__(self, *, deeper_required_prop: str, deeper_optional_prop: typing.Optional[str]=None): - """ - :param deeper_required_prop: It's long and required. - :param deeper_optional_prop: It's long, but you'll almost never pass it. + stability + :stability: experimental + """ + return jsii.invoke(self, "writeA", [value]) - stability - :stability: experimental - """ - self._values = { - 'deeper_required_prop': deeper_required_prop, - } - if deeper_optional_prop is not None: self._values["deeper_optional_prop"] = deeper_optional_prop + @builtins.property + @jsii.member(jsii_name="readonlyProperty") + def readonly_property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "readonlyProperty") - @builtins.property - def deeper_required_prop(self) -> str: - """It's long and required. + @builtins.property + @jsii.member(jsii_name="a") + def a(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.get(self, "a") - stability - :stability: experimental - """ - return self._values.get('deeper_required_prop') + @a.setter + def a(self, value: jsii.Number): + jsii.set(self, "a", value) - @builtins.property - def deeper_optional_prop(self) -> typing.Optional[str]: - """It's long, but you'll almost never pass it. + @builtins.property + @jsii.member(jsii_name="callerIsProperty") + def caller_is_property(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.get(self, "callerIsProperty") - stability - :stability: experimental - """ - return self._values.get('deeper_optional_prop') + @caller_is_property.setter + def caller_is_property(self, value: jsii.Number): + jsii.set(self, "callerIsProperty", value) - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values + @builtins.property + @jsii.member(jsii_name="otherProperty") + def other_property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "otherProperty") - def __ne__(self, rhs) -> bool: - return not (rhs == self) + @other_property.setter + def other_property(self, value: str): + jsii.set(self, "otherProperty", value) - def __repr__(self) -> str: - return 'SecondLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + @builtins.property + @jsii.member(jsii_name="theProperty") + def the_property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "theProperty") + @the_property.setter + def the_property(self, value: str): + jsii.set(self, "theProperty", value) -class SingleInstanceTwoTypes(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SingleInstanceTwoTypes"): - """Test that a single instance can be returned under two different FQNs. + @builtins.property + @jsii.member(jsii_name="valueOfOtherProperty") + def value_of_other_property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "valueOfOtherProperty") - JSII clients can instantiate 2 different strongly-typed wrappers for the same - object. Unfortunately, this will break object equality, but if we didn't do - this it would break runtime type checks in the JVM or CLR. + @value_of_other_property.setter + def value_of_other_property(self, value: str): + jsii.set(self, "valueOfOtherProperty", value) - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(SingleInstanceTwoTypes, self, []) - @jsii.member(jsii_name="interface1") - def interface1(self) -> "InbetweenClass": + class Thrower(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.Thrower"): """ stability :stability: experimental """ - return jsii.invoke(self, "interface1", []) + def __init__(self) -> None: + jsii.create(Thrower, self, []) - @jsii.member(jsii_name="interface2") - def interface2(self) -> "IPublicInterface": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "interface2", []) + @jsii.member(jsii_name="throwError") + def throw_error(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "throwError", []) -class SingletonInt(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SingletonInt"): - """Verifies that singleton enums are handled correctly. + @jsii.data_type(jsii_type="jsii-calc.compliance.TopLevelStruct", jsii_struct_bases=[], name_mapping={'required': 'required', 'second_level': 'secondLevel', 'optional': 'optional'}) + class TopLevelStruct(): + def __init__(self, *, required: str, second_level: typing.Union[jsii.Number, "SecondLevelStruct"], optional: typing.Optional[str]=None): + """ + :param required: This is a required field. + :param second_level: A union to really stress test our serialization. + :param optional: You don't have to pass this. - https://github.com/aws/jsii/issues/231 + stability + :stability: experimental + """ + self._values = { + 'required': required, + 'second_level': second_level, + } + if optional is not None: self._values["optional"] = optional - stability - :stability: experimental - """ - @jsii.member(jsii_name="isSingletonInt") - def is_singleton_int(self, value: jsii.Number) -> bool: - """ - :param value: - + @builtins.property + def required(self) -> str: + """This is a required field. - stability - :stability: experimental - """ - return jsii.invoke(self, "isSingletonInt", [value]) + stability + :stability: experimental + """ + return self._values.get('required') + @builtins.property + def second_level(self) -> typing.Union[jsii.Number, "SecondLevelStruct"]: + """A union to really stress test our serialization. -@jsii.enum(jsii_type="jsii-calc.SingletonIntEnum") -class SingletonIntEnum(enum.Enum): - """A singleton integer. + stability + :stability: experimental + """ + return self._values.get('second_level') - stability - :stability: experimental - """ - SINGLETON_INT = "SINGLETON_INT" - """Elite! + @builtins.property + def optional(self) -> typing.Optional[str]: + """You don't have to pass this. - stability - :stability: experimental - """ + stability + :stability: experimental + """ + return self._values.get('optional') -class SingletonString(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SingletonString"): - """Verifies that singleton enums are handled correctly. + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values - https://github.com/aws/jsii/issues/231 + def __ne__(self, rhs) -> bool: + return not (rhs == self) - stability - :stability: experimental - """ - @jsii.member(jsii_name="isSingletonString") - def is_singleton_string(self, value: str) -> bool: - """ - :param value: - + def __repr__(self) -> str: + return 'TopLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - stability - :stability: experimental - """ - return jsii.invoke(self, "isSingletonString", [value]) + @jsii.data_type(jsii_type="jsii-calc.compliance.UnionProperties", jsii_struct_bases=[], name_mapping={'bar': 'bar', 'foo': 'foo'}) + class UnionProperties(): + def __init__(self, *, bar: typing.Union[str, jsii.Number, "AllTypes"], foo: typing.Optional[typing.Union[typing.Optional[str], typing.Optional[jsii.Number]]]=None): + """ + :param bar: + :param foo: -@jsii.enum(jsii_type="jsii-calc.SingletonStringEnum") -class SingletonStringEnum(enum.Enum): - """A singleton string. + stability + :stability: experimental + """ + self._values = { + 'bar': bar, + } + if foo is not None: self._values["foo"] = foo - stability - :stability: experimental - """ - SINGLETON_STRING = "SINGLETON_STRING" - """1337. + @builtins.property + def bar(self) -> typing.Union[str, jsii.Number, "AllTypes"]: + """ + stability + :stability: experimental + """ + return self._values.get('bar') - stability - :stability: experimental - """ + @builtins.property + def foo(self) -> typing.Optional[typing.Union[typing.Optional[str], typing.Optional[jsii.Number]]]: + """ + stability + :stability: experimental + """ + return self._values.get('foo') -@jsii.data_type(jsii_type="jsii-calc.SmellyStruct", jsii_struct_bases=[], name_mapping={'property': 'property', 'yet_anoter_one': 'yetAnoterOne'}) -class SmellyStruct(): - def __init__(self, *, property: str, yet_anoter_one: bool): - """ - :param property: - :param yet_anoter_one: + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values - stability - :stability: experimental - """ - self._values = { - 'property': property, - 'yet_anoter_one': yet_anoter_one, - } + def __ne__(self, rhs) -> bool: + return not (rhs == self) - @builtins.property - def property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('property') + def __repr__(self) -> str: + return 'UnionProperties(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - @builtins.property - def yet_anoter_one(self) -> bool: + + class UseBundledDependency(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.UseBundledDependency"): """ stability :stability: experimental """ - return self._values.get('yet_anoter_one') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) + def __init__(self) -> None: + jsii.create(UseBundledDependency, self, []) - def __repr__(self) -> str: - return 'SmellyStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + @jsii.member(jsii_name="value") + def value(self) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "value", []) -class SomeTypeJsii976(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SomeTypeJsii976"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(SomeTypeJsii976, self, []) + class UseCalcBase(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.UseCalcBase"): + """Depend on a type from jsii-calc-base as a test for awslabs/jsii#128. - @jsii.member(jsii_name="returnAnonymous") - @builtins.classmethod - def return_anonymous(cls) -> typing.Any: - """ stability :stability: experimental """ - return jsii.sinvoke(cls, "returnAnonymous", []) + def __init__(self) -> None: + jsii.create(UseCalcBase, self, []) - @jsii.member(jsii_name="returnReturn") - @builtins.classmethod - def return_return(cls) -> "IReturnJsii976": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "returnReturn", []) + @jsii.member(jsii_name="hello") + def hello(self) -> scope.jsii_calc_base.Base: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "hello", []) -class StableClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.StableClass"): - def __init__(self, readonly_string: str, mutable_number: typing.Optional[jsii.Number]=None) -> None: + class UsesInterfaceWithProperties(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.UsesInterfaceWithProperties"): """ - :param readonly_string: - - :param mutable_number: - + stability + :stability: experimental """ - jsii.create(StableClass, self, [readonly_string, mutable_number]) - - @jsii.member(jsii_name="method") - def method(self) -> None: - return jsii.invoke(self, "method", []) - - @builtins.property - @jsii.member(jsii_name="readonlyProperty") - def readonly_property(self) -> str: - return jsii.get(self, "readonlyProperty") - - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: - return jsii.get(self, "mutableProperty") - - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]): - jsii.set(self, "mutableProperty", value) - - -@jsii.enum(jsii_type="jsii-calc.StableEnum") -class StableEnum(enum.Enum): - OPTION_A = "OPTION_A" - OPTION_B = "OPTION_B" + def __init__(self, obj: "IInterfaceWithProperties") -> None: + """ + :param obj: - -@jsii.data_type(jsii_type="jsii-calc.StableStruct", jsii_struct_bases=[], name_mapping={'readonly_property': 'readonlyProperty'}) -class StableStruct(): - def __init__(self, *, readonly_property: str): - """ - :param readonly_property: - """ - self._values = { - 'readonly_property': readonly_property, - } + stability + :stability: experimental + """ + jsii.create(UsesInterfaceWithProperties, self, [obj]) - @builtins.property - def readonly_property(self) -> str: - return self._values.get('readonly_property') + @jsii.member(jsii_name="justRead") + def just_read(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "justRead", []) - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values + @jsii.member(jsii_name="readStringAndNumber") + def read_string_and_number(self, ext: "IInterfaceWithPropertiesExtension") -> str: + """ + :param ext: - - def __ne__(self, rhs) -> bool: - return not (rhs == self) + stability + :stability: experimental + """ + return jsii.invoke(self, "readStringAndNumber", [ext]) - def __repr__(self) -> str: - return 'StableStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + @jsii.member(jsii_name="writeAndRead") + def write_and_read(self, value: str) -> str: + """ + :param value: - + stability + :stability: experimental + """ + return jsii.invoke(self, "writeAndRead", [value]) -class StaticContext(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.StaticContext"): - """This is used to validate the ability to use ``this`` from within a static context. + @builtins.property + @jsii.member(jsii_name="obj") + def obj(self) -> "IInterfaceWithProperties": + """ + stability + :stability: experimental + """ + return jsii.get(self, "obj") - https://github.com/awslabs/aws-cdk/issues/2304 - stability - :stability: experimental - """ - @jsii.member(jsii_name="canAccessStaticContext") - @builtins.classmethod - def can_access_static_context(cls) -> bool: + class VariadicInvoker(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.VariadicInvoker"): """ stability :stability: experimental """ - return jsii.sinvoke(cls, "canAccessStaticContext", []) + def __init__(self, method: "VariadicMethod") -> None: + """ + :param method: - - @jsii.python.classproperty - @jsii.member(jsii_name="staticVariable") - def static_variable(cls) -> bool: - """ - stability - :stability: experimental - """ - return jsii.sget(cls, "staticVariable") + stability + :stability: experimental + """ + jsii.create(VariadicInvoker, self, [method]) - @static_variable.setter - def static_variable(cls, value: bool): - jsii.sset(cls, "staticVariable", value) + @jsii.member(jsii_name="asArray") + def as_array(self, *values: jsii.Number) -> typing.List[jsii.Number]: + """ + :param values: - + stability + :stability: experimental + """ + return jsii.invoke(self, "asArray", [*values]) -class Statics(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Statics"): - """ - stability - :stability: experimental - """ - def __init__(self, value: str) -> None: - """ - :param value: - + class VariadicMethod(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.VariadicMethod"): + """ stability :stability: experimental """ - jsii.create(Statics, self, [value]) + def __init__(self, *prefix: jsii.Number) -> None: + """ + :param prefix: a prefix that will be use for all values returned by ``#asArray``. - @jsii.member(jsii_name="staticMethod") - @builtins.classmethod - def static_method(cls, name: str) -> str: - """Jsdocs for static method. + stability + :stability: experimental + """ + jsii.create(VariadicMethod, self, [*prefix]) - :param name: The name of the person to say hello to. + @jsii.member(jsii_name="asArray") + def as_array(self, first: jsii.Number, *others: jsii.Number) -> typing.List[jsii.Number]: + """ + :param first: the first element of the array to be returned (after the ``prefix`` provided at construction time). + :param others: other elements to be included in the array. + + stability + :stability: experimental + """ + return jsii.invoke(self, "asArray", [first, *others]) - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "staticMethod", [name]) - @jsii.member(jsii_name="justMethod") - def just_method(self) -> str: + class VirtualMethodPlayground(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.VirtualMethodPlayground"): """ stability :stability: experimental """ - return jsii.invoke(self, "justMethod", []) + def __init__(self) -> None: + jsii.create(VirtualMethodPlayground, self, []) - @jsii.python.classproperty - @jsii.member(jsii_name="BAR") - def BAR(cls) -> jsii.Number: - """Constants may also use all-caps. + @jsii.member(jsii_name="overrideMeAsync") + def override_me_async(self, index: jsii.Number) -> jsii.Number: + """ + :param index: - - stability - :stability: experimental - """ - return jsii.sget(cls, "BAR") + stability + :stability: experimental + """ + return jsii.ainvoke(self, "overrideMeAsync", [index]) - @jsii.python.classproperty - @jsii.member(jsii_name="ConstObj") - def CONST_OBJ(cls) -> "DoubleTrouble": - """ - stability - :stability: experimental - """ - return jsii.sget(cls, "ConstObj") + @jsii.member(jsii_name="overrideMeSync") + def override_me_sync(self, index: jsii.Number) -> jsii.Number: + """ + :param index: - - @jsii.python.classproperty - @jsii.member(jsii_name="Foo") - def FOO(cls) -> str: - """Jsdocs for static property. + stability + :stability: experimental + """ + return jsii.invoke(self, "overrideMeSync", [index]) - stability - :stability: experimental - """ - return jsii.sget(cls, "Foo") + @jsii.member(jsii_name="parallelSumAsync") + def parallel_sum_async(self, count: jsii.Number) -> jsii.Number: + """ + :param count: - - @jsii.python.classproperty - @jsii.member(jsii_name="zooBar") - def ZOO_BAR(cls) -> typing.Mapping[str,str]: - """Constants can also use camelCase. + stability + :stability: experimental + """ + return jsii.ainvoke(self, "parallelSumAsync", [count]) - stability - :stability: experimental - """ - return jsii.sget(cls, "zooBar") + @jsii.member(jsii_name="serialSumAsync") + def serial_sum_async(self, count: jsii.Number) -> jsii.Number: + """ + :param count: - - @jsii.python.classproperty - @jsii.member(jsii_name="instance") - def instance(cls) -> "Statics": - """Jsdocs for static getter. + stability + :stability: experimental + """ + return jsii.ainvoke(self, "serialSumAsync", [count]) - Jsdocs for static setter. + @jsii.member(jsii_name="sumSync") + def sum_sync(self, count: jsii.Number) -> jsii.Number: + """ + :param count: - - stability - :stability: experimental - """ - return jsii.sget(cls, "instance") + stability + :stability: experimental + """ + return jsii.invoke(self, "sumSync", [count]) - @instance.setter - def instance(cls, value: "Statics"): - jsii.sset(cls, "instance", value) - @jsii.python.classproperty - @jsii.member(jsii_name="nonConstStatic") - def non_const_static(cls) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.sget(cls, "nonConstStatic") + class VoidCallback(metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.compliance.VoidCallback"): + """This test is used to validate the runtimes can return correctly from a void callback. - @non_const_static.setter - def non_const_static(cls, value: jsii.Number): - jsii.sset(cls, "nonConstStatic", value) + - Implement ``overrideMe`` (method does not have to do anything). + - Invoke ``callMe`` + - Verify that ``methodWasCalled`` is ``true``. - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> str: - """ stability :stability: experimental """ - return jsii.get(self, "value") + @builtins.staticmethod + def __jsii_proxy_class__(): + return _VoidCallbackProxy + def __init__(self) -> None: + jsii.create(VoidCallback, self, []) -@jsii.enum(jsii_type="jsii-calc.StringEnum") -class StringEnum(enum.Enum): - """ - stability - :stability: experimental - """ - A = "A" - """ - stability - :stability: experimental - """ - B = "B" - """ - stability - :stability: experimental - """ - C = "C" - """ - stability - :stability: experimental - """ + @jsii.member(jsii_name="callMe") + def call_me(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "callMe", []) -class StripInternal(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.StripInternal"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(StripInternal, self, []) + @jsii.member(jsii_name="overrideMe") + @abc.abstractmethod + def _override_me(self) -> None: + """ + stability + :stability: experimental + """ + ... - @builtins.property - @jsii.member(jsii_name="youSeeMe") - def you_see_me(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "youSeeMe") + @builtins.property + @jsii.member(jsii_name="methodWasCalled") + def method_was_called(self) -> bool: + """ + stability + :stability: experimental + """ + return jsii.get(self, "methodWasCalled") - @you_see_me.setter - def you_see_me(self, value: str): - jsii.set(self, "youSeeMe", value) + class _VoidCallbackProxy(VoidCallback): + @jsii.member(jsii_name="overrideMe") + def _override_me(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "overrideMe", []) -@jsii.data_type(jsii_type="jsii-calc.StructA", jsii_struct_bases=[], name_mapping={'required_string': 'requiredString', 'optional_number': 'optionalNumber', 'optional_string': 'optionalString'}) -class StructA(): - def __init__(self, *, required_string: str, optional_number: typing.Optional[jsii.Number]=None, optional_string: typing.Optional[str]=None): - """We can serialize and deserialize structs without silently ignoring optional fields. - :param required_string: - :param optional_number: - :param optional_string: + class WithPrivatePropertyInConstructor(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.WithPrivatePropertyInConstructor"): + """Verifies that private property declarations in constructor arguments are hidden. stability :stability: experimental """ - self._values = { - 'required_string': required_string, - } - if optional_number is not None: self._values["optional_number"] = optional_number - if optional_string is not None: self._values["optional_string"] = optional_string + def __init__(self, private_field: typing.Optional[str]=None) -> None: + """ + :param private_field: - - @builtins.property - def required_string(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('required_string') + stability + :stability: experimental + """ + jsii.create(WithPrivatePropertyInConstructor, self, [private_field]) - @builtins.property - def optional_number(self) -> typing.Optional[jsii.Number]: - """ - stability - :stability: experimental - """ - return self._values.get('optional_number') + @builtins.property + @jsii.member(jsii_name="success") + def success(self) -> bool: + """ + stability + :stability: experimental + """ + return jsii.get(self, "success") - @builtins.property - def optional_string(self) -> typing.Optional[str]: + + @jsii.implements(IInterfaceImplementedByAbstractClass) + class AbstractClass(AbstractClassBase, metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.compliance.AbstractClass"): """ stability :stability: experimental """ - return self._values.get('optional_string') + @builtins.staticmethod + def __jsii_proxy_class__(): + return _AbstractClassProxy - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values + def __init__(self) -> None: + jsii.create(AbstractClass, self, []) - def __ne__(self, rhs) -> bool: - return not (rhs == self) + @jsii.member(jsii_name="abstractMethod") + @abc.abstractmethod + def abstract_method(self, name: str) -> str: + """ + :param name: - - def __repr__(self) -> str: - return 'StructA(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + stability + :stability: experimental + """ + ... + @jsii.member(jsii_name="nonAbstractMethod") + def non_abstract_method(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "nonAbstractMethod", []) -@jsii.data_type(jsii_type="jsii-calc.StructB", jsii_struct_bases=[], name_mapping={'required_string': 'requiredString', 'optional_boolean': 'optionalBoolean', 'optional_struct_a': 'optionalStructA'}) -class StructB(): - def __init__(self, *, required_string: str, optional_boolean: typing.Optional[bool]=None, optional_struct_a: typing.Optional["StructA"]=None): - """This intentionally overlaps with StructA (where only requiredString is provided) to test htat the kernel properly disambiguates those. + @builtins.property + @jsii.member(jsii_name="propFromInterface") + def prop_from_interface(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "propFromInterface") - :param required_string: - :param optional_boolean: - :param optional_struct_a: - stability - :stability: experimental - """ - if isinstance(optional_struct_a, dict): optional_struct_a = StructA(**optional_struct_a) - self._values = { - 'required_string': required_string, - } - if optional_boolean is not None: self._values["optional_boolean"] = optional_boolean - if optional_struct_a is not None: self._values["optional_struct_a"] = optional_struct_a + class _AbstractClassProxy(AbstractClass, jsii.proxy_for(AbstractClassBase)): + @jsii.member(jsii_name="abstractMethod") + def abstract_method(self, name: str) -> str: + """ + :param name: - - @builtins.property - def required_string(self) -> str: + stability + :stability: experimental + """ + return jsii.invoke(self, "abstractMethod", [name]) + + + @jsii.implements(IAnonymousImplementationProvider) + class AnonymousImplementationProvider(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.AnonymousImplementationProvider"): """ stability :stability: experimental """ - return self._values.get('required_string') + def __init__(self) -> None: + jsii.create(AnonymousImplementationProvider, self, []) - @builtins.property - def optional_boolean(self) -> typing.Optional[bool]: + @jsii.member(jsii_name="provideAsClass") + def provide_as_class(self) -> "Implementation": + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "provideAsClass", []) + + @jsii.member(jsii_name="provideAsInterface") + def provide_as_interface(self) -> "IAnonymouslyImplementMe": + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "provideAsInterface", []) + + + @jsii.implements(IBell) + class Bell(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.Bell"): """ stability :stability: experimental """ - return self._values.get('optional_boolean') + def __init__(self) -> None: + jsii.create(Bell, self, []) - @builtins.property - def optional_struct_a(self) -> typing.Optional["StructA"]: + @jsii.member(jsii_name="ring") + def ring(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "ring", []) + + @builtins.property + @jsii.member(jsii_name="rung") + def rung(self) -> bool: + """ + stability + :stability: experimental + """ + return jsii.get(self, "rung") + + @rung.setter + def rung(self, value: bool): + jsii.set(self, "rung", value) + + + @jsii.data_type(jsii_type="jsii-calc.compliance.ChildStruct982", jsii_struct_bases=[ParentStruct982], name_mapping={'foo': 'foo', 'bar': 'bar'}) + class ChildStruct982(ParentStruct982): + def __init__(self, *, foo: str, bar: jsii.Number): + """ + :param foo: + :param bar: + + stability + :stability: experimental + """ + self._values = { + 'foo': foo, + 'bar': bar, + } + + @builtins.property + def foo(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('foo') + + @builtins.property + def bar(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return self._values.get('bar') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'ChildStruct982(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + + @jsii.implements(INonInternalInterface) + class ClassThatImplementsTheInternalInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ClassThatImplementsTheInternalInterface"): """ stability :stability: experimental """ - return self._values.get('optional_struct_a') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values + def __init__(self) -> None: + jsii.create(ClassThatImplementsTheInternalInterface, self, []) - def __ne__(self, rhs) -> bool: - return not (rhs == self) + @builtins.property + @jsii.member(jsii_name="a") + def a(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "a") - def __repr__(self) -> str: - return 'StructB(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + @a.setter + def a(self, value: str): + jsii.set(self, "a", value) + @builtins.property + @jsii.member(jsii_name="b") + def b(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "b") -@jsii.data_type(jsii_type="jsii-calc.StructParameterType", jsii_struct_bases=[], name_mapping={'scope': 'scope', 'props': 'props'}) -class StructParameterType(): - def __init__(self, *, scope: str, props: typing.Optional[bool]=None): - """Verifies that, in languages that do keyword lifting (e.g: Python), having a struct member with the same name as a positional parameter results in the correct code being emitted. + @b.setter + def b(self, value: str): + jsii.set(self, "b", value) - See: https://github.com/aws/aws-cdk/issues/4302 + @builtins.property + @jsii.member(jsii_name="c") + def c(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "c") - :param scope: - :param props: + @c.setter + def c(self, value: str): + jsii.set(self, "c", value) - stability - :stability: experimental - """ - self._values = { - 'scope': scope, - } - if props is not None: self._values["props"] = props + @builtins.property + @jsii.member(jsii_name="d") + def d(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "d") - @builtins.property - def scope(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('scope') + @d.setter + def d(self, value: str): + jsii.set(self, "d", value) - @builtins.property - def props(self) -> typing.Optional[bool]: + + @jsii.implements(INonInternalInterface) + class ClassThatImplementsThePrivateInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ClassThatImplementsThePrivateInterface"): """ stability :stability: experimental """ - return self._values.get('props') + def __init__(self) -> None: + jsii.create(ClassThatImplementsThePrivateInterface, self, []) - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values + @builtins.property + @jsii.member(jsii_name="a") + def a(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "a") - def __ne__(self, rhs) -> bool: - return not (rhs == self) + @a.setter + def a(self, value: str): + jsii.set(self, "a", value) - def __repr__(self) -> str: - return 'StructParameterType(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + @builtins.property + @jsii.member(jsii_name="b") + def b(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "b") + @b.setter + def b(self, value: str): + jsii.set(self, "b", value) -class StructPassing(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.StructPassing"): - """Just because we can.""" - def __init__(self) -> None: - jsii.create(StructPassing, self, []) + @builtins.property + @jsii.member(jsii_name="c") + def c(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "c") - @jsii.member(jsii_name="howManyVarArgsDidIPass") - @builtins.classmethod - def how_many_var_args_did_i_pass(cls, _positional: jsii.Number, *inputs: "TopLevelStruct") -> jsii.Number: - """ - :param _positional: - - :param inputs: - - """ - return jsii.sinvoke(cls, "howManyVarArgsDidIPass", [_positional, *inputs]) + @c.setter + def c(self, value: str): + jsii.set(self, "c", value) - @jsii.member(jsii_name="roundTrip") - @builtins.classmethod - def round_trip(cls, _positional: jsii.Number, *, required: str, second_level: typing.Union[jsii.Number, "SecondLevelStruct"], optional: typing.Optional[str]=None) -> "TopLevelStruct": - """ - :param _positional: - - :param required: This is a required field. - :param second_level: A union to really stress test our serialization. - :param optional: You don't have to pass this. - """ - input = TopLevelStruct(required=required, second_level=second_level, optional=optional) + @builtins.property + @jsii.member(jsii_name="e") + def e(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "e") - return jsii.sinvoke(cls, "roundTrip", [_positional, input]) + @e.setter + def e(self, value: str): + jsii.set(self, "e", value) -class StructUnionConsumer(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.StructUnionConsumer"): - """ - stability - :stability: experimental - """ - @jsii.member(jsii_name="isStructA") - @builtins.classmethod - def is_struct_a(cls, struct: typing.Union["StructA", "StructB"]) -> bool: - """ - :param struct: - + @jsii.implements(IInterfaceWithProperties) + class ClassWithPrivateConstructorAndAutomaticProperties(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ClassWithPrivateConstructorAndAutomaticProperties"): + """Class that implements interface properties automatically, but using a private constructor. stability :stability: experimental """ - return jsii.sinvoke(cls, "isStructA", [struct]) + @jsii.member(jsii_name="create") + @builtins.classmethod + def create(cls, read_only_string: str, read_write_string: str) -> "ClassWithPrivateConstructorAndAutomaticProperties": + """ + :param read_only_string: - + :param read_write_string: - - @jsii.member(jsii_name="isStructB") - @builtins.classmethod - def is_struct_b(cls, struct: typing.Union["StructA", "StructB"]) -> bool: - """ - :param struct: - + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "create", [read_only_string, read_write_string]) - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "isStructB", [struct]) + @builtins.property + @jsii.member(jsii_name="readOnlyString") + def read_only_string(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "readOnlyString") + @builtins.property + @jsii.member(jsii_name="readWriteString") + def read_write_string(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "readWriteString") -@jsii.data_type(jsii_type="jsii-calc.StructWithJavaReservedWords", jsii_struct_bases=[], name_mapping={'default': 'default', 'assert_': 'assert', 'result': 'result', 'that': 'that'}) -class StructWithJavaReservedWords(): - def __init__(self, *, default: str, assert_: typing.Optional[str]=None, result: typing.Optional[str]=None, that: typing.Optional[str]=None): - """ - :param default: - :param assert_: - :param result: - :param that: + @read_write_string.setter + def read_write_string(self, value: str): + jsii.set(self, "readWriteString", value) - stability - :stability: experimental - """ - self._values = { - 'default': default, - } - if assert_ is not None: self._values["assert_"] = assert_ - if result is not None: self._values["result"] = result - if that is not None: self._values["that"] = that - @builtins.property - def default(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('default') + @jsii.interface(jsii_type="jsii-calc.compliance.IInterfaceThatShouldNotBeADataType") + class IInterfaceThatShouldNotBeADataType(IInterfaceWithMethods, jsii.compat.Protocol): + """Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype. - @builtins.property - def assert_(self) -> typing.Optional[str]: - """ stability :stability: experimental """ - return self._values.get('assert_') + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IInterfaceThatShouldNotBeADataTypeProxy + + @builtins.property + @jsii.member(jsii_name="otherValue") + def other_value(self) -> str: + """ + stability + :stability: experimental + """ + ... + + + class _IInterfaceThatShouldNotBeADataTypeProxy(jsii.proxy_for(IInterfaceWithMethods)): + """Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype. - @builtins.property - def result(self) -> typing.Optional[str]: - """ stability :stability: experimental """ - return self._values.get('result') + __jsii_type__ = "jsii-calc.compliance.IInterfaceThatShouldNotBeADataType" + @builtins.property + @jsii.member(jsii_name="otherValue") + def other_value(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "otherValue") - @builtins.property - def that(self) -> typing.Optional[str]: + + @jsii.implements(IPublicInterface2) + class InbetweenClass(PublicClass, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.InbetweenClass"): """ stability :stability: experimental """ - return self._values.get('that') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) + def __init__(self) -> None: + jsii.create(InbetweenClass, self, []) - def __repr__(self) -> str: - return 'StructWithJavaReservedWords(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + @jsii.member(jsii_name="ciao") + def ciao(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "ciao", []) -@jsii.data_type(jsii_type="jsii-calc.SupportsNiceJavaBuilderProps", jsii_struct_bases=[], name_mapping={'bar': 'bar', 'id': 'id'}) -class SupportsNiceJavaBuilderProps(): - def __init__(self, *, bar: jsii.Number, id: typing.Optional[str]=None): + class SupportsNiceJavaBuilder(SupportsNiceJavaBuilderWithRequiredProps, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.SupportsNiceJavaBuilder"): """ - :param bar: Some number, like 42. - :param id: An ``id`` field here is terrible API design, because the constructor of ``SupportsNiceJavaBuilder`` already has a parameter named ``id``. But here we are, doing it like we didn't care. - stability :stability: experimental """ - self._values = { - 'bar': bar, - } - if id is not None: self._values["id"] = id + def __init__(self, id: jsii.Number, default_bar: typing.Optional[jsii.Number]=None, props: typing.Optional["SupportsNiceJavaBuilderProps"]=None, *rest: str) -> None: + """ + :param id: some identifier. + :param default_bar: the default value of ``bar``. + :param props: some props once can provide. + :param rest: a variadic continuation. - @builtins.property - def bar(self) -> jsii.Number: - """Some number, like 42. + stability + :stability: experimental + """ + jsii.create(SupportsNiceJavaBuilder, self, [id, default_bar, props, *rest]) - stability - :stability: experimental - """ - return self._values.get('bar') + @builtins.property + @jsii.member(jsii_name="id") + def id(self) -> jsii.Number: + """some identifier. + + stability + :stability: experimental + """ + return jsii.get(self, "id") + + @builtins.property + @jsii.member(jsii_name="rest") + def rest(self) -> typing.List[str]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "rest") - @builtins.property - def id(self) -> typing.Optional[str]: - """An ``id`` field here is terrible API design, because the constructor of ``SupportsNiceJavaBuilder`` already has a parameter named ``id``. - But here we are, doing it like we didn't care. + +class composition: + class CompositeOperation(scope.jsii_calc_lib.Operation, metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.composition.CompositeOperation"): + """Abstract operation composed from an expression of other operations. stability :stability: experimental """ - return self._values.get('id') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) + @builtins.staticmethod + def __jsii_proxy_class__(): + return _CompositeOperationProxy - def __repr__(self) -> str: - return 'SupportsNiceJavaBuilderProps(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + def __init__(self) -> None: + jsii.create(CompositeOperation, self, []) + @jsii.member(jsii_name="toString") + def to_string(self) -> str: + """String representation of the value. -class SupportsNiceJavaBuilderWithRequiredProps(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SupportsNiceJavaBuilderWithRequiredProps"): - """We can generate fancy builders in Java for classes which take a mix of positional & struct parameters. + stability + :stability: experimental + """ + return jsii.invoke(self, "toString", []) - stability - :stability: experimental - """ - def __init__(self, id_: jsii.Number, *, bar: jsii.Number, id: typing.Optional[str]=None) -> None: - """ - :param id_: some identifier of your choice. - :param bar: Some number, like 42. - :param id: An ``id`` field here is terrible API design, because the constructor of ``SupportsNiceJavaBuilder`` already has a parameter named ``id``. But here we are, doing it like we didn't care. + @builtins.property + @jsii.member(jsii_name="expression") + @abc.abstractmethod + def expression(self) -> scope.jsii_calc_lib.Value: + """The expression that this operation consists of. - stability - :stability: experimental - """ - props = SupportsNiceJavaBuilderProps(bar=bar, id=id) + Must be implemented by derived classes. - jsii.create(SupportsNiceJavaBuilderWithRequiredProps, self, [id_, props]) + stability + :stability: experimental + """ + ... - @builtins.property - @jsii.member(jsii_name="bar") - def bar(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "bar") + @builtins.property + @jsii.member(jsii_name="value") + def value(self) -> jsii.Number: + """The value. - @builtins.property - @jsii.member(jsii_name="id") - def id(self) -> jsii.Number: - """some identifier of your choice. + stability + :stability: experimental + """ + return jsii.get(self, "value") - stability - :stability: experimental - """ - return jsii.get(self, "id") + @builtins.property + @jsii.member(jsii_name="decorationPostfixes") + def decoration_postfixes(self) -> typing.List[str]: + """A set of postfixes to include in a decorated .toString(). - @builtins.property - @jsii.member(jsii_name="propId") - def prop_id(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "propId") + stability + :stability: experimental + """ + return jsii.get(self, "decorationPostfixes") + @decoration_postfixes.setter + def decoration_postfixes(self, value: typing.List[str]): + jsii.set(self, "decorationPostfixes", value) -class SupportsNiceJavaBuilder(SupportsNiceJavaBuilderWithRequiredProps, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SupportsNiceJavaBuilder"): - """ - stability - :stability: experimental - """ - def __init__(self, id: jsii.Number, default_bar: typing.Optional[jsii.Number]=None, props: typing.Optional["SupportsNiceJavaBuilderProps"]=None, *rest: str) -> None: - """ - :param id: some identifier. - :param default_bar: the default value of ``bar``. - :param props: some props once can provide. - :param rest: a variadic continuation. + @builtins.property + @jsii.member(jsii_name="decorationPrefixes") + def decoration_prefixes(self) -> typing.List[str]: + """A set of prefixes to include in a decorated .toString(). - stability - :stability: experimental - """ - jsii.create(SupportsNiceJavaBuilder, self, [id, default_bar, props, *rest]) + stability + :stability: experimental + """ + return jsii.get(self, "decorationPrefixes") - @builtins.property - @jsii.member(jsii_name="id") - def id(self) -> jsii.Number: - """some identifier. + @decoration_prefixes.setter + def decoration_prefixes(self, value: typing.List[str]): + jsii.set(self, "decorationPrefixes", value) - stability - :stability: experimental - """ - return jsii.get(self, "id") + @builtins.property + @jsii.member(jsii_name="stringStyle") + def string_style(self) -> "CompositionStringStyle": + """The .toString() style. - @builtins.property - @jsii.member(jsii_name="rest") - def rest(self) -> typing.List[str]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "rest") + stability + :stability: experimental + """ + return jsii.get(self, "stringStyle") + @string_style.setter + def string_style(self, value: "CompositionStringStyle"): + jsii.set(self, "stringStyle", value) -class SyncVirtualMethods(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SyncVirtualMethods"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(SyncVirtualMethods, self, []) + @jsii.enum(jsii_type="jsii-calc.composition.CompositeOperation.CompositionStringStyle") + class CompositionStringStyle(enum.Enum): + """Style of .toString() output for CompositeOperation. - @jsii.member(jsii_name="callerIsAsync") - def caller_is_async(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.ainvoke(self, "callerIsAsync", []) + stability + :stability: experimental + """ + NORMAL = "NORMAL" + """Normal string expression. - @jsii.member(jsii_name="callerIsMethod") - def caller_is_method(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "callerIsMethod", []) + stability + :stability: experimental + """ + DECORATED = "DECORATED" + """Decorated string expression. - @jsii.member(jsii_name="modifyOtherProperty") - def modify_other_property(self, value: str) -> None: - """ - :param value: - + stability + :stability: experimental + """ - stability - :stability: experimental - """ - return jsii.invoke(self, "modifyOtherProperty", [value]) - @jsii.member(jsii_name="modifyValueOfTheProperty") - def modify_value_of_the_property(self, value: str) -> None: - """ - :param value: - + class _CompositeOperationProxy(CompositeOperation, jsii.proxy_for(scope.jsii_calc_lib.Operation)): + @builtins.property + @jsii.member(jsii_name="expression") + def expression(self) -> scope.jsii_calc_lib.Value: + """The expression that this operation consists of. - stability - :stability: experimental - """ - return jsii.invoke(self, "modifyValueOfTheProperty", [value]) + Must be implemented by derived classes. - @jsii.member(jsii_name="readA") - def read_a(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "readA", []) + stability + :stability: experimental + """ + return jsii.get(self, "expression") - @jsii.member(jsii_name="retrieveOtherProperty") - def retrieve_other_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "retrieveOtherProperty", []) - @jsii.member(jsii_name="retrieveReadOnlyProperty") - def retrieve_read_only_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "retrieveReadOnlyProperty", []) - @jsii.member(jsii_name="retrieveValueOfTheProperty") - def retrieve_value_of_the_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "retrieveValueOfTheProperty", []) +class documented: + class DocumentedClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.documented.DocumentedClass"): + """Here's the first line of the TSDoc comment. - @jsii.member(jsii_name="virtualMethod") - def virtual_method(self, n: jsii.Number) -> jsii.Number: - """ - :param n: - + This is the meat of the TSDoc comment. It may contain + multiple lines and multiple paragraphs. - stability - :stability: experimental + Multiple paragraphs are separated by an empty line. """ - return jsii.invoke(self, "virtualMethod", [n]) + def __init__(self) -> None: + jsii.create(DocumentedClass, self, []) - @jsii.member(jsii_name="writeA") - def write_a(self, value: jsii.Number) -> None: - """ - :param value: - + @jsii.member(jsii_name="greet") + def greet(self, *, name: typing.Optional[str]=None) -> jsii.Number: + """Greet the indicated person. - stability - :stability: experimental - """ - return jsii.invoke(self, "writeA", [value]) + This will print out a friendly greeting intended for + the indicated person. - @builtins.property - @jsii.member(jsii_name="readonlyProperty") - def readonly_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "readonlyProperty") + :param name: The name of the greetee. Default: world - @builtins.property - @jsii.member(jsii_name="a") - def a(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "a") + return + :return: A number that everyone knows very well + """ + greetee = Greetee(name=name) - @a.setter - def a(self, value: jsii.Number): - jsii.set(self, "a", value) + return jsii.invoke(self, "greet", [greetee]) - @builtins.property - @jsii.member(jsii_name="callerIsProperty") - def caller_is_property(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "callerIsProperty") + @jsii.member(jsii_name="hola") + def hola(self) -> None: + """Say ¡Hola! - @caller_is_property.setter - def caller_is_property(self, value: jsii.Number): - jsii.set(self, "callerIsProperty", value) + stability + :stability: experimental + """ + return jsii.invoke(self, "hola", []) - @builtins.property - @jsii.member(jsii_name="otherProperty") - def other_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "otherProperty") - @other_property.setter - def other_property(self, value: str): - jsii.set(self, "otherProperty", value) + @jsii.data_type(jsii_type="jsii-calc.documented.Greetee", jsii_struct_bases=[], name_mapping={'name': 'name'}) + class Greetee(): + def __init__(self, *, name: typing.Optional[str]=None): + """These are some arguments you can pass to a method. - @builtins.property - @jsii.member(jsii_name="theProperty") - def the_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "theProperty") + :param name: The name of the greetee. Default: world - @the_property.setter - def the_property(self, value: str): - jsii.set(self, "theProperty", value) + stability + :stability: experimental + """ + self._values = { + } + if name is not None: self._values["name"] = name - @builtins.property - @jsii.member(jsii_name="valueOfOtherProperty") - def value_of_other_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "valueOfOtherProperty") + @builtins.property + def name(self) -> typing.Optional[str]: + """The name of the greetee. - @value_of_other_property.setter - def value_of_other_property(self, value: str): - jsii.set(self, "valueOfOtherProperty", value) + default + :default: world + stability + :stability: experimental + """ + return self._values.get('name') -class Thrower(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Thrower"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(Thrower, self, []) + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values - @jsii.member(jsii_name="throwError") - def throw_error(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "throwError", []) + def __ne__(self, rhs) -> bool: + return not (rhs == self) + def __repr__(self) -> str: + return 'Greetee(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) -@jsii.data_type(jsii_type="jsii-calc.TopLevelStruct", jsii_struct_bases=[], name_mapping={'required': 'required', 'second_level': 'secondLevel', 'optional': 'optional'}) -class TopLevelStruct(): - def __init__(self, *, required: str, second_level: typing.Union[jsii.Number, "SecondLevelStruct"], optional: typing.Optional[str]=None): - """ - :param required: This is a required field. - :param second_level: A union to really stress test our serialization. - :param optional: You don't have to pass this. - stability - :stability: experimental - """ - self._values = { - 'required': required, - 'second_level': second_level, - } - if optional is not None: self._values["optional"] = optional + class Old(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.documented.Old"): + """Old class. - @builtins.property - def required(self) -> str: - """This is a required field. + deprecated + :deprecated: Use the new class stability - :stability: experimental + :stability: deprecated """ - return self._values.get('required') + def __init__(self) -> None: + jsii.create(Old, self, []) - @builtins.property - def second_level(self) -> typing.Union[jsii.Number, "SecondLevelStruct"]: - """A union to really stress test our serialization. + @jsii.member(jsii_name="doAThing") + def do_a_thing(self) -> None: + """Doo wop that thing. - stability - :stability: experimental - """ - return self._values.get('second_level') + stability + :stability: deprecated + """ + return jsii.invoke(self, "doAThing", []) - @builtins.property - def optional(self) -> typing.Optional[str]: - """You don't have to pass this. + +class erasure_tests: + @jsii.interface(jsii_type="jsii-calc.erasureTests.IJSII417Derived") + class IJSII417Derived(jsii_calc.erasureTests.IJSII417PublicBaseOfBase, jsii.compat.Protocol): + """ stability :stability: experimental """ - return self._values.get('optional') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IJSII417DerivedProxy - def __repr__(self) -> str: - return 'TopLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + @builtins.property + @jsii.member(jsii_name="property") + def property(self) -> str: + """ + stability + :stability: experimental + """ + ... + @jsii.member(jsii_name="bar") + def bar(self) -> None: + """ + stability + :stability: experimental + """ + ... -class UnaryOperation(scope.jsii_calc_lib.Operation, metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.UnaryOperation"): - """An operation on a single operand. + @jsii.member(jsii_name="baz") + def baz(self) -> None: + """ + stability + :stability: experimental + """ + ... - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _UnaryOperationProxy - def __init__(self, operand: scope.jsii_calc_lib.Value) -> None: + class _IJSII417DerivedProxy(jsii.proxy_for(jsii_calc.erasureTests.IJSII417PublicBaseOfBase)): """ - :param operand: - - stability :stability: experimental """ - jsii.create(UnaryOperation, self, [operand]) + __jsii_type__ = "jsii-calc.erasureTests.IJSII417Derived" + @builtins.property + @jsii.member(jsii_name="property") + def property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "property") - @builtins.property - @jsii.member(jsii_name="operand") - def operand(self) -> scope.jsii_calc_lib.Value: + @jsii.member(jsii_name="bar") + def bar(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "bar", []) + + @jsii.member(jsii_name="baz") + def baz(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "baz", []) + + + @jsii.interface(jsii_type="jsii-calc.erasureTests.IJSII417PublicBaseOfBase") + class IJSII417PublicBaseOfBase(jsii.compat.Protocol): """ stability :stability: experimental """ - return jsii.get(self, "operand") + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IJSII417PublicBaseOfBaseProxy + @builtins.property + @jsii.member(jsii_name="hasRoot") + def has_root(self) -> bool: + """ + stability + :stability: experimental + """ + ... -class _UnaryOperationProxy(UnaryOperation, jsii.proxy_for(scope.jsii_calc_lib.Operation)): - pass + @jsii.member(jsii_name="foo") + def foo(self) -> None: + """ + stability + :stability: experimental + """ + ... -@jsii.implements(IFriendlier) -class Negate(UnaryOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Negate"): - """The negation operation ("-value"). - stability - :stability: experimental - """ - def __init__(self, operand: scope.jsii_calc_lib.Value) -> None: + class _IJSII417PublicBaseOfBaseProxy(): """ - :param operand: - - stability :stability: experimental """ - jsii.create(Negate, self, [operand]) - - @jsii.member(jsii_name="farewell") - def farewell(self) -> str: - """Say farewell. + __jsii_type__ = "jsii-calc.erasureTests.IJSII417PublicBaseOfBase" + @builtins.property + @jsii.member(jsii_name="hasRoot") + def has_root(self) -> bool: + """ + stability + :stability: experimental + """ + return jsii.get(self, "hasRoot") - stability - :stability: experimental - """ - return jsii.invoke(self, "farewell", []) + @jsii.member(jsii_name="foo") + def foo(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "foo", []) - @jsii.member(jsii_name="goodbye") - def goodbye(self) -> str: - """Say goodbye. + @jsii.interface(jsii_type="jsii-calc.erasureTests.IJsii487External") + class IJsii487External(jsii.compat.Protocol): + """ stability :stability: experimental """ - return jsii.invoke(self, "goodbye", []) + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IJsii487ExternalProxy - @jsii.member(jsii_name="hello") - def hello(self) -> str: - """Say hello! + pass + class _IJsii487ExternalProxy(): + """ stability :stability: experimental """ - return jsii.invoke(self, "hello", []) - - @jsii.member(jsii_name="toString") - def to_string(self) -> str: - """String representation of the value. + __jsii_type__ = "jsii-calc.erasureTests.IJsii487External" + pass + @jsii.interface(jsii_type="jsii-calc.erasureTests.IJsii487External2") + class IJsii487External2(jsii.compat.Protocol): + """ stability :stability: experimental """ - return jsii.invoke(self, "toString", []) + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IJsii487External2Proxy - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> jsii.Number: - """The value. + pass + class _IJsii487External2Proxy(): + """ stability :stability: experimental """ - return jsii.get(self, "value") - + __jsii_type__ = "jsii-calc.erasureTests.IJsii487External2" + pass -@jsii.data_type(jsii_type="jsii-calc.UnionProperties", jsii_struct_bases=[], name_mapping={'bar': 'bar', 'foo': 'foo'}) -class UnionProperties(): - def __init__(self, *, bar: typing.Union[str, jsii.Number, "AllTypes"], foo: typing.Optional[typing.Union[typing.Optional[str], typing.Optional[jsii.Number]]]=None): + @jsii.interface(jsii_type="jsii-calc.erasureTests.IJsii496") + class IJsii496(jsii.compat.Protocol): """ - :param bar: - :param foo: - stability :stability: experimental """ - self._values = { - 'bar': bar, - } - if foo is not None: self._values["foo"] = foo + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IJsii496Proxy - @builtins.property - def bar(self) -> typing.Union[str, jsii.Number, "AllTypes"]: + pass + + class _IJsii496Proxy(): """ stability :stability: experimental """ - return self._values.get('bar') + __jsii_type__ = "jsii-calc.erasureTests.IJsii496" + pass - @builtins.property - def foo(self) -> typing.Optional[typing.Union[typing.Optional[str], typing.Optional[jsii.Number]]]: + class JSII417Derived(jsii_calc.erasureTests.JSII417PublicBaseOfBase, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.erasureTests.JSII417Derived"): """ stability :stability: experimental """ - return self._values.get('foo') + def __init__(self, property: str) -> None: + """ + :param property: - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values + stability + :stability: experimental + """ + jsii.create(jsii_calc.erasureTests.JSII417Derived, self, [property]) - def __ne__(self, rhs) -> bool: - return not (rhs == self) + @jsii.member(jsii_name="bar") + def bar(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "bar", []) - def __repr__(self) -> str: - return 'UnionProperties(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + @jsii.member(jsii_name="baz") + def baz(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "baz", []) + @builtins.property + @jsii.member(jsii_name="property") + def _property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "property") -class UseBundledDependency(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.UseBundledDependency"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(UseBundledDependency, self, []) - @jsii.member(jsii_name="value") - def value(self) -> typing.Any: + class JSII417PublicBaseOfBase(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.erasureTests.JSII417PublicBaseOfBase"): """ stability :stability: experimental """ - return jsii.invoke(self, "value", []) + def __init__(self) -> None: + jsii.create(jsii_calc.erasureTests.JSII417PublicBaseOfBase, self, []) + @jsii.member(jsii_name="makeInstance") + @builtins.classmethod + def make_instance(cls) -> jsii_calc.erasureTests.JSII417PublicBaseOfBase: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "makeInstance", []) -class UseCalcBase(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.UseCalcBase"): - """Depend on a type from jsii-calc-base as a test for awslabs/jsii#128. + @jsii.member(jsii_name="foo") + def foo(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "foo", []) - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(UseCalcBase, self, []) + @builtins.property + @jsii.member(jsii_name="hasRoot") + def has_root(self) -> bool: + """ + stability + :stability: experimental + """ + return jsii.get(self, "hasRoot") - @jsii.member(jsii_name="hello") - def hello(self) -> scope.jsii_calc_base.Base: + + @jsii.implements(jsii_calc.erasureTests.IJsii487External2, jsii_calc.erasureTests.IJsii487External) + class Jsii487Derived(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.erasureTests.Jsii487Derived"): """ stability :stability: experimental """ - return jsii.invoke(self, "hello", []) + def __init__(self) -> None: + jsii.create(jsii_calc.erasureTests.Jsii487Derived, self, []) -class UsesInterfaceWithProperties(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.UsesInterfaceWithProperties"): - """ - stability - :stability: experimental - """ - def __init__(self, obj: "IInterfaceWithProperties") -> None: + @jsii.implements(jsii_calc.erasureTests.IJsii496) + class Jsii496Derived(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.erasureTests.Jsii496Derived"): """ - :param obj: - - stability :stability: experimental """ - jsii.create(UsesInterfaceWithProperties, self, [obj]) + def __init__(self) -> None: + jsii.create(jsii_calc.erasureTests.Jsii496Derived, self, []) + - @jsii.member(jsii_name="justRead") - def just_read(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "justRead", []) - @jsii.member(jsii_name="readStringAndNumber") - def read_string_and_number(self, ext: "IInterfaceWithPropertiesExtension") -> str: +class stability_annotations: + class DeprecatedClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.stability_annotations.DeprecatedClass"): """ - :param ext: - + deprecated + :deprecated: a pretty boring class stability - :stability: experimental + :stability: deprecated """ - return jsii.invoke(self, "readStringAndNumber", [ext]) + def __init__(self, readonly_string: str, mutable_number: typing.Optional[jsii.Number]=None) -> None: + """ + :param readonly_string: - + :param mutable_number: - - @jsii.member(jsii_name="writeAndRead") - def write_and_read(self, value: str) -> str: - """ - :param value: - + deprecated + :deprecated: this constructor is "just" okay - stability - :stability: experimental - """ - return jsii.invoke(self, "writeAndRead", [value]) + stability + :stability: deprecated + """ + jsii.create(DeprecatedClass, self, [readonly_string, mutable_number]) - @builtins.property - @jsii.member(jsii_name="obj") - def obj(self) -> "IInterfaceWithProperties": - """ - stability - :stability: experimental - """ - return jsii.get(self, "obj") + @jsii.member(jsii_name="method") + def method(self) -> None: + """ + deprecated + :deprecated: it was a bad idea + stability + :stability: deprecated + """ + return jsii.invoke(self, "method", []) -class VariadicInvoker(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.VariadicInvoker"): - """ - stability - :stability: experimental - """ - def __init__(self, method: "VariadicMethod") -> None: - """ - :param method: - + @builtins.property + @jsii.member(jsii_name="readonlyProperty") + def readonly_property(self) -> str: + """ + deprecated + :deprecated: this is not always "wazoo", be ready to be disappointed - stability - :stability: experimental - """ - jsii.create(VariadicInvoker, self, [method]) + stability + :stability: deprecated + """ + return jsii.get(self, "readonlyProperty") - @jsii.member(jsii_name="asArray") - def as_array(self, *values: jsii.Number) -> typing.List[jsii.Number]: - """ - :param values: - + @builtins.property + @jsii.member(jsii_name="mutableProperty") + def mutable_property(self) -> typing.Optional[jsii.Number]: + """ + deprecated + :deprecated: shouldn't have been mutable - stability - :stability: experimental - """ - return jsii.invoke(self, "asArray", [*values]) + stability + :stability: deprecated + """ + return jsii.get(self, "mutableProperty") + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]): + jsii.set(self, "mutableProperty", value) -class VariadicMethod(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.VariadicMethod"): - """ - stability - :stability: experimental - """ - def __init__(self, *prefix: jsii.Number) -> None: + + @jsii.enum(jsii_type="jsii-calc.stability_annotations.DeprecatedEnum") + class DeprecatedEnum(enum.Enum): """ - :param prefix: a prefix that will be use for all values returned by ``#asArray``. + deprecated + :deprecated: your deprecated selection of bad options stability - :stability: experimental + :stability: deprecated """ - jsii.create(VariadicMethod, self, [*prefix]) - - @jsii.member(jsii_name="asArray") - def as_array(self, first: jsii.Number, *others: jsii.Number) -> typing.List[jsii.Number]: + OPTION_A = "OPTION_A" """ - :param first: the first element of the array to be returned (after the ``prefix`` provided at construction time). - :param others: other elements to be included in the array. + deprecated + :deprecated: option A is not great stability - :stability: experimental + :stability: deprecated """ - return jsii.invoke(self, "asArray", [first, *others]) - - -class VirtualMethodPlayground(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.VirtualMethodPlayground"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(VirtualMethodPlayground, self, []) - - @jsii.member(jsii_name="overrideMeAsync") - def override_me_async(self, index: jsii.Number) -> jsii.Number: + OPTION_B = "OPTION_B" """ - :param index: - + deprecated + :deprecated: option B is kinda bad, too stability - :stability: experimental + :stability: deprecated """ - return jsii.ainvoke(self, "overrideMeAsync", [index]) - @jsii.member(jsii_name="overrideMeSync") - def override_me_sync(self, index: jsii.Number) -> jsii.Number: - """ - :param index: - + @jsii.data_type(jsii_type="jsii-calc.stability_annotations.DeprecatedStruct", jsii_struct_bases=[], name_mapping={'readonly_property': 'readonlyProperty'}) + class DeprecatedStruct(): + def __init__(self, *, readonly_property: str): + """ + :param readonly_property: - stability - :stability: experimental - """ - return jsii.invoke(self, "overrideMeSync", [index]) + deprecated + :deprecated: it just wraps a string - @jsii.member(jsii_name="parallelSumAsync") - def parallel_sum_async(self, count: jsii.Number) -> jsii.Number: - """ - :param count: - + stability + :stability: deprecated + """ + self._values = { + 'readonly_property': readonly_property, + } - stability - :stability: experimental - """ - return jsii.ainvoke(self, "parallelSumAsync", [count]) + @builtins.property + def readonly_property(self) -> str: + """ + deprecated + :deprecated: well, yeah - @jsii.member(jsii_name="serialSumAsync") - def serial_sum_async(self, count: jsii.Number) -> jsii.Number: - """ - :param count: - + stability + :stability: deprecated + """ + return self._values.get('readonly_property') - stability - :stability: experimental - """ - return jsii.ainvoke(self, "serialSumAsync", [count]) + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values - @jsii.member(jsii_name="sumSync") - def sum_sync(self, count: jsii.Number) -> jsii.Number: - """ - :param count: - + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'DeprecatedStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + class ExperimentalClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.stability_annotations.ExperimentalClass"): + """ stability :stability: experimental """ - return jsii.invoke(self, "sumSync", [count]) + def __init__(self, readonly_string: str, mutable_number: typing.Optional[jsii.Number]=None) -> None: + """ + :param readonly_string: - + :param mutable_number: - + + stability + :stability: experimental + """ + jsii.create(ExperimentalClass, self, [readonly_string, mutable_number]) + @jsii.member(jsii_name="method") + def method(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "method", []) -class VoidCallback(metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.VoidCallback"): - """This test is used to validate the runtimes can return correctly from a void callback. + @builtins.property + @jsii.member(jsii_name="readonlyProperty") + def readonly_property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "readonlyProperty") - - Implement ``overrideMe`` (method does not have to do anything). - - Invoke ``callMe`` - - Verify that ``methodWasCalled`` is ``true``. + @builtins.property + @jsii.member(jsii_name="mutableProperty") + def mutable_property(self) -> typing.Optional[jsii.Number]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "mutableProperty") - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _VoidCallbackProxy + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]): + jsii.set(self, "mutableProperty", value) - def __init__(self) -> None: - jsii.create(VoidCallback, self, []) - @jsii.member(jsii_name="callMe") - def call_me(self) -> None: + @jsii.enum(jsii_type="jsii-calc.stability_annotations.ExperimentalEnum") + class ExperimentalEnum(enum.Enum): """ stability :stability: experimental """ - return jsii.invoke(self, "callMe", []) - - @jsii.member(jsii_name="overrideMe") - @abc.abstractmethod - def _override_me(self) -> None: + OPTION_A = "OPTION_A" """ stability :stability: experimental """ - ... - - @builtins.property - @jsii.member(jsii_name="methodWasCalled") - def method_was_called(self) -> bool: + OPTION_B = "OPTION_B" """ stability :stability: experimental """ - return jsii.get(self, "methodWasCalled") + + @jsii.data_type(jsii_type="jsii-calc.stability_annotations.ExperimentalStruct", jsii_struct_bases=[], name_mapping={'readonly_property': 'readonlyProperty'}) + class ExperimentalStruct(): + def __init__(self, *, readonly_property: str): + """ + :param readonly_property: + + stability + :stability: experimental + """ + self._values = { + 'readonly_property': readonly_property, + } + + @builtins.property + def readonly_property(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('readonly_property') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'ExperimentalStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) -class _VoidCallbackProxy(VoidCallback): - @jsii.member(jsii_name="overrideMe") - def _override_me(self) -> None: + @jsii.interface(jsii_type="jsii-calc.stability_annotations.IDeprecatedInterface") + class IDeprecatedInterface(jsii.compat.Protocol): """ + deprecated + :deprecated: useless interface + stability - :stability: experimental + :stability: deprecated """ - return jsii.invoke(self, "overrideMe", []) + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IDeprecatedInterfaceProxy + + @builtins.property + @jsii.member(jsii_name="mutableProperty") + def mutable_property(self) -> typing.Optional[jsii.Number]: + """ + deprecated + :deprecated: could be better + + stability + :stability: deprecated + """ + ... + + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]): + ... + @jsii.member(jsii_name="method") + def method(self) -> None: + """ + deprecated + :deprecated: services no purpose -class WithPrivatePropertyInConstructor(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.WithPrivatePropertyInConstructor"): - """Verifies that private property declarations in constructor arguments are hidden. + stability + :stability: deprecated + """ + ... - stability - :stability: experimental - """ - def __init__(self, private_field: typing.Optional[str]=None) -> None: - """ - :param private_field: - - stability - :stability: experimental + class _IDeprecatedInterfaceProxy(): """ - jsii.create(WithPrivatePropertyInConstructor, self, [private_field]) + deprecated + :deprecated: useless interface - @builtins.property - @jsii.member(jsii_name="success") - def success(self) -> bool: - """ stability - :stability: experimental + :stability: deprecated """ - return jsii.get(self, "success") + __jsii_type__ = "jsii-calc.stability_annotations.IDeprecatedInterface" + @builtins.property + @jsii.member(jsii_name="mutableProperty") + def mutable_property(self) -> typing.Optional[jsii.Number]: + """ + deprecated + :deprecated: could be better + + stability + :stability: deprecated + """ + return jsii.get(self, "mutableProperty") + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]): + jsii.set(self, "mutableProperty", value) -class composition: - class CompositeOperation(scope.jsii_calc_lib.Operation, metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.composition.CompositeOperation"): - """Abstract operation composed from an expression of other operations. + @jsii.member(jsii_name="method") + def method(self) -> None: + """ + deprecated + :deprecated: services no purpose + + stability + :stability: deprecated + """ + return jsii.invoke(self, "method", []) + + @jsii.interface(jsii_type="jsii-calc.stability_annotations.IExperimentalInterface") + class IExperimentalInterface(jsii.compat.Protocol): + """ stability :stability: experimental """ @builtins.staticmethod def __jsii_proxy_class__(): - return _CompositeOperationProxy - - def __init__(self) -> None: - jsii.create(composition.CompositeOperation, self, []) - - @jsii.member(jsii_name="toString") - def to_string(self) -> str: - """String representation of the value. + return _IExperimentalInterfaceProxy + @builtins.property + @jsii.member(jsii_name="mutableProperty") + def mutable_property(self) -> typing.Optional[jsii.Number]: + """ stability :stability: experimental """ - return jsii.invoke(self, "toString", []) - - @builtins.property - @jsii.member(jsii_name="expression") - @abc.abstractmethod - def expression(self) -> scope.jsii_calc_lib.Value: - """The expression that this operation consists of. + ... - Must be implemented by derived classes. + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]): + ... + @jsii.member(jsii_name="method") + def method(self) -> None: + """ stability :stability: experimental """ ... - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> jsii.Number: - """The value. + class _IExperimentalInterfaceProxy(): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.stability_annotations.IExperimentalInterface" + @builtins.property + @jsii.member(jsii_name="mutableProperty") + def mutable_property(self) -> typing.Optional[jsii.Number]: + """ stability :stability: experimental """ - return jsii.get(self, "value") + return jsii.get(self, "mutableProperty") - @builtins.property - @jsii.member(jsii_name="decorationPostfixes") - def decoration_postfixes(self) -> typing.List[str]: - """A set of postfixes to include in a decorated .toString(). + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]): + jsii.set(self, "mutableProperty", value) + @jsii.member(jsii_name="method") + def method(self) -> None: + """ stability :stability: experimental """ - return jsii.get(self, "decorationPostfixes") + return jsii.invoke(self, "method", []) - @decoration_postfixes.setter - def decoration_postfixes(self, value: typing.List[str]): - jsii.set(self, "decorationPostfixes", value) + + @jsii.interface(jsii_type="jsii-calc.stability_annotations.IStableInterface") + class IStableInterface(jsii.compat.Protocol): + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IStableInterfaceProxy @builtins.property - @jsii.member(jsii_name="decorationPrefixes") - def decoration_prefixes(self) -> typing.List[str]: - """A set of prefixes to include in a decorated .toString(). + @jsii.member(jsii_name="mutableProperty") + def mutable_property(self) -> typing.Optional[jsii.Number]: + ... - stability - :stability: experimental - """ - return jsii.get(self, "decorationPrefixes") + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]): + ... - @decoration_prefixes.setter - def decoration_prefixes(self, value: typing.List[str]): - jsii.set(self, "decorationPrefixes", value) + @jsii.member(jsii_name="method") + def method(self) -> None: + ... + + class _IStableInterfaceProxy(): + __jsii_type__ = "jsii-calc.stability_annotations.IStableInterface" @builtins.property - @jsii.member(jsii_name="stringStyle") - def string_style(self) -> "CompositionStringStyle": - """The .toString() style. + @jsii.member(jsii_name="mutableProperty") + def mutable_property(self) -> typing.Optional[jsii.Number]: + return jsii.get(self, "mutableProperty") - stability - :stability: experimental - """ - return jsii.get(self, "stringStyle") + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]): + jsii.set(self, "mutableProperty", value) - @string_style.setter - def string_style(self, value: "CompositionStringStyle"): - jsii.set(self, "stringStyle", value) + @jsii.member(jsii_name="method") + def method(self) -> None: + return jsii.invoke(self, "method", []) - @jsii.enum(jsii_type="jsii-calc.composition.CompositeOperation.CompositionStringStyle") - class CompositionStringStyle(enum.Enum): - """Style of .toString() output for CompositeOperation. - stability - :stability: experimental + class StableClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.stability_annotations.StableClass"): + def __init__(self, readonly_string: str, mutable_number: typing.Optional[jsii.Number]=None) -> None: """ - NORMAL = "NORMAL" - """Normal string expression. - - stability - :stability: experimental + :param readonly_string: - + :param mutable_number: - """ - DECORATED = "DECORATED" - """Decorated string expression. + jsii.create(StableClass, self, [readonly_string, mutable_number]) - stability - :stability: experimental - """ + @jsii.member(jsii_name="method") + def method(self) -> None: + return jsii.invoke(self, "method", []) + @builtins.property + @jsii.member(jsii_name="readonlyProperty") + def readonly_property(self) -> str: + return jsii.get(self, "readonlyProperty") - class _CompositeOperationProxy(CompositeOperation, jsii.proxy_for(scope.jsii_calc_lib.Operation)): @builtins.property - @jsii.member(jsii_name="expression") - def expression(self) -> scope.jsii_calc_lib.Value: - """The expression that this operation consists of. + @jsii.member(jsii_name="mutableProperty") + def mutable_property(self) -> typing.Optional[jsii.Number]: + return jsii.get(self, "mutableProperty") - Must be implemented by derived classes. + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]): + jsii.set(self, "mutableProperty", value) - stability - :stability: experimental + + @jsii.enum(jsii_type="jsii-calc.stability_annotations.StableEnum") + class StableEnum(enum.Enum): + OPTION_A = "OPTION_A" + OPTION_B = "OPTION_B" + + @jsii.data_type(jsii_type="jsii-calc.stability_annotations.StableStruct", jsii_struct_bases=[], name_mapping={'readonly_property': 'readonlyProperty'}) + class StableStruct(): + def __init__(self, *, readonly_property: str): """ - return jsii.get(self, "expression") + :param readonly_property: + """ + self._values = { + 'readonly_property': readonly_property, + } + + @builtins.property + def readonly_property(self) -> str: + return self._values.get('readonly_property') + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'StableStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + + +class Add(BinaryOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Add"): + """The "+" binary operation. + + stability + :stability: experimental + """ + def __init__(self, lhs: scope.jsii_calc_lib.Value, rhs: scope.jsii_calc_lib.Value) -> None: + """Creates a BinaryOperation. + + :param lhs: Left-hand side operand. + :param rhs: Right-hand side operand. + + stability + :stability: experimental + """ + jsii.create(Add, self, [lhs, rhs]) + + @jsii.member(jsii_name="toString") + def to_string(self) -> str: + """String representation of the value. + + stability + :stability: experimental + """ + return jsii.invoke(self, "toString", []) + + @builtins.property + @jsii.member(jsii_name="value") + def value(self) -> jsii.Number: + """The value. + + stability + :stability: experimental + """ + return jsii.get(self, "value") class Calculator(composition.CompositeOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Calculator"): @@ -8508,6 +8433,89 @@ def union_property(self, value: typing.Optional[typing.Union[typing.Optional["Ad jsii.set(self, "unionProperty", value) +@jsii.interface(jsii_type="jsii-calc.IFriendlyRandomGenerator") +class IFriendlyRandomGenerator(IRandomNumberGenerator, scope.jsii_calc_lib.IFriendly, jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IFriendlyRandomGeneratorProxy + + pass + +class _IFriendlyRandomGeneratorProxy(jsii.proxy_for(IRandomNumberGenerator), jsii.proxy_for(scope.jsii_calc_lib.IFriendly)): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.IFriendlyRandomGenerator" + pass + +@jsii.implements(IFriendlier) +class Negate(UnaryOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Negate"): + """The negation operation ("-value"). + + stability + :stability: experimental + """ + def __init__(self, operand: scope.jsii_calc_lib.Value) -> None: + """ + :param operand: - + + stability + :stability: experimental + """ + jsii.create(Negate, self, [operand]) + + @jsii.member(jsii_name="farewell") + def farewell(self) -> str: + """Say farewell. + + stability + :stability: experimental + """ + return jsii.invoke(self, "farewell", []) + + @jsii.member(jsii_name="goodbye") + def goodbye(self) -> str: + """Say goodbye. + + stability + :stability: experimental + """ + return jsii.invoke(self, "goodbye", []) + + @jsii.member(jsii_name="hello") + def hello(self) -> str: + """Say hello! + + stability + :stability: experimental + """ + return jsii.invoke(self, "hello", []) + + @jsii.member(jsii_name="toString") + def to_string(self) -> str: + """String representation of the value. + + stability + :stability: experimental + """ + return jsii.invoke(self, "toString", []) + + @builtins.property + @jsii.member(jsii_name="value") + def value(self) -> jsii.Number: + """The value. + + stability + :stability: experimental + """ + return jsii.get(self, "value") + + class Power(composition.CompositeOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Power"): """The power operation. @@ -8598,6 +8606,6 @@ def parts(self, value: typing.List[scope.jsii_calc_lib.Value]): jsii.set(self, "parts", value) -__all__ = ["AbstractClass", "AbstractClassBase", "AbstractClassReturner", "AbstractSuite", "Add", "AllTypes", "AllTypesEnum", "AllowedMethodNames", "AmbiguousParameters", "AnonymousImplementationProvider", "AsyncVirtualMethods", "AugmentableClass", "BaseJsii976", "Bell", "BinaryOperation", "Calculator", "CalculatorProps", "ChildStruct982", "ClassThatImplementsTheInternalInterface", "ClassThatImplementsThePrivateInterface", "ClassWithCollections", "ClassWithDocs", "ClassWithJavaReservedWords", "ClassWithMutableObjectLiteralProperty", "ClassWithPrivateConstructorAndAutomaticProperties", "ConfusingToJackson", "ConfusingToJacksonStruct", "ConstructorPassesThisOut", "Constructors", "ConsumePureInterface", "ConsumerCanRingBell", "ConsumersOfThisCrazyTypeSystem", "DataRenderer", "DefaultedConstructorArgument", "Demonstrate982", "DeprecatedClass", "DeprecatedEnum", "DeprecatedStruct", "DerivedClassHasNoProperties", "DerivedStruct", "DiamondInheritanceBaseLevelStruct", "DiamondInheritanceFirstMidLevelStruct", "DiamondInheritanceSecondMidLevelStruct", "DiamondInheritanceTopLevelStruct", "DisappointingCollectionSource", "DoNotOverridePrivates", "DoNotRecognizeAnyAsOptional", "DocumentedClass", "DontComplainAboutVariadicAfterOptional", "DoubleTrouble", "EnumDispenser", "EraseUndefinedHashValues", "EraseUndefinedHashValuesOptions", "ExperimentalClass", "ExperimentalEnum", "ExperimentalStruct", "ExportedBaseClass", "ExtendsInternalInterface", "GiveMeStructs", "Greetee", "GreetingAugmenter", "IAnonymousImplementationProvider", "IAnonymouslyImplementMe", "IAnotherPublicInterface", "IBell", "IBellRinger", "IConcreteBellRinger", "IDeprecatedInterface", "IExperimentalInterface", "IExtendsPrivateInterface", "IFriendlier", "IFriendlyRandomGenerator", "IInterfaceImplementedByAbstractClass", "IInterfaceThatShouldNotBeADataType", "IInterfaceWithInternal", "IInterfaceWithMethods", "IInterfaceWithOptionalMethodArguments", "IInterfaceWithProperties", "IInterfaceWithPropertiesExtension", "IJSII417Derived", "IJSII417PublicBaseOfBase", "IJsii487External", "IJsii487External2", "IJsii496", "IMutableObjectLiteral", "INonInternalInterface", "IObjectWithProperty", "IOptionalMethod", "IPrivatelyImplemented", "IPublicInterface", "IPublicInterface2", "IRandomNumberGenerator", "IReturnJsii976", "IReturnsNumber", "IStableInterface", "IStructReturningDelegate", "ImplementInternalInterface", "Implementation", "ImplementsInterfaceWithInternal", "ImplementsInterfaceWithInternalSubclass", "ImplementsPrivateInterface", "ImplictBaseOfBase", "InbetweenClass", "InterfaceCollections", "InterfaceInNamespaceIncludesClasses", "InterfaceInNamespaceOnlyInterface", "InterfacesMaker", "JSII417Derived", "JSII417PublicBaseOfBase", "JSObjectLiteralForInterface", "JSObjectLiteralToNative", "JSObjectLiteralToNativeClass", "JavaReservedWords", "Jsii487Derived", "Jsii496Derived", "JsiiAgent", "JsonFormatter", "LoadBalancedFargateServiceProps", "MethodNamedProperty", "Multiply", "Negate", "NestedStruct", "NodeStandardLibrary", "NullShouldBeTreatedAsUndefined", "NullShouldBeTreatedAsUndefinedData", "NumberGenerator", "ObjectRefsInCollections", "ObjectWithPropertyProvider", "Old", "OptionalArgumentInvoker", "OptionalConstructorArgument", "OptionalStruct", "OptionalStructConsumer", "OverridableProtectedMember", "OverrideReturnsObject", "ParentStruct982", "PartiallyInitializedThisConsumer", "Polymorphism", "Power", "PropertyNamedProperty", "PublicClass", "PythonReservedWords", "ReferenceEnumFromScopedPackage", "ReturnsPrivateImplementationOfInterface", "RootStruct", "RootStructValidator", "RuntimeTypeChecking", "SecondLevelStruct", "SingleInstanceTwoTypes", "SingletonInt", "SingletonIntEnum", "SingletonString", "SingletonStringEnum", "SmellyStruct", "SomeTypeJsii976", "StableClass", "StableEnum", "StableStruct", "StaticContext", "Statics", "StringEnum", "StripInternal", "StructA", "StructB", "StructParameterType", "StructPassing", "StructUnionConsumer", "StructWithJavaReservedWords", "Sum", "SupportsNiceJavaBuilder", "SupportsNiceJavaBuilderProps", "SupportsNiceJavaBuilderWithRequiredProps", "SyncVirtualMethods", "Thrower", "TopLevelStruct", "UnaryOperation", "UnionProperties", "UseBundledDependency", "UseCalcBase", "UsesInterfaceWithProperties", "VariadicInvoker", "VariadicMethod", "VirtualMethodPlayground", "VoidCallback", "WithPrivatePropertyInConstructor", "__jsii_assembly__", "composition"] +__all__ = ["AbstractSuite", "Add", "BinaryOperation", "Calculator", "CalculatorProps", "IFriendlier", "IFriendlyRandomGenerator", "IRandomNumberGenerator", "MethodNamedProperty", "Multiply", "Negate", "Power", "PropertyNamedProperty", "SmellyStruct", "Sum", "UnaryOperation", "__jsii_assembly__", "compliance", "composition", "documented", "erasure_tests", "stability_annotations"] publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/_jsii/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/_jsii/__init__.py index a4986f03cf..e9d658dde9 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/_jsii/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/_jsii/__init__.py @@ -2,11 +2,11 @@ import builtins import datetime import enum +import publication import typing import jsii import jsii.compat -import publication import scope.jsii_calc_base import scope.jsii_calc_base_of_base diff --git a/packages/jsii/lib/assembler.ts b/packages/jsii/lib/assembler.ts index 843cfb8132..6229581a88 100644 --- a/packages/jsii/lib/assembler.ts +++ b/packages/jsii/lib/assembler.ts @@ -1,3 +1,4 @@ +import * as Case from 'case'; import * as colors from 'colors/safe'; import * as crypto from 'crypto'; // eslint-disable-next-line @typescript-eslint/no-require-imports @@ -32,6 +33,7 @@ export class Assembler implements Emitter { /** Map of Symbol to namespace export Symbol */ private readonly _submoduleMap = new Map(); + private readonly _submodules = new Set(); /** * @param projectInfo information about the package being assembled @@ -358,6 +360,11 @@ export class Assembler implements Emitter { const sourceModule = this._typeChecker.getSymbolAtLocation(sourceFile); // If there's no module, it's a syntax error, and tsc will have reported it for us. if (sourceModule) { + if (symbol.name !== Case.camel(symbol.name) && symbol.name !== Case.snake(symbol.name)) { + this._diagnostic(declaration, ts.DiagnosticCategory.Error, + `Submodule namespaces must be camelCased or snake_cased. Consider renaming to "${Case.camel(symbol.name)}".`); + } + this._submodules.add(symbol); this._addToSubmodule(symbol, sourceModule); } } @@ -414,11 +421,13 @@ export class Assembler implements Emitter { // (classes, interfaces, enums, modules), we need to also associate those // nested symbols to the submodule (or they won't be named correctly!) const decl = symbol.declarations?.[0]; - if (decl != null - && (ts.isClassDeclaration(decl) || ts.isInterfaceDeclaration(decl) || ts.isEnumDeclaration(decl) || ts.isModuleDeclaration(decl)) - ) { - const type = this._typeChecker.getTypeAtLocation(decl); - if (type.symbol.exports) { + if (decl != null) { + if (ts.isClassDeclaration(decl) || ts.isInterfaceDeclaration(decl) || ts.isEnumDeclaration(decl)) { + const type = this._typeChecker.getTypeAtLocation(decl); + if (type.symbol.exports) { + this._addToSubmodule(ns, symbol); + } + } else if (ts.isModuleDeclaration(decl)) { this._addToSubmodule(ns, symbol); } } @@ -465,7 +474,7 @@ export class Assembler implements Emitter { jsiiType = await this._visitEnum(this._typeChecker.getTypeAtLocation(node), context); } else if (ts.isModuleDeclaration(node)) { // export namespace name { ... } const name = node.name.getText(); - const symbol = (node as any).symbol; + const symbol = this._typeChecker.getSymbolAtLocation(node.name)!; if (LOG.isTraceEnabled()) { LOG.trace(`Entering namespace: ${colors.cyan([...context.namespace, name].join('.'))}`); } @@ -483,6 +492,31 @@ export class Assembler implements Emitter { if (!jsiiType) { return []; } + // Let's quickly verify the declaration does not collide with a submodule. Submodules get case-adjusted for each + // target language separately, so names cannot collide with case-variations. + for (const submodule of this._submodules) { + const candidates = Array.from(new Set([ + submodule.name, + Case.camel(submodule.name), + Case.pascal(submodule.name), + Case.snake(submodule.name), + ])); + const colliding = candidates.find(name => `${this.projectInfo.name}.${name}` === jsiiType!.fqn); + if (colliding != null) { + const submoduleDecl = submodule.valueDeclaration ?? submodule.declarations[0]; + this._diagnostic(node, ts.DiagnosticCategory.Error, + `Submodule "${submodule.name}" conflicts with "${jsiiType.name}". Restricted names are: ${candidates.join(', ')}`, + [{ + category: ts.DiagnosticCategory.Warning, + code: JSII_DIAGNOSTICS_CODE, + file: submoduleDecl.getSourceFile(), + length: submoduleDecl.getEnd() - submoduleDecl.getStart(), + messageText: 'This is the conflicting submodule declaration.', + start: submoduleDecl.getStart() + }]); + } + } + if (LOG.isInfoEnabled()) { LOG.info(`Registering JSII ${colors.magenta(jsiiType.kind)}: ${colors.green(jsiiType.fqn)}`); } @@ -700,7 +734,8 @@ export class Assembler implements Emitter { if (!classDecl.members) { continue; } for (const memberDecl of classDecl.members) { - const member: ts.Symbol = (memberDecl as any).symbol; + // The "??" is to get to the __constructor symbol (getSymbolAtLocation wouldn't work there...) + const member = this._typeChecker.getSymbolAtLocation(memberDecl.name!) ?? ((memberDecl as any).symbol as ts.Symbol); if (!(declaringType.symbol.getDeclarations() ?? []).find(d => d === memberDecl.parent)) { continue; diff --git a/packages/jsii/lib/validator.ts b/packages/jsii/lib/validator.ts index f29c25b386..be1bfba2c7 100644 --- a/packages/jsii/lib/validator.ts +++ b/packages/jsii/lib/validator.ts @@ -58,7 +58,7 @@ function _defaultValidations(): ValidationFunction[] { _staticConstantNamesMustUseUpperSnakeCase, _memberNamesMustNotLookLikeJavaGettersOrSetters, _allTypeReferencesAreValid, - _inehritanceDoesNotChangeContracts + _inehritanceDoesNotChangeContracts, ]; function _typeNamesMustUsePascalCase(_: Validator, assembly: spec.Assembly, diagnostic: DiagnosticEmitter) { diff --git a/packages/jsii/test/negatives/neg.submodules-cannot-have-colliding-names.ts b/packages/jsii/test/negatives/neg.submodules-cannot-have-colliding-names.ts new file mode 100644 index 0000000000..b92063f8e3 --- /dev/null +++ b/packages/jsii/test/negatives/neg.submodules-cannot-have-colliding-names.ts @@ -0,0 +1,7 @@ +///!MATCH_ERROR: Submodule "ns1" conflicts with "Ns1". + +export * as ns1 from './namespaced'; + +export class Ns1 { + private constructor() { } +} diff --git a/packages/jsii/test/negatives/neg.submodules-must-be-camel-cased.ts b/packages/jsii/test/negatives/neg.submodules-must-be-camel-cased.ts new file mode 100644 index 0000000000..0b2d93899c --- /dev/null +++ b/packages/jsii/test/negatives/neg.submodules-must-be-camel-cased.ts @@ -0,0 +1,3 @@ +///!MATCH_ERROR: Submodule namespaces must be camelCased or snake_cased. Consider renaming to "ns1" + +export * as Ns1 from './namespaced'; From bbb74063c50f04eb5108bcd6db7ce071cfd5282d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=91=A8=F0=9F=8F=BC=E2=80=8D=F0=9F=92=BB=20Romain=20M?= =?UTF-8?q?arcadier-Muller?= Date: Wed, 11 Mar 2020 15:29:48 +0100 Subject: [PATCH 04/18] Fix the python stuff --- .../python-runtime/tests/test_compliance.py | 30 +- .../@jsii/python-runtime/tests/test_python.py | 4 +- packages/jsii-pacmak/lib/targets/python.ts | 303 +- .../scope/jsii_calc_base_of_base/__init__.py | 2 +- .../jsii_calc_base_of_base/_jsii/__init__.py | 1 + .../src/scope/jsii_calc_base/__init__.py | 2 +- .../scope/jsii_calc_base/_jsii/__init__.py | 1 + .../src/scope/jsii_calc_lib/__init__.py | 2 +- .../src/scope/jsii_calc_lib/_jsii/__init__.py | 1 + .../test/expected.jsii-calc/python/setup.py | 10 +- .../python/src/jsii_calc/__init__.py | 8217 +---------------- .../python/src/jsii_calc/_jsii/__init__.py | 1 + .../src/jsii_calc/compliance/__init__.py | 6660 +++++++++++++ .../__init__.py | 51 + .../__init__.py | 73 + .../__init__.py | 51 + .../src/jsii_calc/composition/__init__.py | 142 + .../src/jsii_calc/documented/__init__.py | 115 + .../src/jsii_calc/erasure_tests/__init__.py | 295 + .../stability_annotations/__init__.py | 468 + 20 files changed, 8342 insertions(+), 8087 deletions(-) create mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/compliance/__init__.py create mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/compliance/derived_class_has_no_properties/__init__.py create mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/compliance/interface_in_namespace_includes_classes/__init__.py create mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/compliance/interface_in_namespace_only_interface/__init__.py create mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/composition/__init__.py create mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/documented/__init__.py create mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/erasure_tests/__init__.py create mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/stability_annotations/__init__.py diff --git a/packages/@jsii/python-runtime/tests/test_compliance.py b/packages/@jsii/python-runtime/tests/test_compliance.py index e09ee4d9bb..db01979ed5 100644 --- a/packages/@jsii/python-runtime/tests/test_compliance.py +++ b/packages/@jsii/python-runtime/tests/test_compliance.py @@ -9,15 +9,24 @@ from json import loads from jsii_calc import ( - AbstractClassReturner, AbstractSuite, Add, + Calculator, + IFriendlier, + IFriendlyRandomGenerator, + IRandomNumberGenerator, + Multiply, + Negate, + Power, + Sum, +) +from jsii_calc.compliance import ( + AbstractClassReturner, AllTypes, AllTypesEnum, AmbiguousParameters, AsyncVirtualMethods, Bell, - Calculator, ClassWithPrivateConstructorAndAutomaticProperties, ConfusingToJackson, ConsumerCanRingBell, @@ -31,9 +40,6 @@ GreetingAugmenter, IBellRinger, IConcreteBellRinger, - IFriendlier, - IFriendlyRandomGenerator, - IRandomNumberGenerator, InterfaceCollections, IInterfaceWithProperties, IStructReturningDelegate, @@ -41,23 +47,18 @@ JSObjectLiteralForInterface, JSObjectLiteralToNative, JsonFormatter, - Multiply, - Negate, NodeStandardLibrary, NullShouldBeTreatedAsUndefined, NumberGenerator, ObjectWithPropertyProvider, PartiallyInitializedThisConsumer, Polymorphism, - Power, PythonReservedWords, ReferenceEnumFromScopedPackage, ReturnsPrivateImplementationOfInterface, Statics, - Sum, SyncVirtualMethods, UsesInterfaceWithProperties, - composition, EraseUndefinedHashValues, EraseUndefinedHashValuesOptions, VariadicMethod, @@ -70,7 +71,10 @@ StructUnionConsumer, SomeTypeJsii976, StructParameterType, - AnonymousImplementationProvider + AnonymousImplementationProvider, +) +from jsii_calc.composition import ( + CompositeOperation ) from scope.jsii_calc_lib import IFriendly, EnumFromScopedModule, Number @@ -369,8 +373,6 @@ def test_getAndSetEnumValues(): calc.add(9) calc.pow(3) - CompositeOperation = composition.CompositeOperation - assert calc.string_style == CompositeOperation.CompositionStringStyle.NORMAL calc.string_style = CompositeOperation.CompositionStringStyle.DECORATED @@ -1046,7 +1048,7 @@ def test_return_subclass_that_implements_interface_976_raises_attributeerror_whe failed = False except AttributeError as err: failed = True - assert err.args[0] == "'+' object has no attribute 'not_a_real_method_I_swear'" + assert err.args[0] == "'+' object has no attribute 'not_a_real_method_I_swear'" assert failed def test_return_anonymous_implementation_of_interface(): diff --git a/packages/@jsii/python-runtime/tests/test_python.py b/packages/@jsii/python-runtime/tests/test_python.py index d4778f6774..965a6e18c6 100644 --- a/packages/@jsii/python-runtime/tests/test_python.py +++ b/packages/@jsii/python-runtime/tests/test_python.py @@ -17,7 +17,7 @@ def test_jsii_error(self): def test_inheritance_maintained(self): """Check that for JSII struct types we can get the inheritance tree in some way.""" # inspect.getmro() won't work because of TypedDict, but we add another annotation - bases = find_struct_bases(jsii_calc.DerivedStruct) + bases = find_struct_bases(jsii_calc.compliance.DerivedStruct) base_names = [b.__name__ for b in bases] @@ -43,4 +43,4 @@ def recurse(s): recurse(base) recurse(x) - return ret \ No newline at end of file + return ret diff --git a/packages/jsii-pacmak/lib/targets/python.ts b/packages/jsii-pacmak/lib/targets/python.ts index 96c1efd488..7121164c17 100644 --- a/packages/jsii-pacmak/lib/targets/python.ts +++ b/packages/jsii-pacmak/lib/targets/python.ts @@ -76,7 +76,7 @@ const PYTHON_KEYWORDS = [ ]; const pythonModuleNameToFilename = (name: string): string => { - return name.replace(/\./g, '/'); + return path.join(...name.split('.')); }; const toPythonIdentifier = (name: string): string => { @@ -161,7 +161,8 @@ const sortMembers = (members: PythonBase[], resolver: TypeResolver): PythonBase[ // dependencies that we haven't already sorted. while (sortable.length > 0) { for (const { member, dependsOn } of sortable) { - if (setDifference(dependsOn, seen).size === 0) { + const diff = setDifference(dependsOn, seen); + if ([...diff].find(dep => !(dep instanceof PythonModule)) == null) { sorted.push(member); seen.add(member); } @@ -169,7 +170,7 @@ const sortMembers = (members: PythonBase[], resolver: TypeResolver): PythonBase[ const leftover = sortable.filter(({ member }) => !seen.has(member)); if (leftover.length === sortable.length) { - throw new Error('Could not sort members (circular dependency?).'); + throw new Error(`Could not sort members (circular dependency?). Leftover: ${leftover.map(lo => lo.member.pythonName).join(', ')}`); } else { sortable = leftover; } @@ -182,6 +183,15 @@ interface PythonBase { readonly pythonName: string; emit(code: CodeMaker, resolver: TypeResolver, opts?: any): void; + + /** + * Determines what modules a particular sortable entity depends on. + * + * @param resolver a TypeResolver. + * + * @returns the pythonNames of modules this entity depends on. + */ + dependsOnModules(resolver: TypeResolver): Set; } interface PythonType extends PythonBase { @@ -255,6 +265,19 @@ abstract class BasePythonClassType implements PythonType, ISortableType { return dependencies; } + public dependsOnModules(resolver: TypeResolver): Set { + const result = new Set(); + const thisModule = resolver.getDefiningPythonModule(this.fqn!); + for (const base of this.bases) { + if (!spec.isNamedTypeReference(base)) { continue; } + const definingModule = resolver.getDefiningPythonModule(base); + if (thisModule !== definingModule) { + result.add(definingModule); + } + } + return result; + } + public addMember(member: PythonBase) { this.members.push(member); } @@ -295,7 +318,7 @@ abstract class BasePythonClassType implements PythonType, ISortableType { interface BaseMethodOpts { abstract?: boolean; liftedProp?: spec.InterfaceType; - parent?: spec.NamedTypeReference; + parent: spec.NamedTypeReference; } interface BaseMethodEmitOpts { @@ -314,20 +337,40 @@ abstract class BaseMethod implements PythonBase { protected readonly shouldEmitBody: boolean = true; private readonly liftedProp?: spec.InterfaceType; - private readonly parent?: spec.NamedTypeReference; + private readonly parent: spec.NamedTypeReference; public constructor(protected readonly generator: PythonGenerator, public readonly pythonName: string, private readonly jsName: string | undefined, private readonly parameters: spec.Parameter[], - private readonly returns?: spec.OptionalValue, - private readonly docs?: spec.Docs, - opts: BaseMethodOpts = {}) { + private readonly returns: spec.OptionalValue | undefined, + private readonly docs: spec.Docs | undefined, + opts: BaseMethodOpts) { this.abstract = !!opts.abstract; this.liftedProp = opts.liftedProp; this.parent = opts.parent; } + public dependsOnModules(resolver: TypeResolver) { + const result = new Set(); + const thisModule = resolver.getDefiningPythonModule(this.parent); + if (this.returns && spec.isNamedTypeReference(this.returns.type)) { + const definingModule = resolver.getDefiningPythonModule(this.returns.type); + if (thisModule !== definingModule) { + result.add(definingModule); + } + } + for (const param of this.parameters) { + if (spec.isNamedTypeReference(param.type)) { + const definingModule = resolver.getDefiningPythonModule(param.type); + if (thisModule !== definingModule) { + result.add(definingModule); + } + } + } + return result; + } + public emit(code: CodeMaker, resolver: TypeResolver, opts?: BaseMethodEmitOpts) { const { renderAbstract = true, forceEmitBody = false } = opts ?? {}; @@ -456,7 +499,7 @@ abstract class BaseMethod implements PythonBase { // We need to build up a list of properties, which are mandatory, these are the // ones we will specifiy to start with in our dictionary literal. - const liftedProps = this.getLiftedProperties(resolver).map(p => new StructField(this.generator, p)); + const liftedProps = this.getLiftedProperties(resolver).map(p => new StructField(this.generator, p, this.parent)); const assignments = liftedProps .map(p => p.pythonName) .map(v => `${v}=${v}`); @@ -518,6 +561,7 @@ abstract class BaseMethod implements PythonBase { interface BasePropertyOpts { abstract?: boolean; immutable?: boolean; + parent: spec.NamedTypeReference; } interface BasePropertyEmitOpts { @@ -535,6 +579,7 @@ abstract class BaseProperty implements PythonBase { protected readonly shouldEmitBody: boolean = true; private readonly immutable: boolean; + private readonly parent: spec.NamedTypeReference; public constructor( private readonly generator: PythonGenerator, @@ -542,7 +587,7 @@ abstract class BaseProperty implements PythonBase { private readonly jsName: string, private readonly type: spec.OptionalValue, private readonly docs: spec.Docs | undefined, - opts: BasePropertyOpts = {}) { + opts: BasePropertyOpts) { const { abstract = false, immutable = false, @@ -550,6 +595,19 @@ abstract class BaseProperty implements PythonBase { this.abstract = abstract; this.immutable = immutable; + this.parent = opts.parent; + } + + public dependsOnModules(resolver: TypeResolver) { + const result = new Set(); + const thisModule = resolver.getDefiningPythonModule(this.parent); + if (spec.isNamedTypeReference(this.type.type)) { + const definingModule = resolver.getDefiningPythonModule(this.type.type); + if (definingModule !== thisModule) { + result.add(definingModule); + } + } + return result; } public emit(code: CodeMaker, resolver: TypeResolver, opts?: BasePropertyEmitOpts) { @@ -683,7 +741,7 @@ class Struct extends BasePythonClassType { * Find all fields (inherited as well) */ private get allMembers(): StructField[] { - return this.thisInterface.allProperties.map(x => new StructField(this.generator, x.spec)); + return this.thisInterface.allProperties.map(x => new StructField(this.generator, x.spec, this.thisInterface)); } private get thisInterface() { @@ -768,7 +826,11 @@ class StructField implements PythonBase { public readonly docs?: spec.Docs; public readonly type: spec.OptionalValue; - public constructor(private readonly generator: PythonGenerator, public readonly prop: spec.Property) { + public constructor( + private readonly generator: PythonGenerator, + public readonly prop: spec.Property, + private readonly parent: spec.NamedTypeReference, + ) { this.pythonName = toPythonPropertyName(prop.name); this.jsiiName = prop.name; this.type = prop; @@ -779,6 +841,18 @@ class StructField implements PythonBase { return !!this.type.optional; } + public dependsOnModules(resolver: TypeResolver) { + const result = new Set(); + const thisModule = resolver.getDefiningPythonModule(this.parent); + if (spec.isNamedTypeReference(this.type.type)) { + const definingModule = resolver.getDefiningPythonModule(this.type.type); + if (thisModule !== definingModule) { + result.add(definingModule); + } + } + return result; + } + public isStruct(generator: PythonGenerator): boolean { return isStruct(generator.reflectAssembly.system, this.type.type); } @@ -862,6 +936,18 @@ class Class extends BasePythonClassType implements ISortableType { return dependencies; } + public dependsOnModules(resolver: TypeResolver): Set { + const result = super.dependsOnModules(resolver); + + for (const member of this.members) { + for (const dep of member.dependsOnModules(resolver)) { + result.add(dep); + } + } + + return result; + } + public emit(code: CodeMaker, resolver: TypeResolver) { // First we emit our implments decorator if (this.interfaces.length > 0) { @@ -986,25 +1072,16 @@ class EnumMember implements PythonBase { this.value = value; } + public dependsOnModules() { + return new Set(); + } + public emit(code: CodeMaker, _resolver: TypeResolver) { code.line(`${this.pythonName} = "${this.value}"`); this.generator.emitDocString(code, this.docs, { documentableItem: `enum-${this.pythonName}` }); } } -class Namespace extends BasePythonClassType { - protected boundResolver(resolver: TypeResolver): TypeResolver { - if (this.fqn == null) { - return resolver; - } - return resolver.bind(this.fqn, `.${this.pythonName}`); - } - - protected getClassParams(_resolver: TypeResolver): string[] { - return []; - } -} - interface ModuleOpts { assembly: spec.Assembly; assemblyFilename: string; @@ -1012,32 +1089,39 @@ interface ModuleOpts { package?: Package; } -class Module implements PythonType { - - public readonly pythonName: string; - public readonly fqn: string | null; - +class PythonModule implements PythonType { private readonly assembly: spec.Assembly; private readonly assemblyFilename: string; private readonly loadAssembly: boolean; - private readonly members: PythonBase[]; + private readonly members = new Array(); private readonly package?: Package; - public constructor(name: string, fqn: string | null, opts: ModuleOpts) { - this.pythonName = name; - this.fqn = fqn; - + public constructor( + public readonly pythonName: string, + public readonly fqn: string | null, + opts: ModuleOpts + ) { this.assembly = opts.assembly; this.assemblyFilename = opts.assemblyFilename; this.loadAssembly = opts.loadAssembly; this.package = opts.package; - this.members = []; } public addMember(member: PythonBase) { this.members.push(member); } + public dependsOnModules(resolver: TypeResolver) { + resolver = this.fqn ? resolver.bind(this.fqn, this.pythonName) : resolver; + const result = new Set(); + for (const mem of this.members) { + for (const dep of mem.dependsOnModules(resolver)) { + result.add(dep); + } + } + return result; + } + public emit(code: CodeMaker, resolver: TypeResolver) { this.emitModuleDocumentation(code); @@ -1061,14 +1145,17 @@ class Module implements PythonType { // Determine if we need to write out the kernel load line. if (this.loadAssembly) { code.line(); - code.line( - '__jsii_assembly__ = jsii.JSIIAssembly.load(' + - `"${this.assembly.name}", ` + - `"${this.assembly.version}", ` + - '__name__, ' + - `"${this.assemblyFilename}")` - ); - code.line(); + const params = [ + `"${this.assembly.name}"`, + `"${this.assembly.version}"`, + `"${this.assembly.targets!.python!.module}"`, + `"${this.assemblyFilename}"`, + ]; + code.line(`__jsii_assembly__ = jsii.JSIIAssembly.load(${params.join(', ')})`); + } + + code.line(); + if (this.members.length > 0) { code.line(); } @@ -1094,24 +1181,28 @@ class Module implements PythonType { * Emit the README as module docstring if this is the entry point module (it loads the assembly) */ private emitModuleDocumentation(code: CodeMaker) { - if (this.package && this.loadAssembly && this.package.convertedReadme.trim().length > 0) { + if (this.package && this.fqn === this.assembly.name && this.package.convertedReadme.trim().length > 0) { code.line('"""'); code.line(this.package.convertedReadme); code.line('"""'); } } - private emitDependencyImports(code: CodeMaker, _resolver: TypeResolver) { - const deps = Object.keys(this.assembly.dependencies ?? {}) - .map(d => this.assembly.dependencyClosure![d]!.targets!.python!.module) - .sort(); + private emitDependencyImports(code: CodeMaker, resolver: TypeResolver) { + const deps = this.dependsOnModules(resolver); - for (const [idx, moduleName] of deps.entries()) { - // If this our first dependency, add a blank line to format our imports - // slightly nicer. - if (idx === 0) { code.line(); } + // We need to make sure direct dependencies are always loaded... + for (const dep of Object.keys(this.assembly.dependencies ?? {})) { + const depConfig = this.assembly.dependencyClosure![dep]; + deps.add(depConfig.targets!.python!.module); + } - code.line(`import ${moduleName}`); + // Now actually write the import statements... + if (deps.size > 0) { + code.line(); + for (const moduleName of Array.from(deps).sort()) { + code.line(`import ${moduleName}`); + } } } } @@ -1128,23 +1219,20 @@ class Package { public readonly version: string; public readonly metadata: spec.Assembly; - private readonly modules: Map; - private readonly data: Map; + private readonly modules = new Map(); + private readonly data = new Map(); public constructor(private readonly generator: PythonGenerator, name: string, version: string, metadata: spec.Assembly) { this.name = name; this.version = version; this.metadata = metadata; - - this.modules = new Map(); - this.data = new Map(); } - public addModule(module: Module) { + public addModule(module: PythonModule) { this.modules.set(module.pythonName, module); } - public addData(module: Module, filename: string, data: string | null) { + public addData(module: PythonModule, filename: string, data: string | null) { if (!this.data.has(module.pythonName)) { this.data.set(module.pythonName, []); } @@ -1362,6 +1450,26 @@ class TypeResolver { return parent; } + public getDefiningPythonModule(typeRef: spec.NamedTypeReference | string): string { + const fqn = typeof typeRef !== 'string' ? typeRef.fqn : typeRef; + const parent = this.types.get(fqn); + + if (parent) { + let mod = parent; + while (!(mod instanceof PythonModule)) { + mod = this.getParent(mod.fqn!); + } + return mod.pythonName; + } + + const matches = /^([^.]+)\./.exec(fqn); + if (matches == null || !Array.isArray(matches)) { + throw new Error(`Invalid FQN: ${fqn}`); + } + const [, assm] = matches; + return this.findModule(assm).targets!.python!.module; + } + public getType(typeRef: spec.NamedTypeReference): PythonType { const type = this.types.get(typeRef.fqn); @@ -1671,13 +1779,14 @@ class PythonGenerator extends Generator { ); // This is the '._jsii' module - const assemblyModule = new Module( + const assemblyModule = new PythonModule( this.getAssemblyModuleName(assm), null, - { assembly: assm, + { + assembly: assm, assemblyFilename: this.getAssemblyFileName(), loadAssembly: false, - package: this.package + package: this.package, }, ); @@ -1695,41 +1804,27 @@ class PythonGenerator extends Generator { } protected onBeginNamespace(ns: string) { - // If we're generating the Namespace that matches our assembly, then we'll - // actually be generating a module, otherwise we'll generate a class within - // that module. - if (ns === this.assembly.name) { - // This is the main Python entry point (facade to the JSII module) - - const module = new Module( + const module = new PythonModule( + [ this.assembly.targets!.python!.module, - ns, - { assembly: this.assembly, - assemblyFilename: this.getAssemblyFileName(), - loadAssembly: ns === this.assembly.name, - package: this.package - }, - ); + ...ns.split('.').slice(1) + .map(toPythonIdentifier) + .map(s => toSnakeCase(s)) + ].join('.'), + ns, + { + assembly: this.assembly, + assemblyFilename: this.getAssemblyFileName(), + loadAssembly: true, + package: this.package, + } + ); - this.package.addModule(module); - // Add our py.typed marker to ensure that gradual typing works for this - // package. + this.package.addModule(module); + this.types.set(ns, module); + if (ns === this.assembly.name) { + // This applies recursively to submodules, so no need to duplicate! this.package.addData(module, 'py.typed', ''); - - this.types.set(ns, module); - } else { - // This should be temporary code, which can be removed and turned into an - // error case once https://github.com/aws/jsii/issues/270 and - // https://github.com/aws/jsii/issues/283 are solved. - this.addPythonType( - new Namespace( - this, - toSnakeCase(toPythonIdentifier(ns.replace(/^.+\.([^.]+)$/, '$1'))), - ns, - {}, - undefined, - ), - ); } } @@ -1777,7 +1872,7 @@ class PythonGenerator extends Generator { parameters, method.returns, method.docs, - { abstract: method.abstract, liftedProp: this.getliftedProp(method) }, + { abstract: method.abstract, liftedProp: this.getliftedProp(method), parent: cls }, ) ); } @@ -1790,7 +1885,7 @@ class PythonGenerator extends Generator { prop.name, prop, prop.docs, - { abstract: prop.abstract, immutable: prop.immutable }, + { abstract: prop.abstract, immutable: prop.immutable, parent: cls }, ) ); } @@ -1807,7 +1902,7 @@ class PythonGenerator extends Generator { parameters, method.returns, method.docs, - { abstract: method.abstract, liftedProp: this.getliftedProp(method) }, + { abstract: method.abstract, liftedProp: this.getliftedProp(method), parent: cls }, ) ); } else { @@ -1819,7 +1914,7 @@ class PythonGenerator extends Generator { parameters, method.returns, method.docs, - { abstract: method.abstract, liftedProp: this.getliftedProp(method) }, + { abstract: method.abstract, liftedProp: this.getliftedProp(method), parent: cls }, ) ); } @@ -1833,7 +1928,7 @@ class PythonGenerator extends Generator { prop.name, prop, prop.docs, - { abstract: prop.abstract, immutable: prop.immutable }, + { abstract: prop.abstract, immutable: prop.immutable, parent: cls }, ) ); } @@ -1879,7 +1974,7 @@ class PythonGenerator extends Generator { parameters, method.returns, method.docs, - { liftedProp: this.getliftedProp(method) }, + { liftedProp: this.getliftedProp(method), parent: ifc }, ) ); } @@ -1888,7 +1983,7 @@ class PythonGenerator extends Generator { let ifaceProperty: InterfaceProperty | StructField; if (ifc.datatype) { - ifaceProperty = new StructField(this, prop); + ifaceProperty = new StructField(this, prop, ifc); } else { ifaceProperty = new InterfaceProperty( this, @@ -1896,7 +1991,7 @@ class PythonGenerator extends Generator { prop.name, prop, prop.docs, - { immutable: prop.immutable }, + { immutable: prop.immutable, parent: ifc }, ); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/__init__.py index 40d3f215a4..e820b341f2 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/__init__.py @@ -8,7 +8,7 @@ import jsii import jsii.compat -__jsii_assembly__ = jsii.JSIIAssembly.load("@scope/jsii-calc-base-of-base", "1.0.0", __name__, "jsii-calc-base-of-base@1.0.0.jsii.tgz") +__jsii_assembly__ = jsii.JSIIAssembly.load("@scope/jsii-calc-base-of-base", "1.0.0", "scope.jsii_calc_base_of_base", "jsii-calc-base-of-base@1.0.0.jsii.tgz") @jsii.interface(jsii_type="@scope/jsii-calc-base-of-base.IVeryBaseInterface") diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/_jsii/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/_jsii/__init__.py index 798491ae50..3ae1af9285 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/_jsii/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/_jsii/__init__.py @@ -7,6 +7,7 @@ import jsii import jsii.compat + __all__ = [] publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/__init__.py index 5695a13bcd..d4f8ce7446 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/__init__.py @@ -10,7 +10,7 @@ import scope.jsii_calc_base_of_base -__jsii_assembly__ = jsii.JSIIAssembly.load("@scope/jsii-calc-base", "1.0.0", __name__, "jsii-calc-base@1.0.0.jsii.tgz") +__jsii_assembly__ = jsii.JSIIAssembly.load("@scope/jsii-calc-base", "1.0.0", "scope.jsii_calc_base", "jsii-calc-base@1.0.0.jsii.tgz") class Base(metaclass=jsii.JSIIAbstractClass, jsii_type="@scope/jsii-calc-base.Base"): diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/_jsii/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/_jsii/__init__.py index 529faf82d6..ab82290fe0 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/_jsii/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/_jsii/__init__.py @@ -9,6 +9,7 @@ import jsii.compat import scope.jsii_calc_base_of_base + __all__ = [] publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/__init__.py index 3ac678c936..a4a8e3f1d9 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/__init__.py @@ -10,7 +10,7 @@ import scope.jsii_calc_base -__jsii_assembly__ = jsii.JSIIAssembly.load("@scope/jsii-calc-lib", "1.0.0", __name__, "jsii-calc-lib@1.0.0.jsii.tgz") +__jsii_assembly__ = jsii.JSIIAssembly.load("@scope/jsii-calc-lib", "1.0.0", "scope.jsii_calc_lib", "jsii-calc-lib@1.0.0.jsii.tgz") @jsii.enum(jsii_type="@scope/jsii-calc-lib.EnumFromScopedModule") diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/_jsii/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/_jsii/__init__.py index ac84203688..653d0f7947 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/_jsii/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/_jsii/__init__.py @@ -9,6 +9,7 @@ import jsii.compat import scope.jsii_calc_base + __all__ = [] publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/setup.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/setup.py index e915d3af2b..7edb8719db 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/setup.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/setup.py @@ -18,7 +18,15 @@ }, "packages": [ "jsii_calc", - "jsii_calc._jsii" + "jsii_calc._jsii", + "jsii_calc.compliance", + "jsii_calc.compliance.derived_class_has_no_properties", + "jsii_calc.compliance.interface_in_namespace_includes_classes", + "jsii_calc.compliance.interface_in_namespace_only_interface", + "jsii_calc.composition", + "jsii_calc.documented", + "jsii_calc.erasure_tests", + "jsii_calc.stability_annotations" ], "package_data": { "jsii_calc._jsii": [ diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/__init__.py index ace6563656..ec651d26ab 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/__init__.py @@ -37,11 +37,12 @@ import jsii import jsii.compat +import jsii_calc.composition import scope.jsii_calc_base import scope.jsii_calc_base_of_base import scope.jsii_calc_lib -__jsii_assembly__ = jsii.JSIIAssembly.load("jsii-calc", "1.0.0", __name__, "jsii-calc@1.0.0.jsii.tgz") +__jsii_assembly__ = jsii.JSIIAssembly.load("jsii-calc", "1.0.0", "jsii_calc", "jsii-calc@1.0.0.jsii.tgz") class AbstractSuite(metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.AbstractSuite"): @@ -175,6 +176,167 @@ def rhs(self) -> scope.jsii_calc_lib.Value: class _BinaryOperationProxy(BinaryOperation, jsii.proxy_for(scope.jsii_calc_lib.Operation)): pass +class Calculator(composition.CompositeOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Calculator"): + """A calculator which maintains a current value and allows adding operations. + + Here's how you use it:: + + # Example automatically generated. See https://github.com/aws/jsii/issues/826 + calculator = calc.Calculator() + calculator.add(5) + calculator.mul(3) + print(calculator.expression.value) + + I will repeat this example again, but in an @example tag. + + stability + :stability: experimental + + Example:: + + # Example automatically generated. See https://github.com/aws/jsii/issues/826 + calculator = calc.Calculator() + calculator.add(5) + calculator.mul(3) + print(calculator.expression.value) + """ + def __init__(self, *, initial_value: typing.Optional[jsii.Number]=None, maximum_value: typing.Optional[jsii.Number]=None) -> None: + """Creates a Calculator object. + + :param initial_value: The initial value of the calculator. NOTE: Any number works here, it's fine. Default: 0 + :param maximum_value: The maximum value the calculator can store. Default: none + + stability + :stability: experimental + """ + props = CalculatorProps(initial_value=initial_value, maximum_value=maximum_value) + + jsii.create(Calculator, self, [props]) + + @jsii.member(jsii_name="add") + def add(self, value: jsii.Number) -> None: + """Adds a number to the current value. + + :param value: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "add", [value]) + + @jsii.member(jsii_name="mul") + def mul(self, value: jsii.Number) -> None: + """Multiplies the current value by a number. + + :param value: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "mul", [value]) + + @jsii.member(jsii_name="neg") + def neg(self) -> None: + """Negates the current value. + + stability + :stability: experimental + """ + return jsii.invoke(self, "neg", []) + + @jsii.member(jsii_name="pow") + def pow(self, value: jsii.Number) -> None: + """Raises the current value by a power. + + :param value: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "pow", [value]) + + @jsii.member(jsii_name="readUnionValue") + def read_union_value(self) -> jsii.Number: + """Returns teh value of the union property (if defined). + + stability + :stability: experimental + """ + return jsii.invoke(self, "readUnionValue", []) + + @builtins.property + @jsii.member(jsii_name="expression") + def expression(self) -> scope.jsii_calc_lib.Value: + """Returns the expression. + + stability + :stability: experimental + """ + return jsii.get(self, "expression") + + @builtins.property + @jsii.member(jsii_name="operationsLog") + def operations_log(self) -> typing.List[scope.jsii_calc_lib.Value]: + """A log of all operations. + + stability + :stability: experimental + """ + return jsii.get(self, "operationsLog") + + @builtins.property + @jsii.member(jsii_name="operationsMap") + def operations_map(self) -> typing.Mapping[str,typing.List[scope.jsii_calc_lib.Value]]: + """A map of per operation name of all operations performed. + + stability + :stability: experimental + """ + return jsii.get(self, "operationsMap") + + @builtins.property + @jsii.member(jsii_name="curr") + def curr(self) -> scope.jsii_calc_lib.Value: + """The current value. + + stability + :stability: experimental + """ + return jsii.get(self, "curr") + + @curr.setter + def curr(self, value: scope.jsii_calc_lib.Value): + jsii.set(self, "curr", value) + + @builtins.property + @jsii.member(jsii_name="maxValue") + def max_value(self) -> typing.Optional[jsii.Number]: + """The maximum value allows in this calculator. + + stability + :stability: experimental + """ + return jsii.get(self, "maxValue") + + @max_value.setter + def max_value(self, value: typing.Optional[jsii.Number]): + jsii.set(self, "maxValue", value) + + @builtins.property + @jsii.member(jsii_name="unionProperty") + def union_property(self) -> typing.Optional[typing.Union[typing.Optional["Add"], typing.Optional["Multiply"], typing.Optional["Power"]]]: + """Example of a property that accepts a union of types. + + stability + :stability: experimental + """ + return jsii.get(self, "unionProperty") + + @union_property.setter + def union_property(self, value: typing.Optional[typing.Union[typing.Optional["Add"], typing.Optional["Multiply"], typing.Optional["Power"]]]): + jsii.set(self, "unionProperty", value) + + @jsii.data_type(jsii_type="jsii-calc.CalculatorProps", jsii_struct_bases=[], name_mapping={'initial_value': 'initialValue', 'maximum_value': 'maximumValue'}) class CalculatorProps(): def __init__(self, *, initial_value: typing.Optional[jsii.Number]=None, maximum_value: typing.Optional[jsii.Number]=None): @@ -424,6 +586,56 @@ def value(self) -> jsii.Number: return jsii.get(self, "value") +class Power(composition.CompositeOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Power"): + """The power operation. + + stability + :stability: experimental + """ + def __init__(self, base: scope.jsii_calc_lib.Value, pow: scope.jsii_calc_lib.Value) -> None: + """Creates a Power operation. + + :param base: The base of the power. + :param pow: The number of times to multiply. + + stability + :stability: experimental + """ + jsii.create(Power, self, [base, pow]) + + @builtins.property + @jsii.member(jsii_name="base") + def base(self) -> scope.jsii_calc_lib.Value: + """The base of the power. + + stability + :stability: experimental + """ + return jsii.get(self, "base") + + @builtins.property + @jsii.member(jsii_name="expression") + def expression(self) -> scope.jsii_calc_lib.Value: + """The expression that this operation consists of. + + Must be implemented by derived classes. + + stability + :stability: experimental + """ + return jsii.get(self, "expression") + + @builtins.property + @jsii.member(jsii_name="pow") + def pow(self) -> scope.jsii_calc_lib.Value: + """The number of times to multiply. + + stability + :stability: experimental + """ + return jsii.get(self, "pow") + + class PropertyNamedProperty(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.PropertyNamedProperty"): """Reproduction for https://github.com/aws/jsii/issues/1113 Where a method or property named "property" would result in impossible to load Python code. @@ -493,6 +705,46 @@ def __repr__(self) -> str: return 'SmellyStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) +class Sum(composition.CompositeOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Sum"): + """An operation that sums multiple values. + + stability + :stability: experimental + """ + def __init__(self) -> None: + """ + stability + :stability: experimental + """ + jsii.create(Sum, self, []) + + @builtins.property + @jsii.member(jsii_name="expression") + def expression(self) -> scope.jsii_calc_lib.Value: + """The expression that this operation consists of. + + Must be implemented by derived classes. + + stability + :stability: experimental + """ + return jsii.get(self, "expression") + + @builtins.property + @jsii.member(jsii_name="parts") + def parts(self) -> typing.List[scope.jsii_calc_lib.Value]: + """The parts to sum. + + stability + :stability: experimental + """ + return jsii.get(self, "parts") + + @parts.setter + def parts(self, value: typing.List[scope.jsii_calc_lib.Value]): + jsii.set(self, "parts", value) + + class UnaryOperation(scope.jsii_calc_lib.Operation, metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.UnaryOperation"): """An operation on a single operand. @@ -525,7716 +777,6 @@ def operand(self) -> scope.jsii_calc_lib.Value: class _UnaryOperationProxy(UnaryOperation, jsii.proxy_for(scope.jsii_calc_lib.Operation)): pass -class compliance: - class AbstractClassBase(metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.compliance.AbstractClassBase"): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _AbstractClassBaseProxy - - def __init__(self) -> None: - jsii.create(AbstractClassBase, self, []) - - @builtins.property - @jsii.member(jsii_name="abstractProperty") - @abc.abstractmethod - def abstract_property(self) -> str: - """ - stability - :stability: experimental - """ - ... - - - class _AbstractClassBaseProxy(AbstractClassBase): - @builtins.property - @jsii.member(jsii_name="abstractProperty") - def abstract_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "abstractProperty") - - - class AbstractClassReturner(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.AbstractClassReturner"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(AbstractClassReturner, self, []) - - @jsii.member(jsii_name="giveMeAbstract") - def give_me_abstract(self) -> "AbstractClass": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "giveMeAbstract", []) - - @jsii.member(jsii_name="giveMeInterface") - def give_me_interface(self) -> "IInterfaceImplementedByAbstractClass": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "giveMeInterface", []) - - @builtins.property - @jsii.member(jsii_name="returnAbstractFromProperty") - def return_abstract_from_property(self) -> "AbstractClassBase": - """ - stability - :stability: experimental - """ - return jsii.get(self, "returnAbstractFromProperty") - - - class AllTypes(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.AllTypes"): - """This class includes property for all types supported by jsii. - - The setters will validate - that the value set is of the expected type and throw otherwise. - - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(AllTypes, self, []) - - @jsii.member(jsii_name="anyIn") - def any_in(self, inp: typing.Any) -> None: - """ - :param inp: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "anyIn", [inp]) - - @jsii.member(jsii_name="anyOut") - def any_out(self) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "anyOut", []) - - @jsii.member(jsii_name="enumMethod") - def enum_method(self, value: "StringEnum") -> "StringEnum": - """ - :param value: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "enumMethod", [value]) - - @builtins.property - @jsii.member(jsii_name="enumPropertyValue") - def enum_property_value(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "enumPropertyValue") - - @builtins.property - @jsii.member(jsii_name="anyArrayProperty") - def any_array_property(self) -> typing.List[typing.Any]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "anyArrayProperty") - - @any_array_property.setter - def any_array_property(self, value: typing.List[typing.Any]): - jsii.set(self, "anyArrayProperty", value) - - @builtins.property - @jsii.member(jsii_name="anyMapProperty") - def any_map_property(self) -> typing.Mapping[str,typing.Any]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "anyMapProperty") - - @any_map_property.setter - def any_map_property(self, value: typing.Mapping[str,typing.Any]): - jsii.set(self, "anyMapProperty", value) - - @builtins.property - @jsii.member(jsii_name="anyProperty") - def any_property(self) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.get(self, "anyProperty") - - @any_property.setter - def any_property(self, value: typing.Any): - jsii.set(self, "anyProperty", value) - - @builtins.property - @jsii.member(jsii_name="arrayProperty") - def array_property(self) -> typing.List[str]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "arrayProperty") - - @array_property.setter - def array_property(self, value: typing.List[str]): - jsii.set(self, "arrayProperty", value) - - @builtins.property - @jsii.member(jsii_name="booleanProperty") - def boolean_property(self) -> bool: - """ - stability - :stability: experimental - """ - return jsii.get(self, "booleanProperty") - - @boolean_property.setter - def boolean_property(self, value: bool): - jsii.set(self, "booleanProperty", value) - - @builtins.property - @jsii.member(jsii_name="dateProperty") - def date_property(self) -> datetime.datetime: - """ - stability - :stability: experimental - """ - return jsii.get(self, "dateProperty") - - @date_property.setter - def date_property(self, value: datetime.datetime): - jsii.set(self, "dateProperty", value) - - @builtins.property - @jsii.member(jsii_name="enumProperty") - def enum_property(self) -> "AllTypesEnum": - """ - stability - :stability: experimental - """ - return jsii.get(self, "enumProperty") - - @enum_property.setter - def enum_property(self, value: "AllTypesEnum"): - jsii.set(self, "enumProperty", value) - - @builtins.property - @jsii.member(jsii_name="jsonProperty") - def json_property(self) -> typing.Mapping[typing.Any, typing.Any]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "jsonProperty") - - @json_property.setter - def json_property(self, value: typing.Mapping[typing.Any, typing.Any]): - jsii.set(self, "jsonProperty", value) - - @builtins.property - @jsii.member(jsii_name="mapProperty") - def map_property(self) -> typing.Mapping[str,scope.jsii_calc_lib.Number]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "mapProperty") - - @map_property.setter - def map_property(self, value: typing.Mapping[str,scope.jsii_calc_lib.Number]): - jsii.set(self, "mapProperty", value) - - @builtins.property - @jsii.member(jsii_name="numberProperty") - def number_property(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "numberProperty") - - @number_property.setter - def number_property(self, value: jsii.Number): - jsii.set(self, "numberProperty", value) - - @builtins.property - @jsii.member(jsii_name="stringProperty") - def string_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "stringProperty") - - @string_property.setter - def string_property(self, value: str): - jsii.set(self, "stringProperty", value) - - @builtins.property - @jsii.member(jsii_name="unionArrayProperty") - def union_array_property(self) -> typing.List[typing.Union[jsii.Number, scope.jsii_calc_lib.Value]]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "unionArrayProperty") - - @union_array_property.setter - def union_array_property(self, value: typing.List[typing.Union[jsii.Number, scope.jsii_calc_lib.Value]]): - jsii.set(self, "unionArrayProperty", value) - - @builtins.property - @jsii.member(jsii_name="unionMapProperty") - def union_map_property(self) -> typing.Mapping[str,typing.Union[str, jsii.Number, scope.jsii_calc_lib.Number]]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "unionMapProperty") - - @union_map_property.setter - def union_map_property(self, value: typing.Mapping[str,typing.Union[str, jsii.Number, scope.jsii_calc_lib.Number]]): - jsii.set(self, "unionMapProperty", value) - - @builtins.property - @jsii.member(jsii_name="unionProperty") - def union_property(self) -> typing.Union[str, jsii.Number, jsii_calc.Multiply, scope.jsii_calc_lib.Number]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "unionProperty") - - @union_property.setter - def union_property(self, value: typing.Union[str, jsii.Number, jsii_calc.Multiply, scope.jsii_calc_lib.Number]): - jsii.set(self, "unionProperty", value) - - @builtins.property - @jsii.member(jsii_name="unknownArrayProperty") - def unknown_array_property(self) -> typing.List[typing.Any]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "unknownArrayProperty") - - @unknown_array_property.setter - def unknown_array_property(self, value: typing.List[typing.Any]): - jsii.set(self, "unknownArrayProperty", value) - - @builtins.property - @jsii.member(jsii_name="unknownMapProperty") - def unknown_map_property(self) -> typing.Mapping[str,typing.Any]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "unknownMapProperty") - - @unknown_map_property.setter - def unknown_map_property(self, value: typing.Mapping[str,typing.Any]): - jsii.set(self, "unknownMapProperty", value) - - @builtins.property - @jsii.member(jsii_name="unknownProperty") - def unknown_property(self) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.get(self, "unknownProperty") - - @unknown_property.setter - def unknown_property(self, value: typing.Any): - jsii.set(self, "unknownProperty", value) - - @builtins.property - @jsii.member(jsii_name="optionalEnumValue") - def optional_enum_value(self) -> typing.Optional["StringEnum"]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "optionalEnumValue") - - @optional_enum_value.setter - def optional_enum_value(self, value: typing.Optional["StringEnum"]): - jsii.set(self, "optionalEnumValue", value) - - - @jsii.enum(jsii_type="jsii-calc.compliance.AllTypesEnum") - class AllTypesEnum(enum.Enum): - """ - stability - :stability: experimental - """ - MY_ENUM_VALUE = "MY_ENUM_VALUE" - """ - stability - :stability: experimental - """ - YOUR_ENUM_VALUE = "YOUR_ENUM_VALUE" - """ - stability - :stability: experimental - """ - THIS_IS_GREAT = "THIS_IS_GREAT" - """ - stability - :stability: experimental - """ - - class AllowedMethodNames(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.AllowedMethodNames"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(AllowedMethodNames, self, []) - - @jsii.member(jsii_name="getBar") - def get_bar(self, _p1: str, _p2: jsii.Number) -> None: - """ - :param _p1: - - :param _p2: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "getBar", [_p1, _p2]) - - @jsii.member(jsii_name="getFoo") - def get_foo(self, with_param: str) -> str: - """getXxx() is not allowed (see negatives), but getXxx(a, ...) is okay. - - :param with_param: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "getFoo", [with_param]) - - @jsii.member(jsii_name="setBar") - def set_bar(self, _x: str, _y: jsii.Number, _z: bool) -> None: - """ - :param _x: - - :param _y: - - :param _z: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "setBar", [_x, _y, _z]) - - @jsii.member(jsii_name="setFoo") - def set_foo(self, _x: str, _y: jsii.Number) -> None: - """setFoo(x) is not allowed (see negatives), but setXxx(a, b, ...) is okay. - - :param _x: - - :param _y: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "setFoo", [_x, _y]) - - - class AmbiguousParameters(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.AmbiguousParameters"): - """ - stability - :stability: experimental - """ - def __init__(self, scope_: "Bell", *, scope: str, props: typing.Optional[bool]=None) -> None: - """ - :param scope_: - - :param scope: - :param props: - - stability - :stability: experimental - """ - props_ = StructParameterType(scope=scope, props=props) - - jsii.create(AmbiguousParameters, self, [scope_, props_]) - - @builtins.property - @jsii.member(jsii_name="props") - def props(self) -> "StructParameterType": - """ - stability - :stability: experimental - """ - return jsii.get(self, "props") - - @builtins.property - @jsii.member(jsii_name="scope") - def scope(self) -> "Bell": - """ - stability - :stability: experimental - """ - return jsii.get(self, "scope") - - - class AsyncVirtualMethods(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.AsyncVirtualMethods"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(AsyncVirtualMethods, self, []) - - @jsii.member(jsii_name="callMe") - def call_me(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.ainvoke(self, "callMe", []) - - @jsii.member(jsii_name="callMe2") - def call_me2(self) -> jsii.Number: - """Just calls "overrideMeToo". - - stability - :stability: experimental - """ - return jsii.ainvoke(self, "callMe2", []) - - @jsii.member(jsii_name="callMeDoublePromise") - def call_me_double_promise(self) -> jsii.Number: - """This method calls the "callMe" async method indirectly, which will then invoke a virtual method. - - This is a "double promise" situation, which - means that callbacks are not going to be available immediate, but only - after an "immediates" cycle. - - stability - :stability: experimental - """ - return jsii.ainvoke(self, "callMeDoublePromise", []) - - @jsii.member(jsii_name="dontOverrideMe") - def dont_override_me(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "dontOverrideMe", []) - - @jsii.member(jsii_name="overrideMe") - def override_me(self, mult: jsii.Number) -> jsii.Number: - """ - :param mult: - - - stability - :stability: experimental - """ - return jsii.ainvoke(self, "overrideMe", [mult]) - - @jsii.member(jsii_name="overrideMeToo") - def override_me_too(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.ainvoke(self, "overrideMeToo", []) - - - class AugmentableClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.AugmentableClass"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(AugmentableClass, self, []) - - @jsii.member(jsii_name="methodOne") - def method_one(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "methodOne", []) - - @jsii.member(jsii_name="methodTwo") - def method_two(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "methodTwo", []) - - - class BaseJsii976(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.BaseJsii976"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(BaseJsii976, self, []) - - - class ClassWithCollections(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ClassWithCollections"): - """ - stability - :stability: experimental - """ - def __init__(self, map: typing.Mapping[str,str], array: typing.List[str]) -> None: - """ - :param map: - - :param array: - - - stability - :stability: experimental - """ - jsii.create(ClassWithCollections, self, [map, array]) - - @jsii.member(jsii_name="createAList") - @builtins.classmethod - def create_a_list(cls) -> typing.List[str]: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "createAList", []) - - @jsii.member(jsii_name="createAMap") - @builtins.classmethod - def create_a_map(cls) -> typing.Mapping[str,str]: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "createAMap", []) - - @jsii.python.classproperty - @jsii.member(jsii_name="staticArray") - def static_array(cls) -> typing.List[str]: - """ - stability - :stability: experimental - """ - return jsii.sget(cls, "staticArray") - - @static_array.setter - def static_array(cls, value: typing.List[str]): - jsii.sset(cls, "staticArray", value) - - @jsii.python.classproperty - @jsii.member(jsii_name="staticMap") - def static_map(cls) -> typing.Mapping[str,str]: - """ - stability - :stability: experimental - """ - return jsii.sget(cls, "staticMap") - - @static_map.setter - def static_map(cls, value: typing.Mapping[str,str]): - jsii.sset(cls, "staticMap", value) - - @builtins.property - @jsii.member(jsii_name="array") - def array(self) -> typing.List[str]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "array") - - @array.setter - def array(self, value: typing.List[str]): - jsii.set(self, "array", value) - - @builtins.property - @jsii.member(jsii_name="map") - def map(self) -> typing.Mapping[str,str]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "map") - - @map.setter - def map(self, value: typing.Mapping[str,str]): - jsii.set(self, "map", value) - - - class ClassWithDocs(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ClassWithDocs"): - """This class has docs. - - The docs are great. They're a bunch of tags. - - see - :see: https://aws.amazon.com/ - customAttribute: - :customAttribute:: hasAValue - - Example:: - - # Example automatically generated. See https://github.com/aws/jsii/issues/826 - def an_example(): - pass - """ - def __init__(self) -> None: - jsii.create(ClassWithDocs, self, []) - - - class ClassWithJavaReservedWords(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ClassWithJavaReservedWords"): - """ - stability - :stability: experimental - """ - def __init__(self, int: str) -> None: - """ - :param int: - - - stability - :stability: experimental - """ - jsii.create(ClassWithJavaReservedWords, self, [int]) - - @jsii.member(jsii_name="import") - def import_(self, assert_: str) -> str: - """ - :param assert_: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "import", [assert_]) - - @builtins.property - @jsii.member(jsii_name="int") - def int(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "int") - - - class ClassWithMutableObjectLiteralProperty(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ClassWithMutableObjectLiteralProperty"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(ClassWithMutableObjectLiteralProperty, self, []) - - @builtins.property - @jsii.member(jsii_name="mutableObject") - def mutable_object(self) -> "IMutableObjectLiteral": - """ - stability - :stability: experimental - """ - return jsii.get(self, "mutableObject") - - @mutable_object.setter - def mutable_object(self, value: "IMutableObjectLiteral"): - jsii.set(self, "mutableObject", value) - - - class ConfusingToJackson(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ConfusingToJackson"): - """This tries to confuse Jackson by having overloaded property setters. - - see - :see: https://github.com/aws/aws-cdk/issues/4080 - stability - :stability: experimental - """ - @jsii.member(jsii_name="makeInstance") - @builtins.classmethod - def make_instance(cls) -> "ConfusingToJackson": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "makeInstance", []) - - @jsii.member(jsii_name="makeStructInstance") - @builtins.classmethod - def make_struct_instance(cls) -> "ConfusingToJacksonStruct": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "makeStructInstance", []) - - @builtins.property - @jsii.member(jsii_name="unionProperty") - def union_property(self) -> typing.Optional[typing.Union[typing.Optional[scope.jsii_calc_lib.IFriendly], typing.Optional[typing.List[typing.Union["AbstractClass", scope.jsii_calc_lib.IFriendly]]]]]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "unionProperty") - - @union_property.setter - def union_property(self, value: typing.Optional[typing.Union[typing.Optional[scope.jsii_calc_lib.IFriendly], typing.Optional[typing.List[typing.Union["AbstractClass", scope.jsii_calc_lib.IFriendly]]]]]): - jsii.set(self, "unionProperty", value) - - - @jsii.data_type(jsii_type="jsii-calc.compliance.ConfusingToJacksonStruct", jsii_struct_bases=[], name_mapping={'union_property': 'unionProperty'}) - class ConfusingToJacksonStruct(): - def __init__(self, *, union_property: typing.Optional[typing.Union[typing.Optional[scope.jsii_calc_lib.IFriendly], typing.Optional[typing.List[typing.Union["AbstractClass", scope.jsii_calc_lib.IFriendly]]]]]=None): - """ - :param union_property: - - stability - :stability: experimental - """ - self._values = { - } - if union_property is not None: self._values["union_property"] = union_property - - @builtins.property - def union_property(self) -> typing.Optional[typing.Union[typing.Optional[scope.jsii_calc_lib.IFriendly], typing.Optional[typing.List[typing.Union["AbstractClass", scope.jsii_calc_lib.IFriendly]]]]]: - """ - stability - :stability: experimental - """ - return self._values.get('union_property') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'ConfusingToJacksonStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - - class ConstructorPassesThisOut(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ConstructorPassesThisOut"): - """ - stability - :stability: experimental - """ - def __init__(self, consumer: "PartiallyInitializedThisConsumer") -> None: - """ - :param consumer: - - - stability - :stability: experimental - """ - jsii.create(ConstructorPassesThisOut, self, [consumer]) - - - class Constructors(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.Constructors"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(Constructors, self, []) - - @jsii.member(jsii_name="hiddenInterface") - @builtins.classmethod - def hidden_interface(cls) -> "IPublicInterface": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "hiddenInterface", []) - - @jsii.member(jsii_name="hiddenInterfaces") - @builtins.classmethod - def hidden_interfaces(cls) -> typing.List["IPublicInterface"]: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "hiddenInterfaces", []) - - @jsii.member(jsii_name="hiddenSubInterfaces") - @builtins.classmethod - def hidden_sub_interfaces(cls) -> typing.List["IPublicInterface"]: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "hiddenSubInterfaces", []) - - @jsii.member(jsii_name="makeClass") - @builtins.classmethod - def make_class(cls) -> "PublicClass": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "makeClass", []) - - @jsii.member(jsii_name="makeInterface") - @builtins.classmethod - def make_interface(cls) -> "IPublicInterface": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "makeInterface", []) - - @jsii.member(jsii_name="makeInterface2") - @builtins.classmethod - def make_interface2(cls) -> "IPublicInterface2": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "makeInterface2", []) - - @jsii.member(jsii_name="makeInterfaces") - @builtins.classmethod - def make_interfaces(cls) -> typing.List["IPublicInterface"]: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "makeInterfaces", []) - - - class ConsumePureInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ConsumePureInterface"): - """ - stability - :stability: experimental - """ - def __init__(self, delegate: "IStructReturningDelegate") -> None: - """ - :param delegate: - - - stability - :stability: experimental - """ - jsii.create(ConsumePureInterface, self, [delegate]) - - @jsii.member(jsii_name="workItBaby") - def work_it_baby(self) -> "StructB": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "workItBaby", []) - - - class ConsumerCanRingBell(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ConsumerCanRingBell"): - """Test calling back to consumers that implement interfaces. - - Check that if a JSII consumer implements IConsumerWithInterfaceParam, they can call - the method on the argument that they're passed... - - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(ConsumerCanRingBell, self, []) - - @jsii.member(jsii_name="staticImplementedByObjectLiteral") - @builtins.classmethod - def static_implemented_by_object_literal(cls, ringer: "IBellRinger") -> bool: - """...if the interface is implemented using an object literal. - - Returns whether the bell was rung. - - :param ringer: - - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "staticImplementedByObjectLiteral", [ringer]) - - @jsii.member(jsii_name="staticImplementedByPrivateClass") - @builtins.classmethod - def static_implemented_by_private_class(cls, ringer: "IBellRinger") -> bool: - """...if the interface is implemented using a private class. - - Return whether the bell was rung. - - :param ringer: - - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "staticImplementedByPrivateClass", [ringer]) - - @jsii.member(jsii_name="staticImplementedByPublicClass") - @builtins.classmethod - def static_implemented_by_public_class(cls, ringer: "IBellRinger") -> bool: - """...if the interface is implemented using a public class. - - Return whether the bell was rung. - - :param ringer: - - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "staticImplementedByPublicClass", [ringer]) - - @jsii.member(jsii_name="staticWhenTypedAsClass") - @builtins.classmethod - def static_when_typed_as_class(cls, ringer: "IConcreteBellRinger") -> bool: - """If the parameter is a concrete class instead of an interface. - - Return whether the bell was rung. - - :param ringer: - - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "staticWhenTypedAsClass", [ringer]) - - @jsii.member(jsii_name="implementedByObjectLiteral") - def implemented_by_object_literal(self, ringer: "IBellRinger") -> bool: - """...if the interface is implemented using an object literal. - - Returns whether the bell was rung. - - :param ringer: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "implementedByObjectLiteral", [ringer]) - - @jsii.member(jsii_name="implementedByPrivateClass") - def implemented_by_private_class(self, ringer: "IBellRinger") -> bool: - """...if the interface is implemented using a private class. - - Return whether the bell was rung. - - :param ringer: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "implementedByPrivateClass", [ringer]) - - @jsii.member(jsii_name="implementedByPublicClass") - def implemented_by_public_class(self, ringer: "IBellRinger") -> bool: - """...if the interface is implemented using a public class. - - Return whether the bell was rung. - - :param ringer: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "implementedByPublicClass", [ringer]) - - @jsii.member(jsii_name="whenTypedAsClass") - def when_typed_as_class(self, ringer: "IConcreteBellRinger") -> bool: - """If the parameter is a concrete class instead of an interface. - - Return whether the bell was rung. - - :param ringer: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "whenTypedAsClass", [ringer]) - - - class ConsumersOfThisCrazyTypeSystem(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ConsumersOfThisCrazyTypeSystem"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(ConsumersOfThisCrazyTypeSystem, self, []) - - @jsii.member(jsii_name="consumeAnotherPublicInterface") - def consume_another_public_interface(self, obj: "IAnotherPublicInterface") -> str: - """ - :param obj: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "consumeAnotherPublicInterface", [obj]) - - @jsii.member(jsii_name="consumeNonInternalInterface") - def consume_non_internal_interface(self, obj: "INonInternalInterface") -> typing.Any: - """ - :param obj: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "consumeNonInternalInterface", [obj]) - - - class DataRenderer(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.DataRenderer"): - """Verifies proper type handling through dynamic overrides. - - stability - :stability: experimental - """ - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(DataRenderer, self, []) - - @jsii.member(jsii_name="render") - def render(self, *, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None) -> str: - """ - :param anumber: An awesome number value. - :param astring: A string value. - :param first_optional: - - stability - :stability: experimental - """ - data = scope.jsii_calc_lib.MyFirstStruct(anumber=anumber, astring=astring, first_optional=first_optional) - - return jsii.invoke(self, "render", [data]) - - @jsii.member(jsii_name="renderArbitrary") - def render_arbitrary(self, data: typing.Mapping[str,typing.Any]) -> str: - """ - :param data: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "renderArbitrary", [data]) - - @jsii.member(jsii_name="renderMap") - def render_map(self, map: typing.Mapping[str,typing.Any]) -> str: - """ - :param map: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "renderMap", [map]) - - - class DefaultedConstructorArgument(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.DefaultedConstructorArgument"): - """ - stability - :stability: experimental - """ - def __init__(self, arg1: typing.Optional[jsii.Number]=None, arg2: typing.Optional[str]=None, arg3: typing.Optional[datetime.datetime]=None) -> None: - """ - :param arg1: - - :param arg2: - - :param arg3: - - - stability - :stability: experimental - """ - jsii.create(DefaultedConstructorArgument, self, [arg1, arg2, arg3]) - - @builtins.property - @jsii.member(jsii_name="arg1") - def arg1(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "arg1") - - @builtins.property - @jsii.member(jsii_name="arg3") - def arg3(self) -> datetime.datetime: - """ - stability - :stability: experimental - """ - return jsii.get(self, "arg3") - - @builtins.property - @jsii.member(jsii_name="arg2") - def arg2(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "arg2") - - - class Demonstrate982(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.Demonstrate982"): - """1. - - call #takeThis() -> An ObjectRef will be provisioned for the value (it'll be re-used!) - 2. call #takeThisToo() -> The ObjectRef from before will need to be down-cased to the ParentStruct982 type - - stability - :stability: experimental - """ - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(Demonstrate982, self, []) - - @jsii.member(jsii_name="takeThis") - @builtins.classmethod - def take_this(cls) -> "ChildStruct982": - """It's dangerous to go alone! - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "takeThis", []) - - @jsii.member(jsii_name="takeThisToo") - @builtins.classmethod - def take_this_too(cls) -> "ParentStruct982": - """It's dangerous to go alone! - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "takeThisToo", []) - - - class derived_class_has_no_properties: - class Base(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.DerivedClassHasNoProperties.Base"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(jsii_calc.compliance.DerivedClassHasNoProperties.Base, self, []) - - @builtins.property - @jsii.member(jsii_name="prop") - def prop(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "prop") - - @prop.setter - def prop(self, value: str): - jsii.set(self, "prop", value) - - - class Derived(jsii_calc.compliance.DerivedClassHasNoProperties.Base, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.DerivedClassHasNoProperties.Derived"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(jsii_calc.compliance.DerivedClassHasNoProperties.Derived, self, []) - - - - @jsii.data_type(jsii_type="jsii-calc.compliance.DerivedStruct", jsii_struct_bases=[scope.jsii_calc_lib.MyFirstStruct], name_mapping={'anumber': 'anumber', 'astring': 'astring', 'first_optional': 'firstOptional', 'another_required': 'anotherRequired', 'bool': 'bool', 'non_primitive': 'nonPrimitive', 'another_optional': 'anotherOptional', 'optional_any': 'optionalAny', 'optional_array': 'optionalArray'}) - class DerivedStruct(scope.jsii_calc_lib.MyFirstStruct): - def __init__(self, *, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None, another_required: datetime.datetime, bool: bool, non_primitive: "DoubleTrouble", another_optional: typing.Optional[typing.Mapping[str,scope.jsii_calc_lib.Value]]=None, optional_any: typing.Any=None, optional_array: typing.Optional[typing.List[str]]=None): - """A struct which derives from another struct. - - :param anumber: An awesome number value. - :param astring: A string value. - :param first_optional: - :param another_required: - :param bool: - :param non_primitive: An example of a non primitive property. - :param another_optional: This is optional. - :param optional_any: - :param optional_array: - - stability - :stability: experimental - """ - self._values = { - 'anumber': anumber, - 'astring': astring, - 'another_required': another_required, - 'bool': bool, - 'non_primitive': non_primitive, - } - if first_optional is not None: self._values["first_optional"] = first_optional - if another_optional is not None: self._values["another_optional"] = another_optional - if optional_any is not None: self._values["optional_any"] = optional_any - if optional_array is not None: self._values["optional_array"] = optional_array - - @builtins.property - def anumber(self) -> jsii.Number: - """An awesome number value. - - stability - :stability: deprecated - """ - return self._values.get('anumber') - - @builtins.property - def astring(self) -> str: - """A string value. - - stability - :stability: deprecated - """ - return self._values.get('astring') - - @builtins.property - def first_optional(self) -> typing.Optional[typing.List[str]]: - """ - stability - :stability: deprecated - """ - return self._values.get('first_optional') - - @builtins.property - def another_required(self) -> datetime.datetime: - """ - stability - :stability: experimental - """ - return self._values.get('another_required') - - @builtins.property - def bool(self) -> bool: - """ - stability - :stability: experimental - """ - return self._values.get('bool') - - @builtins.property - def non_primitive(self) -> "DoubleTrouble": - """An example of a non primitive property. - - stability - :stability: experimental - """ - return self._values.get('non_primitive') - - @builtins.property - def another_optional(self) -> typing.Optional[typing.Mapping[str,scope.jsii_calc_lib.Value]]: - """This is optional. - - stability - :stability: experimental - """ - return self._values.get('another_optional') - - @builtins.property - def optional_any(self) -> typing.Any: - """ - stability - :stability: experimental - """ - return self._values.get('optional_any') - - @builtins.property - def optional_array(self) -> typing.Optional[typing.List[str]]: - """ - stability - :stability: experimental - """ - return self._values.get('optional_array') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'DerivedStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - - @jsii.data_type(jsii_type="jsii-calc.compliance.DiamondInheritanceBaseLevelStruct", jsii_struct_bases=[], name_mapping={'base_level_property': 'baseLevelProperty'}) - class DiamondInheritanceBaseLevelStruct(): - def __init__(self, *, base_level_property: str): - """ - :param base_level_property: - - stability - :stability: experimental - """ - self._values = { - 'base_level_property': base_level_property, - } - - @builtins.property - def base_level_property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('base_level_property') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'DiamondInheritanceBaseLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - - @jsii.data_type(jsii_type="jsii-calc.compliance.DiamondInheritanceFirstMidLevelStruct", jsii_struct_bases=[DiamondInheritanceBaseLevelStruct], name_mapping={'base_level_property': 'baseLevelProperty', 'first_mid_level_property': 'firstMidLevelProperty'}) - class DiamondInheritanceFirstMidLevelStruct(DiamondInheritanceBaseLevelStruct): - def __init__(self, *, base_level_property: str, first_mid_level_property: str): - """ - :param base_level_property: - :param first_mid_level_property: - - stability - :stability: experimental - """ - self._values = { - 'base_level_property': base_level_property, - 'first_mid_level_property': first_mid_level_property, - } - - @builtins.property - def base_level_property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('base_level_property') - - @builtins.property - def first_mid_level_property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('first_mid_level_property') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'DiamondInheritanceFirstMidLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - - @jsii.data_type(jsii_type="jsii-calc.compliance.DiamondInheritanceSecondMidLevelStruct", jsii_struct_bases=[DiamondInheritanceBaseLevelStruct], name_mapping={'base_level_property': 'baseLevelProperty', 'second_mid_level_property': 'secondMidLevelProperty'}) - class DiamondInheritanceSecondMidLevelStruct(DiamondInheritanceBaseLevelStruct): - def __init__(self, *, base_level_property: str, second_mid_level_property: str): - """ - :param base_level_property: - :param second_mid_level_property: - - stability - :stability: experimental - """ - self._values = { - 'base_level_property': base_level_property, - 'second_mid_level_property': second_mid_level_property, - } - - @builtins.property - def base_level_property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('base_level_property') - - @builtins.property - def second_mid_level_property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('second_mid_level_property') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'DiamondInheritanceSecondMidLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - - @jsii.data_type(jsii_type="jsii-calc.compliance.DiamondInheritanceTopLevelStruct", jsii_struct_bases=[DiamondInheritanceFirstMidLevelStruct, DiamondInheritanceSecondMidLevelStruct], name_mapping={'base_level_property': 'baseLevelProperty', 'first_mid_level_property': 'firstMidLevelProperty', 'second_mid_level_property': 'secondMidLevelProperty', 'top_level_property': 'topLevelProperty'}) - class DiamondInheritanceTopLevelStruct(DiamondInheritanceFirstMidLevelStruct, DiamondInheritanceSecondMidLevelStruct): - def __init__(self, *, base_level_property: str, first_mid_level_property: str, second_mid_level_property: str, top_level_property: str): - """ - :param base_level_property: - :param first_mid_level_property: - :param second_mid_level_property: - :param top_level_property: - - stability - :stability: experimental - """ - self._values = { - 'base_level_property': base_level_property, - 'first_mid_level_property': first_mid_level_property, - 'second_mid_level_property': second_mid_level_property, - 'top_level_property': top_level_property, - } - - @builtins.property - def base_level_property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('base_level_property') - - @builtins.property - def first_mid_level_property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('first_mid_level_property') - - @builtins.property - def second_mid_level_property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('second_mid_level_property') - - @builtins.property - def top_level_property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('top_level_property') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'DiamondInheritanceTopLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - - class DisappointingCollectionSource(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.DisappointingCollectionSource"): - """Verifies that null/undefined can be returned for optional collections. - - This source of collections is disappointing - it'll always give you nothing :( - - stability - :stability: experimental - """ - @jsii.python.classproperty - @jsii.member(jsii_name="maybeList") - def MAYBE_LIST(cls) -> typing.Optional[typing.List[str]]: - """Some List of strings, maybe? - - (Nah, just a billion dollars mistake!) - - stability - :stability: experimental - """ - return jsii.sget(cls, "maybeList") - - @jsii.python.classproperty - @jsii.member(jsii_name="maybeMap") - def MAYBE_MAP(cls) -> typing.Optional[typing.Mapping[str,jsii.Number]]: - """Some Map of strings to numbers, maybe? - - (Nah, just a billion dollars mistake!) - - stability - :stability: experimental - """ - return jsii.sget(cls, "maybeMap") - - - class DoNotOverridePrivates(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.DoNotOverridePrivates"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(DoNotOverridePrivates, self, []) - - @jsii.member(jsii_name="changePrivatePropertyValue") - def change_private_property_value(self, new_value: str) -> None: - """ - :param new_value: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "changePrivatePropertyValue", [new_value]) - - @jsii.member(jsii_name="privateMethodValue") - def private_method_value(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "privateMethodValue", []) - - @jsii.member(jsii_name="privatePropertyValue") - def private_property_value(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "privatePropertyValue", []) - - - class DoNotRecognizeAnyAsOptional(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.DoNotRecognizeAnyAsOptional"): - """jsii#284: do not recognize "any" as an optional argument. - - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(DoNotRecognizeAnyAsOptional, self, []) - - @jsii.member(jsii_name="method") - def method(self, _required_any: typing.Any, _optional_any: typing.Any=None, _optional_string: typing.Optional[str]=None) -> None: - """ - :param _required_any: - - :param _optional_any: - - :param _optional_string: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "method", [_required_any, _optional_any, _optional_string]) - - - class DontComplainAboutVariadicAfterOptional(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.DontComplainAboutVariadicAfterOptional"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(DontComplainAboutVariadicAfterOptional, self, []) - - @jsii.member(jsii_name="optionalAndVariadic") - def optional_and_variadic(self, optional: typing.Optional[str]=None, *things: str) -> str: - """ - :param optional: - - :param things: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "optionalAndVariadic", [optional, *things]) - - - @jsii.implements(jsii_calc.IFriendlyRandomGenerator) - class DoubleTrouble(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.DoubleTrouble"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(DoubleTrouble, self, []) - - @jsii.member(jsii_name="hello") - def hello(self) -> str: - """Say hello! - - stability - :stability: experimental - """ - return jsii.invoke(self, "hello", []) - - @jsii.member(jsii_name="next") - def next(self) -> jsii.Number: - """Returns another random number. - - stability - :stability: experimental - """ - return jsii.invoke(self, "next", []) - - - class EnumDispenser(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.EnumDispenser"): - """ - stability - :stability: experimental - """ - @jsii.member(jsii_name="randomIntegerLikeEnum") - @builtins.classmethod - def random_integer_like_enum(cls) -> "AllTypesEnum": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "randomIntegerLikeEnum", []) - - @jsii.member(jsii_name="randomStringLikeEnum") - @builtins.classmethod - def random_string_like_enum(cls) -> "StringEnum": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "randomStringLikeEnum", []) - - - class EraseUndefinedHashValues(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.EraseUndefinedHashValues"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(EraseUndefinedHashValues, self, []) - - @jsii.member(jsii_name="doesKeyExist") - @builtins.classmethod - def does_key_exist(cls, opts: "EraseUndefinedHashValuesOptions", key: str) -> bool: - """Returns ``true`` if ``key`` is defined in ``opts``. - - Used to check that undefined/null hash values - are being erased when sending values from native code to JS. - - :param opts: - - :param key: - - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "doesKeyExist", [opts, key]) - - @jsii.member(jsii_name="prop1IsNull") - @builtins.classmethod - def prop1_is_null(cls) -> typing.Mapping[str,typing.Any]: - """We expect "prop1" to be erased. - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "prop1IsNull", []) - - @jsii.member(jsii_name="prop2IsUndefined") - @builtins.classmethod - def prop2_is_undefined(cls) -> typing.Mapping[str,typing.Any]: - """We expect "prop2" to be erased. - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "prop2IsUndefined", []) - - - @jsii.data_type(jsii_type="jsii-calc.compliance.EraseUndefinedHashValuesOptions", jsii_struct_bases=[], name_mapping={'option1': 'option1', 'option2': 'option2'}) - class EraseUndefinedHashValuesOptions(): - def __init__(self, *, option1: typing.Optional[str]=None, option2: typing.Optional[str]=None): - """ - :param option1: - :param option2: - - stability - :stability: experimental - """ - self._values = { - } - if option1 is not None: self._values["option1"] = option1 - if option2 is not None: self._values["option2"] = option2 - - @builtins.property - def option1(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return self._values.get('option1') - - @builtins.property - def option2(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return self._values.get('option2') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'EraseUndefinedHashValuesOptions(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - - class ExportedBaseClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ExportedBaseClass"): - """ - stability - :stability: experimental - """ - def __init__(self, success: bool) -> None: - """ - :param success: - - - stability - :stability: experimental - """ - jsii.create(ExportedBaseClass, self, [success]) - - @builtins.property - @jsii.member(jsii_name="success") - def success(self) -> bool: - """ - stability - :stability: experimental - """ - return jsii.get(self, "success") - - - @jsii.data_type(jsii_type="jsii-calc.compliance.ExtendsInternalInterface", jsii_struct_bases=[], name_mapping={'boom': 'boom', 'prop': 'prop'}) - class ExtendsInternalInterface(): - def __init__(self, *, boom: bool, prop: str): - """ - :param boom: - :param prop: - - stability - :stability: experimental - """ - self._values = { - 'boom': boom, - 'prop': prop, - } - - @builtins.property - def boom(self) -> bool: - """ - stability - :stability: experimental - """ - return self._values.get('boom') - - @builtins.property - def prop(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('prop') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'ExtendsInternalInterface(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - - class GiveMeStructs(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.GiveMeStructs"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(GiveMeStructs, self, []) - - @jsii.member(jsii_name="derivedToFirst") - def derived_to_first(self, *, another_required: datetime.datetime, bool: bool, non_primitive: "DoubleTrouble", another_optional: typing.Optional[typing.Mapping[str,scope.jsii_calc_lib.Value]]=None, optional_any: typing.Any=None, optional_array: typing.Optional[typing.List[str]]=None, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None) -> scope.jsii_calc_lib.MyFirstStruct: - """Accepts a struct of type DerivedStruct and returns a struct of type FirstStruct. - - :param another_required: - :param bool: - :param non_primitive: An example of a non primitive property. - :param another_optional: This is optional. - :param optional_any: - :param optional_array: - :param anumber: An awesome number value. - :param astring: A string value. - :param first_optional: - - stability - :stability: experimental - """ - derived = DerivedStruct(another_required=another_required, bool=bool, non_primitive=non_primitive, another_optional=another_optional, optional_any=optional_any, optional_array=optional_array, anumber=anumber, astring=astring, first_optional=first_optional) - - return jsii.invoke(self, "derivedToFirst", [derived]) - - @jsii.member(jsii_name="readDerivedNonPrimitive") - def read_derived_non_primitive(self, *, another_required: datetime.datetime, bool: bool, non_primitive: "DoubleTrouble", another_optional: typing.Optional[typing.Mapping[str,scope.jsii_calc_lib.Value]]=None, optional_any: typing.Any=None, optional_array: typing.Optional[typing.List[str]]=None, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None) -> "DoubleTrouble": - """Returns the boolean from a DerivedStruct struct. - - :param another_required: - :param bool: - :param non_primitive: An example of a non primitive property. - :param another_optional: This is optional. - :param optional_any: - :param optional_array: - :param anumber: An awesome number value. - :param astring: A string value. - :param first_optional: - - stability - :stability: experimental - """ - derived = DerivedStruct(another_required=another_required, bool=bool, non_primitive=non_primitive, another_optional=another_optional, optional_any=optional_any, optional_array=optional_array, anumber=anumber, astring=astring, first_optional=first_optional) - - return jsii.invoke(self, "readDerivedNonPrimitive", [derived]) - - @jsii.member(jsii_name="readFirstNumber") - def read_first_number(self, *, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None) -> jsii.Number: - """Returns the "anumber" from a MyFirstStruct struct; - - :param anumber: An awesome number value. - :param astring: A string value. - :param first_optional: - - stability - :stability: experimental - """ - first = scope.jsii_calc_lib.MyFirstStruct(anumber=anumber, astring=astring, first_optional=first_optional) - - return jsii.invoke(self, "readFirstNumber", [first]) - - @builtins.property - @jsii.member(jsii_name="structLiteral") - def struct_literal(self) -> scope.jsii_calc_lib.StructWithOnlyOptionals: - """ - stability - :stability: experimental - """ - return jsii.get(self, "structLiteral") - - - class GreetingAugmenter(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.GreetingAugmenter"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(GreetingAugmenter, self, []) - - @jsii.member(jsii_name="betterGreeting") - def better_greeting(self, friendly: scope.jsii_calc_lib.IFriendly) -> str: - """ - :param friendly: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "betterGreeting", [friendly]) - - - @jsii.interface(jsii_type="jsii-calc.compliance.IAnonymousImplementationProvider") - class IAnonymousImplementationProvider(jsii.compat.Protocol): - """We can return an anonymous interface implementation from an override without losing the interface declarations. - - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IAnonymousImplementationProviderProxy - - @jsii.member(jsii_name="provideAsClass") - def provide_as_class(self) -> "Implementation": - """ - stability - :stability: experimental - """ - ... - - @jsii.member(jsii_name="provideAsInterface") - def provide_as_interface(self) -> "IAnonymouslyImplementMe": - """ - stability - :stability: experimental - """ - ... - - - class _IAnonymousImplementationProviderProxy(): - """We can return an anonymous interface implementation from an override without losing the interface declarations. - - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IAnonymousImplementationProvider" - @jsii.member(jsii_name="provideAsClass") - def provide_as_class(self) -> "Implementation": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "provideAsClass", []) - - @jsii.member(jsii_name="provideAsInterface") - def provide_as_interface(self) -> "IAnonymouslyImplementMe": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "provideAsInterface", []) - - - @jsii.interface(jsii_type="jsii-calc.compliance.IAnonymouslyImplementMe") - class IAnonymouslyImplementMe(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IAnonymouslyImplementMeProxy - - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - ... - - @jsii.member(jsii_name="verb") - def verb(self) -> str: - """ - stability - :stability: experimental - """ - ... - - - class _IAnonymouslyImplementMeProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IAnonymouslyImplementMe" - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "value") - - @jsii.member(jsii_name="verb") - def verb(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "verb", []) - - - @jsii.interface(jsii_type="jsii-calc.compliance.IAnotherPublicInterface") - class IAnotherPublicInterface(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IAnotherPublicInterfaceProxy - - @builtins.property - @jsii.member(jsii_name="a") - def a(self) -> str: - """ - stability - :stability: experimental - """ - ... - - @a.setter - def a(self, value: str): - ... - - - class _IAnotherPublicInterfaceProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IAnotherPublicInterface" - @builtins.property - @jsii.member(jsii_name="a") - def a(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "a") - - @a.setter - def a(self, value: str): - jsii.set(self, "a", value) - - - @jsii.interface(jsii_type="jsii-calc.compliance.IBell") - class IBell(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IBellProxy - - @jsii.member(jsii_name="ring") - def ring(self) -> None: - """ - stability - :stability: experimental - """ - ... - - - class _IBellProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IBell" - @jsii.member(jsii_name="ring") - def ring(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "ring", []) - - - @jsii.interface(jsii_type="jsii-calc.compliance.IBellRinger") - class IBellRinger(jsii.compat.Protocol): - """Takes the object parameter as an interface. - - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IBellRingerProxy - - @jsii.member(jsii_name="yourTurn") - def your_turn(self, bell: "IBell") -> None: - """ - :param bell: - - - stability - :stability: experimental - """ - ... - - - class _IBellRingerProxy(): - """Takes the object parameter as an interface. - - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IBellRinger" - @jsii.member(jsii_name="yourTurn") - def your_turn(self, bell: "IBell") -> None: - """ - :param bell: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "yourTurn", [bell]) - - - @jsii.interface(jsii_type="jsii-calc.compliance.IConcreteBellRinger") - class IConcreteBellRinger(jsii.compat.Protocol): - """Takes the object parameter as a calss. - - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IConcreteBellRingerProxy - - @jsii.member(jsii_name="yourTurn") - def your_turn(self, bell: "Bell") -> None: - """ - :param bell: - - - stability - :stability: experimental - """ - ... - - - class _IConcreteBellRingerProxy(): - """Takes the object parameter as a calss. - - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IConcreteBellRinger" - @jsii.member(jsii_name="yourTurn") - def your_turn(self, bell: "Bell") -> None: - """ - :param bell: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "yourTurn", [bell]) - - - @jsii.interface(jsii_type="jsii-calc.compliance.IExtendsPrivateInterface") - class IExtendsPrivateInterface(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IExtendsPrivateInterfaceProxy - - @builtins.property - @jsii.member(jsii_name="moreThings") - def more_things(self) -> typing.List[str]: - """ - stability - :stability: experimental - """ - ... - - @builtins.property - @jsii.member(jsii_name="private") - def private(self) -> str: - """ - stability - :stability: experimental - """ - ... - - @private.setter - def private(self, value: str): - ... - - - class _IExtendsPrivateInterfaceProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IExtendsPrivateInterface" - @builtins.property - @jsii.member(jsii_name="moreThings") - def more_things(self) -> typing.List[str]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "moreThings") - - @builtins.property - @jsii.member(jsii_name="private") - def private(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "private") - - @private.setter - def private(self, value: str): - jsii.set(self, "private", value) - - - @jsii.interface(jsii_type="jsii-calc.compliance.IInterfaceImplementedByAbstractClass") - class IInterfaceImplementedByAbstractClass(jsii.compat.Protocol): - """awslabs/jsii#220 Abstract return type. - - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IInterfaceImplementedByAbstractClassProxy - - @builtins.property - @jsii.member(jsii_name="propFromInterface") - def prop_from_interface(self) -> str: - """ - stability - :stability: experimental - """ - ... - - - class _IInterfaceImplementedByAbstractClassProxy(): - """awslabs/jsii#220 Abstract return type. - - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IInterfaceImplementedByAbstractClass" - @builtins.property - @jsii.member(jsii_name="propFromInterface") - def prop_from_interface(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "propFromInterface") - - - @jsii.interface(jsii_type="jsii-calc.compliance.IInterfaceWithInternal") - class IInterfaceWithInternal(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IInterfaceWithInternalProxy - - @jsii.member(jsii_name="visible") - def visible(self) -> None: - """ - stability - :stability: experimental - """ - ... - - - class _IInterfaceWithInternalProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IInterfaceWithInternal" - @jsii.member(jsii_name="visible") - def visible(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "visible", []) - - - @jsii.interface(jsii_type="jsii-calc.compliance.IInterfaceWithMethods") - class IInterfaceWithMethods(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IInterfaceWithMethodsProxy - - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> str: - """ - stability - :stability: experimental - """ - ... - - @jsii.member(jsii_name="doThings") - def do_things(self) -> None: - """ - stability - :stability: experimental - """ - ... - - - class _IInterfaceWithMethodsProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IInterfaceWithMethods" - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "value") - - @jsii.member(jsii_name="doThings") - def do_things(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "doThings", []) - - - @jsii.interface(jsii_type="jsii-calc.compliance.IInterfaceWithOptionalMethodArguments") - class IInterfaceWithOptionalMethodArguments(jsii.compat.Protocol): - """awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods. - - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IInterfaceWithOptionalMethodArgumentsProxy - - @jsii.member(jsii_name="hello") - def hello(self, arg1: str, arg2: typing.Optional[jsii.Number]=None) -> None: - """ - :param arg1: - - :param arg2: - - - stability - :stability: experimental - """ - ... - - - class _IInterfaceWithOptionalMethodArgumentsProxy(): - """awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods. - - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IInterfaceWithOptionalMethodArguments" - @jsii.member(jsii_name="hello") - def hello(self, arg1: str, arg2: typing.Optional[jsii.Number]=None) -> None: - """ - :param arg1: - - :param arg2: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "hello", [arg1, arg2]) - - - @jsii.interface(jsii_type="jsii-calc.compliance.IInterfaceWithProperties") - class IInterfaceWithProperties(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IInterfaceWithPropertiesProxy - - @builtins.property - @jsii.member(jsii_name="readOnlyString") - def read_only_string(self) -> str: - """ - stability - :stability: experimental - """ - ... - - @builtins.property - @jsii.member(jsii_name="readWriteString") - def read_write_string(self) -> str: - """ - stability - :stability: experimental - """ - ... - - @read_write_string.setter - def read_write_string(self, value: str): - ... - - - class _IInterfaceWithPropertiesProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IInterfaceWithProperties" - @builtins.property - @jsii.member(jsii_name="readOnlyString") - def read_only_string(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "readOnlyString") - - @builtins.property - @jsii.member(jsii_name="readWriteString") - def read_write_string(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "readWriteString") - - @read_write_string.setter - def read_write_string(self, value: str): - jsii.set(self, "readWriteString", value) - - - @jsii.interface(jsii_type="jsii-calc.compliance.IInterfaceWithPropertiesExtension") - class IInterfaceWithPropertiesExtension(IInterfaceWithProperties, jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IInterfaceWithPropertiesExtensionProxy - - @builtins.property - @jsii.member(jsii_name="foo") - def foo(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - ... - - @foo.setter - def foo(self, value: jsii.Number): - ... - - - class _IInterfaceWithPropertiesExtensionProxy(jsii.proxy_for(IInterfaceWithProperties)): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IInterfaceWithPropertiesExtension" - @builtins.property - @jsii.member(jsii_name="foo") - def foo(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "foo") - - @foo.setter - def foo(self, value: jsii.Number): - jsii.set(self, "foo", value) - - - @jsii.interface(jsii_type="jsii-calc.compliance.IMutableObjectLiteral") - class IMutableObjectLiteral(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IMutableObjectLiteralProxy - - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> str: - """ - stability - :stability: experimental - """ - ... - - @value.setter - def value(self, value: str): - ... - - - class _IMutableObjectLiteralProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IMutableObjectLiteral" - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "value") - - @value.setter - def value(self, value: str): - jsii.set(self, "value", value) - - - @jsii.interface(jsii_type="jsii-calc.compliance.INonInternalInterface") - class INonInternalInterface(IAnotherPublicInterface, jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _INonInternalInterfaceProxy - - @builtins.property - @jsii.member(jsii_name="b") - def b(self) -> str: - """ - stability - :stability: experimental - """ - ... - - @b.setter - def b(self, value: str): - ... - - @builtins.property - @jsii.member(jsii_name="c") - def c(self) -> str: - """ - stability - :stability: experimental - """ - ... - - @c.setter - def c(self, value: str): - ... - - - class _INonInternalInterfaceProxy(jsii.proxy_for(IAnotherPublicInterface)): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.INonInternalInterface" - @builtins.property - @jsii.member(jsii_name="b") - def b(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "b") - - @b.setter - def b(self, value: str): - jsii.set(self, "b", value) - - @builtins.property - @jsii.member(jsii_name="c") - def c(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "c") - - @c.setter - def c(self, value: str): - jsii.set(self, "c", value) - - - @jsii.interface(jsii_type="jsii-calc.compliance.IObjectWithProperty") - class IObjectWithProperty(jsii.compat.Protocol): - """Make sure that setters are properly called on objects with interfaces. - - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IObjectWithPropertyProxy - - @builtins.property - @jsii.member(jsii_name="property") - def property(self) -> str: - """ - stability - :stability: experimental - """ - ... - - @property.setter - def property(self, value: str): - ... - - @jsii.member(jsii_name="wasSet") - def was_set(self) -> bool: - """ - stability - :stability: experimental - """ - ... - - - class _IObjectWithPropertyProxy(): - """Make sure that setters are properly called on objects with interfaces. - - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IObjectWithProperty" - @builtins.property - @jsii.member(jsii_name="property") - def property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "property") - - @property.setter - def property(self, value: str): - jsii.set(self, "property", value) - - @jsii.member(jsii_name="wasSet") - def was_set(self) -> bool: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "wasSet", []) - - - @jsii.interface(jsii_type="jsii-calc.compliance.IOptionalMethod") - class IOptionalMethod(jsii.compat.Protocol): - """Checks that optional result from interface method code generates correctly. - - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IOptionalMethodProxy - - @jsii.member(jsii_name="optional") - def optional(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - ... - - - class _IOptionalMethodProxy(): - """Checks that optional result from interface method code generates correctly. - - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IOptionalMethod" - @jsii.member(jsii_name="optional") - def optional(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "optional", []) - - - @jsii.interface(jsii_type="jsii-calc.compliance.IPrivatelyImplemented") - class IPrivatelyImplemented(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IPrivatelyImplementedProxy - - @builtins.property - @jsii.member(jsii_name="success") - def success(self) -> bool: - """ - stability - :stability: experimental - """ - ... - - - class _IPrivatelyImplementedProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IPrivatelyImplemented" - @builtins.property - @jsii.member(jsii_name="success") - def success(self) -> bool: - """ - stability - :stability: experimental - """ - return jsii.get(self, "success") - - - @jsii.interface(jsii_type="jsii-calc.compliance.IPublicInterface") - class IPublicInterface(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IPublicInterfaceProxy - - @jsii.member(jsii_name="bye") - def bye(self) -> str: - """ - stability - :stability: experimental - """ - ... - - - class _IPublicInterfaceProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IPublicInterface" - @jsii.member(jsii_name="bye") - def bye(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "bye", []) - - - @jsii.interface(jsii_type="jsii-calc.compliance.IPublicInterface2") - class IPublicInterface2(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IPublicInterface2Proxy - - @jsii.member(jsii_name="ciao") - def ciao(self) -> str: - """ - stability - :stability: experimental - """ - ... - - - class _IPublicInterface2Proxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IPublicInterface2" - @jsii.member(jsii_name="ciao") - def ciao(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "ciao", []) - - - @jsii.interface(jsii_type="jsii-calc.compliance.IReturnJsii976") - class IReturnJsii976(jsii.compat.Protocol): - """Returns a subclass of a known class which implements an interface. - - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IReturnJsii976Proxy - - @builtins.property - @jsii.member(jsii_name="foo") - def foo(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - ... - - - class _IReturnJsii976Proxy(): - """Returns a subclass of a known class which implements an interface. - - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IReturnJsii976" - @builtins.property - @jsii.member(jsii_name="foo") - def foo(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "foo") - - - @jsii.interface(jsii_type="jsii-calc.compliance.IReturnsNumber") - class IReturnsNumber(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IReturnsNumberProxy - - @builtins.property - @jsii.member(jsii_name="numberProp") - def number_prop(self) -> scope.jsii_calc_lib.Number: - """ - stability - :stability: experimental - """ - ... - - @jsii.member(jsii_name="obtainNumber") - def obtain_number(self) -> scope.jsii_calc_lib.IDoublable: - """ - stability - :stability: experimental - """ - ... - - - class _IReturnsNumberProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IReturnsNumber" - @builtins.property - @jsii.member(jsii_name="numberProp") - def number_prop(self) -> scope.jsii_calc_lib.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "numberProp") - - @jsii.member(jsii_name="obtainNumber") - def obtain_number(self) -> scope.jsii_calc_lib.IDoublable: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "obtainNumber", []) - - - @jsii.interface(jsii_type="jsii-calc.compliance.IStructReturningDelegate") - class IStructReturningDelegate(jsii.compat.Protocol): - """Verifies that a "pure" implementation of an interface works correctly. - - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IStructReturningDelegateProxy - - @jsii.member(jsii_name="returnStruct") - def return_struct(self) -> "StructB": - """ - stability - :stability: experimental - """ - ... - - - class _IStructReturningDelegateProxy(): - """Verifies that a "pure" implementation of an interface works correctly. - - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IStructReturningDelegate" - @jsii.member(jsii_name="returnStruct") - def return_struct(self) -> "StructB": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "returnStruct", []) - - - class ImplementInternalInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ImplementInternalInterface"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(ImplementInternalInterface, self, []) - - @builtins.property - @jsii.member(jsii_name="prop") - def prop(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "prop") - - @prop.setter - def prop(self, value: str): - jsii.set(self, "prop", value) - - - class Implementation(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.Implementation"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(Implementation, self, []) - - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "value") - - - @jsii.implements(IInterfaceWithInternal) - class ImplementsInterfaceWithInternal(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ImplementsInterfaceWithInternal"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(ImplementsInterfaceWithInternal, self, []) - - @jsii.member(jsii_name="visible") - def visible(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "visible", []) - - - class ImplementsInterfaceWithInternalSubclass(ImplementsInterfaceWithInternal, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ImplementsInterfaceWithInternalSubclass"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(ImplementsInterfaceWithInternalSubclass, self, []) - - - class ImplementsPrivateInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ImplementsPrivateInterface"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(ImplementsPrivateInterface, self, []) - - @builtins.property - @jsii.member(jsii_name="private") - def private(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "private") - - @private.setter - def private(self, value: str): - jsii.set(self, "private", value) - - - @jsii.data_type(jsii_type="jsii-calc.compliance.ImplictBaseOfBase", jsii_struct_bases=[scope.jsii_calc_base.BaseProps], name_mapping={'foo': 'foo', 'bar': 'bar', 'goo': 'goo'}) - class ImplictBaseOfBase(scope.jsii_calc_base.BaseProps): - def __init__(self, *, foo: scope.jsii_calc_base_of_base.Very, bar: str, goo: datetime.datetime): - """ - :param foo: - - :param bar: - - :param goo: - - stability - :stability: experimental - """ - self._values = { - 'foo': foo, - 'bar': bar, - 'goo': goo, - } - - @builtins.property - def foo(self) -> scope.jsii_calc_base_of_base.Very: - return self._values.get('foo') - - @builtins.property - def bar(self) -> str: - return self._values.get('bar') - - @builtins.property - def goo(self) -> datetime.datetime: - """ - stability - :stability: experimental - """ - return self._values.get('goo') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'ImplictBaseOfBase(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - - class InterfaceCollections(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.InterfaceCollections"): - """Verifies that collections of interfaces or structs are correctly handled. - - See: https://github.com/aws/jsii/issues/1196 - - stability - :stability: experimental - """ - @jsii.member(jsii_name="listOfInterfaces") - @builtins.classmethod - def list_of_interfaces(cls) -> typing.List["IBell"]: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "listOfInterfaces", []) - - @jsii.member(jsii_name="listOfStructs") - @builtins.classmethod - def list_of_structs(cls) -> typing.List["StructA"]: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "listOfStructs", []) - - @jsii.member(jsii_name="mapOfInterfaces") - @builtins.classmethod - def map_of_interfaces(cls) -> typing.Mapping[str,"IBell"]: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "mapOfInterfaces", []) - - @jsii.member(jsii_name="mapOfStructs") - @builtins.classmethod - def map_of_structs(cls) -> typing.Mapping[str,"StructA"]: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "mapOfStructs", []) - - - class interface_in_namespace_includes_classes: - class Foo(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Foo"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(jsii_calc.compliance.InterfaceInNamespaceIncludesClasses.Foo, self, []) - - @builtins.property - @jsii.member(jsii_name="bar") - def bar(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "bar") - - @bar.setter - def bar(self, value: typing.Optional[str]): - jsii.set(self, "bar", value) - - - @jsii.data_type(jsii_type="jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Hello", jsii_struct_bases=[], name_mapping={'foo': 'foo'}) - class Hello(): - def __init__(self, *, foo: jsii.Number): - """ - :param foo: - - stability - :stability: experimental - """ - self._values = { - 'foo': foo, - } - - @builtins.property - def foo(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return self._values.get('foo') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'Hello(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - - - class interface_in_namespace_only_interface: - @jsii.data_type(jsii_type="jsii-calc.compliance.InterfaceInNamespaceOnlyInterface.Hello", jsii_struct_bases=[], name_mapping={'foo': 'foo'}) - class Hello(): - def __init__(self, *, foo: jsii.Number): - """ - :param foo: - - stability - :stability: experimental - """ - self._values = { - 'foo': foo, - } - - @builtins.property - def foo(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return self._values.get('foo') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'Hello(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - - - class InterfacesMaker(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.InterfacesMaker"): - """We can return arrays of interfaces See aws/aws-cdk#2362. - - stability - :stability: experimental - """ - @jsii.member(jsii_name="makeInterfaces") - @builtins.classmethod - def make_interfaces(cls, count: jsii.Number) -> typing.List[scope.jsii_calc_lib.IDoublable]: - """ - :param count: - - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "makeInterfaces", [count]) - - - class JSObjectLiteralForInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.JSObjectLiteralForInterface"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(JSObjectLiteralForInterface, self, []) - - @jsii.member(jsii_name="giveMeFriendly") - def give_me_friendly(self) -> scope.jsii_calc_lib.IFriendly: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "giveMeFriendly", []) - - @jsii.member(jsii_name="giveMeFriendlyGenerator") - def give_me_friendly_generator(self) -> jsii_calc.IFriendlyRandomGenerator: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "giveMeFriendlyGenerator", []) - - - class JSObjectLiteralToNative(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.JSObjectLiteralToNative"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(JSObjectLiteralToNative, self, []) - - @jsii.member(jsii_name="returnLiteral") - def return_literal(self) -> "JSObjectLiteralToNativeClass": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "returnLiteral", []) - - - class JSObjectLiteralToNativeClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.JSObjectLiteralToNativeClass"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(JSObjectLiteralToNativeClass, self, []) - - @builtins.property - @jsii.member(jsii_name="propA") - def prop_a(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "propA") - - @prop_a.setter - def prop_a(self, value: str): - jsii.set(self, "propA", value) - - @builtins.property - @jsii.member(jsii_name="propB") - def prop_b(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "propB") - - @prop_b.setter - def prop_b(self, value: jsii.Number): - jsii.set(self, "propB", value) - - - class JavaReservedWords(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.JavaReservedWords"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(JavaReservedWords, self, []) - - @jsii.member(jsii_name="abstract") - def abstract(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "abstract", []) - - @jsii.member(jsii_name="assert") - def assert_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "assert", []) - - @jsii.member(jsii_name="boolean") - def boolean(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "boolean", []) - - @jsii.member(jsii_name="break") - def break_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "break", []) - - @jsii.member(jsii_name="byte") - def byte(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "byte", []) - - @jsii.member(jsii_name="case") - def case(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "case", []) - - @jsii.member(jsii_name="catch") - def catch(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "catch", []) - - @jsii.member(jsii_name="char") - def char(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "char", []) - - @jsii.member(jsii_name="class") - def class_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "class", []) - - @jsii.member(jsii_name="const") - def const(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "const", []) - - @jsii.member(jsii_name="continue") - def continue_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "continue", []) - - @jsii.member(jsii_name="default") - def default(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "default", []) - - @jsii.member(jsii_name="do") - def do(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "do", []) - - @jsii.member(jsii_name="double") - def double(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "double", []) - - @jsii.member(jsii_name="else") - def else_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "else", []) - - @jsii.member(jsii_name="enum") - def enum(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "enum", []) - - @jsii.member(jsii_name="extends") - def extends(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "extends", []) - - @jsii.member(jsii_name="false") - def false(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "false", []) - - @jsii.member(jsii_name="final") - def final(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "final", []) - - @jsii.member(jsii_name="finally") - def finally_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "finally", []) - - @jsii.member(jsii_name="float") - def float(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "float", []) - - @jsii.member(jsii_name="for") - def for_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "for", []) - - @jsii.member(jsii_name="goto") - def goto(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "goto", []) - - @jsii.member(jsii_name="if") - def if_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "if", []) - - @jsii.member(jsii_name="implements") - def implements(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "implements", []) - - @jsii.member(jsii_name="import") - def import_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "import", []) - - @jsii.member(jsii_name="instanceof") - def instanceof(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "instanceof", []) - - @jsii.member(jsii_name="int") - def int(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "int", []) - - @jsii.member(jsii_name="interface") - def interface(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "interface", []) - - @jsii.member(jsii_name="long") - def long(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "long", []) - - @jsii.member(jsii_name="native") - def native(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "native", []) - - @jsii.member(jsii_name="new") - def new(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "new", []) - - @jsii.member(jsii_name="null") - def null(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "null", []) - - @jsii.member(jsii_name="package") - def package(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "package", []) - - @jsii.member(jsii_name="private") - def private(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "private", []) - - @jsii.member(jsii_name="protected") - def protected(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "protected", []) - - @jsii.member(jsii_name="public") - def public(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "public", []) - - @jsii.member(jsii_name="return") - def return_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "return", []) - - @jsii.member(jsii_name="short") - def short(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "short", []) - - @jsii.member(jsii_name="static") - def static(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "static", []) - - @jsii.member(jsii_name="strictfp") - def strictfp(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "strictfp", []) - - @jsii.member(jsii_name="super") - def super(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "super", []) - - @jsii.member(jsii_name="switch") - def switch(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "switch", []) - - @jsii.member(jsii_name="synchronized") - def synchronized(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "synchronized", []) - - @jsii.member(jsii_name="this") - def this(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "this", []) - - @jsii.member(jsii_name="throw") - def throw(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "throw", []) - - @jsii.member(jsii_name="throws") - def throws(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "throws", []) - - @jsii.member(jsii_name="transient") - def transient(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "transient", []) - - @jsii.member(jsii_name="true") - def true(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "true", []) - - @jsii.member(jsii_name="try") - def try_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "try", []) - - @jsii.member(jsii_name="void") - def void(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "void", []) - - @jsii.member(jsii_name="volatile") - def volatile(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "volatile", []) - - @builtins.property - @jsii.member(jsii_name="while") - def while_(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "while") - - @while_.setter - def while_(self, value: str): - jsii.set(self, "while", value) - - - class JsiiAgent(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.JsiiAgent"): - """Host runtime version should be set via JSII_AGENT. - - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(JsiiAgent, self, []) - - @jsii.python.classproperty - @jsii.member(jsii_name="jsiiAgent") - def jsii_agent(cls) -> typing.Optional[str]: - """Returns the value of the JSII_AGENT environment variable. - - stability - :stability: experimental - """ - return jsii.sget(cls, "jsiiAgent") - - - class JsonFormatter(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.JsonFormatter"): - """Make sure structs are un-decorated on the way in. - - see - :see: https://github.com/aws/aws-cdk/issues/5066 - stability - :stability: experimental - """ - @jsii.member(jsii_name="anyArray") - @builtins.classmethod - def any_array(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyArray", []) - - @jsii.member(jsii_name="anyBooleanFalse") - @builtins.classmethod - def any_boolean_false(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyBooleanFalse", []) - - @jsii.member(jsii_name="anyBooleanTrue") - @builtins.classmethod - def any_boolean_true(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyBooleanTrue", []) - - @jsii.member(jsii_name="anyDate") - @builtins.classmethod - def any_date(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyDate", []) - - @jsii.member(jsii_name="anyEmptyString") - @builtins.classmethod - def any_empty_string(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyEmptyString", []) - - @jsii.member(jsii_name="anyFunction") - @builtins.classmethod - def any_function(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyFunction", []) - - @jsii.member(jsii_name="anyHash") - @builtins.classmethod - def any_hash(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyHash", []) - - @jsii.member(jsii_name="anyNull") - @builtins.classmethod - def any_null(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyNull", []) - - @jsii.member(jsii_name="anyNumber") - @builtins.classmethod - def any_number(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyNumber", []) - - @jsii.member(jsii_name="anyRef") - @builtins.classmethod - def any_ref(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyRef", []) - - @jsii.member(jsii_name="anyString") - @builtins.classmethod - def any_string(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyString", []) - - @jsii.member(jsii_name="anyUndefined") - @builtins.classmethod - def any_undefined(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyUndefined", []) - - @jsii.member(jsii_name="anyZero") - @builtins.classmethod - def any_zero(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyZero", []) - - @jsii.member(jsii_name="stringify") - @builtins.classmethod - def stringify(cls, value: typing.Any=None) -> typing.Optional[str]: - """ - :param value: - - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "stringify", [value]) - - - @jsii.data_type(jsii_type="jsii-calc.compliance.LoadBalancedFargateServiceProps", jsii_struct_bases=[], name_mapping={'container_port': 'containerPort', 'cpu': 'cpu', 'memory_mib': 'memoryMiB', 'public_load_balancer': 'publicLoadBalancer', 'public_tasks': 'publicTasks'}) - class LoadBalancedFargateServiceProps(): - def __init__(self, *, container_port: typing.Optional[jsii.Number]=None, cpu: typing.Optional[str]=None, memory_mib: typing.Optional[str]=None, public_load_balancer: typing.Optional[bool]=None, public_tasks: typing.Optional[bool]=None): - """jsii#298: show default values in sphinx documentation, and respect newlines. - - :param container_port: The container port of the application load balancer attached to your Fargate service. Corresponds to container port mapping. Default: 80 - :param cpu: The number of cpu units used by the task. Valid values, which determines your range of valid values for the memory parameter: 256 (.25 vCPU) - Available memory values: 0.5GB, 1GB, 2GB 512 (.5 vCPU) - Available memory values: 1GB, 2GB, 3GB, 4GB 1024 (1 vCPU) - Available memory values: 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB 2048 (2 vCPU) - Available memory values: Between 4GB and 16GB in 1GB increments 4096 (4 vCPU) - Available memory values: Between 8GB and 30GB in 1GB increments This default is set in the underlying FargateTaskDefinition construct. Default: 256 - :param memory_mib: The amount (in MiB) of memory used by the task. This field is required and you must use one of the following values, which determines your range of valid values for the cpu parameter: 0.5GB, 1GB, 2GB - Available cpu values: 256 (.25 vCPU) 1GB, 2GB, 3GB, 4GB - Available cpu values: 512 (.5 vCPU) 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - Available cpu values: 1024 (1 vCPU) Between 4GB and 16GB in 1GB increments - Available cpu values: 2048 (2 vCPU) Between 8GB and 30GB in 1GB increments - Available cpu values: 4096 (4 vCPU) This default is set in the underlying FargateTaskDefinition construct. Default: 512 - :param public_load_balancer: Determines whether the Application Load Balancer will be internet-facing. Default: true - :param public_tasks: Determines whether your Fargate Service will be assigned a public IP address. Default: false - - stability - :stability: experimental - """ - self._values = { - } - if container_port is not None: self._values["container_port"] = container_port - if cpu is not None: self._values["cpu"] = cpu - if memory_mib is not None: self._values["memory_mib"] = memory_mib - if public_load_balancer is not None: self._values["public_load_balancer"] = public_load_balancer - if public_tasks is not None: self._values["public_tasks"] = public_tasks - - @builtins.property - def container_port(self) -> typing.Optional[jsii.Number]: - """The container port of the application load balancer attached to your Fargate service. - - Corresponds to container port mapping. - - default - :default: 80 - - stability - :stability: experimental - """ - return self._values.get('container_port') - - @builtins.property - def cpu(self) -> typing.Optional[str]: - """The number of cpu units used by the task. - - Valid values, which determines your range of valid values for the memory parameter: - 256 (.25 vCPU) - Available memory values: 0.5GB, 1GB, 2GB - 512 (.5 vCPU) - Available memory values: 1GB, 2GB, 3GB, 4GB - 1024 (1 vCPU) - Available memory values: 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - 2048 (2 vCPU) - Available memory values: Between 4GB and 16GB in 1GB increments - 4096 (4 vCPU) - Available memory values: Between 8GB and 30GB in 1GB increments - - This default is set in the underlying FargateTaskDefinition construct. - - default - :default: 256 - - stability - :stability: experimental - """ - return self._values.get('cpu') - - @builtins.property - def memory_mib(self) -> typing.Optional[str]: - """The amount (in MiB) of memory used by the task. - - This field is required and you must use one of the following values, which determines your range of valid values - for the cpu parameter: - - 0.5GB, 1GB, 2GB - Available cpu values: 256 (.25 vCPU) - - 1GB, 2GB, 3GB, 4GB - Available cpu values: 512 (.5 vCPU) - - 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - Available cpu values: 1024 (1 vCPU) - - Between 4GB and 16GB in 1GB increments - Available cpu values: 2048 (2 vCPU) - - Between 8GB and 30GB in 1GB increments - Available cpu values: 4096 (4 vCPU) - - This default is set in the underlying FargateTaskDefinition construct. - - default - :default: 512 - - stability - :stability: experimental - """ - return self._values.get('memory_mib') - - @builtins.property - def public_load_balancer(self) -> typing.Optional[bool]: - """Determines whether the Application Load Balancer will be internet-facing. - - default - :default: true - - stability - :stability: experimental - """ - return self._values.get('public_load_balancer') - - @builtins.property - def public_tasks(self) -> typing.Optional[bool]: - """Determines whether your Fargate Service will be assigned a public IP address. - - default - :default: false - - stability - :stability: experimental - """ - return self._values.get('public_tasks') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'LoadBalancedFargateServiceProps(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - - @jsii.data_type(jsii_type="jsii-calc.compliance.NestedStruct", jsii_struct_bases=[], name_mapping={'number_prop': 'numberProp'}) - class NestedStruct(): - def __init__(self, *, number_prop: jsii.Number): - """ - :param number_prop: When provided, must be > 0. - - stability - :stability: experimental - """ - self._values = { - 'number_prop': number_prop, - } - - @builtins.property - def number_prop(self) -> jsii.Number: - """When provided, must be > 0. - - stability - :stability: experimental - """ - return self._values.get('number_prop') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'NestedStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - - class NodeStandardLibrary(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.NodeStandardLibrary"): - """Test fixture to verify that jsii modules can use the node standard library. - - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(NodeStandardLibrary, self, []) - - @jsii.member(jsii_name="cryptoSha256") - def crypto_sha256(self) -> str: - """Uses node.js "crypto" module to calculate sha256 of a string. - - return - :return: "6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50" - - stability - :stability: experimental - """ - return jsii.invoke(self, "cryptoSha256", []) - - @jsii.member(jsii_name="fsReadFile") - def fs_read_file(self) -> str: - """Reads a local resource file (resource.txt) asynchronously. - - return - :return: "Hello, resource!" - - stability - :stability: experimental - """ - return jsii.ainvoke(self, "fsReadFile", []) - - @jsii.member(jsii_name="fsReadFileSync") - def fs_read_file_sync(self) -> str: - """Sync version of fsReadFile. - - return - :return: "Hello, resource! SYNC!" - - stability - :stability: experimental - """ - return jsii.invoke(self, "fsReadFileSync", []) - - @builtins.property - @jsii.member(jsii_name="osPlatform") - def os_platform(self) -> str: - """Returns the current os.platform() from the "os" node module. - - stability - :stability: experimental - """ - return jsii.get(self, "osPlatform") - - - class NullShouldBeTreatedAsUndefined(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.NullShouldBeTreatedAsUndefined"): - """jsii#282, aws-cdk#157: null should be treated as "undefined". - - stability - :stability: experimental - """ - def __init__(self, _param1: str, optional: typing.Any=None) -> None: - """ - :param _param1: - - :param optional: - - - stability - :stability: experimental - """ - jsii.create(NullShouldBeTreatedAsUndefined, self, [_param1, optional]) - - @jsii.member(jsii_name="giveMeUndefined") - def give_me_undefined(self, value: typing.Any=None) -> None: - """ - :param value: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "giveMeUndefined", [value]) - - @jsii.member(jsii_name="giveMeUndefinedInsideAnObject") - def give_me_undefined_inside_an_object(self, *, array_with_three_elements_and_undefined_as_second_argument: typing.List[typing.Any], this_should_be_undefined: typing.Any=None) -> None: - """ - :param array_with_three_elements_and_undefined_as_second_argument: - :param this_should_be_undefined: - - stability - :stability: experimental - """ - input = NullShouldBeTreatedAsUndefinedData(array_with_three_elements_and_undefined_as_second_argument=array_with_three_elements_and_undefined_as_second_argument, this_should_be_undefined=this_should_be_undefined) - - return jsii.invoke(self, "giveMeUndefinedInsideAnObject", [input]) - - @jsii.member(jsii_name="verifyPropertyIsUndefined") - def verify_property_is_undefined(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "verifyPropertyIsUndefined", []) - - @builtins.property - @jsii.member(jsii_name="changeMeToUndefined") - def change_me_to_undefined(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "changeMeToUndefined") - - @change_me_to_undefined.setter - def change_me_to_undefined(self, value: typing.Optional[str]): - jsii.set(self, "changeMeToUndefined", value) - - - @jsii.data_type(jsii_type="jsii-calc.compliance.NullShouldBeTreatedAsUndefinedData", jsii_struct_bases=[], name_mapping={'array_with_three_elements_and_undefined_as_second_argument': 'arrayWithThreeElementsAndUndefinedAsSecondArgument', 'this_should_be_undefined': 'thisShouldBeUndefined'}) - class NullShouldBeTreatedAsUndefinedData(): - def __init__(self, *, array_with_three_elements_and_undefined_as_second_argument: typing.List[typing.Any], this_should_be_undefined: typing.Any=None): - """ - :param array_with_three_elements_and_undefined_as_second_argument: - :param this_should_be_undefined: - - stability - :stability: experimental - """ - self._values = { - 'array_with_three_elements_and_undefined_as_second_argument': array_with_three_elements_and_undefined_as_second_argument, - } - if this_should_be_undefined is not None: self._values["this_should_be_undefined"] = this_should_be_undefined - - @builtins.property - def array_with_three_elements_and_undefined_as_second_argument(self) -> typing.List[typing.Any]: - """ - stability - :stability: experimental - """ - return self._values.get('array_with_three_elements_and_undefined_as_second_argument') - - @builtins.property - def this_should_be_undefined(self) -> typing.Any: - """ - stability - :stability: experimental - """ - return self._values.get('this_should_be_undefined') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'NullShouldBeTreatedAsUndefinedData(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - - class NumberGenerator(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.NumberGenerator"): - """This allows us to test that a reference can be stored for objects that implement interfaces. - - stability - :stability: experimental - """ - def __init__(self, generator: jsii_calc.IRandomNumberGenerator) -> None: - """ - :param generator: - - - stability - :stability: experimental - """ - jsii.create(NumberGenerator, self, [generator]) - - @jsii.member(jsii_name="isSameGenerator") - def is_same_generator(self, gen: jsii_calc.IRandomNumberGenerator) -> bool: - """ - :param gen: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "isSameGenerator", [gen]) - - @jsii.member(jsii_name="nextTimes100") - def next_times100(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "nextTimes100", []) - - @builtins.property - @jsii.member(jsii_name="generator") - def generator(self) -> jsii_calc.IRandomNumberGenerator: - """ - stability - :stability: experimental - """ - return jsii.get(self, "generator") - - @generator.setter - def generator(self, value: jsii_calc.IRandomNumberGenerator): - jsii.set(self, "generator", value) - - - class ObjectRefsInCollections(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ObjectRefsInCollections"): - """Verify that object references can be passed inside collections. - - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(ObjectRefsInCollections, self, []) - - @jsii.member(jsii_name="sumFromArray") - def sum_from_array(self, values: typing.List[scope.jsii_calc_lib.Value]) -> jsii.Number: - """Returns the sum of all values. - - :param values: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "sumFromArray", [values]) - - @jsii.member(jsii_name="sumFromMap") - def sum_from_map(self, values: typing.Mapping[str,scope.jsii_calc_lib.Value]) -> jsii.Number: - """Returns the sum of all values in a map. - - :param values: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "sumFromMap", [values]) - - - class ObjectWithPropertyProvider(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ObjectWithPropertyProvider"): - """ - stability - :stability: experimental - """ - @jsii.member(jsii_name="provide") - @builtins.classmethod - def provide(cls) -> "IObjectWithProperty": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "provide", []) - - - class OptionalArgumentInvoker(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.OptionalArgumentInvoker"): - """ - stability - :stability: experimental - """ - def __init__(self, delegate: "IInterfaceWithOptionalMethodArguments") -> None: - """ - :param delegate: - - - stability - :stability: experimental - """ - jsii.create(OptionalArgumentInvoker, self, [delegate]) - - @jsii.member(jsii_name="invokeWithOptional") - def invoke_with_optional(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "invokeWithOptional", []) - - @jsii.member(jsii_name="invokeWithoutOptional") - def invoke_without_optional(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "invokeWithoutOptional", []) - - - class OptionalConstructorArgument(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.OptionalConstructorArgument"): - """ - stability - :stability: experimental - """ - def __init__(self, arg1: jsii.Number, arg2: str, arg3: typing.Optional[datetime.datetime]=None) -> None: - """ - :param arg1: - - :param arg2: - - :param arg3: - - - stability - :stability: experimental - """ - jsii.create(OptionalConstructorArgument, self, [arg1, arg2, arg3]) - - @builtins.property - @jsii.member(jsii_name="arg1") - def arg1(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "arg1") - - @builtins.property - @jsii.member(jsii_name="arg2") - def arg2(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "arg2") - - @builtins.property - @jsii.member(jsii_name="arg3") - def arg3(self) -> typing.Optional[datetime.datetime]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "arg3") - - - @jsii.data_type(jsii_type="jsii-calc.compliance.OptionalStruct", jsii_struct_bases=[], name_mapping={'field': 'field'}) - class OptionalStruct(): - def __init__(self, *, field: typing.Optional[str]=None): - """ - :param field: - - stability - :stability: experimental - """ - self._values = { - } - if field is not None: self._values["field"] = field - - @builtins.property - def field(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return self._values.get('field') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'OptionalStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - - class OptionalStructConsumer(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.OptionalStructConsumer"): - """ - stability - :stability: experimental - """ - def __init__(self, *, field: typing.Optional[str]=None) -> None: - """ - :param field: - - stability - :stability: experimental - """ - optional_struct = OptionalStruct(field=field) - - jsii.create(OptionalStructConsumer, self, [optional_struct]) - - @builtins.property - @jsii.member(jsii_name="parameterWasUndefined") - def parameter_was_undefined(self) -> bool: - """ - stability - :stability: experimental - """ - return jsii.get(self, "parameterWasUndefined") - - @builtins.property - @jsii.member(jsii_name="fieldValue") - def field_value(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "fieldValue") - - - class OverridableProtectedMember(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.OverridableProtectedMember"): - """ - see - :see: https://github.com/aws/jsii/issues/903 - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(OverridableProtectedMember, self, []) - - @jsii.member(jsii_name="overrideMe") - def _override_me(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "overrideMe", []) - - @jsii.member(jsii_name="switchModes") - def switch_modes(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "switchModes", []) - - @jsii.member(jsii_name="valueFromProtected") - def value_from_protected(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "valueFromProtected", []) - - @builtins.property - @jsii.member(jsii_name="overrideReadOnly") - def _override_read_only(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "overrideReadOnly") - - @builtins.property - @jsii.member(jsii_name="overrideReadWrite") - def _override_read_write(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "overrideReadWrite") - - @_override_read_write.setter - def _override_read_write(self, value: str): - jsii.set(self, "overrideReadWrite", value) - - - class OverrideReturnsObject(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.OverrideReturnsObject"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(OverrideReturnsObject, self, []) - - @jsii.member(jsii_name="test") - def test(self, obj: "IReturnsNumber") -> jsii.Number: - """ - :param obj: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "test", [obj]) - - - @jsii.data_type(jsii_type="jsii-calc.compliance.ParentStruct982", jsii_struct_bases=[], name_mapping={'foo': 'foo'}) - class ParentStruct982(): - def __init__(self, *, foo: str): - """https://github.com/aws/jsii/issues/982. - - :param foo: - - stability - :stability: experimental - """ - self._values = { - 'foo': foo, - } - - @builtins.property - def foo(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('foo') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'ParentStruct982(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - - class PartiallyInitializedThisConsumer(metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.compliance.PartiallyInitializedThisConsumer"): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _PartiallyInitializedThisConsumerProxy - - def __init__(self) -> None: - jsii.create(PartiallyInitializedThisConsumer, self, []) - - @jsii.member(jsii_name="consumePartiallyInitializedThis") - @abc.abstractmethod - def consume_partially_initialized_this(self, obj: "ConstructorPassesThisOut", dt: datetime.datetime, ev: "AllTypesEnum") -> str: - """ - :param obj: - - :param dt: - - :param ev: - - - stability - :stability: experimental - """ - ... - - - class _PartiallyInitializedThisConsumerProxy(PartiallyInitializedThisConsumer): - @jsii.member(jsii_name="consumePartiallyInitializedThis") - def consume_partially_initialized_this(self, obj: "ConstructorPassesThisOut", dt: datetime.datetime, ev: "AllTypesEnum") -> str: - """ - :param obj: - - :param dt: - - :param ev: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "consumePartiallyInitializedThis", [obj, dt, ev]) - - - class Polymorphism(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.Polymorphism"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(Polymorphism, self, []) - - @jsii.member(jsii_name="sayHello") - def say_hello(self, friendly: scope.jsii_calc_lib.IFriendly) -> str: - """ - :param friendly: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "sayHello", [friendly]) - - - class PublicClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.PublicClass"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(PublicClass, self, []) - - @jsii.member(jsii_name="hello") - def hello(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "hello", []) - - - class PythonReservedWords(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.PythonReservedWords"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(PythonReservedWords, self, []) - - @jsii.member(jsii_name="and") - def and_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "and", []) - - @jsii.member(jsii_name="as") - def as_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "as", []) - - @jsii.member(jsii_name="assert") - def assert_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "assert", []) - - @jsii.member(jsii_name="async") - def async_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "async", []) - - @jsii.member(jsii_name="await") - def await_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "await", []) - - @jsii.member(jsii_name="break") - def break_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "break", []) - - @jsii.member(jsii_name="class") - def class_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "class", []) - - @jsii.member(jsii_name="continue") - def continue_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "continue", []) - - @jsii.member(jsii_name="def") - def def_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "def", []) - - @jsii.member(jsii_name="del") - def del_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "del", []) - - @jsii.member(jsii_name="elif") - def elif_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "elif", []) - - @jsii.member(jsii_name="else") - def else_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "else", []) - - @jsii.member(jsii_name="except") - def except_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "except", []) - - @jsii.member(jsii_name="finally") - def finally_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "finally", []) - - @jsii.member(jsii_name="for") - def for_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "for", []) - - @jsii.member(jsii_name="from") - def from_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "from", []) - - @jsii.member(jsii_name="global") - def global_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "global", []) - - @jsii.member(jsii_name="if") - def if_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "if", []) - - @jsii.member(jsii_name="import") - def import_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "import", []) - - @jsii.member(jsii_name="in") - def in_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "in", []) - - @jsii.member(jsii_name="is") - def is_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "is", []) - - @jsii.member(jsii_name="lambda") - def lambda_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "lambda", []) - - @jsii.member(jsii_name="nonlocal") - def nonlocal_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "nonlocal", []) - - @jsii.member(jsii_name="not") - def not_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "not", []) - - @jsii.member(jsii_name="or") - def or_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "or", []) - - @jsii.member(jsii_name="pass") - def pass_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "pass", []) - - @jsii.member(jsii_name="raise") - def raise_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "raise", []) - - @jsii.member(jsii_name="return") - def return_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "return", []) - - @jsii.member(jsii_name="try") - def try_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "try", []) - - @jsii.member(jsii_name="while") - def while_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "while", []) - - @jsii.member(jsii_name="with") - def with_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "with", []) - - @jsii.member(jsii_name="yield") - def yield_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "yield", []) - - - class ReferenceEnumFromScopedPackage(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ReferenceEnumFromScopedPackage"): - """See awslabs/jsii#138. - - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(ReferenceEnumFromScopedPackage, self, []) - - @jsii.member(jsii_name="loadFoo") - def load_foo(self) -> typing.Optional[scope.jsii_calc_lib.EnumFromScopedModule]: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "loadFoo", []) - - @jsii.member(jsii_name="saveFoo") - def save_foo(self, value: scope.jsii_calc_lib.EnumFromScopedModule) -> None: - """ - :param value: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "saveFoo", [value]) - - @builtins.property - @jsii.member(jsii_name="foo") - def foo(self) -> typing.Optional[scope.jsii_calc_lib.EnumFromScopedModule]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "foo") - - @foo.setter - def foo(self, value: typing.Optional[scope.jsii_calc_lib.EnumFromScopedModule]): - jsii.set(self, "foo", value) - - - class ReturnsPrivateImplementationOfInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ReturnsPrivateImplementationOfInterface"): - """Helps ensure the JSII kernel & runtime cooperate correctly when an un-exported instance of a class is returned with a declared type that is an exported interface, and the instance inherits from an exported class. - - return - :return: an instance of an un-exported class that extends ``ExportedBaseClass``, declared as ``IPrivatelyImplemented``. - - see - :see: https://github.com/aws/jsii/issues/320 - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(ReturnsPrivateImplementationOfInterface, self, []) - - @builtins.property - @jsii.member(jsii_name="privateImplementation") - def private_implementation(self) -> "IPrivatelyImplemented": - """ - stability - :stability: experimental - """ - return jsii.get(self, "privateImplementation") - - - @jsii.data_type(jsii_type="jsii-calc.compliance.RootStruct", jsii_struct_bases=[], name_mapping={'string_prop': 'stringProp', 'nested_struct': 'nestedStruct'}) - class RootStruct(): - def __init__(self, *, string_prop: str, nested_struct: typing.Optional["NestedStruct"]=None): - """This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary. - - This is cheating with the (current) declared types, but this is the "more - idiomatic" way for Pythonists. - - :param string_prop: May not be empty. - :param nested_struct: - - stability - :stability: experimental - """ - if isinstance(nested_struct, dict): nested_struct = NestedStruct(**nested_struct) - self._values = { - 'string_prop': string_prop, - } - if nested_struct is not None: self._values["nested_struct"] = nested_struct - - @builtins.property - def string_prop(self) -> str: - """May not be empty. - - stability - :stability: experimental - """ - return self._values.get('string_prop') - - @builtins.property - def nested_struct(self) -> typing.Optional["NestedStruct"]: - """ - stability - :stability: experimental - """ - return self._values.get('nested_struct') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'RootStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - - class RootStructValidator(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.RootStructValidator"): - """ - stability - :stability: experimental - """ - @jsii.member(jsii_name="validate") - @builtins.classmethod - def validate(cls, *, string_prop: str, nested_struct: typing.Optional["NestedStruct"]=None) -> None: - """ - :param string_prop: May not be empty. - :param nested_struct: - - stability - :stability: experimental - """ - struct = RootStruct(string_prop=string_prop, nested_struct=nested_struct) - - return jsii.sinvoke(cls, "validate", [struct]) - - - class RuntimeTypeChecking(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.RuntimeTypeChecking"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(RuntimeTypeChecking, self, []) - - @jsii.member(jsii_name="methodWithDefaultedArguments") - def method_with_defaulted_arguments(self, arg1: typing.Optional[jsii.Number]=None, arg2: typing.Optional[str]=None, arg3: typing.Optional[datetime.datetime]=None) -> None: - """ - :param arg1: - - :param arg2: - - :param arg3: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "methodWithDefaultedArguments", [arg1, arg2, arg3]) - - @jsii.member(jsii_name="methodWithOptionalAnyArgument") - def method_with_optional_any_argument(self, arg: typing.Any=None) -> None: - """ - :param arg: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "methodWithOptionalAnyArgument", [arg]) - - @jsii.member(jsii_name="methodWithOptionalArguments") - def method_with_optional_arguments(self, arg1: jsii.Number, arg2: str, arg3: typing.Optional[datetime.datetime]=None) -> None: - """Used to verify verification of number of method arguments. - - :param arg1: - - :param arg2: - - :param arg3: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "methodWithOptionalArguments", [arg1, arg2, arg3]) - - - @jsii.data_type(jsii_type="jsii-calc.compliance.SecondLevelStruct", jsii_struct_bases=[], name_mapping={'deeper_required_prop': 'deeperRequiredProp', 'deeper_optional_prop': 'deeperOptionalProp'}) - class SecondLevelStruct(): - def __init__(self, *, deeper_required_prop: str, deeper_optional_prop: typing.Optional[str]=None): - """ - :param deeper_required_prop: It's long and required. - :param deeper_optional_prop: It's long, but you'll almost never pass it. - - stability - :stability: experimental - """ - self._values = { - 'deeper_required_prop': deeper_required_prop, - } - if deeper_optional_prop is not None: self._values["deeper_optional_prop"] = deeper_optional_prop - - @builtins.property - def deeper_required_prop(self) -> str: - """It's long and required. - - stability - :stability: experimental - """ - return self._values.get('deeper_required_prop') - - @builtins.property - def deeper_optional_prop(self) -> typing.Optional[str]: - """It's long, but you'll almost never pass it. - - stability - :stability: experimental - """ - return self._values.get('deeper_optional_prop') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'SecondLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - - class SingleInstanceTwoTypes(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.SingleInstanceTwoTypes"): - """Test that a single instance can be returned under two different FQNs. - - JSII clients can instantiate 2 different strongly-typed wrappers for the same - object. Unfortunately, this will break object equality, but if we didn't do - this it would break runtime type checks in the JVM or CLR. - - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(SingleInstanceTwoTypes, self, []) - - @jsii.member(jsii_name="interface1") - def interface1(self) -> "InbetweenClass": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "interface1", []) - - @jsii.member(jsii_name="interface2") - def interface2(self) -> "IPublicInterface": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "interface2", []) - - - class SingletonInt(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.SingletonInt"): - """Verifies that singleton enums are handled correctly. - - https://github.com/aws/jsii/issues/231 - - stability - :stability: experimental - """ - @jsii.member(jsii_name="isSingletonInt") - def is_singleton_int(self, value: jsii.Number) -> bool: - """ - :param value: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "isSingletonInt", [value]) - - - @jsii.enum(jsii_type="jsii-calc.compliance.SingletonIntEnum") - class SingletonIntEnum(enum.Enum): - """A singleton integer. - - stability - :stability: experimental - """ - SINGLETON_INT = "SINGLETON_INT" - """Elite! - - stability - :stability: experimental - """ - - class SingletonString(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.SingletonString"): - """Verifies that singleton enums are handled correctly. - - https://github.com/aws/jsii/issues/231 - - stability - :stability: experimental - """ - @jsii.member(jsii_name="isSingletonString") - def is_singleton_string(self, value: str) -> bool: - """ - :param value: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "isSingletonString", [value]) - - - @jsii.enum(jsii_type="jsii-calc.compliance.SingletonStringEnum") - class SingletonStringEnum(enum.Enum): - """A singleton string. - - stability - :stability: experimental - """ - SINGLETON_STRING = "SINGLETON_STRING" - """1337. - - stability - :stability: experimental - """ - - class SomeTypeJsii976(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.SomeTypeJsii976"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(SomeTypeJsii976, self, []) - - @jsii.member(jsii_name="returnAnonymous") - @builtins.classmethod - def return_anonymous(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "returnAnonymous", []) - - @jsii.member(jsii_name="returnReturn") - @builtins.classmethod - def return_return(cls) -> "IReturnJsii976": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "returnReturn", []) - - - class StaticContext(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.StaticContext"): - """This is used to validate the ability to use ``this`` from within a static context. - - https://github.com/awslabs/aws-cdk/issues/2304 - - stability - :stability: experimental - """ - @jsii.member(jsii_name="canAccessStaticContext") - @builtins.classmethod - def can_access_static_context(cls) -> bool: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "canAccessStaticContext", []) - - @jsii.python.classproperty - @jsii.member(jsii_name="staticVariable") - def static_variable(cls) -> bool: - """ - stability - :stability: experimental - """ - return jsii.sget(cls, "staticVariable") - - @static_variable.setter - def static_variable(cls, value: bool): - jsii.sset(cls, "staticVariable", value) - - - class Statics(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.Statics"): - """ - stability - :stability: experimental - """ - def __init__(self, value: str) -> None: - """ - :param value: - - - stability - :stability: experimental - """ - jsii.create(Statics, self, [value]) - - @jsii.member(jsii_name="staticMethod") - @builtins.classmethod - def static_method(cls, name: str) -> str: - """Jsdocs for static method. - - :param name: The name of the person to say hello to. - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "staticMethod", [name]) - - @jsii.member(jsii_name="justMethod") - def just_method(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "justMethod", []) - - @jsii.python.classproperty - @jsii.member(jsii_name="BAR") - def BAR(cls) -> jsii.Number: - """Constants may also use all-caps. - - stability - :stability: experimental - """ - return jsii.sget(cls, "BAR") - - @jsii.python.classproperty - @jsii.member(jsii_name="ConstObj") - def CONST_OBJ(cls) -> "DoubleTrouble": - """ - stability - :stability: experimental - """ - return jsii.sget(cls, "ConstObj") - - @jsii.python.classproperty - @jsii.member(jsii_name="Foo") - def FOO(cls) -> str: - """Jsdocs for static property. - - stability - :stability: experimental - """ - return jsii.sget(cls, "Foo") - - @jsii.python.classproperty - @jsii.member(jsii_name="zooBar") - def ZOO_BAR(cls) -> typing.Mapping[str,str]: - """Constants can also use camelCase. - - stability - :stability: experimental - """ - return jsii.sget(cls, "zooBar") - - @jsii.python.classproperty - @jsii.member(jsii_name="instance") - def instance(cls) -> "Statics": - """Jsdocs for static getter. - - Jsdocs for static setter. - - stability - :stability: experimental - """ - return jsii.sget(cls, "instance") - - @instance.setter - def instance(cls, value: "Statics"): - jsii.sset(cls, "instance", value) - - @jsii.python.classproperty - @jsii.member(jsii_name="nonConstStatic") - def non_const_static(cls) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.sget(cls, "nonConstStatic") - - @non_const_static.setter - def non_const_static(cls, value: jsii.Number): - jsii.sset(cls, "nonConstStatic", value) - - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "value") - - - @jsii.enum(jsii_type="jsii-calc.compliance.StringEnum") - class StringEnum(enum.Enum): - """ - stability - :stability: experimental - """ - A = "A" - """ - stability - :stability: experimental - """ - B = "B" - """ - stability - :stability: experimental - """ - C = "C" - """ - stability - :stability: experimental - """ - - class StripInternal(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.StripInternal"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(StripInternal, self, []) - - @builtins.property - @jsii.member(jsii_name="youSeeMe") - def you_see_me(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "youSeeMe") - - @you_see_me.setter - def you_see_me(self, value: str): - jsii.set(self, "youSeeMe", value) - - - @jsii.data_type(jsii_type="jsii-calc.compliance.StructA", jsii_struct_bases=[], name_mapping={'required_string': 'requiredString', 'optional_number': 'optionalNumber', 'optional_string': 'optionalString'}) - class StructA(): - def __init__(self, *, required_string: str, optional_number: typing.Optional[jsii.Number]=None, optional_string: typing.Optional[str]=None): - """We can serialize and deserialize structs without silently ignoring optional fields. - - :param required_string: - :param optional_number: - :param optional_string: - - stability - :stability: experimental - """ - self._values = { - 'required_string': required_string, - } - if optional_number is not None: self._values["optional_number"] = optional_number - if optional_string is not None: self._values["optional_string"] = optional_string - - @builtins.property - def required_string(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('required_string') - - @builtins.property - def optional_number(self) -> typing.Optional[jsii.Number]: - """ - stability - :stability: experimental - """ - return self._values.get('optional_number') - - @builtins.property - def optional_string(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return self._values.get('optional_string') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'StructA(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - - @jsii.data_type(jsii_type="jsii-calc.compliance.StructB", jsii_struct_bases=[], name_mapping={'required_string': 'requiredString', 'optional_boolean': 'optionalBoolean', 'optional_struct_a': 'optionalStructA'}) - class StructB(): - def __init__(self, *, required_string: str, optional_boolean: typing.Optional[bool]=None, optional_struct_a: typing.Optional["StructA"]=None): - """This intentionally overlaps with StructA (where only requiredString is provided) to test htat the kernel properly disambiguates those. - - :param required_string: - :param optional_boolean: - :param optional_struct_a: - - stability - :stability: experimental - """ - if isinstance(optional_struct_a, dict): optional_struct_a = StructA(**optional_struct_a) - self._values = { - 'required_string': required_string, - } - if optional_boolean is not None: self._values["optional_boolean"] = optional_boolean - if optional_struct_a is not None: self._values["optional_struct_a"] = optional_struct_a - - @builtins.property - def required_string(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('required_string') - - @builtins.property - def optional_boolean(self) -> typing.Optional[bool]: - """ - stability - :stability: experimental - """ - return self._values.get('optional_boolean') - - @builtins.property - def optional_struct_a(self) -> typing.Optional["StructA"]: - """ - stability - :stability: experimental - """ - return self._values.get('optional_struct_a') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'StructB(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - - @jsii.data_type(jsii_type="jsii-calc.compliance.StructParameterType", jsii_struct_bases=[], name_mapping={'scope': 'scope', 'props': 'props'}) - class StructParameterType(): - def __init__(self, *, scope: str, props: typing.Optional[bool]=None): - """Verifies that, in languages that do keyword lifting (e.g: Python), having a struct member with the same name as a positional parameter results in the correct code being emitted. - - See: https://github.com/aws/aws-cdk/issues/4302 - - :param scope: - :param props: - - stability - :stability: experimental - """ - self._values = { - 'scope': scope, - } - if props is not None: self._values["props"] = props - - @builtins.property - def scope(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('scope') - - @builtins.property - def props(self) -> typing.Optional[bool]: - """ - stability - :stability: experimental - """ - return self._values.get('props') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'StructParameterType(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - - class StructPassing(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.StructPassing"): - """Just because we can.""" - def __init__(self) -> None: - jsii.create(StructPassing, self, []) - - @jsii.member(jsii_name="howManyVarArgsDidIPass") - @builtins.classmethod - def how_many_var_args_did_i_pass(cls, _positional: jsii.Number, *inputs: "TopLevelStruct") -> jsii.Number: - """ - :param _positional: - - :param inputs: - - """ - return jsii.sinvoke(cls, "howManyVarArgsDidIPass", [_positional, *inputs]) - - @jsii.member(jsii_name="roundTrip") - @builtins.classmethod - def round_trip(cls, _positional: jsii.Number, *, required: str, second_level: typing.Union[jsii.Number, "SecondLevelStruct"], optional: typing.Optional[str]=None) -> "TopLevelStruct": - """ - :param _positional: - - :param required: This is a required field. - :param second_level: A union to really stress test our serialization. - :param optional: You don't have to pass this. - """ - input = TopLevelStruct(required=required, second_level=second_level, optional=optional) - - return jsii.sinvoke(cls, "roundTrip", [_positional, input]) - - - class StructUnionConsumer(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.StructUnionConsumer"): - """ - stability - :stability: experimental - """ - @jsii.member(jsii_name="isStructA") - @builtins.classmethod - def is_struct_a(cls, struct: typing.Union["StructA", "StructB"]) -> bool: - """ - :param struct: - - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "isStructA", [struct]) - - @jsii.member(jsii_name="isStructB") - @builtins.classmethod - def is_struct_b(cls, struct: typing.Union["StructA", "StructB"]) -> bool: - """ - :param struct: - - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "isStructB", [struct]) - - - @jsii.data_type(jsii_type="jsii-calc.compliance.StructWithJavaReservedWords", jsii_struct_bases=[], name_mapping={'default': 'default', 'assert_': 'assert', 'result': 'result', 'that': 'that'}) - class StructWithJavaReservedWords(): - def __init__(self, *, default: str, assert_: typing.Optional[str]=None, result: typing.Optional[str]=None, that: typing.Optional[str]=None): - """ - :param default: - :param assert_: - :param result: - :param that: - - stability - :stability: experimental - """ - self._values = { - 'default': default, - } - if assert_ is not None: self._values["assert_"] = assert_ - if result is not None: self._values["result"] = result - if that is not None: self._values["that"] = that - - @builtins.property - def default(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('default') - - @builtins.property - def assert_(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return self._values.get('assert_') - - @builtins.property - def result(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return self._values.get('result') - - @builtins.property - def that(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return self._values.get('that') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'StructWithJavaReservedWords(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - - @jsii.data_type(jsii_type="jsii-calc.compliance.SupportsNiceJavaBuilderProps", jsii_struct_bases=[], name_mapping={'bar': 'bar', 'id': 'id'}) - class SupportsNiceJavaBuilderProps(): - def __init__(self, *, bar: jsii.Number, id: typing.Optional[str]=None): - """ - :param bar: Some number, like 42. - :param id: An ``id`` field here is terrible API design, because the constructor of ``SupportsNiceJavaBuilder`` already has a parameter named ``id``. But here we are, doing it like we didn't care. - - stability - :stability: experimental - """ - self._values = { - 'bar': bar, - } - if id is not None: self._values["id"] = id - - @builtins.property - def bar(self) -> jsii.Number: - """Some number, like 42. - - stability - :stability: experimental - """ - return self._values.get('bar') - - @builtins.property - def id(self) -> typing.Optional[str]: - """An ``id`` field here is terrible API design, because the constructor of ``SupportsNiceJavaBuilder`` already has a parameter named ``id``. - - But here we are, doing it like we didn't care. - - stability - :stability: experimental - """ - return self._values.get('id') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'SupportsNiceJavaBuilderProps(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - - class SupportsNiceJavaBuilderWithRequiredProps(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.SupportsNiceJavaBuilderWithRequiredProps"): - """We can generate fancy builders in Java for classes which take a mix of positional & struct parameters. - - stability - :stability: experimental - """ - def __init__(self, id_: jsii.Number, *, bar: jsii.Number, id: typing.Optional[str]=None) -> None: - """ - :param id_: some identifier of your choice. - :param bar: Some number, like 42. - :param id: An ``id`` field here is terrible API design, because the constructor of ``SupportsNiceJavaBuilder`` already has a parameter named ``id``. But here we are, doing it like we didn't care. - - stability - :stability: experimental - """ - props = SupportsNiceJavaBuilderProps(bar=bar, id=id) - - jsii.create(SupportsNiceJavaBuilderWithRequiredProps, self, [id_, props]) - - @builtins.property - @jsii.member(jsii_name="bar") - def bar(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "bar") - - @builtins.property - @jsii.member(jsii_name="id") - def id(self) -> jsii.Number: - """some identifier of your choice. - - stability - :stability: experimental - """ - return jsii.get(self, "id") - - @builtins.property - @jsii.member(jsii_name="propId") - def prop_id(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "propId") - - - class SyncVirtualMethods(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.SyncVirtualMethods"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(SyncVirtualMethods, self, []) - - @jsii.member(jsii_name="callerIsAsync") - def caller_is_async(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.ainvoke(self, "callerIsAsync", []) - - @jsii.member(jsii_name="callerIsMethod") - def caller_is_method(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "callerIsMethod", []) - - @jsii.member(jsii_name="modifyOtherProperty") - def modify_other_property(self, value: str) -> None: - """ - :param value: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "modifyOtherProperty", [value]) - - @jsii.member(jsii_name="modifyValueOfTheProperty") - def modify_value_of_the_property(self, value: str) -> None: - """ - :param value: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "modifyValueOfTheProperty", [value]) - - @jsii.member(jsii_name="readA") - def read_a(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "readA", []) - - @jsii.member(jsii_name="retrieveOtherProperty") - def retrieve_other_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "retrieveOtherProperty", []) - - @jsii.member(jsii_name="retrieveReadOnlyProperty") - def retrieve_read_only_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "retrieveReadOnlyProperty", []) - - @jsii.member(jsii_name="retrieveValueOfTheProperty") - def retrieve_value_of_the_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "retrieveValueOfTheProperty", []) - - @jsii.member(jsii_name="virtualMethod") - def virtual_method(self, n: jsii.Number) -> jsii.Number: - """ - :param n: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "virtualMethod", [n]) - - @jsii.member(jsii_name="writeA") - def write_a(self, value: jsii.Number) -> None: - """ - :param value: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "writeA", [value]) - - @builtins.property - @jsii.member(jsii_name="readonlyProperty") - def readonly_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "readonlyProperty") - - @builtins.property - @jsii.member(jsii_name="a") - def a(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "a") - - @a.setter - def a(self, value: jsii.Number): - jsii.set(self, "a", value) - - @builtins.property - @jsii.member(jsii_name="callerIsProperty") - def caller_is_property(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "callerIsProperty") - - @caller_is_property.setter - def caller_is_property(self, value: jsii.Number): - jsii.set(self, "callerIsProperty", value) - - @builtins.property - @jsii.member(jsii_name="otherProperty") - def other_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "otherProperty") - - @other_property.setter - def other_property(self, value: str): - jsii.set(self, "otherProperty", value) - - @builtins.property - @jsii.member(jsii_name="theProperty") - def the_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "theProperty") - - @the_property.setter - def the_property(self, value: str): - jsii.set(self, "theProperty", value) - - @builtins.property - @jsii.member(jsii_name="valueOfOtherProperty") - def value_of_other_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "valueOfOtherProperty") - - @value_of_other_property.setter - def value_of_other_property(self, value: str): - jsii.set(self, "valueOfOtherProperty", value) - - - class Thrower(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.Thrower"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(Thrower, self, []) - - @jsii.member(jsii_name="throwError") - def throw_error(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "throwError", []) - - - @jsii.data_type(jsii_type="jsii-calc.compliance.TopLevelStruct", jsii_struct_bases=[], name_mapping={'required': 'required', 'second_level': 'secondLevel', 'optional': 'optional'}) - class TopLevelStruct(): - def __init__(self, *, required: str, second_level: typing.Union[jsii.Number, "SecondLevelStruct"], optional: typing.Optional[str]=None): - """ - :param required: This is a required field. - :param second_level: A union to really stress test our serialization. - :param optional: You don't have to pass this. - - stability - :stability: experimental - """ - self._values = { - 'required': required, - 'second_level': second_level, - } - if optional is not None: self._values["optional"] = optional - - @builtins.property - def required(self) -> str: - """This is a required field. - - stability - :stability: experimental - """ - return self._values.get('required') - - @builtins.property - def second_level(self) -> typing.Union[jsii.Number, "SecondLevelStruct"]: - """A union to really stress test our serialization. - - stability - :stability: experimental - """ - return self._values.get('second_level') - - @builtins.property - def optional(self) -> typing.Optional[str]: - """You don't have to pass this. - - stability - :stability: experimental - """ - return self._values.get('optional') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'TopLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - - @jsii.data_type(jsii_type="jsii-calc.compliance.UnionProperties", jsii_struct_bases=[], name_mapping={'bar': 'bar', 'foo': 'foo'}) - class UnionProperties(): - def __init__(self, *, bar: typing.Union[str, jsii.Number, "AllTypes"], foo: typing.Optional[typing.Union[typing.Optional[str], typing.Optional[jsii.Number]]]=None): - """ - :param bar: - :param foo: - - stability - :stability: experimental - """ - self._values = { - 'bar': bar, - } - if foo is not None: self._values["foo"] = foo - - @builtins.property - def bar(self) -> typing.Union[str, jsii.Number, "AllTypes"]: - """ - stability - :stability: experimental - """ - return self._values.get('bar') - - @builtins.property - def foo(self) -> typing.Optional[typing.Union[typing.Optional[str], typing.Optional[jsii.Number]]]: - """ - stability - :stability: experimental - """ - return self._values.get('foo') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'UnionProperties(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - - class UseBundledDependency(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.UseBundledDependency"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(UseBundledDependency, self, []) - - @jsii.member(jsii_name="value") - def value(self) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "value", []) - - - class UseCalcBase(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.UseCalcBase"): - """Depend on a type from jsii-calc-base as a test for awslabs/jsii#128. - - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(UseCalcBase, self, []) - - @jsii.member(jsii_name="hello") - def hello(self) -> scope.jsii_calc_base.Base: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "hello", []) - - - class UsesInterfaceWithProperties(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.UsesInterfaceWithProperties"): - """ - stability - :stability: experimental - """ - def __init__(self, obj: "IInterfaceWithProperties") -> None: - """ - :param obj: - - - stability - :stability: experimental - """ - jsii.create(UsesInterfaceWithProperties, self, [obj]) - - @jsii.member(jsii_name="justRead") - def just_read(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "justRead", []) - - @jsii.member(jsii_name="readStringAndNumber") - def read_string_and_number(self, ext: "IInterfaceWithPropertiesExtension") -> str: - """ - :param ext: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "readStringAndNumber", [ext]) - - @jsii.member(jsii_name="writeAndRead") - def write_and_read(self, value: str) -> str: - """ - :param value: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "writeAndRead", [value]) - - @builtins.property - @jsii.member(jsii_name="obj") - def obj(self) -> "IInterfaceWithProperties": - """ - stability - :stability: experimental - """ - return jsii.get(self, "obj") - - - class VariadicInvoker(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.VariadicInvoker"): - """ - stability - :stability: experimental - """ - def __init__(self, method: "VariadicMethod") -> None: - """ - :param method: - - - stability - :stability: experimental - """ - jsii.create(VariadicInvoker, self, [method]) - - @jsii.member(jsii_name="asArray") - def as_array(self, *values: jsii.Number) -> typing.List[jsii.Number]: - """ - :param values: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "asArray", [*values]) - - - class VariadicMethod(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.VariadicMethod"): - """ - stability - :stability: experimental - """ - def __init__(self, *prefix: jsii.Number) -> None: - """ - :param prefix: a prefix that will be use for all values returned by ``#asArray``. - - stability - :stability: experimental - """ - jsii.create(VariadicMethod, self, [*prefix]) - - @jsii.member(jsii_name="asArray") - def as_array(self, first: jsii.Number, *others: jsii.Number) -> typing.List[jsii.Number]: - """ - :param first: the first element of the array to be returned (after the ``prefix`` provided at construction time). - :param others: other elements to be included in the array. - - stability - :stability: experimental - """ - return jsii.invoke(self, "asArray", [first, *others]) - - - class VirtualMethodPlayground(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.VirtualMethodPlayground"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(VirtualMethodPlayground, self, []) - - @jsii.member(jsii_name="overrideMeAsync") - def override_me_async(self, index: jsii.Number) -> jsii.Number: - """ - :param index: - - - stability - :stability: experimental - """ - return jsii.ainvoke(self, "overrideMeAsync", [index]) - - @jsii.member(jsii_name="overrideMeSync") - def override_me_sync(self, index: jsii.Number) -> jsii.Number: - """ - :param index: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "overrideMeSync", [index]) - - @jsii.member(jsii_name="parallelSumAsync") - def parallel_sum_async(self, count: jsii.Number) -> jsii.Number: - """ - :param count: - - - stability - :stability: experimental - """ - return jsii.ainvoke(self, "parallelSumAsync", [count]) - - @jsii.member(jsii_name="serialSumAsync") - def serial_sum_async(self, count: jsii.Number) -> jsii.Number: - """ - :param count: - - - stability - :stability: experimental - """ - return jsii.ainvoke(self, "serialSumAsync", [count]) - - @jsii.member(jsii_name="sumSync") - def sum_sync(self, count: jsii.Number) -> jsii.Number: - """ - :param count: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "sumSync", [count]) - - - class VoidCallback(metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.compliance.VoidCallback"): - """This test is used to validate the runtimes can return correctly from a void callback. - - - Implement ``overrideMe`` (method does not have to do anything). - - Invoke ``callMe`` - - Verify that ``methodWasCalled`` is ``true``. - - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _VoidCallbackProxy - - def __init__(self) -> None: - jsii.create(VoidCallback, self, []) - - @jsii.member(jsii_name="callMe") - def call_me(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "callMe", []) - - @jsii.member(jsii_name="overrideMe") - @abc.abstractmethod - def _override_me(self) -> None: - """ - stability - :stability: experimental - """ - ... - - @builtins.property - @jsii.member(jsii_name="methodWasCalled") - def method_was_called(self) -> bool: - """ - stability - :stability: experimental - """ - return jsii.get(self, "methodWasCalled") - - - class _VoidCallbackProxy(VoidCallback): - @jsii.member(jsii_name="overrideMe") - def _override_me(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "overrideMe", []) - - - class WithPrivatePropertyInConstructor(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.WithPrivatePropertyInConstructor"): - """Verifies that private property declarations in constructor arguments are hidden. - - stability - :stability: experimental - """ - def __init__(self, private_field: typing.Optional[str]=None) -> None: - """ - :param private_field: - - - stability - :stability: experimental - """ - jsii.create(WithPrivatePropertyInConstructor, self, [private_field]) - - @builtins.property - @jsii.member(jsii_name="success") - def success(self) -> bool: - """ - stability - :stability: experimental - """ - return jsii.get(self, "success") - - - @jsii.implements(IInterfaceImplementedByAbstractClass) - class AbstractClass(AbstractClassBase, metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.compliance.AbstractClass"): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _AbstractClassProxy - - def __init__(self) -> None: - jsii.create(AbstractClass, self, []) - - @jsii.member(jsii_name="abstractMethod") - @abc.abstractmethod - def abstract_method(self, name: str) -> str: - """ - :param name: - - - stability - :stability: experimental - """ - ... - - @jsii.member(jsii_name="nonAbstractMethod") - def non_abstract_method(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "nonAbstractMethod", []) - - @builtins.property - @jsii.member(jsii_name="propFromInterface") - def prop_from_interface(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "propFromInterface") - - - class _AbstractClassProxy(AbstractClass, jsii.proxy_for(AbstractClassBase)): - @jsii.member(jsii_name="abstractMethod") - def abstract_method(self, name: str) -> str: - """ - :param name: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "abstractMethod", [name]) - - - @jsii.implements(IAnonymousImplementationProvider) - class AnonymousImplementationProvider(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.AnonymousImplementationProvider"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(AnonymousImplementationProvider, self, []) - - @jsii.member(jsii_name="provideAsClass") - def provide_as_class(self) -> "Implementation": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "provideAsClass", []) - - @jsii.member(jsii_name="provideAsInterface") - def provide_as_interface(self) -> "IAnonymouslyImplementMe": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "provideAsInterface", []) - - - @jsii.implements(IBell) - class Bell(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.Bell"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(Bell, self, []) - - @jsii.member(jsii_name="ring") - def ring(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "ring", []) - - @builtins.property - @jsii.member(jsii_name="rung") - def rung(self) -> bool: - """ - stability - :stability: experimental - """ - return jsii.get(self, "rung") - - @rung.setter - def rung(self, value: bool): - jsii.set(self, "rung", value) - - - @jsii.data_type(jsii_type="jsii-calc.compliance.ChildStruct982", jsii_struct_bases=[ParentStruct982], name_mapping={'foo': 'foo', 'bar': 'bar'}) - class ChildStruct982(ParentStruct982): - def __init__(self, *, foo: str, bar: jsii.Number): - """ - :param foo: - :param bar: - - stability - :stability: experimental - """ - self._values = { - 'foo': foo, - 'bar': bar, - } - - @builtins.property - def foo(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('foo') - - @builtins.property - def bar(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return self._values.get('bar') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'ChildStruct982(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - - @jsii.implements(INonInternalInterface) - class ClassThatImplementsTheInternalInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ClassThatImplementsTheInternalInterface"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(ClassThatImplementsTheInternalInterface, self, []) - - @builtins.property - @jsii.member(jsii_name="a") - def a(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "a") - - @a.setter - def a(self, value: str): - jsii.set(self, "a", value) - - @builtins.property - @jsii.member(jsii_name="b") - def b(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "b") - - @b.setter - def b(self, value: str): - jsii.set(self, "b", value) - - @builtins.property - @jsii.member(jsii_name="c") - def c(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "c") - - @c.setter - def c(self, value: str): - jsii.set(self, "c", value) - - @builtins.property - @jsii.member(jsii_name="d") - def d(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "d") - - @d.setter - def d(self, value: str): - jsii.set(self, "d", value) - - - @jsii.implements(INonInternalInterface) - class ClassThatImplementsThePrivateInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ClassThatImplementsThePrivateInterface"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(ClassThatImplementsThePrivateInterface, self, []) - - @builtins.property - @jsii.member(jsii_name="a") - def a(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "a") - - @a.setter - def a(self, value: str): - jsii.set(self, "a", value) - - @builtins.property - @jsii.member(jsii_name="b") - def b(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "b") - - @b.setter - def b(self, value: str): - jsii.set(self, "b", value) - - @builtins.property - @jsii.member(jsii_name="c") - def c(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "c") - - @c.setter - def c(self, value: str): - jsii.set(self, "c", value) - - @builtins.property - @jsii.member(jsii_name="e") - def e(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "e") - - @e.setter - def e(self, value: str): - jsii.set(self, "e", value) - - - @jsii.implements(IInterfaceWithProperties) - class ClassWithPrivateConstructorAndAutomaticProperties(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ClassWithPrivateConstructorAndAutomaticProperties"): - """Class that implements interface properties automatically, but using a private constructor. - - stability - :stability: experimental - """ - @jsii.member(jsii_name="create") - @builtins.classmethod - def create(cls, read_only_string: str, read_write_string: str) -> "ClassWithPrivateConstructorAndAutomaticProperties": - """ - :param read_only_string: - - :param read_write_string: - - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "create", [read_only_string, read_write_string]) - - @builtins.property - @jsii.member(jsii_name="readOnlyString") - def read_only_string(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "readOnlyString") - - @builtins.property - @jsii.member(jsii_name="readWriteString") - def read_write_string(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "readWriteString") - - @read_write_string.setter - def read_write_string(self, value: str): - jsii.set(self, "readWriteString", value) - - - @jsii.interface(jsii_type="jsii-calc.compliance.IInterfaceThatShouldNotBeADataType") - class IInterfaceThatShouldNotBeADataType(IInterfaceWithMethods, jsii.compat.Protocol): - """Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype. - - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IInterfaceThatShouldNotBeADataTypeProxy - - @builtins.property - @jsii.member(jsii_name="otherValue") - def other_value(self) -> str: - """ - stability - :stability: experimental - """ - ... - - - class _IInterfaceThatShouldNotBeADataTypeProxy(jsii.proxy_for(IInterfaceWithMethods)): - """Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype. - - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IInterfaceThatShouldNotBeADataType" - @builtins.property - @jsii.member(jsii_name="otherValue") - def other_value(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "otherValue") - - - @jsii.implements(IPublicInterface2) - class InbetweenClass(PublicClass, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.InbetweenClass"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(InbetweenClass, self, []) - - @jsii.member(jsii_name="ciao") - def ciao(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "ciao", []) - - - class SupportsNiceJavaBuilder(SupportsNiceJavaBuilderWithRequiredProps, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.SupportsNiceJavaBuilder"): - """ - stability - :stability: experimental - """ - def __init__(self, id: jsii.Number, default_bar: typing.Optional[jsii.Number]=None, props: typing.Optional["SupportsNiceJavaBuilderProps"]=None, *rest: str) -> None: - """ - :param id: some identifier. - :param default_bar: the default value of ``bar``. - :param props: some props once can provide. - :param rest: a variadic continuation. - - stability - :stability: experimental - """ - jsii.create(SupportsNiceJavaBuilder, self, [id, default_bar, props, *rest]) - - @builtins.property - @jsii.member(jsii_name="id") - def id(self) -> jsii.Number: - """some identifier. - - stability - :stability: experimental - """ - return jsii.get(self, "id") - - @builtins.property - @jsii.member(jsii_name="rest") - def rest(self) -> typing.List[str]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "rest") - - - -class composition: - class CompositeOperation(scope.jsii_calc_lib.Operation, metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.composition.CompositeOperation"): - """Abstract operation composed from an expression of other operations. - - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _CompositeOperationProxy - - def __init__(self) -> None: - jsii.create(CompositeOperation, self, []) - - @jsii.member(jsii_name="toString") - def to_string(self) -> str: - """String representation of the value. - - stability - :stability: experimental - """ - return jsii.invoke(self, "toString", []) - - @builtins.property - @jsii.member(jsii_name="expression") - @abc.abstractmethod - def expression(self) -> scope.jsii_calc_lib.Value: - """The expression that this operation consists of. - - Must be implemented by derived classes. - - stability - :stability: experimental - """ - ... - - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> jsii.Number: - """The value. - - stability - :stability: experimental - """ - return jsii.get(self, "value") - - @builtins.property - @jsii.member(jsii_name="decorationPostfixes") - def decoration_postfixes(self) -> typing.List[str]: - """A set of postfixes to include in a decorated .toString(). - - stability - :stability: experimental - """ - return jsii.get(self, "decorationPostfixes") - - @decoration_postfixes.setter - def decoration_postfixes(self, value: typing.List[str]): - jsii.set(self, "decorationPostfixes", value) - - @builtins.property - @jsii.member(jsii_name="decorationPrefixes") - def decoration_prefixes(self) -> typing.List[str]: - """A set of prefixes to include in a decorated .toString(). - - stability - :stability: experimental - """ - return jsii.get(self, "decorationPrefixes") - - @decoration_prefixes.setter - def decoration_prefixes(self, value: typing.List[str]): - jsii.set(self, "decorationPrefixes", value) - - @builtins.property - @jsii.member(jsii_name="stringStyle") - def string_style(self) -> "CompositionStringStyle": - """The .toString() style. - - stability - :stability: experimental - """ - return jsii.get(self, "stringStyle") - - @string_style.setter - def string_style(self, value: "CompositionStringStyle"): - jsii.set(self, "stringStyle", value) - - @jsii.enum(jsii_type="jsii-calc.composition.CompositeOperation.CompositionStringStyle") - class CompositionStringStyle(enum.Enum): - """Style of .toString() output for CompositeOperation. - - stability - :stability: experimental - """ - NORMAL = "NORMAL" - """Normal string expression. - - stability - :stability: experimental - """ - DECORATED = "DECORATED" - """Decorated string expression. - - stability - :stability: experimental - """ - - - class _CompositeOperationProxy(CompositeOperation, jsii.proxy_for(scope.jsii_calc_lib.Operation)): - @builtins.property - @jsii.member(jsii_name="expression") - def expression(self) -> scope.jsii_calc_lib.Value: - """The expression that this operation consists of. - - Must be implemented by derived classes. - - stability - :stability: experimental - """ - return jsii.get(self, "expression") - - - -class documented: - class DocumentedClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.documented.DocumentedClass"): - """Here's the first line of the TSDoc comment. - - This is the meat of the TSDoc comment. It may contain - multiple lines and multiple paragraphs. - - Multiple paragraphs are separated by an empty line. - """ - def __init__(self) -> None: - jsii.create(DocumentedClass, self, []) - - @jsii.member(jsii_name="greet") - def greet(self, *, name: typing.Optional[str]=None) -> jsii.Number: - """Greet the indicated person. - - This will print out a friendly greeting intended for - the indicated person. - - :param name: The name of the greetee. Default: world - - return - :return: A number that everyone knows very well - """ - greetee = Greetee(name=name) - - return jsii.invoke(self, "greet", [greetee]) - - @jsii.member(jsii_name="hola") - def hola(self) -> None: - """Say ¡Hola! - - stability - :stability: experimental - """ - return jsii.invoke(self, "hola", []) - - - @jsii.data_type(jsii_type="jsii-calc.documented.Greetee", jsii_struct_bases=[], name_mapping={'name': 'name'}) - class Greetee(): - def __init__(self, *, name: typing.Optional[str]=None): - """These are some arguments you can pass to a method. - - :param name: The name of the greetee. Default: world - - stability - :stability: experimental - """ - self._values = { - } - if name is not None: self._values["name"] = name - - @builtins.property - def name(self) -> typing.Optional[str]: - """The name of the greetee. - - default - :default: world - - stability - :stability: experimental - """ - return self._values.get('name') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'Greetee(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - - class Old(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.documented.Old"): - """Old class. - - deprecated - :deprecated: Use the new class - - stability - :stability: deprecated - """ - def __init__(self) -> None: - jsii.create(Old, self, []) - - @jsii.member(jsii_name="doAThing") - def do_a_thing(self) -> None: - """Doo wop that thing. - - stability - :stability: deprecated - """ - return jsii.invoke(self, "doAThing", []) - - - -class erasure_tests: - @jsii.interface(jsii_type="jsii-calc.erasureTests.IJSII417Derived") - class IJSII417Derived(jsii_calc.erasureTests.IJSII417PublicBaseOfBase, jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IJSII417DerivedProxy - - @builtins.property - @jsii.member(jsii_name="property") - def property(self) -> str: - """ - stability - :stability: experimental - """ - ... - - @jsii.member(jsii_name="bar") - def bar(self) -> None: - """ - stability - :stability: experimental - """ - ... - - @jsii.member(jsii_name="baz") - def baz(self) -> None: - """ - stability - :stability: experimental - """ - ... - - - class _IJSII417DerivedProxy(jsii.proxy_for(jsii_calc.erasureTests.IJSII417PublicBaseOfBase)): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.erasureTests.IJSII417Derived" - @builtins.property - @jsii.member(jsii_name="property") - def property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "property") - - @jsii.member(jsii_name="bar") - def bar(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "bar", []) - - @jsii.member(jsii_name="baz") - def baz(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "baz", []) - - - @jsii.interface(jsii_type="jsii-calc.erasureTests.IJSII417PublicBaseOfBase") - class IJSII417PublicBaseOfBase(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IJSII417PublicBaseOfBaseProxy - - @builtins.property - @jsii.member(jsii_name="hasRoot") - def has_root(self) -> bool: - """ - stability - :stability: experimental - """ - ... - - @jsii.member(jsii_name="foo") - def foo(self) -> None: - """ - stability - :stability: experimental - """ - ... - - - class _IJSII417PublicBaseOfBaseProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.erasureTests.IJSII417PublicBaseOfBase" - @builtins.property - @jsii.member(jsii_name="hasRoot") - def has_root(self) -> bool: - """ - stability - :stability: experimental - """ - return jsii.get(self, "hasRoot") - - @jsii.member(jsii_name="foo") - def foo(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "foo", []) - - - @jsii.interface(jsii_type="jsii-calc.erasureTests.IJsii487External") - class IJsii487External(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IJsii487ExternalProxy - - pass - - class _IJsii487ExternalProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.erasureTests.IJsii487External" - pass - - @jsii.interface(jsii_type="jsii-calc.erasureTests.IJsii487External2") - class IJsii487External2(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IJsii487External2Proxy - - pass - - class _IJsii487External2Proxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.erasureTests.IJsii487External2" - pass - - @jsii.interface(jsii_type="jsii-calc.erasureTests.IJsii496") - class IJsii496(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IJsii496Proxy - - pass - - class _IJsii496Proxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.erasureTests.IJsii496" - pass - - class JSII417Derived(jsii_calc.erasureTests.JSII417PublicBaseOfBase, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.erasureTests.JSII417Derived"): - """ - stability - :stability: experimental - """ - def __init__(self, property: str) -> None: - """ - :param property: - - - stability - :stability: experimental - """ - jsii.create(jsii_calc.erasureTests.JSII417Derived, self, [property]) - - @jsii.member(jsii_name="bar") - def bar(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "bar", []) - - @jsii.member(jsii_name="baz") - def baz(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "baz", []) - - @builtins.property - @jsii.member(jsii_name="property") - def _property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "property") - - - class JSII417PublicBaseOfBase(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.erasureTests.JSII417PublicBaseOfBase"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(jsii_calc.erasureTests.JSII417PublicBaseOfBase, self, []) - - @jsii.member(jsii_name="makeInstance") - @builtins.classmethod - def make_instance(cls) -> jsii_calc.erasureTests.JSII417PublicBaseOfBase: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "makeInstance", []) - - @jsii.member(jsii_name="foo") - def foo(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "foo", []) - - @builtins.property - @jsii.member(jsii_name="hasRoot") - def has_root(self) -> bool: - """ - stability - :stability: experimental - """ - return jsii.get(self, "hasRoot") - - - @jsii.implements(jsii_calc.erasureTests.IJsii487External2, jsii_calc.erasureTests.IJsii487External) - class Jsii487Derived(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.erasureTests.Jsii487Derived"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(jsii_calc.erasureTests.Jsii487Derived, self, []) - - - @jsii.implements(jsii_calc.erasureTests.IJsii496) - class Jsii496Derived(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.erasureTests.Jsii496Derived"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(jsii_calc.erasureTests.Jsii496Derived, self, []) - - - -class stability_annotations: - class DeprecatedClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.stability_annotations.DeprecatedClass"): - """ - deprecated - :deprecated: a pretty boring class - - stability - :stability: deprecated - """ - def __init__(self, readonly_string: str, mutable_number: typing.Optional[jsii.Number]=None) -> None: - """ - :param readonly_string: - - :param mutable_number: - - - deprecated - :deprecated: this constructor is "just" okay - - stability - :stability: deprecated - """ - jsii.create(DeprecatedClass, self, [readonly_string, mutable_number]) - - @jsii.member(jsii_name="method") - def method(self) -> None: - """ - deprecated - :deprecated: it was a bad idea - - stability - :stability: deprecated - """ - return jsii.invoke(self, "method", []) - - @builtins.property - @jsii.member(jsii_name="readonlyProperty") - def readonly_property(self) -> str: - """ - deprecated - :deprecated: this is not always "wazoo", be ready to be disappointed - - stability - :stability: deprecated - """ - return jsii.get(self, "readonlyProperty") - - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: - """ - deprecated - :deprecated: shouldn't have been mutable - - stability - :stability: deprecated - """ - return jsii.get(self, "mutableProperty") - - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]): - jsii.set(self, "mutableProperty", value) - - - @jsii.enum(jsii_type="jsii-calc.stability_annotations.DeprecatedEnum") - class DeprecatedEnum(enum.Enum): - """ - deprecated - :deprecated: your deprecated selection of bad options - - stability - :stability: deprecated - """ - OPTION_A = "OPTION_A" - """ - deprecated - :deprecated: option A is not great - - stability - :stability: deprecated - """ - OPTION_B = "OPTION_B" - """ - deprecated - :deprecated: option B is kinda bad, too - - stability - :stability: deprecated - """ - - @jsii.data_type(jsii_type="jsii-calc.stability_annotations.DeprecatedStruct", jsii_struct_bases=[], name_mapping={'readonly_property': 'readonlyProperty'}) - class DeprecatedStruct(): - def __init__(self, *, readonly_property: str): - """ - :param readonly_property: - - deprecated - :deprecated: it just wraps a string - - stability - :stability: deprecated - """ - self._values = { - 'readonly_property': readonly_property, - } - - @builtins.property - def readonly_property(self) -> str: - """ - deprecated - :deprecated: well, yeah - - stability - :stability: deprecated - """ - return self._values.get('readonly_property') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'DeprecatedStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - - class ExperimentalClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.stability_annotations.ExperimentalClass"): - """ - stability - :stability: experimental - """ - def __init__(self, readonly_string: str, mutable_number: typing.Optional[jsii.Number]=None) -> None: - """ - :param readonly_string: - - :param mutable_number: - - - stability - :stability: experimental - """ - jsii.create(ExperimentalClass, self, [readonly_string, mutable_number]) - - @jsii.member(jsii_name="method") - def method(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "method", []) - - @builtins.property - @jsii.member(jsii_name="readonlyProperty") - def readonly_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "readonlyProperty") - - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "mutableProperty") - - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]): - jsii.set(self, "mutableProperty", value) - - - @jsii.enum(jsii_type="jsii-calc.stability_annotations.ExperimentalEnum") - class ExperimentalEnum(enum.Enum): - """ - stability - :stability: experimental - """ - OPTION_A = "OPTION_A" - """ - stability - :stability: experimental - """ - OPTION_B = "OPTION_B" - """ - stability - :stability: experimental - """ - - @jsii.data_type(jsii_type="jsii-calc.stability_annotations.ExperimentalStruct", jsii_struct_bases=[], name_mapping={'readonly_property': 'readonlyProperty'}) - class ExperimentalStruct(): - def __init__(self, *, readonly_property: str): - """ - :param readonly_property: - - stability - :stability: experimental - """ - self._values = { - 'readonly_property': readonly_property, - } - - @builtins.property - def readonly_property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('readonly_property') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'ExperimentalStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - - @jsii.interface(jsii_type="jsii-calc.stability_annotations.IDeprecatedInterface") - class IDeprecatedInterface(jsii.compat.Protocol): - """ - deprecated - :deprecated: useless interface - - stability - :stability: deprecated - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IDeprecatedInterfaceProxy - - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: - """ - deprecated - :deprecated: could be better - - stability - :stability: deprecated - """ - ... - - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]): - ... - - @jsii.member(jsii_name="method") - def method(self) -> None: - """ - deprecated - :deprecated: services no purpose - - stability - :stability: deprecated - """ - ... - - - class _IDeprecatedInterfaceProxy(): - """ - deprecated - :deprecated: useless interface - - stability - :stability: deprecated - """ - __jsii_type__ = "jsii-calc.stability_annotations.IDeprecatedInterface" - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: - """ - deprecated - :deprecated: could be better - - stability - :stability: deprecated - """ - return jsii.get(self, "mutableProperty") - - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]): - jsii.set(self, "mutableProperty", value) - - @jsii.member(jsii_name="method") - def method(self) -> None: - """ - deprecated - :deprecated: services no purpose - - stability - :stability: deprecated - """ - return jsii.invoke(self, "method", []) - - - @jsii.interface(jsii_type="jsii-calc.stability_annotations.IExperimentalInterface") - class IExperimentalInterface(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IExperimentalInterfaceProxy - - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: - """ - stability - :stability: experimental - """ - ... - - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]): - ... - - @jsii.member(jsii_name="method") - def method(self) -> None: - """ - stability - :stability: experimental - """ - ... - - - class _IExperimentalInterfaceProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.stability_annotations.IExperimentalInterface" - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "mutableProperty") - - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]): - jsii.set(self, "mutableProperty", value) - - @jsii.member(jsii_name="method") - def method(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "method", []) - - - @jsii.interface(jsii_type="jsii-calc.stability_annotations.IStableInterface") - class IStableInterface(jsii.compat.Protocol): - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IStableInterfaceProxy - - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: - ... - - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]): - ... - - @jsii.member(jsii_name="method") - def method(self) -> None: - ... - - - class _IStableInterfaceProxy(): - __jsii_type__ = "jsii-calc.stability_annotations.IStableInterface" - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: - return jsii.get(self, "mutableProperty") - - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]): - jsii.set(self, "mutableProperty", value) - - @jsii.member(jsii_name="method") - def method(self) -> None: - return jsii.invoke(self, "method", []) - - - class StableClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.stability_annotations.StableClass"): - def __init__(self, readonly_string: str, mutable_number: typing.Optional[jsii.Number]=None) -> None: - """ - :param readonly_string: - - :param mutable_number: - - """ - jsii.create(StableClass, self, [readonly_string, mutable_number]) - - @jsii.member(jsii_name="method") - def method(self) -> None: - return jsii.invoke(self, "method", []) - - @builtins.property - @jsii.member(jsii_name="readonlyProperty") - def readonly_property(self) -> str: - return jsii.get(self, "readonlyProperty") - - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: - return jsii.get(self, "mutableProperty") - - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]): - jsii.set(self, "mutableProperty", value) - - - @jsii.enum(jsii_type="jsii-calc.stability_annotations.StableEnum") - class StableEnum(enum.Enum): - OPTION_A = "OPTION_A" - OPTION_B = "OPTION_B" - - @jsii.data_type(jsii_type="jsii-calc.stability_annotations.StableStruct", jsii_struct_bases=[], name_mapping={'readonly_property': 'readonlyProperty'}) - class StableStruct(): - def __init__(self, *, readonly_property: str): - """ - :param readonly_property: - """ - self._values = { - 'readonly_property': readonly_property, - } - - @builtins.property - def readonly_property(self) -> str: - return self._values.get('readonly_property') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'StableStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - - class Add(BinaryOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Add"): """The "+" binary operation. @@ -8272,167 +814,6 @@ def value(self) -> jsii.Number: return jsii.get(self, "value") -class Calculator(composition.CompositeOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Calculator"): - """A calculator which maintains a current value and allows adding operations. - - Here's how you use it:: - - # Example automatically generated. See https://github.com/aws/jsii/issues/826 - calculator = calc.Calculator() - calculator.add(5) - calculator.mul(3) - print(calculator.expression.value) - - I will repeat this example again, but in an @example tag. - - stability - :stability: experimental - - Example:: - - # Example automatically generated. See https://github.com/aws/jsii/issues/826 - calculator = calc.Calculator() - calculator.add(5) - calculator.mul(3) - print(calculator.expression.value) - """ - def __init__(self, *, initial_value: typing.Optional[jsii.Number]=None, maximum_value: typing.Optional[jsii.Number]=None) -> None: - """Creates a Calculator object. - - :param initial_value: The initial value of the calculator. NOTE: Any number works here, it's fine. Default: 0 - :param maximum_value: The maximum value the calculator can store. Default: none - - stability - :stability: experimental - """ - props = CalculatorProps(initial_value=initial_value, maximum_value=maximum_value) - - jsii.create(Calculator, self, [props]) - - @jsii.member(jsii_name="add") - def add(self, value: jsii.Number) -> None: - """Adds a number to the current value. - - :param value: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "add", [value]) - - @jsii.member(jsii_name="mul") - def mul(self, value: jsii.Number) -> None: - """Multiplies the current value by a number. - - :param value: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "mul", [value]) - - @jsii.member(jsii_name="neg") - def neg(self) -> None: - """Negates the current value. - - stability - :stability: experimental - """ - return jsii.invoke(self, "neg", []) - - @jsii.member(jsii_name="pow") - def pow(self, value: jsii.Number) -> None: - """Raises the current value by a power. - - :param value: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "pow", [value]) - - @jsii.member(jsii_name="readUnionValue") - def read_union_value(self) -> jsii.Number: - """Returns teh value of the union property (if defined). - - stability - :stability: experimental - """ - return jsii.invoke(self, "readUnionValue", []) - - @builtins.property - @jsii.member(jsii_name="expression") - def expression(self) -> scope.jsii_calc_lib.Value: - """Returns the expression. - - stability - :stability: experimental - """ - return jsii.get(self, "expression") - - @builtins.property - @jsii.member(jsii_name="operationsLog") - def operations_log(self) -> typing.List[scope.jsii_calc_lib.Value]: - """A log of all operations. - - stability - :stability: experimental - """ - return jsii.get(self, "operationsLog") - - @builtins.property - @jsii.member(jsii_name="operationsMap") - def operations_map(self) -> typing.Mapping[str,typing.List[scope.jsii_calc_lib.Value]]: - """A map of per operation name of all operations performed. - - stability - :stability: experimental - """ - return jsii.get(self, "operationsMap") - - @builtins.property - @jsii.member(jsii_name="curr") - def curr(self) -> scope.jsii_calc_lib.Value: - """The current value. - - stability - :stability: experimental - """ - return jsii.get(self, "curr") - - @curr.setter - def curr(self, value: scope.jsii_calc_lib.Value): - jsii.set(self, "curr", value) - - @builtins.property - @jsii.member(jsii_name="maxValue") - def max_value(self) -> typing.Optional[jsii.Number]: - """The maximum value allows in this calculator. - - stability - :stability: experimental - """ - return jsii.get(self, "maxValue") - - @max_value.setter - def max_value(self, value: typing.Optional[jsii.Number]): - jsii.set(self, "maxValue", value) - - @builtins.property - @jsii.member(jsii_name="unionProperty") - def union_property(self) -> typing.Optional[typing.Union[typing.Optional["Add"], typing.Optional["Multiply"], typing.Optional["Power"]]]: - """Example of a property that accepts a union of types. - - stability - :stability: experimental - """ - return jsii.get(self, "unionProperty") - - @union_property.setter - def union_property(self, value: typing.Optional[typing.Union[typing.Optional["Add"], typing.Optional["Multiply"], typing.Optional["Power"]]]): - jsii.set(self, "unionProperty", value) - - @jsii.interface(jsii_type="jsii-calc.IFriendlyRandomGenerator") class IFriendlyRandomGenerator(IRandomNumberGenerator, scope.jsii_calc_lib.IFriendly, jsii.compat.Protocol): """ @@ -8516,96 +897,6 @@ def value(self) -> jsii.Number: return jsii.get(self, "value") -class Power(composition.CompositeOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Power"): - """The power operation. - - stability - :stability: experimental - """ - def __init__(self, base: scope.jsii_calc_lib.Value, pow: scope.jsii_calc_lib.Value) -> None: - """Creates a Power operation. - - :param base: The base of the power. - :param pow: The number of times to multiply. - - stability - :stability: experimental - """ - jsii.create(Power, self, [base, pow]) - - @builtins.property - @jsii.member(jsii_name="base") - def base(self) -> scope.jsii_calc_lib.Value: - """The base of the power. - - stability - :stability: experimental - """ - return jsii.get(self, "base") - - @builtins.property - @jsii.member(jsii_name="expression") - def expression(self) -> scope.jsii_calc_lib.Value: - """The expression that this operation consists of. - - Must be implemented by derived classes. - - stability - :stability: experimental - """ - return jsii.get(self, "expression") - - @builtins.property - @jsii.member(jsii_name="pow") - def pow(self) -> scope.jsii_calc_lib.Value: - """The number of times to multiply. - - stability - :stability: experimental - """ - return jsii.get(self, "pow") - - -class Sum(composition.CompositeOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Sum"): - """An operation that sums multiple values. - - stability - :stability: experimental - """ - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(Sum, self, []) - - @builtins.property - @jsii.member(jsii_name="expression") - def expression(self) -> scope.jsii_calc_lib.Value: - """The expression that this operation consists of. - - Must be implemented by derived classes. - - stability - :stability: experimental - """ - return jsii.get(self, "expression") - - @builtins.property - @jsii.member(jsii_name="parts") - def parts(self) -> typing.List[scope.jsii_calc_lib.Value]: - """The parts to sum. - - stability - :stability: experimental - """ - return jsii.get(self, "parts") - - @parts.setter - def parts(self, value: typing.List[scope.jsii_calc_lib.Value]): - jsii.set(self, "parts", value) - - -__all__ = ["AbstractSuite", "Add", "BinaryOperation", "Calculator", "CalculatorProps", "IFriendlier", "IFriendlyRandomGenerator", "IRandomNumberGenerator", "MethodNamedProperty", "Multiply", "Negate", "Power", "PropertyNamedProperty", "SmellyStruct", "Sum", "UnaryOperation", "__jsii_assembly__", "compliance", "composition", "documented", "erasure_tests", "stability_annotations"] +__all__ = ["AbstractSuite", "Add", "BinaryOperation", "Calculator", "CalculatorProps", "IFriendlier", "IFriendlyRandomGenerator", "IRandomNumberGenerator", "MethodNamedProperty", "Multiply", "Negate", "Power", "PropertyNamedProperty", "SmellyStruct", "Sum", "UnaryOperation", "__jsii_assembly__"] publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/_jsii/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/_jsii/__init__.py index e9d658dde9..3f9a9aa3f4 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/_jsii/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/_jsii/__init__.py @@ -11,6 +11,7 @@ import scope.jsii_calc_base import scope.jsii_calc_base_of_base import scope.jsii_calc_lib + __all__ = [] publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/compliance/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/compliance/__init__.py new file mode 100644 index 0000000000..a4a2df6a75 --- /dev/null +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/compliance/__init__.py @@ -0,0 +1,6660 @@ +import abc +import builtins +import datetime +import enum +import publication +import typing + +import jsii +import jsii.compat + +import jsii_calc +import scope.jsii_calc_base +import scope.jsii_calc_base_of_base +import scope.jsii_calc_lib + +__jsii_assembly__ = jsii.JSIIAssembly.load("jsii-calc", "1.0.0", "jsii_calc", "jsii-calc@1.0.0.jsii.tgz") + + +class AbstractClassBase(metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.compliance.AbstractClassBase"): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _AbstractClassBaseProxy + + def __init__(self) -> None: + jsii.create(AbstractClassBase, self, []) + + @builtins.property + @jsii.member(jsii_name="abstractProperty") + @abc.abstractmethod + def abstract_property(self) -> str: + """ + stability + :stability: experimental + """ + ... + + +class _AbstractClassBaseProxy(AbstractClassBase): + @builtins.property + @jsii.member(jsii_name="abstractProperty") + def abstract_property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "abstractProperty") + + +class AbstractClassReturner(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.AbstractClassReturner"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(AbstractClassReturner, self, []) + + @jsii.member(jsii_name="giveMeAbstract") + def give_me_abstract(self) -> "AbstractClass": + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "giveMeAbstract", []) + + @jsii.member(jsii_name="giveMeInterface") + def give_me_interface(self) -> "IInterfaceImplementedByAbstractClass": + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "giveMeInterface", []) + + @builtins.property + @jsii.member(jsii_name="returnAbstractFromProperty") + def return_abstract_from_property(self) -> "AbstractClassBase": + """ + stability + :stability: experimental + """ + return jsii.get(self, "returnAbstractFromProperty") + + +class AllTypes(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.AllTypes"): + """This class includes property for all types supported by jsii. + + The setters will validate + that the value set is of the expected type and throw otherwise. + + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(AllTypes, self, []) + + @jsii.member(jsii_name="anyIn") + def any_in(self, inp: typing.Any) -> None: + """ + :param inp: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "anyIn", [inp]) + + @jsii.member(jsii_name="anyOut") + def any_out(self) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "anyOut", []) + + @jsii.member(jsii_name="enumMethod") + def enum_method(self, value: "StringEnum") -> "StringEnum": + """ + :param value: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "enumMethod", [value]) + + @builtins.property + @jsii.member(jsii_name="enumPropertyValue") + def enum_property_value(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.get(self, "enumPropertyValue") + + @builtins.property + @jsii.member(jsii_name="anyArrayProperty") + def any_array_property(self) -> typing.List[typing.Any]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "anyArrayProperty") + + @any_array_property.setter + def any_array_property(self, value: typing.List[typing.Any]): + jsii.set(self, "anyArrayProperty", value) + + @builtins.property + @jsii.member(jsii_name="anyMapProperty") + def any_map_property(self) -> typing.Mapping[str,typing.Any]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "anyMapProperty") + + @any_map_property.setter + def any_map_property(self, value: typing.Mapping[str,typing.Any]): + jsii.set(self, "anyMapProperty", value) + + @builtins.property + @jsii.member(jsii_name="anyProperty") + def any_property(self) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.get(self, "anyProperty") + + @any_property.setter + def any_property(self, value: typing.Any): + jsii.set(self, "anyProperty", value) + + @builtins.property + @jsii.member(jsii_name="arrayProperty") + def array_property(self) -> typing.List[str]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "arrayProperty") + + @array_property.setter + def array_property(self, value: typing.List[str]): + jsii.set(self, "arrayProperty", value) + + @builtins.property + @jsii.member(jsii_name="booleanProperty") + def boolean_property(self) -> bool: + """ + stability + :stability: experimental + """ + return jsii.get(self, "booleanProperty") + + @boolean_property.setter + def boolean_property(self, value: bool): + jsii.set(self, "booleanProperty", value) + + @builtins.property + @jsii.member(jsii_name="dateProperty") + def date_property(self) -> datetime.datetime: + """ + stability + :stability: experimental + """ + return jsii.get(self, "dateProperty") + + @date_property.setter + def date_property(self, value: datetime.datetime): + jsii.set(self, "dateProperty", value) + + @builtins.property + @jsii.member(jsii_name="enumProperty") + def enum_property(self) -> "AllTypesEnum": + """ + stability + :stability: experimental + """ + return jsii.get(self, "enumProperty") + + @enum_property.setter + def enum_property(self, value: "AllTypesEnum"): + jsii.set(self, "enumProperty", value) + + @builtins.property + @jsii.member(jsii_name="jsonProperty") + def json_property(self) -> typing.Mapping[typing.Any, typing.Any]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "jsonProperty") + + @json_property.setter + def json_property(self, value: typing.Mapping[typing.Any, typing.Any]): + jsii.set(self, "jsonProperty", value) + + @builtins.property + @jsii.member(jsii_name="mapProperty") + def map_property(self) -> typing.Mapping[str,scope.jsii_calc_lib.Number]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "mapProperty") + + @map_property.setter + def map_property(self, value: typing.Mapping[str,scope.jsii_calc_lib.Number]): + jsii.set(self, "mapProperty", value) + + @builtins.property + @jsii.member(jsii_name="numberProperty") + def number_property(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.get(self, "numberProperty") + + @number_property.setter + def number_property(self, value: jsii.Number): + jsii.set(self, "numberProperty", value) + + @builtins.property + @jsii.member(jsii_name="stringProperty") + def string_property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "stringProperty") + + @string_property.setter + def string_property(self, value: str): + jsii.set(self, "stringProperty", value) + + @builtins.property + @jsii.member(jsii_name="unionArrayProperty") + def union_array_property(self) -> typing.List[typing.Union[jsii.Number, scope.jsii_calc_lib.Value]]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "unionArrayProperty") + + @union_array_property.setter + def union_array_property(self, value: typing.List[typing.Union[jsii.Number, scope.jsii_calc_lib.Value]]): + jsii.set(self, "unionArrayProperty", value) + + @builtins.property + @jsii.member(jsii_name="unionMapProperty") + def union_map_property(self) -> typing.Mapping[str,typing.Union[str, jsii.Number, scope.jsii_calc_lib.Number]]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "unionMapProperty") + + @union_map_property.setter + def union_map_property(self, value: typing.Mapping[str,typing.Union[str, jsii.Number, scope.jsii_calc_lib.Number]]): + jsii.set(self, "unionMapProperty", value) + + @builtins.property + @jsii.member(jsii_name="unionProperty") + def union_property(self) -> typing.Union[str, jsii.Number, jsii_calc.Multiply, scope.jsii_calc_lib.Number]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "unionProperty") + + @union_property.setter + def union_property(self, value: typing.Union[str, jsii.Number, jsii_calc.Multiply, scope.jsii_calc_lib.Number]): + jsii.set(self, "unionProperty", value) + + @builtins.property + @jsii.member(jsii_name="unknownArrayProperty") + def unknown_array_property(self) -> typing.List[typing.Any]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "unknownArrayProperty") + + @unknown_array_property.setter + def unknown_array_property(self, value: typing.List[typing.Any]): + jsii.set(self, "unknownArrayProperty", value) + + @builtins.property + @jsii.member(jsii_name="unknownMapProperty") + def unknown_map_property(self) -> typing.Mapping[str,typing.Any]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "unknownMapProperty") + + @unknown_map_property.setter + def unknown_map_property(self, value: typing.Mapping[str,typing.Any]): + jsii.set(self, "unknownMapProperty", value) + + @builtins.property + @jsii.member(jsii_name="unknownProperty") + def unknown_property(self) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.get(self, "unknownProperty") + + @unknown_property.setter + def unknown_property(self, value: typing.Any): + jsii.set(self, "unknownProperty", value) + + @builtins.property + @jsii.member(jsii_name="optionalEnumValue") + def optional_enum_value(self) -> typing.Optional["StringEnum"]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "optionalEnumValue") + + @optional_enum_value.setter + def optional_enum_value(self, value: typing.Optional["StringEnum"]): + jsii.set(self, "optionalEnumValue", value) + + +@jsii.enum(jsii_type="jsii-calc.compliance.AllTypesEnum") +class AllTypesEnum(enum.Enum): + """ + stability + :stability: experimental + """ + MY_ENUM_VALUE = "MY_ENUM_VALUE" + """ + stability + :stability: experimental + """ + YOUR_ENUM_VALUE = "YOUR_ENUM_VALUE" + """ + stability + :stability: experimental + """ + THIS_IS_GREAT = "THIS_IS_GREAT" + """ + stability + :stability: experimental + """ + +class AllowedMethodNames(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.AllowedMethodNames"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(AllowedMethodNames, self, []) + + @jsii.member(jsii_name="getBar") + def get_bar(self, _p1: str, _p2: jsii.Number) -> None: + """ + :param _p1: - + :param _p2: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "getBar", [_p1, _p2]) + + @jsii.member(jsii_name="getFoo") + def get_foo(self, with_param: str) -> str: + """getXxx() is not allowed (see negatives), but getXxx(a, ...) is okay. + + :param with_param: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "getFoo", [with_param]) + + @jsii.member(jsii_name="setBar") + def set_bar(self, _x: str, _y: jsii.Number, _z: bool) -> None: + """ + :param _x: - + :param _y: - + :param _z: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "setBar", [_x, _y, _z]) + + @jsii.member(jsii_name="setFoo") + def set_foo(self, _x: str, _y: jsii.Number) -> None: + """setFoo(x) is not allowed (see negatives), but setXxx(a, b, ...) is okay. + + :param _x: - + :param _y: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "setFoo", [_x, _y]) + + +class AmbiguousParameters(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.AmbiguousParameters"): + """ + stability + :stability: experimental + """ + def __init__(self, scope_: "Bell", *, scope: str, props: typing.Optional[bool]=None) -> None: + """ + :param scope_: - + :param scope: + :param props: + + stability + :stability: experimental + """ + props_ = StructParameterType(scope=scope, props=props) + + jsii.create(AmbiguousParameters, self, [scope_, props_]) + + @builtins.property + @jsii.member(jsii_name="props") + def props(self) -> "StructParameterType": + """ + stability + :stability: experimental + """ + return jsii.get(self, "props") + + @builtins.property + @jsii.member(jsii_name="scope") + def scope(self) -> "Bell": + """ + stability + :stability: experimental + """ + return jsii.get(self, "scope") + + +class AsyncVirtualMethods(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.AsyncVirtualMethods"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(AsyncVirtualMethods, self, []) + + @jsii.member(jsii_name="callMe") + def call_me(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.ainvoke(self, "callMe", []) + + @jsii.member(jsii_name="callMe2") + def call_me2(self) -> jsii.Number: + """Just calls "overrideMeToo". + + stability + :stability: experimental + """ + return jsii.ainvoke(self, "callMe2", []) + + @jsii.member(jsii_name="callMeDoublePromise") + def call_me_double_promise(self) -> jsii.Number: + """This method calls the "callMe" async method indirectly, which will then invoke a virtual method. + + This is a "double promise" situation, which + means that callbacks are not going to be available immediate, but only + after an "immediates" cycle. + + stability + :stability: experimental + """ + return jsii.ainvoke(self, "callMeDoublePromise", []) + + @jsii.member(jsii_name="dontOverrideMe") + def dont_override_me(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "dontOverrideMe", []) + + @jsii.member(jsii_name="overrideMe") + def override_me(self, mult: jsii.Number) -> jsii.Number: + """ + :param mult: - + + stability + :stability: experimental + """ + return jsii.ainvoke(self, "overrideMe", [mult]) + + @jsii.member(jsii_name="overrideMeToo") + def override_me_too(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.ainvoke(self, "overrideMeToo", []) + + +class AugmentableClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.AugmentableClass"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(AugmentableClass, self, []) + + @jsii.member(jsii_name="methodOne") + def method_one(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "methodOne", []) + + @jsii.member(jsii_name="methodTwo") + def method_two(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "methodTwo", []) + + +class BaseJsii976(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.BaseJsii976"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(BaseJsii976, self, []) + + +class ClassWithCollections(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ClassWithCollections"): + """ + stability + :stability: experimental + """ + def __init__(self, map: typing.Mapping[str,str], array: typing.List[str]) -> None: + """ + :param map: - + :param array: - + + stability + :stability: experimental + """ + jsii.create(ClassWithCollections, self, [map, array]) + + @jsii.member(jsii_name="createAList") + @builtins.classmethod + def create_a_list(cls) -> typing.List[str]: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "createAList", []) + + @jsii.member(jsii_name="createAMap") + @builtins.classmethod + def create_a_map(cls) -> typing.Mapping[str,str]: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "createAMap", []) + + @jsii.python.classproperty + @jsii.member(jsii_name="staticArray") + def static_array(cls) -> typing.List[str]: + """ + stability + :stability: experimental + """ + return jsii.sget(cls, "staticArray") + + @static_array.setter + def static_array(cls, value: typing.List[str]): + jsii.sset(cls, "staticArray", value) + + @jsii.python.classproperty + @jsii.member(jsii_name="staticMap") + def static_map(cls) -> typing.Mapping[str,str]: + """ + stability + :stability: experimental + """ + return jsii.sget(cls, "staticMap") + + @static_map.setter + def static_map(cls, value: typing.Mapping[str,str]): + jsii.sset(cls, "staticMap", value) + + @builtins.property + @jsii.member(jsii_name="array") + def array(self) -> typing.List[str]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "array") + + @array.setter + def array(self, value: typing.List[str]): + jsii.set(self, "array", value) + + @builtins.property + @jsii.member(jsii_name="map") + def map(self) -> typing.Mapping[str,str]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "map") + + @map.setter + def map(self, value: typing.Mapping[str,str]): + jsii.set(self, "map", value) + + +class ClassWithDocs(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ClassWithDocs"): + """This class has docs. + + The docs are great. They're a bunch of tags. + + see + :see: https://aws.amazon.com/ + customAttribute: + :customAttribute:: hasAValue + + Example:: + + # Example automatically generated. See https://github.com/aws/jsii/issues/826 + def an_example(): + pass + """ + def __init__(self) -> None: + jsii.create(ClassWithDocs, self, []) + + +class ClassWithJavaReservedWords(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ClassWithJavaReservedWords"): + """ + stability + :stability: experimental + """ + def __init__(self, int: str) -> None: + """ + :param int: - + + stability + :stability: experimental + """ + jsii.create(ClassWithJavaReservedWords, self, [int]) + + @jsii.member(jsii_name="import") + def import_(self, assert_: str) -> str: + """ + :param assert_: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "import", [assert_]) + + @builtins.property + @jsii.member(jsii_name="int") + def int(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "int") + + +class ClassWithMutableObjectLiteralProperty(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ClassWithMutableObjectLiteralProperty"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(ClassWithMutableObjectLiteralProperty, self, []) + + @builtins.property + @jsii.member(jsii_name="mutableObject") + def mutable_object(self) -> "IMutableObjectLiteral": + """ + stability + :stability: experimental + """ + return jsii.get(self, "mutableObject") + + @mutable_object.setter + def mutable_object(self, value: "IMutableObjectLiteral"): + jsii.set(self, "mutableObject", value) + + +class ConfusingToJackson(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ConfusingToJackson"): + """This tries to confuse Jackson by having overloaded property setters. + + see + :see: https://github.com/aws/aws-cdk/issues/4080 + stability + :stability: experimental + """ + @jsii.member(jsii_name="makeInstance") + @builtins.classmethod + def make_instance(cls) -> "ConfusingToJackson": + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "makeInstance", []) + + @jsii.member(jsii_name="makeStructInstance") + @builtins.classmethod + def make_struct_instance(cls) -> "ConfusingToJacksonStruct": + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "makeStructInstance", []) + + @builtins.property + @jsii.member(jsii_name="unionProperty") + def union_property(self) -> typing.Optional[typing.Union[typing.Optional[scope.jsii_calc_lib.IFriendly], typing.Optional[typing.List[typing.Union["AbstractClass", scope.jsii_calc_lib.IFriendly]]]]]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "unionProperty") + + @union_property.setter + def union_property(self, value: typing.Optional[typing.Union[typing.Optional[scope.jsii_calc_lib.IFriendly], typing.Optional[typing.List[typing.Union["AbstractClass", scope.jsii_calc_lib.IFriendly]]]]]): + jsii.set(self, "unionProperty", value) + + +@jsii.data_type(jsii_type="jsii-calc.compliance.ConfusingToJacksonStruct", jsii_struct_bases=[], name_mapping={'union_property': 'unionProperty'}) +class ConfusingToJacksonStruct(): + def __init__(self, *, union_property: typing.Optional[typing.Union[typing.Optional[scope.jsii_calc_lib.IFriendly], typing.Optional[typing.List[typing.Union["AbstractClass", scope.jsii_calc_lib.IFriendly]]]]]=None): + """ + :param union_property: + + stability + :stability: experimental + """ + self._values = { + } + if union_property is not None: self._values["union_property"] = union_property + + @builtins.property + def union_property(self) -> typing.Optional[typing.Union[typing.Optional[scope.jsii_calc_lib.IFriendly], typing.Optional[typing.List[typing.Union["AbstractClass", scope.jsii_calc_lib.IFriendly]]]]]: + """ + stability + :stability: experimental + """ + return self._values.get('union_property') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'ConfusingToJacksonStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +class ConstructorPassesThisOut(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ConstructorPassesThisOut"): + """ + stability + :stability: experimental + """ + def __init__(self, consumer: "PartiallyInitializedThisConsumer") -> None: + """ + :param consumer: - + + stability + :stability: experimental + """ + jsii.create(ConstructorPassesThisOut, self, [consumer]) + + +class Constructors(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.Constructors"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(Constructors, self, []) + + @jsii.member(jsii_name="hiddenInterface") + @builtins.classmethod + def hidden_interface(cls) -> "IPublicInterface": + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "hiddenInterface", []) + + @jsii.member(jsii_name="hiddenInterfaces") + @builtins.classmethod + def hidden_interfaces(cls) -> typing.List["IPublicInterface"]: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "hiddenInterfaces", []) + + @jsii.member(jsii_name="hiddenSubInterfaces") + @builtins.classmethod + def hidden_sub_interfaces(cls) -> typing.List["IPublicInterface"]: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "hiddenSubInterfaces", []) + + @jsii.member(jsii_name="makeClass") + @builtins.classmethod + def make_class(cls) -> "PublicClass": + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "makeClass", []) + + @jsii.member(jsii_name="makeInterface") + @builtins.classmethod + def make_interface(cls) -> "IPublicInterface": + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "makeInterface", []) + + @jsii.member(jsii_name="makeInterface2") + @builtins.classmethod + def make_interface2(cls) -> "IPublicInterface2": + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "makeInterface2", []) + + @jsii.member(jsii_name="makeInterfaces") + @builtins.classmethod + def make_interfaces(cls) -> typing.List["IPublicInterface"]: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "makeInterfaces", []) + + +class ConsumePureInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ConsumePureInterface"): + """ + stability + :stability: experimental + """ + def __init__(self, delegate: "IStructReturningDelegate") -> None: + """ + :param delegate: - + + stability + :stability: experimental + """ + jsii.create(ConsumePureInterface, self, [delegate]) + + @jsii.member(jsii_name="workItBaby") + def work_it_baby(self) -> "StructB": + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "workItBaby", []) + + +class ConsumerCanRingBell(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ConsumerCanRingBell"): + """Test calling back to consumers that implement interfaces. + + Check that if a JSII consumer implements IConsumerWithInterfaceParam, they can call + the method on the argument that they're passed... + + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(ConsumerCanRingBell, self, []) + + @jsii.member(jsii_name="staticImplementedByObjectLiteral") + @builtins.classmethod + def static_implemented_by_object_literal(cls, ringer: "IBellRinger") -> bool: + """...if the interface is implemented using an object literal. + + Returns whether the bell was rung. + + :param ringer: - + + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "staticImplementedByObjectLiteral", [ringer]) + + @jsii.member(jsii_name="staticImplementedByPrivateClass") + @builtins.classmethod + def static_implemented_by_private_class(cls, ringer: "IBellRinger") -> bool: + """...if the interface is implemented using a private class. + + Return whether the bell was rung. + + :param ringer: - + + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "staticImplementedByPrivateClass", [ringer]) + + @jsii.member(jsii_name="staticImplementedByPublicClass") + @builtins.classmethod + def static_implemented_by_public_class(cls, ringer: "IBellRinger") -> bool: + """...if the interface is implemented using a public class. + + Return whether the bell was rung. + + :param ringer: - + + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "staticImplementedByPublicClass", [ringer]) + + @jsii.member(jsii_name="staticWhenTypedAsClass") + @builtins.classmethod + def static_when_typed_as_class(cls, ringer: "IConcreteBellRinger") -> bool: + """If the parameter is a concrete class instead of an interface. + + Return whether the bell was rung. + + :param ringer: - + + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "staticWhenTypedAsClass", [ringer]) + + @jsii.member(jsii_name="implementedByObjectLiteral") + def implemented_by_object_literal(self, ringer: "IBellRinger") -> bool: + """...if the interface is implemented using an object literal. + + Returns whether the bell was rung. + + :param ringer: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "implementedByObjectLiteral", [ringer]) + + @jsii.member(jsii_name="implementedByPrivateClass") + def implemented_by_private_class(self, ringer: "IBellRinger") -> bool: + """...if the interface is implemented using a private class. + + Return whether the bell was rung. + + :param ringer: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "implementedByPrivateClass", [ringer]) + + @jsii.member(jsii_name="implementedByPublicClass") + def implemented_by_public_class(self, ringer: "IBellRinger") -> bool: + """...if the interface is implemented using a public class. + + Return whether the bell was rung. + + :param ringer: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "implementedByPublicClass", [ringer]) + + @jsii.member(jsii_name="whenTypedAsClass") + def when_typed_as_class(self, ringer: "IConcreteBellRinger") -> bool: + """If the parameter is a concrete class instead of an interface. + + Return whether the bell was rung. + + :param ringer: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "whenTypedAsClass", [ringer]) + + +class ConsumersOfThisCrazyTypeSystem(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ConsumersOfThisCrazyTypeSystem"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(ConsumersOfThisCrazyTypeSystem, self, []) + + @jsii.member(jsii_name="consumeAnotherPublicInterface") + def consume_another_public_interface(self, obj: "IAnotherPublicInterface") -> str: + """ + :param obj: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "consumeAnotherPublicInterface", [obj]) + + @jsii.member(jsii_name="consumeNonInternalInterface") + def consume_non_internal_interface(self, obj: "INonInternalInterface") -> typing.Any: + """ + :param obj: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "consumeNonInternalInterface", [obj]) + + +class DataRenderer(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.DataRenderer"): + """Verifies proper type handling through dynamic overrides. + + stability + :stability: experimental + """ + def __init__(self) -> None: + """ + stability + :stability: experimental + """ + jsii.create(DataRenderer, self, []) + + @jsii.member(jsii_name="render") + def render(self, *, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None) -> str: + """ + :param anumber: An awesome number value. + :param astring: A string value. + :param first_optional: + + stability + :stability: experimental + """ + data = scope.jsii_calc_lib.MyFirstStruct(anumber=anumber, astring=astring, first_optional=first_optional) + + return jsii.invoke(self, "render", [data]) + + @jsii.member(jsii_name="renderArbitrary") + def render_arbitrary(self, data: typing.Mapping[str,typing.Any]) -> str: + """ + :param data: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "renderArbitrary", [data]) + + @jsii.member(jsii_name="renderMap") + def render_map(self, map: typing.Mapping[str,typing.Any]) -> str: + """ + :param map: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "renderMap", [map]) + + +class DefaultedConstructorArgument(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.DefaultedConstructorArgument"): + """ + stability + :stability: experimental + """ + def __init__(self, arg1: typing.Optional[jsii.Number]=None, arg2: typing.Optional[str]=None, arg3: typing.Optional[datetime.datetime]=None) -> None: + """ + :param arg1: - + :param arg2: - + :param arg3: - + + stability + :stability: experimental + """ + jsii.create(DefaultedConstructorArgument, self, [arg1, arg2, arg3]) + + @builtins.property + @jsii.member(jsii_name="arg1") + def arg1(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.get(self, "arg1") + + @builtins.property + @jsii.member(jsii_name="arg3") + def arg3(self) -> datetime.datetime: + """ + stability + :stability: experimental + """ + return jsii.get(self, "arg3") + + @builtins.property + @jsii.member(jsii_name="arg2") + def arg2(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "arg2") + + +class Demonstrate982(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.Demonstrate982"): + """1. + + call #takeThis() -> An ObjectRef will be provisioned for the value (it'll be re-used!) + 2. call #takeThisToo() -> The ObjectRef from before will need to be down-cased to the ParentStruct982 type + + stability + :stability: experimental + """ + def __init__(self) -> None: + """ + stability + :stability: experimental + """ + jsii.create(Demonstrate982, self, []) + + @jsii.member(jsii_name="takeThis") + @builtins.classmethod + def take_this(cls) -> "ChildStruct982": + """It's dangerous to go alone! + + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "takeThis", []) + + @jsii.member(jsii_name="takeThisToo") + @builtins.classmethod + def take_this_too(cls) -> "ParentStruct982": + """It's dangerous to go alone! + + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "takeThisToo", []) + + +@jsii.data_type(jsii_type="jsii-calc.compliance.DerivedStruct", jsii_struct_bases=[scope.jsii_calc_lib.MyFirstStruct], name_mapping={'anumber': 'anumber', 'astring': 'astring', 'first_optional': 'firstOptional', 'another_required': 'anotherRequired', 'bool': 'bool', 'non_primitive': 'nonPrimitive', 'another_optional': 'anotherOptional', 'optional_any': 'optionalAny', 'optional_array': 'optionalArray'}) +class DerivedStruct(scope.jsii_calc_lib.MyFirstStruct): + def __init__(self, *, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None, another_required: datetime.datetime, bool: bool, non_primitive: "DoubleTrouble", another_optional: typing.Optional[typing.Mapping[str,scope.jsii_calc_lib.Value]]=None, optional_any: typing.Any=None, optional_array: typing.Optional[typing.List[str]]=None): + """A struct which derives from another struct. + + :param anumber: An awesome number value. + :param astring: A string value. + :param first_optional: + :param another_required: + :param bool: + :param non_primitive: An example of a non primitive property. + :param another_optional: This is optional. + :param optional_any: + :param optional_array: + + stability + :stability: experimental + """ + self._values = { + 'anumber': anumber, + 'astring': astring, + 'another_required': another_required, + 'bool': bool, + 'non_primitive': non_primitive, + } + if first_optional is not None: self._values["first_optional"] = first_optional + if another_optional is not None: self._values["another_optional"] = another_optional + if optional_any is not None: self._values["optional_any"] = optional_any + if optional_array is not None: self._values["optional_array"] = optional_array + + @builtins.property + def anumber(self) -> jsii.Number: + """An awesome number value. + + stability + :stability: deprecated + """ + return self._values.get('anumber') + + @builtins.property + def astring(self) -> str: + """A string value. + + stability + :stability: deprecated + """ + return self._values.get('astring') + + @builtins.property + def first_optional(self) -> typing.Optional[typing.List[str]]: + """ + stability + :stability: deprecated + """ + return self._values.get('first_optional') + + @builtins.property + def another_required(self) -> datetime.datetime: + """ + stability + :stability: experimental + """ + return self._values.get('another_required') + + @builtins.property + def bool(self) -> bool: + """ + stability + :stability: experimental + """ + return self._values.get('bool') + + @builtins.property + def non_primitive(self) -> "DoubleTrouble": + """An example of a non primitive property. + + stability + :stability: experimental + """ + return self._values.get('non_primitive') + + @builtins.property + def another_optional(self) -> typing.Optional[typing.Mapping[str,scope.jsii_calc_lib.Value]]: + """This is optional. + + stability + :stability: experimental + """ + return self._values.get('another_optional') + + @builtins.property + def optional_any(self) -> typing.Any: + """ + stability + :stability: experimental + """ + return self._values.get('optional_any') + + @builtins.property + def optional_array(self) -> typing.Optional[typing.List[str]]: + """ + stability + :stability: experimental + """ + return self._values.get('optional_array') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'DerivedStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +@jsii.data_type(jsii_type="jsii-calc.compliance.DiamondInheritanceBaseLevelStruct", jsii_struct_bases=[], name_mapping={'base_level_property': 'baseLevelProperty'}) +class DiamondInheritanceBaseLevelStruct(): + def __init__(self, *, base_level_property: str): + """ + :param base_level_property: + + stability + :stability: experimental + """ + self._values = { + 'base_level_property': base_level_property, + } + + @builtins.property + def base_level_property(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('base_level_property') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'DiamondInheritanceBaseLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +@jsii.data_type(jsii_type="jsii-calc.compliance.DiamondInheritanceFirstMidLevelStruct", jsii_struct_bases=[DiamondInheritanceBaseLevelStruct], name_mapping={'base_level_property': 'baseLevelProperty', 'first_mid_level_property': 'firstMidLevelProperty'}) +class DiamondInheritanceFirstMidLevelStruct(DiamondInheritanceBaseLevelStruct): + def __init__(self, *, base_level_property: str, first_mid_level_property: str): + """ + :param base_level_property: + :param first_mid_level_property: + + stability + :stability: experimental + """ + self._values = { + 'base_level_property': base_level_property, + 'first_mid_level_property': first_mid_level_property, + } + + @builtins.property + def base_level_property(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('base_level_property') + + @builtins.property + def first_mid_level_property(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('first_mid_level_property') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'DiamondInheritanceFirstMidLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +@jsii.data_type(jsii_type="jsii-calc.compliance.DiamondInheritanceSecondMidLevelStruct", jsii_struct_bases=[DiamondInheritanceBaseLevelStruct], name_mapping={'base_level_property': 'baseLevelProperty', 'second_mid_level_property': 'secondMidLevelProperty'}) +class DiamondInheritanceSecondMidLevelStruct(DiamondInheritanceBaseLevelStruct): + def __init__(self, *, base_level_property: str, second_mid_level_property: str): + """ + :param base_level_property: + :param second_mid_level_property: + + stability + :stability: experimental + """ + self._values = { + 'base_level_property': base_level_property, + 'second_mid_level_property': second_mid_level_property, + } + + @builtins.property + def base_level_property(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('base_level_property') + + @builtins.property + def second_mid_level_property(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('second_mid_level_property') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'DiamondInheritanceSecondMidLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +@jsii.data_type(jsii_type="jsii-calc.compliance.DiamondInheritanceTopLevelStruct", jsii_struct_bases=[DiamondInheritanceFirstMidLevelStruct, DiamondInheritanceSecondMidLevelStruct], name_mapping={'base_level_property': 'baseLevelProperty', 'first_mid_level_property': 'firstMidLevelProperty', 'second_mid_level_property': 'secondMidLevelProperty', 'top_level_property': 'topLevelProperty'}) +class DiamondInheritanceTopLevelStruct(DiamondInheritanceFirstMidLevelStruct, DiamondInheritanceSecondMidLevelStruct): + def __init__(self, *, base_level_property: str, first_mid_level_property: str, second_mid_level_property: str, top_level_property: str): + """ + :param base_level_property: + :param first_mid_level_property: + :param second_mid_level_property: + :param top_level_property: + + stability + :stability: experimental + """ + self._values = { + 'base_level_property': base_level_property, + 'first_mid_level_property': first_mid_level_property, + 'second_mid_level_property': second_mid_level_property, + 'top_level_property': top_level_property, + } + + @builtins.property + def base_level_property(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('base_level_property') + + @builtins.property + def first_mid_level_property(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('first_mid_level_property') + + @builtins.property + def second_mid_level_property(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('second_mid_level_property') + + @builtins.property + def top_level_property(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('top_level_property') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'DiamondInheritanceTopLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +class DisappointingCollectionSource(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.DisappointingCollectionSource"): + """Verifies that null/undefined can be returned for optional collections. + + This source of collections is disappointing - it'll always give you nothing :( + + stability + :stability: experimental + """ + @jsii.python.classproperty + @jsii.member(jsii_name="maybeList") + def MAYBE_LIST(cls) -> typing.Optional[typing.List[str]]: + """Some List of strings, maybe? + + (Nah, just a billion dollars mistake!) + + stability + :stability: experimental + """ + return jsii.sget(cls, "maybeList") + + @jsii.python.classproperty + @jsii.member(jsii_name="maybeMap") + def MAYBE_MAP(cls) -> typing.Optional[typing.Mapping[str,jsii.Number]]: + """Some Map of strings to numbers, maybe? + + (Nah, just a billion dollars mistake!) + + stability + :stability: experimental + """ + return jsii.sget(cls, "maybeMap") + + +class DoNotOverridePrivates(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.DoNotOverridePrivates"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(DoNotOverridePrivates, self, []) + + @jsii.member(jsii_name="changePrivatePropertyValue") + def change_private_property_value(self, new_value: str) -> None: + """ + :param new_value: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "changePrivatePropertyValue", [new_value]) + + @jsii.member(jsii_name="privateMethodValue") + def private_method_value(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "privateMethodValue", []) + + @jsii.member(jsii_name="privatePropertyValue") + def private_property_value(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "privatePropertyValue", []) + + +class DoNotRecognizeAnyAsOptional(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.DoNotRecognizeAnyAsOptional"): + """jsii#284: do not recognize "any" as an optional argument. + + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(DoNotRecognizeAnyAsOptional, self, []) + + @jsii.member(jsii_name="method") + def method(self, _required_any: typing.Any, _optional_any: typing.Any=None, _optional_string: typing.Optional[str]=None) -> None: + """ + :param _required_any: - + :param _optional_any: - + :param _optional_string: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "method", [_required_any, _optional_any, _optional_string]) + + +class DontComplainAboutVariadicAfterOptional(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.DontComplainAboutVariadicAfterOptional"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(DontComplainAboutVariadicAfterOptional, self, []) + + @jsii.member(jsii_name="optionalAndVariadic") + def optional_and_variadic(self, optional: typing.Optional[str]=None, *things: str) -> str: + """ + :param optional: - + :param things: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "optionalAndVariadic", [optional, *things]) + + +@jsii.implements(jsii_calc.IFriendlyRandomGenerator) +class DoubleTrouble(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.DoubleTrouble"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(DoubleTrouble, self, []) + + @jsii.member(jsii_name="hello") + def hello(self) -> str: + """Say hello! + + stability + :stability: experimental + """ + return jsii.invoke(self, "hello", []) + + @jsii.member(jsii_name="next") + def next(self) -> jsii.Number: + """Returns another random number. + + stability + :stability: experimental + """ + return jsii.invoke(self, "next", []) + + +class EnumDispenser(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.EnumDispenser"): + """ + stability + :stability: experimental + """ + @jsii.member(jsii_name="randomIntegerLikeEnum") + @builtins.classmethod + def random_integer_like_enum(cls) -> "AllTypesEnum": + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "randomIntegerLikeEnum", []) + + @jsii.member(jsii_name="randomStringLikeEnum") + @builtins.classmethod + def random_string_like_enum(cls) -> "StringEnum": + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "randomStringLikeEnum", []) + + +class EraseUndefinedHashValues(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.EraseUndefinedHashValues"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(EraseUndefinedHashValues, self, []) + + @jsii.member(jsii_name="doesKeyExist") + @builtins.classmethod + def does_key_exist(cls, opts: "EraseUndefinedHashValuesOptions", key: str) -> bool: + """Returns ``true`` if ``key`` is defined in ``opts``. + + Used to check that undefined/null hash values + are being erased when sending values from native code to JS. + + :param opts: - + :param key: - + + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "doesKeyExist", [opts, key]) + + @jsii.member(jsii_name="prop1IsNull") + @builtins.classmethod + def prop1_is_null(cls) -> typing.Mapping[str,typing.Any]: + """We expect "prop1" to be erased. + + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "prop1IsNull", []) + + @jsii.member(jsii_name="prop2IsUndefined") + @builtins.classmethod + def prop2_is_undefined(cls) -> typing.Mapping[str,typing.Any]: + """We expect "prop2" to be erased. + + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "prop2IsUndefined", []) + + +@jsii.data_type(jsii_type="jsii-calc.compliance.EraseUndefinedHashValuesOptions", jsii_struct_bases=[], name_mapping={'option1': 'option1', 'option2': 'option2'}) +class EraseUndefinedHashValuesOptions(): + def __init__(self, *, option1: typing.Optional[str]=None, option2: typing.Optional[str]=None): + """ + :param option1: + :param option2: + + stability + :stability: experimental + """ + self._values = { + } + if option1 is not None: self._values["option1"] = option1 + if option2 is not None: self._values["option2"] = option2 + + @builtins.property + def option1(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + return self._values.get('option1') + + @builtins.property + def option2(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + return self._values.get('option2') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'EraseUndefinedHashValuesOptions(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +class ExportedBaseClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ExportedBaseClass"): + """ + stability + :stability: experimental + """ + def __init__(self, success: bool) -> None: + """ + :param success: - + + stability + :stability: experimental + """ + jsii.create(ExportedBaseClass, self, [success]) + + @builtins.property + @jsii.member(jsii_name="success") + def success(self) -> bool: + """ + stability + :stability: experimental + """ + return jsii.get(self, "success") + + +@jsii.data_type(jsii_type="jsii-calc.compliance.ExtendsInternalInterface", jsii_struct_bases=[], name_mapping={'boom': 'boom', 'prop': 'prop'}) +class ExtendsInternalInterface(): + def __init__(self, *, boom: bool, prop: str): + """ + :param boom: + :param prop: + + stability + :stability: experimental + """ + self._values = { + 'boom': boom, + 'prop': prop, + } + + @builtins.property + def boom(self) -> bool: + """ + stability + :stability: experimental + """ + return self._values.get('boom') + + @builtins.property + def prop(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('prop') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'ExtendsInternalInterface(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +class GiveMeStructs(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.GiveMeStructs"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(GiveMeStructs, self, []) + + @jsii.member(jsii_name="derivedToFirst") + def derived_to_first(self, *, another_required: datetime.datetime, bool: bool, non_primitive: "DoubleTrouble", another_optional: typing.Optional[typing.Mapping[str,scope.jsii_calc_lib.Value]]=None, optional_any: typing.Any=None, optional_array: typing.Optional[typing.List[str]]=None, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None) -> scope.jsii_calc_lib.MyFirstStruct: + """Accepts a struct of type DerivedStruct and returns a struct of type FirstStruct. + + :param another_required: + :param bool: + :param non_primitive: An example of a non primitive property. + :param another_optional: This is optional. + :param optional_any: + :param optional_array: + :param anumber: An awesome number value. + :param astring: A string value. + :param first_optional: + + stability + :stability: experimental + """ + derived = DerivedStruct(another_required=another_required, bool=bool, non_primitive=non_primitive, another_optional=another_optional, optional_any=optional_any, optional_array=optional_array, anumber=anumber, astring=astring, first_optional=first_optional) + + return jsii.invoke(self, "derivedToFirst", [derived]) + + @jsii.member(jsii_name="readDerivedNonPrimitive") + def read_derived_non_primitive(self, *, another_required: datetime.datetime, bool: bool, non_primitive: "DoubleTrouble", another_optional: typing.Optional[typing.Mapping[str,scope.jsii_calc_lib.Value]]=None, optional_any: typing.Any=None, optional_array: typing.Optional[typing.List[str]]=None, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None) -> "DoubleTrouble": + """Returns the boolean from a DerivedStruct struct. + + :param another_required: + :param bool: + :param non_primitive: An example of a non primitive property. + :param another_optional: This is optional. + :param optional_any: + :param optional_array: + :param anumber: An awesome number value. + :param astring: A string value. + :param first_optional: + + stability + :stability: experimental + """ + derived = DerivedStruct(another_required=another_required, bool=bool, non_primitive=non_primitive, another_optional=another_optional, optional_any=optional_any, optional_array=optional_array, anumber=anumber, astring=astring, first_optional=first_optional) + + return jsii.invoke(self, "readDerivedNonPrimitive", [derived]) + + @jsii.member(jsii_name="readFirstNumber") + def read_first_number(self, *, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None) -> jsii.Number: + """Returns the "anumber" from a MyFirstStruct struct; + + :param anumber: An awesome number value. + :param astring: A string value. + :param first_optional: + + stability + :stability: experimental + """ + first = scope.jsii_calc_lib.MyFirstStruct(anumber=anumber, astring=astring, first_optional=first_optional) + + return jsii.invoke(self, "readFirstNumber", [first]) + + @builtins.property + @jsii.member(jsii_name="structLiteral") + def struct_literal(self) -> scope.jsii_calc_lib.StructWithOnlyOptionals: + """ + stability + :stability: experimental + """ + return jsii.get(self, "structLiteral") + + +class GreetingAugmenter(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.GreetingAugmenter"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(GreetingAugmenter, self, []) + + @jsii.member(jsii_name="betterGreeting") + def better_greeting(self, friendly: scope.jsii_calc_lib.IFriendly) -> str: + """ + :param friendly: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "betterGreeting", [friendly]) + + +@jsii.interface(jsii_type="jsii-calc.compliance.IAnonymousImplementationProvider") +class IAnonymousImplementationProvider(jsii.compat.Protocol): + """We can return an anonymous interface implementation from an override without losing the interface declarations. + + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IAnonymousImplementationProviderProxy + + @jsii.member(jsii_name="provideAsClass") + def provide_as_class(self) -> "Implementation": + """ + stability + :stability: experimental + """ + ... + + @jsii.member(jsii_name="provideAsInterface") + def provide_as_interface(self) -> "IAnonymouslyImplementMe": + """ + stability + :stability: experimental + """ + ... + + +class _IAnonymousImplementationProviderProxy(): + """We can return an anonymous interface implementation from an override without losing the interface declarations. + + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.compliance.IAnonymousImplementationProvider" + @jsii.member(jsii_name="provideAsClass") + def provide_as_class(self) -> "Implementation": + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "provideAsClass", []) + + @jsii.member(jsii_name="provideAsInterface") + def provide_as_interface(self) -> "IAnonymouslyImplementMe": + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "provideAsInterface", []) + + +@jsii.interface(jsii_type="jsii-calc.compliance.IAnonymouslyImplementMe") +class IAnonymouslyImplementMe(jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IAnonymouslyImplementMeProxy + + @builtins.property + @jsii.member(jsii_name="value") + def value(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + ... + + @jsii.member(jsii_name="verb") + def verb(self) -> str: + """ + stability + :stability: experimental + """ + ... + + +class _IAnonymouslyImplementMeProxy(): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.compliance.IAnonymouslyImplementMe" + @builtins.property + @jsii.member(jsii_name="value") + def value(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.get(self, "value") + + @jsii.member(jsii_name="verb") + def verb(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "verb", []) + + +@jsii.interface(jsii_type="jsii-calc.compliance.IAnotherPublicInterface") +class IAnotherPublicInterface(jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IAnotherPublicInterfaceProxy + + @builtins.property + @jsii.member(jsii_name="a") + def a(self) -> str: + """ + stability + :stability: experimental + """ + ... + + @a.setter + def a(self, value: str): + ... + + +class _IAnotherPublicInterfaceProxy(): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.compliance.IAnotherPublicInterface" + @builtins.property + @jsii.member(jsii_name="a") + def a(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "a") + + @a.setter + def a(self, value: str): + jsii.set(self, "a", value) + + +@jsii.interface(jsii_type="jsii-calc.compliance.IBell") +class IBell(jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IBellProxy + + @jsii.member(jsii_name="ring") + def ring(self) -> None: + """ + stability + :stability: experimental + """ + ... + + +class _IBellProxy(): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.compliance.IBell" + @jsii.member(jsii_name="ring") + def ring(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "ring", []) + + +@jsii.interface(jsii_type="jsii-calc.compliance.IBellRinger") +class IBellRinger(jsii.compat.Protocol): + """Takes the object parameter as an interface. + + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IBellRingerProxy + + @jsii.member(jsii_name="yourTurn") + def your_turn(self, bell: "IBell") -> None: + """ + :param bell: - + + stability + :stability: experimental + """ + ... + + +class _IBellRingerProxy(): + """Takes the object parameter as an interface. + + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.compliance.IBellRinger" + @jsii.member(jsii_name="yourTurn") + def your_turn(self, bell: "IBell") -> None: + """ + :param bell: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "yourTurn", [bell]) + + +@jsii.interface(jsii_type="jsii-calc.compliance.IConcreteBellRinger") +class IConcreteBellRinger(jsii.compat.Protocol): + """Takes the object parameter as a calss. + + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IConcreteBellRingerProxy + + @jsii.member(jsii_name="yourTurn") + def your_turn(self, bell: "Bell") -> None: + """ + :param bell: - + + stability + :stability: experimental + """ + ... + + +class _IConcreteBellRingerProxy(): + """Takes the object parameter as a calss. + + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.compliance.IConcreteBellRinger" + @jsii.member(jsii_name="yourTurn") + def your_turn(self, bell: "Bell") -> None: + """ + :param bell: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "yourTurn", [bell]) + + +@jsii.interface(jsii_type="jsii-calc.compliance.IExtendsPrivateInterface") +class IExtendsPrivateInterface(jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IExtendsPrivateInterfaceProxy + + @builtins.property + @jsii.member(jsii_name="moreThings") + def more_things(self) -> typing.List[str]: + """ + stability + :stability: experimental + """ + ... + + @builtins.property + @jsii.member(jsii_name="private") + def private(self) -> str: + """ + stability + :stability: experimental + """ + ... + + @private.setter + def private(self, value: str): + ... + + +class _IExtendsPrivateInterfaceProxy(): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.compliance.IExtendsPrivateInterface" + @builtins.property + @jsii.member(jsii_name="moreThings") + def more_things(self) -> typing.List[str]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "moreThings") + + @builtins.property + @jsii.member(jsii_name="private") + def private(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "private") + + @private.setter + def private(self, value: str): + jsii.set(self, "private", value) + + +@jsii.interface(jsii_type="jsii-calc.compliance.IInterfaceImplementedByAbstractClass") +class IInterfaceImplementedByAbstractClass(jsii.compat.Protocol): + """awslabs/jsii#220 Abstract return type. + + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IInterfaceImplementedByAbstractClassProxy + + @builtins.property + @jsii.member(jsii_name="propFromInterface") + def prop_from_interface(self) -> str: + """ + stability + :stability: experimental + """ + ... + + +class _IInterfaceImplementedByAbstractClassProxy(): + """awslabs/jsii#220 Abstract return type. + + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.compliance.IInterfaceImplementedByAbstractClass" + @builtins.property + @jsii.member(jsii_name="propFromInterface") + def prop_from_interface(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "propFromInterface") + + +@jsii.interface(jsii_type="jsii-calc.compliance.IInterfaceWithInternal") +class IInterfaceWithInternal(jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IInterfaceWithInternalProxy + + @jsii.member(jsii_name="visible") + def visible(self) -> None: + """ + stability + :stability: experimental + """ + ... + + +class _IInterfaceWithInternalProxy(): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.compliance.IInterfaceWithInternal" + @jsii.member(jsii_name="visible") + def visible(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "visible", []) + + +@jsii.interface(jsii_type="jsii-calc.compliance.IInterfaceWithMethods") +class IInterfaceWithMethods(jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IInterfaceWithMethodsProxy + + @builtins.property + @jsii.member(jsii_name="value") + def value(self) -> str: + """ + stability + :stability: experimental + """ + ... + + @jsii.member(jsii_name="doThings") + def do_things(self) -> None: + """ + stability + :stability: experimental + """ + ... + + +class _IInterfaceWithMethodsProxy(): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.compliance.IInterfaceWithMethods" + @builtins.property + @jsii.member(jsii_name="value") + def value(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "value") + + @jsii.member(jsii_name="doThings") + def do_things(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "doThings", []) + + +@jsii.interface(jsii_type="jsii-calc.compliance.IInterfaceWithOptionalMethodArguments") +class IInterfaceWithOptionalMethodArguments(jsii.compat.Protocol): + """awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods. + + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IInterfaceWithOptionalMethodArgumentsProxy + + @jsii.member(jsii_name="hello") + def hello(self, arg1: str, arg2: typing.Optional[jsii.Number]=None) -> None: + """ + :param arg1: - + :param arg2: - + + stability + :stability: experimental + """ + ... + + +class _IInterfaceWithOptionalMethodArgumentsProxy(): + """awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods. + + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.compliance.IInterfaceWithOptionalMethodArguments" + @jsii.member(jsii_name="hello") + def hello(self, arg1: str, arg2: typing.Optional[jsii.Number]=None) -> None: + """ + :param arg1: - + :param arg2: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "hello", [arg1, arg2]) + + +@jsii.interface(jsii_type="jsii-calc.compliance.IInterfaceWithProperties") +class IInterfaceWithProperties(jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IInterfaceWithPropertiesProxy + + @builtins.property + @jsii.member(jsii_name="readOnlyString") + def read_only_string(self) -> str: + """ + stability + :stability: experimental + """ + ... + + @builtins.property + @jsii.member(jsii_name="readWriteString") + def read_write_string(self) -> str: + """ + stability + :stability: experimental + """ + ... + + @read_write_string.setter + def read_write_string(self, value: str): + ... + + +class _IInterfaceWithPropertiesProxy(): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.compliance.IInterfaceWithProperties" + @builtins.property + @jsii.member(jsii_name="readOnlyString") + def read_only_string(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "readOnlyString") + + @builtins.property + @jsii.member(jsii_name="readWriteString") + def read_write_string(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "readWriteString") + + @read_write_string.setter + def read_write_string(self, value: str): + jsii.set(self, "readWriteString", value) + + +@jsii.interface(jsii_type="jsii-calc.compliance.IInterfaceWithPropertiesExtension") +class IInterfaceWithPropertiesExtension(IInterfaceWithProperties, jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IInterfaceWithPropertiesExtensionProxy + + @builtins.property + @jsii.member(jsii_name="foo") + def foo(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + ... + + @foo.setter + def foo(self, value: jsii.Number): + ... + + +class _IInterfaceWithPropertiesExtensionProxy(jsii.proxy_for(IInterfaceWithProperties)): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.compliance.IInterfaceWithPropertiesExtension" + @builtins.property + @jsii.member(jsii_name="foo") + def foo(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.get(self, "foo") + + @foo.setter + def foo(self, value: jsii.Number): + jsii.set(self, "foo", value) + + +@jsii.interface(jsii_type="jsii-calc.compliance.IMutableObjectLiteral") +class IMutableObjectLiteral(jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IMutableObjectLiteralProxy + + @builtins.property + @jsii.member(jsii_name="value") + def value(self) -> str: + """ + stability + :stability: experimental + """ + ... + + @value.setter + def value(self, value: str): + ... + + +class _IMutableObjectLiteralProxy(): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.compliance.IMutableObjectLiteral" + @builtins.property + @jsii.member(jsii_name="value") + def value(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "value") + + @value.setter + def value(self, value: str): + jsii.set(self, "value", value) + + +@jsii.interface(jsii_type="jsii-calc.compliance.INonInternalInterface") +class INonInternalInterface(IAnotherPublicInterface, jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _INonInternalInterfaceProxy + + @builtins.property + @jsii.member(jsii_name="b") + def b(self) -> str: + """ + stability + :stability: experimental + """ + ... + + @b.setter + def b(self, value: str): + ... + + @builtins.property + @jsii.member(jsii_name="c") + def c(self) -> str: + """ + stability + :stability: experimental + """ + ... + + @c.setter + def c(self, value: str): + ... + + +class _INonInternalInterfaceProxy(jsii.proxy_for(IAnotherPublicInterface)): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.compliance.INonInternalInterface" + @builtins.property + @jsii.member(jsii_name="b") + def b(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "b") + + @b.setter + def b(self, value: str): + jsii.set(self, "b", value) + + @builtins.property + @jsii.member(jsii_name="c") + def c(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "c") + + @c.setter + def c(self, value: str): + jsii.set(self, "c", value) + + +@jsii.interface(jsii_type="jsii-calc.compliance.IObjectWithProperty") +class IObjectWithProperty(jsii.compat.Protocol): + """Make sure that setters are properly called on objects with interfaces. + + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IObjectWithPropertyProxy + + @builtins.property + @jsii.member(jsii_name="property") + def property(self) -> str: + """ + stability + :stability: experimental + """ + ... + + @property.setter + def property(self, value: str): + ... + + @jsii.member(jsii_name="wasSet") + def was_set(self) -> bool: + """ + stability + :stability: experimental + """ + ... + + +class _IObjectWithPropertyProxy(): + """Make sure that setters are properly called on objects with interfaces. + + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.compliance.IObjectWithProperty" + @builtins.property + @jsii.member(jsii_name="property") + def property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "property") + + @property.setter + def property(self, value: str): + jsii.set(self, "property", value) + + @jsii.member(jsii_name="wasSet") + def was_set(self) -> bool: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "wasSet", []) + + +@jsii.interface(jsii_type="jsii-calc.compliance.IOptionalMethod") +class IOptionalMethod(jsii.compat.Protocol): + """Checks that optional result from interface method code generates correctly. + + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IOptionalMethodProxy + + @jsii.member(jsii_name="optional") + def optional(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + ... + + +class _IOptionalMethodProxy(): + """Checks that optional result from interface method code generates correctly. + + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.compliance.IOptionalMethod" + @jsii.member(jsii_name="optional") + def optional(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "optional", []) + + +@jsii.interface(jsii_type="jsii-calc.compliance.IPrivatelyImplemented") +class IPrivatelyImplemented(jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IPrivatelyImplementedProxy + + @builtins.property + @jsii.member(jsii_name="success") + def success(self) -> bool: + """ + stability + :stability: experimental + """ + ... + + +class _IPrivatelyImplementedProxy(): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.compliance.IPrivatelyImplemented" + @builtins.property + @jsii.member(jsii_name="success") + def success(self) -> bool: + """ + stability + :stability: experimental + """ + return jsii.get(self, "success") + + +@jsii.interface(jsii_type="jsii-calc.compliance.IPublicInterface") +class IPublicInterface(jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IPublicInterfaceProxy + + @jsii.member(jsii_name="bye") + def bye(self) -> str: + """ + stability + :stability: experimental + """ + ... + + +class _IPublicInterfaceProxy(): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.compliance.IPublicInterface" + @jsii.member(jsii_name="bye") + def bye(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "bye", []) + + +@jsii.interface(jsii_type="jsii-calc.compliance.IPublicInterface2") +class IPublicInterface2(jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IPublicInterface2Proxy + + @jsii.member(jsii_name="ciao") + def ciao(self) -> str: + """ + stability + :stability: experimental + """ + ... + + +class _IPublicInterface2Proxy(): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.compliance.IPublicInterface2" + @jsii.member(jsii_name="ciao") + def ciao(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "ciao", []) + + +@jsii.interface(jsii_type="jsii-calc.compliance.IReturnJsii976") +class IReturnJsii976(jsii.compat.Protocol): + """Returns a subclass of a known class which implements an interface. + + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IReturnJsii976Proxy + + @builtins.property + @jsii.member(jsii_name="foo") + def foo(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + ... + + +class _IReturnJsii976Proxy(): + """Returns a subclass of a known class which implements an interface. + + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.compliance.IReturnJsii976" + @builtins.property + @jsii.member(jsii_name="foo") + def foo(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.get(self, "foo") + + +@jsii.interface(jsii_type="jsii-calc.compliance.IReturnsNumber") +class IReturnsNumber(jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IReturnsNumberProxy + + @builtins.property + @jsii.member(jsii_name="numberProp") + def number_prop(self) -> scope.jsii_calc_lib.Number: + """ + stability + :stability: experimental + """ + ... + + @jsii.member(jsii_name="obtainNumber") + def obtain_number(self) -> scope.jsii_calc_lib.IDoublable: + """ + stability + :stability: experimental + """ + ... + + +class _IReturnsNumberProxy(): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.compliance.IReturnsNumber" + @builtins.property + @jsii.member(jsii_name="numberProp") + def number_prop(self) -> scope.jsii_calc_lib.Number: + """ + stability + :stability: experimental + """ + return jsii.get(self, "numberProp") + + @jsii.member(jsii_name="obtainNumber") + def obtain_number(self) -> scope.jsii_calc_lib.IDoublable: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "obtainNumber", []) + + +@jsii.interface(jsii_type="jsii-calc.compliance.IStructReturningDelegate") +class IStructReturningDelegate(jsii.compat.Protocol): + """Verifies that a "pure" implementation of an interface works correctly. + + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IStructReturningDelegateProxy + + @jsii.member(jsii_name="returnStruct") + def return_struct(self) -> "StructB": + """ + stability + :stability: experimental + """ + ... + + +class _IStructReturningDelegateProxy(): + """Verifies that a "pure" implementation of an interface works correctly. + + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.compliance.IStructReturningDelegate" + @jsii.member(jsii_name="returnStruct") + def return_struct(self) -> "StructB": + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "returnStruct", []) + + +class ImplementInternalInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ImplementInternalInterface"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(ImplementInternalInterface, self, []) + + @builtins.property + @jsii.member(jsii_name="prop") + def prop(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "prop") + + @prop.setter + def prop(self, value: str): + jsii.set(self, "prop", value) + + +class Implementation(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.Implementation"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(Implementation, self, []) + + @builtins.property + @jsii.member(jsii_name="value") + def value(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.get(self, "value") + + +@jsii.implements(IInterfaceWithInternal) +class ImplementsInterfaceWithInternal(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ImplementsInterfaceWithInternal"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(ImplementsInterfaceWithInternal, self, []) + + @jsii.member(jsii_name="visible") + def visible(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "visible", []) + + +class ImplementsInterfaceWithInternalSubclass(ImplementsInterfaceWithInternal, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ImplementsInterfaceWithInternalSubclass"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(ImplementsInterfaceWithInternalSubclass, self, []) + + +class ImplementsPrivateInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ImplementsPrivateInterface"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(ImplementsPrivateInterface, self, []) + + @builtins.property + @jsii.member(jsii_name="private") + def private(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "private") + + @private.setter + def private(self, value: str): + jsii.set(self, "private", value) + + +@jsii.data_type(jsii_type="jsii-calc.compliance.ImplictBaseOfBase", jsii_struct_bases=[scope.jsii_calc_base.BaseProps], name_mapping={'foo': 'foo', 'bar': 'bar', 'goo': 'goo'}) +class ImplictBaseOfBase(scope.jsii_calc_base.BaseProps): + def __init__(self, *, foo: scope.jsii_calc_base_of_base.Very, bar: str, goo: datetime.datetime): + """ + :param foo: - + :param bar: - + :param goo: + + stability + :stability: experimental + """ + self._values = { + 'foo': foo, + 'bar': bar, + 'goo': goo, + } + + @builtins.property + def foo(self) -> scope.jsii_calc_base_of_base.Very: + return self._values.get('foo') + + @builtins.property + def bar(self) -> str: + return self._values.get('bar') + + @builtins.property + def goo(self) -> datetime.datetime: + """ + stability + :stability: experimental + """ + return self._values.get('goo') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'ImplictBaseOfBase(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +class InterfaceCollections(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.InterfaceCollections"): + """Verifies that collections of interfaces or structs are correctly handled. + + See: https://github.com/aws/jsii/issues/1196 + + stability + :stability: experimental + """ + @jsii.member(jsii_name="listOfInterfaces") + @builtins.classmethod + def list_of_interfaces(cls) -> typing.List["IBell"]: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "listOfInterfaces", []) + + @jsii.member(jsii_name="listOfStructs") + @builtins.classmethod + def list_of_structs(cls) -> typing.List["StructA"]: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "listOfStructs", []) + + @jsii.member(jsii_name="mapOfInterfaces") + @builtins.classmethod + def map_of_interfaces(cls) -> typing.Mapping[str,"IBell"]: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "mapOfInterfaces", []) + + @jsii.member(jsii_name="mapOfStructs") + @builtins.classmethod + def map_of_structs(cls) -> typing.Mapping[str,"StructA"]: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "mapOfStructs", []) + + +class InterfacesMaker(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.InterfacesMaker"): + """We can return arrays of interfaces See aws/aws-cdk#2362. + + stability + :stability: experimental + """ + @jsii.member(jsii_name="makeInterfaces") + @builtins.classmethod + def make_interfaces(cls, count: jsii.Number) -> typing.List[scope.jsii_calc_lib.IDoublable]: + """ + :param count: - + + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "makeInterfaces", [count]) + + +class JSObjectLiteralForInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.JSObjectLiteralForInterface"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(JSObjectLiteralForInterface, self, []) + + @jsii.member(jsii_name="giveMeFriendly") + def give_me_friendly(self) -> scope.jsii_calc_lib.IFriendly: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "giveMeFriendly", []) + + @jsii.member(jsii_name="giveMeFriendlyGenerator") + def give_me_friendly_generator(self) -> jsii_calc.IFriendlyRandomGenerator: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "giveMeFriendlyGenerator", []) + + +class JSObjectLiteralToNative(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.JSObjectLiteralToNative"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(JSObjectLiteralToNative, self, []) + + @jsii.member(jsii_name="returnLiteral") + def return_literal(self) -> "JSObjectLiteralToNativeClass": + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "returnLiteral", []) + + +class JSObjectLiteralToNativeClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.JSObjectLiteralToNativeClass"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(JSObjectLiteralToNativeClass, self, []) + + @builtins.property + @jsii.member(jsii_name="propA") + def prop_a(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "propA") + + @prop_a.setter + def prop_a(self, value: str): + jsii.set(self, "propA", value) + + @builtins.property + @jsii.member(jsii_name="propB") + def prop_b(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.get(self, "propB") + + @prop_b.setter + def prop_b(self, value: jsii.Number): + jsii.set(self, "propB", value) + + +class JavaReservedWords(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.JavaReservedWords"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(JavaReservedWords, self, []) + + @jsii.member(jsii_name="abstract") + def abstract(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "abstract", []) + + @jsii.member(jsii_name="assert") + def assert_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "assert", []) + + @jsii.member(jsii_name="boolean") + def boolean(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "boolean", []) + + @jsii.member(jsii_name="break") + def break_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "break", []) + + @jsii.member(jsii_name="byte") + def byte(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "byte", []) + + @jsii.member(jsii_name="case") + def case(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "case", []) + + @jsii.member(jsii_name="catch") + def catch(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "catch", []) + + @jsii.member(jsii_name="char") + def char(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "char", []) + + @jsii.member(jsii_name="class") + def class_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "class", []) + + @jsii.member(jsii_name="const") + def const(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "const", []) + + @jsii.member(jsii_name="continue") + def continue_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "continue", []) + + @jsii.member(jsii_name="default") + def default(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "default", []) + + @jsii.member(jsii_name="do") + def do(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "do", []) + + @jsii.member(jsii_name="double") + def double(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "double", []) + + @jsii.member(jsii_name="else") + def else_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "else", []) + + @jsii.member(jsii_name="enum") + def enum(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "enum", []) + + @jsii.member(jsii_name="extends") + def extends(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "extends", []) + + @jsii.member(jsii_name="false") + def false(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "false", []) + + @jsii.member(jsii_name="final") + def final(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "final", []) + + @jsii.member(jsii_name="finally") + def finally_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "finally", []) + + @jsii.member(jsii_name="float") + def float(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "float", []) + + @jsii.member(jsii_name="for") + def for_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "for", []) + + @jsii.member(jsii_name="goto") + def goto(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "goto", []) + + @jsii.member(jsii_name="if") + def if_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "if", []) + + @jsii.member(jsii_name="implements") + def implements(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "implements", []) + + @jsii.member(jsii_name="import") + def import_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "import", []) + + @jsii.member(jsii_name="instanceof") + def instanceof(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "instanceof", []) + + @jsii.member(jsii_name="int") + def int(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "int", []) + + @jsii.member(jsii_name="interface") + def interface(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "interface", []) + + @jsii.member(jsii_name="long") + def long(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "long", []) + + @jsii.member(jsii_name="native") + def native(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "native", []) + + @jsii.member(jsii_name="new") + def new(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "new", []) + + @jsii.member(jsii_name="null") + def null(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "null", []) + + @jsii.member(jsii_name="package") + def package(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "package", []) + + @jsii.member(jsii_name="private") + def private(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "private", []) + + @jsii.member(jsii_name="protected") + def protected(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "protected", []) + + @jsii.member(jsii_name="public") + def public(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "public", []) + + @jsii.member(jsii_name="return") + def return_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "return", []) + + @jsii.member(jsii_name="short") + def short(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "short", []) + + @jsii.member(jsii_name="static") + def static(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "static", []) + + @jsii.member(jsii_name="strictfp") + def strictfp(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "strictfp", []) + + @jsii.member(jsii_name="super") + def super(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "super", []) + + @jsii.member(jsii_name="switch") + def switch(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "switch", []) + + @jsii.member(jsii_name="synchronized") + def synchronized(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "synchronized", []) + + @jsii.member(jsii_name="this") + def this(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "this", []) + + @jsii.member(jsii_name="throw") + def throw(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "throw", []) + + @jsii.member(jsii_name="throws") + def throws(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "throws", []) + + @jsii.member(jsii_name="transient") + def transient(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "transient", []) + + @jsii.member(jsii_name="true") + def true(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "true", []) + + @jsii.member(jsii_name="try") + def try_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "try", []) + + @jsii.member(jsii_name="void") + def void(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "void", []) + + @jsii.member(jsii_name="volatile") + def volatile(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "volatile", []) + + @builtins.property + @jsii.member(jsii_name="while") + def while_(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "while") + + @while_.setter + def while_(self, value: str): + jsii.set(self, "while", value) + + +class JsiiAgent(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.JsiiAgent"): + """Host runtime version should be set via JSII_AGENT. + + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(JsiiAgent, self, []) + + @jsii.python.classproperty + @jsii.member(jsii_name="jsiiAgent") + def jsii_agent(cls) -> typing.Optional[str]: + """Returns the value of the JSII_AGENT environment variable. + + stability + :stability: experimental + """ + return jsii.sget(cls, "jsiiAgent") + + +class JsonFormatter(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.JsonFormatter"): + """Make sure structs are un-decorated on the way in. + + see + :see: https://github.com/aws/aws-cdk/issues/5066 + stability + :stability: experimental + """ + @jsii.member(jsii_name="anyArray") + @builtins.classmethod + def any_array(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyArray", []) + + @jsii.member(jsii_name="anyBooleanFalse") + @builtins.classmethod + def any_boolean_false(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyBooleanFalse", []) + + @jsii.member(jsii_name="anyBooleanTrue") + @builtins.classmethod + def any_boolean_true(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyBooleanTrue", []) + + @jsii.member(jsii_name="anyDate") + @builtins.classmethod + def any_date(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyDate", []) + + @jsii.member(jsii_name="anyEmptyString") + @builtins.classmethod + def any_empty_string(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyEmptyString", []) + + @jsii.member(jsii_name="anyFunction") + @builtins.classmethod + def any_function(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyFunction", []) + + @jsii.member(jsii_name="anyHash") + @builtins.classmethod + def any_hash(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyHash", []) + + @jsii.member(jsii_name="anyNull") + @builtins.classmethod + def any_null(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyNull", []) + + @jsii.member(jsii_name="anyNumber") + @builtins.classmethod + def any_number(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyNumber", []) + + @jsii.member(jsii_name="anyRef") + @builtins.classmethod + def any_ref(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyRef", []) + + @jsii.member(jsii_name="anyString") + @builtins.classmethod + def any_string(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyString", []) + + @jsii.member(jsii_name="anyUndefined") + @builtins.classmethod + def any_undefined(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyUndefined", []) + + @jsii.member(jsii_name="anyZero") + @builtins.classmethod + def any_zero(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyZero", []) + + @jsii.member(jsii_name="stringify") + @builtins.classmethod + def stringify(cls, value: typing.Any=None) -> typing.Optional[str]: + """ + :param value: - + + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "stringify", [value]) + + +@jsii.data_type(jsii_type="jsii-calc.compliance.LoadBalancedFargateServiceProps", jsii_struct_bases=[], name_mapping={'container_port': 'containerPort', 'cpu': 'cpu', 'memory_mib': 'memoryMiB', 'public_load_balancer': 'publicLoadBalancer', 'public_tasks': 'publicTasks'}) +class LoadBalancedFargateServiceProps(): + def __init__(self, *, container_port: typing.Optional[jsii.Number]=None, cpu: typing.Optional[str]=None, memory_mib: typing.Optional[str]=None, public_load_balancer: typing.Optional[bool]=None, public_tasks: typing.Optional[bool]=None): + """jsii#298: show default values in sphinx documentation, and respect newlines. + + :param container_port: The container port of the application load balancer attached to your Fargate service. Corresponds to container port mapping. Default: 80 + :param cpu: The number of cpu units used by the task. Valid values, which determines your range of valid values for the memory parameter: 256 (.25 vCPU) - Available memory values: 0.5GB, 1GB, 2GB 512 (.5 vCPU) - Available memory values: 1GB, 2GB, 3GB, 4GB 1024 (1 vCPU) - Available memory values: 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB 2048 (2 vCPU) - Available memory values: Between 4GB and 16GB in 1GB increments 4096 (4 vCPU) - Available memory values: Between 8GB and 30GB in 1GB increments This default is set in the underlying FargateTaskDefinition construct. Default: 256 + :param memory_mib: The amount (in MiB) of memory used by the task. This field is required and you must use one of the following values, which determines your range of valid values for the cpu parameter: 0.5GB, 1GB, 2GB - Available cpu values: 256 (.25 vCPU) 1GB, 2GB, 3GB, 4GB - Available cpu values: 512 (.5 vCPU) 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - Available cpu values: 1024 (1 vCPU) Between 4GB and 16GB in 1GB increments - Available cpu values: 2048 (2 vCPU) Between 8GB and 30GB in 1GB increments - Available cpu values: 4096 (4 vCPU) This default is set in the underlying FargateTaskDefinition construct. Default: 512 + :param public_load_balancer: Determines whether the Application Load Balancer will be internet-facing. Default: true + :param public_tasks: Determines whether your Fargate Service will be assigned a public IP address. Default: false + + stability + :stability: experimental + """ + self._values = { + } + if container_port is not None: self._values["container_port"] = container_port + if cpu is not None: self._values["cpu"] = cpu + if memory_mib is not None: self._values["memory_mib"] = memory_mib + if public_load_balancer is not None: self._values["public_load_balancer"] = public_load_balancer + if public_tasks is not None: self._values["public_tasks"] = public_tasks + + @builtins.property + def container_port(self) -> typing.Optional[jsii.Number]: + """The container port of the application load balancer attached to your Fargate service. + + Corresponds to container port mapping. + + default + :default: 80 + + stability + :stability: experimental + """ + return self._values.get('container_port') + + @builtins.property + def cpu(self) -> typing.Optional[str]: + """The number of cpu units used by the task. + + Valid values, which determines your range of valid values for the memory parameter: + 256 (.25 vCPU) - Available memory values: 0.5GB, 1GB, 2GB + 512 (.5 vCPU) - Available memory values: 1GB, 2GB, 3GB, 4GB + 1024 (1 vCPU) - Available memory values: 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB + 2048 (2 vCPU) - Available memory values: Between 4GB and 16GB in 1GB increments + 4096 (4 vCPU) - Available memory values: Between 8GB and 30GB in 1GB increments + + This default is set in the underlying FargateTaskDefinition construct. + + default + :default: 256 + + stability + :stability: experimental + """ + return self._values.get('cpu') + + @builtins.property + def memory_mib(self) -> typing.Optional[str]: + """The amount (in MiB) of memory used by the task. + + This field is required and you must use one of the following values, which determines your range of valid values + for the cpu parameter: + + 0.5GB, 1GB, 2GB - Available cpu values: 256 (.25 vCPU) + + 1GB, 2GB, 3GB, 4GB - Available cpu values: 512 (.5 vCPU) + + 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - Available cpu values: 1024 (1 vCPU) + + Between 4GB and 16GB in 1GB increments - Available cpu values: 2048 (2 vCPU) + + Between 8GB and 30GB in 1GB increments - Available cpu values: 4096 (4 vCPU) + + This default is set in the underlying FargateTaskDefinition construct. + + default + :default: 512 + + stability + :stability: experimental + """ + return self._values.get('memory_mib') + + @builtins.property + def public_load_balancer(self) -> typing.Optional[bool]: + """Determines whether the Application Load Balancer will be internet-facing. + + default + :default: true + + stability + :stability: experimental + """ + return self._values.get('public_load_balancer') + + @builtins.property + def public_tasks(self) -> typing.Optional[bool]: + """Determines whether your Fargate Service will be assigned a public IP address. + + default + :default: false + + stability + :stability: experimental + """ + return self._values.get('public_tasks') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'LoadBalancedFargateServiceProps(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +@jsii.data_type(jsii_type="jsii-calc.compliance.NestedStruct", jsii_struct_bases=[], name_mapping={'number_prop': 'numberProp'}) +class NestedStruct(): + def __init__(self, *, number_prop: jsii.Number): + """ + :param number_prop: When provided, must be > 0. + + stability + :stability: experimental + """ + self._values = { + 'number_prop': number_prop, + } + + @builtins.property + def number_prop(self) -> jsii.Number: + """When provided, must be > 0. + + stability + :stability: experimental + """ + return self._values.get('number_prop') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'NestedStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +class NodeStandardLibrary(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.NodeStandardLibrary"): + """Test fixture to verify that jsii modules can use the node standard library. + + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(NodeStandardLibrary, self, []) + + @jsii.member(jsii_name="cryptoSha256") + def crypto_sha256(self) -> str: + """Uses node.js "crypto" module to calculate sha256 of a string. + + return + :return: "6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50" + + stability + :stability: experimental + """ + return jsii.invoke(self, "cryptoSha256", []) + + @jsii.member(jsii_name="fsReadFile") + def fs_read_file(self) -> str: + """Reads a local resource file (resource.txt) asynchronously. + + return + :return: "Hello, resource!" + + stability + :stability: experimental + """ + return jsii.ainvoke(self, "fsReadFile", []) + + @jsii.member(jsii_name="fsReadFileSync") + def fs_read_file_sync(self) -> str: + """Sync version of fsReadFile. + + return + :return: "Hello, resource! SYNC!" + + stability + :stability: experimental + """ + return jsii.invoke(self, "fsReadFileSync", []) + + @builtins.property + @jsii.member(jsii_name="osPlatform") + def os_platform(self) -> str: + """Returns the current os.platform() from the "os" node module. + + stability + :stability: experimental + """ + return jsii.get(self, "osPlatform") + + +class NullShouldBeTreatedAsUndefined(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.NullShouldBeTreatedAsUndefined"): + """jsii#282, aws-cdk#157: null should be treated as "undefined". + + stability + :stability: experimental + """ + def __init__(self, _param1: str, optional: typing.Any=None) -> None: + """ + :param _param1: - + :param optional: - + + stability + :stability: experimental + """ + jsii.create(NullShouldBeTreatedAsUndefined, self, [_param1, optional]) + + @jsii.member(jsii_name="giveMeUndefined") + def give_me_undefined(self, value: typing.Any=None) -> None: + """ + :param value: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "giveMeUndefined", [value]) + + @jsii.member(jsii_name="giveMeUndefinedInsideAnObject") + def give_me_undefined_inside_an_object(self, *, array_with_three_elements_and_undefined_as_second_argument: typing.List[typing.Any], this_should_be_undefined: typing.Any=None) -> None: + """ + :param array_with_three_elements_and_undefined_as_second_argument: + :param this_should_be_undefined: + + stability + :stability: experimental + """ + input = NullShouldBeTreatedAsUndefinedData(array_with_three_elements_and_undefined_as_second_argument=array_with_three_elements_and_undefined_as_second_argument, this_should_be_undefined=this_should_be_undefined) + + return jsii.invoke(self, "giveMeUndefinedInsideAnObject", [input]) + + @jsii.member(jsii_name="verifyPropertyIsUndefined") + def verify_property_is_undefined(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "verifyPropertyIsUndefined", []) + + @builtins.property + @jsii.member(jsii_name="changeMeToUndefined") + def change_me_to_undefined(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "changeMeToUndefined") + + @change_me_to_undefined.setter + def change_me_to_undefined(self, value: typing.Optional[str]): + jsii.set(self, "changeMeToUndefined", value) + + +@jsii.data_type(jsii_type="jsii-calc.compliance.NullShouldBeTreatedAsUndefinedData", jsii_struct_bases=[], name_mapping={'array_with_three_elements_and_undefined_as_second_argument': 'arrayWithThreeElementsAndUndefinedAsSecondArgument', 'this_should_be_undefined': 'thisShouldBeUndefined'}) +class NullShouldBeTreatedAsUndefinedData(): + def __init__(self, *, array_with_three_elements_and_undefined_as_second_argument: typing.List[typing.Any], this_should_be_undefined: typing.Any=None): + """ + :param array_with_three_elements_and_undefined_as_second_argument: + :param this_should_be_undefined: + + stability + :stability: experimental + """ + self._values = { + 'array_with_three_elements_and_undefined_as_second_argument': array_with_three_elements_and_undefined_as_second_argument, + } + if this_should_be_undefined is not None: self._values["this_should_be_undefined"] = this_should_be_undefined + + @builtins.property + def array_with_three_elements_and_undefined_as_second_argument(self) -> typing.List[typing.Any]: + """ + stability + :stability: experimental + """ + return self._values.get('array_with_three_elements_and_undefined_as_second_argument') + + @builtins.property + def this_should_be_undefined(self) -> typing.Any: + """ + stability + :stability: experimental + """ + return self._values.get('this_should_be_undefined') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'NullShouldBeTreatedAsUndefinedData(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +class NumberGenerator(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.NumberGenerator"): + """This allows us to test that a reference can be stored for objects that implement interfaces. + + stability + :stability: experimental + """ + def __init__(self, generator: jsii_calc.IRandomNumberGenerator) -> None: + """ + :param generator: - + + stability + :stability: experimental + """ + jsii.create(NumberGenerator, self, [generator]) + + @jsii.member(jsii_name="isSameGenerator") + def is_same_generator(self, gen: jsii_calc.IRandomNumberGenerator) -> bool: + """ + :param gen: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "isSameGenerator", [gen]) + + @jsii.member(jsii_name="nextTimes100") + def next_times100(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "nextTimes100", []) + + @builtins.property + @jsii.member(jsii_name="generator") + def generator(self) -> jsii_calc.IRandomNumberGenerator: + """ + stability + :stability: experimental + """ + return jsii.get(self, "generator") + + @generator.setter + def generator(self, value: jsii_calc.IRandomNumberGenerator): + jsii.set(self, "generator", value) + + +class ObjectRefsInCollections(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ObjectRefsInCollections"): + """Verify that object references can be passed inside collections. + + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(ObjectRefsInCollections, self, []) + + @jsii.member(jsii_name="sumFromArray") + def sum_from_array(self, values: typing.List[scope.jsii_calc_lib.Value]) -> jsii.Number: + """Returns the sum of all values. + + :param values: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "sumFromArray", [values]) + + @jsii.member(jsii_name="sumFromMap") + def sum_from_map(self, values: typing.Mapping[str,scope.jsii_calc_lib.Value]) -> jsii.Number: + """Returns the sum of all values in a map. + + :param values: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "sumFromMap", [values]) + + +class ObjectWithPropertyProvider(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ObjectWithPropertyProvider"): + """ + stability + :stability: experimental + """ + @jsii.member(jsii_name="provide") + @builtins.classmethod + def provide(cls) -> "IObjectWithProperty": + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "provide", []) + + +class OptionalArgumentInvoker(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.OptionalArgumentInvoker"): + """ + stability + :stability: experimental + """ + def __init__(self, delegate: "IInterfaceWithOptionalMethodArguments") -> None: + """ + :param delegate: - + + stability + :stability: experimental + """ + jsii.create(OptionalArgumentInvoker, self, [delegate]) + + @jsii.member(jsii_name="invokeWithOptional") + def invoke_with_optional(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "invokeWithOptional", []) + + @jsii.member(jsii_name="invokeWithoutOptional") + def invoke_without_optional(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "invokeWithoutOptional", []) + + +class OptionalConstructorArgument(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.OptionalConstructorArgument"): + """ + stability + :stability: experimental + """ + def __init__(self, arg1: jsii.Number, arg2: str, arg3: typing.Optional[datetime.datetime]=None) -> None: + """ + :param arg1: - + :param arg2: - + :param arg3: - + + stability + :stability: experimental + """ + jsii.create(OptionalConstructorArgument, self, [arg1, arg2, arg3]) + + @builtins.property + @jsii.member(jsii_name="arg1") + def arg1(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.get(self, "arg1") + + @builtins.property + @jsii.member(jsii_name="arg2") + def arg2(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "arg2") + + @builtins.property + @jsii.member(jsii_name="arg3") + def arg3(self) -> typing.Optional[datetime.datetime]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "arg3") + + +@jsii.data_type(jsii_type="jsii-calc.compliance.OptionalStruct", jsii_struct_bases=[], name_mapping={'field': 'field'}) +class OptionalStruct(): + def __init__(self, *, field: typing.Optional[str]=None): + """ + :param field: + + stability + :stability: experimental + """ + self._values = { + } + if field is not None: self._values["field"] = field + + @builtins.property + def field(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + return self._values.get('field') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'OptionalStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +class OptionalStructConsumer(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.OptionalStructConsumer"): + """ + stability + :stability: experimental + """ + def __init__(self, *, field: typing.Optional[str]=None) -> None: + """ + :param field: + + stability + :stability: experimental + """ + optional_struct = OptionalStruct(field=field) + + jsii.create(OptionalStructConsumer, self, [optional_struct]) + + @builtins.property + @jsii.member(jsii_name="parameterWasUndefined") + def parameter_was_undefined(self) -> bool: + """ + stability + :stability: experimental + """ + return jsii.get(self, "parameterWasUndefined") + + @builtins.property + @jsii.member(jsii_name="fieldValue") + def field_value(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "fieldValue") + + +class OverridableProtectedMember(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.OverridableProtectedMember"): + """ + see + :see: https://github.com/aws/jsii/issues/903 + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(OverridableProtectedMember, self, []) + + @jsii.member(jsii_name="overrideMe") + def _override_me(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "overrideMe", []) + + @jsii.member(jsii_name="switchModes") + def switch_modes(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "switchModes", []) + + @jsii.member(jsii_name="valueFromProtected") + def value_from_protected(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "valueFromProtected", []) + + @builtins.property + @jsii.member(jsii_name="overrideReadOnly") + def _override_read_only(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "overrideReadOnly") + + @builtins.property + @jsii.member(jsii_name="overrideReadWrite") + def _override_read_write(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "overrideReadWrite") + + @_override_read_write.setter + def _override_read_write(self, value: str): + jsii.set(self, "overrideReadWrite", value) + + +class OverrideReturnsObject(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.OverrideReturnsObject"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(OverrideReturnsObject, self, []) + + @jsii.member(jsii_name="test") + def test(self, obj: "IReturnsNumber") -> jsii.Number: + """ + :param obj: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "test", [obj]) + + +@jsii.data_type(jsii_type="jsii-calc.compliance.ParentStruct982", jsii_struct_bases=[], name_mapping={'foo': 'foo'}) +class ParentStruct982(): + def __init__(self, *, foo: str): + """https://github.com/aws/jsii/issues/982. + + :param foo: + + stability + :stability: experimental + """ + self._values = { + 'foo': foo, + } + + @builtins.property + def foo(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('foo') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'ParentStruct982(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +class PartiallyInitializedThisConsumer(metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.compliance.PartiallyInitializedThisConsumer"): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _PartiallyInitializedThisConsumerProxy + + def __init__(self) -> None: + jsii.create(PartiallyInitializedThisConsumer, self, []) + + @jsii.member(jsii_name="consumePartiallyInitializedThis") + @abc.abstractmethod + def consume_partially_initialized_this(self, obj: "ConstructorPassesThisOut", dt: datetime.datetime, ev: "AllTypesEnum") -> str: + """ + :param obj: - + :param dt: - + :param ev: - + + stability + :stability: experimental + """ + ... + + +class _PartiallyInitializedThisConsumerProxy(PartiallyInitializedThisConsumer): + @jsii.member(jsii_name="consumePartiallyInitializedThis") + def consume_partially_initialized_this(self, obj: "ConstructorPassesThisOut", dt: datetime.datetime, ev: "AllTypesEnum") -> str: + """ + :param obj: - + :param dt: - + :param ev: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "consumePartiallyInitializedThis", [obj, dt, ev]) + + +class Polymorphism(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.Polymorphism"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(Polymorphism, self, []) + + @jsii.member(jsii_name="sayHello") + def say_hello(self, friendly: scope.jsii_calc_lib.IFriendly) -> str: + """ + :param friendly: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "sayHello", [friendly]) + + +class PublicClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.PublicClass"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(PublicClass, self, []) + + @jsii.member(jsii_name="hello") + def hello(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "hello", []) + + +class PythonReservedWords(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.PythonReservedWords"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(PythonReservedWords, self, []) + + @jsii.member(jsii_name="and") + def and_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "and", []) + + @jsii.member(jsii_name="as") + def as_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "as", []) + + @jsii.member(jsii_name="assert") + def assert_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "assert", []) + + @jsii.member(jsii_name="async") + def async_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "async", []) + + @jsii.member(jsii_name="await") + def await_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "await", []) + + @jsii.member(jsii_name="break") + def break_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "break", []) + + @jsii.member(jsii_name="class") + def class_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "class", []) + + @jsii.member(jsii_name="continue") + def continue_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "continue", []) + + @jsii.member(jsii_name="def") + def def_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "def", []) + + @jsii.member(jsii_name="del") + def del_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "del", []) + + @jsii.member(jsii_name="elif") + def elif_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "elif", []) + + @jsii.member(jsii_name="else") + def else_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "else", []) + + @jsii.member(jsii_name="except") + def except_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "except", []) + + @jsii.member(jsii_name="finally") + def finally_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "finally", []) + + @jsii.member(jsii_name="for") + def for_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "for", []) + + @jsii.member(jsii_name="from") + def from_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "from", []) + + @jsii.member(jsii_name="global") + def global_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "global", []) + + @jsii.member(jsii_name="if") + def if_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "if", []) + + @jsii.member(jsii_name="import") + def import_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "import", []) + + @jsii.member(jsii_name="in") + def in_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "in", []) + + @jsii.member(jsii_name="is") + def is_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "is", []) + + @jsii.member(jsii_name="lambda") + def lambda_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "lambda", []) + + @jsii.member(jsii_name="nonlocal") + def nonlocal_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "nonlocal", []) + + @jsii.member(jsii_name="not") + def not_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "not", []) + + @jsii.member(jsii_name="or") + def or_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "or", []) + + @jsii.member(jsii_name="pass") + def pass_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "pass", []) + + @jsii.member(jsii_name="raise") + def raise_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "raise", []) + + @jsii.member(jsii_name="return") + def return_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "return", []) + + @jsii.member(jsii_name="try") + def try_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "try", []) + + @jsii.member(jsii_name="while") + def while_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "while", []) + + @jsii.member(jsii_name="with") + def with_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "with", []) + + @jsii.member(jsii_name="yield") + def yield_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "yield", []) + + +class ReferenceEnumFromScopedPackage(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ReferenceEnumFromScopedPackage"): + """See awslabs/jsii#138. + + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(ReferenceEnumFromScopedPackage, self, []) + + @jsii.member(jsii_name="loadFoo") + def load_foo(self) -> typing.Optional[scope.jsii_calc_lib.EnumFromScopedModule]: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "loadFoo", []) + + @jsii.member(jsii_name="saveFoo") + def save_foo(self, value: scope.jsii_calc_lib.EnumFromScopedModule) -> None: + """ + :param value: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "saveFoo", [value]) + + @builtins.property + @jsii.member(jsii_name="foo") + def foo(self) -> typing.Optional[scope.jsii_calc_lib.EnumFromScopedModule]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "foo") + + @foo.setter + def foo(self, value: typing.Optional[scope.jsii_calc_lib.EnumFromScopedModule]): + jsii.set(self, "foo", value) + + +class ReturnsPrivateImplementationOfInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ReturnsPrivateImplementationOfInterface"): + """Helps ensure the JSII kernel & runtime cooperate correctly when an un-exported instance of a class is returned with a declared type that is an exported interface, and the instance inherits from an exported class. + + return + :return: an instance of an un-exported class that extends ``ExportedBaseClass``, declared as ``IPrivatelyImplemented``. + + see + :see: https://github.com/aws/jsii/issues/320 + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(ReturnsPrivateImplementationOfInterface, self, []) + + @builtins.property + @jsii.member(jsii_name="privateImplementation") + def private_implementation(self) -> "IPrivatelyImplemented": + """ + stability + :stability: experimental + """ + return jsii.get(self, "privateImplementation") + + +@jsii.data_type(jsii_type="jsii-calc.compliance.RootStruct", jsii_struct_bases=[], name_mapping={'string_prop': 'stringProp', 'nested_struct': 'nestedStruct'}) +class RootStruct(): + def __init__(self, *, string_prop: str, nested_struct: typing.Optional["NestedStruct"]=None): + """This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary. + + This is cheating with the (current) declared types, but this is the "more + idiomatic" way for Pythonists. + + :param string_prop: May not be empty. + :param nested_struct: + + stability + :stability: experimental + """ + if isinstance(nested_struct, dict): nested_struct = NestedStruct(**nested_struct) + self._values = { + 'string_prop': string_prop, + } + if nested_struct is not None: self._values["nested_struct"] = nested_struct + + @builtins.property + def string_prop(self) -> str: + """May not be empty. + + stability + :stability: experimental + """ + return self._values.get('string_prop') + + @builtins.property + def nested_struct(self) -> typing.Optional["NestedStruct"]: + """ + stability + :stability: experimental + """ + return self._values.get('nested_struct') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'RootStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +class RootStructValidator(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.RootStructValidator"): + """ + stability + :stability: experimental + """ + @jsii.member(jsii_name="validate") + @builtins.classmethod + def validate(cls, *, string_prop: str, nested_struct: typing.Optional["NestedStruct"]=None) -> None: + """ + :param string_prop: May not be empty. + :param nested_struct: + + stability + :stability: experimental + """ + struct = RootStruct(string_prop=string_prop, nested_struct=nested_struct) + + return jsii.sinvoke(cls, "validate", [struct]) + + +class RuntimeTypeChecking(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.RuntimeTypeChecking"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(RuntimeTypeChecking, self, []) + + @jsii.member(jsii_name="methodWithDefaultedArguments") + def method_with_defaulted_arguments(self, arg1: typing.Optional[jsii.Number]=None, arg2: typing.Optional[str]=None, arg3: typing.Optional[datetime.datetime]=None) -> None: + """ + :param arg1: - + :param arg2: - + :param arg3: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "methodWithDefaultedArguments", [arg1, arg2, arg3]) + + @jsii.member(jsii_name="methodWithOptionalAnyArgument") + def method_with_optional_any_argument(self, arg: typing.Any=None) -> None: + """ + :param arg: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "methodWithOptionalAnyArgument", [arg]) + + @jsii.member(jsii_name="methodWithOptionalArguments") + def method_with_optional_arguments(self, arg1: jsii.Number, arg2: str, arg3: typing.Optional[datetime.datetime]=None) -> None: + """Used to verify verification of number of method arguments. + + :param arg1: - + :param arg2: - + :param arg3: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "methodWithOptionalArguments", [arg1, arg2, arg3]) + + +@jsii.data_type(jsii_type="jsii-calc.compliance.SecondLevelStruct", jsii_struct_bases=[], name_mapping={'deeper_required_prop': 'deeperRequiredProp', 'deeper_optional_prop': 'deeperOptionalProp'}) +class SecondLevelStruct(): + def __init__(self, *, deeper_required_prop: str, deeper_optional_prop: typing.Optional[str]=None): + """ + :param deeper_required_prop: It's long and required. + :param deeper_optional_prop: It's long, but you'll almost never pass it. + + stability + :stability: experimental + """ + self._values = { + 'deeper_required_prop': deeper_required_prop, + } + if deeper_optional_prop is not None: self._values["deeper_optional_prop"] = deeper_optional_prop + + @builtins.property + def deeper_required_prop(self) -> str: + """It's long and required. + + stability + :stability: experimental + """ + return self._values.get('deeper_required_prop') + + @builtins.property + def deeper_optional_prop(self) -> typing.Optional[str]: + """It's long, but you'll almost never pass it. + + stability + :stability: experimental + """ + return self._values.get('deeper_optional_prop') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'SecondLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +class SingleInstanceTwoTypes(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.SingleInstanceTwoTypes"): + """Test that a single instance can be returned under two different FQNs. + + JSII clients can instantiate 2 different strongly-typed wrappers for the same + object. Unfortunately, this will break object equality, but if we didn't do + this it would break runtime type checks in the JVM or CLR. + + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(SingleInstanceTwoTypes, self, []) + + @jsii.member(jsii_name="interface1") + def interface1(self) -> "InbetweenClass": + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "interface1", []) + + @jsii.member(jsii_name="interface2") + def interface2(self) -> "IPublicInterface": + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "interface2", []) + + +class SingletonInt(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.SingletonInt"): + """Verifies that singleton enums are handled correctly. + + https://github.com/aws/jsii/issues/231 + + stability + :stability: experimental + """ + @jsii.member(jsii_name="isSingletonInt") + def is_singleton_int(self, value: jsii.Number) -> bool: + """ + :param value: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "isSingletonInt", [value]) + + +@jsii.enum(jsii_type="jsii-calc.compliance.SingletonIntEnum") +class SingletonIntEnum(enum.Enum): + """A singleton integer. + + stability + :stability: experimental + """ + SINGLETON_INT = "SINGLETON_INT" + """Elite! + + stability + :stability: experimental + """ + +class SingletonString(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.SingletonString"): + """Verifies that singleton enums are handled correctly. + + https://github.com/aws/jsii/issues/231 + + stability + :stability: experimental + """ + @jsii.member(jsii_name="isSingletonString") + def is_singleton_string(self, value: str) -> bool: + """ + :param value: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "isSingletonString", [value]) + + +@jsii.enum(jsii_type="jsii-calc.compliance.SingletonStringEnum") +class SingletonStringEnum(enum.Enum): + """A singleton string. + + stability + :stability: experimental + """ + SINGLETON_STRING = "SINGLETON_STRING" + """1337. + + stability + :stability: experimental + """ + +class SomeTypeJsii976(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.SomeTypeJsii976"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(SomeTypeJsii976, self, []) + + @jsii.member(jsii_name="returnAnonymous") + @builtins.classmethod + def return_anonymous(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "returnAnonymous", []) + + @jsii.member(jsii_name="returnReturn") + @builtins.classmethod + def return_return(cls) -> "IReturnJsii976": + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "returnReturn", []) + + +class StaticContext(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.StaticContext"): + """This is used to validate the ability to use ``this`` from within a static context. + + https://github.com/awslabs/aws-cdk/issues/2304 + + stability + :stability: experimental + """ + @jsii.member(jsii_name="canAccessStaticContext") + @builtins.classmethod + def can_access_static_context(cls) -> bool: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "canAccessStaticContext", []) + + @jsii.python.classproperty + @jsii.member(jsii_name="staticVariable") + def static_variable(cls) -> bool: + """ + stability + :stability: experimental + """ + return jsii.sget(cls, "staticVariable") + + @static_variable.setter + def static_variable(cls, value: bool): + jsii.sset(cls, "staticVariable", value) + + +class Statics(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.Statics"): + """ + stability + :stability: experimental + """ + def __init__(self, value: str) -> None: + """ + :param value: - + + stability + :stability: experimental + """ + jsii.create(Statics, self, [value]) + + @jsii.member(jsii_name="staticMethod") + @builtins.classmethod + def static_method(cls, name: str) -> str: + """Jsdocs for static method. + + :param name: The name of the person to say hello to. + + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "staticMethod", [name]) + + @jsii.member(jsii_name="justMethod") + def just_method(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "justMethod", []) + + @jsii.python.classproperty + @jsii.member(jsii_name="BAR") + def BAR(cls) -> jsii.Number: + """Constants may also use all-caps. + + stability + :stability: experimental + """ + return jsii.sget(cls, "BAR") + + @jsii.python.classproperty + @jsii.member(jsii_name="ConstObj") + def CONST_OBJ(cls) -> "DoubleTrouble": + """ + stability + :stability: experimental + """ + return jsii.sget(cls, "ConstObj") + + @jsii.python.classproperty + @jsii.member(jsii_name="Foo") + def FOO(cls) -> str: + """Jsdocs for static property. + + stability + :stability: experimental + """ + return jsii.sget(cls, "Foo") + + @jsii.python.classproperty + @jsii.member(jsii_name="zooBar") + def ZOO_BAR(cls) -> typing.Mapping[str,str]: + """Constants can also use camelCase. + + stability + :stability: experimental + """ + return jsii.sget(cls, "zooBar") + + @jsii.python.classproperty + @jsii.member(jsii_name="instance") + def instance(cls) -> "Statics": + """Jsdocs for static getter. + + Jsdocs for static setter. + + stability + :stability: experimental + """ + return jsii.sget(cls, "instance") + + @instance.setter + def instance(cls, value: "Statics"): + jsii.sset(cls, "instance", value) + + @jsii.python.classproperty + @jsii.member(jsii_name="nonConstStatic") + def non_const_static(cls) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.sget(cls, "nonConstStatic") + + @non_const_static.setter + def non_const_static(cls, value: jsii.Number): + jsii.sset(cls, "nonConstStatic", value) + + @builtins.property + @jsii.member(jsii_name="value") + def value(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "value") + + +@jsii.enum(jsii_type="jsii-calc.compliance.StringEnum") +class StringEnum(enum.Enum): + """ + stability + :stability: experimental + """ + A = "A" + """ + stability + :stability: experimental + """ + B = "B" + """ + stability + :stability: experimental + """ + C = "C" + """ + stability + :stability: experimental + """ + +class StripInternal(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.StripInternal"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(StripInternal, self, []) + + @builtins.property + @jsii.member(jsii_name="youSeeMe") + def you_see_me(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "youSeeMe") + + @you_see_me.setter + def you_see_me(self, value: str): + jsii.set(self, "youSeeMe", value) + + +@jsii.data_type(jsii_type="jsii-calc.compliance.StructA", jsii_struct_bases=[], name_mapping={'required_string': 'requiredString', 'optional_number': 'optionalNumber', 'optional_string': 'optionalString'}) +class StructA(): + def __init__(self, *, required_string: str, optional_number: typing.Optional[jsii.Number]=None, optional_string: typing.Optional[str]=None): + """We can serialize and deserialize structs without silently ignoring optional fields. + + :param required_string: + :param optional_number: + :param optional_string: + + stability + :stability: experimental + """ + self._values = { + 'required_string': required_string, + } + if optional_number is not None: self._values["optional_number"] = optional_number + if optional_string is not None: self._values["optional_string"] = optional_string + + @builtins.property + def required_string(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('required_string') + + @builtins.property + def optional_number(self) -> typing.Optional[jsii.Number]: + """ + stability + :stability: experimental + """ + return self._values.get('optional_number') + + @builtins.property + def optional_string(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + return self._values.get('optional_string') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'StructA(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +@jsii.data_type(jsii_type="jsii-calc.compliance.StructB", jsii_struct_bases=[], name_mapping={'required_string': 'requiredString', 'optional_boolean': 'optionalBoolean', 'optional_struct_a': 'optionalStructA'}) +class StructB(): + def __init__(self, *, required_string: str, optional_boolean: typing.Optional[bool]=None, optional_struct_a: typing.Optional["StructA"]=None): + """This intentionally overlaps with StructA (where only requiredString is provided) to test htat the kernel properly disambiguates those. + + :param required_string: + :param optional_boolean: + :param optional_struct_a: + + stability + :stability: experimental + """ + if isinstance(optional_struct_a, dict): optional_struct_a = StructA(**optional_struct_a) + self._values = { + 'required_string': required_string, + } + if optional_boolean is not None: self._values["optional_boolean"] = optional_boolean + if optional_struct_a is not None: self._values["optional_struct_a"] = optional_struct_a + + @builtins.property + def required_string(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('required_string') + + @builtins.property + def optional_boolean(self) -> typing.Optional[bool]: + """ + stability + :stability: experimental + """ + return self._values.get('optional_boolean') + + @builtins.property + def optional_struct_a(self) -> typing.Optional["StructA"]: + """ + stability + :stability: experimental + """ + return self._values.get('optional_struct_a') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'StructB(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +@jsii.data_type(jsii_type="jsii-calc.compliance.StructParameterType", jsii_struct_bases=[], name_mapping={'scope': 'scope', 'props': 'props'}) +class StructParameterType(): + def __init__(self, *, scope: str, props: typing.Optional[bool]=None): + """Verifies that, in languages that do keyword lifting (e.g: Python), having a struct member with the same name as a positional parameter results in the correct code being emitted. + + See: https://github.com/aws/aws-cdk/issues/4302 + + :param scope: + :param props: + + stability + :stability: experimental + """ + self._values = { + 'scope': scope, + } + if props is not None: self._values["props"] = props + + @builtins.property + def scope(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('scope') + + @builtins.property + def props(self) -> typing.Optional[bool]: + """ + stability + :stability: experimental + """ + return self._values.get('props') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'StructParameterType(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +class StructPassing(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.StructPassing"): + """Just because we can.""" + def __init__(self) -> None: + jsii.create(StructPassing, self, []) + + @jsii.member(jsii_name="howManyVarArgsDidIPass") + @builtins.classmethod + def how_many_var_args_did_i_pass(cls, _positional: jsii.Number, *inputs: "TopLevelStruct") -> jsii.Number: + """ + :param _positional: - + :param inputs: - + """ + return jsii.sinvoke(cls, "howManyVarArgsDidIPass", [_positional, *inputs]) + + @jsii.member(jsii_name="roundTrip") + @builtins.classmethod + def round_trip(cls, _positional: jsii.Number, *, required: str, second_level: typing.Union[jsii.Number, "SecondLevelStruct"], optional: typing.Optional[str]=None) -> "TopLevelStruct": + """ + :param _positional: - + :param required: This is a required field. + :param second_level: A union to really stress test our serialization. + :param optional: You don't have to pass this. + """ + input = TopLevelStruct(required=required, second_level=second_level, optional=optional) + + return jsii.sinvoke(cls, "roundTrip", [_positional, input]) + + +class StructUnionConsumer(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.StructUnionConsumer"): + """ + stability + :stability: experimental + """ + @jsii.member(jsii_name="isStructA") + @builtins.classmethod + def is_struct_a(cls, struct: typing.Union["StructA", "StructB"]) -> bool: + """ + :param struct: - + + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "isStructA", [struct]) + + @jsii.member(jsii_name="isStructB") + @builtins.classmethod + def is_struct_b(cls, struct: typing.Union["StructA", "StructB"]) -> bool: + """ + :param struct: - + + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "isStructB", [struct]) + + +@jsii.data_type(jsii_type="jsii-calc.compliance.StructWithJavaReservedWords", jsii_struct_bases=[], name_mapping={'default': 'default', 'assert_': 'assert', 'result': 'result', 'that': 'that'}) +class StructWithJavaReservedWords(): + def __init__(self, *, default: str, assert_: typing.Optional[str]=None, result: typing.Optional[str]=None, that: typing.Optional[str]=None): + """ + :param default: + :param assert_: + :param result: + :param that: + + stability + :stability: experimental + """ + self._values = { + 'default': default, + } + if assert_ is not None: self._values["assert_"] = assert_ + if result is not None: self._values["result"] = result + if that is not None: self._values["that"] = that + + @builtins.property + def default(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('default') + + @builtins.property + def assert_(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + return self._values.get('assert_') + + @builtins.property + def result(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + return self._values.get('result') + + @builtins.property + def that(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + return self._values.get('that') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'StructWithJavaReservedWords(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +@jsii.data_type(jsii_type="jsii-calc.compliance.SupportsNiceJavaBuilderProps", jsii_struct_bases=[], name_mapping={'bar': 'bar', 'id': 'id'}) +class SupportsNiceJavaBuilderProps(): + def __init__(self, *, bar: jsii.Number, id: typing.Optional[str]=None): + """ + :param bar: Some number, like 42. + :param id: An ``id`` field here is terrible API design, because the constructor of ``SupportsNiceJavaBuilder`` already has a parameter named ``id``. But here we are, doing it like we didn't care. + + stability + :stability: experimental + """ + self._values = { + 'bar': bar, + } + if id is not None: self._values["id"] = id + + @builtins.property + def bar(self) -> jsii.Number: + """Some number, like 42. + + stability + :stability: experimental + """ + return self._values.get('bar') + + @builtins.property + def id(self) -> typing.Optional[str]: + """An ``id`` field here is terrible API design, because the constructor of ``SupportsNiceJavaBuilder`` already has a parameter named ``id``. + + But here we are, doing it like we didn't care. + + stability + :stability: experimental + """ + return self._values.get('id') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'SupportsNiceJavaBuilderProps(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +class SupportsNiceJavaBuilderWithRequiredProps(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.SupportsNiceJavaBuilderWithRequiredProps"): + """We can generate fancy builders in Java for classes which take a mix of positional & struct parameters. + + stability + :stability: experimental + """ + def __init__(self, id_: jsii.Number, *, bar: jsii.Number, id: typing.Optional[str]=None) -> None: + """ + :param id_: some identifier of your choice. + :param bar: Some number, like 42. + :param id: An ``id`` field here is terrible API design, because the constructor of ``SupportsNiceJavaBuilder`` already has a parameter named ``id``. But here we are, doing it like we didn't care. + + stability + :stability: experimental + """ + props = SupportsNiceJavaBuilderProps(bar=bar, id=id) + + jsii.create(SupportsNiceJavaBuilderWithRequiredProps, self, [id_, props]) + + @builtins.property + @jsii.member(jsii_name="bar") + def bar(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.get(self, "bar") + + @builtins.property + @jsii.member(jsii_name="id") + def id(self) -> jsii.Number: + """some identifier of your choice. + + stability + :stability: experimental + """ + return jsii.get(self, "id") + + @builtins.property + @jsii.member(jsii_name="propId") + def prop_id(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "propId") + + +class SyncVirtualMethods(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.SyncVirtualMethods"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(SyncVirtualMethods, self, []) + + @jsii.member(jsii_name="callerIsAsync") + def caller_is_async(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.ainvoke(self, "callerIsAsync", []) + + @jsii.member(jsii_name="callerIsMethod") + def caller_is_method(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "callerIsMethod", []) + + @jsii.member(jsii_name="modifyOtherProperty") + def modify_other_property(self, value: str) -> None: + """ + :param value: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "modifyOtherProperty", [value]) + + @jsii.member(jsii_name="modifyValueOfTheProperty") + def modify_value_of_the_property(self, value: str) -> None: + """ + :param value: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "modifyValueOfTheProperty", [value]) + + @jsii.member(jsii_name="readA") + def read_a(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "readA", []) + + @jsii.member(jsii_name="retrieveOtherProperty") + def retrieve_other_property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "retrieveOtherProperty", []) + + @jsii.member(jsii_name="retrieveReadOnlyProperty") + def retrieve_read_only_property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "retrieveReadOnlyProperty", []) + + @jsii.member(jsii_name="retrieveValueOfTheProperty") + def retrieve_value_of_the_property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "retrieveValueOfTheProperty", []) + + @jsii.member(jsii_name="virtualMethod") + def virtual_method(self, n: jsii.Number) -> jsii.Number: + """ + :param n: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "virtualMethod", [n]) + + @jsii.member(jsii_name="writeA") + def write_a(self, value: jsii.Number) -> None: + """ + :param value: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "writeA", [value]) + + @builtins.property + @jsii.member(jsii_name="readonlyProperty") + def readonly_property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "readonlyProperty") + + @builtins.property + @jsii.member(jsii_name="a") + def a(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.get(self, "a") + + @a.setter + def a(self, value: jsii.Number): + jsii.set(self, "a", value) + + @builtins.property + @jsii.member(jsii_name="callerIsProperty") + def caller_is_property(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.get(self, "callerIsProperty") + + @caller_is_property.setter + def caller_is_property(self, value: jsii.Number): + jsii.set(self, "callerIsProperty", value) + + @builtins.property + @jsii.member(jsii_name="otherProperty") + def other_property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "otherProperty") + + @other_property.setter + def other_property(self, value: str): + jsii.set(self, "otherProperty", value) + + @builtins.property + @jsii.member(jsii_name="theProperty") + def the_property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "theProperty") + + @the_property.setter + def the_property(self, value: str): + jsii.set(self, "theProperty", value) + + @builtins.property + @jsii.member(jsii_name="valueOfOtherProperty") + def value_of_other_property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "valueOfOtherProperty") + + @value_of_other_property.setter + def value_of_other_property(self, value: str): + jsii.set(self, "valueOfOtherProperty", value) + + +class Thrower(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.Thrower"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(Thrower, self, []) + + @jsii.member(jsii_name="throwError") + def throw_error(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "throwError", []) + + +@jsii.data_type(jsii_type="jsii-calc.compliance.TopLevelStruct", jsii_struct_bases=[], name_mapping={'required': 'required', 'second_level': 'secondLevel', 'optional': 'optional'}) +class TopLevelStruct(): + def __init__(self, *, required: str, second_level: typing.Union[jsii.Number, "SecondLevelStruct"], optional: typing.Optional[str]=None): + """ + :param required: This is a required field. + :param second_level: A union to really stress test our serialization. + :param optional: You don't have to pass this. + + stability + :stability: experimental + """ + self._values = { + 'required': required, + 'second_level': second_level, + } + if optional is not None: self._values["optional"] = optional + + @builtins.property + def required(self) -> str: + """This is a required field. + + stability + :stability: experimental + """ + return self._values.get('required') + + @builtins.property + def second_level(self) -> typing.Union[jsii.Number, "SecondLevelStruct"]: + """A union to really stress test our serialization. + + stability + :stability: experimental + """ + return self._values.get('second_level') + + @builtins.property + def optional(self) -> typing.Optional[str]: + """You don't have to pass this. + + stability + :stability: experimental + """ + return self._values.get('optional') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'TopLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +@jsii.data_type(jsii_type="jsii-calc.compliance.UnionProperties", jsii_struct_bases=[], name_mapping={'bar': 'bar', 'foo': 'foo'}) +class UnionProperties(): + def __init__(self, *, bar: typing.Union[str, jsii.Number, "AllTypes"], foo: typing.Optional[typing.Union[typing.Optional[str], typing.Optional[jsii.Number]]]=None): + """ + :param bar: + :param foo: + + stability + :stability: experimental + """ + self._values = { + 'bar': bar, + } + if foo is not None: self._values["foo"] = foo + + @builtins.property + def bar(self) -> typing.Union[str, jsii.Number, "AllTypes"]: + """ + stability + :stability: experimental + """ + return self._values.get('bar') + + @builtins.property + def foo(self) -> typing.Optional[typing.Union[typing.Optional[str], typing.Optional[jsii.Number]]]: + """ + stability + :stability: experimental + """ + return self._values.get('foo') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'UnionProperties(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +class UseBundledDependency(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.UseBundledDependency"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(UseBundledDependency, self, []) + + @jsii.member(jsii_name="value") + def value(self) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "value", []) + + +class UseCalcBase(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.UseCalcBase"): + """Depend on a type from jsii-calc-base as a test for awslabs/jsii#128. + + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(UseCalcBase, self, []) + + @jsii.member(jsii_name="hello") + def hello(self) -> scope.jsii_calc_base.Base: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "hello", []) + + +class UsesInterfaceWithProperties(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.UsesInterfaceWithProperties"): + """ + stability + :stability: experimental + """ + def __init__(self, obj: "IInterfaceWithProperties") -> None: + """ + :param obj: - + + stability + :stability: experimental + """ + jsii.create(UsesInterfaceWithProperties, self, [obj]) + + @jsii.member(jsii_name="justRead") + def just_read(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "justRead", []) + + @jsii.member(jsii_name="readStringAndNumber") + def read_string_and_number(self, ext: "IInterfaceWithPropertiesExtension") -> str: + """ + :param ext: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "readStringAndNumber", [ext]) + + @jsii.member(jsii_name="writeAndRead") + def write_and_read(self, value: str) -> str: + """ + :param value: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "writeAndRead", [value]) + + @builtins.property + @jsii.member(jsii_name="obj") + def obj(self) -> "IInterfaceWithProperties": + """ + stability + :stability: experimental + """ + return jsii.get(self, "obj") + + +class VariadicInvoker(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.VariadicInvoker"): + """ + stability + :stability: experimental + """ + def __init__(self, method: "VariadicMethod") -> None: + """ + :param method: - + + stability + :stability: experimental + """ + jsii.create(VariadicInvoker, self, [method]) + + @jsii.member(jsii_name="asArray") + def as_array(self, *values: jsii.Number) -> typing.List[jsii.Number]: + """ + :param values: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "asArray", [*values]) + + +class VariadicMethod(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.VariadicMethod"): + """ + stability + :stability: experimental + """ + def __init__(self, *prefix: jsii.Number) -> None: + """ + :param prefix: a prefix that will be use for all values returned by ``#asArray``. + + stability + :stability: experimental + """ + jsii.create(VariadicMethod, self, [*prefix]) + + @jsii.member(jsii_name="asArray") + def as_array(self, first: jsii.Number, *others: jsii.Number) -> typing.List[jsii.Number]: + """ + :param first: the first element of the array to be returned (after the ``prefix`` provided at construction time). + :param others: other elements to be included in the array. + + stability + :stability: experimental + """ + return jsii.invoke(self, "asArray", [first, *others]) + + +class VirtualMethodPlayground(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.VirtualMethodPlayground"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(VirtualMethodPlayground, self, []) + + @jsii.member(jsii_name="overrideMeAsync") + def override_me_async(self, index: jsii.Number) -> jsii.Number: + """ + :param index: - + + stability + :stability: experimental + """ + return jsii.ainvoke(self, "overrideMeAsync", [index]) + + @jsii.member(jsii_name="overrideMeSync") + def override_me_sync(self, index: jsii.Number) -> jsii.Number: + """ + :param index: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "overrideMeSync", [index]) + + @jsii.member(jsii_name="parallelSumAsync") + def parallel_sum_async(self, count: jsii.Number) -> jsii.Number: + """ + :param count: - + + stability + :stability: experimental + """ + return jsii.ainvoke(self, "parallelSumAsync", [count]) + + @jsii.member(jsii_name="serialSumAsync") + def serial_sum_async(self, count: jsii.Number) -> jsii.Number: + """ + :param count: - + + stability + :stability: experimental + """ + return jsii.ainvoke(self, "serialSumAsync", [count]) + + @jsii.member(jsii_name="sumSync") + def sum_sync(self, count: jsii.Number) -> jsii.Number: + """ + :param count: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "sumSync", [count]) + + +class VoidCallback(metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.compliance.VoidCallback"): + """This test is used to validate the runtimes can return correctly from a void callback. + + - Implement ``overrideMe`` (method does not have to do anything). + - Invoke ``callMe`` + - Verify that ``methodWasCalled`` is ``true``. + + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _VoidCallbackProxy + + def __init__(self) -> None: + jsii.create(VoidCallback, self, []) + + @jsii.member(jsii_name="callMe") + def call_me(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "callMe", []) + + @jsii.member(jsii_name="overrideMe") + @abc.abstractmethod + def _override_me(self) -> None: + """ + stability + :stability: experimental + """ + ... + + @builtins.property + @jsii.member(jsii_name="methodWasCalled") + def method_was_called(self) -> bool: + """ + stability + :stability: experimental + """ + return jsii.get(self, "methodWasCalled") + + +class _VoidCallbackProxy(VoidCallback): + @jsii.member(jsii_name="overrideMe") + def _override_me(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "overrideMe", []) + + +class WithPrivatePropertyInConstructor(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.WithPrivatePropertyInConstructor"): + """Verifies that private property declarations in constructor arguments are hidden. + + stability + :stability: experimental + """ + def __init__(self, private_field: typing.Optional[str]=None) -> None: + """ + :param private_field: - + + stability + :stability: experimental + """ + jsii.create(WithPrivatePropertyInConstructor, self, [private_field]) + + @builtins.property + @jsii.member(jsii_name="success") + def success(self) -> bool: + """ + stability + :stability: experimental + """ + return jsii.get(self, "success") + + +@jsii.implements(IInterfaceImplementedByAbstractClass) +class AbstractClass(AbstractClassBase, metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.compliance.AbstractClass"): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _AbstractClassProxy + + def __init__(self) -> None: + jsii.create(AbstractClass, self, []) + + @jsii.member(jsii_name="abstractMethod") + @abc.abstractmethod + def abstract_method(self, name: str) -> str: + """ + :param name: - + + stability + :stability: experimental + """ + ... + + @jsii.member(jsii_name="nonAbstractMethod") + def non_abstract_method(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "nonAbstractMethod", []) + + @builtins.property + @jsii.member(jsii_name="propFromInterface") + def prop_from_interface(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "propFromInterface") + + +class _AbstractClassProxy(AbstractClass, jsii.proxy_for(AbstractClassBase)): + @jsii.member(jsii_name="abstractMethod") + def abstract_method(self, name: str) -> str: + """ + :param name: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "abstractMethod", [name]) + + +@jsii.implements(IAnonymousImplementationProvider) +class AnonymousImplementationProvider(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.AnonymousImplementationProvider"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(AnonymousImplementationProvider, self, []) + + @jsii.member(jsii_name="provideAsClass") + def provide_as_class(self) -> "Implementation": + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "provideAsClass", []) + + @jsii.member(jsii_name="provideAsInterface") + def provide_as_interface(self) -> "IAnonymouslyImplementMe": + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "provideAsInterface", []) + + +@jsii.implements(IBell) +class Bell(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.Bell"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(Bell, self, []) + + @jsii.member(jsii_name="ring") + def ring(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "ring", []) + + @builtins.property + @jsii.member(jsii_name="rung") + def rung(self) -> bool: + """ + stability + :stability: experimental + """ + return jsii.get(self, "rung") + + @rung.setter + def rung(self, value: bool): + jsii.set(self, "rung", value) + + +@jsii.data_type(jsii_type="jsii-calc.compliance.ChildStruct982", jsii_struct_bases=[ParentStruct982], name_mapping={'foo': 'foo', 'bar': 'bar'}) +class ChildStruct982(ParentStruct982): + def __init__(self, *, foo: str, bar: jsii.Number): + """ + :param foo: + :param bar: + + stability + :stability: experimental + """ + self._values = { + 'foo': foo, + 'bar': bar, + } + + @builtins.property + def foo(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('foo') + + @builtins.property + def bar(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return self._values.get('bar') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'ChildStruct982(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +@jsii.implements(INonInternalInterface) +class ClassThatImplementsTheInternalInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ClassThatImplementsTheInternalInterface"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(ClassThatImplementsTheInternalInterface, self, []) + + @builtins.property + @jsii.member(jsii_name="a") + def a(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "a") + + @a.setter + def a(self, value: str): + jsii.set(self, "a", value) + + @builtins.property + @jsii.member(jsii_name="b") + def b(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "b") + + @b.setter + def b(self, value: str): + jsii.set(self, "b", value) + + @builtins.property + @jsii.member(jsii_name="c") + def c(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "c") + + @c.setter + def c(self, value: str): + jsii.set(self, "c", value) + + @builtins.property + @jsii.member(jsii_name="d") + def d(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "d") + + @d.setter + def d(self, value: str): + jsii.set(self, "d", value) + + +@jsii.implements(INonInternalInterface) +class ClassThatImplementsThePrivateInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ClassThatImplementsThePrivateInterface"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(ClassThatImplementsThePrivateInterface, self, []) + + @builtins.property + @jsii.member(jsii_name="a") + def a(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "a") + + @a.setter + def a(self, value: str): + jsii.set(self, "a", value) + + @builtins.property + @jsii.member(jsii_name="b") + def b(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "b") + + @b.setter + def b(self, value: str): + jsii.set(self, "b", value) + + @builtins.property + @jsii.member(jsii_name="c") + def c(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "c") + + @c.setter + def c(self, value: str): + jsii.set(self, "c", value) + + @builtins.property + @jsii.member(jsii_name="e") + def e(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "e") + + @e.setter + def e(self, value: str): + jsii.set(self, "e", value) + + +@jsii.implements(IInterfaceWithProperties) +class ClassWithPrivateConstructorAndAutomaticProperties(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ClassWithPrivateConstructorAndAutomaticProperties"): + """Class that implements interface properties automatically, but using a private constructor. + + stability + :stability: experimental + """ + @jsii.member(jsii_name="create") + @builtins.classmethod + def create(cls, read_only_string: str, read_write_string: str) -> "ClassWithPrivateConstructorAndAutomaticProperties": + """ + :param read_only_string: - + :param read_write_string: - + + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "create", [read_only_string, read_write_string]) + + @builtins.property + @jsii.member(jsii_name="readOnlyString") + def read_only_string(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "readOnlyString") + + @builtins.property + @jsii.member(jsii_name="readWriteString") + def read_write_string(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "readWriteString") + + @read_write_string.setter + def read_write_string(self, value: str): + jsii.set(self, "readWriteString", value) + + +@jsii.interface(jsii_type="jsii-calc.compliance.IInterfaceThatShouldNotBeADataType") +class IInterfaceThatShouldNotBeADataType(IInterfaceWithMethods, jsii.compat.Protocol): + """Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype. + + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IInterfaceThatShouldNotBeADataTypeProxy + + @builtins.property + @jsii.member(jsii_name="otherValue") + def other_value(self) -> str: + """ + stability + :stability: experimental + """ + ... + + +class _IInterfaceThatShouldNotBeADataTypeProxy(jsii.proxy_for(IInterfaceWithMethods)): + """Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype. + + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.compliance.IInterfaceThatShouldNotBeADataType" + @builtins.property + @jsii.member(jsii_name="otherValue") + def other_value(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "otherValue") + + +@jsii.implements(IPublicInterface2) +class InbetweenClass(PublicClass, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.InbetweenClass"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(InbetweenClass, self, []) + + @jsii.member(jsii_name="ciao") + def ciao(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "ciao", []) + + +class SupportsNiceJavaBuilder(SupportsNiceJavaBuilderWithRequiredProps, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.SupportsNiceJavaBuilder"): + """ + stability + :stability: experimental + """ + def __init__(self, id: jsii.Number, default_bar: typing.Optional[jsii.Number]=None, props: typing.Optional["SupportsNiceJavaBuilderProps"]=None, *rest: str) -> None: + """ + :param id: some identifier. + :param default_bar: the default value of ``bar``. + :param props: some props once can provide. + :param rest: a variadic continuation. + + stability + :stability: experimental + """ + jsii.create(SupportsNiceJavaBuilder, self, [id, default_bar, props, *rest]) + + @builtins.property + @jsii.member(jsii_name="id") + def id(self) -> jsii.Number: + """some identifier. + + stability + :stability: experimental + """ + return jsii.get(self, "id") + + @builtins.property + @jsii.member(jsii_name="rest") + def rest(self) -> typing.List[str]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "rest") + + +__all__ = ["AbstractClass", "AbstractClassBase", "AbstractClassReturner", "AllTypes", "AllTypesEnum", "AllowedMethodNames", "AmbiguousParameters", "AnonymousImplementationProvider", "AsyncVirtualMethods", "AugmentableClass", "BaseJsii976", "Bell", "ChildStruct982", "ClassThatImplementsTheInternalInterface", "ClassThatImplementsThePrivateInterface", "ClassWithCollections", "ClassWithDocs", "ClassWithJavaReservedWords", "ClassWithMutableObjectLiteralProperty", "ClassWithPrivateConstructorAndAutomaticProperties", "ConfusingToJackson", "ConfusingToJacksonStruct", "ConstructorPassesThisOut", "Constructors", "ConsumePureInterface", "ConsumerCanRingBell", "ConsumersOfThisCrazyTypeSystem", "DataRenderer", "DefaultedConstructorArgument", "Demonstrate982", "DerivedStruct", "DiamondInheritanceBaseLevelStruct", "DiamondInheritanceFirstMidLevelStruct", "DiamondInheritanceSecondMidLevelStruct", "DiamondInheritanceTopLevelStruct", "DisappointingCollectionSource", "DoNotOverridePrivates", "DoNotRecognizeAnyAsOptional", "DontComplainAboutVariadicAfterOptional", "DoubleTrouble", "EnumDispenser", "EraseUndefinedHashValues", "EraseUndefinedHashValuesOptions", "ExportedBaseClass", "ExtendsInternalInterface", "GiveMeStructs", "GreetingAugmenter", "IAnonymousImplementationProvider", "IAnonymouslyImplementMe", "IAnotherPublicInterface", "IBell", "IBellRinger", "IConcreteBellRinger", "IExtendsPrivateInterface", "IInterfaceImplementedByAbstractClass", "IInterfaceThatShouldNotBeADataType", "IInterfaceWithInternal", "IInterfaceWithMethods", "IInterfaceWithOptionalMethodArguments", "IInterfaceWithProperties", "IInterfaceWithPropertiesExtension", "IMutableObjectLiteral", "INonInternalInterface", "IObjectWithProperty", "IOptionalMethod", "IPrivatelyImplemented", "IPublicInterface", "IPublicInterface2", "IReturnJsii976", "IReturnsNumber", "IStructReturningDelegate", "ImplementInternalInterface", "Implementation", "ImplementsInterfaceWithInternal", "ImplementsInterfaceWithInternalSubclass", "ImplementsPrivateInterface", "ImplictBaseOfBase", "InbetweenClass", "InterfaceCollections", "InterfacesMaker", "JSObjectLiteralForInterface", "JSObjectLiteralToNative", "JSObjectLiteralToNativeClass", "JavaReservedWords", "JsiiAgent", "JsonFormatter", "LoadBalancedFargateServiceProps", "NestedStruct", "NodeStandardLibrary", "NullShouldBeTreatedAsUndefined", "NullShouldBeTreatedAsUndefinedData", "NumberGenerator", "ObjectRefsInCollections", "ObjectWithPropertyProvider", "OptionalArgumentInvoker", "OptionalConstructorArgument", "OptionalStruct", "OptionalStructConsumer", "OverridableProtectedMember", "OverrideReturnsObject", "ParentStruct982", "PartiallyInitializedThisConsumer", "Polymorphism", "PublicClass", "PythonReservedWords", "ReferenceEnumFromScopedPackage", "ReturnsPrivateImplementationOfInterface", "RootStruct", "RootStructValidator", "RuntimeTypeChecking", "SecondLevelStruct", "SingleInstanceTwoTypes", "SingletonInt", "SingletonIntEnum", "SingletonString", "SingletonStringEnum", "SomeTypeJsii976", "StaticContext", "Statics", "StringEnum", "StripInternal", "StructA", "StructB", "StructParameterType", "StructPassing", "StructUnionConsumer", "StructWithJavaReservedWords", "SupportsNiceJavaBuilder", "SupportsNiceJavaBuilderProps", "SupportsNiceJavaBuilderWithRequiredProps", "SyncVirtualMethods", "Thrower", "TopLevelStruct", "UnionProperties", "UseBundledDependency", "UseCalcBase", "UsesInterfaceWithProperties", "VariadicInvoker", "VariadicMethod", "VirtualMethodPlayground", "VoidCallback", "WithPrivatePropertyInConstructor", "__jsii_assembly__"] + +publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/compliance/derived_class_has_no_properties/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/compliance/derived_class_has_no_properties/__init__.py new file mode 100644 index 0000000000..313b3ebf49 --- /dev/null +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/compliance/derived_class_has_no_properties/__init__.py @@ -0,0 +1,51 @@ +import abc +import builtins +import datetime +import enum +import publication +import typing + +import jsii +import jsii.compat + +import scope.jsii_calc_base +import scope.jsii_calc_base_of_base +import scope.jsii_calc_lib + +__jsii_assembly__ = jsii.JSIIAssembly.load("jsii-calc", "1.0.0", "jsii_calc", "jsii-calc@1.0.0.jsii.tgz") + + +class Base(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.DerivedClassHasNoProperties.Base"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(jsii_calc.compliance.DerivedClassHasNoProperties.Base, self, []) + + @builtins.property + @jsii.member(jsii_name="prop") + def prop(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "prop") + + @prop.setter + def prop(self, value: str): + jsii.set(self, "prop", value) + + +class Derived(jsii_calc.compliance.DerivedClassHasNoProperties.Base, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.DerivedClassHasNoProperties.Derived"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(jsii_calc.compliance.DerivedClassHasNoProperties.Derived, self, []) + + +__all__ = ["Base", "Derived", "__jsii_assembly__"] + +publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/compliance/interface_in_namespace_includes_classes/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/compliance/interface_in_namespace_includes_classes/__init__.py new file mode 100644 index 0000000000..c3bf43d045 --- /dev/null +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/compliance/interface_in_namespace_includes_classes/__init__.py @@ -0,0 +1,73 @@ +import abc +import builtins +import datetime +import enum +import publication +import typing + +import jsii +import jsii.compat + +import scope.jsii_calc_base +import scope.jsii_calc_base_of_base +import scope.jsii_calc_lib + +__jsii_assembly__ = jsii.JSIIAssembly.load("jsii-calc", "1.0.0", "jsii_calc", "jsii-calc@1.0.0.jsii.tgz") + + +class Foo(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Foo"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(jsii_calc.compliance.InterfaceInNamespaceIncludesClasses.Foo, self, []) + + @builtins.property + @jsii.member(jsii_name="bar") + def bar(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "bar") + + @bar.setter + def bar(self, value: typing.Optional[str]): + jsii.set(self, "bar", value) + + +@jsii.data_type(jsii_type="jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Hello", jsii_struct_bases=[], name_mapping={'foo': 'foo'}) +class Hello(): + def __init__(self, *, foo: jsii.Number): + """ + :param foo: + + stability + :stability: experimental + """ + self._values = { + 'foo': foo, + } + + @builtins.property + def foo(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return self._values.get('foo') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'Hello(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +__all__ = ["Foo", "Hello", "__jsii_assembly__"] + +publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/compliance/interface_in_namespace_only_interface/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/compliance/interface_in_namespace_only_interface/__init__.py new file mode 100644 index 0000000000..3e584bdf5d --- /dev/null +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/compliance/interface_in_namespace_only_interface/__init__.py @@ -0,0 +1,51 @@ +import abc +import builtins +import datetime +import enum +import publication +import typing + +import jsii +import jsii.compat + +import scope.jsii_calc_base +import scope.jsii_calc_base_of_base +import scope.jsii_calc_lib + +__jsii_assembly__ = jsii.JSIIAssembly.load("jsii-calc", "1.0.0", "jsii_calc", "jsii-calc@1.0.0.jsii.tgz") + + +@jsii.data_type(jsii_type="jsii-calc.compliance.InterfaceInNamespaceOnlyInterface.Hello", jsii_struct_bases=[], name_mapping={'foo': 'foo'}) +class Hello(): + def __init__(self, *, foo: jsii.Number): + """ + :param foo: + + stability + :stability: experimental + """ + self._values = { + 'foo': foo, + } + + @builtins.property + def foo(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return self._values.get('foo') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'Hello(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +__all__ = ["Hello", "__jsii_assembly__"] + +publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/composition/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/composition/__init__.py new file mode 100644 index 0000000000..ca27a10636 --- /dev/null +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/composition/__init__.py @@ -0,0 +1,142 @@ +import abc +import builtins +import datetime +import enum +import publication +import typing + +import jsii +import jsii.compat + +import scope.jsii_calc_base +import scope.jsii_calc_base_of_base +import scope.jsii_calc_lib + +__jsii_assembly__ = jsii.JSIIAssembly.load("jsii-calc", "1.0.0", "jsii_calc", "jsii-calc@1.0.0.jsii.tgz") + + +class CompositeOperation(scope.jsii_calc_lib.Operation, metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.composition.CompositeOperation"): + """Abstract operation composed from an expression of other operations. + + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _CompositeOperationProxy + + def __init__(self) -> None: + jsii.create(CompositeOperation, self, []) + + @jsii.member(jsii_name="toString") + def to_string(self) -> str: + """String representation of the value. + + stability + :stability: experimental + """ + return jsii.invoke(self, "toString", []) + + @builtins.property + @jsii.member(jsii_name="expression") + @abc.abstractmethod + def expression(self) -> scope.jsii_calc_lib.Value: + """The expression that this operation consists of. + + Must be implemented by derived classes. + + stability + :stability: experimental + """ + ... + + @builtins.property + @jsii.member(jsii_name="value") + def value(self) -> jsii.Number: + """The value. + + stability + :stability: experimental + """ + return jsii.get(self, "value") + + @builtins.property + @jsii.member(jsii_name="decorationPostfixes") + def decoration_postfixes(self) -> typing.List[str]: + """A set of postfixes to include in a decorated .toString(). + + stability + :stability: experimental + """ + return jsii.get(self, "decorationPostfixes") + + @decoration_postfixes.setter + def decoration_postfixes(self, value: typing.List[str]): + jsii.set(self, "decorationPostfixes", value) + + @builtins.property + @jsii.member(jsii_name="decorationPrefixes") + def decoration_prefixes(self) -> typing.List[str]: + """A set of prefixes to include in a decorated .toString(). + + stability + :stability: experimental + """ + return jsii.get(self, "decorationPrefixes") + + @decoration_prefixes.setter + def decoration_prefixes(self, value: typing.List[str]): + jsii.set(self, "decorationPrefixes", value) + + @builtins.property + @jsii.member(jsii_name="stringStyle") + def string_style(self) -> "CompositionStringStyle": + """The .toString() style. + + stability + :stability: experimental + """ + return jsii.get(self, "stringStyle") + + @string_style.setter + def string_style(self, value: "CompositionStringStyle"): + jsii.set(self, "stringStyle", value) + + @jsii.enum(jsii_type="jsii-calc.composition.CompositeOperation.CompositionStringStyle") + class CompositionStringStyle(enum.Enum): + """Style of .toString() output for CompositeOperation. + + stability + :stability: experimental + """ + NORMAL = "NORMAL" + """Normal string expression. + + stability + :stability: experimental + """ + DECORATED = "DECORATED" + """Decorated string expression. + + stability + :stability: experimental + """ + + +class _CompositeOperationProxy(CompositeOperation, jsii.proxy_for(scope.jsii_calc_lib.Operation)): + @builtins.property + @jsii.member(jsii_name="expression") + def expression(self) -> scope.jsii_calc_lib.Value: + """The expression that this operation consists of. + + Must be implemented by derived classes. + + stability + :stability: experimental + """ + return jsii.get(self, "expression") + + +__all__ = ["CompositeOperation", "__jsii_assembly__"] + +publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/documented/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/documented/__init__.py new file mode 100644 index 0000000000..9fd0d0c1f4 --- /dev/null +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/documented/__init__.py @@ -0,0 +1,115 @@ +import abc +import builtins +import datetime +import enum +import publication +import typing + +import jsii +import jsii.compat + +import scope.jsii_calc_base +import scope.jsii_calc_base_of_base +import scope.jsii_calc_lib + +__jsii_assembly__ = jsii.JSIIAssembly.load("jsii-calc", "1.0.0", "jsii_calc", "jsii-calc@1.0.0.jsii.tgz") + + +class DocumentedClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.documented.DocumentedClass"): + """Here's the first line of the TSDoc comment. + + This is the meat of the TSDoc comment. It may contain + multiple lines and multiple paragraphs. + + Multiple paragraphs are separated by an empty line. + """ + def __init__(self) -> None: + jsii.create(DocumentedClass, self, []) + + @jsii.member(jsii_name="greet") + def greet(self, *, name: typing.Optional[str]=None) -> jsii.Number: + """Greet the indicated person. + + This will print out a friendly greeting intended for + the indicated person. + + :param name: The name of the greetee. Default: world + + return + :return: A number that everyone knows very well + """ + greetee = Greetee(name=name) + + return jsii.invoke(self, "greet", [greetee]) + + @jsii.member(jsii_name="hola") + def hola(self) -> None: + """Say ¡Hola! + + stability + :stability: experimental + """ + return jsii.invoke(self, "hola", []) + + +@jsii.data_type(jsii_type="jsii-calc.documented.Greetee", jsii_struct_bases=[], name_mapping={'name': 'name'}) +class Greetee(): + def __init__(self, *, name: typing.Optional[str]=None): + """These are some arguments you can pass to a method. + + :param name: The name of the greetee. Default: world + + stability + :stability: experimental + """ + self._values = { + } + if name is not None: self._values["name"] = name + + @builtins.property + def name(self) -> typing.Optional[str]: + """The name of the greetee. + + default + :default: world + + stability + :stability: experimental + """ + return self._values.get('name') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'Greetee(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +class Old(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.documented.Old"): + """Old class. + + deprecated + :deprecated: Use the new class + + stability + :stability: deprecated + """ + def __init__(self) -> None: + jsii.create(Old, self, []) + + @jsii.member(jsii_name="doAThing") + def do_a_thing(self) -> None: + """Doo wop that thing. + + stability + :stability: deprecated + """ + return jsii.invoke(self, "doAThing", []) + + +__all__ = ["DocumentedClass", "Greetee", "Old", "__jsii_assembly__"] + +publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/erasure_tests/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/erasure_tests/__init__.py new file mode 100644 index 0000000000..7027d29072 --- /dev/null +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/erasure_tests/__init__.py @@ -0,0 +1,295 @@ +import abc +import builtins +import datetime +import enum +import publication +import typing + +import jsii +import jsii.compat + +import scope.jsii_calc_base +import scope.jsii_calc_base_of_base +import scope.jsii_calc_lib + +__jsii_assembly__ = jsii.JSIIAssembly.load("jsii-calc", "1.0.0", "jsii_calc", "jsii-calc@1.0.0.jsii.tgz") + + +@jsii.interface(jsii_type="jsii-calc.erasureTests.IJSII417Derived") +class IJSII417Derived(jsii_calc.erasureTests.IJSII417PublicBaseOfBase, jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IJSII417DerivedProxy + + @builtins.property + @jsii.member(jsii_name="property") + def property(self) -> str: + """ + stability + :stability: experimental + """ + ... + + @jsii.member(jsii_name="bar") + def bar(self) -> None: + """ + stability + :stability: experimental + """ + ... + + @jsii.member(jsii_name="baz") + def baz(self) -> None: + """ + stability + :stability: experimental + """ + ... + + +class _IJSII417DerivedProxy(jsii.proxy_for(jsii_calc.erasureTests.IJSII417PublicBaseOfBase)): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.erasureTests.IJSII417Derived" + @builtins.property + @jsii.member(jsii_name="property") + def property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "property") + + @jsii.member(jsii_name="bar") + def bar(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "bar", []) + + @jsii.member(jsii_name="baz") + def baz(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "baz", []) + + +@jsii.interface(jsii_type="jsii-calc.erasureTests.IJSII417PublicBaseOfBase") +class IJSII417PublicBaseOfBase(jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IJSII417PublicBaseOfBaseProxy + + @builtins.property + @jsii.member(jsii_name="hasRoot") + def has_root(self) -> bool: + """ + stability + :stability: experimental + """ + ... + + @jsii.member(jsii_name="foo") + def foo(self) -> None: + """ + stability + :stability: experimental + """ + ... + + +class _IJSII417PublicBaseOfBaseProxy(): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.erasureTests.IJSII417PublicBaseOfBase" + @builtins.property + @jsii.member(jsii_name="hasRoot") + def has_root(self) -> bool: + """ + stability + :stability: experimental + """ + return jsii.get(self, "hasRoot") + + @jsii.member(jsii_name="foo") + def foo(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "foo", []) + + +@jsii.interface(jsii_type="jsii-calc.erasureTests.IJsii487External") +class IJsii487External(jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IJsii487ExternalProxy + + pass + +class _IJsii487ExternalProxy(): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.erasureTests.IJsii487External" + pass + +@jsii.interface(jsii_type="jsii-calc.erasureTests.IJsii487External2") +class IJsii487External2(jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IJsii487External2Proxy + + pass + +class _IJsii487External2Proxy(): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.erasureTests.IJsii487External2" + pass + +@jsii.interface(jsii_type="jsii-calc.erasureTests.IJsii496") +class IJsii496(jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IJsii496Proxy + + pass + +class _IJsii496Proxy(): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.erasureTests.IJsii496" + pass + +class JSII417Derived(jsii_calc.erasureTests.JSII417PublicBaseOfBase, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.erasureTests.JSII417Derived"): + """ + stability + :stability: experimental + """ + def __init__(self, property: str) -> None: + """ + :param property: - + + stability + :stability: experimental + """ + jsii.create(jsii_calc.erasureTests.JSII417Derived, self, [property]) + + @jsii.member(jsii_name="bar") + def bar(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "bar", []) + + @jsii.member(jsii_name="baz") + def baz(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "baz", []) + + @builtins.property + @jsii.member(jsii_name="property") + def _property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "property") + + +class JSII417PublicBaseOfBase(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.erasureTests.JSII417PublicBaseOfBase"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(jsii_calc.erasureTests.JSII417PublicBaseOfBase, self, []) + + @jsii.member(jsii_name="makeInstance") + @builtins.classmethod + def make_instance(cls) -> jsii_calc.erasureTests.JSII417PublicBaseOfBase: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "makeInstance", []) + + @jsii.member(jsii_name="foo") + def foo(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "foo", []) + + @builtins.property + @jsii.member(jsii_name="hasRoot") + def has_root(self) -> bool: + """ + stability + :stability: experimental + """ + return jsii.get(self, "hasRoot") + + +@jsii.implements(jsii_calc.erasureTests.IJsii487External2, jsii_calc.erasureTests.IJsii487External) +class Jsii487Derived(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.erasureTests.Jsii487Derived"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(jsii_calc.erasureTests.Jsii487Derived, self, []) + + +@jsii.implements(jsii_calc.erasureTests.IJsii496) +class Jsii496Derived(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.erasureTests.Jsii496Derived"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(jsii_calc.erasureTests.Jsii496Derived, self, []) + + +__all__ = ["IJSII417Derived", "IJSII417PublicBaseOfBase", "IJsii487External", "IJsii487External2", "IJsii496", "JSII417Derived", "JSII417PublicBaseOfBase", "Jsii487Derived", "Jsii496Derived", "__jsii_assembly__"] + +publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/stability_annotations/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/stability_annotations/__init__.py new file mode 100644 index 0000000000..ac0beaffd2 --- /dev/null +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/stability_annotations/__init__.py @@ -0,0 +1,468 @@ +import abc +import builtins +import datetime +import enum +import publication +import typing + +import jsii +import jsii.compat + +import scope.jsii_calc_base +import scope.jsii_calc_base_of_base +import scope.jsii_calc_lib + +__jsii_assembly__ = jsii.JSIIAssembly.load("jsii-calc", "1.0.0", "jsii_calc", "jsii-calc@1.0.0.jsii.tgz") + + +class DeprecatedClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.stability_annotations.DeprecatedClass"): + """ + deprecated + :deprecated: a pretty boring class + + stability + :stability: deprecated + """ + def __init__(self, readonly_string: str, mutable_number: typing.Optional[jsii.Number]=None) -> None: + """ + :param readonly_string: - + :param mutable_number: - + + deprecated + :deprecated: this constructor is "just" okay + + stability + :stability: deprecated + """ + jsii.create(DeprecatedClass, self, [readonly_string, mutable_number]) + + @jsii.member(jsii_name="method") + def method(self) -> None: + """ + deprecated + :deprecated: it was a bad idea + + stability + :stability: deprecated + """ + return jsii.invoke(self, "method", []) + + @builtins.property + @jsii.member(jsii_name="readonlyProperty") + def readonly_property(self) -> str: + """ + deprecated + :deprecated: this is not always "wazoo", be ready to be disappointed + + stability + :stability: deprecated + """ + return jsii.get(self, "readonlyProperty") + + @builtins.property + @jsii.member(jsii_name="mutableProperty") + def mutable_property(self) -> typing.Optional[jsii.Number]: + """ + deprecated + :deprecated: shouldn't have been mutable + + stability + :stability: deprecated + """ + return jsii.get(self, "mutableProperty") + + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]): + jsii.set(self, "mutableProperty", value) + + +@jsii.enum(jsii_type="jsii-calc.stability_annotations.DeprecatedEnum") +class DeprecatedEnum(enum.Enum): + """ + deprecated + :deprecated: your deprecated selection of bad options + + stability + :stability: deprecated + """ + OPTION_A = "OPTION_A" + """ + deprecated + :deprecated: option A is not great + + stability + :stability: deprecated + """ + OPTION_B = "OPTION_B" + """ + deprecated + :deprecated: option B is kinda bad, too + + stability + :stability: deprecated + """ + +@jsii.data_type(jsii_type="jsii-calc.stability_annotations.DeprecatedStruct", jsii_struct_bases=[], name_mapping={'readonly_property': 'readonlyProperty'}) +class DeprecatedStruct(): + def __init__(self, *, readonly_property: str): + """ + :param readonly_property: + + deprecated + :deprecated: it just wraps a string + + stability + :stability: deprecated + """ + self._values = { + 'readonly_property': readonly_property, + } + + @builtins.property + def readonly_property(self) -> str: + """ + deprecated + :deprecated: well, yeah + + stability + :stability: deprecated + """ + return self._values.get('readonly_property') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'DeprecatedStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +class ExperimentalClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.stability_annotations.ExperimentalClass"): + """ + stability + :stability: experimental + """ + def __init__(self, readonly_string: str, mutable_number: typing.Optional[jsii.Number]=None) -> None: + """ + :param readonly_string: - + :param mutable_number: - + + stability + :stability: experimental + """ + jsii.create(ExperimentalClass, self, [readonly_string, mutable_number]) + + @jsii.member(jsii_name="method") + def method(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "method", []) + + @builtins.property + @jsii.member(jsii_name="readonlyProperty") + def readonly_property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "readonlyProperty") + + @builtins.property + @jsii.member(jsii_name="mutableProperty") + def mutable_property(self) -> typing.Optional[jsii.Number]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "mutableProperty") + + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]): + jsii.set(self, "mutableProperty", value) + + +@jsii.enum(jsii_type="jsii-calc.stability_annotations.ExperimentalEnum") +class ExperimentalEnum(enum.Enum): + """ + stability + :stability: experimental + """ + OPTION_A = "OPTION_A" + """ + stability + :stability: experimental + """ + OPTION_B = "OPTION_B" + """ + stability + :stability: experimental + """ + +@jsii.data_type(jsii_type="jsii-calc.stability_annotations.ExperimentalStruct", jsii_struct_bases=[], name_mapping={'readonly_property': 'readonlyProperty'}) +class ExperimentalStruct(): + def __init__(self, *, readonly_property: str): + """ + :param readonly_property: + + stability + :stability: experimental + """ + self._values = { + 'readonly_property': readonly_property, + } + + @builtins.property + def readonly_property(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('readonly_property') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'ExperimentalStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +@jsii.interface(jsii_type="jsii-calc.stability_annotations.IDeprecatedInterface") +class IDeprecatedInterface(jsii.compat.Protocol): + """ + deprecated + :deprecated: useless interface + + stability + :stability: deprecated + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IDeprecatedInterfaceProxy + + @builtins.property + @jsii.member(jsii_name="mutableProperty") + def mutable_property(self) -> typing.Optional[jsii.Number]: + """ + deprecated + :deprecated: could be better + + stability + :stability: deprecated + """ + ... + + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]): + ... + + @jsii.member(jsii_name="method") + def method(self) -> None: + """ + deprecated + :deprecated: services no purpose + + stability + :stability: deprecated + """ + ... + + +class _IDeprecatedInterfaceProxy(): + """ + deprecated + :deprecated: useless interface + + stability + :stability: deprecated + """ + __jsii_type__ = "jsii-calc.stability_annotations.IDeprecatedInterface" + @builtins.property + @jsii.member(jsii_name="mutableProperty") + def mutable_property(self) -> typing.Optional[jsii.Number]: + """ + deprecated + :deprecated: could be better + + stability + :stability: deprecated + """ + return jsii.get(self, "mutableProperty") + + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]): + jsii.set(self, "mutableProperty", value) + + @jsii.member(jsii_name="method") + def method(self) -> None: + """ + deprecated + :deprecated: services no purpose + + stability + :stability: deprecated + """ + return jsii.invoke(self, "method", []) + + +@jsii.interface(jsii_type="jsii-calc.stability_annotations.IExperimentalInterface") +class IExperimentalInterface(jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IExperimentalInterfaceProxy + + @builtins.property + @jsii.member(jsii_name="mutableProperty") + def mutable_property(self) -> typing.Optional[jsii.Number]: + """ + stability + :stability: experimental + """ + ... + + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]): + ... + + @jsii.member(jsii_name="method") + def method(self) -> None: + """ + stability + :stability: experimental + """ + ... + + +class _IExperimentalInterfaceProxy(): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.stability_annotations.IExperimentalInterface" + @builtins.property + @jsii.member(jsii_name="mutableProperty") + def mutable_property(self) -> typing.Optional[jsii.Number]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "mutableProperty") + + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]): + jsii.set(self, "mutableProperty", value) + + @jsii.member(jsii_name="method") + def method(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "method", []) + + +@jsii.interface(jsii_type="jsii-calc.stability_annotations.IStableInterface") +class IStableInterface(jsii.compat.Protocol): + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IStableInterfaceProxy + + @builtins.property + @jsii.member(jsii_name="mutableProperty") + def mutable_property(self) -> typing.Optional[jsii.Number]: + ... + + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]): + ... + + @jsii.member(jsii_name="method") + def method(self) -> None: + ... + + +class _IStableInterfaceProxy(): + __jsii_type__ = "jsii-calc.stability_annotations.IStableInterface" + @builtins.property + @jsii.member(jsii_name="mutableProperty") + def mutable_property(self) -> typing.Optional[jsii.Number]: + return jsii.get(self, "mutableProperty") + + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]): + jsii.set(self, "mutableProperty", value) + + @jsii.member(jsii_name="method") + def method(self) -> None: + return jsii.invoke(self, "method", []) + + +class StableClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.stability_annotations.StableClass"): + def __init__(self, readonly_string: str, mutable_number: typing.Optional[jsii.Number]=None) -> None: + """ + :param readonly_string: - + :param mutable_number: - + """ + jsii.create(StableClass, self, [readonly_string, mutable_number]) + + @jsii.member(jsii_name="method") + def method(self) -> None: + return jsii.invoke(self, "method", []) + + @builtins.property + @jsii.member(jsii_name="readonlyProperty") + def readonly_property(self) -> str: + return jsii.get(self, "readonlyProperty") + + @builtins.property + @jsii.member(jsii_name="mutableProperty") + def mutable_property(self) -> typing.Optional[jsii.Number]: + return jsii.get(self, "mutableProperty") + + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]): + jsii.set(self, "mutableProperty", value) + + +@jsii.enum(jsii_type="jsii-calc.stability_annotations.StableEnum") +class StableEnum(enum.Enum): + OPTION_A = "OPTION_A" + OPTION_B = "OPTION_B" + +@jsii.data_type(jsii_type="jsii-calc.stability_annotations.StableStruct", jsii_struct_bases=[], name_mapping={'readonly_property': 'readonlyProperty'}) +class StableStruct(): + def __init__(self, *, readonly_property: str): + """ + :param readonly_property: + """ + self._values = { + 'readonly_property': readonly_property, + } + + @builtins.property + def readonly_property(self) -> str: + return self._values.get('readonly_property') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'StableStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +__all__ = ["DeprecatedClass", "DeprecatedEnum", "DeprecatedStruct", "ExperimentalClass", "ExperimentalEnum", "ExperimentalStruct", "IDeprecatedInterface", "IExperimentalInterface", "IStableInterface", "StableClass", "StableEnum", "StableStruct", "__jsii_assembly__"] + +publication.publish() From eecc965a726519d87b3443e124bfbbc052364199 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=91=A8=F0=9F=8F=BC=E2=80=8D=F0=9F=92=BB=20Romain=20M?= =?UTF-8?q?arcadier-Muller?= Date: Wed, 11 Mar 2020 17:37:12 +0100 Subject: [PATCH 05/18] Fixup mktemp invokation for Linux --- packages/jsii-pacmak/test/diff-test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/jsii-pacmak/test/diff-test.sh b/packages/jsii-pacmak/test/diff-test.sh index 77e2a626eb..031c3a548b 100755 --- a/packages/jsii-pacmak/test/diff-test.sh +++ b/packages/jsii-pacmak/test/diff-test.sh @@ -2,7 +2,7 @@ set -e cd $(dirname $0) -workdir="$(mktemp -t jsii-diff-test -d)" +workdir="$(mktemp -d -t jsii-diff-test.XXXXXXXXXX)" success=true function mktmpdir() { From e0343dad89e948bf41839932e4c929c303018dc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=91=A8=F0=9F=8F=BC=E2=80=8D=F0=9F=92=BB=20Romain=20M?= =?UTF-8?q?arcadier-Muller?= Date: Thu, 12 Mar 2020 14:53:31 +0100 Subject: [PATCH 06/18] specification addendum --- docs/specifications/2-type-system.md | 80 ++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/docs/specifications/2-type-system.md b/docs/specifications/2-type-system.md index 1b52c301b4..1df777102b 100644 --- a/docs/specifications/2-type-system.md +++ b/docs/specifications/2-type-system.md @@ -308,6 +308,86 @@ document. } ``` +## Submodules + +> :construction: The *submodules* feature is still under active development and +> the specific behavior around it (in particular with respects to code +> generation) are still subject to change. + +### Overview + +Typescript allows grouping declarations together in *namespaces*, which are +interpreted by *jsii* as *submodules*. *Submodules* names are the fully +qualified name of the namespace from the package's root (if a package `foo` +defines a namespace `ns1`, which itself contains `ns2`, the submodule for `ns2` +will be named `foo.ns1.ns2`). + +*Submodules* may use differnt [code-generation configuration](#code-generation) +than thier parent submodule or package. + +> :construction: *Submodule*-level code-generation configuration is not yet +> implemented. + +### Restrictions + +*Submodules* cannot be involved in dependency cycles. While it is possible to +build such cycles in **JavaScript**, that configuration cannot be reliably +reprensented in certain other programming languages (e.g: **Python**). + +> :construction: [`jsii`] does not currently check for circular submodule +> dependencies. Invalid dependency patterns may result in errors at code +> generation by [`jsii-pacmak`], or at runtime. + +Since this would result in ambiguity that cannot be consistently resolved, a +given type can only be exported as part of one *submodule*. + +[`jsii`]: ../../packages/jsii +[`jsii-pacmak`]: ../../packages/jsii-pacmak + +### Declaration + +There are two supported ways to introduce *submodules*: +* Using the namespaced export syntax: + ```ts + export * as ns from './module'; + ``` +* Using an explicit namespace declaration: + ```ts + export namespace ns { /* ... */ } + ``` + +*Submodules* declared using the `export * as ns from './module';` syntax can be +documented using a markdown document located at `./module/README.md`. + +> :construction: The `./module/README.md` file support is not yet implemented. + +### Code Generation + +In languages where this is relevant (e.g: **Python**), *submodules* are rendered +as native *submodules*. In languages where a namespace system exists (**Java** +uses *packages*, **C#** uses *namespaces*, ...), *submodules* are rendered using +that. + +## Code Generation + +In order to generate code in various programming languages, [`jsii-pacmak`] +needs configuration that provides naming directives (e.g: **Java** package +names, **C#** namespaces, **Python** module names, ...). This configuration is +language-specific and each language implementation specifies and documents its +own configuration schema. + +Configuration is sourced in the `package.json` file at the root of the npm +package, under the special `jsii` key. The general schema is described in the +[configuration] document. + +> :construction: There is a proposition to allow this configuration to be placed +> in a `.jsiirc.json` file, which would take precedence over what is specified +> in `package.json`. *Submodules* introduced using the +> `export * as ns from './module';` syntax would then be able to define +> *submodule*-local configuration using the `./module/.jsiirc.json` file. + +[configuration]: ../configuration.md + ## References The [**TypeScript** Handbook] describes the language's type system and syntax From bc8d3ba3c5ca7c694b0c1bd39461c52aabdbefd6 Mon Sep 17 00:00:00 2001 From: Romain Marcadier-Muller Date: Thu, 12 Mar 2020 16:02:08 +0100 Subject: [PATCH 07/18] Update docs/specifications/2-type-system.md Co-Authored-By: Elad Ben-Israel --- docs/specifications/2-type-system.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/specifications/2-type-system.md b/docs/specifications/2-type-system.md index 1df777102b..c52ef17055 100644 --- a/docs/specifications/2-type-system.md +++ b/docs/specifications/2-type-system.md @@ -323,7 +323,7 @@ defines a namespace `ns1`, which itself contains `ns2`, the submodule for `ns2` will be named `foo.ns1.ns2`). *Submodules* may use differnt [code-generation configuration](#code-generation) -than thier parent submodule or package. +than their parent submodule or package. > :construction: *Submodule*-level code-generation configuration is not yet > implemented. From a396e82a4da57b8c63b6b04ec7467361709b7412 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=91=A8=F0=9F=8F=BC=E2=80=8D=F0=9F=92=BB=20Romain=20M?= =?UTF-8?q?arcadier-Muller?= Date: Thu, 12 Mar 2020 16:53:54 +0100 Subject: [PATCH 08/18] typo --- docs/specifications/2-type-system.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/specifications/2-type-system.md b/docs/specifications/2-type-system.md index c52ef17055..be38051d0f 100644 --- a/docs/specifications/2-type-system.md +++ b/docs/specifications/2-type-system.md @@ -322,7 +322,7 @@ qualified name of the namespace from the package's root (if a package `foo` defines a namespace `ns1`, which itself contains `ns2`, the submodule for `ns2` will be named `foo.ns1.ns2`). -*Submodules* may use differnt [code-generation configuration](#code-generation) +*Submodules* may use different [code-generation configuration](#code-generation) than their parent submodule or package. > :construction: *Submodule*-level code-generation configuration is not yet From 88455231a312b078d6d2af975fa2ab32e7ad6984 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=91=A8=F0=9F=8F=BC=E2=80=8D=F0=9F=92=BB=20Romain=20M?= =?UTF-8?q?arcadier-Muller?= Date: Fri, 13 Mar 2020 16:28:07 +0100 Subject: [PATCH 09/18] Represent submodules in jsii-reflect --- packages/jsii-calc/lib/index.ts | 12 +- .../jsii-calc/lib/submodule/child/index.ts | 3 + packages/jsii-calc/lib/submodule/index.ts | 15 + packages/jsii-calc/test/assembly.jsii | 9145 ++++++++--------- packages/jsii-reflect/lib/assembly.ts | 108 +- packages/jsii-reflect/lib/index.ts | 2 + packages/jsii-reflect/lib/module-like.ts | 41 + packages/jsii-reflect/lib/submodule.ts | 21 + packages/jsii-reflect/lib/tree.ts | 29 + packages/jsii-reflect/lib/type-system.ts | 22 +- .../test/__snapshots__/jsii-tree.test.js.snap | 1850 ++-- .../__snapshots__/type-system.test.js.snap | 239 +- .../jsii-reflect/test/type-system.test.ts | 54 +- 13 files changed, 5880 insertions(+), 5661 deletions(-) create mode 100644 packages/jsii-calc/lib/submodule/child/index.ts create mode 100644 packages/jsii-calc/lib/submodule/index.ts create mode 100644 packages/jsii-reflect/lib/module-like.ts create mode 100644 packages/jsii-reflect/lib/submodule.ts diff --git a/packages/jsii-calc/lib/index.ts b/packages/jsii-calc/lib/index.ts index 5327ea5a38..04754deacd 100644 --- a/packages/jsii-calc/lib/index.ts +++ b/packages/jsii-calc/lib/index.ts @@ -1,9 +1,7 @@ export * from './calculator'; -export * as compliance from './compliance'; -export * as documented from './documented'; +export * from './compliance'; +export * from './documented'; +export * from './erasures'; +export * from './stability'; -// Uses a camelCased name, for shows -export * as erasureTests from './erasures'; - -// Uses a snake_cased name, for shows -export * as stability_annotations from './stability'; +export * as submodule from './submodule'; diff --git a/packages/jsii-calc/lib/submodule/child/index.ts b/packages/jsii-calc/lib/submodule/child/index.ts new file mode 100644 index 0000000000..84c4f1882e --- /dev/null +++ b/packages/jsii-calc/lib/submodule/child/index.ts @@ -0,0 +1,3 @@ +export interface Structure { + readonly bool: boolean; +} diff --git a/packages/jsii-calc/lib/submodule/index.ts b/packages/jsii-calc/lib/submodule/index.ts new file mode 100644 index 0000000000..df93b01d0d --- /dev/null +++ b/packages/jsii-calc/lib/submodule/index.ts @@ -0,0 +1,15 @@ +export namespace nested_submodule { + export namespace deeplyNested { + export interface INamespaced { + readonly definedAt: string; + } + } + + export class Namespaced implements deeplyNested.INamespaced { + public readonly definedAt = __filename; + + private constructor() { } + } +} + +export * as child from './child'; diff --git a/packages/jsii-calc/test/assembly.jsii b/packages/jsii-calc/test/assembly.jsii index 1b2c7ca3cd..9e62f807b4 100644 --- a/packages/jsii-calc/test/assembly.jsii +++ b/packages/jsii-calc/test/assembly.jsii @@ -159,6 +159,177 @@ } }, "types": { + "jsii-calc.AbstractClass": { + "abstract": true, + "assembly": "jsii-calc", + "base": "jsii-calc.AbstractClassBase", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.AbstractClass", + "initializer": {}, + "interfaces": [ + "jsii-calc.IInterfaceImplementedByAbstractClass" + ], + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1100 + }, + "methods": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1105 + }, + "name": "abstractMethod", + "parameters": [ + { + "name": "name", + "type": { + "primitive": "string" + } + } + ], + "returns": { + "type": { + "primitive": "string" + } + } + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1101 + }, + "name": "nonAbstractMethod", + "returns": { + "type": { + "primitive": "number" + } + } + } + ], + "name": "AbstractClass", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1107 + }, + "name": "propFromInterface", + "overrides": "jsii-calc.IInterfaceImplementedByAbstractClass", + "type": { + "primitive": "string" + } + } + ] + }, + "jsii-calc.AbstractClassBase": { + "abstract": true, + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.AbstractClassBase", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1096 + }, + "name": "AbstractClassBase", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1097 + }, + "name": "abstractProperty", + "type": { + "primitive": "string" + } + } + ] + }, + "jsii-calc.AbstractClassReturner": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.AbstractClassReturner", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1122 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1123 + }, + "name": "giveMeAbstract", + "returns": { + "type": { + "fqn": "jsii-calc.AbstractClass" + } + } + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1127 + }, + "name": "giveMeInterface", + "returns": { + "type": { + "fqn": "jsii-calc.IInterfaceImplementedByAbstractClass" + } + } + } + ], + "name": "AbstractClassReturner", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1131 + }, + "name": "returnAbstractFromProperty", + "type": { + "fqn": "jsii-calc.AbstractClassBase" + } + } + ] + }, "jsii-calc.AbstractSuite": { "abstract": true, "assembly": "jsii-calc", @@ -324,279 +495,226 @@ } ] }, - "jsii-calc.BinaryOperation": { - "abstract": true, + "jsii-calc.AllTypes": { "assembly": "jsii-calc", - "base": "@scope/jsii-calc-lib.Operation", "docs": { + "remarks": "The setters will validate\nthat the value set is of the expected type and throw otherwise.", "stability": "experimental", - "summary": "Represents an operation with two operands." - }, - "fqn": "jsii-calc.BinaryOperation", - "initializer": { - "docs": { - "stability": "experimental", - "summary": "Creates a BinaryOperation." - }, - "parameters": [ - { - "docs": { - "summary": "Left-hand side operand." - }, - "name": "lhs", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - }, - { - "docs": { - "summary": "Right-hand side operand." - }, - "name": "rhs", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - } - ] + "summary": "This class includes property for all types supported by jsii." }, - "interfaces": [ - "@scope/jsii-calc-lib.IFriendly" - ], + "fqn": "jsii-calc.AllTypes", + "initializer": {}, "kind": "class", "locationInModule": { - "filename": "lib/calculator.ts", - "line": 37 + "filename": "lib/compliance.ts", + "line": 52 }, "methods": [ { "docs": { - "stability": "experimental", - "summary": "Say hello!" + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 47 + "filename": "lib/compliance.ts", + "line": 220 }, - "name": "hello", - "overrides": "@scope/jsii-calc-lib.IFriendly", - "returns": { - "type": { - "primitive": "string" + "name": "anyIn", + "parameters": [ + { + "name": "inp", + "type": { + "primitive": "any" + } } - } - } - ], - "name": "BinaryOperation", - "properties": [ + ] + }, { "docs": { - "stability": "experimental", - "summary": "Left-hand side operand." + "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 43 + "filename": "lib/compliance.ts", + "line": 212 }, - "name": "lhs", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" + "name": "anyOut", + "returns": { + "type": { + "primitive": "any" + } } }, { "docs": { - "stability": "experimental", - "summary": "Right-hand side operand." + "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 43 + "filename": "lib/compliance.ts", + "line": 207 }, - "name": "rhs", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - } - ] - }, - "jsii-calc.Calculator": { - "assembly": "jsii-calc", - "base": "jsii-calc.composition.CompositeOperation", - "docs": { - "example": "const calculator = new calc.Calculator();\ncalculator.add(5);\ncalculator.mul(3);\nconsole.log(calculator.expression.value);", - "remarks": "Here's how you use it:\n\n```ts\nconst calculator = new calc.Calculator();\ncalculator.add(5);\ncalculator.mul(3);\nconsole.log(calculator.expression.value);\n```\n\nI will repeat this example again, but in an @example tag.", - "stability": "experimental", - "summary": "A calculator which maintains a current value and allows adding operations." - }, - "fqn": "jsii-calc.Calculator", - "initializer": { - "docs": { - "stability": "experimental", - "summary": "Creates a Calculator object." - }, - "parameters": [ - { - "docs": { - "summary": "Initialization properties." - }, - "name": "props", - "optional": true, + "name": "enumMethod", + "parameters": [ + { + "name": "value", + "type": { + "fqn": "jsii-calc.StringEnum" + } + } + ], + "returns": { "type": { - "fqn": "jsii-calc.CalculatorProps" + "fqn": "jsii-calc.StringEnum" } } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 273 - }, - "methods": [ + } + ], + "name": "AllTypes", + "properties": [ { "docs": { - "stability": "experimental", - "summary": "Adds a number to the current value." + "stability": "experimental" }, + "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 312 + "filename": "lib/compliance.ts", + "line": 203 }, - "name": "add", - "parameters": [ - { - "name": "value", - "type": { - "primitive": "number" - } + "name": "enumPropertyValue", + "type": { + "primitive": "number" + } + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 167 + }, + "name": "anyArrayProperty", + "type": { + "collection": { + "elementtype": { + "primitive": "any" + }, + "kind": "array" } - ] + } }, { "docs": { - "stability": "experimental", - "summary": "Multiplies the current value by a number." + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 319 + "filename": "lib/compliance.ts", + "line": 168 }, - "name": "mul", - "parameters": [ - { - "name": "value", - "type": { - "primitive": "number" - } + "name": "anyMapProperty", + "type": { + "collection": { + "elementtype": { + "primitive": "any" + }, + "kind": "map" } - ] + } }, { "docs": { - "stability": "experimental", - "summary": "Negates the current value." + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 333 + "filename": "lib/compliance.ts", + "line": 166 }, - "name": "neg" + "name": "anyProperty", + "type": { + "primitive": "any" + } }, { "docs": { - "stability": "experimental", - "summary": "Raises the current value by a power." + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 326 + "filename": "lib/compliance.ts", + "line": 152 }, - "name": "pow", - "parameters": [ - { - "name": "value", - "type": { - "primitive": "number" - } + "name": "arrayProperty", + "type": { + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "array" } - ] + } }, { "docs": { - "stability": "experimental", - "summary": "Returns teh value of the union property (if defined)." + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 352 + "filename": "lib/compliance.ts", + "line": 58 }, - "name": "readUnionValue", - "returns": { - "type": { - "primitive": "number" - } + "name": "booleanProperty", + "type": { + "primitive": "boolean" } - } - ], - "name": "Calculator", - "properties": [ + }, { "docs": { - "stability": "experimental", - "summary": "Returns the expression." + "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 340 + "filename": "lib/compliance.ts", + "line": 104 }, - "name": "expression", - "overrides": "jsii-calc.composition.CompositeOperation", + "name": "dateProperty", "type": { - "fqn": "@scope/jsii-calc-lib.Value" + "primitive": "date" } }, { "docs": { - "stability": "experimental", - "summary": "A log of all operations." + "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 302 + "filename": "lib/compliance.ts", + "line": 187 }, - "name": "operationsLog", + "name": "enumProperty", "type": { - "collection": { - "elementtype": { - "fqn": "@scope/jsii-calc-lib.Value" - }, - "kind": "array" - } + "fqn": "jsii-calc.AllTypesEnum" } }, { "docs": { - "stability": "experimental", - "summary": "A map of per operation name of all operations performed." + "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 297 + "filename": "lib/compliance.ts", + "line": 121 }, - "name": "operationsMap", + "name": "jsonProperty", + "type": { + "primitive": "json" + } + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 137 + }, + "name": "mapProperty", "type": { "collection": { "elementtype": { - "collection": { - "elementtype": { - "fqn": "@scope/jsii-calc-lib.Value" - }, - "kind": "array" - } + "fqn": "@scope/jsii-calc-lib.Number" }, "kind": "map" } @@ -604,232 +722,224 @@ }, { "docs": { - "stability": "experimental", - "summary": "The current value." + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 292 + "filename": "lib/compliance.ts", + "line": 89 }, - "name": "curr", + "name": "numberProperty", "type": { - "fqn": "@scope/jsii-calc-lib.Value" + "primitive": "number" } }, { "docs": { - "stability": "experimental", - "summary": "The maximum value allows in this calculator." + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 307 + "filename": "lib/compliance.ts", + "line": 73 }, - "name": "maxValue", - "optional": true, + "name": "stringProperty", "type": { - "primitive": "number" + "primitive": "string" } }, { "docs": { - "stability": "experimental", - "summary": "Example of a property that accepts a union of types." + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 347 + "filename": "lib/compliance.ts", + "line": 179 }, - "name": "unionProperty", - "optional": true, + "name": "unionArrayProperty", "type": { - "union": { - "types": [ - { - "fqn": "jsii-calc.Add" + "collection": { + "elementtype": { + "union": { + "types": [ + { + "primitive": "number" + }, + { + "fqn": "@scope/jsii-calc-lib.Value" + } + ] + } + }, + "kind": "array" + } + } + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 180 + }, + "name": "unionMapProperty", + "type": { + "collection": { + "elementtype": { + "union": { + "types": [ + { + "primitive": "string" + }, + { + "primitive": "number" + }, + { + "fqn": "@scope/jsii-calc-lib.Number" + } + ] + } + }, + "kind": "map" + } + } + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 178 + }, + "name": "unionProperty", + "type": { + "union": { + "types": [ + { + "primitive": "string" + }, + { + "primitive": "number" }, { "fqn": "jsii-calc.Multiply" }, { - "fqn": "jsii-calc.Power" + "fqn": "@scope/jsii-calc-lib.Number" } ] } } - } - ] - }, - "jsii-calc.CalculatorProps": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental", - "summary": "Properties for Calculator." - }, - "fqn": "jsii-calc.CalculatorProps", - "kind": "interface", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 234 - }, - "name": "CalculatorProps", - "properties": [ + }, { - "abstract": true, "docs": { - "default": "0", - "remarks": "NOTE: Any number works here, it's fine.", - "stability": "experimental", - "summary": "The initial value of the calculator." + "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 242 + "filename": "lib/compliance.ts", + "line": 173 }, - "name": "initialValue", - "optional": true, + "name": "unknownArrayProperty", "type": { - "primitive": "number" + "collection": { + "elementtype": { + "primitive": "any" + }, + "kind": "array" + } } }, { - "abstract": true, "docs": { - "default": "none", - "stability": "experimental", - "summary": "The maximum value the calculator can store." + "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 249 + "filename": "lib/compliance.ts", + "line": 174 }, - "name": "maximumValue", - "optional": true, + "name": "unknownMapProperty", "type": { - "primitive": "number" + "collection": { + "elementtype": { + "primitive": "any" + }, + "kind": "map" + } } - } - ] - }, - "jsii-calc.IFriendlier": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Even friendlier classes can implement this interface." - }, - "fqn": "jsii-calc.IFriendlier", - "interfaces": [ - "@scope/jsii-calc-lib.IFriendly" - ], - "kind": "interface", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 6 - }, - "methods": [ + }, { - "abstract": true, "docs": { - "stability": "experimental", - "summary": "Say farewell." + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 16 + "filename": "lib/compliance.ts", + "line": 172 }, - "name": "farewell", - "returns": { - "type": { - "primitive": "string" - } + "name": "unknownProperty", + "type": { + "primitive": "any" } }, { - "abstract": true, "docs": { - "returns": "A goodbye blessing.", - "stability": "experimental", - "summary": "Say goodbye." + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 11 + "filename": "lib/compliance.ts", + "line": 184 }, - "name": "goodbye", - "returns": { - "type": { - "primitive": "string" - } + "name": "optionalEnumValue", + "optional": true, + "type": { + "fqn": "jsii-calc.StringEnum" } } - ], - "name": "IFriendlier" + ] }, - "jsii-calc.IFriendlyRandomGenerator": { + "jsii-calc.AllTypesEnum": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.IFriendlyRandomGenerator", - "interfaces": [ - "jsii-calc.IRandomNumberGenerator", - "@scope/jsii-calc-lib.IFriendly" - ], - "kind": "interface", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 30 - }, - "name": "IFriendlyRandomGenerator" - }, - "jsii-calc.IRandomNumberGenerator": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Generates random numbers." - }, - "fqn": "jsii-calc.IRandomNumberGenerator", - "kind": "interface", + "fqn": "jsii-calc.AllTypesEnum", + "kind": "enum", "locationInModule": { - "filename": "lib/calculator.ts", + "filename": "lib/compliance.ts", "line": 22 }, - "methods": [ + "members": [ { - "abstract": true, "docs": { - "returns": "A random number.", - "stability": "experimental", - "summary": "Returns another random number." + "stability": "experimental" }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 27 + "name": "MY_ENUM_VALUE" + }, + { + "docs": { + "stability": "experimental" }, - "name": "next", - "returns": { - "type": { - "primitive": "number" - } - } + "name": "YOUR_ENUM_VALUE" + }, + { + "docs": { + "stability": "experimental" + }, + "name": "THIS_IS_GREAT" } ], - "name": "IRandomNumberGenerator" + "name": "AllTypesEnum" }, - "jsii-calc.MethodNamedProperty": { + "jsii-calc.AllowedMethodNames": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.MethodNamedProperty", + "fqn": "jsii-calc.AllowedMethodNames", "initializer": {}, "kind": "class", "locationInModule": { - "filename": "lib/calculator.ts", - "line": 386 + "filename": "lib/compliance.ts", + "line": 606 }, "methods": [ { @@ -837,124 +947,243 @@ "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 387 + "filename": "lib/compliance.ts", + "line": 615 }, - "name": "property", - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "MethodNamedProperty", - "properties": [ - { + "name": "getBar", + "parameters": [ + { + "name": "_p1", + "type": { + "primitive": "string" + } + }, + { + "name": "_p2", + "type": { + "primitive": "number" + } + } + ] + }, + { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "getXxx() is not allowed (see negatives), but getXxx(a, ...) is okay." }, - "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 391 + "filename": "lib/compliance.ts", + "line": 611 }, - "name": "elite", - "type": { - "primitive": "number" + "name": "getFoo", + "parameters": [ + { + "name": "withParam", + "type": { + "primitive": "string" + } + } + ], + "returns": { + "type": { + "primitive": "string" + } } + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 626 + }, + "name": "setBar", + "parameters": [ + { + "name": "_x", + "type": { + "primitive": "string" + } + }, + { + "name": "_y", + "type": { + "primitive": "number" + } + }, + { + "name": "_z", + "type": { + "primitive": "boolean" + } + } + ] + }, + { + "docs": { + "stability": "experimental", + "summary": "setFoo(x) is not allowed (see negatives), but setXxx(a, b, ...) is okay." + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 622 + }, + "name": "setFoo", + "parameters": [ + { + "name": "_x", + "type": { + "primitive": "string" + } + }, + { + "name": "_y", + "type": { + "primitive": "number" + } + } + ] } - ] + ], + "name": "AllowedMethodNames" }, - "jsii-calc.Multiply": { + "jsii-calc.AmbiguousParameters": { "assembly": "jsii-calc", - "base": "jsii-calc.BinaryOperation", "docs": { - "stability": "experimental", - "summary": "The \"*\" binary operation." + "stability": "experimental" }, - "fqn": "jsii-calc.Multiply", + "fqn": "jsii-calc.AmbiguousParameters", "initializer": { "docs": { - "stability": "experimental", - "summary": "Creates a BinaryOperation." + "stability": "experimental" }, "parameters": [ { - "docs": { - "summary": "Left-hand side operand." - }, - "name": "lhs", + "name": "scope", "type": { - "fqn": "@scope/jsii-calc-lib.Value" + "fqn": "jsii-calc.Bell" } }, { - "docs": { - "summary": "Right-hand side operand." - }, - "name": "rhs", + "name": "props", "type": { - "fqn": "@scope/jsii-calc-lib.Value" + "fqn": "jsii-calc.StructParameterType" } } ] }, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2425 + }, + "name": "AmbiguousParameters", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2426 + }, + "name": "props", + "type": { + "fqn": "jsii-calc.StructParameterType" + } + }, + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2426 + }, + "name": "scope", + "type": { + "fqn": "jsii-calc.Bell" + } + } + ] + }, + "jsii-calc.AnonymousImplementationProvider": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.AnonymousImplementationProvider", + "initializer": {}, "interfaces": [ - "jsii-calc.IFriendlier", - "jsii-calc.IRandomNumberGenerator" + "jsii-calc.IAnonymousImplementationProvider" ], "kind": "class", "locationInModule": { - "filename": "lib/calculator.ts", - "line": 68 + "filename": "lib/compliance.ts", + "line": 1976 }, "methods": [ { "docs": { - "stability": "experimental", - "summary": "Say farewell." + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 81 + "filename": "lib/compliance.ts", + "line": 1979 }, - "name": "farewell", - "overrides": "jsii-calc.IFriendlier", + "name": "provideAsClass", + "overrides": "jsii-calc.IAnonymousImplementationProvider", "returns": { "type": { - "primitive": "string" + "fqn": "jsii-calc.Implementation" } } }, { "docs": { - "stability": "experimental", - "summary": "Say goodbye." + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 77 + "filename": "lib/compliance.ts", + "line": 1983 }, - "name": "goodbye", - "overrides": "jsii-calc.IFriendlier", + "name": "provideAsInterface", + "overrides": "jsii-calc.IAnonymousImplementationProvider", "returns": { "type": { - "primitive": "string" + "fqn": "jsii-calc.IAnonymouslyImplementMe" } } - }, + } + ], + "name": "AnonymousImplementationProvider" + }, + "jsii-calc.AsyncVirtualMethods": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.AsyncVirtualMethods", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 321 + }, + "methods": [ { + "async": true, "docs": { - "stability": "experimental", - "summary": "Returns another random number." + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 85 + "filename": "lib/compliance.ts", + "line": 322 }, - "name": "next", - "overrides": "jsii-calc.IRandomNumberGenerator", + "name": "callMe", "returns": { "type": { "primitive": "number" @@ -962,231 +1191,268 @@ } }, { + "async": true, "docs": { "stability": "experimental", - "summary": "String representation of the value." + "summary": "Just calls \"overrideMeToo\"." }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 73 + "filename": "lib/compliance.ts", + "line": 337 }, - "name": "toString", - "overrides": "@scope/jsii-calc-lib.Operation", + "name": "callMe2", "returns": { "type": { - "primitive": "string" + "primitive": "number" } } - } - ], - "name": "Multiply", - "properties": [ + }, { + "async": true, "docs": { + "remarks": "This is a \"double promise\" situation, which\nmeans that callbacks are not going to be available immediate, but only\nafter an \"immediates\" cycle.", "stability": "experimental", - "summary": "The value." + "summary": "This method calls the \"callMe\" async method indirectly, which will then invoke a virtual method." }, - "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 69 + "filename": "lib/compliance.ts", + "line": 347 }, - "name": "value", - "overrides": "@scope/jsii-calc-lib.Value", - "type": { - "primitive": "number" + "name": "callMeDoublePromise", + "returns": { + "type": { + "primitive": "number" + } } - } - ] - }, - "jsii-calc.Negate": { - "assembly": "jsii-calc", - "base": "jsii-calc.UnaryOperation", - "docs": { - "stability": "experimental", - "summary": "The negation operation (\"-value\")." - }, - "fqn": "jsii-calc.Negate", - "initializer": { - "docs": { - "stability": "experimental" }, - "parameters": [ - { - "name": "operand", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - } - ] - }, - "interfaces": [ - "jsii-calc.IFriendlier" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 102 - }, - "methods": [ { "docs": { - "stability": "experimental", - "summary": "Say farewell." + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 119 + "filename": "lib/compliance.ts", + "line": 355 }, - "name": "farewell", - "overrides": "jsii-calc.IFriendlier", + "name": "dontOverrideMe", "returns": { "type": { - "primitive": "string" + "primitive": "number" } } }, { + "async": true, "docs": { - "stability": "experimental", - "summary": "Say goodbye." + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 115 + "filename": "lib/compliance.ts", + "line": 326 }, - "name": "goodbye", - "overrides": "jsii-calc.IFriendlier", + "name": "overrideMe", + "parameters": [ + { + "name": "mult", + "type": { + "primitive": "number" + } + } + ], "returns": { "type": { - "primitive": "string" + "primitive": "number" } } }, { + "async": true, "docs": { - "stability": "experimental", - "summary": "Say hello!" + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 111 + "filename": "lib/compliance.ts", + "line": 330 }, - "name": "hello", - "overrides": "@scope/jsii-calc-lib.IFriendly", + "name": "overrideMeToo", "returns": { "type": { - "primitive": "string" + "primitive": "number" } } + } + ], + "name": "AsyncVirtualMethods" + }, + "jsii-calc.AugmentableClass": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.AugmentableClass", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1354 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1355 + }, + "name": "methodOne" }, { "docs": { - "stability": "experimental", - "summary": "String representation of the value." + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 107 + "filename": "lib/compliance.ts", + "line": 1361 }, - "name": "toString", - "overrides": "@scope/jsii-calc-lib.Operation", - "returns": { - "type": { - "primitive": "string" - } - } + "name": "methodTwo" } ], - "name": "Negate", + "name": "AugmentableClass" + }, + "jsii-calc.BaseJsii976": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.BaseJsii976", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2219 + }, + "name": "BaseJsii976" + }, + "jsii-calc.Bell": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.Bell", + "initializer": {}, + "interfaces": [ + "jsii-calc.IBell" + ], + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2163 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2166 + }, + "name": "ring", + "overrides": "jsii-calc.IBell" + } + ], + "name": "Bell", "properties": [ { "docs": { - "stability": "experimental", - "summary": "The value." + "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 103 + "filename": "lib/compliance.ts", + "line": 2164 }, - "name": "value", - "overrides": "@scope/jsii-calc-lib.Value", + "name": "rung", "type": { - "primitive": "number" + "primitive": "boolean" } } ] }, - "jsii-calc.Power": { + "jsii-calc.BinaryOperation": { + "abstract": true, "assembly": "jsii-calc", - "base": "jsii-calc.composition.CompositeOperation", + "base": "@scope/jsii-calc-lib.Operation", "docs": { "stability": "experimental", - "summary": "The power operation." + "summary": "Represents an operation with two operands." }, - "fqn": "jsii-calc.Power", + "fqn": "jsii-calc.BinaryOperation", "initializer": { "docs": { "stability": "experimental", - "summary": "Creates a Power operation." + "summary": "Creates a BinaryOperation." }, "parameters": [ { "docs": { - "summary": "The base of the power." + "summary": "Left-hand side operand." }, - "name": "base", + "name": "lhs", "type": { "fqn": "@scope/jsii-calc-lib.Value" } }, { "docs": { - "summary": "The number of times to multiply." + "summary": "Right-hand side operand." }, - "name": "pow", + "name": "rhs", "type": { "fqn": "@scope/jsii-calc-lib.Value" } } ] }, + "interfaces": [ + "@scope/jsii-calc-lib.IFriendly" + ], "kind": "class", "locationInModule": { "filename": "lib/calculator.ts", - "line": 211 + "line": 37 }, - "name": "Power", - "properties": [ + "methods": [ { "docs": { "stability": "experimental", - "summary": "The base of the power." + "summary": "Say hello!" }, - "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 218 + "line": 47 }, - "name": "base", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" + "name": "hello", + "overrides": "@scope/jsii-calc-lib.IFriendly", + "returns": { + "type": { + "primitive": "string" + } } - }, + } + ], + "name": "BinaryOperation", + "properties": [ { "docs": { - "remarks": "Must be implemented by derived classes.", "stability": "experimental", - "summary": "The expression that this operation consists of." + "summary": "Left-hand side operand." }, "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 222 + "line": 43 }, - "name": "expression", - "overrides": "jsii-calc.composition.CompositeOperation", + "name": "lhs", "type": { "fqn": "@scope/jsii-calc-lib.Value" } @@ -1194,141 +1460,150 @@ { "docs": { "stability": "experimental", - "summary": "The number of times to multiply." + "summary": "Right-hand side operand." }, "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 218 + "line": 43 }, - "name": "pow", + "name": "rhs", "type": { "fqn": "@scope/jsii-calc-lib.Value" } } ] }, - "jsii-calc.PropertyNamedProperty": { + "jsii-calc.Calculator": { "assembly": "jsii-calc", + "base": "jsii-calc.composition.CompositeOperation", "docs": { + "example": "const calculator = new calc.Calculator();\ncalculator.add(5);\ncalculator.mul(3);\nconsole.log(calculator.expression.value);", + "remarks": "Here's how you use it:\n\n```ts\nconst calculator = new calc.Calculator();\ncalculator.add(5);\ncalculator.mul(3);\nconsole.log(calculator.expression.value);\n```\n\nI will repeat this example again, but in an @example tag.", "stability": "experimental", - "summary": "Reproduction for https://github.com/aws/jsii/issues/1113 Where a method or property named \"property\" would result in impossible to load Python code." + "summary": "A calculator which maintains a current value and allows adding operations." + }, + "fqn": "jsii-calc.Calculator", + "initializer": { + "docs": { + "stability": "experimental", + "summary": "Creates a Calculator object." + }, + "parameters": [ + { + "docs": { + "summary": "Initialization properties." + }, + "name": "props", + "optional": true, + "type": { + "fqn": "jsii-calc.CalculatorProps" + } + } + ] }, - "fqn": "jsii-calc.PropertyNamedProperty", - "initializer": {}, "kind": "class", "locationInModule": { "filename": "lib/calculator.ts", - "line": 382 + "line": 273 }, - "name": "PropertyNamedProperty", - "properties": [ + "methods": [ { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Adds a number to the current value." }, - "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 383 + "line": 312 }, - "name": "property", - "type": { - "primitive": "string" - } + "name": "add", + "parameters": [ + { + "name": "value", + "type": { + "primitive": "number" + } + } + ] }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Multiplies the current value by a number." }, - "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 384 + "line": 319 }, - "name": "yetAnoterOne", - "type": { - "primitive": "boolean" - } - } - ] - }, - "jsii-calc.SmellyStruct": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.SmellyStruct", - "kind": "interface", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 393 - }, - "name": "SmellyStruct", - "properties": [ + "name": "mul", + "parameters": [ + { + "name": "value", + "type": { + "primitive": "number" + } + } + ] + }, { - "abstract": true, "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Negates the current value." }, - "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 394 + "line": 333 }, - "name": "property", - "type": { - "primitive": "string" - } + "name": "neg" }, { - "abstract": true, "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Raises the current value by a power." }, - "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 395 + "line": 326 }, - "name": "yetAnoterOne", - "type": { - "primitive": "boolean" + "name": "pow", + "parameters": [ + { + "name": "value", + "type": { + "primitive": "number" + } + } + ] + }, + { + "docs": { + "stability": "experimental", + "summary": "Returns teh value of the union property (if defined)." + }, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 352 + }, + "name": "readUnionValue", + "returns": { + "type": { + "primitive": "number" + } } } - ] - }, - "jsii-calc.Sum": { - "assembly": "jsii-calc", - "base": "jsii-calc.composition.CompositeOperation", - "docs": { - "stability": "experimental", - "summary": "An operation that sums multiple values." - }, - "fqn": "jsii-calc.Sum", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 186 - }, - "name": "Sum", + ], + "name": "Calculator", "properties": [ { "docs": { - "remarks": "Must be implemented by derived classes.", "stability": "experimental", - "summary": "The expression that this operation consists of." + "summary": "Returns the expression." }, "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 199 + "line": 340 }, "name": "expression", "overrides": "jsii-calc.composition.CompositeOperation", @@ -1339,13 +1614,14 @@ { "docs": { "stability": "experimental", - "summary": "The parts to sum." + "summary": "A log of all operations." }, + "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 191 + "line": 302 }, - "name": "parts", + "name": "operationsLog", "type": { "collection": { "elementtype": { @@ -1354,315 +1630,207 @@ "kind": "array" } } - } - ] - }, - "jsii-calc.UnaryOperation": { - "abstract": true, - "assembly": "jsii-calc", - "base": "@scope/jsii-calc-lib.Operation", - "docs": { - "stability": "experimental", - "summary": "An operation on a single operand." - }, - "fqn": "jsii-calc.UnaryOperation", - "initializer": { - "docs": { - "stability": "experimental" }, - "parameters": [ - { - "name": "operand", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 93 - }, - "name": "UnaryOperation", - "properties": [ { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "A map of per operation name of all operations performed." }, "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 94 + "line": 297 }, - "name": "operand", + "name": "operationsMap", "type": { - "fqn": "@scope/jsii-calc-lib.Value" + "collection": { + "elementtype": { + "collection": { + "elementtype": { + "fqn": "@scope/jsii-calc-lib.Value" + }, + "kind": "array" + } + }, + "kind": "map" + } } - } - ] - }, - "jsii-calc.compliance.AbstractClass": { - "abstract": true, - "assembly": "jsii-calc", - "base": "jsii-calc.compliance.AbstractClassBase", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.compliance.AbstractClass", - "initializer": {}, - "interfaces": [ - "jsii-calc.compliance.IInterfaceImplementedByAbstractClass" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1100 - }, - "methods": [ + }, { - "abstract": true, "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "The current value." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1105 + "filename": "lib/calculator.ts", + "line": 292 }, - "name": "abstractMethod", - "parameters": [ - { - "name": "name", - "type": { - "primitive": "string" - } - } - ], - "returns": { - "type": { - "primitive": "string" - } + "name": "curr", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" } }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "The maximum value allows in this calculator." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1101 + "filename": "lib/calculator.ts", + "line": 307 }, - "name": "nonAbstractMethod", - "returns": { - "type": { - "primitive": "number" - } + "name": "maxValue", + "optional": true, + "type": { + "primitive": "number" } - } - ], - "name": "AbstractClass", - "namespace": "compliance", - "properties": [ + }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Example of a property that accepts a union of types." }, - "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1107 + "filename": "lib/calculator.ts", + "line": 347 }, - "name": "propFromInterface", - "overrides": "jsii-calc.compliance.IInterfaceImplementedByAbstractClass", - "type": { - "primitive": "string" + "name": "unionProperty", + "optional": true, + "type": { + "union": { + "types": [ + { + "fqn": "jsii-calc.Add" + }, + { + "fqn": "jsii-calc.Multiply" + }, + { + "fqn": "jsii-calc.Power" + } + ] + } } } ] }, - "jsii-calc.compliance.AbstractClassBase": { - "abstract": true, + "jsii-calc.CalculatorProps": { "assembly": "jsii-calc", + "datatype": true, "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Properties for Calculator." }, - "fqn": "jsii-calc.compliance.AbstractClassBase", - "initializer": {}, - "kind": "class", + "fqn": "jsii-calc.CalculatorProps", + "kind": "interface", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1096 + "filename": "lib/calculator.ts", + "line": 234 }, - "name": "AbstractClassBase", - "namespace": "compliance", + "name": "CalculatorProps", "properties": [ { "abstract": true, "docs": { - "stability": "experimental" + "default": "0", + "remarks": "NOTE: Any number works here, it's fine.", + "stability": "experimental", + "summary": "The initial value of the calculator." }, "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1097 + "filename": "lib/calculator.ts", + "line": 242 }, - "name": "abstractProperty", + "name": "initialValue", + "optional": true, "type": { - "primitive": "string" + "primitive": "number" + } + }, + { + "abstract": true, + "docs": { + "default": "none", + "stability": "experimental", + "summary": "The maximum value the calculator can store." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 249 + }, + "name": "maximumValue", + "optional": true, + "type": { + "primitive": "number" } } ] }, - "jsii-calc.compliance.AbstractClassReturner": { + "jsii-calc.ChildStruct982": { "assembly": "jsii-calc", + "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.AbstractClassReturner", - "initializer": {}, - "kind": "class", + "fqn": "jsii-calc.ChildStruct982", + "interfaces": [ + "jsii-calc.ParentStruct982" + ], + "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1122 + "line": 2244 }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1123 - }, - "name": "giveMeAbstract", - "returns": { - "type": { - "fqn": "jsii-calc.compliance.AbstractClass" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1127 - }, - "name": "giveMeInterface", - "returns": { - "type": { - "fqn": "jsii-calc.compliance.IInterfaceImplementedByAbstractClass" - } - } - } - ], - "name": "AbstractClassReturner", - "namespace": "compliance", + "name": "ChildStruct982", "properties": [ { + "abstract": true, "docs": { "stability": "experimental" }, "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1131 + "line": 2245 }, - "name": "returnAbstractFromProperty", + "name": "bar", "type": { - "fqn": "jsii-calc.compliance.AbstractClassBase" + "primitive": "number" } } ] }, - "jsii-calc.compliance.AllTypes": { + "jsii-calc.ClassThatImplementsTheInternalInterface": { "assembly": "jsii-calc", "docs": { - "remarks": "The setters will validate\nthat the value set is of the expected type and throw otherwise.", - "stability": "experimental", - "summary": "This class includes property for all types supported by jsii." + "stability": "experimental" }, - "fqn": "jsii-calc.compliance.AllTypes", + "fqn": "jsii-calc.ClassThatImplementsTheInternalInterface", "initializer": {}, + "interfaces": [ + "jsii-calc.INonInternalInterface" + ], "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 52 + "line": 1596 }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 220 - }, - "name": "anyIn", - "parameters": [ - { - "name": "inp", - "type": { - "primitive": "any" - } - } - ] - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 212 - }, - "name": "anyOut", - "returns": { - "type": { - "primitive": "any" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 207 - }, - "name": "enumMethod", - "parameters": [ - { - "name": "value", - "type": { - "fqn": "jsii-calc.compliance.StringEnum" - } - } - ], - "returns": { - "type": { - "fqn": "jsii-calc.compliance.StringEnum" - } - } - } - ], - "name": "AllTypes", - "namespace": "compliance", + "name": "ClassThatImplementsTheInternalInterface", "properties": [ { "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 203 + "line": 1597 }, - "name": "enumPropertyValue", + "name": "a", + "overrides": "jsii-calc.IAnotherPublicInterface", "type": { - "primitive": "number" + "primitive": "string" } }, { @@ -1671,16 +1839,12 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 167 + "line": 1598 }, - "name": "anyArrayProperty", + "name": "b", + "overrides": "jsii-calc.INonInternalInterface", "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "array" - } + "primitive": "string" } }, { @@ -1689,16 +1853,12 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 168 + "line": 1599 }, - "name": "anyMapProperty", + "name": "c", + "overrides": "jsii-calc.INonInternalInterface", "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "map" - } + "primitive": "string" } }, { @@ -1707,29 +1867,44 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 166 + "line": 1600 }, - "name": "anyProperty", + "name": "d", "type": { - "primitive": "any" + "primitive": "string" } - }, + } + ] + }, + "jsii-calc.ClassThatImplementsThePrivateInterface": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.ClassThatImplementsThePrivateInterface", + "initializer": {}, + "interfaces": [ + "jsii-calc.INonInternalInterface" + ], + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1603 + }, + "name": "ClassThatImplementsThePrivateInterface", + "properties": [ { "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 152 + "line": 1604 }, - "name": "arrayProperty", + "name": "a", + "overrides": "jsii-calc.IAnotherPublicInterface", "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" - } + "primitive": "string" } }, { @@ -1738,11 +1913,12 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 58 + "line": 1605 }, - "name": "booleanProperty", + "name": "b", + "overrides": "jsii-calc.INonInternalInterface", "type": { - "primitive": "boolean" + "primitive": "string" } }, { @@ -1751,11 +1927,12 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 104 + "line": 1606 }, - "name": "dateProperty", + "name": "c", + "overrides": "jsii-calc.INonInternalInterface", "type": { - "primitive": "date" + "primitive": "string" } }, { @@ -1764,56 +1941,76 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 187 + "line": 1607 }, - "name": "enumProperty", + "name": "e", "type": { - "fqn": "jsii-calc.compliance.AllTypesEnum" + "primitive": "string" } + } + ] + }, + "jsii-calc.ClassWithCollections": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.ClassWithCollections", + "initializer": { + "docs": { + "stability": "experimental" }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 121 + "parameters": [ + { + "name": "map", + "type": { + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "map" + } + } }, - "name": "jsonProperty", - "type": { - "primitive": "json" + { + "name": "array", + "type": { + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "array" + } + } } - }, + ] + }, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1883 + }, + "methods": [ { "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 137 + "line": 1895 }, - "name": "mapProperty", - "type": { - "collection": { - "elementtype": { - "fqn": "@scope/jsii-calc-lib.Number" - }, - "kind": "map" + "name": "createAList", + "returns": { + "type": { + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "array" + } } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 89 }, - "name": "numberProperty", - "type": { - "primitive": "number" - } + "static": true }, { "docs": { @@ -1821,35 +2018,38 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 73 + "line": 1899 }, - "name": "stringProperty", - "type": { - "primitive": "string" - } - }, + "name": "createAMap", + "returns": { + "type": { + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "map" + } + } + }, + "static": true + } + ], + "name": "ClassWithCollections", + "properties": [ { "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 179 + "line": 1888 }, - "name": "unionArrayProperty", + "name": "staticArray", + "static": true, "type": { "collection": { "elementtype": { - "union": { - "types": [ - { - "primitive": "number" - }, - { - "fqn": "@scope/jsii-calc-lib.Value" - } - ] - } + "primitive": "string" }, "kind": "array" } @@ -1861,25 +2061,14 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 180 + "line": 1887 }, - "name": "unionMapProperty", + "name": "staticMap", + "static": true, "type": { "collection": { "elementtype": { - "union": { - "types": [ - { - "primitive": "string" - }, - { - "primitive": "number" - }, - { - "fqn": "@scope/jsii-calc-lib.Number" - } - ] - } + "primitive": "string" }, "kind": "map" } @@ -1891,41 +2080,13 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 178 - }, - "name": "unionProperty", - "type": { - "union": { - "types": [ - { - "primitive": "string" - }, - { - "primitive": "number" - }, - { - "fqn": "jsii-calc.Multiply" - }, - { - "fqn": "@scope/jsii-calc-lib.Number" - } - ] - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 173 + "line": 1885 }, - "name": "unknownArrayProperty", + "name": "array", "type": { "collection": { "elementtype": { - "primitive": "any" + "primitive": "string" }, "kind": "array" } @@ -1937,92 +2098,151 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 174 + "line": 1884 }, - "name": "unknownMapProperty", + "name": "map", "type": { "collection": { "elementtype": { - "primitive": "any" + "primitive": "string" }, "kind": "map" } } + } + ] + }, + "jsii-calc.ClassWithDocs": { + "assembly": "jsii-calc", + "docs": { + "custom": { + "customAttribute": "hasAValue" + }, + "example": "function anExample() {\n}", + "remarks": "The docs are great. They're a bunch of tags.", + "see": "https://aws.amazon.com/", + "stability": "stable", + "summary": "This class has docs." + }, + "fqn": "jsii-calc.ClassWithDocs", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1669 + }, + "name": "ClassWithDocs" + }, + "jsii-calc.ClassWithJavaReservedWords": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.ClassWithJavaReservedWords", + "initializer": { + "docs": { + "stability": "experimental" }, + "parameters": [ + { + "name": "int", + "type": { + "primitive": "string" + } + } + ] + }, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1836 + }, + "methods": [ { "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 172 + "line": 1843 }, - "name": "unknownProperty", - "type": { - "primitive": "any" + "name": "import", + "parameters": [ + { + "name": "assert", + "type": { + "primitive": "string" + } + } + ], + "returns": { + "type": { + "primitive": "string" + } } - }, + } + ], + "name": "ClassWithJavaReservedWords", + "properties": [ { "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 184 + "line": 1837 }, - "name": "optionalEnumValue", - "optional": true, + "name": "int", "type": { - "fqn": "jsii-calc.compliance.StringEnum" + "primitive": "string" } } ] }, - "jsii-calc.compliance.AllTypesEnum": { + "jsii-calc.ClassWithMutableObjectLiteralProperty": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.AllTypesEnum", - "kind": "enum", + "fqn": "jsii-calc.ClassWithMutableObjectLiteralProperty", + "initializer": {}, + "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 22 + "line": 1142 }, - "members": [ - { - "docs": { - "stability": "experimental" - }, - "name": "MY_ENUM_VALUE" - }, + "name": "ClassWithMutableObjectLiteralProperty", + "properties": [ { "docs": { "stability": "experimental" }, - "name": "YOUR_ENUM_VALUE" - }, - { - "docs": { - "stability": "experimental" + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1143 }, - "name": "THIS_IS_GREAT" + "name": "mutableObject", + "type": { + "fqn": "jsii-calc.IMutableObjectLiteral" + } } - ], - "name": "AllTypesEnum", - "namespace": "compliance" + ] }, - "jsii-calc.compliance.AllowedMethodNames": { + "jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties": { "assembly": "jsii-calc", "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Class that implements interface properties automatically, but using a private constructor." }, - "fqn": "jsii-calc.compliance.AllowedMethodNames", - "initializer": {}, + "fqn": "jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties", + "interfaces": [ + "jsii-calc.IInterfaceWithProperties" + ], "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 606 + "line": 1169 }, "methods": [ { @@ -2031,37 +2251,18 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 615 + "line": 1170 }, - "name": "getBar", + "name": "create", "parameters": [ { - "name": "_p1", + "name": "readOnlyString", "type": { "primitive": "string" } }, { - "name": "_p2", - "type": { - "primitive": "number" - } - } - ] - }, - { - "docs": { - "stability": "experimental", - "summary": "getXxx() is not allowed (see negatives), but getXxx(a, ...) is okay." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 611 - }, - "name": "getFoo", - "parameters": [ - { - "name": "withParam", + "name": "readWriteString", "type": { "primitive": "string" } @@ -2069,101 +2270,13 @@ ], "returns": { "type": { - "primitive": "string" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 626 - }, - "name": "setBar", - "parameters": [ - { - "name": "_x", - "type": { - "primitive": "string" - } - }, - { - "name": "_y", - "type": { - "primitive": "number" - } - }, - { - "name": "_z", - "type": { - "primitive": "boolean" - } + "fqn": "jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties" } - ] - }, - { - "docs": { - "stability": "experimental", - "summary": "setFoo(x) is not allowed (see negatives), but setXxx(a, b, ...) is okay." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 622 }, - "name": "setFoo", - "parameters": [ - { - "name": "_x", - "type": { - "primitive": "string" - } - }, - { - "name": "_y", - "type": { - "primitive": "number" - } - } - ] + "static": true } ], - "name": "AllowedMethodNames", - "namespace": "compliance" - }, - "jsii-calc.compliance.AmbiguousParameters": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.compliance.AmbiguousParameters", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "scope", - "type": { - "fqn": "jsii-calc.compliance.Bell" - } - }, - { - "name": "props", - "type": { - "fqn": "jsii-calc.compliance.StructParameterType" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2425 - }, - "name": "AmbiguousParameters", - "namespace": "compliance", + "name": "ClassWithPrivateConstructorAndAutomaticProperties", "properties": [ { "docs": { @@ -2172,43 +2285,42 @@ "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2426 + "line": 1174 }, - "name": "props", + "name": "readOnlyString", + "overrides": "jsii-calc.IInterfaceWithProperties", "type": { - "fqn": "jsii-calc.compliance.StructParameterType" + "primitive": "string" } }, { "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2426 + "line": 1174 }, - "name": "scope", + "name": "readWriteString", + "overrides": "jsii-calc.IInterfaceWithProperties", "type": { - "fqn": "jsii-calc.compliance.Bell" + "primitive": "string" } } ] }, - "jsii-calc.compliance.AnonymousImplementationProvider": { + "jsii-calc.ConfusingToJackson": { "assembly": "jsii-calc", "docs": { - "stability": "experimental" + "see": "https://github.com/aws/aws-cdk/issues/4080", + "stability": "experimental", + "summary": "This tries to confuse Jackson by having overloaded property setters." }, - "fqn": "jsii-calc.compliance.AnonymousImplementationProvider", - "initializer": {}, - "interfaces": [ - "jsii-calc.compliance.IAnonymousImplementationProvider" - ], + "fqn": "jsii-calc.ConfusingToJackson", "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1976 + "line": 2383 }, "methods": [ { @@ -2217,15 +2329,15 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1979 + "line": 2384 }, - "name": "provideAsClass", - "overrides": "jsii-calc.compliance.IAnonymousImplementationProvider", + "name": "makeInstance", "returns": { "type": { - "fqn": "jsii-calc.compliance.Implementation" + "fqn": "jsii-calc.ConfusingToJackson" } - } + }, + "static": true }, { "docs": { @@ -2233,83 +2345,167 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1983 + "line": 2388 }, - "name": "provideAsInterface", - "overrides": "jsii-calc.compliance.IAnonymousImplementationProvider", + "name": "makeStructInstance", "returns": { "type": { - "fqn": "jsii-calc.compliance.IAnonymouslyImplementMe" + "fqn": "jsii-calc.ConfusingToJacksonStruct" } - } + }, + "static": true } ], - "name": "AnonymousImplementationProvider", - "namespace": "compliance" - }, - "jsii-calc.compliance.AsyncVirtualMethods": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.compliance.AsyncVirtualMethods", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 321 - }, - "methods": [ + "name": "ConfusingToJackson", + "properties": [ { - "async": true, "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 322 + "line": 2392 }, - "name": "callMe", - "returns": { - "type": { - "primitive": "number" + "name": "unionProperty", + "optional": true, + "type": { + "union": { + "types": [ + { + "fqn": "@scope/jsii-calc-lib.IFriendly" + }, + { + "collection": { + "elementtype": { + "union": { + "types": [ + { + "fqn": "@scope/jsii-calc-lib.IFriendly" + }, + { + "fqn": "jsii-calc.AbstractClass" + } + ] + } + }, + "kind": "array" + } + } + ] } } - }, + } + ] + }, + "jsii-calc.ConfusingToJacksonStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.ConfusingToJacksonStruct", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2396 + }, + "name": "ConfusingToJacksonStruct", + "properties": [ { - "async": true, + "abstract": true, "docs": { - "stability": "experimental", - "summary": "Just calls \"overrideMeToo\"." + "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 337 + "line": 2397 }, - "name": "callMe2", - "returns": { - "type": { - "primitive": "number" + "name": "unionProperty", + "optional": true, + "type": { + "union": { + "types": [ + { + "fqn": "@scope/jsii-calc-lib.IFriendly" + }, + { + "collection": { + "elementtype": { + "union": { + "types": [ + { + "fqn": "@scope/jsii-calc-lib.IFriendly" + }, + { + "fqn": "jsii-calc.AbstractClass" + } + ] + } + }, + "kind": "array" + } + } + ] } } + } + ] + }, + "jsii-calc.ConstructorPassesThisOut": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.ConstructorPassesThisOut", + "initializer": { + "docs": { + "stability": "experimental" }, + "parameters": [ + { + "name": "consumer", + "type": { + "fqn": "jsii-calc.PartiallyInitializedThisConsumer" + } + } + ] + }, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1628 + }, + "name": "ConstructorPassesThisOut" + }, + "jsii-calc.Constructors": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.Constructors", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1393 + }, + "methods": [ { - "async": true, "docs": { - "remarks": "This is a \"double promise\" situation, which\nmeans that callbacks are not going to be available immediate, but only\nafter an \"immediates\" cycle.", - "stability": "experimental", - "summary": "This method calls the \"callMe\" async method indirectly, which will then invoke a virtual method." + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 347 + "line": 1410 }, - "name": "callMeDoublePromise", + "name": "hiddenInterface", "returns": { "type": { - "primitive": "number" + "fqn": "jsii-calc.IPublicInterface" } - } + }, + "static": true }, { "docs": { @@ -2317,81 +2513,57 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 355 + "line": 1414 }, - "name": "dontOverrideMe", + "name": "hiddenInterfaces", "returns": { "type": { - "primitive": "number" + "collection": { + "elementtype": { + "fqn": "jsii-calc.IPublicInterface" + }, + "kind": "array" + } } - } + }, + "static": true }, { - "async": true, "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 326 + "line": 1418 }, - "name": "overrideMe", - "parameters": [ - { - "name": "mult", - "type": { - "primitive": "number" - } - } - ], + "name": "hiddenSubInterfaces", "returns": { "type": { - "primitive": "number" + "collection": { + "elementtype": { + "fqn": "jsii-calc.IPublicInterface" + }, + "kind": "array" + } } - } + }, + "static": true }, { - "async": true, "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 330 + "line": 1394 }, - "name": "overrideMeToo", + "name": "makeClass", "returns": { "type": { - "primitive": "number" + "fqn": "jsii-calc.PublicClass" } - } - } - ], - "name": "AsyncVirtualMethods", - "namespace": "compliance" - }, - "jsii-calc.compliance.AugmentableClass": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.compliance.AugmentableClass", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1354 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1355 }, - "name": "methodOne" + "static": true }, { "docs": { @@ -2399,299 +2571,332 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1361 + "line": 1398 }, - "name": "methodTwo" - } - ], - "name": "AugmentableClass", - "namespace": "compliance" - }, - "jsii-calc.compliance.BaseJsii976": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.compliance.BaseJsii976", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2219 - }, - "name": "BaseJsii976", - "namespace": "compliance" - }, - "jsii-calc.compliance.Bell": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.compliance.Bell", - "initializer": {}, - "interfaces": [ - "jsii-calc.compliance.IBell" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2163 - }, - "methods": [ + "name": "makeInterface", + "returns": { + "type": { + "fqn": "jsii-calc.IPublicInterface" + } + }, + "static": true + }, { "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2166 + "line": 1402 }, - "name": "ring", - "overrides": "jsii-calc.compliance.IBell" - } - ], - "name": "Bell", - "namespace": "compliance", - "properties": [ + "name": "makeInterface2", + "returns": { + "type": { + "fqn": "jsii-calc.IPublicInterface2" + } + }, + "static": true + }, { "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2164 + "line": 1406 }, - "name": "rung", - "type": { - "primitive": "boolean" - } + "name": "makeInterfaces", + "returns": { + "type": { + "collection": { + "elementtype": { + "fqn": "jsii-calc.IPublicInterface" + }, + "kind": "array" + } + } + }, + "static": true } - ] + ], + "name": "Constructors" }, - "jsii-calc.compliance.ChildStruct982": { + "jsii-calc.ConsumePureInterface": { "assembly": "jsii-calc", - "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.ChildStruct982", - "interfaces": [ - "jsii-calc.compliance.ParentStruct982" - ], - "kind": "interface", + "fqn": "jsii-calc.ConsumePureInterface", + "initializer": { + "docs": { + "stability": "experimental" + }, + "parameters": [ + { + "name": "delegate", + "type": { + "fqn": "jsii-calc.IStructReturningDelegate" + } + } + ] + }, + "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2244 + "line": 2406 }, - "name": "ChildStruct982", - "namespace": "compliance", - "properties": [ + "methods": [ { - "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2245 + "line": 2409 }, - "name": "bar", - "type": { - "primitive": "number" + "name": "workItBaby", + "returns": { + "type": { + "fqn": "jsii-calc.StructB" + } } } - ] + ], + "name": "ConsumePureInterface" }, - "jsii-calc.compliance.ClassThatImplementsTheInternalInterface": { + "jsii-calc.ConsumerCanRingBell": { "assembly": "jsii-calc", "docs": { - "stability": "experimental" + "remarks": "Check that if a JSII consumer implements IConsumerWithInterfaceParam, they can call\nthe method on the argument that they're passed...", + "stability": "experimental", + "summary": "Test calling back to consumers that implement interfaces." }, - "fqn": "jsii-calc.compliance.ClassThatImplementsTheInternalInterface", + "fqn": "jsii-calc.ConsumerCanRingBell", "initializer": {}, - "interfaces": [ - "jsii-calc.compliance.INonInternalInterface" - ], "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1596 + "line": 2048 }, - "name": "ClassThatImplementsTheInternalInterface", - "namespace": "compliance", - "properties": [ + "methods": [ { "docs": { - "stability": "experimental" - }, + "remarks": "Returns whether the bell was rung.", + "stability": "experimental", + "summary": "...if the interface is implemented using an object literal." + }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1597 + "line": 2054 }, - "name": "a", - "overrides": "jsii-calc.compliance.IAnotherPublicInterface", - "type": { - "primitive": "string" - } + "name": "staticImplementedByObjectLiteral", + "parameters": [ + { + "name": "ringer", + "type": { + "fqn": "jsii-calc.IBellRinger" + } + } + ], + "returns": { + "type": { + "primitive": "boolean" + } + }, + "static": true }, { "docs": { - "stability": "experimental" + "remarks": "Return whether the bell was rung.", + "stability": "experimental", + "summary": "...if the interface is implemented using a private class." }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1598 + "line": 2080 }, - "name": "b", - "overrides": "jsii-calc.compliance.INonInternalInterface", - "type": { - "primitive": "string" - } + "name": "staticImplementedByPrivateClass", + "parameters": [ + { + "name": "ringer", + "type": { + "fqn": "jsii-calc.IBellRinger" + } + } + ], + "returns": { + "type": { + "primitive": "boolean" + } + }, + "static": true }, { "docs": { - "stability": "experimental" + "remarks": "Return whether the bell was rung.", + "stability": "experimental", + "summary": "...if the interface is implemented using a public class." }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1599 + "line": 2069 }, - "name": "c", - "overrides": "jsii-calc.compliance.INonInternalInterface", - "type": { - "primitive": "string" - } + "name": "staticImplementedByPublicClass", + "parameters": [ + { + "name": "ringer", + "type": { + "fqn": "jsii-calc.IBellRinger" + } + } + ], + "returns": { + "type": { + "primitive": "boolean" + } + }, + "static": true }, { "docs": { - "stability": "experimental" + "remarks": "Return whether the bell was rung.", + "stability": "experimental", + "summary": "If the parameter is a concrete class instead of an interface." }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1600 + "line": 2091 }, - "name": "d", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.compliance.ClassThatImplementsThePrivateInterface": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.compliance.ClassThatImplementsThePrivateInterface", - "initializer": {}, - "interfaces": [ - "jsii-calc.compliance.INonInternalInterface" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1603 - }, - "name": "ClassThatImplementsThePrivateInterface", - "namespace": "compliance", - "properties": [ + "name": "staticWhenTypedAsClass", + "parameters": [ + { + "name": "ringer", + "type": { + "fqn": "jsii-calc.IConcreteBellRinger" + } + } + ], + "returns": { + "type": { + "primitive": "boolean" + } + }, + "static": true + }, { "docs": { - "stability": "experimental" + "remarks": "Returns whether the bell was rung.", + "stability": "experimental", + "summary": "...if the interface is implemented using an object literal." }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1604 + "line": 2101 }, - "name": "a", - "overrides": "jsii-calc.compliance.IAnotherPublicInterface", - "type": { - "primitive": "string" + "name": "implementedByObjectLiteral", + "parameters": [ + { + "name": "ringer", + "type": { + "fqn": "jsii-calc.IBellRinger" + } + } + ], + "returns": { + "type": { + "primitive": "boolean" + } } }, { "docs": { - "stability": "experimental" + "remarks": "Return whether the bell was rung.", + "stability": "experimental", + "summary": "...if the interface is implemented using a private class." }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1605 + "line": 2127 }, - "name": "b", - "overrides": "jsii-calc.compliance.INonInternalInterface", - "type": { - "primitive": "string" + "name": "implementedByPrivateClass", + "parameters": [ + { + "name": "ringer", + "type": { + "fqn": "jsii-calc.IBellRinger" + } + } + ], + "returns": { + "type": { + "primitive": "boolean" + } } }, { "docs": { - "stability": "experimental" + "remarks": "Return whether the bell was rung.", + "stability": "experimental", + "summary": "...if the interface is implemented using a public class." }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1606 + "line": 2116 }, - "name": "c", - "overrides": "jsii-calc.compliance.INonInternalInterface", - "type": { - "primitive": "string" + "name": "implementedByPublicClass", + "parameters": [ + { + "name": "ringer", + "type": { + "fqn": "jsii-calc.IBellRinger" + } + } + ], + "returns": { + "type": { + "primitive": "boolean" + } } }, { "docs": { - "stability": "experimental" + "remarks": "Return whether the bell was rung.", + "stability": "experimental", + "summary": "If the parameter is a concrete class instead of an interface." }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1607 + "line": 2138 }, - "name": "e", - "type": { - "primitive": "string" + "name": "whenTypedAsClass", + "parameters": [ + { + "name": "ringer", + "type": { + "fqn": "jsii-calc.IConcreteBellRinger" + } + } + ], + "returns": { + "type": { + "primitive": "boolean" + } } } - ] + ], + "name": "ConsumerCanRingBell" }, - "jsii-calc.compliance.ClassWithCollections": { + "jsii-calc.ConsumersOfThisCrazyTypeSystem": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.ClassWithCollections", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "map", - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "map" - } - } - }, - { - "name": "array", - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" - } - } - } - ] - }, + "fqn": "jsii-calc.ConsumersOfThisCrazyTypeSystem", + "initializer": {}, "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1883 + "line": 1610 }, "methods": [ { @@ -2700,20 +2905,22 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1895 + "line": 1611 }, - "name": "createAList", + "name": "consumeAnotherPublicInterface", + "parameters": [ + { + "name": "obj", + "type": { + "fqn": "jsii-calc.IAnotherPublicInterface" + } + } + ], "returns": { "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" - } + "primitive": "string" } - }, - "static": true + } }, { "docs": { @@ -2721,60 +2928,65 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1899 + "line": 1615 }, - "name": "createAMap", + "name": "consumeNonInternalInterface", + "parameters": [ + { + "name": "obj", + "type": { + "fqn": "jsii-calc.INonInternalInterface" + } + } + ], "returns": { "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "map" - } + "primitive": "any" } - }, - "static": true + } } ], - "name": "ClassWithCollections", - "namespace": "compliance", - "properties": [ + "name": "ConsumersOfThisCrazyTypeSystem" + }, + "jsii-calc.DataRenderer": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Verifies proper type handling through dynamic overrides." + }, + "fqn": "jsii-calc.DataRenderer", + "initializer": { + "docs": { + "stability": "experimental" + } + }, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1766 + }, + "methods": [ { "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1888 + "line": 1769 }, - "name": "staticArray", - "static": true, - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" + "name": "render", + "parameters": [ + { + "name": "data", + "optional": true, + "type": { + "fqn": "@scope/jsii-calc-lib.MyFirstStruct" + } } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1887 - }, - "name": "staticMap", - "static": true, - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "map" + ], + "returns": { + "type": { + "primitive": "string" } } }, @@ -2784,15 +2996,25 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1885 + "line": 1773 }, - "name": "array", - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" + "name": "renderArbitrary", + "parameters": [ + { + "name": "data", + "type": { + "collection": { + "elementtype": { + "primitive": "any" + }, + "kind": "map" + } + } + } + ], + "returns": { + "type": { + "primitive": "string" } } }, @@ -2802,94 +3024,86 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1884 + "line": 1777 }, - "name": "map", - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "map" + "name": "renderMap", + "parameters": [ + { + "name": "map", + "type": { + "collection": { + "elementtype": { + "primitive": "any" + }, + "kind": "map" + } + } + } + ], + "returns": { + "type": { + "primitive": "string" } } } - ] - }, - "jsii-calc.compliance.ClassWithDocs": { - "assembly": "jsii-calc", - "docs": { - "custom": { - "customAttribute": "hasAValue" - }, - "example": "function anExample() {\n}", - "remarks": "The docs are great. They're a bunch of tags.", - "see": "https://aws.amazon.com/", - "stability": "stable", - "summary": "This class has docs." - }, - "fqn": "jsii-calc.compliance.ClassWithDocs", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1669 - }, - "name": "ClassWithDocs", - "namespace": "compliance" + ], + "name": "DataRenderer" }, - "jsii-calc.compliance.ClassWithJavaReservedWords": { + "jsii-calc.DefaultedConstructorArgument": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.ClassWithJavaReservedWords", + "fqn": "jsii-calc.DefaultedConstructorArgument", "initializer": { "docs": { "stability": "experimental" }, "parameters": [ { - "name": "int", + "name": "arg1", + "optional": true, + "type": { + "primitive": "number" + } + }, + { + "name": "arg2", + "optional": true, "type": { "primitive": "string" } + }, + { + "name": "arg3", + "optional": true, + "type": { + "primitive": "date" + } } ] }, "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1836 + "line": 302 }, - "methods": [ + "name": "DefaultedConstructorArgument", + "properties": [ { "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1843 + "line": 303 }, - "name": "import", - "parameters": [ - { - "name": "assert", - "type": { - "primitive": "string" - } - } - ], - "returns": { - "type": { - "primitive": "string" - } + "name": "arg1", + "type": { + "primitive": "number" } - } - ], - "name": "ClassWithJavaReservedWords", - "namespace": "compliance", - "properties": [ + }, { "docs": { "stability": "experimental" @@ -2897,720 +3111,675 @@ "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1837 + "line": 305 }, - "name": "int", + "name": "arg3", "type": { - "primitive": "string" + "primitive": "date" } - } - ] - }, - "jsii-calc.compliance.ClassWithMutableObjectLiteralProperty": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.compliance.ClassWithMutableObjectLiteralProperty", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1142 - }, - "name": "ClassWithMutableObjectLiteralProperty", - "namespace": "compliance", - "properties": [ + }, { "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1143 + "line": 304 }, - "name": "mutableObject", + "name": "arg2", + "optional": true, "type": { - "fqn": "jsii-calc.compliance.IMutableObjectLiteral" + "primitive": "string" } } ] }, - "jsii-calc.compliance.ClassWithPrivateConstructorAndAutomaticProperties": { + "jsii-calc.Demonstrate982": { "assembly": "jsii-calc", "docs": { + "remarks": "call #takeThis() -> An ObjectRef will be provisioned for the value (it'll be re-used!)\n2. call #takeThisToo() -> The ObjectRef from before will need to be down-cased to the ParentStruct982 type", "stability": "experimental", - "summary": "Class that implements interface properties automatically, but using a private constructor." + "summary": "1." + }, + "fqn": "jsii-calc.Demonstrate982", + "initializer": { + "docs": { + "stability": "experimental" + } }, - "fqn": "jsii-calc.compliance.ClassWithPrivateConstructorAndAutomaticProperties", - "interfaces": [ - "jsii-calc.compliance.IInterfaceWithProperties" - ], "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1169 + "line": 2251 }, "methods": [ { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "It's dangerous to go alone!" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1170 + "line": 2258 }, - "name": "create", - "parameters": [ - { - "name": "readOnlyString", - "type": { - "primitive": "string" - } - }, - { - "name": "readWriteString", - "type": { - "primitive": "string" - } - } - ], + "name": "takeThis", + "returns": { + "type": { + "fqn": "jsii-calc.ChildStruct982" + } + }, + "static": true + }, + { + "docs": { + "stability": "experimental", + "summary": "It's dangerous to go alone!" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2263 + }, + "name": "takeThisToo", "returns": { "type": { - "fqn": "jsii-calc.compliance.ClassWithPrivateConstructorAndAutomaticProperties" + "fqn": "jsii-calc.ParentStruct982" } }, "static": true } ], - "name": "ClassWithPrivateConstructorAndAutomaticProperties", - "namespace": "compliance", + "name": "Demonstrate982" + }, + "jsii-calc.DeprecatedClass": { + "assembly": "jsii-calc", + "docs": { + "deprecated": "a pretty boring class", + "stability": "deprecated" + }, + "fqn": "jsii-calc.DeprecatedClass", + "initializer": { + "docs": { + "deprecated": "this constructor is \"just\" okay", + "stability": "deprecated" + }, + "parameters": [ + { + "name": "readonlyString", + "type": { + "primitive": "string" + } + }, + { + "name": "mutableNumber", + "optional": true, + "type": { + "primitive": "number" + } + } + ] + }, + "kind": "class", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 85 + }, + "methods": [ + { + "docs": { + "deprecated": "it was a bad idea", + "stability": "deprecated" + }, + "locationInModule": { + "filename": "lib/stability.ts", + "line": 96 + }, + "name": "method" + } + ], + "name": "DeprecatedClass", "properties": [ { "docs": { - "stability": "experimental" + "deprecated": "this is not always \"wazoo\", be ready to be disappointed", + "stability": "deprecated" }, "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1174 + "filename": "lib/stability.ts", + "line": 87 }, - "name": "readOnlyString", - "overrides": "jsii-calc.compliance.IInterfaceWithProperties", + "name": "readonlyProperty", "type": { "primitive": "string" } }, { "docs": { - "stability": "experimental" + "deprecated": "shouldn't have been mutable", + "stability": "deprecated" }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1174 + "filename": "lib/stability.ts", + "line": 89 }, - "name": "readWriteString", - "overrides": "jsii-calc.compliance.IInterfaceWithProperties", + "name": "mutableProperty", + "optional": true, "type": { - "primitive": "string" + "primitive": "number" } } ] }, - "jsii-calc.compliance.ConfusingToJackson": { + "jsii-calc.DeprecatedEnum": { "assembly": "jsii-calc", "docs": { - "see": "https://github.com/aws/aws-cdk/issues/4080", - "stability": "experimental", - "summary": "This tries to confuse Jackson by having overloaded property setters." + "deprecated": "your deprecated selection of bad options", + "stability": "deprecated" }, - "fqn": "jsii-calc.compliance.ConfusingToJackson", - "kind": "class", + "fqn": "jsii-calc.DeprecatedEnum", + "kind": "enum", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2383 + "filename": "lib/stability.ts", + "line": 99 }, - "methods": [ + "members": [ { "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2384 - }, - "name": "makeInstance", - "returns": { - "type": { - "fqn": "jsii-calc.compliance.ConfusingToJackson" - } + "deprecated": "option A is not great", + "stability": "deprecated" }, - "static": true + "name": "OPTION_A" }, { "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2388 - }, - "name": "makeStructInstance", - "returns": { - "type": { - "fqn": "jsii-calc.compliance.ConfusingToJacksonStruct" - } + "deprecated": "option B is kinda bad, too", + "stability": "deprecated" }, - "static": true + "name": "OPTION_B" } ], - "name": "ConfusingToJackson", - "namespace": "compliance", + "name": "DeprecatedEnum" + }, + "jsii-calc.DeprecatedStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "deprecated": "it just wraps a string", + "stability": "deprecated" + }, + "fqn": "jsii-calc.DeprecatedStruct", + "kind": "interface", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 73 + }, + "name": "DeprecatedStruct", "properties": [ { + "abstract": true, "docs": { - "stability": "experimental" + "deprecated": "well, yeah", + "stability": "deprecated" }, + "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2392 + "filename": "lib/stability.ts", + "line": 75 }, - "name": "unionProperty", - "optional": true, + "name": "readonlyProperty", "type": { - "union": { - "types": [ - { - "fqn": "@scope/jsii-calc-lib.IFriendly" - }, - { - "collection": { - "elementtype": { - "union": { - "types": [ - { - "fqn": "jsii-calc.compliance.AbstractClass" - }, - { - "fqn": "@scope/jsii-calc-lib.IFriendly" - } - ] - } - }, - "kind": "array" - } - } - ] - } + "primitive": "string" } } ] }, - "jsii-calc.compliance.ConfusingToJacksonStruct": { + "jsii-calc.DerivedClassHasNoProperties.Base": { "assembly": "jsii-calc", - "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.ConfusingToJacksonStruct", - "kind": "interface", + "fqn": "jsii-calc.DerivedClassHasNoProperties.Base", + "initializer": {}, + "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2396 + "line": 311 }, - "name": "ConfusingToJacksonStruct", - "namespace": "compliance", + "name": "Base", + "namespace": "DerivedClassHasNoProperties", "properties": [ { - "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2397 + "line": 312 }, - "name": "unionProperty", - "optional": true, + "name": "prop", "type": { - "union": { - "types": [ - { - "fqn": "@scope/jsii-calc-lib.IFriendly" - }, - { - "collection": { - "elementtype": { - "union": { - "types": [ - { - "fqn": "jsii-calc.compliance.AbstractClass" - }, - { - "fqn": "@scope/jsii-calc-lib.IFriendly" - } - ] - } - }, - "kind": "array" - } - } - ] - } + "primitive": "string" } } ] }, - "jsii-calc.compliance.ConstructorPassesThisOut": { + "jsii-calc.DerivedClassHasNoProperties.Derived": { "assembly": "jsii-calc", + "base": "jsii-calc.DerivedClassHasNoProperties.Base", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.ConstructorPassesThisOut", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "consumer", - "type": { - "fqn": "jsii-calc.compliance.PartiallyInitializedThisConsumer" - } - } - ] - }, + "fqn": "jsii-calc.DerivedClassHasNoProperties.Derived", + "initializer": {}, "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1628 + "line": 315 }, - "name": "ConstructorPassesThisOut", - "namespace": "compliance" + "name": "Derived", + "namespace": "DerivedClassHasNoProperties" }, - "jsii-calc.compliance.Constructors": { + "jsii-calc.DerivedStruct": { "assembly": "jsii-calc", + "datatype": true, "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "A struct which derives from another struct." }, - "fqn": "jsii-calc.compliance.Constructors", - "initializer": {}, - "kind": "class", + "fqn": "jsii-calc.DerivedStruct", + "interfaces": [ + "@scope/jsii-calc-lib.MyFirstStruct" + ], + "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1393 + "line": 533 }, - "methods": [ + "name": "DerivedStruct", + "properties": [ { + "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1410 - }, - "name": "hiddenInterface", - "returns": { - "type": { - "fqn": "jsii-calc.compliance.IPublicInterface" - } + "line": 539 }, - "static": true + "name": "anotherRequired", + "type": { + "primitive": "date" + } }, { + "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1414 - }, - "name": "hiddenInterfaces", - "returns": { - "type": { - "collection": { - "elementtype": { - "fqn": "jsii-calc.compliance.IPublicInterface" - }, - "kind": "array" - } - } + "line": 538 }, - "static": true + "name": "bool", + "type": { + "primitive": "boolean" + } }, { + "abstract": true, "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "An example of a non primitive property." }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1418 - }, - "name": "hiddenSubInterfaces", - "returns": { - "type": { - "collection": { - "elementtype": { - "fqn": "jsii-calc.compliance.IPublicInterface" - }, - "kind": "array" - } - } + "line": 537 }, - "static": true + "name": "nonPrimitive", + "type": { + "fqn": "jsii-calc.DoubleTrouble" + } }, { + "abstract": true, "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "This is optional." }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1394 + "line": 545 }, - "name": "makeClass", - "returns": { - "type": { - "fqn": "jsii-calc.compliance.PublicClass" + "name": "anotherOptional", + "optional": true, + "type": { + "collection": { + "elementtype": { + "fqn": "@scope/jsii-calc-lib.Value" + }, + "kind": "map" } - }, - "static": true + } }, { + "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1398 - }, - "name": "makeInterface", - "returns": { - "type": { - "fqn": "jsii-calc.compliance.IPublicInterface" - } + "line": 541 }, - "static": true + "name": "optionalAny", + "optional": true, + "type": { + "primitive": "any" + } }, { + "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1402 + "line": 540 }, - "name": "makeInterface2", - "returns": { - "type": { - "fqn": "jsii-calc.compliance.IPublicInterface2" + "name": "optionalArray", + "optional": true, + "type": { + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "array" } - }, - "static": true - }, + } + } + ] + }, + "jsii-calc.DiamondInheritanceBaseLevelStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.DiamondInheritanceBaseLevelStruct", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1811 + }, + "name": "DiamondInheritanceBaseLevelStruct", + "properties": [ { + "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1406 - }, - "name": "makeInterfaces", - "returns": { - "type": { - "collection": { - "elementtype": { - "fqn": "jsii-calc.compliance.IPublicInterface" - }, - "kind": "array" - } - } + "line": 1812 }, - "static": true + "name": "baseLevelProperty", + "type": { + "primitive": "string" + } } - ], - "name": "Constructors", - "namespace": "compliance" + ] }, - "jsii-calc.compliance.ConsumePureInterface": { + "jsii-calc.DiamondInheritanceFirstMidLevelStruct": { "assembly": "jsii-calc", + "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.ConsumePureInterface", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "delegate", - "type": { - "fqn": "jsii-calc.compliance.IStructReturningDelegate" - } - } - ] - }, - "kind": "class", + "fqn": "jsii-calc.DiamondInheritanceFirstMidLevelStruct", + "interfaces": [ + "jsii-calc.DiamondInheritanceBaseLevelStruct" + ], + "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2406 + "line": 1815 }, - "methods": [ + "name": "DiamondInheritanceFirstMidLevelStruct", + "properties": [ { + "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2409 + "line": 1816 }, - "name": "workItBaby", - "returns": { - "type": { - "fqn": "jsii-calc.compliance.StructB" - } + "name": "firstMidLevelProperty", + "type": { + "primitive": "string" } } - ], - "name": "ConsumePureInterface", - "namespace": "compliance" + ] }, - "jsii-calc.compliance.ConsumerCanRingBell": { + "jsii-calc.DiamondInheritanceSecondMidLevelStruct": { "assembly": "jsii-calc", + "datatype": true, "docs": { - "remarks": "Check that if a JSII consumer implements IConsumerWithInterfaceParam, they can call\nthe method on the argument that they're passed...", - "stability": "experimental", - "summary": "Test calling back to consumers that implement interfaces." + "stability": "experimental" }, - "fqn": "jsii-calc.compliance.ConsumerCanRingBell", - "initializer": {}, - "kind": "class", + "fqn": "jsii-calc.DiamondInheritanceSecondMidLevelStruct", + "interfaces": [ + "jsii-calc.DiamondInheritanceBaseLevelStruct" + ], + "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2048 + "line": 1819 }, - "methods": [ + "name": "DiamondInheritanceSecondMidLevelStruct", + "properties": [ { + "abstract": true, "docs": { - "remarks": "Returns whether the bell was rung.", - "stability": "experimental", - "summary": "...if the interface is implemented using an object literal." + "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2054 - }, - "name": "staticImplementedByObjectLiteral", - "parameters": [ - { - "name": "ringer", - "type": { - "fqn": "jsii-calc.compliance.IBellRinger" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } + "line": 1820 }, - "static": true - }, + "name": "secondMidLevelProperty", + "type": { + "primitive": "string" + } + } + ] + }, + "jsii-calc.DiamondInheritanceTopLevelStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.DiamondInheritanceTopLevelStruct", + "interfaces": [ + "jsii-calc.DiamondInheritanceFirstMidLevelStruct", + "jsii-calc.DiamondInheritanceSecondMidLevelStruct" + ], + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1823 + }, + "name": "DiamondInheritanceTopLevelStruct", + "properties": [ { + "abstract": true, "docs": { - "remarks": "Return whether the bell was rung.", - "stability": "experimental", - "summary": "...if the interface is implemented using a private class." + "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2080 - }, - "name": "staticImplementedByPrivateClass", - "parameters": [ - { - "name": "ringer", - "type": { - "fqn": "jsii-calc.compliance.IBellRinger" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } + "line": 1824 }, - "static": true - }, - { - "docs": { - "remarks": "Return whether the bell was rung.", - "stability": "experimental", - "summary": "...if the interface is implemented using a public class." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2069 - }, - "name": "staticImplementedByPublicClass", - "parameters": [ - { - "name": "ringer", - "type": { - "fqn": "jsii-calc.compliance.IBellRinger" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } - }, - "static": true - }, + "name": "topLevelProperty", + "type": { + "primitive": "string" + } + } + ] + }, + "jsii-calc.DisappointingCollectionSource": { + "assembly": "jsii-calc", + "docs": { + "remarks": "This source of collections is disappointing - it'll always give you nothing :(", + "stability": "experimental", + "summary": "Verifies that null/undefined can be returned for optional collections." + }, + "fqn": "jsii-calc.DisappointingCollectionSource", + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2275 + }, + "name": "DisappointingCollectionSource", + "properties": [ { + "const": true, "docs": { - "remarks": "Return whether the bell was rung.", + "remarks": "(Nah, just a billion dollars mistake!)", "stability": "experimental", - "summary": "If the parameter is a concrete class instead of an interface." + "summary": "Some List of strings, maybe?" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2091 + "line": 2277 }, - "name": "staticWhenTypedAsClass", - "parameters": [ - { - "name": "ringer", - "type": { - "fqn": "jsii-calc.compliance.IConcreteBellRinger" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" + "name": "maybeList", + "optional": true, + "static": true, + "type": { + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "array" } - }, - "static": true + } }, { + "const": true, "docs": { - "remarks": "Returns whether the bell was rung.", + "remarks": "(Nah, just a billion dollars mistake!)", "stability": "experimental", - "summary": "...if the interface is implemented using an object literal." + "summary": "Some Map of strings to numbers, maybe?" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2101 + "line": 2279 }, - "name": "implementedByObjectLiteral", - "parameters": [ - { - "name": "ringer", - "type": { - "fqn": "jsii-calc.compliance.IBellRinger" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" + "name": "maybeMap", + "optional": true, + "static": true, + "type": { + "collection": { + "elementtype": { + "primitive": "number" + }, + "kind": "map" } } - }, + } + ] + }, + "jsii-calc.DoNotOverridePrivates": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.DoNotOverridePrivates", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1146 + }, + "methods": [ { "docs": { - "remarks": "Return whether the bell was rung.", - "stability": "experimental", - "summary": "...if the interface is implemented using a private class." + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2127 + "line": 1161 }, - "name": "implementedByPrivateClass", + "name": "changePrivatePropertyValue", "parameters": [ { - "name": "ringer", + "name": "newValue", "type": { - "fqn": "jsii-calc.compliance.IBellRinger" + "primitive": "string" } } - ], - "returns": { - "type": { - "primitive": "boolean" - } - } + ] }, { "docs": { - "remarks": "Return whether the bell was rung.", - "stability": "experimental", - "summary": "...if the interface is implemented using a public class." + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2116 + "line": 1153 }, - "name": "implementedByPublicClass", - "parameters": [ - { - "name": "ringer", - "type": { - "fqn": "jsii-calc.compliance.IBellRinger" - } - } - ], + "name": "privateMethodValue", "returns": { "type": { - "primitive": "boolean" + "primitive": "string" } } }, { "docs": { - "remarks": "Return whether the bell was rung.", - "stability": "experimental", - "summary": "If the parameter is a concrete class instead of an interface." + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2138 + "line": 1157 }, - "name": "whenTypedAsClass", - "parameters": [ - { - "name": "ringer", - "type": { - "fqn": "jsii-calc.compliance.IConcreteBellRinger" - } - } - ], + "name": "privatePropertyValue", "returns": { "type": { - "primitive": "boolean" + "primitive": "string" } } } ], - "name": "ConsumerCanRingBell", - "namespace": "compliance" + "name": "DoNotOverridePrivates" }, - "jsii-calc.compliance.ConsumersOfThisCrazyTypeSystem": { + "jsii-calc.DoNotRecognizeAnyAsOptional": { "assembly": "jsii-calc", "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "jsii#284: do not recognize \"any\" as an optional argument." }, - "fqn": "jsii-calc.compliance.ConsumersOfThisCrazyTypeSystem", + "fqn": "jsii-calc.DoNotRecognizeAnyAsOptional", "initializer": {}, "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1610 + "line": 1195 }, "methods": [ { @@ -3619,271 +3788,283 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1611 + "line": 1196 }, - "name": "consumeAnotherPublicInterface", + "name": "method", "parameters": [ { - "name": "obj", + "name": "_requiredAny", "type": { - "fqn": "jsii-calc.compliance.IAnotherPublicInterface" + "primitive": "any" } - } - ], - "returns": { - "type": { - "primitive": "string" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1615 - }, - "name": "consumeNonInternalInterface", - "parameters": [ + }, { - "name": "obj", + "name": "_optionalAny", + "optional": true, "type": { - "fqn": "jsii-calc.compliance.INonInternalInterface" + "primitive": "any" + } + }, + { + "name": "_optionalString", + "optional": true, + "type": { + "primitive": "string" } } - ], - "returns": { - "type": { - "primitive": "any" - } - } + ] } ], - "name": "ConsumersOfThisCrazyTypeSystem", - "namespace": "compliance" + "name": "DoNotRecognizeAnyAsOptional" }, - "jsii-calc.compliance.DataRenderer": { + "jsii-calc.DocumentedClass": { "assembly": "jsii-calc", "docs": { - "stability": "experimental", - "summary": "Verifies proper type handling through dynamic overrides." - }, - "fqn": "jsii-calc.compliance.DataRenderer", - "initializer": { - "docs": { - "stability": "experimental" - } + "remarks": "This is the meat of the TSDoc comment. It may contain\nmultiple lines and multiple paragraphs.\n\nMultiple paragraphs are separated by an empty line.", + "stability": "stable", + "summary": "Here's the first line of the TSDoc comment." }, + "fqn": "jsii-calc.DocumentedClass", + "initializer": {}, "kind": "class", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1766 + "filename": "lib/documented.ts", + "line": 11 }, "methods": [ { "docs": { - "stability": "experimental" + "remarks": "This will print out a friendly greeting intended for\nthe indicated person.", + "returns": "A number that everyone knows very well", + "stability": "stable", + "summary": "Greet the indicated person." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1769 + "filename": "lib/documented.ts", + "line": 22 }, - "name": "render", + "name": "greet", "parameters": [ { - "name": "data", + "docs": { + "summary": "The person to be greeted." + }, + "name": "greetee", "optional": true, "type": { - "fqn": "@scope/jsii-calc-lib.MyFirstStruct" + "fqn": "jsii-calc.Greetee" } } ], "returns": { "type": { - "primitive": "string" + "primitive": "number" } } }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Say ¡Hola!" }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1773 - }, - "name": "renderArbitrary", - "parameters": [ - { - "name": "data", - "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "map" - } - } - } - ], - "returns": { - "type": { - "primitive": "string" - } - } - }, + "filename": "lib/documented.ts", + "line": 32 + }, + "name": "hola" + } + ], + "name": "DocumentedClass" + }, + "jsii-calc.DontComplainAboutVariadicAfterOptional": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.DontComplainAboutVariadicAfterOptional", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1246 + }, + "methods": [ { "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1777 + "line": 1247 }, - "name": "renderMap", + "name": "optionalAndVariadic", "parameters": [ { - "name": "map", + "name": "optional", + "optional": true, "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "map" - } + "primitive": "string" } + }, + { + "name": "things", + "type": { + "primitive": "string" + }, + "variadic": true } ], "returns": { "type": { "primitive": "string" } - } + }, + "variadic": true } ], - "name": "DataRenderer", - "namespace": "compliance" + "name": "DontComplainAboutVariadicAfterOptional" }, - "jsii-calc.compliance.DefaultedConstructorArgument": { + "jsii-calc.DoubleTrouble": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.DefaultedConstructorArgument", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "arg1", - "optional": true, - "type": { - "primitive": "number" - } + "fqn": "jsii-calc.DoubleTrouble", + "initializer": {}, + "interfaces": [ + "jsii-calc.IFriendlyRandomGenerator" + ], + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 473 + }, + "methods": [ + { + "docs": { + "stability": "experimental", + "summary": "Say hello!" }, - { - "name": "arg2", - "optional": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 478 + }, + "name": "hello", + "overrides": "@scope/jsii-calc-lib.IFriendly", + "returns": { "type": { "primitive": "string" } + } + }, + { + "docs": { + "stability": "experimental", + "summary": "Returns another random number." }, - { - "name": "arg3", - "optional": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 474 + }, + "name": "next", + "overrides": "jsii-calc.IRandomNumberGenerator", + "returns": { "type": { - "primitive": "date" + "primitive": "number" } } - ] + } + ], + "name": "DoubleTrouble" + }, + "jsii-calc.EnumDispenser": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, + "fqn": "jsii-calc.EnumDispenser", "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 302 + "line": 34 }, - "name": "DefaultedConstructorArgument", - "namespace": "compliance", - "properties": [ + "methods": [ { "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 303 - }, - "name": "arg1", - "type": { - "primitive": "number" - } - }, - { - "docs": { - "stability": "experimental" + "line": 40 }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 305 + "name": "randomIntegerLikeEnum", + "returns": { + "type": { + "fqn": "jsii-calc.AllTypesEnum" + } }, - "name": "arg3", - "type": { - "primitive": "date" - } + "static": true }, { "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 304 + "line": 35 }, - "name": "arg2", - "optional": true, - "type": { - "primitive": "string" - } + "name": "randomStringLikeEnum", + "returns": { + "type": { + "fqn": "jsii-calc.StringEnum" + } + }, + "static": true } - ] + ], + "name": "EnumDispenser" }, - "jsii-calc.compliance.Demonstrate982": { + "jsii-calc.EraseUndefinedHashValues": { "assembly": "jsii-calc", "docs": { - "remarks": "call #takeThis() -> An ObjectRef will be provisioned for the value (it'll be re-used!)\n2. call #takeThisToo() -> The ObjectRef from before will need to be down-cased to the ParentStruct982 type", - "stability": "experimental", - "summary": "1." - }, - "fqn": "jsii-calc.compliance.Demonstrate982", - "initializer": { - "docs": { - "stability": "experimental" - } + "stability": "experimental" }, + "fqn": "jsii-calc.EraseUndefinedHashValues", + "initializer": {}, "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2251 + "line": 1449 }, "methods": [ { "docs": { + "remarks": "Used to check that undefined/null hash values\nare being erased when sending values from native code to JS.", "stability": "experimental", - "summary": "It's dangerous to go alone!" + "summary": "Returns `true` if `key` is defined in `opts`." }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2258 + "line": 1454 }, - "name": "takeThis", + "name": "doesKeyExist", + "parameters": [ + { + "name": "opts", + "type": { + "fqn": "jsii-calc.EraseUndefinedHashValuesOptions" + } + }, + { + "name": "key", + "type": { + "primitive": "string" + } + } + ], "returns": { "type": { - "fqn": "jsii-calc.compliance.ChildStruct982" + "primitive": "boolean" } }, "static": true @@ -3891,89 +4072,80 @@ { "docs": { "stability": "experimental", - "summary": "It's dangerous to go alone!" + "summary": "We expect \"prop1\" to be erased." }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2263 + "line": 1471 }, - "name": "takeThisToo", + "name": "prop1IsNull", + "returns": { + "type": { + "collection": { + "elementtype": { + "primitive": "any" + }, + "kind": "map" + } + } + }, + "static": true + }, + { + "docs": { + "stability": "experimental", + "summary": "We expect \"prop2\" to be erased." + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1461 + }, + "name": "prop2IsUndefined", "returns": { "type": { - "fqn": "jsii-calc.compliance.ParentStruct982" + "collection": { + "elementtype": { + "primitive": "any" + }, + "kind": "map" + } } }, "static": true } ], - "name": "Demonstrate982", - "namespace": "compliance" + "name": "EraseUndefinedHashValues" }, - "jsii-calc.compliance.DerivedClassHasNoProperties.Base": { + "jsii-calc.EraseUndefinedHashValuesOptions": { "assembly": "jsii-calc", + "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.DerivedClassHasNoProperties.Base", - "initializer": {}, - "kind": "class", + "fqn": "jsii-calc.EraseUndefinedHashValuesOptions", + "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 311 + "line": 1444 }, - "name": "Base", - "namespace": "compliance.DerivedClassHasNoProperties", + "name": "EraseUndefinedHashValuesOptions", "properties": [ { + "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 312 + "line": 1445 }, - "name": "prop", + "name": "option1", + "optional": true, "type": { "primitive": "string" } - } - ] - }, - "jsii-calc.compliance.DerivedClassHasNoProperties.Derived": { - "assembly": "jsii-calc", - "base": "jsii-calc.compliance.DerivedClassHasNoProperties.Base", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.compliance.DerivedClassHasNoProperties.Derived", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 315 - }, - "name": "Derived", - "namespace": "compliance.DerivedClassHasNoProperties" - }, - "jsii-calc.compliance.DerivedStruct": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental", - "summary": "A struct which derives from another struct." - }, - "fqn": "jsii-calc.compliance.DerivedStruct", - "interfaces": [ - "@scope/jsii-calc-lib.MyFirstStruct" - ], - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 533 - }, - "name": "DerivedStruct", - "namespace": "compliance", - "properties": [ + }, { "abstract": true, "docs": { @@ -3982,119 +4154,131 @@ "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 539 + "line": 1446 }, - "name": "anotherRequired", + "name": "option2", + "optional": true, "type": { - "primitive": "date" + "primitive": "string" } + } + ] + }, + "jsii-calc.ExperimentalClass": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.ExperimentalClass", + "initializer": { + "docs": { + "stability": "experimental" }, + "parameters": [ + { + "name": "readonlyString", + "type": { + "primitive": "string" + } + }, + { + "name": "mutableNumber", + "optional": true, + "type": { + "primitive": "number" + } + } + ] + }, + "kind": "class", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 16 + }, + "methods": [ { - "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 538 + "filename": "lib/stability.ts", + "line": 28 }, - "name": "bool", - "type": { - "primitive": "boolean" - } - }, + "name": "method" + } + ], + "name": "ExperimentalClass", + "properties": [ { - "abstract": true, "docs": { - "stability": "experimental", - "summary": "An example of a non primitive property." + "stability": "experimental" }, "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 537 + "filename": "lib/stability.ts", + "line": 18 }, - "name": "nonPrimitive", + "name": "readonlyProperty", "type": { - "fqn": "jsii-calc.compliance.DoubleTrouble" + "primitive": "string" } }, { - "abstract": true, "docs": { - "stability": "experimental", - "summary": "This is optional." + "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 545 + "filename": "lib/stability.ts", + "line": 20 }, - "name": "anotherOptional", + "name": "mutableProperty", "optional": true, "type": { - "collection": { - "elementtype": { - "fqn": "@scope/jsii-calc-lib.Value" - }, - "kind": "map" - } + "primitive": "number" } - }, + } + ] + }, + "jsii-calc.ExperimentalEnum": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.ExperimentalEnum", + "kind": "enum", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 31 + }, + "members": [ { - "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 541 - }, - "name": "optionalAny", - "optional": true, - "type": { - "primitive": "any" - } + "name": "OPTION_A" }, { - "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 540 - }, - "name": "optionalArray", - "optional": true, - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" - } - } + "name": "OPTION_B" } - ] + ], + "name": "ExperimentalEnum" }, - "jsii-calc.compliance.DiamondInheritanceBaseLevelStruct": { + "jsii-calc.ExperimentalStruct": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.DiamondInheritanceBaseLevelStruct", + "fqn": "jsii-calc.ExperimentalStruct", "kind": "interface", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1811 + "filename": "lib/stability.ts", + "line": 4 }, - "name": "DiamondInheritanceBaseLevelStruct", - "namespace": "compliance", + "name": "ExperimentalStruct", "properties": [ { "abstract": true, @@ -4103,68 +4287,71 @@ }, "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1812 + "filename": "lib/stability.ts", + "line": 6 }, - "name": "baseLevelProperty", + "name": "readonlyProperty", "type": { "primitive": "string" } } ] }, - "jsii-calc.compliance.DiamondInheritanceFirstMidLevelStruct": { + "jsii-calc.ExportedBaseClass": { "assembly": "jsii-calc", - "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.DiamondInheritanceFirstMidLevelStruct", - "interfaces": [ - "jsii-calc.compliance.DiamondInheritanceBaseLevelStruct" - ], - "kind": "interface", + "fqn": "jsii-calc.ExportedBaseClass", + "initializer": { + "docs": { + "stability": "experimental" + }, + "parameters": [ + { + "name": "success", + "type": { + "primitive": "boolean" + } + } + ] + }, + "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1815 + "line": 1331 }, - "name": "DiamondInheritanceFirstMidLevelStruct", - "namespace": "compliance", + "name": "ExportedBaseClass", "properties": [ { - "abstract": true, "docs": { "stability": "experimental" }, "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1816 + "line": 1332 }, - "name": "firstMidLevelProperty", + "name": "success", "type": { - "primitive": "string" + "primitive": "boolean" } } ] }, - "jsii-calc.compliance.DiamondInheritanceSecondMidLevelStruct": { + "jsii-calc.ExtendsInternalInterface": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.DiamondInheritanceSecondMidLevelStruct", - "interfaces": [ - "jsii-calc.compliance.DiamondInheritanceBaseLevelStruct" - ], + "fqn": "jsii-calc.ExtendsInternalInterface", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1819 + "line": 1552 }, - "name": "DiamondInheritanceSecondMidLevelStruct", - "namespace": "compliance", + "name": "ExtendsInternalInterface", "properties": [ { "abstract": true, @@ -4174,34 +4361,13 @@ "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1820 + "line": 1553 }, - "name": "secondMidLevelProperty", + "name": "boom", "type": { - "primitive": "string" + "primitive": "boolean" } - } - ] - }, - "jsii-calc.compliance.DiamondInheritanceTopLevelStruct": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.compliance.DiamondInheritanceTopLevelStruct", - "interfaces": [ - "jsii-calc.compliance.DiamondInheritanceFirstMidLevelStruct", - "jsii-calc.compliance.DiamondInheritanceSecondMidLevelStruct" - ], - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1823 - }, - "name": "DiamondInheritanceTopLevelStruct", - "namespace": "compliance", - "properties": [ + }, { "abstract": true, "docs": { @@ -4210,207 +4376,165 @@ "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1824 + "line": 1501 }, - "name": "topLevelProperty", + "name": "prop", "type": { "primitive": "string" } } ] }, - "jsii-calc.compliance.DisappointingCollectionSource": { + "jsii-calc.GiveMeStructs": { "assembly": "jsii-calc", "docs": { - "remarks": "This source of collections is disappointing - it'll always give you nothing :(", - "stability": "experimental", - "summary": "Verifies that null/undefined can be returned for optional collections." + "stability": "experimental" }, - "fqn": "jsii-calc.compliance.DisappointingCollectionSource", + "fqn": "jsii-calc.GiveMeStructs", + "initializer": {}, "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2275 + "line": 548 }, - "name": "DisappointingCollectionSource", - "namespace": "compliance", - "properties": [ + "methods": [ { - "const": true, "docs": { - "remarks": "(Nah, just a billion dollars mistake!)", "stability": "experimental", - "summary": "Some List of strings, maybe?" + "summary": "Accepts a struct of type DerivedStruct and returns a struct of type FirstStruct." }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2277 + "line": 566 }, - "name": "maybeList", - "optional": true, - "static": true, - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" + "name": "derivedToFirst", + "parameters": [ + { + "name": "derived", + "type": { + "fqn": "jsii-calc.DerivedStruct" + } + } + ], + "returns": { + "type": { + "fqn": "@scope/jsii-calc-lib.MyFirstStruct" } } }, { - "const": true, "docs": { - "remarks": "(Nah, just a billion dollars mistake!)", "stability": "experimental", - "summary": "Some Map of strings to numbers, maybe?" + "summary": "Returns the boolean from a DerivedStruct struct." }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2279 + "line": 559 }, - "name": "maybeMap", - "optional": true, - "static": true, - "type": { - "collection": { - "elementtype": { - "primitive": "number" - }, - "kind": "map" + "name": "readDerivedNonPrimitive", + "parameters": [ + { + "name": "derived", + "type": { + "fqn": "jsii-calc.DerivedStruct" + } + } + ], + "returns": { + "type": { + "fqn": "jsii-calc.DoubleTrouble" } } - } - ] - }, - "jsii-calc.compliance.DoNotOverridePrivates": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.compliance.DoNotOverridePrivates", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1146 - }, - "methods": [ + }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Returns the \"anumber\" from a MyFirstStruct struct;" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1161 + "line": 552 }, - "name": "changePrivatePropertyValue", + "name": "readFirstNumber", "parameters": [ { - "name": "newValue", + "name": "first", "type": { - "primitive": "string" + "fqn": "@scope/jsii-calc-lib.MyFirstStruct" } } - ] - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1153 - }, - "name": "privateMethodValue", + ], "returns": { "type": { - "primitive": "string" + "primitive": "number" } } - }, + } + ], + "name": "GiveMeStructs", + "properties": [ { "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1157 + "line": 570 }, - "name": "privatePropertyValue", - "returns": { - "type": { - "primitive": "string" - } + "name": "structLiteral", + "type": { + "fqn": "@scope/jsii-calc-lib.StructWithOnlyOptionals" } } - ], - "name": "DoNotOverridePrivates", - "namespace": "compliance" + ] }, - "jsii-calc.compliance.DoNotRecognizeAnyAsOptional": { + "jsii-calc.Greetee": { "assembly": "jsii-calc", + "datatype": true, "docs": { "stability": "experimental", - "summary": "jsii#284: do not recognize \"any\" as an optional argument." + "summary": "These are some arguments you can pass to a method." }, - "fqn": "jsii-calc.compliance.DoNotRecognizeAnyAsOptional", - "initializer": {}, - "kind": "class", + "fqn": "jsii-calc.Greetee", + "kind": "interface", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1195 + "filename": "lib/documented.ts", + "line": 40 }, - "methods": [ + "name": "Greetee", + "properties": [ { + "abstract": true, "docs": { - "stability": "experimental" + "default": "world", + "stability": "experimental", + "summary": "The name of the greetee." }, + "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1196 + "filename": "lib/documented.ts", + "line": 46 }, - "name": "method", - "parameters": [ - { - "name": "_requiredAny", - "type": { - "primitive": "any" - } - }, - { - "name": "_optionalAny", - "optional": true, - "type": { - "primitive": "any" - } - }, - { - "name": "_optionalString", - "optional": true, - "type": { - "primitive": "string" - } - } - ] + "name": "name", + "optional": true, + "type": { + "primitive": "string" + } } - ], - "name": "DoNotRecognizeAnyAsOptional", - "namespace": "compliance" + ] }, - "jsii-calc.compliance.DontComplainAboutVariadicAfterOptional": { + "jsii-calc.GreetingAugmenter": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.DontComplainAboutVariadicAfterOptional", + "fqn": "jsii-calc.GreetingAugmenter", "initializer": {}, "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1246 + "line": 524 }, "methods": [ { @@ -4419,337 +4543,348 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1247 + "line": 525 }, - "name": "optionalAndVariadic", + "name": "betterGreeting", "parameters": [ { - "name": "optional", - "optional": true, + "name": "friendly", "type": { - "primitive": "string" + "fqn": "@scope/jsii-calc-lib.IFriendly" } - }, - { - "name": "things", - "type": { - "primitive": "string" - }, - "variadic": true } ], "returns": { "type": { "primitive": "string" } - }, - "variadic": true + } } ], - "name": "DontComplainAboutVariadicAfterOptional", - "namespace": "compliance" + "name": "GreetingAugmenter" }, - "jsii-calc.compliance.DoubleTrouble": { + "jsii-calc.IAnonymousImplementationProvider": { "assembly": "jsii-calc", "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "We can return an anonymous interface implementation from an override without losing the interface declarations." }, - "fqn": "jsii-calc.compliance.DoubleTrouble", - "initializer": {}, - "interfaces": [ - "jsii-calc.IFriendlyRandomGenerator" - ], - "kind": "class", + "fqn": "jsii-calc.IAnonymousImplementationProvider", + "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 473 + "line": 1972 }, "methods": [ { + "abstract": true, "docs": { - "stability": "experimental", - "summary": "Say hello!" + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 478 + "line": 1974 }, - "name": "hello", - "overrides": "@scope/jsii-calc-lib.IFriendly", + "name": "provideAsClass", "returns": { "type": { - "primitive": "string" + "fqn": "jsii-calc.Implementation" } } }, { + "abstract": true, "docs": { - "stability": "experimental", - "summary": "Returns another random number." + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 474 + "line": 1973 }, - "name": "next", - "overrides": "jsii-calc.IRandomNumberGenerator", + "name": "provideAsInterface", "returns": { "type": { - "primitive": "number" + "fqn": "jsii-calc.IAnonymouslyImplementMe" } } } ], - "name": "DoubleTrouble", - "namespace": "compliance" + "name": "IAnonymousImplementationProvider" }, - "jsii-calc.compliance.EnumDispenser": { + "jsii-calc.IAnonymouslyImplementMe": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.EnumDispenser", - "kind": "class", + "fqn": "jsii-calc.IAnonymouslyImplementMe", + "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 34 + "line": 1990 }, "methods": [ { + "abstract": true, "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 40 + "line": 1992 }, - "name": "randomIntegerLikeEnum", + "name": "verb", "returns": { "type": { - "fqn": "jsii-calc.compliance.AllTypesEnum" + "primitive": "string" } - }, - "static": true - }, + } + } + ], + "name": "IAnonymouslyImplementMe", + "properties": [ { + "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 35 - }, - "name": "randomStringLikeEnum", - "returns": { - "type": { - "fqn": "jsii-calc.compliance.StringEnum" - } + "line": 1991 }, - "static": true + "name": "value", + "type": { + "primitive": "number" + } } - ], - "name": "EnumDispenser", - "namespace": "compliance" + ] }, - "jsii-calc.compliance.EraseUndefinedHashValues": { + "jsii-calc.IAnotherPublicInterface": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.EraseUndefinedHashValues", - "initializer": {}, - "kind": "class", + "fqn": "jsii-calc.IAnotherPublicInterface", + "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1449 + "line": 1573 }, - "methods": [ + "name": "IAnotherPublicInterface", + "properties": [ { + "abstract": true, "docs": { - "remarks": "Used to check that undefined/null hash values\nare being erased when sending values from native code to JS.", - "stability": "experimental", - "summary": "Returns `true` if `key` is defined in `opts`." + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1454 + "line": 1574 }, - "name": "doesKeyExist", - "parameters": [ - { - "name": "opts", - "type": { - "fqn": "jsii-calc.compliance.EraseUndefinedHashValuesOptions" - } - }, - { - "name": "key", - "type": { - "primitive": "string" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } - }, - "static": true - }, + "name": "a", + "type": { + "primitive": "string" + } + } + ] + }, + "jsii-calc.IBell": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.IBell", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2159 + }, + "methods": [ { + "abstract": true, "docs": { - "stability": "experimental", - "summary": "We expect \"prop1\" to be erased." + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1471 - }, - "name": "prop1IsNull", - "returns": { - "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "map" - } - } + "line": 2160 }, - "static": true - }, + "name": "ring" + } + ], + "name": "IBell" + }, + "jsii-calc.IBellRinger": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Takes the object parameter as an interface." + }, + "fqn": "jsii-calc.IBellRinger", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2148 + }, + "methods": [ { + "abstract": true, "docs": { - "stability": "experimental", - "summary": "We expect \"prop2\" to be erased." + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1461 + "line": 2149 }, - "name": "prop2IsUndefined", - "returns": { - "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "map" + "name": "yourTurn", + "parameters": [ + { + "name": "bell", + "type": { + "fqn": "jsii-calc.IBell" } } - }, - "static": true + ] } ], - "name": "EraseUndefinedHashValues", - "namespace": "compliance" + "name": "IBellRinger" }, - "jsii-calc.compliance.EraseUndefinedHashValuesOptions": { + "jsii-calc.IConcreteBellRinger": { "assembly": "jsii-calc", - "datatype": true, "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Takes the object parameter as a calss." }, - "fqn": "jsii-calc.compliance.EraseUndefinedHashValuesOptions", + "fqn": "jsii-calc.IConcreteBellRinger", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1444 + "line": 2155 }, - "name": "EraseUndefinedHashValuesOptions", - "namespace": "compliance", - "properties": [ + "methods": [ { "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1445 + "line": 2156 }, - "name": "option1", - "optional": true, - "type": { - "primitive": "string" - } - }, + "name": "yourTurn", + "parameters": [ + { + "name": "bell", + "type": { + "fqn": "jsii-calc.Bell" + } + } + ] + } + ], + "name": "IConcreteBellRinger" + }, + "jsii-calc.IDeprecatedInterface": { + "assembly": "jsii-calc", + "docs": { + "deprecated": "useless interface", + "stability": "deprecated" + }, + "fqn": "jsii-calc.IDeprecatedInterface", + "kind": "interface", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 78 + }, + "methods": [ { "abstract": true, "docs": { - "stability": "experimental" + "deprecated": "services no purpose", + "stability": "deprecated" }, - "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1446 + "filename": "lib/stability.ts", + "line": 82 }, - "name": "option2", + "name": "method" + } + ], + "name": "IDeprecatedInterface", + "properties": [ + { + "abstract": true, + "docs": { + "deprecated": "could be better", + "stability": "deprecated" + }, + "locationInModule": { + "filename": "lib/stability.ts", + "line": 80 + }, + "name": "mutableProperty", "optional": true, "type": { - "primitive": "string" + "primitive": "number" } } ] }, - "jsii-calc.compliance.ExportedBaseClass": { + "jsii-calc.IExperimentalInterface": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.ExportedBaseClass", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "success", - "type": { - "primitive": "boolean" - } - } - ] - }, - "kind": "class", + "fqn": "jsii-calc.IExperimentalInterface", + "kind": "interface", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1331 + "filename": "lib/stability.ts", + "line": 9 }, - "name": "ExportedBaseClass", - "namespace": "compliance", + "methods": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/stability.ts", + "line": 13 + }, + "name": "method" + } + ], + "name": "IExperimentalInterface", "properties": [ { + "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1332 + "filename": "lib/stability.ts", + "line": 11 }, - "name": "success", + "name": "mutableProperty", + "optional": true, "type": { - "primitive": "boolean" + "primitive": "number" } } ] }, - "jsii-calc.compliance.ExtendsInternalInterface": { + "jsii-calc.IExtendsPrivateInterface": { "assembly": "jsii-calc", - "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.ExtendsInternalInterface", + "fqn": "jsii-calc.IExtendsPrivateInterface", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1552 + "line": 1564 }, - "name": "ExtendsInternalInterface", - "namespace": "compliance", + "name": "IExtendsPrivateInterface", "properties": [ { "abstract": true, @@ -4759,11 +4894,16 @@ "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1553 + "line": 1565 }, - "name": "boom", + "name": "moreThings", "type": { - "primitive": "boolean" + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "array" + } } }, { @@ -4771,243 +4911,135 @@ "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1501 + "line": 1549 }, - "name": "prop", + "name": "private", "type": { "primitive": "string" } } ] }, - "jsii-calc.compliance.GiveMeStructs": { + "jsii-calc.IFriendlier": { "assembly": "jsii-calc", "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Even friendlier classes can implement this interface." }, - "fqn": "jsii-calc.compliance.GiveMeStructs", - "initializer": {}, - "kind": "class", + "fqn": "jsii-calc.IFriendlier", + "interfaces": [ + "@scope/jsii-calc-lib.IFriendly" + ], + "kind": "interface", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 548 + "filename": "lib/calculator.ts", + "line": 6 }, "methods": [ { + "abstract": true, "docs": { "stability": "experimental", - "summary": "Accepts a struct of type DerivedStruct and returns a struct of type FirstStruct." + "summary": "Say farewell." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 566 + "filename": "lib/calculator.ts", + "line": 16 }, - "name": "derivedToFirst", - "parameters": [ - { - "name": "derived", - "type": { - "fqn": "jsii-calc.compliance.DerivedStruct" - } - } - ], + "name": "farewell", "returns": { "type": { - "fqn": "@scope/jsii-calc-lib.MyFirstStruct" + "primitive": "string" } } }, { + "abstract": true, "docs": { + "returns": "A goodbye blessing.", "stability": "experimental", - "summary": "Returns the boolean from a DerivedStruct struct." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 559 - }, - "name": "readDerivedNonPrimitive", - "parameters": [ - { - "name": "derived", - "type": { - "fqn": "jsii-calc.compliance.DerivedStruct" - } - } - ], - "returns": { - "type": { - "fqn": "jsii-calc.compliance.DoubleTrouble" - } - } - }, - { - "docs": { - "stability": "experimental", - "summary": "Returns the \"anumber\" from a MyFirstStruct struct;" + "summary": "Say goodbye." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 552 + "filename": "lib/calculator.ts", + "line": 11 }, - "name": "readFirstNumber", - "parameters": [ - { - "name": "first", - "type": { - "fqn": "@scope/jsii-calc-lib.MyFirstStruct" - } - } - ], + "name": "goodbye", "returns": { "type": { - "primitive": "number" + "primitive": "string" } } } ], - "name": "GiveMeStructs", - "namespace": "compliance", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 570 - }, - "name": "structLiteral", - "type": { - "fqn": "@scope/jsii-calc-lib.StructWithOnlyOptionals" - } - } - ] + "name": "IFriendlier" }, - "jsii-calc.compliance.GreetingAugmenter": { + "jsii-calc.IFriendlyRandomGenerator": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.GreetingAugmenter", - "initializer": {}, - "kind": "class", + "fqn": "jsii-calc.IFriendlyRandomGenerator", + "interfaces": [ + "jsii-calc.IRandomNumberGenerator", + "@scope/jsii-calc-lib.IFriendly" + ], + "kind": "interface", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 524 + "filename": "lib/calculator.ts", + "line": 30 }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 525 - }, - "name": "betterGreeting", - "parameters": [ - { - "name": "friendly", - "type": { - "fqn": "@scope/jsii-calc-lib.IFriendly" - } - } - ], - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "GreetingAugmenter", - "namespace": "compliance" + "name": "IFriendlyRandomGenerator" }, - "jsii-calc.compliance.IAnonymousImplementationProvider": { + "jsii-calc.IInterfaceImplementedByAbstractClass": { "assembly": "jsii-calc", "docs": { "stability": "experimental", - "summary": "We can return an anonymous interface implementation from an override without losing the interface declarations." + "summary": "awslabs/jsii#220 Abstract return type." }, - "fqn": "jsii-calc.compliance.IAnonymousImplementationProvider", + "fqn": "jsii-calc.IInterfaceImplementedByAbstractClass", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1972 + "line": 1092 }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1974 - }, - "name": "provideAsClass", - "returns": { - "type": { - "fqn": "jsii-calc.compliance.Implementation" - } - } - }, + "name": "IInterfaceImplementedByAbstractClass", + "properties": [ { "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1973 + "line": 1093 }, - "name": "provideAsInterface", - "returns": { - "type": { - "fqn": "jsii-calc.compliance.IAnonymouslyImplementMe" - } + "name": "propFromInterface", + "type": { + "primitive": "string" } } - ], - "name": "IAnonymousImplementationProvider", - "namespace": "compliance" + ] }, - "jsii-calc.compliance.IAnonymouslyImplementMe": { + "jsii-calc.IInterfaceThatShouldNotBeADataType": { "assembly": "jsii-calc", "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype." }, - "fqn": "jsii-calc.compliance.IAnonymouslyImplementMe", + "fqn": "jsii-calc.IInterfaceThatShouldNotBeADataType", + "interfaces": [ + "jsii-calc.IInterfaceWithMethods" + ], "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1990 + "line": 1188 }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1992 - }, - "name": "verb", - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "IAnonymouslyImplementMe", - "namespace": "compliance", + "name": "IInterfaceThatShouldNotBeADataType", "properties": [ { "abstract": true, @@ -5017,29 +5049,27 @@ "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1991 + "line": 1189 }, - "name": "value", + "name": "otherValue", "type": { - "primitive": "number" + "primitive": "string" } } ] }, - "jsii-calc.compliance.IAnotherPublicInterface": { + "jsii-calc.IInterfaceWithInternal": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.IAnotherPublicInterface", + "fqn": "jsii-calc.IInterfaceWithInternal", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1573 + "line": 1512 }, - "name": "IAnotherPublicInterface", - "namespace": "compliance", - "properties": [ + "methods": [ { "abstract": true, "docs": { @@ -5047,25 +5077,23 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1574 + "line": 1513 }, - "name": "a", - "type": { - "primitive": "string" - } + "name": "visible" } - ] + ], + "name": "IInterfaceWithInternal" }, - "jsii-calc.compliance.IBell": { + "jsii-calc.IInterfaceWithMethods": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.IBell", + "fqn": "jsii-calc.IInterfaceWithMethods", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2159 + "line": 1178 }, "methods": [ { @@ -5075,61 +5103,41 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2160 + "line": 1181 }, - "name": "ring" + "name": "doThings" } ], - "name": "IBell", - "namespace": "compliance" - }, - "jsii-calc.compliance.IBellRinger": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Takes the object parameter as an interface." - }, - "fqn": "jsii-calc.compliance.IBellRinger", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2148 - }, - "methods": [ + "name": "IInterfaceWithMethods", + "properties": [ { "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2149 + "line": 1179 }, - "name": "yourTurn", - "parameters": [ - { - "name": "bell", - "type": { - "fqn": "jsii-calc.compliance.IBell" - } - } - ] + "name": "value", + "type": { + "primitive": "string" + } } - ], - "name": "IBellRinger", - "namespace": "compliance" + ] }, - "jsii-calc.compliance.IConcreteBellRinger": { + "jsii-calc.IInterfaceWithOptionalMethodArguments": { "assembly": "jsii-calc", "docs": { "stability": "experimental", - "summary": "Takes the object parameter as a calss." + "summary": "awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods." }, - "fqn": "jsii-calc.compliance.IConcreteBellRinger", + "fqn": "jsii-calc.IInterfaceWithOptionalMethodArguments", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2155 + "line": 1072 }, "methods": [ { @@ -5139,35 +5147,40 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2156 + "line": 1073 }, - "name": "yourTurn", + "name": "hello", "parameters": [ { - "name": "bell", + "name": "arg1", "type": { - "fqn": "jsii-calc.compliance.Bell" + "primitive": "string" + } + }, + { + "name": "arg2", + "optional": true, + "type": { + "primitive": "number" } } ] } ], - "name": "IConcreteBellRinger", - "namespace": "compliance" + "name": "IInterfaceWithOptionalMethodArguments" }, - "jsii-calc.compliance.IExtendsPrivateInterface": { + "jsii-calc.IInterfaceWithProperties": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.IExtendsPrivateInterface", + "fqn": "jsii-calc.IInterfaceWithProperties", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1564 + "line": 578 }, - "name": "IExtendsPrivateInterface", - "namespace": "compliance", + "name": "IInterfaceWithProperties", "properties": [ { "abstract": true, @@ -5177,16 +5190,11 @@ "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1565 + "line": 579 }, - "name": "moreThings", + "name": "readOnlyString", "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" - } + "primitive": "string" } }, { @@ -5196,119 +5204,114 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1549 + "line": 580 }, - "name": "private", + "name": "readWriteString", "type": { "primitive": "string" } } ] }, - "jsii-calc.compliance.IInterfaceImplementedByAbstractClass": { + "jsii-calc.IInterfaceWithPropertiesExtension": { "assembly": "jsii-calc", "docs": { - "stability": "experimental", - "summary": "awslabs/jsii#220 Abstract return type." + "stability": "experimental" }, - "fqn": "jsii-calc.compliance.IInterfaceImplementedByAbstractClass", + "fqn": "jsii-calc.IInterfaceWithPropertiesExtension", + "interfaces": [ + "jsii-calc.IInterfaceWithProperties" + ], "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1092 + "line": 583 }, - "name": "IInterfaceImplementedByAbstractClass", - "namespace": "compliance", + "name": "IInterfaceWithPropertiesExtension", "properties": [ { "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1093 + "line": 584 }, - "name": "propFromInterface", + "name": "foo", "type": { - "primitive": "string" + "primitive": "number" } } ] }, - "jsii-calc.compliance.IInterfaceThatShouldNotBeADataType": { + "jsii-calc.IJSII417Derived": { "assembly": "jsii-calc", "docs": { - "stability": "experimental", - "summary": "Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype." + "stability": "experimental" }, - "fqn": "jsii-calc.compliance.IInterfaceThatShouldNotBeADataType", + "fqn": "jsii-calc.IJSII417Derived", "interfaces": [ - "jsii-calc.compliance.IInterfaceWithMethods" + "jsii-calc.IJSII417PublicBaseOfBase" ], "kind": "interface", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1188 + "filename": "lib/erasures.ts", + "line": 37 }, - "name": "IInterfaceThatShouldNotBeADataType", - "namespace": "compliance", - "properties": [ + "methods": [ { "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1189 + "filename": "lib/erasures.ts", + "line": 35 }, - "name": "otherValue", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.compliance.IInterfaceWithInternal": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.compliance.IInterfaceWithInternal", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1512 - }, - "methods": [ + "name": "bar" + }, { "abstract": true, "docs": { "stability": "experimental" }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1513 + "filename": "lib/erasures.ts", + "line": 38 }, - "name": "visible" + "name": "baz" } ], - "name": "IInterfaceWithInternal", - "namespace": "compliance" + "name": "IJSII417Derived", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 34 + }, + "name": "property", + "type": { + "primitive": "string" + } + } + ] }, - "jsii-calc.compliance.IInterfaceWithMethods": { + "jsii-calc.IJSII417PublicBaseOfBase": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.IInterfaceWithMethods", + "fqn": "jsii-calc.IJSII417PublicBaseOfBase", "kind": "interface", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1178 + "filename": "lib/erasures.ts", + "line": 30 }, "methods": [ { @@ -5317,14 +5320,13 @@ "stability": "experimental" }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1181 + "filename": "lib/erasures.ts", + "line": 31 }, - "name": "doThings" + "name": "foo" } ], - "name": "IInterfaceWithMethods", - "namespace": "compliance", + "name": "IJSII417PublicBaseOfBase", "properties": [ { "abstract": true, @@ -5333,150 +5335,67 @@ }, "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1179 + "filename": "lib/erasures.ts", + "line": 28 }, - "name": "value", + "name": "hasRoot", "type": { - "primitive": "string" + "primitive": "boolean" } } ] }, - "jsii-calc.compliance.IInterfaceWithOptionalMethodArguments": { + "jsii-calc.IJsii487External": { "assembly": "jsii-calc", "docs": { - "stability": "experimental", - "summary": "awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods." + "stability": "experimental" }, - "fqn": "jsii-calc.compliance.IInterfaceWithOptionalMethodArguments", + "fqn": "jsii-calc.IJsii487External", "kind": "interface", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1072 + "filename": "lib/erasures.ts", + "line": 45 }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1073 - }, - "name": "hello", - "parameters": [ - { - "name": "arg1", - "type": { - "primitive": "string" - } - }, - { - "name": "arg2", - "optional": true, - "type": { - "primitive": "number" - } - } - ] - } - ], - "name": "IInterfaceWithOptionalMethodArguments", - "namespace": "compliance" + "name": "IJsii487External" }, - "jsii-calc.compliance.IInterfaceWithProperties": { + "jsii-calc.IJsii487External2": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.IInterfaceWithProperties", + "fqn": "jsii-calc.IJsii487External2", "kind": "interface", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 578 + "filename": "lib/erasures.ts", + "line": 46 }, - "name": "IInterfaceWithProperties", - "namespace": "compliance", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 579 - }, - "name": "readOnlyString", - "type": { - "primitive": "string" - } - }, - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 580 - }, - "name": "readWriteString", - "type": { - "primitive": "string" - } - } - ] + "name": "IJsii487External2" }, - "jsii-calc.compliance.IInterfaceWithPropertiesExtension": { + "jsii-calc.IJsii496": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.IInterfaceWithPropertiesExtension", - "interfaces": [ - "jsii-calc.compliance.IInterfaceWithProperties" - ], + "fqn": "jsii-calc.IJsii496", "kind": "interface", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 583 + "filename": "lib/erasures.ts", + "line": 54 }, - "name": "IInterfaceWithPropertiesExtension", - "namespace": "compliance", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 584 - }, - "name": "foo", - "type": { - "primitive": "number" - } - } - ] + "name": "IJsii496" }, - "jsii-calc.compliance.IMutableObjectLiteral": { + "jsii-calc.IMutableObjectLiteral": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.IMutableObjectLiteral", + "fqn": "jsii-calc.IMutableObjectLiteral", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 1138 }, "name": "IMutableObjectLiteral", - "namespace": "compliance", "properties": [ { "abstract": true, @@ -5494,14 +5413,14 @@ } ] }, - "jsii-calc.compliance.INonInternalInterface": { + "jsii-calc.INonInternalInterface": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.INonInternalInterface", + "fqn": "jsii-calc.INonInternalInterface", "interfaces": [ - "jsii-calc.compliance.IAnotherPublicInterface" + "jsii-calc.IAnotherPublicInterface" ], "kind": "interface", "locationInModule": { @@ -5509,7 +5428,6 @@ "line": 1583 }, "name": "INonInternalInterface", - "namespace": "compliance", "properties": [ { "abstract": true, @@ -5541,13 +5459,13 @@ } ] }, - "jsii-calc.compliance.IObjectWithProperty": { + "jsii-calc.IObjectWithProperty": { "assembly": "jsii-calc", "docs": { "stability": "experimental", "summary": "Make sure that setters are properly called on objects with interfaces." }, - "fqn": "jsii-calc.compliance.IObjectWithProperty", + "fqn": "jsii-calc.IObjectWithProperty", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", @@ -5572,7 +5490,6 @@ } ], "name": "IObjectWithProperty", - "namespace": "compliance", "properties": [ { "abstract": true, @@ -5590,13 +5507,13 @@ } ] }, - "jsii-calc.compliance.IOptionalMethod": { + "jsii-calc.IOptionalMethod": { "assembly": "jsii-calc", "docs": { "stability": "experimental", "summary": "Checks that optional result from interface method code generates correctly." }, - "fqn": "jsii-calc.compliance.IOptionalMethod", + "fqn": "jsii-calc.IOptionalMethod", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", @@ -5621,22 +5538,20 @@ } } ], - "name": "IOptionalMethod", - "namespace": "compliance" + "name": "IOptionalMethod" }, - "jsii-calc.compliance.IPrivatelyImplemented": { + "jsii-calc.IPrivatelyImplemented": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.IPrivatelyImplemented", + "fqn": "jsii-calc.IPrivatelyImplemented", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 1328 }, "name": "IPrivatelyImplemented", - "namespace": "compliance", "properties": [ { "abstract": true, @@ -5655,12 +5570,12 @@ } ] }, - "jsii-calc.compliance.IPublicInterface": { + "jsii-calc.IPublicInterface": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.IPublicInterface", + "fqn": "jsii-calc.IPublicInterface", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", @@ -5684,15 +5599,14 @@ } } ], - "name": "IPublicInterface", - "namespace": "compliance" + "name": "IPublicInterface" }, - "jsii-calc.compliance.IPublicInterface2": { + "jsii-calc.IPublicInterface2": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.IPublicInterface2", + "fqn": "jsii-calc.IPublicInterface2", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", @@ -5716,23 +5630,55 @@ } } ], - "name": "IPublicInterface2", - "namespace": "compliance" + "name": "IPublicInterface2" + }, + "jsii-calc.IRandomNumberGenerator": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Generates random numbers." + }, + "fqn": "jsii-calc.IRandomNumberGenerator", + "kind": "interface", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 22 + }, + "methods": [ + { + "abstract": true, + "docs": { + "returns": "A random number.", + "stability": "experimental", + "summary": "Returns another random number." + }, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 27 + }, + "name": "next", + "returns": { + "type": { + "primitive": "number" + } + } + } + ], + "name": "IRandomNumberGenerator" }, - "jsii-calc.compliance.IReturnJsii976": { + "jsii-calc.IReturnJsii976": { "assembly": "jsii-calc", "docs": { "stability": "experimental", "summary": "Returns a subclass of a known class which implements an interface." }, - "fqn": "jsii-calc.compliance.IReturnJsii976", + "fqn": "jsii-calc.IReturnJsii976", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 2215 }, "name": "IReturnJsii976", - "namespace": "compliance", "properties": [ { "abstract": true, @@ -5751,12 +5697,12 @@ } ] }, - "jsii-calc.compliance.IReturnsNumber": { + "jsii-calc.IReturnsNumber": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.IReturnsNumber", + "fqn": "jsii-calc.IReturnsNumber", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", @@ -5781,7 +5727,6 @@ } ], "name": "IReturnsNumber", - "namespace": "compliance", "properties": [ { "abstract": true, @@ -5800,61 +5745,102 @@ } ] }, - "jsii-calc.compliance.IStructReturningDelegate": { + "jsii-calc.IStableInterface": { "assembly": "jsii-calc", "docs": { - "stability": "experimental", - "summary": "Verifies that a \"pure\" implementation of an interface works correctly." + "stability": "stable" }, - "fqn": "jsii-calc.compliance.IStructReturningDelegate", + "fqn": "jsii-calc.IStableInterface", "kind": "interface", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2403 + "filename": "lib/stability.ts", + "line": 44 }, "methods": [ { "abstract": true, "docs": { - "stability": "experimental" + "stability": "stable" }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2404 + "filename": "lib/stability.ts", + "line": 48 }, - "name": "returnStruct", - "returns": { - "type": { - "fqn": "jsii-calc.compliance.StructB" - } - } + "name": "method" } ], - "name": "IStructReturningDelegate", - "namespace": "compliance" - }, - "jsii-calc.compliance.ImplementInternalInterface": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.compliance.ImplementInternalInterface", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1556 - }, - "name": "ImplementInternalInterface", - "namespace": "compliance", + "name": "IStableInterface", "properties": [ { + "abstract": true, "docs": { - "stability": "experimental" + "stability": "stable" }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1557 + "filename": "lib/stability.ts", + "line": 46 + }, + "name": "mutableProperty", + "optional": true, + "type": { + "primitive": "number" + } + } + ] + }, + "jsii-calc.IStructReturningDelegate": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Verifies that a \"pure\" implementation of an interface works correctly." + }, + "fqn": "jsii-calc.IStructReturningDelegate", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2403 + }, + "methods": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2404 + }, + "name": "returnStruct", + "returns": { + "type": { + "fqn": "jsii-calc.StructB" + } + } + } + ], + "name": "IStructReturningDelegate" + }, + "jsii-calc.ImplementInternalInterface": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.ImplementInternalInterface", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1556 + }, + "name": "ImplementInternalInterface", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1557 }, "name": "prop", "type": { @@ -5863,12 +5849,12 @@ } ] }, - "jsii-calc.compliance.Implementation": { + "jsii-calc.Implementation": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.Implementation", + "fqn": "jsii-calc.Implementation", "initializer": {}, "kind": "class", "locationInModule": { @@ -5876,7 +5862,6 @@ "line": 1987 }, "name": "Implementation", - "namespace": "compliance", "properties": [ { "docs": { @@ -5894,15 +5879,15 @@ } ] }, - "jsii-calc.compliance.ImplementsInterfaceWithInternal": { + "jsii-calc.ImplementsInterfaceWithInternal": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.ImplementsInterfaceWithInternal", + "fqn": "jsii-calc.ImplementsInterfaceWithInternal", "initializer": {}, "interfaces": [ - "jsii-calc.compliance.IInterfaceWithInternal" + "jsii-calc.IInterfaceWithInternal" ], "kind": "class", "locationInModule": { @@ -5919,34 +5904,32 @@ "line": 1520 }, "name": "visible", - "overrides": "jsii-calc.compliance.IInterfaceWithInternal" + "overrides": "jsii-calc.IInterfaceWithInternal" } ], - "name": "ImplementsInterfaceWithInternal", - "namespace": "compliance" + "name": "ImplementsInterfaceWithInternal" }, - "jsii-calc.compliance.ImplementsInterfaceWithInternalSubclass": { + "jsii-calc.ImplementsInterfaceWithInternalSubclass": { "assembly": "jsii-calc", - "base": "jsii-calc.compliance.ImplementsInterfaceWithInternal", + "base": "jsii-calc.ImplementsInterfaceWithInternal", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.ImplementsInterfaceWithInternalSubclass", + "fqn": "jsii-calc.ImplementsInterfaceWithInternalSubclass", "initializer": {}, "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", "line": 1532 }, - "name": "ImplementsInterfaceWithInternalSubclass", - "namespace": "compliance" + "name": "ImplementsInterfaceWithInternalSubclass" }, - "jsii-calc.compliance.ImplementsPrivateInterface": { + "jsii-calc.ImplementsPrivateInterface": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.ImplementsPrivateInterface", + "fqn": "jsii-calc.ImplementsPrivateInterface", "initializer": {}, "kind": "class", "locationInModule": { @@ -5954,7 +5937,6 @@ "line": 1560 }, "name": "ImplementsPrivateInterface", - "namespace": "compliance", "properties": [ { "docs": { @@ -5971,13 +5953,13 @@ } ] }, - "jsii-calc.compliance.ImplictBaseOfBase": { + "jsii-calc.ImplictBaseOfBase": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.ImplictBaseOfBase", + "fqn": "jsii-calc.ImplictBaseOfBase", "interfaces": [ "@scope/jsii-calc-base.BaseProps" ], @@ -5987,7 +5969,6 @@ "line": 1025 }, "name": "ImplictBaseOfBase", - "namespace": "compliance", "properties": [ { "abstract": true, @@ -6006,16 +5987,16 @@ } ] }, - "jsii-calc.compliance.InbetweenClass": { + "jsii-calc.InbetweenClass": { "assembly": "jsii-calc", - "base": "jsii-calc.compliance.PublicClass", + "base": "jsii-calc.PublicClass", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.InbetweenClass", + "fqn": "jsii-calc.InbetweenClass", "initializer": {}, "interfaces": [ - "jsii-calc.compliance.IPublicInterface2" + "jsii-calc.IPublicInterface2" ], "kind": "class", "locationInModule": { @@ -6032,7 +6013,7 @@ "line": 1379 }, "name": "ciao", - "overrides": "jsii-calc.compliance.IPublicInterface2", + "overrides": "jsii-calc.IPublicInterface2", "returns": { "type": { "primitive": "string" @@ -6040,17 +6021,16 @@ } } ], - "name": "InbetweenClass", - "namespace": "compliance" + "name": "InbetweenClass" }, - "jsii-calc.compliance.InterfaceCollections": { + "jsii-calc.InterfaceCollections": { "assembly": "jsii-calc", "docs": { "remarks": "See: https://github.com/aws/jsii/issues/1196", "stability": "experimental", "summary": "Verifies that collections of interfaces or structs are correctly handled." }, - "fqn": "jsii-calc.compliance.InterfaceCollections", + "fqn": "jsii-calc.InterfaceCollections", "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", @@ -6070,7 +6050,7 @@ "type": { "collection": { "elementtype": { - "fqn": "jsii-calc.compliance.IBell" + "fqn": "jsii-calc.IBell" }, "kind": "array" } @@ -6091,7 +6071,7 @@ "type": { "collection": { "elementtype": { - "fqn": "jsii-calc.compliance.StructA" + "fqn": "jsii-calc.StructA" }, "kind": "array" } @@ -6112,7 +6092,7 @@ "type": { "collection": { "elementtype": { - "fqn": "jsii-calc.compliance.IBell" + "fqn": "jsii-calc.IBell" }, "kind": "map" } @@ -6133,7 +6113,7 @@ "type": { "collection": { "elementtype": { - "fqn": "jsii-calc.compliance.StructA" + "fqn": "jsii-calc.StructA" }, "kind": "map" } @@ -6142,15 +6122,14 @@ "static": true } ], - "name": "InterfaceCollections", - "namespace": "compliance" + "name": "InterfaceCollections" }, - "jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Foo": { + "jsii-calc.InterfaceInNamespaceIncludesClasses.Foo": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Foo", + "fqn": "jsii-calc.InterfaceInNamespaceIncludesClasses.Foo", "initializer": {}, "kind": "class", "locationInModule": { @@ -6158,7 +6137,7 @@ "line": 1059 }, "name": "Foo", - "namespace": "compliance.InterfaceInNamespaceIncludesClasses", + "namespace": "InterfaceInNamespaceIncludesClasses", "properties": [ { "docs": { @@ -6176,20 +6155,20 @@ } ] }, - "jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Hello": { + "jsii-calc.InterfaceInNamespaceIncludesClasses.Hello": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Hello", + "fqn": "jsii-calc.InterfaceInNamespaceIncludesClasses.Hello", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 1063 }, "name": "Hello", - "namespace": "compliance.InterfaceInNamespaceIncludesClasses", + "namespace": "InterfaceInNamespaceIncludesClasses", "properties": [ { "abstract": true, @@ -6208,20 +6187,20 @@ } ] }, - "jsii-calc.compliance.InterfaceInNamespaceOnlyInterface.Hello": { + "jsii-calc.InterfaceInNamespaceOnlyInterface.Hello": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.InterfaceInNamespaceOnlyInterface.Hello", + "fqn": "jsii-calc.InterfaceInNamespaceOnlyInterface.Hello", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 1051 }, "name": "Hello", - "namespace": "compliance.InterfaceInNamespaceOnlyInterface", + "namespace": "InterfaceInNamespaceOnlyInterface", "properties": [ { "abstract": true, @@ -6240,13 +6219,13 @@ } ] }, - "jsii-calc.compliance.InterfacesMaker": { + "jsii-calc.InterfacesMaker": { "assembly": "jsii-calc", "docs": { "stability": "experimental", "summary": "We can return arrays of interfaces See aws/aws-cdk#2362." }, - "fqn": "jsii-calc.compliance.InterfacesMaker", + "fqn": "jsii-calc.InterfacesMaker", "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", @@ -6283,15 +6262,138 @@ "static": true } ], - "name": "InterfacesMaker", - "namespace": "compliance" + "name": "InterfacesMaker" + }, + "jsii-calc.JSII417Derived": { + "assembly": "jsii-calc", + "base": "jsii-calc.JSII417PublicBaseOfBase", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.JSII417Derived", + "initializer": { + "docs": { + "stability": "experimental" + }, + "parameters": [ + { + "name": "property", + "type": { + "primitive": "string" + } + } + ] + }, + "kind": "class", + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 20 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 21 + }, + "name": "bar" + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 24 + }, + "name": "baz" + } + ], + "name": "JSII417Derived", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 15 + }, + "name": "property", + "protected": true, + "type": { + "primitive": "string" + } + } + ] + }, + "jsii-calc.JSII417PublicBaseOfBase": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.JSII417PublicBaseOfBase", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 8 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 9 + }, + "name": "makeInstance", + "returns": { + "type": { + "fqn": "jsii-calc.JSII417PublicBaseOfBase" + } + }, + "static": true + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 12 + }, + "name": "foo" + } + ], + "name": "JSII417PublicBaseOfBase", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 6 + }, + "name": "hasRoot", + "type": { + "primitive": "boolean" + } + } + ] }, - "jsii-calc.compliance.JSObjectLiteralForInterface": { + "jsii-calc.JSObjectLiteralForInterface": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.JSObjectLiteralForInterface", + "fqn": "jsii-calc.JSObjectLiteralForInterface", "initializer": {}, "kind": "class", "locationInModule": { @@ -6330,15 +6432,14 @@ } } ], - "name": "JSObjectLiteralForInterface", - "namespace": "compliance" + "name": "JSObjectLiteralForInterface" }, - "jsii-calc.compliance.JSObjectLiteralToNative": { + "jsii-calc.JSObjectLiteralToNative": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.JSObjectLiteralToNative", + "fqn": "jsii-calc.JSObjectLiteralToNative", "initializer": {}, "kind": "class", "locationInModule": { @@ -6357,20 +6458,19 @@ "name": "returnLiteral", "returns": { "type": { - "fqn": "jsii-calc.compliance.JSObjectLiteralToNativeClass" + "fqn": "jsii-calc.JSObjectLiteralToNativeClass" } } } ], - "name": "JSObjectLiteralToNative", - "namespace": "compliance" + "name": "JSObjectLiteralToNative" }, - "jsii-calc.compliance.JSObjectLiteralToNativeClass": { + "jsii-calc.JSObjectLiteralToNativeClass": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.JSObjectLiteralToNativeClass", + "fqn": "jsii-calc.JSObjectLiteralToNativeClass", "initializer": {}, "kind": "class", "locationInModule": { @@ -6378,7 +6478,6 @@ "line": 242 }, "name": "JSObjectLiteralToNativeClass", - "namespace": "compliance", "properties": [ { "docs": { @@ -6408,12 +6507,12 @@ } ] }, - "jsii-calc.compliance.JavaReservedWords": { + "jsii-calc.JavaReservedWords": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.JavaReservedWords", + "fqn": "jsii-calc.JavaReservedWords", "initializer": {}, "kind": "class", "locationInModule": { @@ -6943,7 +7042,6 @@ } ], "name": "JavaReservedWords", - "namespace": "compliance", "properties": [ { "docs": { @@ -6960,13 +7058,48 @@ } ] }, - "jsii-calc.compliance.JsiiAgent": { + "jsii-calc.Jsii487Derived": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.Jsii487Derived", + "initializer": {}, + "interfaces": [ + "jsii-calc.IJsii487External2", + "jsii-calc.IJsii487External" + ], + "kind": "class", + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 48 + }, + "name": "Jsii487Derived" + }, + "jsii-calc.Jsii496Derived": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.Jsii496Derived", + "initializer": {}, + "interfaces": [ + "jsii-calc.IJsii496" + ], + "kind": "class", + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 56 + }, + "name": "Jsii496Derived" + }, + "jsii-calc.JsiiAgent": { "assembly": "jsii-calc", "docs": { "stability": "experimental", "summary": "Host runtime version should be set via JSII_AGENT." }, - "fqn": "jsii-calc.compliance.JsiiAgent", + "fqn": "jsii-calc.JsiiAgent", "initializer": {}, "kind": "class", "locationInModule": { @@ -6974,7 +7107,6 @@ "line": 1343 }, "name": "JsiiAgent", - "namespace": "compliance", "properties": [ { "docs": { @@ -6995,14 +7127,14 @@ } ] }, - "jsii-calc.compliance.JsonFormatter": { + "jsii-calc.JsonFormatter": { "assembly": "jsii-calc", "docs": { "see": "https://github.com/aws/aws-cdk/issues/5066", "stability": "experimental", "summary": "Make sure structs are un-decorated on the way in." }, - "fqn": "jsii-calc.compliance.JsonFormatter", + "fqn": "jsii-calc.JsonFormatter", "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", @@ -7244,24 +7376,22 @@ "static": true } ], - "name": "JsonFormatter", - "namespace": "compliance" + "name": "JsonFormatter" }, - "jsii-calc.compliance.LoadBalancedFargateServiceProps": { + "jsii-calc.LoadBalancedFargateServiceProps": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental", "summary": "jsii#298: show default values in sphinx documentation, and respect newlines." }, - "fqn": "jsii-calc.compliance.LoadBalancedFargateServiceProps", + "fqn": "jsii-calc.LoadBalancedFargateServiceProps", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 1255 }, "name": "LoadBalancedFargateServiceProps", - "namespace": "compliance", "properties": [ { "abstract": true, @@ -7358,64 +7488,108 @@ } ] }, - "jsii-calc.compliance.NestedStruct": { + "jsii-calc.MethodNamedProperty": { "assembly": "jsii-calc", - "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.NestedStruct", - "kind": "interface", + "fqn": "jsii-calc.MethodNamedProperty", + "initializer": {}, + "kind": "class", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2191 + "filename": "lib/calculator.ts", + "line": 386 }, - "name": "NestedStruct", - "namespace": "compliance", + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 387 + }, + "name": "property", + "returns": { + "type": { + "primitive": "string" + } + } + } + ], + "name": "MethodNamedProperty", "properties": [ { - "abstract": true, "docs": { - "stability": "experimental", - "summary": "When provided, must be > 0." + "stability": "experimental" }, "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2195 + "filename": "lib/calculator.ts", + "line": 391 }, - "name": "numberProp", + "name": "elite", "type": { "primitive": "number" } } ] }, - "jsii-calc.compliance.NodeStandardLibrary": { + "jsii-calc.Multiply": { "assembly": "jsii-calc", + "base": "jsii-calc.BinaryOperation", "docs": { "stability": "experimental", - "summary": "Test fixture to verify that jsii modules can use the node standard library." - }, - "fqn": "jsii-calc.compliance.NodeStandardLibrary", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 977 + "summary": "The \"*\" binary operation." }, - "methods": [ - { - "docs": { - "returns": "\"6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50\"", - "stability": "experimental", - "summary": "Uses node.js \"crypto\" module to calculate sha256 of a string." - }, + "fqn": "jsii-calc.Multiply", + "initializer": { + "docs": { + "stability": "experimental", + "summary": "Creates a BinaryOperation." + }, + "parameters": [ + { + "docs": { + "summary": "Left-hand side operand." + }, + "name": "lhs", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" + } + }, + { + "docs": { + "summary": "Right-hand side operand." + }, + "name": "rhs", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" + } + } + ] + }, + "interfaces": [ + "jsii-calc.IFriendlier", + "jsii-calc.IRandomNumberGenerator" + ], + "kind": "class", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 68 + }, + "methods": [ + { + "docs": { + "stability": "experimental", + "summary": "Say farewell." + }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1006 + "filename": "lib/calculator.ts", + "line": 81 }, - "name": "cryptoSha256", + "name": "farewell", + "overrides": "jsii-calc.IFriendlier", "returns": { "type": { "primitive": "string" @@ -7423,17 +7597,16 @@ } }, { - "async": true, "docs": { - "returns": "\"Hello, resource!\"", "stability": "experimental", - "summary": "Reads a local resource file (resource.txt) asynchronously." + "summary": "Say goodbye." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 982 + "filename": "lib/calculator.ts", + "line": 77 }, - "name": "fsReadFile", + "name": "goodbye", + "overrides": "jsii-calc.IFriendlier", "returns": { "type": { "primitive": "string" @@ -7442,15 +7615,32 @@ }, { "docs": { - "returns": "\"Hello, resource! SYNC!\"", "stability": "experimental", - "summary": "Sync version of fsReadFile." + "summary": "Returns another random number." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 991 + "filename": "lib/calculator.ts", + "line": 85 }, - "name": "fsReadFileSync", + "name": "next", + "overrides": "jsii-calc.IRandomNumberGenerator", + "returns": { + "type": { + "primitive": "number" + } + } + }, + { + "docs": { + "stability": "experimental", + "summary": "String representation of the value." + }, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 73 + }, + "name": "toString", + "overrides": "@scope/jsii-calc-lib.Operation", "returns": { "type": { "primitive": "string" @@ -7458,193 +7648,428 @@ } } ], - "name": "NodeStandardLibrary", - "namespace": "compliance", + "name": "Multiply", "properties": [ { "docs": { "stability": "experimental", - "summary": "Returns the current os.platform() from the \"os\" node module." + "summary": "The value." }, "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 998 + "filename": "lib/calculator.ts", + "line": 69 }, - "name": "osPlatform", + "name": "value", + "overrides": "@scope/jsii-calc-lib.Value", "type": { - "primitive": "string" + "primitive": "number" } } ] }, - "jsii-calc.compliance.NullShouldBeTreatedAsUndefined": { + "jsii-calc.Negate": { "assembly": "jsii-calc", + "base": "jsii-calc.UnaryOperation", "docs": { "stability": "experimental", - "summary": "jsii#282, aws-cdk#157: null should be treated as \"undefined\"." + "summary": "The negation operation (\"-value\")." }, - "fqn": "jsii-calc.compliance.NullShouldBeTreatedAsUndefined", + "fqn": "jsii-calc.Negate", "initializer": { "docs": { "stability": "experimental" }, "parameters": [ { - "name": "_param1", - "type": { - "primitive": "string" - } - }, - { - "name": "optional", - "optional": true, + "name": "operand", "type": { - "primitive": "any" + "fqn": "@scope/jsii-calc-lib.Value" } } ] }, + "interfaces": [ + "jsii-calc.IFriendlier" + ], "kind": "class", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1204 + "filename": "lib/calculator.ts", + "line": 102 }, "methods": [ { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Say farewell." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1213 + "filename": "lib/calculator.ts", + "line": 119 }, - "name": "giveMeUndefined", - "parameters": [ - { - "name": "value", - "optional": true, - "type": { - "primitive": "any" - } + "name": "farewell", + "overrides": "jsii-calc.IFriendlier", + "returns": { + "type": { + "primitive": "string" } - ] + } }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Say goodbye." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1219 + "filename": "lib/calculator.ts", + "line": 115 }, - "name": "giveMeUndefinedInsideAnObject", - "parameters": [ - { - "name": "input", - "type": { - "fqn": "jsii-calc.compliance.NullShouldBeTreatedAsUndefinedData" - } + "name": "goodbye", + "overrides": "jsii-calc.IFriendlier", + "returns": { + "type": { + "primitive": "string" } - ] + } }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Say hello!" }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1234 + "filename": "lib/calculator.ts", + "line": 111 }, - "name": "verifyPropertyIsUndefined" + "name": "hello", + "overrides": "@scope/jsii-calc-lib.IFriendly", + "returns": { + "type": { + "primitive": "string" + } + } + }, + { + "docs": { + "stability": "experimental", + "summary": "String representation of the value." + }, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 107 + }, + "name": "toString", + "overrides": "@scope/jsii-calc-lib.Operation", + "returns": { + "type": { + "primitive": "string" + } + } } ], - "name": "NullShouldBeTreatedAsUndefined", - "namespace": "compliance", + "name": "Negate", "properties": [ { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "The value." }, + "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1205 + "filename": "lib/calculator.ts", + "line": 103 }, - "name": "changeMeToUndefined", - "optional": true, + "name": "value", + "overrides": "@scope/jsii-calc-lib.Value", "type": { - "primitive": "string" + "primitive": "number" } } ] }, - "jsii-calc.compliance.NullShouldBeTreatedAsUndefinedData": { + "jsii-calc.NestedStruct": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.NullShouldBeTreatedAsUndefinedData", + "fqn": "jsii-calc.NestedStruct", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1241 + "line": 2191 }, - "name": "NullShouldBeTreatedAsUndefinedData", - "namespace": "compliance", + "name": "NestedStruct", "properties": [ { "abstract": true, "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1243 - }, - "name": "arrayWithThreeElementsAndUndefinedAsSecondArgument", - "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "array" - } - } - }, - { - "abstract": true, - "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "When provided, must be > 0." }, "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1242 + "line": 2195 }, - "name": "thisShouldBeUndefined", - "optional": true, + "name": "numberProp", "type": { - "primitive": "any" + "primitive": "number" } } ] }, - "jsii-calc.compliance.NumberGenerator": { + "jsii-calc.NodeStandardLibrary": { "assembly": "jsii-calc", "docs": { "stability": "experimental", - "summary": "This allows us to test that a reference can be stored for objects that implement interfaces." + "summary": "Test fixture to verify that jsii modules can use the node standard library." }, - "fqn": "jsii-calc.compliance.NumberGenerator", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "generator", + "fqn": "jsii-calc.NodeStandardLibrary", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 977 + }, + "methods": [ + { + "docs": { + "returns": "\"6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50\"", + "stability": "experimental", + "summary": "Uses node.js \"crypto\" module to calculate sha256 of a string." + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1006 + }, + "name": "cryptoSha256", + "returns": { + "type": { + "primitive": "string" + } + } + }, + { + "async": true, + "docs": { + "returns": "\"Hello, resource!\"", + "stability": "experimental", + "summary": "Reads a local resource file (resource.txt) asynchronously." + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 982 + }, + "name": "fsReadFile", + "returns": { + "type": { + "primitive": "string" + } + } + }, + { + "docs": { + "returns": "\"Hello, resource! SYNC!\"", + "stability": "experimental", + "summary": "Sync version of fsReadFile." + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 991 + }, + "name": "fsReadFileSync", + "returns": { + "type": { + "primitive": "string" + } + } + } + ], + "name": "NodeStandardLibrary", + "properties": [ + { + "docs": { + "stability": "experimental", + "summary": "Returns the current os.platform() from the \"os\" node module." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 998 + }, + "name": "osPlatform", + "type": { + "primitive": "string" + } + } + ] + }, + "jsii-calc.NullShouldBeTreatedAsUndefined": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "jsii#282, aws-cdk#157: null should be treated as \"undefined\"." + }, + "fqn": "jsii-calc.NullShouldBeTreatedAsUndefined", + "initializer": { + "docs": { + "stability": "experimental" + }, + "parameters": [ + { + "name": "_param1", + "type": { + "primitive": "string" + } + }, + { + "name": "optional", + "optional": true, + "type": { + "primitive": "any" + } + } + ] + }, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1204 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1213 + }, + "name": "giveMeUndefined", + "parameters": [ + { + "name": "value", + "optional": true, + "type": { + "primitive": "any" + } + } + ] + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1219 + }, + "name": "giveMeUndefinedInsideAnObject", + "parameters": [ + { + "name": "input", + "type": { + "fqn": "jsii-calc.NullShouldBeTreatedAsUndefinedData" + } + } + ] + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1234 + }, + "name": "verifyPropertyIsUndefined" + } + ], + "name": "NullShouldBeTreatedAsUndefined", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1205 + }, + "name": "changeMeToUndefined", + "optional": true, + "type": { + "primitive": "string" + } + } + ] + }, + "jsii-calc.NullShouldBeTreatedAsUndefinedData": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.NullShouldBeTreatedAsUndefinedData", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1241 + }, + "name": "NullShouldBeTreatedAsUndefinedData", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1243 + }, + "name": "arrayWithThreeElementsAndUndefinedAsSecondArgument", + "type": { + "collection": { + "elementtype": { + "primitive": "any" + }, + "kind": "array" + } + } + }, + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1242 + }, + "name": "thisShouldBeUndefined", + "optional": true, + "type": { + "primitive": "any" + } + } + ] + }, + "jsii-calc.NumberGenerator": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "This allows us to test that a reference can be stored for objects that implement interfaces." + }, + "fqn": "jsii-calc.NumberGenerator", + "initializer": { + "docs": { + "stability": "experimental" + }, + "parameters": [ + { + "name": "generator", "type": { "fqn": "jsii-calc.IRandomNumberGenerator" } @@ -7697,7 +8122,6 @@ } ], "name": "NumberGenerator", - "namespace": "compliance", "properties": [ { "docs": { @@ -7714,13 +8138,13 @@ } ] }, - "jsii-calc.compliance.ObjectRefsInCollections": { + "jsii-calc.ObjectRefsInCollections": { "assembly": "jsii-calc", "docs": { "stability": "experimental", "summary": "Verify that object references can be passed inside collections." }, - "fqn": "jsii-calc.compliance.ObjectRefsInCollections", + "fqn": "jsii-calc.ObjectRefsInCollections", "initializer": {}, "kind": "class", "locationInModule": { @@ -7787,15 +8211,14 @@ } } ], - "name": "ObjectRefsInCollections", - "namespace": "compliance" + "name": "ObjectRefsInCollections" }, - "jsii-calc.compliance.ObjectWithPropertyProvider": { + "jsii-calc.ObjectWithPropertyProvider": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.ObjectWithPropertyProvider", + "fqn": "jsii-calc.ObjectWithPropertyProvider", "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", @@ -7813,38 +8236,66 @@ "name": "provide", "returns": { "type": { - "fqn": "jsii-calc.compliance.IObjectWithProperty" + "fqn": "jsii-calc.IObjectWithProperty" } }, "static": true } ], - "name": "ObjectWithPropertyProvider", - "namespace": "compliance" + "name": "ObjectWithPropertyProvider" }, - "jsii-calc.compliance.OptionalArgumentInvoker": { + "jsii-calc.Old": { "assembly": "jsii-calc", "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.compliance.OptionalArgumentInvoker", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "delegate", - "type": { - "fqn": "jsii-calc.compliance.IInterfaceWithOptionalMethodArguments" - } - } - ] + "deprecated": "Use the new class", + "stability": "deprecated", + "summary": "Old class." }, + "fqn": "jsii-calc.Old", + "initializer": {}, "kind": "class", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1075 + "filename": "lib/documented.ts", + "line": 54 + }, + "methods": [ + { + "docs": { + "stability": "deprecated", + "summary": "Doo wop that thing." + }, + "locationInModule": { + "filename": "lib/documented.ts", + "line": 58 + }, + "name": "doAThing" + } + ], + "name": "Old" + }, + "jsii-calc.OptionalArgumentInvoker": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.OptionalArgumentInvoker", + "initializer": { + "docs": { + "stability": "experimental" + }, + "parameters": [ + { + "name": "delegate", + "type": { + "fqn": "jsii-calc.IInterfaceWithOptionalMethodArguments" + } + } + ] + }, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1075 }, "methods": [ { @@ -7868,15 +8319,14 @@ "name": "invokeWithoutOptional" } ], - "name": "OptionalArgumentInvoker", - "namespace": "compliance" + "name": "OptionalArgumentInvoker" }, - "jsii-calc.compliance.OptionalConstructorArgument": { + "jsii-calc.OptionalConstructorArgument": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.OptionalConstructorArgument", + "fqn": "jsii-calc.OptionalConstructorArgument", "initializer": { "docs": { "stability": "experimental" @@ -7909,7 +8359,6 @@ "line": 295 }, "name": "OptionalConstructorArgument", - "namespace": "compliance", "properties": [ { "docs": { @@ -7956,20 +8405,19 @@ } ] }, - "jsii-calc.compliance.OptionalStruct": { + "jsii-calc.OptionalStruct": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.OptionalStruct", + "fqn": "jsii-calc.OptionalStruct", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 1650 }, "name": "OptionalStruct", - "namespace": "compliance", "properties": [ { "abstract": true, @@ -7989,12 +8437,12 @@ } ] }, - "jsii-calc.compliance.OptionalStructConsumer": { + "jsii-calc.OptionalStructConsumer": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.OptionalStructConsumer", + "fqn": "jsii-calc.OptionalStructConsumer", "initializer": { "docs": { "stability": "experimental" @@ -8004,7 +8452,7 @@ "name": "optionalStruct", "optional": true, "type": { - "fqn": "jsii-calc.compliance.OptionalStruct" + "fqn": "jsii-calc.OptionalStruct" } } ] @@ -8015,7 +8463,6 @@ "line": 1641 }, "name": "OptionalStructConsumer", - "namespace": "compliance", "properties": [ { "docs": { @@ -8048,13 +8495,13 @@ } ] }, - "jsii-calc.compliance.OverridableProtectedMember": { + "jsii-calc.OverridableProtectedMember": { "assembly": "jsii-calc", "docs": { "see": "https://github.com/aws/jsii/issues/903", "stability": "experimental" }, - "fqn": "jsii-calc.compliance.OverridableProtectedMember", + "fqn": "jsii-calc.OverridableProtectedMember", "initializer": {}, "kind": "class", "locationInModule": { @@ -8105,7 +8552,6 @@ } ], "name": "OverridableProtectedMember", - "namespace": "compliance", "properties": [ { "docs": { @@ -8138,12 +8584,12 @@ } ] }, - "jsii-calc.compliance.OverrideReturnsObject": { + "jsii-calc.OverrideReturnsObject": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.OverrideReturnsObject", + "fqn": "jsii-calc.OverrideReturnsObject", "initializer": {}, "kind": "class", "locationInModule": { @@ -8164,7 +8610,7 @@ { "name": "obj", "type": { - "fqn": "jsii-calc.compliance.IReturnsNumber" + "fqn": "jsii-calc.IReturnsNumber" } } ], @@ -8175,24 +8621,22 @@ } } ], - "name": "OverrideReturnsObject", - "namespace": "compliance" + "name": "OverrideReturnsObject" }, - "jsii-calc.compliance.ParentStruct982": { + "jsii-calc.ParentStruct982": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental", "summary": "https://github.com/aws/jsii/issues/982." }, - "fqn": "jsii-calc.compliance.ParentStruct982", + "fqn": "jsii-calc.ParentStruct982", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 2241 }, "name": "ParentStruct982", - "namespace": "compliance", "properties": [ { "abstract": true, @@ -8211,13 +8655,13 @@ } ] }, - "jsii-calc.compliance.PartiallyInitializedThisConsumer": { + "jsii-calc.PartiallyInitializedThisConsumer": { "abstract": true, "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.PartiallyInitializedThisConsumer", + "fqn": "jsii-calc.PartiallyInitializedThisConsumer", "initializer": {}, "kind": "class", "locationInModule": { @@ -8239,7 +8683,7 @@ { "name": "obj", "type": { - "fqn": "jsii-calc.compliance.ConstructorPassesThisOut" + "fqn": "jsii-calc.ConstructorPassesThisOut" } }, { @@ -8251,7 +8695,7 @@ { "name": "ev", "type": { - "fqn": "jsii-calc.compliance.AllTypesEnum" + "fqn": "jsii-calc.AllTypesEnum" } } ], @@ -8262,15 +8706,14 @@ } } ], - "name": "PartiallyInitializedThisConsumer", - "namespace": "compliance" + "name": "PartiallyInitializedThisConsumer" }, - "jsii-calc.compliance.Polymorphism": { + "jsii-calc.Polymorphism": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.Polymorphism", + "fqn": "jsii-calc.Polymorphism", "initializer": {}, "kind": "class", "locationInModule": { @@ -8302,15 +8745,149 @@ } } ], - "name": "Polymorphism", - "namespace": "compliance" + "name": "Polymorphism" + }, + "jsii-calc.Power": { + "assembly": "jsii-calc", + "base": "jsii-calc.composition.CompositeOperation", + "docs": { + "stability": "experimental", + "summary": "The power operation." + }, + "fqn": "jsii-calc.Power", + "initializer": { + "docs": { + "stability": "experimental", + "summary": "Creates a Power operation." + }, + "parameters": [ + { + "docs": { + "summary": "The base of the power." + }, + "name": "base", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" + } + }, + { + "docs": { + "summary": "The number of times to multiply." + }, + "name": "pow", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" + } + } + ] + }, + "kind": "class", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 211 + }, + "name": "Power", + "properties": [ + { + "docs": { + "stability": "experimental", + "summary": "The base of the power." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 218 + }, + "name": "base", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" + } + }, + { + "docs": { + "remarks": "Must be implemented by derived classes.", + "stability": "experimental", + "summary": "The expression that this operation consists of." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 222 + }, + "name": "expression", + "overrides": "jsii-calc.composition.CompositeOperation", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" + } + }, + { + "docs": { + "stability": "experimental", + "summary": "The number of times to multiply." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 218 + }, + "name": "pow", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" + } + } + ] + }, + "jsii-calc.PropertyNamedProperty": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Reproduction for https://github.com/aws/jsii/issues/1113 Where a method or property named \"property\" would result in impossible to load Python code." + }, + "fqn": "jsii-calc.PropertyNamedProperty", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 382 + }, + "name": "PropertyNamedProperty", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 383 + }, + "name": "property", + "type": { + "primitive": "string" + } + }, + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 384 + }, + "name": "yetAnoterOne", + "type": { + "primitive": "boolean" + } + } + ] }, - "jsii-calc.compliance.PublicClass": { + "jsii-calc.PublicClass": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.PublicClass", + "fqn": "jsii-calc.PublicClass", "initializer": {}, "kind": "class", "locationInModule": { @@ -8329,15 +8906,14 @@ "name": "hello" } ], - "name": "PublicClass", - "namespace": "compliance" + "name": "PublicClass" }, - "jsii-calc.compliance.PythonReservedWords": { + "jsii-calc.PythonReservedWords": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.PythonReservedWords", + "fqn": "jsii-calc.PythonReservedWords", "initializer": {}, "kind": "class", "locationInModule": { @@ -8666,16 +9242,15 @@ "name": "yield" } ], - "name": "PythonReservedWords", - "namespace": "compliance" + "name": "PythonReservedWords" }, - "jsii-calc.compliance.ReferenceEnumFromScopedPackage": { + "jsii-calc.ReferenceEnumFromScopedPackage": { "assembly": "jsii-calc", "docs": { "stability": "experimental", "summary": "See awslabs/jsii#138." }, - "fqn": "jsii-calc.compliance.ReferenceEnumFromScopedPackage", + "fqn": "jsii-calc.ReferenceEnumFromScopedPackage", "initializer": {}, "kind": "class", "locationInModule": { @@ -8719,7 +9294,6 @@ } ], "name": "ReferenceEnumFromScopedPackage", - "namespace": "compliance", "properties": [ { "docs": { @@ -8737,7 +9311,7 @@ } ] }, - "jsii-calc.compliance.ReturnsPrivateImplementationOfInterface": { + "jsii-calc.ReturnsPrivateImplementationOfInterface": { "assembly": "jsii-calc", "docs": { "returns": "an instance of an un-exported class that extends `ExportedBaseClass`, declared as `IPrivatelyImplemented`.", @@ -8745,7 +9319,7 @@ "stability": "experimental", "summary": "Helps ensure the JSII kernel & runtime cooperate correctly when an un-exported instance of a class is returned with a declared type that is an exported interface, and the instance inherits from an exported class." }, - "fqn": "jsii-calc.compliance.ReturnsPrivateImplementationOfInterface", + "fqn": "jsii-calc.ReturnsPrivateImplementationOfInterface", "initializer": {}, "kind": "class", "locationInModule": { @@ -8753,7 +9327,6 @@ "line": 1323 }, "name": "ReturnsPrivateImplementationOfInterface", - "namespace": "compliance", "properties": [ { "docs": { @@ -8766,12 +9339,12 @@ }, "name": "privateImplementation", "type": { - "fqn": "jsii-calc.compliance.IPrivatelyImplemented" + "fqn": "jsii-calc.IPrivatelyImplemented" } } ] }, - "jsii-calc.compliance.RootStruct": { + "jsii-calc.RootStruct": { "assembly": "jsii-calc", "datatype": true, "docs": { @@ -8779,14 +9352,13 @@ "stability": "experimental", "summary": "This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary." }, - "fqn": "jsii-calc.compliance.RootStruct", + "fqn": "jsii-calc.RootStruct", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 2184 }, "name": "RootStruct", - "namespace": "compliance", "properties": [ { "abstract": true, @@ -8817,17 +9389,17 @@ "name": "nestedStruct", "optional": true, "type": { - "fqn": "jsii-calc.compliance.NestedStruct" + "fqn": "jsii-calc.NestedStruct" } } ] }, - "jsii-calc.compliance.RootStructValidator": { + "jsii-calc.RootStructValidator": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.RootStructValidator", + "fqn": "jsii-calc.RootStructValidator", "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", @@ -8847,22 +9419,21 @@ { "name": "struct", "type": { - "fqn": "jsii-calc.compliance.RootStruct" + "fqn": "jsii-calc.RootStruct" } } ], "static": true } ], - "name": "RootStructValidator", - "namespace": "compliance" + "name": "RootStructValidator" }, - "jsii-calc.compliance.RuntimeTypeChecking": { + "jsii-calc.RuntimeTypeChecking": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.RuntimeTypeChecking", + "fqn": "jsii-calc.RuntimeTypeChecking", "initializer": {}, "kind": "class", "locationInModule": { @@ -8955,23 +9526,21 @@ ] } ], - "name": "RuntimeTypeChecking", - "namespace": "compliance" + "name": "RuntimeTypeChecking" }, - "jsii-calc.compliance.SecondLevelStruct": { + "jsii-calc.SecondLevelStruct": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.SecondLevelStruct", + "fqn": "jsii-calc.SecondLevelStruct", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 1799 }, "name": "SecondLevelStruct", - "namespace": "compliance", "properties": [ { "abstract": true, @@ -9008,14 +9577,14 @@ } ] }, - "jsii-calc.compliance.SingleInstanceTwoTypes": { + "jsii-calc.SingleInstanceTwoTypes": { "assembly": "jsii-calc", "docs": { "remarks": "JSII clients can instantiate 2 different strongly-typed wrappers for the same\nobject. Unfortunately, this will break object equality, but if we didn't do\nthis it would break runtime type checks in the JVM or CLR.", "stability": "experimental", "summary": "Test that a single instance can be returned under two different FQNs." }, - "fqn": "jsii-calc.compliance.SingleInstanceTwoTypes", + "fqn": "jsii-calc.SingleInstanceTwoTypes", "initializer": {}, "kind": "class", "locationInModule": { @@ -9034,7 +9603,7 @@ "name": "interface1", "returns": { "type": { - "fqn": "jsii-calc.compliance.InbetweenClass" + "fqn": "jsii-calc.InbetweenClass" } } }, @@ -9049,22 +9618,21 @@ "name": "interface2", "returns": { "type": { - "fqn": "jsii-calc.compliance.IPublicInterface" + "fqn": "jsii-calc.IPublicInterface" } } } ], - "name": "SingleInstanceTwoTypes", - "namespace": "compliance" + "name": "SingleInstanceTwoTypes" }, - "jsii-calc.compliance.SingletonInt": { + "jsii-calc.SingletonInt": { "assembly": "jsii-calc", "docs": { "remarks": "https://github.com/aws/jsii/issues/231", "stability": "experimental", "summary": "Verifies that singleton enums are handled correctly." }, - "fqn": "jsii-calc.compliance.SingletonInt", + "fqn": "jsii-calc.SingletonInt", "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", @@ -9095,16 +9663,15 @@ } } ], - "name": "SingletonInt", - "namespace": "compliance" + "name": "SingletonInt" }, - "jsii-calc.compliance.SingletonIntEnum": { + "jsii-calc.SingletonIntEnum": { "assembly": "jsii-calc", "docs": { "stability": "experimental", "summary": "A singleton integer." }, - "fqn": "jsii-calc.compliance.SingletonIntEnum", + "fqn": "jsii-calc.SingletonIntEnum", "kind": "enum", "locationInModule": { "filename": "lib/compliance.ts", @@ -9119,17 +9686,16 @@ "name": "SINGLETON_INT" } ], - "name": "SingletonIntEnum", - "namespace": "compliance" + "name": "SingletonIntEnum" }, - "jsii-calc.compliance.SingletonString": { + "jsii-calc.SingletonString": { "assembly": "jsii-calc", "docs": { "remarks": "https://github.com/aws/jsii/issues/231", "stability": "experimental", "summary": "Verifies that singleton enums are handled correctly." }, - "fqn": "jsii-calc.compliance.SingletonString", + "fqn": "jsii-calc.SingletonString", "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", @@ -9160,16 +9726,15 @@ } } ], - "name": "SingletonString", - "namespace": "compliance" + "name": "SingletonString" }, - "jsii-calc.compliance.SingletonStringEnum": { + "jsii-calc.SingletonStringEnum": { "assembly": "jsii-calc", "docs": { "stability": "experimental", "summary": "A singleton string." }, - "fqn": "jsii-calc.compliance.SingletonStringEnum", + "fqn": "jsii-calc.SingletonStringEnum", "kind": "enum", "locationInModule": { "filename": "lib/compliance.ts", @@ -9184,15 +9749,60 @@ "name": "SINGLETON_STRING" } ], - "name": "SingletonStringEnum", - "namespace": "compliance" + "name": "SingletonStringEnum" + }, + "jsii-calc.SmellyStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.SmellyStruct", + "kind": "interface", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 393 + }, + "name": "SmellyStruct", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 394 + }, + "name": "property", + "type": { + "primitive": "string" + } + }, + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 395 + }, + "name": "yetAnoterOne", + "type": { + "primitive": "boolean" + } + } + ] }, - "jsii-calc.compliance.SomeTypeJsii976": { + "jsii-calc.SomeTypeJsii976": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.SomeTypeJsii976", + "fqn": "jsii-calc.SomeTypeJsii976", "initializer": {}, "kind": "class", "locationInModule": { @@ -9227,48 +9837,179 @@ "name": "returnReturn", "returns": { "type": { - "fqn": "jsii-calc.compliance.IReturnJsii976" + "fqn": "jsii-calc.IReturnJsii976" } }, "static": true } ], - "name": "SomeTypeJsii976", - "namespace": "compliance" + "name": "SomeTypeJsii976" }, - "jsii-calc.compliance.StaticContext": { + "jsii-calc.StableClass": { "assembly": "jsii-calc", "docs": { - "remarks": "https://github.com/awslabs/aws-cdk/issues/2304", - "stability": "experimental", - "summary": "This is used to validate the ability to use `this` from within a static context." + "stability": "stable" + }, + "fqn": "jsii-calc.StableClass", + "initializer": { + "docs": { + "stability": "stable" + }, + "parameters": [ + { + "name": "readonlyString", + "type": { + "primitive": "string" + } + }, + { + "name": "mutableNumber", + "optional": true, + "type": { + "primitive": "number" + } + } + ] }, - "fqn": "jsii-calc.compliance.StaticContext", "kind": "class", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1677 + "filename": "lib/stability.ts", + "line": 51 }, "methods": [ { "docs": { - "stability": "experimental" + "stability": "stable" }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1680 + "filename": "lib/stability.ts", + "line": 62 }, - "name": "canAccessStaticContext", - "returns": { - "type": { - "primitive": "boolean" + "name": "method" + } + ], + "name": "StableClass", + "properties": [ + { + "docs": { + "stability": "stable" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/stability.ts", + "line": 53 + }, + "name": "readonlyProperty", + "type": { + "primitive": "string" + } + }, + { + "docs": { + "stability": "stable" + }, + "locationInModule": { + "filename": "lib/stability.ts", + "line": 55 + }, + "name": "mutableProperty", + "optional": true, + "type": { + "primitive": "number" + } + } + ] + }, + "jsii-calc.StableEnum": { + "assembly": "jsii-calc", + "docs": { + "stability": "stable" + }, + "fqn": "jsii-calc.StableEnum", + "kind": "enum", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 65 + }, + "members": [ + { + "docs": { + "stability": "stable" + }, + "name": "OPTION_A" + }, + { + "docs": { + "stability": "stable" + }, + "name": "OPTION_B" + } + ], + "name": "StableEnum" + }, + "jsii-calc.StableStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "stable" + }, + "fqn": "jsii-calc.StableStruct", + "kind": "interface", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 39 + }, + "name": "StableStruct", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "stable" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/stability.ts", + "line": 41 + }, + "name": "readonlyProperty", + "type": { + "primitive": "string" + } + } + ] + }, + "jsii-calc.StaticContext": { + "assembly": "jsii-calc", + "docs": { + "remarks": "https://github.com/awslabs/aws-cdk/issues/2304", + "stability": "experimental", + "summary": "This is used to validate the ability to use `this` from within a static context." + }, + "fqn": "jsii-calc.StaticContext", + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1677 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1680 + }, + "name": "canAccessStaticContext", + "returns": { + "type": { + "primitive": "boolean" } }, "static": true } ], "name": "StaticContext", - "namespace": "compliance", "properties": [ { "docs": { @@ -9286,12 +10027,12 @@ } ] }, - "jsii-calc.compliance.Statics": { + "jsii-calc.Statics": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.Statics", + "fqn": "jsii-calc.Statics", "initializer": { "docs": { "stability": "experimental" @@ -9356,7 +10097,6 @@ } ], "name": "Statics", - "namespace": "compliance", "properties": [ { "const": true, @@ -9388,7 +10128,7 @@ "name": "ConstObj", "static": true, "type": { - "fqn": "jsii-calc.compliance.DoubleTrouble" + "fqn": "jsii-calc.DoubleTrouble" } }, { @@ -9443,7 +10183,7 @@ "name": "instance", "static": true, "type": { - "fqn": "jsii-calc.compliance.Statics" + "fqn": "jsii-calc.Statics" } }, { @@ -9476,12 +10216,12 @@ } ] }, - "jsii-calc.compliance.StringEnum": { + "jsii-calc.StringEnum": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.StringEnum", + "fqn": "jsii-calc.StringEnum", "kind": "enum", "locationInModule": { "filename": "lib/compliance.ts", @@ -9507,15 +10247,14 @@ "name": "C" } ], - "name": "StringEnum", - "namespace": "compliance" + "name": "StringEnum" }, - "jsii-calc.compliance.StripInternal": { + "jsii-calc.StripInternal": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.StripInternal", + "fqn": "jsii-calc.StripInternal", "initializer": {}, "kind": "class", "locationInModule": { @@ -9523,7 +10262,6 @@ "line": 1480 }, "name": "StripInternal", - "namespace": "compliance", "properties": [ { "docs": { @@ -9540,21 +10278,20 @@ } ] }, - "jsii-calc.compliance.StructA": { + "jsii-calc.StructA": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental", "summary": "We can serialize and deserialize structs without silently ignoring optional fields." }, - "fqn": "jsii-calc.compliance.StructA", + "fqn": "jsii-calc.StructA", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 2003 }, "name": "StructA", - "namespace": "compliance", "properties": [ { "abstract": true, @@ -9605,21 +10342,20 @@ } ] }, - "jsii-calc.compliance.StructB": { + "jsii-calc.StructB": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental", "summary": "This intentionally overlaps with StructA (where only requiredString is provided) to test htat the kernel properly disambiguates those." }, - "fqn": "jsii-calc.compliance.StructB", + "fqn": "jsii-calc.StructB", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 2012 }, "name": "StructB", - "namespace": "compliance", "properties": [ { "abstract": true, @@ -9665,12 +10401,12 @@ "name": "optionalStructA", "optional": true, "type": { - "fqn": "jsii-calc.compliance.StructA" + "fqn": "jsii-calc.StructA" } } ] }, - "jsii-calc.compliance.StructParameterType": { + "jsii-calc.StructParameterType": { "assembly": "jsii-calc", "datatype": true, "docs": { @@ -9678,14 +10414,13 @@ "stability": "experimental", "summary": "Verifies that, in languages that do keyword lifting (e.g: Python), having a struct member with the same name as a positional parameter results in the correct code being emitted." }, - "fqn": "jsii-calc.compliance.StructParameterType", + "fqn": "jsii-calc.StructParameterType", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 2421 }, "name": "StructParameterType", - "namespace": "compliance", "properties": [ { "abstract": true, @@ -9720,13 +10455,13 @@ } ] }, - "jsii-calc.compliance.StructPassing": { + "jsii-calc.StructPassing": { "assembly": "jsii-calc", "docs": { "stability": "external", "summary": "Just because we can." }, - "fqn": "jsii-calc.compliance.StructPassing", + "fqn": "jsii-calc.StructPassing", "initializer": {}, "kind": "class", "locationInModule": { @@ -9753,7 +10488,7 @@ { "name": "inputs", "type": { - "fqn": "jsii-calc.compliance.TopLevelStruct" + "fqn": "jsii-calc.TopLevelStruct" }, "variadic": true } @@ -9785,27 +10520,26 @@ { "name": "input", "type": { - "fqn": "jsii-calc.compliance.TopLevelStruct" + "fqn": "jsii-calc.TopLevelStruct" } } ], "returns": { "type": { - "fqn": "jsii-calc.compliance.TopLevelStruct" + "fqn": "jsii-calc.TopLevelStruct" } }, "static": true } ], - "name": "StructPassing", - "namespace": "compliance" + "name": "StructPassing" }, - "jsii-calc.compliance.StructUnionConsumer": { + "jsii-calc.StructUnionConsumer": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.StructUnionConsumer", + "fqn": "jsii-calc.StructUnionConsumer", "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", @@ -9828,10 +10562,10 @@ "union": { "types": [ { - "fqn": "jsii-calc.compliance.StructA" + "fqn": "jsii-calc.StructA" }, { - "fqn": "jsii-calc.compliance.StructB" + "fqn": "jsii-calc.StructB" } ] } @@ -9861,10 +10595,10 @@ "union": { "types": [ { - "fqn": "jsii-calc.compliance.StructA" + "fqn": "jsii-calc.StructA" }, { - "fqn": "jsii-calc.compliance.StructB" + "fqn": "jsii-calc.StructB" } ] } @@ -9879,23 +10613,21 @@ "static": true } ], - "name": "StructUnionConsumer", - "namespace": "compliance" + "name": "StructUnionConsumer" }, - "jsii-calc.compliance.StructWithJavaReservedWords": { + "jsii-calc.StructWithJavaReservedWords": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.StructWithJavaReservedWords", + "fqn": "jsii-calc.StructWithJavaReservedWords", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 1827 }, "name": "StructWithJavaReservedWords", - "namespace": "compliance", "properties": [ { "abstract": true, @@ -9962,13 +10694,71 @@ } ] }, - "jsii-calc.compliance.SupportsNiceJavaBuilder": { + "jsii-calc.Sum": { + "assembly": "jsii-calc", + "base": "jsii-calc.composition.CompositeOperation", + "docs": { + "stability": "experimental", + "summary": "An operation that sums multiple values." + }, + "fqn": "jsii-calc.Sum", + "initializer": { + "docs": { + "stability": "experimental" + } + }, + "kind": "class", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 186 + }, + "name": "Sum", + "properties": [ + { + "docs": { + "remarks": "Must be implemented by derived classes.", + "stability": "experimental", + "summary": "The expression that this operation consists of." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 199 + }, + "name": "expression", + "overrides": "jsii-calc.composition.CompositeOperation", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" + } + }, + { + "docs": { + "stability": "experimental", + "summary": "The parts to sum." + }, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 191 + }, + "name": "parts", + "type": { + "collection": { + "elementtype": { + "fqn": "@scope/jsii-calc-lib.Value" + }, + "kind": "array" + } + } + } + ] + }, + "jsii-calc.SupportsNiceJavaBuilder": { "assembly": "jsii-calc", - "base": "jsii-calc.compliance.SupportsNiceJavaBuilderWithRequiredProps", + "base": "jsii-calc.SupportsNiceJavaBuilderWithRequiredProps", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.SupportsNiceJavaBuilder", + "fqn": "jsii-calc.SupportsNiceJavaBuilder", "initializer": { "docs": { "stability": "experimental" @@ -10000,7 +10790,7 @@ "name": "props", "optional": true, "type": { - "fqn": "jsii-calc.compliance.SupportsNiceJavaBuilderProps" + "fqn": "jsii-calc.SupportsNiceJavaBuilderProps" } }, { @@ -10022,7 +10812,6 @@ "line": 1940 }, "name": "SupportsNiceJavaBuilder", - "namespace": "compliance", "properties": [ { "docs": { @@ -10035,7 +10824,7 @@ "line": 1950 }, "name": "id", - "overrides": "jsii-calc.compliance.SupportsNiceJavaBuilderWithRequiredProps", + "overrides": "jsii-calc.SupportsNiceJavaBuilderWithRequiredProps", "type": { "primitive": "number" } @@ -10061,20 +10850,19 @@ } ] }, - "jsii-calc.compliance.SupportsNiceJavaBuilderProps": { + "jsii-calc.SupportsNiceJavaBuilderProps": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.SupportsNiceJavaBuilderProps", + "fqn": "jsii-calc.SupportsNiceJavaBuilderProps", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 1955 }, "name": "SupportsNiceJavaBuilderProps", - "namespace": "compliance", "properties": [ { "abstract": true, @@ -10112,13 +10900,13 @@ } ] }, - "jsii-calc.compliance.SupportsNiceJavaBuilderWithRequiredProps": { + "jsii-calc.SupportsNiceJavaBuilderWithRequiredProps": { "assembly": "jsii-calc", "docs": { "stability": "experimental", "summary": "We can generate fancy builders in Java for classes which take a mix of positional & struct parameters." }, - "fqn": "jsii-calc.compliance.SupportsNiceJavaBuilderWithRequiredProps", + "fqn": "jsii-calc.SupportsNiceJavaBuilderWithRequiredProps", "initializer": { "docs": { "stability": "experimental" @@ -10139,7 +10927,7 @@ }, "name": "props", "type": { - "fqn": "jsii-calc.compliance.SupportsNiceJavaBuilderProps" + "fqn": "jsii-calc.SupportsNiceJavaBuilderProps" } } ] @@ -10150,7 +10938,6 @@ "line": 1927 }, "name": "SupportsNiceJavaBuilderWithRequiredProps", - "namespace": "compliance", "properties": [ { "docs": { @@ -10198,12 +10985,12 @@ } ] }, - "jsii-calc.compliance.SyncVirtualMethods": { + "jsii-calc.SyncVirtualMethods": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.SyncVirtualMethods", + "fqn": "jsii-calc.SyncVirtualMethods", "initializer": {}, "kind": "class", "locationInModule": { @@ -10381,7 +11168,6 @@ } ], "name": "SyncVirtualMethods", - "namespace": "compliance", "properties": [ { "docs": { @@ -10464,12 +11250,12 @@ } ] }, - "jsii-calc.compliance.Thrower": { + "jsii-calc.Thrower": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.Thrower", + "fqn": "jsii-calc.Thrower", "initializer": {}, "kind": "class", "locationInModule": { @@ -10488,23 +11274,21 @@ "name": "throwError" } ], - "name": "Thrower", - "namespace": "compliance" + "name": "Thrower" }, - "jsii-calc.compliance.TopLevelStruct": { + "jsii-calc.TopLevelStruct": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.TopLevelStruct", + "fqn": "jsii-calc.TopLevelStruct", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 1782 }, "name": "TopLevelStruct", - "namespace": "compliance", "properties": [ { "abstract": true, @@ -10541,7 +11325,7 @@ "primitive": "number" }, { - "fqn": "jsii-calc.compliance.SecondLevelStruct" + "fqn": "jsii-calc.SecondLevelStruct" } ] } @@ -10566,20 +11350,64 @@ } ] }, - "jsii-calc.compliance.UnionProperties": { + "jsii-calc.UnaryOperation": { + "abstract": true, + "assembly": "jsii-calc", + "base": "@scope/jsii-calc-lib.Operation", + "docs": { + "stability": "experimental", + "summary": "An operation on a single operand." + }, + "fqn": "jsii-calc.UnaryOperation", + "initializer": { + "docs": { + "stability": "experimental" + }, + "parameters": [ + { + "name": "operand", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" + } + } + ] + }, + "kind": "class", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 93 + }, + "name": "UnaryOperation", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 94 + }, + "name": "operand", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" + } + } + ] + }, + "jsii-calc.UnionProperties": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.UnionProperties", + "fqn": "jsii-calc.UnionProperties", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 963 }, "name": "UnionProperties", - "namespace": "compliance", "properties": [ { "abstract": true, @@ -10602,7 +11430,7 @@ "primitive": "number" }, { - "fqn": "jsii-calc.compliance.AllTypes" + "fqn": "jsii-calc.AllTypes" } ] } @@ -10635,12 +11463,12 @@ } ] }, - "jsii-calc.compliance.UseBundledDependency": { + "jsii-calc.UseBundledDependency": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.UseBundledDependency", + "fqn": "jsii-calc.UseBundledDependency", "initializer": {}, "kind": "class", "locationInModule": { @@ -10664,16 +11492,15 @@ } } ], - "name": "UseBundledDependency", - "namespace": "compliance" + "name": "UseBundledDependency" }, - "jsii-calc.compliance.UseCalcBase": { + "jsii-calc.UseCalcBase": { "assembly": "jsii-calc", "docs": { "stability": "experimental", "summary": "Depend on a type from jsii-calc-base as a test for awslabs/jsii#128." }, - "fqn": "jsii-calc.compliance.UseCalcBase", + "fqn": "jsii-calc.UseCalcBase", "initializer": {}, "kind": "class", "locationInModule": { @@ -10697,15 +11524,14 @@ } } ], - "name": "UseCalcBase", - "namespace": "compliance" + "name": "UseCalcBase" }, - "jsii-calc.compliance.UsesInterfaceWithProperties": { + "jsii-calc.UsesInterfaceWithProperties": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.UsesInterfaceWithProperties", + "fqn": "jsii-calc.UsesInterfaceWithProperties", "initializer": { "docs": { "stability": "experimental" @@ -10714,7 +11540,7 @@ { "name": "obj", "type": { - "fqn": "jsii-calc.compliance.IInterfaceWithProperties" + "fqn": "jsii-calc.IInterfaceWithProperties" } } ] @@ -10753,7 +11579,7 @@ { "name": "ext", "type": { - "fqn": "jsii-calc.compliance.IInterfaceWithPropertiesExtension" + "fqn": "jsii-calc.IInterfaceWithPropertiesExtension" } } ], @@ -10788,7 +11614,6 @@ } ], "name": "UsesInterfaceWithProperties", - "namespace": "compliance", "properties": [ { "docs": { @@ -10801,17 +11626,17 @@ }, "name": "obj", "type": { - "fqn": "jsii-calc.compliance.IInterfaceWithProperties" + "fqn": "jsii-calc.IInterfaceWithProperties" } } ] }, - "jsii-calc.compliance.VariadicInvoker": { + "jsii-calc.VariadicInvoker": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.VariadicInvoker", + "fqn": "jsii-calc.VariadicInvoker", "initializer": { "docs": { "stability": "experimental" @@ -10820,7 +11645,7 @@ { "name": "method", "type": { - "fqn": "jsii-calc.compliance.VariadicMethod" + "fqn": "jsii-calc.VariadicMethod" } } ] @@ -10862,15 +11687,14 @@ "variadic": true } ], - "name": "VariadicInvoker", - "namespace": "compliance" + "name": "VariadicInvoker" }, - "jsii-calc.compliance.VariadicMethod": { + "jsii-calc.VariadicMethod": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.VariadicMethod", + "fqn": "jsii-calc.VariadicMethod", "initializer": { "docs": { "stability": "experimental" @@ -10938,15 +11762,14 @@ "variadic": true } ], - "name": "VariadicMethod", - "namespace": "compliance" + "name": "VariadicMethod" }, - "jsii-calc.compliance.VirtualMethodPlayground": { + "jsii-calc.VirtualMethodPlayground": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.VirtualMethodPlayground", + "fqn": "jsii-calc.VirtualMethodPlayground", "initializer": {}, "kind": "class", "locationInModule": { @@ -11073,10 +11896,9 @@ } } ], - "name": "VirtualMethodPlayground", - "namespace": "compliance" + "name": "VirtualMethodPlayground" }, - "jsii-calc.compliance.VoidCallback": { + "jsii-calc.VoidCallback": { "abstract": true, "assembly": "jsii-calc", "docs": { @@ -11084,7 +11906,7 @@ "stability": "experimental", "summary": "This test is used to validate the runtimes can return correctly from a void callback." }, - "fqn": "jsii-calc.compliance.VoidCallback", + "fqn": "jsii-calc.VoidCallback", "initializer": {}, "kind": "class", "locationInModule": { @@ -11096,1224 +11918,333 @@ "docs": { "stability": "experimental" }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1711 - }, - "name": "callMe" - }, - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1715 - }, - "name": "overrideMe", - "protected": true - } - ], - "name": "VoidCallback", - "namespace": "compliance", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1708 - }, - "name": "methodWasCalled", - "type": { - "primitive": "boolean" - } - } - ] - }, - "jsii-calc.compliance.WithPrivatePropertyInConstructor": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Verifies that private property declarations in constructor arguments are hidden." - }, - "fqn": "jsii-calc.compliance.WithPrivatePropertyInConstructor", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "privateField", - "optional": true, - "type": { - "primitive": "string" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1721 - }, - "name": "WithPrivatePropertyInConstructor", - "namespace": "compliance", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1724 - }, - "name": "success", - "type": { - "primitive": "boolean" - } - } - ] - }, - "jsii-calc.composition.CompositeOperation": { - "abstract": true, - "assembly": "jsii-calc", - "base": "@scope/jsii-calc-lib.Operation", - "docs": { - "stability": "experimental", - "summary": "Abstract operation composed from an expression of other operations." - }, - "fqn": "jsii-calc.composition.CompositeOperation", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 131 - }, - "methods": [ - { - "docs": { - "stability": "experimental", - "summary": "String representation of the value." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 157 - }, - "name": "toString", - "overrides": "@scope/jsii-calc-lib.Operation", - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "CompositeOperation", - "namespace": "composition", - "properties": [ - { - "abstract": true, - "docs": { - "remarks": "Must be implemented by derived classes.", - "stability": "experimental", - "summary": "The expression that this operation consists of." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 155 - }, - "name": "expression", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - }, - { - "docs": { - "stability": "experimental", - "summary": "The value." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 147 - }, - "name": "value", - "overrides": "@scope/jsii-calc-lib.Value", - "type": { - "primitive": "number" - } - }, - { - "docs": { - "stability": "experimental", - "summary": "A set of postfixes to include in a decorated .toString()." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 145 - }, - "name": "decorationPostfixes", - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" - } - } - }, - { - "docs": { - "stability": "experimental", - "summary": "A set of prefixes to include in a decorated .toString()." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 140 - }, - "name": "decorationPrefixes", - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" - } - } - }, - { - "docs": { - "stability": "experimental", - "summary": "The .toString() style." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 135 - }, - "name": "stringStyle", - "type": { - "fqn": "jsii-calc.composition.CompositeOperation.CompositionStringStyle" - } - } - ] - }, - "jsii-calc.composition.CompositeOperation.CompositionStringStyle": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Style of .toString() output for CompositeOperation." - }, - "fqn": "jsii-calc.composition.CompositeOperation.CompositionStringStyle", - "kind": "enum", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 173 - }, - "members": [ - { - "docs": { - "stability": "experimental", - "summary": "Normal string expression." - }, - "name": "NORMAL" - }, - { - "docs": { - "stability": "experimental", - "summary": "Decorated string expression." - }, - "name": "DECORATED" - } - ], - "name": "CompositionStringStyle", - "namespace": "composition.CompositeOperation" - }, - "jsii-calc.documented.DocumentedClass": { - "assembly": "jsii-calc", - "docs": { - "remarks": "This is the meat of the TSDoc comment. It may contain\nmultiple lines and multiple paragraphs.\n\nMultiple paragraphs are separated by an empty line.", - "stability": "stable", - "summary": "Here's the first line of the TSDoc comment." - }, - "fqn": "jsii-calc.documented.DocumentedClass", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/documented.ts", - "line": 11 - }, - "methods": [ - { - "docs": { - "remarks": "This will print out a friendly greeting intended for\nthe indicated person.", - "returns": "A number that everyone knows very well", - "stability": "stable", - "summary": "Greet the indicated person." - }, - "locationInModule": { - "filename": "lib/documented.ts", - "line": 22 - }, - "name": "greet", - "parameters": [ - { - "docs": { - "summary": "The person to be greeted." - }, - "name": "greetee", - "optional": true, - "type": { - "fqn": "jsii-calc.documented.Greetee" - } - } - ], - "returns": { - "type": { - "primitive": "number" - } - } - }, - { - "docs": { - "stability": "experimental", - "summary": "Say ¡Hola!" - }, - "locationInModule": { - "filename": "lib/documented.ts", - "line": 32 - }, - "name": "hola" - } - ], - "name": "DocumentedClass", - "namespace": "documented" - }, - "jsii-calc.documented.Greetee": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental", - "summary": "These are some arguments you can pass to a method." - }, - "fqn": "jsii-calc.documented.Greetee", - "kind": "interface", - "locationInModule": { - "filename": "lib/documented.ts", - "line": 40 - }, - "name": "Greetee", - "namespace": "documented", - "properties": [ - { - "abstract": true, - "docs": { - "default": "world", - "stability": "experimental", - "summary": "The name of the greetee." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/documented.ts", - "line": 46 - }, - "name": "name", - "optional": true, - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.documented.Old": { - "assembly": "jsii-calc", - "docs": { - "deprecated": "Use the new class", - "stability": "deprecated", - "summary": "Old class." - }, - "fqn": "jsii-calc.documented.Old", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/documented.ts", - "line": 54 - }, - "methods": [ - { - "docs": { - "stability": "deprecated", - "summary": "Doo wop that thing." - }, - "locationInModule": { - "filename": "lib/documented.ts", - "line": 58 - }, - "name": "doAThing" - } - ], - "name": "Old", - "namespace": "documented" - }, - "jsii-calc.erasureTests.IJSII417Derived": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.erasureTests.IJSII417Derived", - "interfaces": [ - "jsii-calc.erasureTests.IJSII417PublicBaseOfBase" - ], - "kind": "interface", - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 37 - }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 35 - }, - "name": "bar" - }, - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 38 - }, - "name": "baz" - } - ], - "name": "IJSII417Derived", - "namespace": "erasureTests", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 34 - }, - "name": "property", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.erasureTests.IJSII417PublicBaseOfBase": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.erasureTests.IJSII417PublicBaseOfBase", - "kind": "interface", - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 30 - }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 31 - }, - "name": "foo" - } - ], - "name": "IJSII417PublicBaseOfBase", - "namespace": "erasureTests", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 28 - }, - "name": "hasRoot", - "type": { - "primitive": "boolean" - } - } - ] - }, - "jsii-calc.erasureTests.IJsii487External": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.erasureTests.IJsii487External", - "kind": "interface", - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 45 - }, - "name": "IJsii487External", - "namespace": "erasureTests" - }, - "jsii-calc.erasureTests.IJsii487External2": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.erasureTests.IJsii487External2", - "kind": "interface", - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 46 - }, - "name": "IJsii487External2", - "namespace": "erasureTests" - }, - "jsii-calc.erasureTests.IJsii496": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.erasureTests.IJsii496", - "kind": "interface", - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 54 - }, - "name": "IJsii496", - "namespace": "erasureTests" - }, - "jsii-calc.erasureTests.JSII417Derived": { - "assembly": "jsii-calc", - "base": "jsii-calc.erasureTests.JSII417PublicBaseOfBase", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.erasureTests.JSII417Derived", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "property", - "type": { - "primitive": "string" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 20 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 21 - }, - "name": "bar" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 24 - }, - "name": "baz" - } - ], - "name": "JSII417Derived", - "namespace": "erasureTests", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 15 - }, - "name": "property", - "protected": true, - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.erasureTests.JSII417PublicBaseOfBase": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.erasureTests.JSII417PublicBaseOfBase", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 8 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 9 - }, - "name": "makeInstance", - "returns": { - "type": { - "fqn": "jsii-calc.erasureTests.JSII417PublicBaseOfBase" - } - }, - "static": true - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 12 - }, - "name": "foo" - } - ], - "name": "JSII417PublicBaseOfBase", - "namespace": "erasureTests", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 6 - }, - "name": "hasRoot", - "type": { - "primitive": "boolean" - } - } - ] - }, - "jsii-calc.erasureTests.Jsii487Derived": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.erasureTests.Jsii487Derived", - "initializer": {}, - "interfaces": [ - "jsii-calc.erasureTests.IJsii487External2", - "jsii-calc.erasureTests.IJsii487External" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 48 - }, - "name": "Jsii487Derived", - "namespace": "erasureTests" - }, - "jsii-calc.erasureTests.Jsii496Derived": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.erasureTests.Jsii496Derived", - "initializer": {}, - "interfaces": [ - "jsii-calc.erasureTests.IJsii496" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 56 - }, - "name": "Jsii496Derived", - "namespace": "erasureTests" - }, - "jsii-calc.stability_annotations.DeprecatedClass": { - "assembly": "jsii-calc", - "docs": { - "deprecated": "a pretty boring class", - "stability": "deprecated" - }, - "fqn": "jsii-calc.stability_annotations.DeprecatedClass", - "initializer": { - "docs": { - "deprecated": "this constructor is \"just\" okay", - "stability": "deprecated" - }, - "parameters": [ - { - "name": "readonlyString", - "type": { - "primitive": "string" - } - }, - { - "name": "mutableNumber", - "optional": true, - "type": { - "primitive": "number" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 85 - }, - "methods": [ - { - "docs": { - "deprecated": "it was a bad idea", - "stability": "deprecated" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 96 - }, - "name": "method" - } - ], - "name": "DeprecatedClass", - "namespace": "stability_annotations", - "properties": [ - { - "docs": { - "deprecated": "this is not always \"wazoo\", be ready to be disappointed", - "stability": "deprecated" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 87 - }, - "name": "readonlyProperty", - "type": { - "primitive": "string" - } - }, - { - "docs": { - "deprecated": "shouldn't have been mutable", - "stability": "deprecated" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 89 - }, - "name": "mutableProperty", - "optional": true, - "type": { - "primitive": "number" - } - } - ] - }, - "jsii-calc.stability_annotations.DeprecatedEnum": { - "assembly": "jsii-calc", - "docs": { - "deprecated": "your deprecated selection of bad options", - "stability": "deprecated" - }, - "fqn": "jsii-calc.stability_annotations.DeprecatedEnum", - "kind": "enum", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 99 - }, - "members": [ - { - "docs": { - "deprecated": "option A is not great", - "stability": "deprecated" - }, - "name": "OPTION_A" - }, - { - "docs": { - "deprecated": "option B is kinda bad, too", - "stability": "deprecated" - }, - "name": "OPTION_B" - } - ], - "name": "DeprecatedEnum", - "namespace": "stability_annotations" - }, - "jsii-calc.stability_annotations.DeprecatedStruct": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "deprecated": "it just wraps a string", - "stability": "deprecated" - }, - "fqn": "jsii-calc.stability_annotations.DeprecatedStruct", - "kind": "interface", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 73 - }, - "name": "DeprecatedStruct", - "namespace": "stability_annotations", - "properties": [ - { - "abstract": true, - "docs": { - "deprecated": "well, yeah", - "stability": "deprecated" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 75 - }, - "name": "readonlyProperty", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.stability_annotations.ExperimentalClass": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.stability_annotations.ExperimentalClass", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "readonlyString", - "type": { - "primitive": "string" - } - }, - { - "name": "mutableNumber", - "optional": true, - "type": { - "primitive": "number" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 16 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 28 - }, - "name": "method" - } - ], - "name": "ExperimentalClass", - "namespace": "stability_annotations", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 18 - }, - "name": "readonlyProperty", - "type": { - "primitive": "string" - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 20 - }, - "name": "mutableProperty", - "optional": true, - "type": { - "primitive": "number" - } - } - ] - }, - "jsii-calc.stability_annotations.ExperimentalEnum": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.stability_annotations.ExperimentalEnum", - "kind": "enum", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 31 - }, - "members": [ - { - "docs": { - "stability": "experimental" - }, - "name": "OPTION_A" - }, - { - "docs": { - "stability": "experimental" - }, - "name": "OPTION_B" - } - ], - "name": "ExperimentalEnum", - "namespace": "stability_annotations" - }, - "jsii-calc.stability_annotations.ExperimentalStruct": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.stability_annotations.ExperimentalStruct", - "kind": "interface", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 4 - }, - "name": "ExperimentalStruct", - "namespace": "stability_annotations", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 6 - }, - "name": "readonlyProperty", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.stability_annotations.IDeprecatedInterface": { - "assembly": "jsii-calc", - "docs": { - "deprecated": "useless interface", - "stability": "deprecated" - }, - "fqn": "jsii-calc.stability_annotations.IDeprecatedInterface", - "kind": "interface", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 78 - }, - "methods": [ - { - "abstract": true, - "docs": { - "deprecated": "services no purpose", - "stability": "deprecated" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 82 - }, - "name": "method" - } - ], - "name": "IDeprecatedInterface", - "namespace": "stability_annotations", - "properties": [ - { - "abstract": true, - "docs": { - "deprecated": "could be better", - "stability": "deprecated" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 80 - }, - "name": "mutableProperty", - "optional": true, - "type": { - "primitive": "number" - } - } - ] - }, - "jsii-calc.stability_annotations.IExperimentalInterface": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.stability_annotations.IExperimentalInterface", - "kind": "interface", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 9 - }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 13 - }, - "name": "method" - } - ], - "name": "IExperimentalInterface", - "namespace": "stability_annotations", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 11 - }, - "name": "mutableProperty", - "optional": true, - "type": { - "primitive": "number" - } - } - ] - }, - "jsii-calc.stability_annotations.IStableInterface": { - "assembly": "jsii-calc", - "docs": { - "stability": "stable" - }, - "fqn": "jsii-calc.stability_annotations.IStableInterface", - "kind": "interface", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 44 - }, - "methods": [ + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1711 + }, + "name": "callMe" + }, { "abstract": true, "docs": { - "stability": "stable" + "stability": "experimental" }, "locationInModule": { - "filename": "lib/stability.ts", - "line": 48 + "filename": "lib/compliance.ts", + "line": 1715 }, - "name": "method" + "name": "overrideMe", + "protected": true } ], - "name": "IStableInterface", - "namespace": "stability_annotations", + "name": "VoidCallback", "properties": [ { - "abstract": true, "docs": { - "stability": "stable" + "stability": "experimental" }, + "immutable": true, "locationInModule": { - "filename": "lib/stability.ts", - "line": 46 + "filename": "lib/compliance.ts", + "line": 1708 }, - "name": "mutableProperty", - "optional": true, + "name": "methodWasCalled", "type": { - "primitive": "number" + "primitive": "boolean" } } ] }, - "jsii-calc.stability_annotations.StableClass": { + "jsii-calc.WithPrivatePropertyInConstructor": { "assembly": "jsii-calc", "docs": { - "stability": "stable" + "stability": "experimental", + "summary": "Verifies that private property declarations in constructor arguments are hidden." }, - "fqn": "jsii-calc.stability_annotations.StableClass", + "fqn": "jsii-calc.WithPrivatePropertyInConstructor", "initializer": { "docs": { - "stability": "stable" + "stability": "experimental" }, "parameters": [ { - "name": "readonlyString", - "type": { - "primitive": "string" - } - }, - { - "name": "mutableNumber", + "name": "privateField", "optional": true, "type": { - "primitive": "number" + "primitive": "string" } } ] }, "kind": "class", "locationInModule": { - "filename": "lib/stability.ts", - "line": 51 + "filename": "lib/compliance.ts", + "line": 1721 + }, + "name": "WithPrivatePropertyInConstructor", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1724 + }, + "name": "success", + "type": { + "primitive": "boolean" + } + } + ] + }, + "jsii-calc.composition.CompositeOperation": { + "abstract": true, + "assembly": "jsii-calc", + "base": "@scope/jsii-calc-lib.Operation", + "docs": { + "stability": "experimental", + "summary": "Abstract operation composed from an expression of other operations." + }, + "fqn": "jsii-calc.composition.CompositeOperation", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 131 }, "methods": [ { "docs": { - "stability": "stable" + "stability": "experimental", + "summary": "String representation of the value." }, "locationInModule": { - "filename": "lib/stability.ts", - "line": 62 + "filename": "lib/calculator.ts", + "line": 157 }, - "name": "method" + "name": "toString", + "overrides": "@scope/jsii-calc-lib.Operation", + "returns": { + "type": { + "primitive": "string" + } + } } ], - "name": "StableClass", - "namespace": "stability_annotations", + "name": "CompositeOperation", + "namespace": "composition", "properties": [ { + "abstract": true, "docs": { - "stability": "stable" + "remarks": "Must be implemented by derived classes.", + "stability": "experimental", + "summary": "The expression that this operation consists of." }, "immutable": true, "locationInModule": { - "filename": "lib/stability.ts", - "line": 53 + "filename": "lib/calculator.ts", + "line": 155 }, - "name": "readonlyProperty", + "name": "expression", "type": { - "primitive": "string" + "fqn": "@scope/jsii-calc-lib.Value" } }, { "docs": { - "stability": "stable" + "stability": "experimental", + "summary": "The value." }, + "immutable": true, "locationInModule": { - "filename": "lib/stability.ts", - "line": 55 + "filename": "lib/calculator.ts", + "line": 147 }, - "name": "mutableProperty", - "optional": true, + "name": "value", + "overrides": "@scope/jsii-calc-lib.Value", "type": { "primitive": "number" } + }, + { + "docs": { + "stability": "experimental", + "summary": "A set of postfixes to include in a decorated .toString()." + }, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 145 + }, + "name": "decorationPostfixes", + "type": { + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "array" + } + } + }, + { + "docs": { + "stability": "experimental", + "summary": "A set of prefixes to include in a decorated .toString()." + }, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 140 + }, + "name": "decorationPrefixes", + "type": { + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "array" + } + } + }, + { + "docs": { + "stability": "experimental", + "summary": "The .toString() style." + }, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 135 + }, + "name": "stringStyle", + "type": { + "fqn": "jsii-calc.composition.CompositeOperation.CompositionStringStyle" + } } ] }, - "jsii-calc.stability_annotations.StableEnum": { + "jsii-calc.composition.CompositeOperation.CompositionStringStyle": { "assembly": "jsii-calc", "docs": { - "stability": "stable" + "stability": "experimental", + "summary": "Style of .toString() output for CompositeOperation." }, - "fqn": "jsii-calc.stability_annotations.StableEnum", + "fqn": "jsii-calc.composition.CompositeOperation.CompositionStringStyle", "kind": "enum", "locationInModule": { - "filename": "lib/stability.ts", - "line": 65 + "filename": "lib/calculator.ts", + "line": 173 }, "members": [ { "docs": { - "stability": "stable" + "stability": "experimental", + "summary": "Normal string expression." }, - "name": "OPTION_A" + "name": "NORMAL" }, { "docs": { - "stability": "stable" + "stability": "experimental", + "summary": "Decorated string expression." }, - "name": "OPTION_B" + "name": "DECORATED" } ], - "name": "StableEnum", - "namespace": "stability_annotations" + "name": "CompositionStringStyle", + "namespace": "composition.CompositeOperation" }, - "jsii-calc.stability_annotations.StableStruct": { + "jsii-calc.submodule.child.Structure": { "assembly": "jsii-calc", "datatype": true, "docs": { - "stability": "stable" + "stability": "experimental" }, - "fqn": "jsii-calc.stability_annotations.StableStruct", + "fqn": "jsii-calc.submodule.child.Structure", "kind": "interface", "locationInModule": { - "filename": "lib/stability.ts", - "line": 39 + "filename": "lib/submodule/child/index.ts", + "line": 1 }, - "name": "StableStruct", - "namespace": "stability_annotations", + "name": "Structure", + "namespace": "submodule.child", "properties": [ { "abstract": true, "docs": { - "stability": "stable" + "stability": "experimental" }, "immutable": true, "locationInModule": { - "filename": "lib/stability.ts", - "line": 41 + "filename": "lib/submodule/child/index.ts", + "line": 2 }, - "name": "readonlyProperty", + "name": "bool", + "type": { + "primitive": "boolean" + } + } + ] + }, + "jsii-calc.submodule.nested_submodule.Namespaced": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.submodule.nested_submodule.Namespaced", + "interfaces": [ + "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced" + ], + "kind": "class", + "locationInModule": { + "filename": "lib/submodule/index.ts", + "line": 8 + }, + "name": "Namespaced", + "namespace": "submodule.nested_submodule", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/submodule/index.ts", + "line": 9 + }, + "name": "definedAt", + "overrides": "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced", + "type": { + "primitive": "string" + } + } + ] + }, + "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced", + "kind": "interface", + "locationInModule": { + "filename": "lib/submodule/index.ts", + "line": 3 + }, + "name": "INamespaced", + "namespace": "submodule.nested_submodule.deeplyNested", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/submodule/index.ts", + "line": 4 + }, + "name": "definedAt", "type": { "primitive": "string" } @@ -12322,5 +12253,5 @@ } }, "version": "1.1.0", - "fingerprint": "tFgCMeRkHnCWBVGvHrYgR5SWZ0f5dYueD9CbBxCxpmY=" + "fingerprint": "q2bAmQlqnFhbni6+NVgvKc4llulsPPEXGKkQvoTi1jo=" } diff --git a/packages/jsii-reflect/lib/assembly.ts b/packages/jsii-reflect/lib/assembly.ts index 92f0425be4..e075600a10 100644 --- a/packages/jsii-reflect/lib/assembly.ts +++ b/packages/jsii-reflect/lib/assembly.ts @@ -2,17 +2,24 @@ import * as jsii from '@jsii/spec'; import { ClassType } from './class'; import { Dependency } from './dependency'; import { EnumType } from './enum'; +import { ModuleLike } from './module-like'; import { InterfaceType } from './interface'; +import { Submodule } from './submodule'; import { Type } from './type'; import { TypeSystem } from './type-system'; -export class Assembly { +export class Assembly extends ModuleLike { private _typeCache?: { [fqn: string]: Type }; + private _submoduleCache?: { [fqn: string]: Submodule }; private _dependencyCache?: { [name: string]: Dependency }; - public constructor( - public readonly system: TypeSystem, - public readonly spec: jsii.Assembly) { } + public constructor(system: TypeSystem, public readonly spec: jsii.Assembly) { + super(system); + } + + public get fqn(): string { + return this.spec.name; + } /** * The version of the spec schema @@ -54,7 +61,7 @@ export class Assembly { * The module repository, maps to "repository" from package.json * This is required since some package managers (like Maven) require it. */ - public get repository(): { type: string, url: string, directory?: string } { + public get repository(): { readonly type: string, readonly url: string, readonly directory?: string } { return this.spec.repository; } @@ -68,7 +75,7 @@ export class Assembly { /** * Additional contributors to this package. */ - public get contributors(): jsii.Person[] { + public get contributors(): readonly jsii.Person[] { return this.spec.contributors ?? []; } @@ -104,7 +111,7 @@ export class Assembly { /** * Dependencies on other assemblies (with semver), the key is the JSII assembly name. */ - public get dependencies(): Dependency[] { + public get dependencies(): readonly Dependency[] { return Object.keys(this._dependencies).map(name => this._dependencies[name]); } @@ -119,7 +126,7 @@ export class Assembly { /** * List if bundled dependencies (these are not expected to be jsii assemblies). */ - public get bundled(): { [module: string]: string } { + public get bundled(): { readonly [module: string]: string } { return this.spec.bundled ?? { }; } @@ -130,37 +137,27 @@ export class Assembly { return this.spec.readme; } - /** - * All types in the assembly, keyed by their fully-qualified-name - */ - public get types(): Type[] { - return Object.keys(this._types).map(key => this._types[key]); + public get submodules(): readonly Submodule[] { + const { submodules } = this._types; + return Object.values(submodules); } - public get classes(): ClassType[] { - return this.types.filter(t => t instanceof ClassType).map(t => t as ClassType); - } - - public get interfaces(): InterfaceType[] { - return this.types.filter(t => t instanceof InterfaceType).map(t => t as InterfaceType); - } - - public get enums(): EnumType[] { - return this.types.filter(t => t instanceof EnumType).map(t => t as EnumType); + /** + * All types in the assembly + */ + public get types(): readonly Type[] { + const { types } = this._types; + return Object.values(types); } public findType(fqn: string) { - const type = this._types[fqn]; + const type = this.tryFindType(fqn); if (!type) { throw new Error(`Type '${fqn}' not found in assembly ${this.name}`); } return type; } - public tryFindType(fqn: string): Type | undefined { - return this._types[fqn]; - } - /** * Validate an assembly after loading * @@ -185,31 +182,70 @@ export class Assembly { } private get _types() { - if (!this._typeCache) { - this._typeCache = { }; + if (!this._typeCache || !this._submoduleCache) { + this._typeCache = {}; + + const submodules: { [fullName: string]: SubmoduleMap } = {}; const ts = this.spec.types ?? { }; for (const fqn of Object.keys(ts)) { - const type = ts[fqn]; - switch (type.kind) { + const typeSpec = ts[fqn]; + + let submodule = typeSpec.namespace; + while (submodule != null && `${this.spec.name}.${submodule}` in ts) { + submodule = ts[`${this.spec.name}.${submodule}`].namespace; + } + + let type: Type; + switch (typeSpec.kind) { case jsii.TypeKind.Class: - this._typeCache[fqn] = new ClassType(this.system, this, type); + type = new ClassType(this.system, this, typeSpec); break; case jsii.TypeKind.Interface: - this._typeCache[fqn] = new InterfaceType(this.system, this, type); + type = new InterfaceType(this.system, this, typeSpec); break; case jsii.TypeKind.Enum: - this._typeCache[fqn] = new EnumType(this.system, this, type); + type = new EnumType(this.system, this, typeSpec); break; default: throw new Error('Unknown type kind'); } + + if (submodule != null) { + const [root, ...parts] = submodule.split('.'); + let container = submodules[root] = submodules[root] ?? { submodules: {}, types: [] }; + for (const part of parts) { + container = container.submodules[part] = container.submodules[part] ?? { submodules: {}, types: [] }; + } + container.types.push(type); + } else { + this._typeCache[fqn] = type; + } + } + + this._submoduleCache = {}; + for (const [name, map] of Object.entries(submodules)) { + this._submoduleCache[name] = makeSubmodule(this.system, map, `${this.name}.${name}`); } } - return this._typeCache; + return { types: this._typeCache, submodules: this._submoduleCache }; } } + +interface SubmoduleMap { + readonly submodules: { [fullName: string]: SubmoduleMap }; + readonly types: Type[]; +} + +function makeSubmodule(system: TypeSystem, map: SubmoduleMap, fullName: string): Submodule { + return new Submodule( + system, + fullName, + Object.entries(map.submodules).map(([name, subMap]) => makeSubmodule(system, subMap, `${fullName}.${name}`)), + map.types, + ); +} diff --git a/packages/jsii-reflect/lib/index.ts b/packages/jsii-reflect/lib/index.ts index 211c90b020..5a6711367f 100644 --- a/packages/jsii-reflect/lib/index.ts +++ b/packages/jsii-reflect/lib/index.ts @@ -7,10 +7,12 @@ export * from './enum'; export * from './initializer'; export * from './interface'; export * from './method'; +export * from './module-like'; export * from './optional-value'; export * from './overridable'; export * from './parameter'; export * from './property'; +export * from './submodule'; export * from './tree'; export * from './type'; export * from './type-member'; diff --git a/packages/jsii-reflect/lib/module-like.ts b/packages/jsii-reflect/lib/module-like.ts new file mode 100644 index 0000000000..88e81970ee --- /dev/null +++ b/packages/jsii-reflect/lib/module-like.ts @@ -0,0 +1,41 @@ +import { ClassType } from './class'; +import { EnumType } from './enum'; +import { InterfaceType } from './interface'; +import { Submodule } from './submodule'; +import { Type } from './type'; +import { TypeSystem } from './type-system'; + +export abstract class ModuleLike { + public abstract readonly fqn: string; + public abstract readonly submodules: readonly Submodule[]; + public abstract readonly types: readonly Type[]; + + protected constructor(public readonly system: TypeSystem) { } + + public get classes(): readonly ClassType[] { + return this.types.filter(t => t instanceof ClassType).map(t => t as ClassType); + } + + public get interfaces(): readonly InterfaceType[] { + return this.types.filter(t => t instanceof InterfaceType).map(t => t as InterfaceType); + } + + public get enums(): readonly EnumType[] { + return this.types.filter(t => t instanceof EnumType).map(t => t as EnumType); + } + + public tryFindType(fqn: string): Type | undefined { + const ownType = this.types.find(type => type.fqn === fqn); + if (ownType != null) { + return ownType; + } + + if (!fqn.startsWith(`${this.fqn}.`)) { + return undefined; + } + + const [subName] = fqn.slice(this.fqn.length + 1).split('.'); + const sub = this.submodules.find(sub => sub.name === subName); + return sub?.tryFindType(fqn); + } +} diff --git a/packages/jsii-reflect/lib/submodule.ts b/packages/jsii-reflect/lib/submodule.ts new file mode 100644 index 0000000000..07b183edf9 --- /dev/null +++ b/packages/jsii-reflect/lib/submodule.ts @@ -0,0 +1,21 @@ +import { ModuleLike } from './module-like'; +import { Type } from './type'; +import { TypeSystem } from './type-system'; + +export class Submodule extends ModuleLike { + /** + * The simple name of the submodule (the last segment of the `fullName`). + */ + public readonly name: string; + + public constructor( + system: TypeSystem, + public readonly fqn: string, + public readonly submodules: readonly Submodule[], + public readonly types: readonly Type[], + ) { + super(system); + + this.name = fqn.split('.').pop()!; + } +} diff --git a/packages/jsii-reflect/lib/tree.ts b/packages/jsii-reflect/lib/tree.ts index 5276ed9c9b..cb55ab98d6 100644 --- a/packages/jsii-reflect/lib/tree.ts +++ b/packages/jsii-reflect/lib/tree.ts @@ -13,6 +13,7 @@ import { OptionalValue } from './optional-value'; import { Parameter } from './parameter'; import { Property } from './property'; import { TypeSystem } from './type-system'; +import { Submodule } from './submodule'; export interface TypeSystemTreeOptions { /** @@ -101,6 +102,13 @@ class AssemblyNode extends AsciiTree { deps.add(...assembly.dependencies.map(d => new DependencyNode(d, options))); } + const submodules = assembly.submodules; + if (submodules.length > 0) { + const title = new TitleNode('submodules'); + this.add(title); + title.add(...submodules.map(s => new SubmoduleNode(s, options))); + } + if (options.types) { const types = new TitleNode('types'); this.add(types); @@ -111,6 +119,27 @@ class AssemblyNode extends AsciiTree { } } +class SubmoduleNode extends AsciiTree { + public constructor(submodule: Submodule, options: TypeSystemTreeOptions) { + super(colors.green(submodule.name)); + + const submodules = submodule.submodules; + if (submodules.length > 0) { + const title = new TitleNode('submodules'); + this.add(title); + title.add(...submodules.map(s => new SubmoduleNode(s, options))); + } + + if (options.types) { + const types = new TitleNode('types'); + this.add(types); + types.add(...submodule.classes.map(c => new ClassNode(c, options))); + types.add(...submodule.interfaces.map(i => new InterfaceNode(i, options))); + types.add(...submodule.enums.map(e => new EnumNode(e, options))); + } + } +} + class MethodNode extends AsciiTree { public constructor(method: Method, options: TypeSystemTreeOptions) { const args = method.parameters.map(p => p.name).join(','); diff --git a/packages/jsii-reflect/lib/type-system.ts b/packages/jsii-reflect/lib/type-system.ts index 8ca951d264..cfafcbe852 100644 --- a/packages/jsii-reflect/lib/type-system.ts +++ b/packages/jsii-reflect/lib/type-system.ts @@ -7,6 +7,7 @@ import { ClassType } from './class'; import { EnumType } from './enum'; import { InterfaceType } from './interface'; import { Method } from './method'; +import { ModuleLike } from './module-like'; import { Property } from './property'; import { Type } from './type'; @@ -227,26 +228,26 @@ export class TypeSystem { return out; } - public get classes() { + public get classes(): readonly ClassType[] { const out = new Array(); this.assemblies.forEach(a => { - out.push(...a.classes); + out.push(...collectTypes(a, item => item.classes)); }); return out; } - public get interfaces() { + public get interfaces(): readonly InterfaceType[] { const out = new Array(); this.assemblies.forEach(a => { - out.push(...a.interfaces); + out.push(...collectTypes(a, item => item.interfaces)); }); return out; } - public get enums() { + public get enums(): readonly EnumType[] { const out = new Array(); this.assemblies.forEach(a => { - out.push(...a.enums); + out.push(...collectTypes(a, item => item.enums)); }); return out; } @@ -275,3 +276,12 @@ function dependenciesOf(packageJson: any) { Object.keys(packageJson.peerDependencies ?? {}).forEach(deps.add.bind(deps)); return Array.from(deps); } + +function collectTypes(module: ModuleLike, getter: (module: ModuleLike) => readonly T[]): readonly T[] { + const result = new Array(); + for (const submodule of module.submodules) { + result.push(...collectTypes(submodule, getter)); + } + result.push(...getter(module)); + return result; +} diff --git a/packages/jsii-reflect/test/__snapshots__/jsii-tree.test.js.snap b/packages/jsii-reflect/test/__snapshots__/jsii-tree.test.js.snap index 101bc23f4e..0b7fd39dcf 100644 --- a/packages/jsii-reflect/test/__snapshots__/jsii-tree.test.js.snap +++ b/packages/jsii-reflect/test/__snapshots__/jsii-tree.test.js.snap @@ -7,7 +7,125 @@ exports[`jsii-tree --all 1`] = ` │ │ ├── @scope/jsii-calc-base │ │ ├── @scope/jsii-calc-base-of-base │ │ └── @scope/jsii-calc-lib + │ ├─┬ submodules + │ │ ├─┬ DerivedClassHasNoProperties + │ │ │ └─┬ types + │ │ │ ├─┬ class Base (experimental) + │ │ │ │ └─┬ members + │ │ │ │ ├── () initializer (experimental) + │ │ │ │ └─┬ prop property (experimental) + │ │ │ │ └── type: string + │ │ │ └─┬ class Derived (experimental) + │ │ │ ├── base: Base + │ │ │ └─┬ members + │ │ │ └── () initializer (experimental) + │ │ ├─┬ InterfaceInNamespaceIncludesClasses + │ │ │ └─┬ types + │ │ │ ├─┬ class Foo (experimental) + │ │ │ │ └─┬ members + │ │ │ │ ├── () initializer (experimental) + │ │ │ │ └─┬ bar property (experimental) + │ │ │ │ └── type: Optional + │ │ │ └─┬ interface Hello (experimental) + │ │ │ └─┬ members + │ │ │ └─┬ foo property (experimental) + │ │ │ ├── abstract + │ │ │ ├── immutable + │ │ │ └── type: number + │ │ ├─┬ InterfaceInNamespaceOnlyInterface + │ │ │ └─┬ types + │ │ │ └─┬ interface Hello (experimental) + │ │ │ └─┬ members + │ │ │ └─┬ foo property (experimental) + │ │ │ ├── abstract + │ │ │ ├── immutable + │ │ │ └── type: number + │ │ ├─┬ composition + │ │ │ └─┬ types + │ │ │ ├─┬ class CompositeOperation (experimental) + │ │ │ │ ├── base: Operation + │ │ │ │ └─┬ members + │ │ │ │ ├── () initializer (experimental) + │ │ │ │ ├─┬ toString() method (experimental) + │ │ │ │ │ └── returns: string + │ │ │ │ ├─┬ expression property (experimental) + │ │ │ │ │ ├── abstract + │ │ │ │ │ ├── immutable + │ │ │ │ │ └── type: @scope/jsii-calc-lib.Value + │ │ │ │ ├─┬ value property (experimental) + │ │ │ │ │ ├── immutable + │ │ │ │ │ └── type: number + │ │ │ │ ├─┬ decorationPostfixes property (experimental) + │ │ │ │ │ └── type: Array + │ │ │ │ ├─┬ decorationPrefixes property (experimental) + │ │ │ │ │ └── type: Array + │ │ │ │ └─┬ stringStyle property (experimental) + │ │ │ │ └── type: jsii-calc.composition.CompositeOperation.CompositionStringStyle + │ │ │ └─┬ enum CompositionStringStyle (experimental) + │ │ │ ├── NORMAL (experimental) + │ │ │ └── DECORATED (experimental) + │ │ └─┬ submodule + │ │ ├─┬ submodules + │ │ │ ├─┬ child + │ │ │ │ └─┬ types + │ │ │ │ └─┬ interface Structure (experimental) + │ │ │ │ └─┬ members + │ │ │ │ └─┬ bool property (experimental) + │ │ │ │ ├── abstract + │ │ │ │ ├── immutable + │ │ │ │ └── type: boolean + │ │ │ └─┬ nested_submodule + │ │ │ ├─┬ submodules + │ │ │ │ └─┬ deeplyNested + │ │ │ │ └─┬ types + │ │ │ │ └─┬ interface INamespaced (experimental) + │ │ │ │ └─┬ members + │ │ │ │ └─┬ definedAt property (experimental) + │ │ │ │ ├── abstract + │ │ │ │ ├── immutable + │ │ │ │ └── type: string + │ │ │ └─┬ types + │ │ │ └─┬ class Namespaced (experimental) + │ │ │ ├── interfaces: INamespaced + │ │ │ └─┬ members + │ │ │ └─┬ definedAt property (experimental) + │ │ │ ├── immutable + │ │ │ └── type: string + │ │ └── types │ └─┬ types + │ ├─┬ class AbstractClass (experimental) + │ │ ├── base: AbstractClassBase + │ │ ├── interfaces: IInterfaceImplementedByAbstractClass + │ │ └─┬ members + │ │ ├── () initializer (experimental) + │ │ ├─┬ abstractMethod(name) method (experimental) + │ │ │ ├── abstract + │ │ │ ├─┬ parameters + │ │ │ │ └─┬ name + │ │ │ │ └── type: string + │ │ │ └── returns: string + │ │ ├─┬ nonAbstractMethod() method (experimental) + │ │ │ └── returns: number + │ │ └─┬ propFromInterface property (experimental) + │ │ ├── immutable + │ │ └── type: string + │ ├─┬ class AbstractClassBase (experimental) + │ │ └─┬ members + │ │ ├── () initializer (experimental) + │ │ └─┬ abstractProperty property (experimental) + │ │ ├── abstract + │ │ ├── immutable + │ │ └── type: string + │ ├─┬ class AbstractClassReturner (experimental) + │ │ └─┬ members + │ │ ├── () initializer (experimental) + │ │ ├─┬ giveMeAbstract() method (experimental) + │ │ │ └── returns: jsii-calc.AbstractClass + │ │ ├─┬ giveMeInterface() method (experimental) + │ │ │ └── returns: jsii-calc.IInterfaceImplementedByAbstractClass + │ │ └─┬ returnAbstractFromProperty property (experimental) + │ │ ├── immutable + │ │ └── type: jsii-calc.AbstractClassBase │ ├─┬ class AbstractSuite (experimental) │ │ └─┬ members │ │ ├── () initializer (experimental) @@ -41,192 +159,6 @@ exports[`jsii-tree --all 1`] = ` │ │ └─┬ value property (experimental) │ │ ├── immutable │ │ └── type: number - │ ├─┬ class BinaryOperation (experimental) - │ │ ├── base: Operation - │ │ ├── interfaces: IFriendly - │ │ └─┬ members - │ │ ├─┬ (lhs,rhs) initializer (experimental) - │ │ │ └─┬ parameters - │ │ │ ├─┬ lhs - │ │ │ │ └── type: @scope/jsii-calc-lib.Value - │ │ │ └─┬ rhs - │ │ │ └── type: @scope/jsii-calc-lib.Value - │ │ ├─┬ hello() method (experimental) - │ │ │ └── returns: string - │ │ ├─┬ lhs property (experimental) - │ │ │ ├── immutable - │ │ │ └── type: @scope/jsii-calc-lib.Value - │ │ └─┬ rhs property (experimental) - │ │ ├── immutable - │ │ └── type: @scope/jsii-calc-lib.Value - │ ├─┬ class Calculator (experimental) - │ │ ├── base: CompositeOperation - │ │ └─┬ members - │ │ ├─┬ (props) initializer (experimental) - │ │ │ └─┬ parameters - │ │ │ └─┬ props - │ │ │ └── type: Optional - │ │ ├─┬ add(value) method (experimental) - │ │ │ ├─┬ parameters - │ │ │ │ └─┬ value - │ │ │ │ └── type: number - │ │ │ └── returns: void - │ │ ├─┬ mul(value) method (experimental) - │ │ │ ├─┬ parameters - │ │ │ │ └─┬ value - │ │ │ │ └── type: number - │ │ │ └── returns: void - │ │ ├─┬ neg() method (experimental) - │ │ │ └── returns: void - │ │ ├─┬ pow(value) method (experimental) - │ │ │ ├─┬ parameters - │ │ │ │ └─┬ value - │ │ │ │ └── type: number - │ │ │ └── returns: void - │ │ ├─┬ readUnionValue() method (experimental) - │ │ │ └── returns: number - │ │ ├─┬ expression property (experimental) - │ │ │ ├── immutable - │ │ │ └── type: @scope/jsii-calc-lib.Value - │ │ ├─┬ operationsLog property (experimental) - │ │ │ ├── immutable - │ │ │ └── type: Array<@scope/jsii-calc-lib.Value> - │ │ ├─┬ operationsMap property (experimental) - │ │ │ ├── immutable - │ │ │ └── type: Map Array<@scope/jsii-calc-lib.Value>> - │ │ ├─┬ curr property (experimental) - │ │ │ └── type: @scope/jsii-calc-lib.Value - │ │ ├─┬ maxValue property (experimental) - │ │ │ └── type: Optional - │ │ └─┬ unionProperty property (experimental) - │ │ └── type: Optional - │ ├─┬ class MethodNamedProperty (experimental) - │ │ └─┬ members - │ │ ├── () initializer (experimental) - │ │ ├─┬ property() method (experimental) - │ │ │ └── returns: string - │ │ └─┬ elite property (experimental) - │ │ ├── immutable - │ │ └── type: number - │ ├─┬ class Multiply (experimental) - │ │ ├── base: BinaryOperation - │ │ ├── interfaces: IFriendlier,IRandomNumberGenerator - │ │ └─┬ members - │ │ ├─┬ (lhs,rhs) initializer (experimental) - │ │ │ └─┬ parameters - │ │ │ ├─┬ lhs - │ │ │ │ └── type: @scope/jsii-calc-lib.Value - │ │ │ └─┬ rhs - │ │ │ └── type: @scope/jsii-calc-lib.Value - │ │ ├─┬ farewell() method (experimental) - │ │ │ └── returns: string - │ │ ├─┬ goodbye() method (experimental) - │ │ │ └── returns: string - │ │ ├─┬ next() method (experimental) - │ │ │ └── returns: number - │ │ ├─┬ toString() method (experimental) - │ │ │ └── returns: string - │ │ └─┬ value property (experimental) - │ │ ├── immutable - │ │ └── type: number - │ ├─┬ class Negate (experimental) - │ │ ├── base: UnaryOperation - │ │ ├── interfaces: IFriendlier - │ │ └─┬ members - │ │ ├─┬ (operand) initializer (experimental) - │ │ │ └─┬ parameters - │ │ │ └─┬ operand - │ │ │ └── type: @scope/jsii-calc-lib.Value - │ │ ├─┬ farewell() method (experimental) - │ │ │ └── returns: string - │ │ ├─┬ goodbye() method (experimental) - │ │ │ └── returns: string - │ │ ├─┬ hello() method (experimental) - │ │ │ └── returns: string - │ │ ├─┬ toString() method (experimental) - │ │ │ └── returns: string - │ │ └─┬ value property (experimental) - │ │ ├── immutable - │ │ └── type: number - │ ├─┬ class Power (experimental) - │ │ ├── base: CompositeOperation - │ │ └─┬ members - │ │ ├─┬ (base,pow) initializer (experimental) - │ │ │ └─┬ parameters - │ │ │ ├─┬ base - │ │ │ │ └── type: @scope/jsii-calc-lib.Value - │ │ │ └─┬ pow - │ │ │ └── type: @scope/jsii-calc-lib.Value - │ │ ├─┬ base property (experimental) - │ │ │ ├── immutable - │ │ │ └── type: @scope/jsii-calc-lib.Value - │ │ ├─┬ expression property (experimental) - │ │ │ ├── immutable - │ │ │ └── type: @scope/jsii-calc-lib.Value - │ │ └─┬ pow property (experimental) - │ │ ├── immutable - │ │ └── type: @scope/jsii-calc-lib.Value - │ ├─┬ class PropertyNamedProperty (experimental) - │ │ └─┬ members - │ │ ├── () initializer (experimental) - │ │ ├─┬ property property (experimental) - │ │ │ ├── immutable - │ │ │ └── type: string - │ │ └─┬ yetAnoterOne property (experimental) - │ │ ├── immutable - │ │ └── type: boolean - │ ├─┬ class Sum (experimental) - │ │ ├── base: CompositeOperation - │ │ └─┬ members - │ │ ├── () initializer (experimental) - │ │ ├─┬ expression property (experimental) - │ │ │ ├── immutable - │ │ │ └── type: @scope/jsii-calc-lib.Value - │ │ └─┬ parts property (experimental) - │ │ └── type: Array<@scope/jsii-calc-lib.Value> - │ ├─┬ class UnaryOperation (experimental) - │ │ ├── base: Operation - │ │ └─┬ members - │ │ ├─┬ (operand) initializer (experimental) - │ │ │ └─┬ parameters - │ │ │ └─┬ operand - │ │ │ └── type: @scope/jsii-calc-lib.Value - │ │ └─┬ operand property (experimental) - │ │ ├── immutable - │ │ └── type: @scope/jsii-calc-lib.Value - │ ├─┬ class AbstractClass (experimental) - │ │ ├── base: AbstractClassBase - │ │ ├── interfaces: IInterfaceImplementedByAbstractClass - │ │ └─┬ members - │ │ ├── () initializer (experimental) - │ │ ├─┬ abstractMethod(name) method (experimental) - │ │ │ ├── abstract - │ │ │ ├─┬ parameters - │ │ │ │ └─┬ name - │ │ │ │ └── type: string - │ │ │ └── returns: string - │ │ ├─┬ nonAbstractMethod() method (experimental) - │ │ │ └── returns: number - │ │ └─┬ propFromInterface property (experimental) - │ │ ├── immutable - │ │ └── type: string - │ ├─┬ class AbstractClassBase (experimental) - │ │ └─┬ members - │ │ ├── () initializer (experimental) - │ │ └─┬ abstractProperty property (experimental) - │ │ ├── abstract - │ │ ├── immutable - │ │ └── type: string - │ ├─┬ class AbstractClassReturner (experimental) - │ │ └─┬ members - │ │ ├── () initializer (experimental) - │ │ ├─┬ giveMeAbstract() method (experimental) - │ │ │ └── returns: jsii-calc.compliance.AbstractClass - │ │ ├─┬ giveMeInterface() method (experimental) - │ │ │ └── returns: jsii-calc.compliance.IInterfaceImplementedByAbstractClass - │ │ └─┬ returnAbstractFromProperty property (experimental) - │ │ ├── immutable - │ │ └── type: jsii-calc.compliance.AbstractClassBase │ ├─┬ class AllTypes (experimental) │ │ └─┬ members │ │ ├── () initializer (experimental) @@ -240,8 +172,8 @@ exports[`jsii-tree --all 1`] = ` │ │ ├─┬ enumMethod(value) method (experimental) │ │ │ ├─┬ parameters │ │ │ │ └─┬ value - │ │ │ │ └── type: jsii-calc.compliance.StringEnum - │ │ │ └── returns: jsii-calc.compliance.StringEnum + │ │ │ │ └── type: jsii-calc.StringEnum + │ │ │ └── returns: jsii-calc.StringEnum │ │ ├─┬ enumPropertyValue property (experimental) │ │ │ ├── immutable │ │ │ └── type: number @@ -258,7 +190,7 @@ exports[`jsii-tree --all 1`] = ` │ │ ├─┬ dateProperty property (experimental) │ │ │ └── type: date │ │ ├─┬ enumProperty property (experimental) - │ │ │ └── type: jsii-calc.compliance.AllTypesEnum + │ │ │ └── type: jsii-calc.AllTypesEnum │ │ ├─┬ jsonProperty property (experimental) │ │ │ └── type: json │ │ ├─┬ mapProperty property (experimental) @@ -280,7 +212,7 @@ exports[`jsii-tree --all 1`] = ` │ │ ├─┬ unknownProperty property (experimental) │ │ │ └── type: any │ │ └─┬ optionalEnumValue property (experimental) - │ │ └── type: Optional + │ │ └── type: Optional │ ├─┬ class AllowedMethodNames (experimental) │ │ └─┬ members │ │ ├── () initializer (experimental) @@ -317,23 +249,23 @@ exports[`jsii-tree --all 1`] = ` │ │ ├─┬ (scope,props) initializer (experimental) │ │ │ └─┬ parameters │ │ │ ├─┬ scope - │ │ │ │ └── type: jsii-calc.compliance.Bell + │ │ │ │ └── type: jsii-calc.Bell │ │ │ └─┬ props - │ │ │ └── type: jsii-calc.compliance.StructParameterType + │ │ │ └── type: jsii-calc.StructParameterType │ │ ├─┬ props property (experimental) │ │ │ ├── immutable - │ │ │ └── type: jsii-calc.compliance.StructParameterType + │ │ │ └── type: jsii-calc.StructParameterType │ │ └─┬ scope property (experimental) │ │ ├── immutable - │ │ └── type: jsii-calc.compliance.Bell + │ │ └── type: jsii-calc.Bell │ ├─┬ class AnonymousImplementationProvider (experimental) │ │ ├── interfaces: IAnonymousImplementationProvider │ │ └─┬ members │ │ ├── () initializer (experimental) │ │ ├─┬ provideAsClass() method (experimental) - │ │ │ └── returns: jsii-calc.compliance.Implementation + │ │ │ └── returns: jsii-calc.Implementation │ │ └─┬ provideAsInterface() method (experimental) - │ │ └── returns: jsii-calc.compliance.IAnonymouslyImplementMe + │ │ └── returns: jsii-calc.IAnonymouslyImplementMe │ ├─┬ class AsyncVirtualMethods (experimental) │ │ └─┬ members │ │ ├── () initializer (experimental) @@ -370,6 +302,65 @@ exports[`jsii-tree --all 1`] = ` │ │ │ └── returns: void │ │ └─┬ rung property (experimental) │ │ └── type: boolean + │ ├─┬ class BinaryOperation (experimental) + │ │ ├── base: Operation + │ │ ├── interfaces: IFriendly + │ │ └─┬ members + │ │ ├─┬ (lhs,rhs) initializer (experimental) + │ │ │ └─┬ parameters + │ │ │ ├─┬ lhs + │ │ │ │ └── type: @scope/jsii-calc-lib.Value + │ │ │ └─┬ rhs + │ │ │ └── type: @scope/jsii-calc-lib.Value + │ │ ├─┬ hello() method (experimental) + │ │ │ └── returns: string + │ │ ├─┬ lhs property (experimental) + │ │ │ ├── immutable + │ │ │ └── type: @scope/jsii-calc-lib.Value + │ │ └─┬ rhs property (experimental) + │ │ ├── immutable + │ │ └── type: @scope/jsii-calc-lib.Value + │ ├─┬ class Calculator (experimental) + │ │ ├── base: CompositeOperation + │ │ └─┬ members + │ │ ├─┬ (props) initializer (experimental) + │ │ │ └─┬ parameters + │ │ │ └─┬ props + │ │ │ └── type: Optional + │ │ ├─┬ add(value) method (experimental) + │ │ │ ├─┬ parameters + │ │ │ │ └─┬ value + │ │ │ │ └── type: number + │ │ │ └── returns: void + │ │ ├─┬ mul(value) method (experimental) + │ │ │ ├─┬ parameters + │ │ │ │ └─┬ value + │ │ │ │ └── type: number + │ │ │ └── returns: void + │ │ ├─┬ neg() method (experimental) + │ │ │ └── returns: void + │ │ ├─┬ pow(value) method (experimental) + │ │ │ ├─┬ parameters + │ │ │ │ └─┬ value + │ │ │ │ └── type: number + │ │ │ └── returns: void + │ │ ├─┬ readUnionValue() method (experimental) + │ │ │ └── returns: number + │ │ ├─┬ expression property (experimental) + │ │ │ ├── immutable + │ │ │ └── type: @scope/jsii-calc-lib.Value + │ │ ├─┬ operationsLog property (experimental) + │ │ │ ├── immutable + │ │ │ └── type: Array<@scope/jsii-calc-lib.Value> + │ │ ├─┬ operationsMap property (experimental) + │ │ │ ├── immutable + │ │ │ └── type: Map Array<@scope/jsii-calc-lib.Value>> + │ │ ├─┬ curr property (experimental) + │ │ │ └── type: @scope/jsii-calc-lib.Value + │ │ ├─┬ maxValue property (experimental) + │ │ │ └── type: Optional + │ │ └─┬ unionProperty property (experimental) + │ │ └── type: Optional │ ├─┬ class ClassThatImplementsTheInternalInterface (experimental) │ │ ├── interfaces: INonInternalInterface │ │ └─┬ members @@ -439,7 +430,7 @@ exports[`jsii-tree --all 1`] = ` │ │ └─┬ members │ │ ├── () initializer (experimental) │ │ └─┬ mutableObject property (experimental) - │ │ └── type: jsii-calc.compliance.IMutableObjectLiteral + │ │ └── type: jsii-calc.IMutableObjectLiteral │ ├─┬ class ClassWithPrivateConstructorAndAutomaticProperties (experimental) │ │ ├── interfaces: IInterfaceWithProperties │ │ └─┬ members @@ -450,7 +441,7 @@ exports[`jsii-tree --all 1`] = ` │ │ │ │ │ └── type: string │ │ │ │ └─┬ readWriteString │ │ │ │ └── type: string - │ │ │ └── returns: jsii-calc.compliance.ClassWithPrivateConstructorAndAutomaticProperties + │ │ │ └── returns: jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties │ │ ├─┬ readOnlyString property (experimental) │ │ │ ├── immutable │ │ │ └── type: string @@ -460,50 +451,50 @@ exports[`jsii-tree --all 1`] = ` │ │ └─┬ members │ │ ├─┬ static makeInstance() method (experimental) │ │ │ ├── static - │ │ │ └── returns: jsii-calc.compliance.ConfusingToJackson + │ │ │ └── returns: jsii-calc.ConfusingToJackson │ │ ├─┬ static makeStructInstance() method (experimental) │ │ │ ├── static - │ │ │ └── returns: jsii-calc.compliance.ConfusingToJacksonStruct + │ │ │ └── returns: jsii-calc.ConfusingToJacksonStruct │ │ └─┬ unionProperty property (experimental) - │ │ └── type: Optional<@scope/jsii-calc-lib.IFriendly | Array> + │ │ └── type: Optional<@scope/jsii-calc-lib.IFriendly | Array<@scope/jsii-calc-lib.IFriendly | jsii-calc.AbstractClass>> │ ├─┬ class ConstructorPassesThisOut (experimental) │ │ └─┬ members │ │ └─┬ (consumer) initializer (experimental) │ │ └─┬ parameters │ │ └─┬ consumer - │ │ └── type: jsii-calc.compliance.PartiallyInitializedThisConsumer + │ │ └── type: jsii-calc.PartiallyInitializedThisConsumer │ ├─┬ class Constructors (experimental) │ │ └─┬ members │ │ ├── () initializer (experimental) │ │ ├─┬ static hiddenInterface() method (experimental) │ │ │ ├── static - │ │ │ └── returns: jsii-calc.compliance.IPublicInterface + │ │ │ └── returns: jsii-calc.IPublicInterface │ │ ├─┬ static hiddenInterfaces() method (experimental) │ │ │ ├── static - │ │ │ └── returns: Array + │ │ │ └── returns: Array │ │ ├─┬ static hiddenSubInterfaces() method (experimental) │ │ │ ├── static - │ │ │ └── returns: Array + │ │ │ └── returns: Array │ │ ├─┬ static makeClass() method (experimental) │ │ │ ├── static - │ │ │ └── returns: jsii-calc.compliance.PublicClass + │ │ │ └── returns: jsii-calc.PublicClass │ │ ├─┬ static makeInterface() method (experimental) │ │ │ ├── static - │ │ │ └── returns: jsii-calc.compliance.IPublicInterface + │ │ │ └── returns: jsii-calc.IPublicInterface │ │ ├─┬ static makeInterface2() method (experimental) │ │ │ ├── static - │ │ │ └── returns: jsii-calc.compliance.IPublicInterface2 + │ │ │ └── returns: jsii-calc.IPublicInterface2 │ │ └─┬ static makeInterfaces() method (experimental) │ │ ├── static - │ │ └── returns: Array + │ │ └── returns: Array │ ├─┬ class ConsumePureInterface (experimental) │ │ └─┬ members │ │ ├─┬ (delegate) initializer (experimental) │ │ │ └─┬ parameters │ │ │ └─┬ delegate - │ │ │ └── type: jsii-calc.compliance.IStructReturningDelegate + │ │ │ └── type: jsii-calc.IStructReturningDelegate │ │ └─┬ workItBaby() method (experimental) - │ │ └── returns: jsii-calc.compliance.StructB + │ │ └── returns: jsii-calc.StructB │ ├─┬ class ConsumerCanRingBell (experimental) │ │ └─┬ members │ │ ├── () initializer (experimental) @@ -511,45 +502,45 @@ exports[`jsii-tree --all 1`] = ` │ │ │ ├── static │ │ │ ├─┬ parameters │ │ │ │ └─┬ ringer - │ │ │ │ └── type: jsii-calc.compliance.IBellRinger + │ │ │ │ └── type: jsii-calc.IBellRinger │ │ │ └── returns: boolean │ │ ├─┬ static staticImplementedByPrivateClass(ringer) method (experimental) │ │ │ ├── static │ │ │ ├─┬ parameters │ │ │ │ └─┬ ringer - │ │ │ │ └── type: jsii-calc.compliance.IBellRinger + │ │ │ │ └── type: jsii-calc.IBellRinger │ │ │ └── returns: boolean │ │ ├─┬ static staticImplementedByPublicClass(ringer) method (experimental) │ │ │ ├── static │ │ │ ├─┬ parameters │ │ │ │ └─┬ ringer - │ │ │ │ └── type: jsii-calc.compliance.IBellRinger + │ │ │ │ └── type: jsii-calc.IBellRinger │ │ │ └── returns: boolean │ │ ├─┬ static staticWhenTypedAsClass(ringer) method (experimental) │ │ │ ├── static │ │ │ ├─┬ parameters │ │ │ │ └─┬ ringer - │ │ │ │ └── type: jsii-calc.compliance.IConcreteBellRinger + │ │ │ │ └── type: jsii-calc.IConcreteBellRinger │ │ │ └── returns: boolean │ │ ├─┬ implementedByObjectLiteral(ringer) method (experimental) │ │ │ ├─┬ parameters │ │ │ │ └─┬ ringer - │ │ │ │ └── type: jsii-calc.compliance.IBellRinger + │ │ │ │ └── type: jsii-calc.IBellRinger │ │ │ └── returns: boolean │ │ ├─┬ implementedByPrivateClass(ringer) method (experimental) │ │ │ ├─┬ parameters │ │ │ │ └─┬ ringer - │ │ │ │ └── type: jsii-calc.compliance.IBellRinger + │ │ │ │ └── type: jsii-calc.IBellRinger │ │ │ └── returns: boolean │ │ ├─┬ implementedByPublicClass(ringer) method (experimental) │ │ │ ├─┬ parameters │ │ │ │ └─┬ ringer - │ │ │ │ └── type: jsii-calc.compliance.IBellRinger + │ │ │ │ └── type: jsii-calc.IBellRinger │ │ │ └── returns: boolean │ │ └─┬ whenTypedAsClass(ringer) method (experimental) │ │ ├─┬ parameters │ │ │ └─┬ ringer - │ │ │ └── type: jsii-calc.compliance.IConcreteBellRinger + │ │ │ └── type: jsii-calc.IConcreteBellRinger │ │ └── returns: boolean │ ├─┬ class ConsumersOfThisCrazyTypeSystem (experimental) │ │ └─┬ members @@ -557,12 +548,12 @@ exports[`jsii-tree --all 1`] = ` │ │ ├─┬ consumeAnotherPublicInterface(obj) method (experimental) │ │ │ ├─┬ parameters │ │ │ │ └─┬ obj - │ │ │ │ └── type: jsii-calc.compliance.IAnotherPublicInterface + │ │ │ │ └── type: jsii-calc.IAnotherPublicInterface │ │ │ └── returns: string │ │ └─┬ consumeNonInternalInterface(obj) method (experimental) │ │ ├─┬ parameters │ │ │ └─┬ obj - │ │ │ └── type: jsii-calc.compliance.INonInternalInterface + │ │ │ └── type: jsii-calc.INonInternalInterface │ │ └── returns: any │ ├─┬ class DataRenderer (experimental) │ │ └─┬ members @@ -606,19 +597,25 @@ exports[`jsii-tree --all 1`] = ` │ │ ├── () initializer (experimental) │ │ ├─┬ static takeThis() method (experimental) │ │ │ ├── static - │ │ │ └── returns: jsii-calc.compliance.ChildStruct982 + │ │ │ └── returns: jsii-calc.ChildStruct982 │ │ └─┬ static takeThisToo() method (experimental) │ │ ├── static - │ │ └── returns: jsii-calc.compliance.ParentStruct982 - │ ├─┬ class Base (experimental) - │ │ └─┬ members - │ │ ├── () initializer (experimental) - │ │ └─┬ prop property (experimental) - │ │ └── type: string - │ ├─┬ class Derived (experimental) - │ │ ├── base: Base + │ │ └── returns: jsii-calc.ParentStruct982 + │ ├─┬ class DeprecatedClass (deprecated) │ │ └─┬ members - │ │ └── () initializer (experimental) + │ │ ├─┬ (readonlyString,mutableNumber) initializer (deprecated) + │ │ │ └─┬ parameters + │ │ │ ├─┬ readonlyString + │ │ │ │ └── type: string + │ │ │ └─┬ mutableNumber + │ │ │ └── type: Optional + │ │ ├─┬ method() method (deprecated) + │ │ │ └── returns: void + │ │ ├─┬ readonlyProperty property (deprecated) + │ │ │ ├── immutable + │ │ │ └── type: string + │ │ └─┬ mutableProperty property (deprecated) + │ │ └── type: Optional │ ├─┬ class DisappointingCollectionSource (experimental) │ │ └─┬ members │ │ ├─┬ static maybeList property (experimental) @@ -655,6 +652,16 @@ exports[`jsii-tree --all 1`] = ` │ │ │ └─┬ _optionalString │ │ │ └── type: Optional │ │ └── returns: void + │ ├─┬ class DocumentedClass (stable) + │ │ └─┬ members + │ │ ├── () initializer (stable) + │ │ ├─┬ greet(greetee) method (stable) + │ │ │ ├─┬ parameters + │ │ │ │ └─┬ greetee + │ │ │ │ └── type: Optional + │ │ │ └── returns: number + │ │ └─┬ hola() method (experimental) + │ │ └── returns: void │ ├─┬ class DontComplainAboutVariadicAfterOptional (experimental) │ │ └─┬ members │ │ ├── () initializer (experimental) @@ -679,10 +686,10 @@ exports[`jsii-tree --all 1`] = ` │ │ └─┬ members │ │ ├─┬ static randomIntegerLikeEnum() method (experimental) │ │ │ ├── static - │ │ │ └── returns: jsii-calc.compliance.AllTypesEnum + │ │ │ └── returns: jsii-calc.AllTypesEnum │ │ └─┬ static randomStringLikeEnum() method (experimental) │ │ ├── static - │ │ └── returns: jsii-calc.compliance.StringEnum + │ │ └── returns: jsii-calc.StringEnum │ ├─┬ class EraseUndefinedHashValues (experimental) │ │ └─┬ members │ │ ├── () initializer (experimental) @@ -690,7 +697,7 @@ exports[`jsii-tree --all 1`] = ` │ │ │ ├── static │ │ │ ├─┬ parameters │ │ │ │ ├─┬ opts - │ │ │ │ │ └── type: jsii-calc.compliance.EraseUndefinedHashValuesOptions + │ │ │ │ │ └── type: jsii-calc.EraseUndefinedHashValuesOptions │ │ │ │ └─┬ key │ │ │ │ └── type: string │ │ │ └── returns: boolean @@ -700,6 +707,21 @@ exports[`jsii-tree --all 1`] = ` │ │ └─┬ static prop2IsUndefined() method (experimental) │ │ ├── static │ │ └── returns: Map any> + │ ├─┬ class ExperimentalClass (experimental) + │ │ └─┬ members + │ │ ├─┬ (readonlyString,mutableNumber) initializer (experimental) + │ │ │ └─┬ parameters + │ │ │ ├─┬ readonlyString + │ │ │ │ └── type: string + │ │ │ └─┬ mutableNumber + │ │ │ └── type: Optional + │ │ ├─┬ method() method (experimental) + │ │ │ └── returns: void + │ │ ├─┬ readonlyProperty property (experimental) + │ │ │ ├── immutable + │ │ │ └── type: string + │ │ └─┬ mutableProperty property (experimental) + │ │ └── type: Optional │ ├─┬ class ExportedBaseClass (experimental) │ │ └─┬ members │ │ ├─┬ (success) initializer (experimental) @@ -715,13 +737,13 @@ exports[`jsii-tree --all 1`] = ` │ │ ├─┬ derivedToFirst(derived) method (experimental) │ │ │ ├─┬ parameters │ │ │ │ └─┬ derived - │ │ │ │ └── type: jsii-calc.compliance.DerivedStruct + │ │ │ │ └── type: jsii-calc.DerivedStruct │ │ │ └── returns: @scope/jsii-calc-lib.MyFirstStruct │ │ ├─┬ readDerivedNonPrimitive(derived) method (experimental) │ │ │ ├─┬ parameters │ │ │ │ └─┬ derived - │ │ │ │ └── type: jsii-calc.compliance.DerivedStruct - │ │ │ └── returns: jsii-calc.compliance.DoubleTrouble + │ │ │ │ └── type: jsii-calc.DerivedStruct + │ │ │ └── returns: jsii-calc.DoubleTrouble │ │ ├─┬ readFirstNumber(first) method (experimental) │ │ │ ├─┬ parameters │ │ │ │ └─┬ first @@ -775,21 +797,16 @@ exports[`jsii-tree --all 1`] = ` │ │ └─┬ members │ │ ├─┬ static listOfInterfaces() method (experimental) │ │ │ ├── static - │ │ │ └── returns: Array + │ │ │ └── returns: Array │ │ ├─┬ static listOfStructs() method (experimental) │ │ │ ├── static - │ │ │ └── returns: Array + │ │ │ └── returns: Array │ │ ├─┬ static mapOfInterfaces() method (experimental) │ │ │ ├── static - │ │ │ └── returns: Map jsii-calc.compliance.IBell> + │ │ │ └── returns: Map jsii-calc.IBell> │ │ └─┬ static mapOfStructs() method (experimental) │ │ ├── static - │ │ └── returns: Map jsii-calc.compliance.StructA> - │ ├─┬ class Foo (experimental) - │ │ └─┬ members - │ │ ├── () initializer (experimental) - │ │ └─┬ bar property (experimental) - │ │ └── type: Optional + │ │ └── returns: Map jsii-calc.StructA> │ ├─┬ class InterfacesMaker (experimental) │ │ └─┬ members │ │ └─┬ static makeInterfaces(count) method (experimental) @@ -798,6 +815,32 @@ exports[`jsii-tree --all 1`] = ` │ │ │ └─┬ count │ │ │ └── type: number │ │ └── returns: Array<@scope/jsii-calc-lib.IDoublable> + │ ├─┬ class JSII417Derived (experimental) + │ │ ├── base: JSII417PublicBaseOfBase + │ │ └─┬ members + │ │ ├─┬ (property) initializer (experimental) + │ │ │ └─┬ parameters + │ │ │ └─┬ property + │ │ │ └── type: string + │ │ ├─┬ bar() method (experimental) + │ │ │ └── returns: void + │ │ ├─┬ baz() method (experimental) + │ │ │ └── returns: void + │ │ └─┬ property property (experimental) + │ │ ├── immutable + │ │ ├── protected + │ │ └── type: string + │ ├─┬ class JSII417PublicBaseOfBase (experimental) + │ │ └─┬ members + │ │ ├── () initializer (experimental) + │ │ ├─┬ static makeInstance() method (experimental) + │ │ │ ├── static + │ │ │ └── returns: jsii-calc.JSII417PublicBaseOfBase + │ │ ├─┬ foo() method (experimental) + │ │ │ └── returns: void + │ │ └─┬ hasRoot property (experimental) + │ │ ├── immutable + │ │ └── type: boolean │ ├─┬ class JSObjectLiteralForInterface (experimental) │ │ └─┬ members │ │ ├── () initializer (experimental) @@ -809,7 +852,7 @@ exports[`jsii-tree --all 1`] = ` │ │ └─┬ members │ │ ├── () initializer (experimental) │ │ └─┬ returnLiteral() method (experimental) - │ │ └── returns: jsii-calc.compliance.JSObjectLiteralToNativeClass + │ │ └── returns: jsii-calc.JSObjectLiteralToNativeClass │ ├─┬ class JSObjectLiteralToNativeClass (experimental) │ │ └─┬ members │ │ ├── () initializer (experimental) @@ -926,6 +969,14 @@ exports[`jsii-tree --all 1`] = ` │ │ │ └── returns: void │ │ └─┬ while property (experimental) │ │ └── type: string + │ ├─┬ class Jsii487Derived (experimental) + │ │ ├── interfaces: IJsii487External2,IJsii487External + │ │ └─┬ members + │ │ └── () initializer (experimental) + │ ├─┬ class Jsii496Derived (experimental) + │ │ ├── interfaces: IJsii496 + │ │ └─┬ members + │ │ └── () initializer (experimental) │ ├─┬ class JsiiAgent (experimental) │ │ └─┬ members │ │ ├── () initializer (experimental) @@ -980,6 +1031,54 @@ exports[`jsii-tree --all 1`] = ` │ │ │ └─┬ value │ │ │ └── type: any │ │ └── returns: Optional + │ ├─┬ class MethodNamedProperty (experimental) + │ │ └─┬ members + │ │ ├── () initializer (experimental) + │ │ ├─┬ property() method (experimental) + │ │ │ └── returns: string + │ │ └─┬ elite property (experimental) + │ │ ├── immutable + │ │ └── type: number + │ ├─┬ class Multiply (experimental) + │ │ ├── base: BinaryOperation + │ │ ├── interfaces: IFriendlier,IRandomNumberGenerator + │ │ └─┬ members + │ │ ├─┬ (lhs,rhs) initializer (experimental) + │ │ │ └─┬ parameters + │ │ │ ├─┬ lhs + │ │ │ │ └── type: @scope/jsii-calc-lib.Value + │ │ │ └─┬ rhs + │ │ │ └── type: @scope/jsii-calc-lib.Value + │ │ ├─┬ farewell() method (experimental) + │ │ │ └── returns: string + │ │ ├─┬ goodbye() method (experimental) + │ │ │ └── returns: string + │ │ ├─┬ next() method (experimental) + │ │ │ └── returns: number + │ │ ├─┬ toString() method (experimental) + │ │ │ └── returns: string + │ │ └─┬ value property (experimental) + │ │ ├── immutable + │ │ └── type: number + │ ├─┬ class Negate (experimental) + │ │ ├── base: UnaryOperation + │ │ ├── interfaces: IFriendlier + │ │ └─┬ members + │ │ ├─┬ (operand) initializer (experimental) + │ │ │ └─┬ parameters + │ │ │ └─┬ operand + │ │ │ └── type: @scope/jsii-calc-lib.Value + │ │ ├─┬ farewell() method (experimental) + │ │ │ └── returns: string + │ │ ├─┬ goodbye() method (experimental) + │ │ │ └── returns: string + │ │ ├─┬ hello() method (experimental) + │ │ │ └── returns: string + │ │ ├─┬ toString() method (experimental) + │ │ │ └── returns: string + │ │ └─┬ value property (experimental) + │ │ ├── immutable + │ │ └── type: number │ ├─┬ class NodeStandardLibrary (experimental) │ │ └─┬ members │ │ ├── () initializer (experimental) @@ -1008,7 +1107,7 @@ exports[`jsii-tree --all 1`] = ` │ │ ├─┬ giveMeUndefinedInsideAnObject(input) method (experimental) │ │ │ ├─┬ parameters │ │ │ │ └─┬ input - │ │ │ │ └── type: jsii-calc.compliance.NullShouldBeTreatedAsUndefinedData + │ │ │ │ └── type: jsii-calc.NullShouldBeTreatedAsUndefinedData │ │ │ └── returns: void │ │ ├─┬ verifyPropertyIsUndefined() method (experimental) │ │ │ └── returns: void @@ -1046,13 +1145,18 @@ exports[`jsii-tree --all 1`] = ` │ │ └─┬ members │ │ └─┬ static provide() method (experimental) │ │ ├── static - │ │ └── returns: jsii-calc.compliance.IObjectWithProperty + │ │ └── returns: jsii-calc.IObjectWithProperty + │ ├─┬ class Old (deprecated) + │ │ └─┬ members + │ │ ├── () initializer (deprecated) + │ │ └─┬ doAThing() method (deprecated) + │ │ └── returns: void │ ├─┬ class OptionalArgumentInvoker (experimental) │ │ └─┬ members │ │ ├─┬ (delegate) initializer (experimental) │ │ │ └─┬ parameters │ │ │ └─┬ delegate - │ │ │ └── type: jsii-calc.compliance.IInterfaceWithOptionalMethodArguments + │ │ │ └── type: jsii-calc.IInterfaceWithOptionalMethodArguments │ │ ├─┬ invokeWithOptional() method (experimental) │ │ │ └── returns: void │ │ └─┬ invokeWithoutOptional() method (experimental) @@ -1081,7 +1185,7 @@ exports[`jsii-tree --all 1`] = ` │ │ ├─┬ (optionalStruct) initializer (experimental) │ │ │ └─┬ parameters │ │ │ └─┬ optionalStruct - │ │ │ └── type: Optional + │ │ │ └── type: Optional │ │ ├─┬ parameterWasUndefined property (experimental) │ │ │ ├── immutable │ │ │ └── type: boolean @@ -1111,7 +1215,7 @@ exports[`jsii-tree --all 1`] = ` │ │ └─┬ test(obj) method (experimental) │ │ ├─┬ parameters │ │ │ └─┬ obj - │ │ │ └── type: jsii-calc.compliance.IReturnsNumber + │ │ │ └── type: jsii-calc.IReturnsNumber │ │ └── returns: number │ ├─┬ class PartiallyInitializedThisConsumer (experimental) │ │ └─┬ members @@ -1120,11 +1224,11 @@ exports[`jsii-tree --all 1`] = ` │ │ ├── abstract │ │ ├─┬ parameters │ │ │ ├─┬ obj - │ │ │ │ └── type: jsii-calc.compliance.ConstructorPassesThisOut + │ │ │ │ └── type: jsii-calc.ConstructorPassesThisOut │ │ │ ├─┬ dt │ │ │ │ └── type: date │ │ │ └─┬ ev - │ │ │ └── type: jsii-calc.compliance.AllTypesEnum + │ │ │ └── type: jsii-calc.AllTypesEnum │ │ └── returns: string │ ├─┬ class Polymorphism (experimental) │ │ └─┬ members @@ -1134,6 +1238,33 @@ exports[`jsii-tree --all 1`] = ` │ │ │ └─┬ friendly │ │ │ └── type: @scope/jsii-calc-lib.IFriendly │ │ └── returns: string + │ ├─┬ class Power (experimental) + │ │ ├── base: CompositeOperation + │ │ └─┬ members + │ │ ├─┬ (base,pow) initializer (experimental) + │ │ │ └─┬ parameters + │ │ │ ├─┬ base + │ │ │ │ └── type: @scope/jsii-calc-lib.Value + │ │ │ └─┬ pow + │ │ │ └── type: @scope/jsii-calc-lib.Value + │ │ ├─┬ base property (experimental) + │ │ │ ├── immutable + │ │ │ └── type: @scope/jsii-calc-lib.Value + │ │ ├─┬ expression property (experimental) + │ │ │ ├── immutable + │ │ │ └── type: @scope/jsii-calc-lib.Value + │ │ └─┬ pow property (experimental) + │ │ ├── immutable + │ │ └── type: @scope/jsii-calc-lib.Value + │ ├─┬ class PropertyNamedProperty (experimental) + │ │ └─┬ members + │ │ ├── () initializer (experimental) + │ │ ├─┬ property property (experimental) + │ │ │ ├── immutable + │ │ │ └── type: string + │ │ └─┬ yetAnoterOne property (experimental) + │ │ ├── immutable + │ │ └── type: boolean │ ├─┬ class PublicClass (experimental) │ │ └─┬ members │ │ ├── () initializer (experimental) @@ -1223,14 +1354,14 @@ exports[`jsii-tree --all 1`] = ` │ │ ├── () initializer (experimental) │ │ └─┬ privateImplementation property (experimental) │ │ ├── immutable - │ │ └── type: jsii-calc.compliance.IPrivatelyImplemented + │ │ └── type: jsii-calc.IPrivatelyImplemented │ ├─┬ class RootStructValidator (experimental) │ │ └─┬ members │ │ └─┬ static validate(struct) method (experimental) │ │ ├── static │ │ ├─┬ parameters │ │ │ └─┬ struct - │ │ │ └── type: jsii-calc.compliance.RootStruct + │ │ │ └── type: jsii-calc.RootStruct │ │ └── returns: void │ ├─┬ class RuntimeTypeChecking (experimental) │ │ └─┬ members @@ -1262,9 +1393,9 @@ exports[`jsii-tree --all 1`] = ` │ │ └─┬ members │ │ ├── () initializer (experimental) │ │ ├─┬ interface1() method (experimental) - │ │ │ └── returns: jsii-calc.compliance.InbetweenClass + │ │ │ └── returns: jsii-calc.InbetweenClass │ │ └─┬ interface2() method (experimental) - │ │ └── returns: jsii-calc.compliance.IPublicInterface + │ │ └── returns: jsii-calc.IPublicInterface │ ├─┬ class SingletonInt (experimental) │ │ └─┬ members │ │ └─┬ isSingletonInt(value) method (experimental) @@ -1287,7 +1418,22 @@ exports[`jsii-tree --all 1`] = ` │ │ │ └── returns: any │ │ └─┬ static returnReturn() method (experimental) │ │ ├── static - │ │ └── returns: jsii-calc.compliance.IReturnJsii976 + │ │ └── returns: jsii-calc.IReturnJsii976 + │ ├─┬ class StableClass (stable) + │ │ └─┬ members + │ │ ├─┬ (readonlyString,mutableNumber) initializer (stable) + │ │ │ └─┬ parameters + │ │ │ ├─┬ readonlyString + │ │ │ │ └── type: string + │ │ │ └─┬ mutableNumber + │ │ │ └── type: Optional + │ │ ├─┬ method() method (stable) + │ │ │ └── returns: void + │ │ ├─┬ readonlyProperty property (stable) + │ │ │ ├── immutable + │ │ │ └── type: string + │ │ └─┬ mutableProperty property (stable) + │ │ └── type: Optional │ ├─┬ class StaticContext (experimental) │ │ └─┬ members │ │ ├─┬ static canAccessStaticContext() method (experimental) @@ -1319,7 +1465,7 @@ exports[`jsii-tree --all 1`] = ` │ │ │ ├── const │ │ │ ├── immutable │ │ │ ├── static - │ │ │ └── type: jsii-calc.compliance.DoubleTrouble + │ │ │ └── type: jsii-calc.DoubleTrouble │ │ ├─┬ static Foo property (experimental) │ │ │ ├── const │ │ │ ├── immutable @@ -1332,7 +1478,7 @@ exports[`jsii-tree --all 1`] = ` │ │ │ └── type: Map string> │ │ ├─┬ static instance property (experimental) │ │ │ ├── static - │ │ │ └── type: jsii-calc.compliance.Statics + │ │ │ └── type: jsii-calc.Statics │ │ ├─┬ static nonConstStatic property (experimental) │ │ │ ├── static │ │ │ └── type: number @@ -1354,7 +1500,7 @@ exports[`jsii-tree --all 1`] = ` │ │ │ │ ├─┬ _positional │ │ │ │ │ └── type: number │ │ │ │ └─┬ inputs - │ │ │ │ ├── type: jsii-calc.compliance.TopLevelStruct + │ │ │ │ ├── type: jsii-calc.TopLevelStruct │ │ │ │ └── variadic │ │ │ └── returns: number │ │ └─┬ static roundTrip(_positional,input) method @@ -1363,22 +1509,31 @@ exports[`jsii-tree --all 1`] = ` │ │ │ ├─┬ _positional │ │ │ │ └── type: number │ │ │ └─┬ input - │ │ │ └── type: jsii-calc.compliance.TopLevelStruct - │ │ └── returns: jsii-calc.compliance.TopLevelStruct + │ │ │ └── type: jsii-calc.TopLevelStruct + │ │ └── returns: jsii-calc.TopLevelStruct │ ├─┬ class StructUnionConsumer (experimental) │ │ └─┬ members │ │ ├─┬ static isStructA(struct) method (experimental) │ │ │ ├── static │ │ │ ├─┬ parameters │ │ │ │ └─┬ struct - │ │ │ │ └── type: jsii-calc.compliance.StructA | jsii-calc.compliance.StructB + │ │ │ │ └── type: jsii-calc.StructA | jsii-calc.StructB │ │ │ └── returns: boolean │ │ └─┬ static isStructB(struct) method (experimental) │ │ ├── static │ │ ├─┬ parameters │ │ │ └─┬ struct - │ │ │ └── type: jsii-calc.compliance.StructA | jsii-calc.compliance.StructB + │ │ │ └── type: jsii-calc.StructA | jsii-calc.StructB │ │ └── returns: boolean + │ ├─┬ class Sum (experimental) + │ │ ├── base: CompositeOperation + │ │ └─┬ members + │ │ ├── () initializer (experimental) + │ │ ├─┬ expression property (experimental) + │ │ │ ├── immutable + │ │ │ └── type: @scope/jsii-calc-lib.Value + │ │ └─┬ parts property (experimental) + │ │ └── type: Array<@scope/jsii-calc-lib.Value> │ ├─┬ class SupportsNiceJavaBuilder (experimental) │ │ ├── base: SupportsNiceJavaBuilderWithRequiredProps │ │ └─┬ members @@ -1390,7 +1545,7 @@ exports[`jsii-tree --all 1`] = ` │ │ │ ├─┬ defaultBar │ │ │ │ └── type: Optional │ │ │ ├─┬ props - │ │ │ │ └── type: Optional + │ │ │ │ └── type: Optional │ │ │ └─┬ rest │ │ │ ├── type: string │ │ │ └── variadic @@ -1407,7 +1562,7 @@ exports[`jsii-tree --all 1`] = ` │ │ │ ├─┬ id │ │ │ │ └── type: number │ │ │ └─┬ props - │ │ │ └── type: jsii-calc.compliance.SupportsNiceJavaBuilderProps + │ │ │ └── type: jsii-calc.SupportsNiceJavaBuilderProps │ │ ├─┬ bar property (experimental) │ │ │ ├── immutable │ │ │ └── type: number @@ -1470,6 +1625,16 @@ exports[`jsii-tree --all 1`] = ` │ │ ├── () initializer (experimental) │ │ └─┬ throwError() method (experimental) │ │ └── returns: void + │ ├─┬ class UnaryOperation (experimental) + │ │ ├── base: Operation + │ │ └─┬ members + │ │ ├─┬ (operand) initializer (experimental) + │ │ │ └─┬ parameters + │ │ │ └─┬ operand + │ │ │ └── type: @scope/jsii-calc-lib.Value + │ │ └─┬ operand property (experimental) + │ │ ├── immutable + │ │ └── type: @scope/jsii-calc-lib.Value │ ├─┬ class UseBundledDependency (experimental) │ │ └─┬ members │ │ ├── () initializer (experimental) @@ -1485,13 +1650,13 @@ exports[`jsii-tree --all 1`] = ` │ │ ├─┬ (obj) initializer (experimental) │ │ │ └─┬ parameters │ │ │ └─┬ obj - │ │ │ └── type: jsii-calc.compliance.IInterfaceWithProperties + │ │ │ └── type: jsii-calc.IInterfaceWithProperties │ │ ├─┬ justRead() method (experimental) │ │ │ └── returns: string │ │ ├─┬ readStringAndNumber(ext) method (experimental) │ │ │ ├─┬ parameters │ │ │ │ └─┬ ext - │ │ │ │ └── type: jsii-calc.compliance.IInterfaceWithPropertiesExtension + │ │ │ │ └── type: jsii-calc.IInterfaceWithPropertiesExtension │ │ │ └── returns: string │ │ ├─┬ writeAndRead(value) method (experimental) │ │ │ ├─┬ parameters @@ -1500,13 +1665,13 @@ exports[`jsii-tree --all 1`] = ` │ │ │ └── returns: string │ │ └─┬ obj property (experimental) │ │ ├── immutable - │ │ └── type: jsii-calc.compliance.IInterfaceWithProperties + │ │ └── type: jsii-calc.IInterfaceWithProperties │ ├─┬ class VariadicInvoker (experimental) │ │ └─┬ members │ │ ├─┬ (method) initializer (experimental) │ │ │ └─┬ parameters │ │ │ └─┬ method - │ │ │ └── type: jsii-calc.compliance.VariadicMethod + │ │ │ └── type: jsii-calc.VariadicMethod │ │ └─┬ asArray(values) method (experimental) │ │ ├── variadic │ │ ├─┬ parameters @@ -1580,159 +1745,16 @@ exports[`jsii-tree --all 1`] = ` │ │ └─┬ success property (experimental) │ │ ├── immutable │ │ └── type: boolean - │ ├─┬ class CompositeOperation (experimental) - │ │ ├── base: Operation - │ │ └─┬ members - │ │ ├── () initializer (experimental) - │ │ ├─┬ toString() method (experimental) - │ │ │ └── returns: string - │ │ ├─┬ expression property (experimental) - │ │ │ ├── abstract - │ │ │ ├── immutable - │ │ │ └── type: @scope/jsii-calc-lib.Value - │ │ ├─┬ value property (experimental) - │ │ │ ├── immutable - │ │ │ └── type: number - │ │ ├─┬ decorationPostfixes property (experimental) - │ │ │ └── type: Array - │ │ ├─┬ decorationPrefixes property (experimental) - │ │ │ └── type: Array - │ │ └─┬ stringStyle property (experimental) - │ │ └── type: jsii-calc.composition.CompositeOperation.CompositionStringStyle - │ ├─┬ class DocumentedClass (stable) - │ │ └─┬ members - │ │ ├── () initializer (stable) - │ │ ├─┬ greet(greetee) method (stable) - │ │ │ ├─┬ parameters - │ │ │ │ └─┬ greetee - │ │ │ │ └── type: Optional - │ │ │ └── returns: number - │ │ └─┬ hola() method (experimental) - │ │ └── returns: void - │ ├─┬ class Old (deprecated) - │ │ └─┬ members - │ │ ├── () initializer (deprecated) - │ │ └─┬ doAThing() method (deprecated) - │ │ └── returns: void - │ ├─┬ class JSII417Derived (experimental) - │ │ ├── base: JSII417PublicBaseOfBase - │ │ └─┬ members - │ │ ├─┬ (property) initializer (experimental) - │ │ │ └─┬ parameters - │ │ │ └─┬ property - │ │ │ └── type: string - │ │ ├─┬ bar() method (experimental) - │ │ │ └── returns: void - │ │ ├─┬ baz() method (experimental) - │ │ │ └── returns: void - │ │ └─┬ property property (experimental) - │ │ ├── immutable - │ │ ├── protected - │ │ └── type: string - │ ├─┬ class JSII417PublicBaseOfBase (experimental) - │ │ └─┬ members - │ │ ├── () initializer (experimental) - │ │ ├─┬ static makeInstance() method (experimental) - │ │ │ ├── static - │ │ │ └── returns: jsii-calc.erasureTests.JSII417PublicBaseOfBase - │ │ ├─┬ foo() method (experimental) - │ │ │ └── returns: void - │ │ └─┬ hasRoot property (experimental) - │ │ ├── immutable - │ │ └── type: boolean - │ ├─┬ class Jsii487Derived (experimental) - │ │ ├── interfaces: IJsii487External2,IJsii487External - │ │ └─┬ members - │ │ └── () initializer (experimental) - │ ├─┬ class Jsii496Derived (experimental) - │ │ ├── interfaces: IJsii496 - │ │ └─┬ members - │ │ └── () initializer (experimental) - │ ├─┬ class DeprecatedClass (deprecated) - │ │ └─┬ members - │ │ ├─┬ (readonlyString,mutableNumber) initializer (deprecated) - │ │ │ └─┬ parameters - │ │ │ ├─┬ readonlyString - │ │ │ │ └── type: string - │ │ │ └─┬ mutableNumber - │ │ │ └── type: Optional - │ │ ├─┬ method() method (deprecated) - │ │ │ └── returns: void - │ │ ├─┬ readonlyProperty property (deprecated) - │ │ │ ├── immutable - │ │ │ └── type: string - │ │ └─┬ mutableProperty property (deprecated) - │ │ └── type: Optional - │ ├─┬ class ExperimentalClass (experimental) - │ │ └─┬ members - │ │ ├─┬ (readonlyString,mutableNumber) initializer (experimental) - │ │ │ └─┬ parameters - │ │ │ ├─┬ readonlyString - │ │ │ │ └── type: string - │ │ │ └─┬ mutableNumber - │ │ │ └── type: Optional - │ │ ├─┬ method() method (experimental) - │ │ │ └── returns: void - │ │ ├─┬ readonlyProperty property (experimental) - │ │ │ ├── immutable - │ │ │ └── type: string - │ │ └─┬ mutableProperty property (experimental) - │ │ └── type: Optional - │ ├─┬ class StableClass (stable) - │ │ └─┬ members - │ │ ├─┬ (readonlyString,mutableNumber) initializer (stable) - │ │ │ └─┬ parameters - │ │ │ ├─┬ readonlyString - │ │ │ │ └── type: string - │ │ │ └─┬ mutableNumber - │ │ │ └── type: Optional - │ │ ├─┬ method() method (stable) - │ │ │ └── returns: void - │ │ ├─┬ readonlyProperty property (stable) - │ │ │ ├── immutable - │ │ │ └── type: string - │ │ └─┬ mutableProperty property (stable) - │ │ └── type: Optional │ ├─┬ interface CalculatorProps (experimental) │ │ └─┬ members │ │ ├─┬ initialValue property (experimental) │ │ │ ├── abstract │ │ │ ├── immutable - │ │ │ └── type: Optional - │ │ └─┬ maximumValue property (experimental) - │ │ ├── abstract - │ │ ├── immutable - │ │ └── type: Optional - │ ├─┬ interface IFriendlier (experimental) - │ │ ├─┬ interfaces - │ │ │ └── IFriendly - │ │ └─┬ members - │ │ ├─┬ farewell() method (experimental) - │ │ │ ├── abstract - │ │ │ └── returns: string - │ │ └─┬ goodbye() method (experimental) - │ │ ├── abstract - │ │ └── returns: string - │ ├─┬ interface IFriendlyRandomGenerator (experimental) - │ │ ├─┬ interfaces - │ │ │ ├── IRandomNumberGenerator - │ │ │ └── IFriendly - │ │ └── members - │ ├─┬ interface IRandomNumberGenerator (experimental) - │ │ └─┬ members - │ │ └─┬ next() method (experimental) - │ │ ├── abstract - │ │ └── returns: number - │ ├─┬ interface SmellyStruct (experimental) - │ │ └─┬ members - │ │ ├─┬ property property (experimental) - │ │ │ ├── abstract - │ │ │ ├── immutable - │ │ │ └── type: string - │ │ └─┬ yetAnoterOne property (experimental) + │ │ │ └── type: Optional + │ │ └─┬ maximumValue property (experimental) │ │ ├── abstract │ │ ├── immutable - │ │ └── type: boolean + │ │ └── type: Optional │ ├─┬ interface ChildStruct982 (experimental) │ │ ├─┬ interfaces │ │ │ └── ParentStruct982 @@ -1746,7 +1768,13 @@ exports[`jsii-tree --all 1`] = ` │ │ └─┬ unionProperty property (experimental) │ │ ├── abstract │ │ ├── immutable - │ │ └── type: Optional<@scope/jsii-calc-lib.IFriendly | Array> + │ │ └── type: Optional<@scope/jsii-calc-lib.IFriendly | Array<@scope/jsii-calc-lib.IFriendly | jsii-calc.AbstractClass>> + │ ├─┬ interface DeprecatedStruct (deprecated) + │ │ └─┬ members + │ │ └─┬ readonlyProperty property (deprecated) + │ │ ├── abstract + │ │ ├── immutable + │ │ └── type: string │ ├─┬ interface DerivedStruct (experimental) │ │ ├─┬ interfaces │ │ │ └── MyFirstStruct @@ -1762,7 +1790,7 @@ exports[`jsii-tree --all 1`] = ` │ │ ├─┬ nonPrimitive property (experimental) │ │ │ ├── abstract │ │ │ ├── immutable - │ │ │ └── type: jsii-calc.compliance.DoubleTrouble + │ │ │ └── type: jsii-calc.DoubleTrouble │ │ ├─┬ anotherOptional property (experimental) │ │ │ ├── abstract │ │ │ ├── immutable @@ -1816,6 +1844,12 @@ exports[`jsii-tree --all 1`] = ` │ │ ├── abstract │ │ ├── immutable │ │ └── type: Optional + │ ├─┬ interface ExperimentalStruct (experimental) + │ │ └─┬ members + │ │ └─┬ readonlyProperty property (experimental) + │ │ ├── abstract + │ │ ├── immutable + │ │ └── type: string │ ├─┬ interface ExtendsInternalInterface (experimental) │ │ └─┬ members │ │ ├─┬ boom property (experimental) @@ -1826,14 +1860,20 @@ exports[`jsii-tree --all 1`] = ` │ │ ├── abstract │ │ ├── immutable │ │ └── type: string + │ ├─┬ interface Greetee (experimental) + │ │ └─┬ members + │ │ └─┬ name property (experimental) + │ │ ├── abstract + │ │ ├── immutable + │ │ └── type: Optional │ ├─┬ interface IAnonymousImplementationProvider (experimental) │ │ └─┬ members │ │ ├─┬ provideAsClass() method (experimental) │ │ │ ├── abstract - │ │ │ └── returns: jsii-calc.compliance.Implementation + │ │ │ └── returns: jsii-calc.Implementation │ │ └─┬ provideAsInterface() method (experimental) │ │ ├── abstract - │ │ └── returns: jsii-calc.compliance.IAnonymouslyImplementMe + │ │ └── returns: jsii-calc.IAnonymouslyImplementMe │ ├─┬ interface IAnonymouslyImplementMe (experimental) │ │ └─┬ members │ │ ├─┬ verb() method (experimental) @@ -1859,7 +1899,7 @@ exports[`jsii-tree --all 1`] = ` │ │ ├── abstract │ │ ├─┬ parameters │ │ │ └─┬ bell - │ │ │ └── type: jsii-calc.compliance.IBell + │ │ │ └── type: jsii-calc.IBell │ │ └── returns: void │ ├─┬ interface IConcreteBellRinger (experimental) │ │ └─┬ members @@ -1867,8 +1907,24 @@ exports[`jsii-tree --all 1`] = ` │ │ ├── abstract │ │ ├─┬ parameters │ │ │ └─┬ bell - │ │ │ └── type: jsii-calc.compliance.Bell + │ │ │ └── type: jsii-calc.Bell │ │ └── returns: void + │ ├─┬ interface IDeprecatedInterface (deprecated) + │ │ └─┬ members + │ │ ├─┬ method() method (deprecated) + │ │ │ ├── abstract + │ │ │ └── returns: void + │ │ └─┬ mutableProperty property (deprecated) + │ │ ├── abstract + │ │ └── type: Optional + │ ├─┬ interface IExperimentalInterface (experimental) + │ │ └─┬ members + │ │ ├─┬ method() method (experimental) + │ │ │ ├── abstract + │ │ │ └── returns: void + │ │ └─┬ mutableProperty property (experimental) + │ │ ├── abstract + │ │ └── type: Optional │ ├─┬ interface IExtendsPrivateInterface (experimental) │ │ └─┬ members │ │ ├─┬ moreThings property (experimental) @@ -1878,6 +1934,21 @@ exports[`jsii-tree --all 1`] = ` │ │ └─┬ private property (experimental) │ │ ├── abstract │ │ └── type: string + │ ├─┬ interface IFriendlier (experimental) + │ │ ├─┬ interfaces + │ │ │ └── IFriendly + │ │ └─┬ members + │ │ ├─┬ farewell() method (experimental) + │ │ │ ├── abstract + │ │ │ └── returns: string + │ │ └─┬ goodbye() method (experimental) + │ │ ├── abstract + │ │ └── returns: string + │ ├─┬ interface IFriendlyRandomGenerator (experimental) + │ │ ├─┬ interfaces + │ │ │ ├── IRandomNumberGenerator + │ │ │ └── IFriendly + │ │ └── members │ ├─┬ interface IInterfaceImplementedByAbstractClass (experimental) │ │ └─┬ members │ │ └─┬ propFromInterface property (experimental) @@ -1932,6 +2003,35 @@ exports[`jsii-tree --all 1`] = ` │ │ └─┬ foo property (experimental) │ │ ├── abstract │ │ └── type: number + │ ├─┬ interface IJSII417Derived (experimental) + │ │ ├─┬ interfaces + │ │ │ └── IJSII417PublicBaseOfBase + │ │ └─┬ members + │ │ ├─┬ bar() method (experimental) + │ │ │ ├── abstract + │ │ │ └── returns: void + │ │ ├─┬ baz() method (experimental) + │ │ │ ├── abstract + │ │ │ └── returns: void + │ │ └─┬ property property (experimental) + │ │ ├── abstract + │ │ ├── immutable + │ │ └── type: string + │ ├─┬ interface IJSII417PublicBaseOfBase (experimental) + │ │ └─┬ members + │ │ ├─┬ foo() method (experimental) + │ │ │ ├── abstract + │ │ │ └── returns: void + │ │ └─┬ hasRoot property (experimental) + │ │ ├── abstract + │ │ ├── immutable + │ │ └── type: boolean + │ ├─┬ interface IJsii487External (experimental) + │ │ └── members + │ ├─┬ interface IJsii487External2 (experimental) + │ │ └── members + │ ├─┬ interface IJsii496 (experimental) + │ │ └── members │ ├─┬ interface IMutableObjectLiteral (experimental) │ │ └─┬ members │ │ └─┬ value property (experimental) @@ -1976,6 +2076,11 @@ exports[`jsii-tree --all 1`] = ` │ │ └─┬ ciao() method (experimental) │ │ ├── abstract │ │ └── returns: string + │ ├─┬ interface IRandomNumberGenerator (experimental) + │ │ └─┬ members + │ │ └─┬ next() method (experimental) + │ │ ├── abstract + │ │ └── returns: number │ ├─┬ interface IReturnJsii976 (experimental) │ │ └─┬ members │ │ └─┬ foo property (experimental) @@ -1991,11 +2096,19 @@ exports[`jsii-tree --all 1`] = ` │ │ ├── abstract │ │ ├── immutable │ │ └── type: @scope/jsii-calc-lib.Number + │ ├─┬ interface IStableInterface (stable) + │ │ └─┬ members + │ │ ├─┬ method() method (stable) + │ │ │ ├── abstract + │ │ │ └── returns: void + │ │ └─┬ mutableProperty property (stable) + │ │ ├── abstract + │ │ └── type: Optional │ ├─┬ interface IStructReturningDelegate (experimental) │ │ └─┬ members │ │ └─┬ returnStruct() method (experimental) │ │ ├── abstract - │ │ └── returns: jsii-calc.compliance.StructB + │ │ └── returns: jsii-calc.StructB │ ├─┬ interface ImplictBaseOfBase (experimental) │ │ ├─┬ interfaces │ │ │ └── BaseProps @@ -2004,18 +2117,6 @@ exports[`jsii-tree --all 1`] = ` │ │ ├── abstract │ │ ├── immutable │ │ └── type: date - │ ├─┬ interface Hello (experimental) - │ │ └─┬ members - │ │ └─┬ foo property (experimental) - │ │ ├── abstract - │ │ ├── immutable - │ │ └── type: number - │ ├─┬ interface Hello (experimental) - │ │ └─┬ members - │ │ └─┬ foo property (experimental) - │ │ ├── abstract - │ │ ├── immutable - │ │ └── type: number │ ├─┬ interface LoadBalancedFargateServiceProps (experimental) │ │ └─┬ members │ │ ├─┬ containerPort property (experimental) @@ -2075,7 +2176,7 @@ exports[`jsii-tree --all 1`] = ` │ │ └─┬ nestedStruct property (experimental) │ │ ├── abstract │ │ ├── immutable - │ │ └── type: Optional + │ │ └── type: Optional │ ├─┬ interface SecondLevelStruct (experimental) │ │ └─┬ members │ │ ├─┬ deeperRequiredProp property (experimental) @@ -2086,6 +2187,22 @@ exports[`jsii-tree --all 1`] = ` │ │ ├── abstract │ │ ├── immutable │ │ └── type: Optional + │ ├─┬ interface SmellyStruct (experimental) + │ │ └─┬ members + │ │ ├─┬ property property (experimental) + │ │ │ ├── abstract + │ │ │ ├── immutable + │ │ │ └── type: string + │ │ └─┬ yetAnoterOne property (experimental) + │ │ ├── abstract + │ │ ├── immutable + │ │ └── type: boolean + │ ├─┬ interface StableStruct (stable) + │ │ └─┬ members + │ │ └─┬ readonlyProperty property (stable) + │ │ ├── abstract + │ │ ├── immutable + │ │ └── type: string │ ├─┬ interface StructA (experimental) │ │ └─┬ members │ │ ├─┬ requiredString property (experimental) @@ -2113,7 +2230,7 @@ exports[`jsii-tree --all 1`] = ` │ │ └─┬ optionalStructA property (experimental) │ │ ├── abstract │ │ ├── immutable - │ │ └── type: Optional + │ │ └── type: Optional │ ├─┬ interface StructParameterType (experimental) │ │ └─┬ members │ │ ├─┬ scope property (experimental) @@ -2161,7 +2278,7 @@ exports[`jsii-tree --all 1`] = ` │ │ ├─┬ secondLevel property (experimental) │ │ │ ├── abstract │ │ │ ├── immutable - │ │ │ └── type: number | jsii-calc.compliance.SecondLevelStruct + │ │ │ └── type: number | jsii-calc.SecondLevelStruct │ │ └─┬ optional property (experimental) │ │ ├── abstract │ │ ├── immutable @@ -2171,112 +2288,32 @@ exports[`jsii-tree --all 1`] = ` │ │ ├─┬ bar property (experimental) │ │ │ ├── abstract │ │ │ ├── immutable - │ │ │ └── type: string | number | jsii-calc.compliance.AllTypes + │ │ │ └── type: string | number | jsii-calc.AllTypes │ │ └─┬ foo property (experimental) │ │ ├── abstract │ │ ├── immutable │ │ └── type: Optional - │ ├─┬ interface Greetee (experimental) - │ │ └─┬ members - │ │ └─┬ name property (experimental) - │ │ ├── abstract - │ │ ├── immutable - │ │ └── type: Optional - │ ├─┬ interface IJSII417Derived (experimental) - │ │ ├─┬ interfaces - │ │ │ └── IJSII417PublicBaseOfBase - │ │ └─┬ members - │ │ ├─┬ bar() method (experimental) - │ │ │ ├── abstract - │ │ │ └── returns: void - │ │ ├─┬ baz() method (experimental) - │ │ │ ├── abstract - │ │ │ └── returns: void - │ │ └─┬ property property (experimental) - │ │ ├── abstract - │ │ ├── immutable - │ │ └── type: string - │ ├─┬ interface IJSII417PublicBaseOfBase (experimental) - │ │ └─┬ members - │ │ ├─┬ foo() method (experimental) - │ │ │ ├── abstract - │ │ │ └── returns: void - │ │ └─┬ hasRoot property (experimental) - │ │ ├── abstract - │ │ ├── immutable - │ │ └── type: boolean - │ ├─┬ interface IJsii487External (experimental) - │ │ └── members - │ ├─┬ interface IJsii487External2 (experimental) - │ │ └── members - │ ├─┬ interface IJsii496 (experimental) - │ │ └── members - │ ├─┬ interface DeprecatedStruct (deprecated) - │ │ └─┬ members - │ │ └─┬ readonlyProperty property (deprecated) - │ │ ├── abstract - │ │ ├── immutable - │ │ └── type: string - │ ├─┬ interface ExperimentalStruct (experimental) - │ │ └─┬ members - │ │ └─┬ readonlyProperty property (experimental) - │ │ ├── abstract - │ │ ├── immutable - │ │ └── type: string - │ ├─┬ interface IDeprecatedInterface (deprecated) - │ │ └─┬ members - │ │ ├─┬ method() method (deprecated) - │ │ │ ├── abstract - │ │ │ └── returns: void - │ │ └─┬ mutableProperty property (deprecated) - │ │ ├── abstract - │ │ └── type: Optional - │ ├─┬ interface IExperimentalInterface (experimental) - │ │ └─┬ members - │ │ ├─┬ method() method (experimental) - │ │ │ ├── abstract - │ │ │ └── returns: void - │ │ └─┬ mutableProperty property (experimental) - │ │ ├── abstract - │ │ └── type: Optional - │ ├─┬ interface IStableInterface (stable) - │ │ └─┬ members - │ │ ├─┬ method() method (stable) - │ │ │ ├── abstract - │ │ │ └── returns: void - │ │ └─┬ mutableProperty property (stable) - │ │ ├── abstract - │ │ └── type: Optional - │ ├─┬ interface StableStruct (stable) - │ │ └─┬ members - │ │ └─┬ readonlyProperty property (stable) - │ │ ├── abstract - │ │ ├── immutable - │ │ └── type: string │ ├─┬ enum AllTypesEnum (experimental) │ │ ├── MY_ENUM_VALUE (experimental) │ │ ├── YOUR_ENUM_VALUE (experimental) │ │ └── THIS_IS_GREAT (experimental) - │ ├─┬ enum SingletonIntEnum (experimental) - │ │ └── SINGLETON_INT (experimental) - │ ├─┬ enum SingletonStringEnum (experimental) - │ │ └── SINGLETON_STRING (experimental) - │ ├─┬ enum StringEnum (experimental) - │ │ ├── A (experimental) - │ │ ├── B (experimental) - │ │ └── C (experimental) - │ ├─┬ enum CompositionStringStyle (experimental) - │ │ ├── NORMAL (experimental) - │ │ └── DECORATED (experimental) │ ├─┬ enum DeprecatedEnum (deprecated) │ │ ├── OPTION_A (deprecated) │ │ └── OPTION_B (deprecated) │ ├─┬ enum ExperimentalEnum (experimental) │ │ ├── OPTION_A (experimental) │ │ └── OPTION_B (experimental) - │ └─┬ enum StableEnum (stable) - │ ├── OPTION_A (stable) - │ └── OPTION_B (stable) + │ ├─┬ enum SingletonIntEnum (experimental) + │ │ └── SINGLETON_INT (experimental) + │ ├─┬ enum SingletonStringEnum (experimental) + │ │ └── SINGLETON_STRING (experimental) + │ ├─┬ enum StableEnum (stable) + │ │ ├── OPTION_A (stable) + │ │ └── OPTION_B (stable) + │ └─┬ enum StringEnum (experimental) + │ ├── A (experimental) + │ ├── B (experimental) + │ └── C (experimental) ├─┬ @scope/jsii-calc-base │ ├─┬ dependencies │ │ └── @scope/jsii-calc-base-of-base @@ -2409,34 +2446,47 @@ exports[`jsii-tree --all 1`] = ` exports[`jsii-tree --inheritance 1`] = ` "assemblies ├─┬ jsii-calc + │ ├─┬ submodules + │ │ ├─┬ DerivedClassHasNoProperties + │ │ │ └─┬ types + │ │ │ ├── class Base + │ │ │ └─┬ class Derived + │ │ │ └── base: Base + │ │ ├─┬ InterfaceInNamespaceIncludesClasses + │ │ │ └─┬ types + │ │ │ ├── class Foo + │ │ │ └── interface Hello + │ │ ├─┬ InterfaceInNamespaceOnlyInterface + │ │ │ └─┬ types + │ │ │ └── interface Hello + │ │ ├─┬ composition + │ │ │ └─┬ types + │ │ │ ├─┬ class CompositeOperation + │ │ │ │ └── base: Operation + │ │ │ └── enum CompositionStringStyle + │ │ └─┬ submodule + │ │ ├─┬ submodules + │ │ │ ├─┬ child + │ │ │ │ └─┬ types + │ │ │ │ └── interface Structure + │ │ │ └─┬ nested_submodule + │ │ │ ├─┬ submodules + │ │ │ │ └─┬ deeplyNested + │ │ │ │ └─┬ types + │ │ │ │ └── interface INamespaced + │ │ │ └─┬ types + │ │ │ └─┬ class Namespaced + │ │ │ └── interfaces: INamespaced + │ │ └── types │ └─┬ types - │ ├── class AbstractSuite - │ ├─┬ class Add - │ │ └── base: BinaryOperation - │ ├─┬ class BinaryOperation - │ │ ├── base: Operation - │ │ └── interfaces: IFriendly - │ ├─┬ class Calculator - │ │ └── base: CompositeOperation - │ ├── class MethodNamedProperty - │ ├─┬ class Multiply - │ │ ├── base: BinaryOperation - │ │ └── interfaces: IFriendlier,IRandomNumberGenerator - │ ├─┬ class Negate - │ │ ├── base: UnaryOperation - │ │ └── interfaces: IFriendlier - │ ├─┬ class Power - │ │ └── base: CompositeOperation - │ ├── class PropertyNamedProperty - │ ├─┬ class Sum - │ │ └── base: CompositeOperation - │ ├─┬ class UnaryOperation - │ │ └── base: Operation │ ├─┬ class AbstractClass │ │ ├── base: AbstractClassBase │ │ └── interfaces: IInterfaceImplementedByAbstractClass │ ├── class AbstractClassBase │ ├── class AbstractClassReturner + │ ├── class AbstractSuite + │ ├─┬ class Add + │ │ └── base: BinaryOperation │ ├── class AllTypes │ ├── class AllowedMethodNames │ ├── class AmbiguousParameters @@ -2447,6 +2497,11 @@ exports[`jsii-tree --inheritance 1`] = ` │ ├── class BaseJsii976 │ ├─┬ class Bell │ │ └── interfaces: IBell + │ ├─┬ class BinaryOperation + │ │ ├── base: Operation + │ │ └── interfaces: IFriendly + │ ├─┬ class Calculator + │ │ └── base: CompositeOperation │ ├─┬ class ClassThatImplementsTheInternalInterface │ │ └── interfaces: INonInternalInterface │ ├─┬ class ClassThatImplementsThePrivateInterface @@ -2466,17 +2521,17 @@ exports[`jsii-tree --inheritance 1`] = ` │ ├── class DataRenderer │ ├── class DefaultedConstructorArgument │ ├── class Demonstrate982 - │ ├── class Base - │ ├─┬ class Derived - │ │ └── base: Base + │ ├── class DeprecatedClass │ ├── class DisappointingCollectionSource │ ├── class DoNotOverridePrivates │ ├── class DoNotRecognizeAnyAsOptional + │ ├── class DocumentedClass │ ├── class DontComplainAboutVariadicAfterOptional │ ├─┬ class DoubleTrouble │ │ └── interfaces: IFriendlyRandomGenerator │ ├── class EnumDispenser │ ├── class EraseUndefinedHashValues + │ ├── class ExperimentalClass │ ├── class ExportedBaseClass │ ├── class GiveMeStructs │ ├── class GreetingAugmenter @@ -2491,19 +2546,33 @@ exports[`jsii-tree --inheritance 1`] = ` │ │ ├── base: PublicClass │ │ └── interfaces: IPublicInterface2 │ ├── class InterfaceCollections - │ ├── class Foo │ ├── class InterfacesMaker + │ ├─┬ class JSII417Derived + │ │ └── base: JSII417PublicBaseOfBase + │ ├── class JSII417PublicBaseOfBase │ ├── class JSObjectLiteralForInterface │ ├── class JSObjectLiteralToNative │ ├── class JSObjectLiteralToNativeClass │ ├── class JavaReservedWords + │ ├─┬ class Jsii487Derived + │ │ └── interfaces: IJsii487External2,IJsii487External + │ ├─┬ class Jsii496Derived + │ │ └── interfaces: IJsii496 │ ├── class JsiiAgent │ ├── class JsonFormatter + │ ├── class MethodNamedProperty + │ ├─┬ class Multiply + │ │ ├── base: BinaryOperation + │ │ └── interfaces: IFriendlier,IRandomNumberGenerator + │ ├─┬ class Negate + │ │ ├── base: UnaryOperation + │ │ └── interfaces: IFriendlier │ ├── class NodeStandardLibrary │ ├── class NullShouldBeTreatedAsUndefined │ ├── class NumberGenerator │ ├── class ObjectRefsInCollections │ ├── class ObjectWithPropertyProvider + │ ├── class Old │ ├── class OptionalArgumentInvoker │ ├── class OptionalConstructorArgument │ ├── class OptionalStructConsumer @@ -2511,6 +2580,9 @@ exports[`jsii-tree --inheritance 1`] = ` │ ├── class OverrideReturnsObject │ ├── class PartiallyInitializedThisConsumer │ ├── class Polymorphism + │ ├─┬ class Power + │ │ └── base: CompositeOperation + │ ├── class PropertyNamedProperty │ ├── class PublicClass │ ├── class PythonReservedWords │ ├── class ReferenceEnumFromScopedPackage @@ -2521,16 +2593,21 @@ exports[`jsii-tree --inheritance 1`] = ` │ ├── class SingletonInt │ ├── class SingletonString │ ├── class SomeTypeJsii976 + │ ├── class StableClass │ ├── class StaticContext │ ├── class Statics │ ├── class StripInternal │ ├── class StructPassing │ ├── class StructUnionConsumer + │ ├─┬ class Sum + │ │ └── base: CompositeOperation │ ├─┬ class SupportsNiceJavaBuilder │ │ └── base: SupportsNiceJavaBuilderWithRequiredProps │ ├── class SupportsNiceJavaBuilderWithRequiredProps │ ├── class SyncVirtualMethods │ ├── class Thrower + │ ├─┬ class UnaryOperation + │ │ └── base: Operation │ ├── class UseBundledDependency │ ├── class UseCalcBase │ ├── class UsesInterfaceWithProperties @@ -2539,34 +2616,12 @@ exports[`jsii-tree --inheritance 1`] = ` │ ├── class VirtualMethodPlayground │ ├── class VoidCallback │ ├── class WithPrivatePropertyInConstructor - │ ├─┬ class CompositeOperation - │ │ └── base: Operation - │ ├── class DocumentedClass - │ ├── class Old - │ ├─┬ class JSII417Derived - │ │ └── base: JSII417PublicBaseOfBase - │ ├── class JSII417PublicBaseOfBase - │ ├─┬ class Jsii487Derived - │ │ └── interfaces: IJsii487External2,IJsii487External - │ ├─┬ class Jsii496Derived - │ │ └── interfaces: IJsii496 - │ ├── class DeprecatedClass - │ ├── class ExperimentalClass - │ ├── class StableClass │ ├── interface CalculatorProps - │ ├─┬ interface IFriendlier - │ │ └─┬ interfaces - │ │ └── IFriendly - │ ├─┬ interface IFriendlyRandomGenerator - │ │ └─┬ interfaces - │ │ ├── IRandomNumberGenerator - │ │ └── IFriendly - │ ├── interface IRandomNumberGenerator - │ ├── interface SmellyStruct │ ├─┬ interface ChildStruct982 │ │ └─┬ interfaces │ │ └── ParentStruct982 │ ├── interface ConfusingToJacksonStruct + │ ├── interface DeprecatedStruct │ ├─┬ interface DerivedStruct │ │ └─┬ interfaces │ │ └── MyFirstStruct @@ -2582,14 +2637,25 @@ exports[`jsii-tree --inheritance 1`] = ` │ │ ├── DiamondInheritanceFirstMidLevelStruct │ │ └── DiamondInheritanceSecondMidLevelStruct │ ├── interface EraseUndefinedHashValuesOptions + │ ├── interface ExperimentalStruct │ ├── interface ExtendsInternalInterface + │ ├── interface Greetee │ ├── interface IAnonymousImplementationProvider │ ├── interface IAnonymouslyImplementMe │ ├── interface IAnotherPublicInterface │ ├── interface IBell │ ├── interface IBellRinger │ ├── interface IConcreteBellRinger + │ ├── interface IDeprecatedInterface + │ ├── interface IExperimentalInterface │ ├── interface IExtendsPrivateInterface + │ ├─┬ interface IFriendlier + │ │ └─┬ interfaces + │ │ └── IFriendly + │ ├─┬ interface IFriendlyRandomGenerator + │ │ └─┬ interfaces + │ │ ├── IRandomNumberGenerator + │ │ └── IFriendly │ ├── interface IInterfaceImplementedByAbstractClass │ ├─┬ interface IInterfaceThatShouldNotBeADataType │ │ └─┬ interfaces @@ -2601,6 +2667,13 @@ exports[`jsii-tree --inheritance 1`] = ` │ ├─┬ interface IInterfaceWithPropertiesExtension │ │ └─┬ interfaces │ │ └── IInterfaceWithProperties + │ ├─┬ interface IJSII417Derived + │ │ └─┬ interfaces + │ │ └── IJSII417PublicBaseOfBase + │ ├── interface IJSII417PublicBaseOfBase + │ ├── interface IJsii487External + │ ├── interface IJsii487External2 + │ ├── interface IJsii496 │ ├── interface IMutableObjectLiteral │ ├─┬ interface INonInternalInterface │ │ └─┬ interfaces @@ -2610,14 +2683,14 @@ exports[`jsii-tree --inheritance 1`] = ` │ ├── interface IPrivatelyImplemented │ ├── interface IPublicInterface │ ├── interface IPublicInterface2 + │ ├── interface IRandomNumberGenerator │ ├── interface IReturnJsii976 │ ├── interface IReturnsNumber + │ ├── interface IStableInterface │ ├── interface IStructReturningDelegate │ ├─┬ interface ImplictBaseOfBase │ │ └─┬ interfaces │ │ └── BaseProps - │ ├── interface Hello - │ ├── interface Hello │ ├── interface LoadBalancedFargateServiceProps │ ├── interface NestedStruct │ ├── interface NullShouldBeTreatedAsUndefinedData @@ -2625,6 +2698,8 @@ exports[`jsii-tree --inheritance 1`] = ` │ ├── interface ParentStruct982 │ ├── interface RootStruct │ ├── interface SecondLevelStruct + │ ├── interface SmellyStruct + │ ├── interface StableStruct │ ├── interface StructA │ ├── interface StructB │ ├── interface StructParameterType @@ -2632,28 +2707,13 @@ exports[`jsii-tree --inheritance 1`] = ` │ ├── interface SupportsNiceJavaBuilderProps │ ├── interface TopLevelStruct │ ├── interface UnionProperties - │ ├── interface Greetee - │ ├─┬ interface IJSII417Derived - │ │ └─┬ interfaces - │ │ └── IJSII417PublicBaseOfBase - │ ├── interface IJSII417PublicBaseOfBase - │ ├── interface IJsii487External - │ ├── interface IJsii487External2 - │ ├── interface IJsii496 - │ ├── interface DeprecatedStruct - │ ├── interface ExperimentalStruct - │ ├── interface IDeprecatedInterface - │ ├── interface IExperimentalInterface - │ ├── interface IStableInterface - │ ├── interface StableStruct │ ├── enum AllTypesEnum - │ ├── enum SingletonIntEnum - │ ├── enum SingletonStringEnum - │ ├── enum StringEnum - │ ├── enum CompositionStringStyle │ ├── enum DeprecatedEnum │ ├── enum ExperimentalEnum - │ └── enum StableEnum + │ ├── enum SingletonIntEnum + │ ├── enum SingletonStringEnum + │ ├── enum StableEnum + │ └── enum StringEnum ├─┬ @scope/jsii-calc-base │ └─┬ types │ ├── class Base @@ -2691,79 +2751,64 @@ exports[`jsii-tree --inheritance 1`] = ` exports[`jsii-tree --members 1`] = ` "assemblies ├─┬ jsii-calc + │ ├─┬ submodules + │ │ ├─┬ DerivedClassHasNoProperties + │ │ │ └─┬ types + │ │ │ ├─┬ class Base + │ │ │ │ └─┬ members + │ │ │ │ ├── () initializer + │ │ │ │ └── prop property + │ │ │ └─┬ class Derived + │ │ │ └─┬ members + │ │ │ └── () initializer + │ │ ├─┬ InterfaceInNamespaceIncludesClasses + │ │ │ └─┬ types + │ │ │ ├─┬ class Foo + │ │ │ │ └─┬ members + │ │ │ │ ├── () initializer + │ │ │ │ └── bar property + │ │ │ └─┬ interface Hello + │ │ │ └─┬ members + │ │ │ └── foo property + │ │ ├─┬ InterfaceInNamespaceOnlyInterface + │ │ │ └─┬ types + │ │ │ └─┬ interface Hello + │ │ │ └─┬ members + │ │ │ └── foo property + │ │ ├─┬ composition + │ │ │ └─┬ types + │ │ │ ├─┬ class CompositeOperation + │ │ │ │ └─┬ members + │ │ │ │ ├── () initializer + │ │ │ │ ├── toString() method + │ │ │ │ ├── expression property + │ │ │ │ ├── value property + │ │ │ │ ├── decorationPostfixes property + │ │ │ │ ├── decorationPrefixes property + │ │ │ │ └── stringStyle property + │ │ │ └─┬ enum CompositionStringStyle + │ │ │ ├── NORMAL + │ │ │ └── DECORATED + │ │ └─┬ submodule + │ │ ├─┬ submodules + │ │ │ ├─┬ child + │ │ │ │ └─┬ types + │ │ │ │ └─┬ interface Structure + │ │ │ │ └─┬ members + │ │ │ │ └── bool property + │ │ │ └─┬ nested_submodule + │ │ │ ├─┬ submodules + │ │ │ │ └─┬ deeplyNested + │ │ │ │ └─┬ types + │ │ │ │ └─┬ interface INamespaced + │ │ │ │ └─┬ members + │ │ │ │ └── definedAt property + │ │ │ └─┬ types + │ │ │ └─┬ class Namespaced + │ │ │ └─┬ members + │ │ │ └── definedAt property + │ │ └── types │ └─┬ types - │ ├─┬ class AbstractSuite - │ │ └─┬ members - │ │ ├── () initializer - │ │ ├── someMethod(str) method - │ │ ├── workItAll(seed) method - │ │ └── property property - │ ├─┬ class Add - │ │ └─┬ members - │ │ ├── (lhs,rhs) initializer - │ │ ├── toString() method - │ │ └── value property - │ ├─┬ class BinaryOperation - │ │ └─┬ members - │ │ ├── (lhs,rhs) initializer - │ │ ├── hello() method - │ │ ├── lhs property - │ │ └── rhs property - │ ├─┬ class Calculator - │ │ └─┬ members - │ │ ├── (props) initializer - │ │ ├── add(value) method - │ │ ├── mul(value) method - │ │ ├── neg() method - │ │ ├── pow(value) method - │ │ ├── readUnionValue() method - │ │ ├── expression property - │ │ ├── operationsLog property - │ │ ├── operationsMap property - │ │ ├── curr property - │ │ ├── maxValue property - │ │ └── unionProperty property - │ ├─┬ class MethodNamedProperty - │ │ └─┬ members - │ │ ├── () initializer - │ │ ├── property() method - │ │ └── elite property - │ ├─┬ class Multiply - │ │ └─┬ members - │ │ ├── (lhs,rhs) initializer - │ │ ├── farewell() method - │ │ ├── goodbye() method - │ │ ├── next() method - │ │ ├── toString() method - │ │ └── value property - │ ├─┬ class Negate - │ │ └─┬ members - │ │ ├── (operand) initializer - │ │ ├── farewell() method - │ │ ├── goodbye() method - │ │ ├── hello() method - │ │ ├── toString() method - │ │ └── value property - │ ├─┬ class Power - │ │ └─┬ members - │ │ ├── (base,pow) initializer - │ │ ├── base property - │ │ ├── expression property - │ │ └── pow property - │ ├─┬ class PropertyNamedProperty - │ │ └─┬ members - │ │ ├── () initializer - │ │ ├── property property - │ │ └── yetAnoterOne property - │ ├─┬ class Sum - │ │ └─┬ members - │ │ ├── () initializer - │ │ ├── expression property - │ │ └── parts property - │ ├─┬ class UnaryOperation - │ │ └─┬ members - │ │ ├── (operand) initializer - │ │ └── operand property │ ├─┬ class AbstractClass │ │ └─┬ members │ │ ├── () initializer @@ -2780,6 +2825,17 @@ exports[`jsii-tree --members 1`] = ` │ │ ├── giveMeAbstract() method │ │ ├── giveMeInterface() method │ │ └── returnAbstractFromProperty property + │ ├─┬ class AbstractSuite + │ │ └─┬ members + │ │ ├── () initializer + │ │ ├── someMethod(str) method + │ │ ├── workItAll(seed) method + │ │ └── property property + │ ├─┬ class Add + │ │ └─┬ members + │ │ ├── (lhs,rhs) initializer + │ │ ├── toString() method + │ │ └── value property │ ├─┬ class AllTypes │ │ └─┬ members │ │ ├── () initializer @@ -2844,6 +2900,26 @@ exports[`jsii-tree --members 1`] = ` │ │ ├── () initializer │ │ ├── ring() method │ │ └── rung property + │ ├─┬ class BinaryOperation + │ │ └─┬ members + │ │ ├── (lhs,rhs) initializer + │ │ ├── hello() method + │ │ ├── lhs property + │ │ └── rhs property + │ ├─┬ class Calculator + │ │ └─┬ members + │ │ ├── (props) initializer + │ │ ├── add(value) method + │ │ ├── mul(value) method + │ │ ├── neg() method + │ │ ├── pow(value) method + │ │ ├── readUnionValue() method + │ │ ├── expression property + │ │ ├── operationsLog property + │ │ ├── operationsMap property + │ │ ├── curr property + │ │ ├── maxValue property + │ │ └── unionProperty property │ ├─┬ class ClassThatImplementsTheInternalInterface │ │ └─┬ members │ │ ├── () initializer @@ -2939,13 +3015,12 @@ exports[`jsii-tree --members 1`] = ` │ │ ├── () initializer │ │ ├── static takeThis() method │ │ └── static takeThisToo() method - │ ├─┬ class Base - │ │ └─┬ members - │ │ ├── () initializer - │ │ └── prop property - │ ├─┬ class Derived + │ ├─┬ class DeprecatedClass │ │ └─┬ members - │ │ └── () initializer + │ │ ├── (readonlyString,mutableNumber) initializer + │ │ ├── method() method + │ │ ├── readonlyProperty property + │ │ └── mutableProperty property │ ├─┬ class DisappointingCollectionSource │ │ └─┬ members │ │ ├── static maybeList property @@ -2960,6 +3035,11 @@ exports[`jsii-tree --members 1`] = ` │ │ └─┬ members │ │ ├── () initializer │ │ └── method(_requiredAny,_optionalAny,_optionalString) method + │ ├─┬ class DocumentedClass + │ │ └─┬ members + │ │ ├── () initializer + │ │ ├── greet(greetee) method + │ │ └── hola() method │ ├─┬ class DontComplainAboutVariadicAfterOptional │ │ └─┬ members │ │ ├── () initializer @@ -2979,6 +3059,12 @@ exports[`jsii-tree --members 1`] = ` │ │ ├── static doesKeyExist(opts,key) method │ │ ├── static prop1IsNull() method │ │ └── static prop2IsUndefined() method + │ ├─┬ class ExperimentalClass + │ │ └─┬ members + │ │ ├── (readonlyString,mutableNumber) initializer + │ │ ├── method() method + │ │ ├── readonlyProperty property + │ │ └── mutableProperty property │ ├─┬ class ExportedBaseClass │ │ └─┬ members │ │ ├── (success) initializer @@ -3023,13 +3109,21 @@ exports[`jsii-tree --members 1`] = ` │ │ ├── static listOfStructs() method │ │ ├── static mapOfInterfaces() method │ │ └── static mapOfStructs() method - │ ├─┬ class Foo - │ │ └─┬ members - │ │ ├── () initializer - │ │ └── bar property │ ├─┬ class InterfacesMaker │ │ └─┬ members │ │ └── static makeInterfaces(count) method + │ ├─┬ class JSII417Derived + │ │ └─┬ members + │ │ ├── (property) initializer + │ │ ├── bar() method + │ │ ├── baz() method + │ │ └── property property + │ ├─┬ class JSII417PublicBaseOfBase + │ │ └─┬ members + │ │ ├── () initializer + │ │ ├── static makeInstance() method + │ │ ├── foo() method + │ │ └── hasRoot property │ ├─┬ class JSObjectLiteralForInterface │ │ └─┬ members │ │ ├── () initializer @@ -3100,6 +3194,12 @@ exports[`jsii-tree --members 1`] = ` │ │ ├── void() method │ │ ├── volatile() method │ │ └── while property + │ ├─┬ class Jsii487Derived + │ │ └─┬ members + │ │ └── () initializer + │ ├─┬ class Jsii496Derived + │ │ └─┬ members + │ │ └── () initializer │ ├─┬ class JsiiAgent │ │ └─┬ members │ │ ├── () initializer @@ -3120,6 +3220,27 @@ exports[`jsii-tree --members 1`] = ` │ │ ├── static anyUndefined() method │ │ ├── static anyZero() method │ │ └── static stringify(value) method + │ ├─┬ class MethodNamedProperty + │ │ └─┬ members + │ │ ├── () initializer + │ │ ├── property() method + │ │ └── elite property + │ ├─┬ class Multiply + │ │ └─┬ members + │ │ ├── (lhs,rhs) initializer + │ │ ├── farewell() method + │ │ ├── goodbye() method + │ │ ├── next() method + │ │ ├── toString() method + │ │ └── value property + │ ├─┬ class Negate + │ │ └─┬ members + │ │ ├── (operand) initializer + │ │ ├── farewell() method + │ │ ├── goodbye() method + │ │ ├── hello() method + │ │ ├── toString() method + │ │ └── value property │ ├─┬ class NodeStandardLibrary │ │ └─┬ members │ │ ├── () initializer @@ -3148,6 +3269,10 @@ exports[`jsii-tree --members 1`] = ` │ ├─┬ class ObjectWithPropertyProvider │ │ └─┬ members │ │ └── static provide() method + │ ├─┬ class Old + │ │ └─┬ members + │ │ ├── () initializer + │ │ └── doAThing() method │ ├─┬ class OptionalArgumentInvoker │ │ └─┬ members │ │ ├── (delegate) initializer @@ -3184,6 +3309,17 @@ exports[`jsii-tree --members 1`] = ` │ │ └─┬ members │ │ ├── () initializer │ │ └── sayHello(friendly) method + │ ├─┬ class Power + │ │ └─┬ members + │ │ ├── (base,pow) initializer + │ │ ├── base property + │ │ ├── expression property + │ │ └── pow property + │ ├─┬ class PropertyNamedProperty + │ │ └─┬ members + │ │ ├── () initializer + │ │ ├── property property + │ │ └── yetAnoterOne property │ ├─┬ class PublicClass │ │ └─┬ members │ │ ├── () initializer @@ -3258,6 +3394,12 @@ exports[`jsii-tree --members 1`] = ` │ │ ├── () initializer │ │ ├── static returnAnonymous() method │ │ └── static returnReturn() method + │ ├─┬ class StableClass + │ │ └─┬ members + │ │ ├── (readonlyString,mutableNumber) initializer + │ │ ├── method() method + │ │ ├── readonlyProperty property + │ │ └── mutableProperty property │ ├─┬ class StaticContext │ │ └─┬ members │ │ ├── static canAccessStaticContext() method @@ -3287,6 +3429,11 @@ exports[`jsii-tree --members 1`] = ` │ │ └─┬ members │ │ ├── static isStructA(struct) method │ │ └── static isStructB(struct) method + │ ├─┬ class Sum + │ │ └─┬ members + │ │ ├── () initializer + │ │ ├── expression property + │ │ └── parts property │ ├─┬ class SupportsNiceJavaBuilder │ │ └─┬ members │ │ ├── (id,defaultBar,props,rest) initializer @@ -3321,6 +3468,10 @@ exports[`jsii-tree --members 1`] = ` │ │ └─┬ members │ │ ├── () initializer │ │ └── throwError() method + │ ├─┬ class UnaryOperation + │ │ └─┬ members + │ │ ├── (operand) initializer + │ │ └── operand property │ ├─┬ class UseBundledDependency │ │ └─┬ members │ │ ├── () initializer @@ -3362,83 +3513,19 @@ exports[`jsii-tree --members 1`] = ` │ │ └─┬ members │ │ ├── (privateField) initializer │ │ └── success property - │ ├─┬ class CompositeOperation - │ │ └─┬ members - │ │ ├── () initializer - │ │ ├── toString() method - │ │ ├── expression property - │ │ ├── value property - │ │ ├── decorationPostfixes property - │ │ ├── decorationPrefixes property - │ │ └── stringStyle property - │ ├─┬ class DocumentedClass - │ │ └─┬ members - │ │ ├── () initializer - │ │ ├── greet(greetee) method - │ │ └── hola() method - │ ├─┬ class Old - │ │ └─┬ members - │ │ ├── () initializer - │ │ └── doAThing() method - │ ├─┬ class JSII417Derived - │ │ └─┬ members - │ │ ├── (property) initializer - │ │ ├── bar() method - │ │ ├── baz() method - │ │ └── property property - │ ├─┬ class JSII417PublicBaseOfBase - │ │ └─┬ members - │ │ ├── () initializer - │ │ ├── static makeInstance() method - │ │ ├── foo() method - │ │ └── hasRoot property - │ ├─┬ class Jsii487Derived - │ │ └─┬ members - │ │ └── () initializer - │ ├─┬ class Jsii496Derived - │ │ └─┬ members - │ │ └── () initializer - │ ├─┬ class DeprecatedClass - │ │ └─┬ members - │ │ ├── (readonlyString,mutableNumber) initializer - │ │ ├── method() method - │ │ ├── readonlyProperty property - │ │ └── mutableProperty property - │ ├─┬ class ExperimentalClass - │ │ └─┬ members - │ │ ├── (readonlyString,mutableNumber) initializer - │ │ ├── method() method - │ │ ├── readonlyProperty property - │ │ └── mutableProperty property - │ ├─┬ class StableClass - │ │ └─┬ members - │ │ ├── (readonlyString,mutableNumber) initializer - │ │ ├── method() method - │ │ ├── readonlyProperty property - │ │ └── mutableProperty property │ ├─┬ interface CalculatorProps │ │ └─┬ members │ │ ├── initialValue property │ │ └── maximumValue property - │ ├─┬ interface IFriendlier - │ │ └─┬ members - │ │ ├── farewell() method - │ │ └── goodbye() method - │ ├─┬ interface IFriendlyRandomGenerator - │ │ └── members - │ ├─┬ interface IRandomNumberGenerator - │ │ └─┬ members - │ │ └── next() method - │ ├─┬ interface SmellyStruct - │ │ └─┬ members - │ │ ├── property property - │ │ └── yetAnoterOne property │ ├─┬ interface ChildStruct982 │ │ └─┬ members │ │ └── bar property │ ├─┬ interface ConfusingToJacksonStruct │ │ └─┬ members │ │ └── unionProperty property + │ ├─┬ interface DeprecatedStruct + │ │ └─┬ members + │ │ └── readonlyProperty property │ ├─┬ interface DerivedStruct │ │ └─┬ members │ │ ├── anotherRequired property @@ -3463,10 +3550,16 @@ exports[`jsii-tree --members 1`] = ` │ │ └─┬ members │ │ ├── option1 property │ │ └── option2 property + │ ├─┬ interface ExperimentalStruct + │ │ └─┬ members + │ │ └── readonlyProperty property │ ├─┬ interface ExtendsInternalInterface │ │ └─┬ members │ │ ├── boom property │ │ └── prop property + │ ├─┬ interface Greetee + │ │ └─┬ members + │ │ └── name property │ ├─┬ interface IAnonymousImplementationProvider │ │ └─┬ members │ │ ├── provideAsClass() method @@ -3487,10 +3580,24 @@ exports[`jsii-tree --members 1`] = ` │ ├─┬ interface IConcreteBellRinger │ │ └─┬ members │ │ └── yourTurn(bell) method + │ ├─┬ interface IDeprecatedInterface + │ │ └─┬ members + │ │ ├── method() method + │ │ └── mutableProperty property + │ ├─┬ interface IExperimentalInterface + │ │ └─┬ members + │ │ ├── method() method + │ │ └── mutableProperty property │ ├─┬ interface IExtendsPrivateInterface │ │ └─┬ members │ │ ├── moreThings property │ │ └── private property + │ ├─┬ interface IFriendlier + │ │ └─┬ members + │ │ ├── farewell() method + │ │ └── goodbye() method + │ ├─┬ interface IFriendlyRandomGenerator + │ │ └── members │ ├─┬ interface IInterfaceImplementedByAbstractClass │ │ └─┬ members │ │ └── propFromInterface property @@ -3514,6 +3621,21 @@ exports[`jsii-tree --members 1`] = ` │ ├─┬ interface IInterfaceWithPropertiesExtension │ │ └─┬ members │ │ └── foo property + │ ├─┬ interface IJSII417Derived + │ │ └─┬ members + │ │ ├── bar() method + │ │ ├── baz() method + │ │ └── property property + │ ├─┬ interface IJSII417PublicBaseOfBase + │ │ └─┬ members + │ │ ├── foo() method + │ │ └── hasRoot property + │ ├─┬ interface IJsii487External + │ │ └── members + │ ├─┬ interface IJsii487External2 + │ │ └── members + │ ├─┬ interface IJsii496 + │ │ └── members │ ├─┬ interface IMutableObjectLiteral │ │ └─┬ members │ │ └── value property @@ -3537,6 +3659,9 @@ exports[`jsii-tree --members 1`] = ` │ ├─┬ interface IPublicInterface2 │ │ └─┬ members │ │ └── ciao() method + │ ├─┬ interface IRandomNumberGenerator + │ │ └─┬ members + │ │ └── next() method │ ├─┬ interface IReturnJsii976 │ │ └─┬ members │ │ └── foo property @@ -3544,18 +3669,16 @@ exports[`jsii-tree --members 1`] = ` │ │ └─┬ members │ │ ├── obtainNumber() method │ │ └── numberProp property + │ ├─┬ interface IStableInterface + │ │ └─┬ members + │ │ ├── method() method + │ │ └── mutableProperty property │ ├─┬ interface IStructReturningDelegate │ │ └─┬ members │ │ └── returnStruct() method │ ├─┬ interface ImplictBaseOfBase │ │ └─┬ members │ │ └── goo property - │ ├─┬ interface Hello - │ │ └─┬ members - │ │ └── foo property - │ ├─┬ interface Hello - │ │ └─┬ members - │ │ └── foo property │ ├─┬ interface LoadBalancedFargateServiceProps │ │ └─┬ members │ │ ├── containerPort property @@ -3584,6 +3707,13 @@ exports[`jsii-tree --members 1`] = ` │ │ └─┬ members │ │ ├── deeperRequiredProp property │ │ └── deeperOptionalProp property + │ ├─┬ interface SmellyStruct + │ │ └─┬ members + │ │ ├── property property + │ │ └── yetAnoterOne property + │ ├─┬ interface StableStruct + │ │ └─┬ members + │ │ └── readonlyProperty property │ ├─┬ interface StructA │ │ └─┬ members │ │ ├── requiredString property @@ -3617,69 +3747,27 @@ exports[`jsii-tree --members 1`] = ` │ │ └─┬ members │ │ ├── bar property │ │ └── foo property - │ ├─┬ interface Greetee - │ │ └─┬ members - │ │ └── name property - │ ├─┬ interface IJSII417Derived - │ │ └─┬ members - │ │ ├── bar() method - │ │ ├── baz() method - │ │ └── property property - │ ├─┬ interface IJSII417PublicBaseOfBase - │ │ └─┬ members - │ │ ├── foo() method - │ │ └── hasRoot property - │ ├─┬ interface IJsii487External - │ │ └── members - │ ├─┬ interface IJsii487External2 - │ │ └── members - │ ├─┬ interface IJsii496 - │ │ └── members - │ ├─┬ interface DeprecatedStruct - │ │ └─┬ members - │ │ └── readonlyProperty property - │ ├─┬ interface ExperimentalStruct - │ │ └─┬ members - │ │ └── readonlyProperty property - │ ├─┬ interface IDeprecatedInterface - │ │ └─┬ members - │ │ ├── method() method - │ │ └── mutableProperty property - │ ├─┬ interface IExperimentalInterface - │ │ └─┬ members - │ │ ├── method() method - │ │ └── mutableProperty property - │ ├─┬ interface IStableInterface - │ │ └─┬ members - │ │ ├── method() method - │ │ └── mutableProperty property - │ ├─┬ interface StableStruct - │ │ └─┬ members - │ │ └── readonlyProperty property │ ├─┬ enum AllTypesEnum │ │ ├── MY_ENUM_VALUE │ │ ├── YOUR_ENUM_VALUE │ │ └── THIS_IS_GREAT - │ ├─┬ enum SingletonIntEnum - │ │ └── SINGLETON_INT - │ ├─┬ enum SingletonStringEnum - │ │ └── SINGLETON_STRING - │ ├─┬ enum StringEnum - │ │ ├── A - │ │ ├── B - │ │ └── C - │ ├─┬ enum CompositionStringStyle - │ │ ├── NORMAL - │ │ └── DECORATED │ ├─┬ enum DeprecatedEnum │ │ ├── OPTION_A │ │ └── OPTION_B │ ├─┬ enum ExperimentalEnum │ │ ├── OPTION_A │ │ └── OPTION_B - │ └─┬ enum StableEnum - │ ├── OPTION_A - │ └── OPTION_B + │ ├─┬ enum SingletonIntEnum + │ │ └── SINGLETON_INT + │ ├─┬ enum SingletonStringEnum + │ │ └── SINGLETON_STRING + │ ├─┬ enum StableEnum + │ │ ├── OPTION_A + │ │ └── OPTION_B + │ └─┬ enum StringEnum + │ ├── A + │ ├── B + │ └── C ├─┬ @scope/jsii-calc-base │ └─┬ types │ ├─┬ class Base @@ -3747,7 +3835,18 @@ exports[`jsii-tree --members 1`] = ` exports[`jsii-tree --signatures 1`] = ` "assemblies - ├── jsii-calc + ├─┬ jsii-calc + │ └─┬ submodules + │ ├── DerivedClassHasNoProperties + │ ├── InterfaceInNamespaceIncludesClasses + │ ├── InterfaceInNamespaceOnlyInterface + │ ├── composition + │ └─┬ submodule + │ └─┬ submodules + │ ├── child + │ └─┬ nested_submodule + │ └─┬ submodules + │ └── deeplyNested ├── @scope/jsii-calc-base ├── @scope/jsii-calc-base-of-base └── @scope/jsii-calc-lib @@ -3757,21 +3856,41 @@ exports[`jsii-tree --signatures 1`] = ` exports[`jsii-tree --types 1`] = ` "assemblies ├─┬ jsii-calc + │ ├─┬ submodules + │ │ ├─┬ DerivedClassHasNoProperties + │ │ │ └─┬ types + │ │ │ ├── class Base + │ │ │ └── class Derived + │ │ ├─┬ InterfaceInNamespaceIncludesClasses + │ │ │ └─┬ types + │ │ │ ├── class Foo + │ │ │ └── interface Hello + │ │ ├─┬ InterfaceInNamespaceOnlyInterface + │ │ │ └─┬ types + │ │ │ └── interface Hello + │ │ ├─┬ composition + │ │ │ └─┬ types + │ │ │ ├── class CompositeOperation + │ │ │ └── enum CompositionStringStyle + │ │ └─┬ submodule + │ │ ├─┬ submodules + │ │ │ ├─┬ child + │ │ │ │ └─┬ types + │ │ │ │ └── interface Structure + │ │ │ └─┬ nested_submodule + │ │ │ ├─┬ submodules + │ │ │ │ └─┬ deeplyNested + │ │ │ │ └─┬ types + │ │ │ │ └── interface INamespaced + │ │ │ └─┬ types + │ │ │ └── class Namespaced + │ │ └── types │ └─┬ types - │ ├── class AbstractSuite - │ ├── class Add - │ ├── class BinaryOperation - │ ├── class Calculator - │ ├── class MethodNamedProperty - │ ├── class Multiply - │ ├── class Negate - │ ├── class Power - │ ├── class PropertyNamedProperty - │ ├── class Sum - │ ├── class UnaryOperation │ ├── class AbstractClass │ ├── class AbstractClassBase │ ├── class AbstractClassReturner + │ ├── class AbstractSuite + │ ├── class Add │ ├── class AllTypes │ ├── class AllowedMethodNames │ ├── class AmbiguousParameters @@ -3780,6 +3899,8 @@ exports[`jsii-tree --types 1`] = ` │ ├── class AugmentableClass │ ├── class BaseJsii976 │ ├── class Bell + │ ├── class BinaryOperation + │ ├── class Calculator │ ├── class ClassThatImplementsTheInternalInterface │ ├── class ClassThatImplementsThePrivateInterface │ ├── class ClassWithCollections @@ -3796,15 +3917,16 @@ exports[`jsii-tree --types 1`] = ` │ ├── class DataRenderer │ ├── class DefaultedConstructorArgument │ ├── class Demonstrate982 - │ ├── class Base - │ ├── class Derived + │ ├── class DeprecatedClass │ ├── class DisappointingCollectionSource │ ├── class DoNotOverridePrivates │ ├── class DoNotRecognizeAnyAsOptional + │ ├── class DocumentedClass │ ├── class DontComplainAboutVariadicAfterOptional │ ├── class DoubleTrouble │ ├── class EnumDispenser │ ├── class EraseUndefinedHashValues + │ ├── class ExperimentalClass │ ├── class ExportedBaseClass │ ├── class GiveMeStructs │ ├── class GreetingAugmenter @@ -3815,19 +3937,26 @@ exports[`jsii-tree --types 1`] = ` │ ├── class ImplementsPrivateInterface │ ├── class InbetweenClass │ ├── class InterfaceCollections - │ ├── class Foo │ ├── class InterfacesMaker + │ ├── class JSII417Derived + │ ├── class JSII417PublicBaseOfBase │ ├── class JSObjectLiteralForInterface │ ├── class JSObjectLiteralToNative │ ├── class JSObjectLiteralToNativeClass │ ├── class JavaReservedWords + │ ├── class Jsii487Derived + │ ├── class Jsii496Derived │ ├── class JsiiAgent │ ├── class JsonFormatter + │ ├── class MethodNamedProperty + │ ├── class Multiply + │ ├── class Negate │ ├── class NodeStandardLibrary │ ├── class NullShouldBeTreatedAsUndefined │ ├── class NumberGenerator │ ├── class ObjectRefsInCollections │ ├── class ObjectWithPropertyProvider + │ ├── class Old │ ├── class OptionalArgumentInvoker │ ├── class OptionalConstructorArgument │ ├── class OptionalStructConsumer @@ -3835,6 +3964,8 @@ exports[`jsii-tree --types 1`] = ` │ ├── class OverrideReturnsObject │ ├── class PartiallyInitializedThisConsumer │ ├── class Polymorphism + │ ├── class Power + │ ├── class PropertyNamedProperty │ ├── class PublicClass │ ├── class PythonReservedWords │ ├── class ReferenceEnumFromScopedPackage @@ -3845,15 +3976,18 @@ exports[`jsii-tree --types 1`] = ` │ ├── class SingletonInt │ ├── class SingletonString │ ├── class SomeTypeJsii976 + │ ├── class StableClass │ ├── class StaticContext │ ├── class Statics │ ├── class StripInternal │ ├── class StructPassing │ ├── class StructUnionConsumer + │ ├── class Sum │ ├── class SupportsNiceJavaBuilder │ ├── class SupportsNiceJavaBuilderWithRequiredProps │ ├── class SyncVirtualMethods │ ├── class Thrower + │ ├── class UnaryOperation │ ├── class UseBundledDependency │ ├── class UseCalcBase │ ├── class UsesInterfaceWithProperties @@ -3862,37 +3996,30 @@ exports[`jsii-tree --types 1`] = ` │ ├── class VirtualMethodPlayground │ ├── class VoidCallback │ ├── class WithPrivatePropertyInConstructor - │ ├── class CompositeOperation - │ ├── class DocumentedClass - │ ├── class Old - │ ├── class JSII417Derived - │ ├── class JSII417PublicBaseOfBase - │ ├── class Jsii487Derived - │ ├── class Jsii496Derived - │ ├── class DeprecatedClass - │ ├── class ExperimentalClass - │ ├── class StableClass │ ├── interface CalculatorProps - │ ├── interface IFriendlier - │ ├── interface IFriendlyRandomGenerator - │ ├── interface IRandomNumberGenerator - │ ├── interface SmellyStruct │ ├── interface ChildStruct982 │ ├── interface ConfusingToJacksonStruct + │ ├── interface DeprecatedStruct │ ├── interface DerivedStruct │ ├── interface DiamondInheritanceBaseLevelStruct │ ├── interface DiamondInheritanceFirstMidLevelStruct │ ├── interface DiamondInheritanceSecondMidLevelStruct │ ├── interface DiamondInheritanceTopLevelStruct │ ├── interface EraseUndefinedHashValuesOptions + │ ├── interface ExperimentalStruct │ ├── interface ExtendsInternalInterface + │ ├── interface Greetee │ ├── interface IAnonymousImplementationProvider │ ├── interface IAnonymouslyImplementMe │ ├── interface IAnotherPublicInterface │ ├── interface IBell │ ├── interface IBellRinger │ ├── interface IConcreteBellRinger + │ ├── interface IDeprecatedInterface + │ ├── interface IExperimentalInterface │ ├── interface IExtendsPrivateInterface + │ ├── interface IFriendlier + │ ├── interface IFriendlyRandomGenerator │ ├── interface IInterfaceImplementedByAbstractClass │ ├── interface IInterfaceThatShouldNotBeADataType │ ├── interface IInterfaceWithInternal @@ -3900,6 +4027,11 @@ exports[`jsii-tree --types 1`] = ` │ ├── interface IInterfaceWithOptionalMethodArguments │ ├── interface IInterfaceWithProperties │ ├── interface IInterfaceWithPropertiesExtension + │ ├── interface IJSII417Derived + │ ├── interface IJSII417PublicBaseOfBase + │ ├── interface IJsii487External + │ ├── interface IJsii487External2 + │ ├── interface IJsii496 │ ├── interface IMutableObjectLiteral │ ├── interface INonInternalInterface │ ├── interface IObjectWithProperty @@ -3907,12 +4039,12 @@ exports[`jsii-tree --types 1`] = ` │ ├── interface IPrivatelyImplemented │ ├── interface IPublicInterface │ ├── interface IPublicInterface2 + │ ├── interface IRandomNumberGenerator │ ├── interface IReturnJsii976 │ ├── interface IReturnsNumber + │ ├── interface IStableInterface │ ├── interface IStructReturningDelegate │ ├── interface ImplictBaseOfBase - │ ├── interface Hello - │ ├── interface Hello │ ├── interface LoadBalancedFargateServiceProps │ ├── interface NestedStruct │ ├── interface NullShouldBeTreatedAsUndefinedData @@ -3920,6 +4052,8 @@ exports[`jsii-tree --types 1`] = ` │ ├── interface ParentStruct982 │ ├── interface RootStruct │ ├── interface SecondLevelStruct + │ ├── interface SmellyStruct + │ ├── interface StableStruct │ ├── interface StructA │ ├── interface StructB │ ├── interface StructParameterType @@ -3927,26 +4061,13 @@ exports[`jsii-tree --types 1`] = ` │ ├── interface SupportsNiceJavaBuilderProps │ ├── interface TopLevelStruct │ ├── interface UnionProperties - │ ├── interface Greetee - │ ├── interface IJSII417Derived - │ ├── interface IJSII417PublicBaseOfBase - │ ├── interface IJsii487External - │ ├── interface IJsii487External2 - │ ├── interface IJsii496 - │ ├── interface DeprecatedStruct - │ ├── interface ExperimentalStruct - │ ├── interface IDeprecatedInterface - │ ├── interface IExperimentalInterface - │ ├── interface IStableInterface - │ ├── interface StableStruct │ ├── enum AllTypesEnum - │ ├── enum SingletonIntEnum - │ ├── enum SingletonStringEnum - │ ├── enum StringEnum - │ ├── enum CompositionStringStyle │ ├── enum DeprecatedEnum │ ├── enum ExperimentalEnum - │ └── enum StableEnum + │ ├── enum SingletonIntEnum + │ ├── enum SingletonStringEnum + │ ├── enum StableEnum + │ └── enum StringEnum ├─┬ @scope/jsii-calc-base │ └─┬ types │ ├── class Base @@ -3973,7 +4094,18 @@ exports[`jsii-tree --types 1`] = ` exports[`jsii-tree 1`] = ` "assemblies - ├── jsii-calc + ├─┬ jsii-calc + │ └─┬ submodules + │ ├── DerivedClassHasNoProperties + │ ├── InterfaceInNamespaceIncludesClasses + │ ├── InterfaceInNamespaceOnlyInterface + │ ├── composition + │ └─┬ submodule + │ └─┬ submodules + │ ├── child + │ └─┬ nested_submodule + │ └─┬ submodules + │ └── deeplyNested ├── @scope/jsii-calc-base ├── @scope/jsii-calc-base-of-base └── @scope/jsii-calc-lib diff --git a/packages/jsii-reflect/test/__snapshots__/type-system.test.js.snap b/packages/jsii-reflect/test/__snapshots__/type-system.test.js.snap index 09c3596970..789457d589 100644 --- a/packages/jsii-reflect/test/__snapshots__/type-system.test.js.snap +++ b/packages/jsii-reflect/test/__snapshots__/type-system.test.js.snap @@ -11,125 +11,126 @@ Array [ exports[`TypeSystem.classes lists all the classes in the typesystem 1`] = ` Array [ - "AbstractClass", - "AbstractClassBase", - "AbstractClassReturner", - "AbstractSuite", - "Add", - "AllTypes", - "AllowedMethodNames", - "AmbiguousParameters", - "AnonymousImplementationProvider", - "AsyncVirtualMethods", - "AugmentableClass", - "Base", - "Base", - "BaseJsii976", - "Bell", - "BinaryOperation", - "Calculator", - "ClassThatImplementsTheInternalInterface", - "ClassThatImplementsThePrivateInterface", - "ClassWithCollections", - "ClassWithDocs", - "ClassWithJavaReservedWords", - "ClassWithMutableObjectLiteralProperty", - "ClassWithPrivateConstructorAndAutomaticProperties", - "CompositeOperation", - "ConfusingToJackson", - "ConstructorPassesThisOut", - "Constructors", - "ConsumePureInterface", - "ConsumerCanRingBell", - "ConsumersOfThisCrazyTypeSystem", - "DataRenderer", - "DefaultedConstructorArgument", - "Demonstrate982", - "DeprecatedClass", - "Derived", - "DisappointingCollectionSource", - "DoNotOverridePrivates", - "DoNotRecognizeAnyAsOptional", - "DocumentedClass", - "DontComplainAboutVariadicAfterOptional", - "DoubleTrouble", - "EnumDispenser", - "EraseUndefinedHashValues", - "ExperimentalClass", - "ExportedBaseClass", - "Foo", - "GiveMeStructs", - "GreetingAugmenter", - "ImplementInternalInterface", - "Implementation", - "ImplementsInterfaceWithInternal", - "ImplementsInterfaceWithInternalSubclass", - "ImplementsPrivateInterface", - "InbetweenClass", - "InterfaceCollections", - "InterfacesMaker", - "JSII417Derived", - "JSII417PublicBaseOfBase", - "JSObjectLiteralForInterface", - "JSObjectLiteralToNative", - "JSObjectLiteralToNativeClass", - "JavaReservedWords", - "Jsii487Derived", - "Jsii496Derived", - "JsiiAgent", - "JsonFormatter", - "MethodNamedProperty", - "Multiply", - "Negate", - "NodeStandardLibrary", - "NullShouldBeTreatedAsUndefined", - "Number", - "NumberGenerator", - "ObjectRefsInCollections", - "ObjectWithPropertyProvider", - "Old", - "Operation", - "OptionalArgumentInvoker", - "OptionalConstructorArgument", - "OptionalStructConsumer", - "OverridableProtectedMember", - "OverrideReturnsObject", - "PartiallyInitializedThisConsumer", - "Polymorphism", - "Power", - "PropertyNamedProperty", - "PublicClass", - "PythonReservedWords", - "ReferenceEnumFromScopedPackage", - "ReturnsPrivateImplementationOfInterface", - "RootStructValidator", - "RuntimeTypeChecking", - "SingleInstanceTwoTypes", - "SingletonInt", - "SingletonString", - "SomeTypeJsii976", - "StableClass", - "StaticContext", - "Statics", - "StripInternal", - "StructPassing", - "StructUnionConsumer", - "Sum", - "SupportsNiceJavaBuilder", - "SupportsNiceJavaBuilderWithRequiredProps", - "SyncVirtualMethods", - "Thrower", - "UnaryOperation", - "UseBundledDependency", - "UseCalcBase", - "UsesInterfaceWithProperties", - "Value", - "VariadicInvoker", - "VariadicMethod", - "Very", - "VirtualMethodPlayground", - "VoidCallback", - "WithPrivatePropertyInConstructor", + "@scope/jsii-calc-base-of-base.Very", + "@scope/jsii-calc-base.Base", + "@scope/jsii-calc-lib.Number", + "@scope/jsii-calc-lib.Operation", + "@scope/jsii-calc-lib.Value", + "jsii-calc.AbstractClass", + "jsii-calc.AbstractClassBase", + "jsii-calc.AbstractClassReturner", + "jsii-calc.AbstractSuite", + "jsii-calc.Add", + "jsii-calc.AllTypes", + "jsii-calc.AllowedMethodNames", + "jsii-calc.AmbiguousParameters", + "jsii-calc.AnonymousImplementationProvider", + "jsii-calc.AsyncVirtualMethods", + "jsii-calc.AugmentableClass", + "jsii-calc.BaseJsii976", + "jsii-calc.Bell", + "jsii-calc.BinaryOperation", + "jsii-calc.Calculator", + "jsii-calc.ClassThatImplementsTheInternalInterface", + "jsii-calc.ClassThatImplementsThePrivateInterface", + "jsii-calc.ClassWithCollections", + "jsii-calc.ClassWithDocs", + "jsii-calc.ClassWithJavaReservedWords", + "jsii-calc.ClassWithMutableObjectLiteralProperty", + "jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties", + "jsii-calc.ConfusingToJackson", + "jsii-calc.ConstructorPassesThisOut", + "jsii-calc.Constructors", + "jsii-calc.ConsumePureInterface", + "jsii-calc.ConsumerCanRingBell", + "jsii-calc.ConsumersOfThisCrazyTypeSystem", + "jsii-calc.DataRenderer", + "jsii-calc.DefaultedConstructorArgument", + "jsii-calc.Demonstrate982", + "jsii-calc.DeprecatedClass", + "jsii-calc.DerivedClassHasNoProperties.Base", + "jsii-calc.DerivedClassHasNoProperties.Derived", + "jsii-calc.DisappointingCollectionSource", + "jsii-calc.DoNotOverridePrivates", + "jsii-calc.DoNotRecognizeAnyAsOptional", + "jsii-calc.DocumentedClass", + "jsii-calc.DontComplainAboutVariadicAfterOptional", + "jsii-calc.DoubleTrouble", + "jsii-calc.EnumDispenser", + "jsii-calc.EraseUndefinedHashValues", + "jsii-calc.ExperimentalClass", + "jsii-calc.ExportedBaseClass", + "jsii-calc.GiveMeStructs", + "jsii-calc.GreetingAugmenter", + "jsii-calc.ImplementInternalInterface", + "jsii-calc.Implementation", + "jsii-calc.ImplementsInterfaceWithInternal", + "jsii-calc.ImplementsInterfaceWithInternalSubclass", + "jsii-calc.ImplementsPrivateInterface", + "jsii-calc.InbetweenClass", + "jsii-calc.InterfaceCollections", + "jsii-calc.InterfaceInNamespaceIncludesClasses.Foo", + "jsii-calc.InterfacesMaker", + "jsii-calc.JSII417Derived", + "jsii-calc.JSII417PublicBaseOfBase", + "jsii-calc.JSObjectLiteralForInterface", + "jsii-calc.JSObjectLiteralToNative", + "jsii-calc.JSObjectLiteralToNativeClass", + "jsii-calc.JavaReservedWords", + "jsii-calc.Jsii487Derived", + "jsii-calc.Jsii496Derived", + "jsii-calc.JsiiAgent", + "jsii-calc.JsonFormatter", + "jsii-calc.MethodNamedProperty", + "jsii-calc.Multiply", + "jsii-calc.Negate", + "jsii-calc.NodeStandardLibrary", + "jsii-calc.NullShouldBeTreatedAsUndefined", + "jsii-calc.NumberGenerator", + "jsii-calc.ObjectRefsInCollections", + "jsii-calc.ObjectWithPropertyProvider", + "jsii-calc.Old", + "jsii-calc.OptionalArgumentInvoker", + "jsii-calc.OptionalConstructorArgument", + "jsii-calc.OptionalStructConsumer", + "jsii-calc.OverridableProtectedMember", + "jsii-calc.OverrideReturnsObject", + "jsii-calc.PartiallyInitializedThisConsumer", + "jsii-calc.Polymorphism", + "jsii-calc.Power", + "jsii-calc.PropertyNamedProperty", + "jsii-calc.PublicClass", + "jsii-calc.PythonReservedWords", + "jsii-calc.ReferenceEnumFromScopedPackage", + "jsii-calc.ReturnsPrivateImplementationOfInterface", + "jsii-calc.RootStructValidator", + "jsii-calc.RuntimeTypeChecking", + "jsii-calc.SingleInstanceTwoTypes", + "jsii-calc.SingletonInt", + "jsii-calc.SingletonString", + "jsii-calc.SomeTypeJsii976", + "jsii-calc.StableClass", + "jsii-calc.StaticContext", + "jsii-calc.Statics", + "jsii-calc.StripInternal", + "jsii-calc.StructPassing", + "jsii-calc.StructUnionConsumer", + "jsii-calc.Sum", + "jsii-calc.SupportsNiceJavaBuilder", + "jsii-calc.SupportsNiceJavaBuilderWithRequiredProps", + "jsii-calc.SyncVirtualMethods", + "jsii-calc.Thrower", + "jsii-calc.UnaryOperation", + "jsii-calc.UseBundledDependency", + "jsii-calc.UseCalcBase", + "jsii-calc.UsesInterfaceWithProperties", + "jsii-calc.VariadicInvoker", + "jsii-calc.VariadicMethod", + "jsii-calc.VirtualMethodPlayground", + "jsii-calc.VoidCallback", + "jsii-calc.WithPrivatePropertyInConstructor", + "jsii-calc.composition.CompositeOperation", + "jsii-calc.submodule.nested_submodule.Namespaced", ] `; diff --git a/packages/jsii-reflect/test/type-system.test.ts b/packages/jsii-reflect/test/type-system.test.ts index af2584926a..354d9da511 100644 --- a/packages/jsii-reflect/test/type-system.test.ts +++ b/packages/jsii-reflect/test/type-system.test.ts @@ -22,7 +22,7 @@ test('TypeSystem.assemblies lists all the loaded assemblies', () => ); test('TypeSystem.classes lists all the classes in the typesystem', () => - expect(typesys.classes.map(c => c.name).sort()).toMatchSnapshot() + expect(typesys.classes.map(c => c.fqn).sort()).toMatchSnapshot() ); test('findClass', () => { @@ -47,9 +47,9 @@ test('"roots" is a list of the directly loaded assemblies', async () => { describe('Type', () => { test('.isClassType', () => { // GIVEN - const clazz = typesys.findFqn('jsii-calc.compliance.AllTypes'); - const iface = typesys.findFqn('jsii-calc.compliance.IPublicInterface'); - const enumt = typesys.findFqn('jsii-calc.compliance.AllTypesEnum'); + const clazz = typesys.findFqn('jsii-calc.AllTypes'); + const iface = typesys.findFqn('jsii-calc.IPublicInterface'); + const enumt = typesys.findFqn('jsii-calc.AllTypesEnum'); // THEN expect(clazz.isClassType()).toBeTruthy(); @@ -59,10 +59,10 @@ describe('Type', () => { test('.isDataType', () => { // GIVEN - const clazz = typesys.findFqn('jsii-calc.compliance.AllTypes'); - const iface = typesys.findFqn('jsii-calc.compliance.IInterfaceThatShouldNotBeADataType'); + const clazz = typesys.findFqn('jsii-calc.AllTypes'); + const iface = typesys.findFqn('jsii-calc.IInterfaceThatShouldNotBeADataType'); const datat = typesys.findFqn('jsii-calc.CalculatorProps'); - const enumt = typesys.findFqn('jsii-calc.compliance.AllTypesEnum'); + const enumt = typesys.findFqn('jsii-calc.AllTypesEnum'); // THEN expect(clazz.isDataType()).toBeFalsy(); @@ -73,9 +73,9 @@ describe('Type', () => { test('.isInterfaceType', () => { // GIVEN - const clazz = typesys.findFqn('jsii-calc.compliance.AllTypes'); - const iface = typesys.findFqn('jsii-calc.compliance.IPublicInterface'); - const enumt = typesys.findFqn('jsii-calc.compliance.AllTypesEnum'); + const clazz = typesys.findFqn('jsii-calc.AllTypes'); + const iface = typesys.findFqn('jsii-calc.IPublicInterface'); + const enumt = typesys.findFqn('jsii-calc.AllTypesEnum'); // THEN expect(clazz.isInterfaceType()).toBeFalsy(); @@ -85,9 +85,9 @@ describe('Type', () => { test('.isEnumType', () => { // GIVEN - const clazz = typesys.findFqn('jsii-calc.compliance.AllTypes'); - const iface = typesys.findFqn('jsii-calc.compliance.IPublicInterface'); - const enumt = typesys.findFqn('jsii-calc.compliance.AllTypesEnum'); + const clazz = typesys.findFqn('jsii-calc.AllTypes'); + const iface = typesys.findFqn('jsii-calc.IPublicInterface'); + const enumt = typesys.findFqn('jsii-calc.AllTypesEnum'); // THEN expect(clazz.isEnumType()).toBeFalsy(); @@ -99,8 +99,8 @@ describe('Type', () => { test('with interfaces', () => { // GIVEN const base = typesys.findFqn('@scope/jsii-calc-base-of-base.VeryBaseProps'); - const clazz = typesys.findFqn('jsii-calc.compliance.ImplictBaseOfBase'); - const enumt = typesys.findFqn('jsii-calc.compliance.AllTypesEnum'); + const clazz = typesys.findFqn('jsii-calc.ImplictBaseOfBase'); + const enumt = typesys.findFqn('jsii-calc.AllTypesEnum'); // THEN expect(base.extends(base)).toBeTruthy(); @@ -113,8 +113,8 @@ describe('Type', () => { test('with a class and an interface', () => { // GIVEN - const iface = typesys.findFqn('jsii-calc.compliance.IInterfaceImplementedByAbstractClass'); - const clazz = typesys.findFqn('jsii-calc.compliance.AbstractClass'); + const iface = typesys.findFqn('jsii-calc.IInterfaceImplementedByAbstractClass'); + const clazz = typesys.findFqn('jsii-calc.AbstractClass'); // THEN expect(clazz.extends(iface)).toBeTruthy(); @@ -122,8 +122,8 @@ describe('Type', () => { test('with two classes', () => { // GIVEN - const base = typesys.findFqn('jsii-calc.compliance.AbstractClassBase'); - const clazz = typesys.findFqn('jsii-calc.compliance.AbstractClass'); + const base = typesys.findFqn('jsii-calc.AbstractClassBase'); + const clazz = typesys.findFqn('jsii-calc.AbstractClass'); // THEN expect(clazz.extends(base)).toBeTruthy(); @@ -133,15 +133,15 @@ describe('Type', () => { describe('.allImplementations', () => { test('with an interface', () => { // GIVEN - const base = typesys.findFqn('jsii-calc.compliance.IInterfaceImplementedByAbstractClass'); + const base = typesys.findFqn('jsii-calc.IInterfaceImplementedByAbstractClass'); // THEN - expect(base.allImplementations).toEqual([typesys.findFqn('jsii-calc.compliance.AbstractClass'), base]); + expect(base.allImplementations).toEqual([typesys.findFqn('jsii-calc.AbstractClass'), base]); }); test('with an enum', () => { // GIVEN - const enumt = typesys.findFqn('jsii-calc.compliance.AllTypesEnum'); + const enumt = typesys.findFqn('jsii-calc.AllTypesEnum'); // THEN expect(enumt.allImplementations).toEqual([]); @@ -158,12 +158,12 @@ test('Three Inheritance Levels', () => { describe('@deprecated', () => { test('can be read on an item', () => { - const klass = typesys.findClass('jsii-calc.documented.Old'); + const klass = typesys.findClass('jsii-calc.Old'); expect(klass.docs.deprecated).toBeTruthy(); }); test('is inherited from class', () => { - const klass = typesys.findClass('jsii-calc.documented.Old'); + const klass = typesys.findClass('jsii-calc.Old'); const method = klass.getMethods().doAThing; expect(method.docs.deprecated).toBeTruthy(); }); @@ -203,18 +203,18 @@ test('overridden member knows about both parent types', async () => { describe('Stability', () => { test('can be read on an item', () => { - const klass = typesys.findClass('jsii-calc.documented.DocumentedClass'); + const klass = typesys.findClass('jsii-calc.DocumentedClass'); expect(klass.docs.stability).toBe(spec.Stability.Stable); }); test('is inherited from class', () => { - const klass = typesys.findClass('jsii-calc.documented.DocumentedClass'); + const klass = typesys.findClass('jsii-calc.DocumentedClass'); const method = klass.getMethods().greet; expect(method.docs.stability).toBe(spec.Stability.Stable); }); test('can be overridden from class', () => { - const klass = typesys.findClass('jsii-calc.documented.DocumentedClass'); + const klass = typesys.findClass('jsii-calc.DocumentedClass'); const method = klass.getMethods().hola; expect(method.docs.stability).toBe(spec.Stability.Experimental); }); From a96ad4ef4d3a2d19ac57808e3fc3be61b57da436 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=91=A8=F0=9F=8F=BC=E2=80=8D=F0=9F=92=BB=20Romain=20M?= =?UTF-8?q?arcadier-Muller?= Date: Fri, 13 Mar 2020 16:30:40 +0100 Subject: [PATCH 10/18] de-namespacing --- .../ComplianceTests.cs | 3 +- .../amazon/jsii/testing/ComplianceTest.java | 11 +- .../amazon/jsii/testing/JsiiClientTest.java | 12 +- .../python-runtime/tests/test_compliance.py | 30 +- .../@jsii/python-runtime/tests/test_python.py | 4 +- .../project/test/jsii_runtime_test.rb | 10 +- .../.jsii | 9145 ++++++++--------- .../{Compliance => }/AbstractClass.cs | 6 +- .../{Compliance => }/AbstractClassBase.cs | 4 +- .../AbstractClassBaseProxy.cs | 6 +- .../{Compliance => }/AbstractClassProxy.cs | 6 +- .../{Compliance => }/AbstractClassReturner.cs | 22 +- .../{Compliance => }/AllTypes.cs | 22 +- .../{Compliance => }/AllTypesEnum.cs | 4 +- .../{Compliance => }/AllowedMethodNames.cs | 4 +- .../{Compliance => }/AmbiguousParameters.cs | 18 +- .../AnonymousImplementationProvider.cs | 18 +- .../{Compliance => }/AsyncVirtualMethods.cs | 4 +- .../{Compliance => }/AugmentableClass.cs | 4 +- .../{Compliance => }/BaseJsii976.cs | 4 +- .../{Compliance => }/Bell.cs | 6 +- .../{Compliance => }/ChildStruct982.cs | 6 +- .../{Compliance => }/ChildStruct982Proxy.cs | 6 +- ...ClassThatImplementsTheInternalInterface.cs | 6 +- .../ClassThatImplementsThePrivateInterface.cs | 6 +- .../{Compliance => }/ClassWithCollections.cs | 16 +- .../{Compliance => }/ClassWithDocs.cs | 4 +- .../ClassWithJavaReservedWords.cs | 4 +- .../ClassWithMutableObjectLiteralProperty.cs | 10 +- ...rivateConstructorAndAutomaticProperties.cs | 12 +- .../PartiallyInitializedThisConsumerProxy.cs | 26 - .../{Compliance => }/ConfusingToJackson.cs | 18 +- .../ConfusingToJacksonStruct.cs | 8 +- .../ConfusingToJacksonStructProxy.cs | 8 +- .../ConstructorPassesThisOut.cs | 6 +- .../{Compliance => }/Constructors.cs | 46 +- .../{Compliance => }/ConsumePureInterface.cs | 12 +- .../{Compliance => }/ConsumerCanRingBell.cs | 52 +- .../ConsumersOfThisCrazyTypeSystem.cs | 16 +- .../{Compliance => }/DataRenderer.cs | 4 +- .../DefaultedConstructorArgument.cs | 4 +- .../{Compliance => }/Demonstrate982.cs | 16 +- .../DeprecatedClass.cs | 4 +- .../DeprecatedEnum.cs | 4 +- .../DeprecatedStruct.cs | 6 +- .../DeprecatedStructProxy.cs | 6 +- .../DerivedClassHasNoProperties/Base.cs | 4 +- .../DerivedClassHasNoProperties/Derived.cs | 6 +- .../{Compliance => }/DerivedStruct.cs | 10 +- .../{Compliance => }/DerivedStructProxy.cs | 12 +- .../DiamondInheritanceBaseLevelStruct.cs | 6 +- .../DiamondInheritanceBaseLevelStructProxy.cs | 6 +- .../DiamondInheritanceFirstMidLevelStruct.cs | 6 +- ...mondInheritanceFirstMidLevelStructProxy.cs | 6 +- .../DiamondInheritanceSecondMidLevelStruct.cs | 6 +- ...ondInheritanceSecondMidLevelStructProxy.cs | 6 +- .../DiamondInheritanceTopLevelStruct.cs | 6 +- .../DiamondInheritanceTopLevelStructProxy.cs | 6 +- .../DisappointingCollectionSource.cs | 8 +- .../{Compliance => }/DoNotOverridePrivates.cs | 4 +- .../DoNotRecognizeAnyAsOptional.cs | 4 +- .../{Documented => }/DocumentedClass.cs | 10 +- .../DontComplainAboutVariadicAfterOptional.cs | 4 +- .../{Compliance => }/DoubleTrouble.cs | 4 +- .../{Compliance => }/EnumDispenser.cs | 16 +- .../EraseUndefinedHashValues.cs | 14 +- .../EraseUndefinedHashValuesOptions.cs | 6 +- .../EraseUndefinedHashValuesOptionsProxy.cs | 6 +- .../ExperimentalClass.cs | 4 +- .../ExperimentalEnum.cs | 4 +- .../ExperimentalStruct.cs | 6 +- .../ExperimentalStructProxy.cs | 6 +- .../{Compliance => }/ExportedBaseClass.cs | 4 +- .../ExtendsInternalInterface.cs | 6 +- .../ExtendsInternalInterfaceProxy.cs | 6 +- .../{Compliance => }/GiveMeStructs.cs | 16 +- .../{Documented => }/Greetee.cs | 6 +- .../{Documented => }/GreeteeProxy.cs | 6 +- .../{Compliance => }/GreetingAugmenter.cs | 4 +- .../IAnonymousImplementationProvider.cs | 12 +- .../IAnonymousImplementationProviderProxy.cs | 18 +- .../IAnonymouslyImplementMe.cs | 4 +- .../IAnonymouslyImplementMeProxy.cs | 6 +- .../IAnotherPublicInterface.cs | 4 +- .../IAnotherPublicInterfaceProxy.cs | 6 +- .../{Compliance => }/IBell.cs | 4 +- .../{Compliance => }/IBellProxy.cs | 6 +- .../{Compliance => }/IBellRinger.cs | 8 +- .../{Compliance => }/IBellRingerProxy.cs | 12 +- .../{Compliance => }/IChildStruct982.cs | 6 +- .../{Compliance => }/IConcreteBellRinger.cs | 8 +- .../IConcreteBellRingerProxy.cs | 12 +- .../IConfusingToJacksonStruct.cs | 6 +- .../IDeprecatedInterface.cs | 4 +- .../IDeprecatedInterfaceProxy.cs | 6 +- .../IDeprecatedStruct.cs | 4 +- .../{Compliance => }/IDerivedStruct.cs | 8 +- .../IDiamondInheritanceBaseLevelStruct.cs | 4 +- .../IDiamondInheritanceFirstMidLevelStruct.cs | 6 +- ...IDiamondInheritanceSecondMidLevelStruct.cs | 6 +- .../IDiamondInheritanceTopLevelStruct.cs | 6 +- .../IEraseUndefinedHashValuesOptions.cs | 4 +- .../IExperimentalInterface.cs | 4 +- .../IExperimentalInterfaceProxy.cs | 6 +- .../IExperimentalStruct.cs | 4 +- .../IExtendsInternalInterface.cs | 4 +- .../IExtendsPrivateInterface.cs | 4 +- .../IExtendsPrivateInterfaceProxy.cs | 6 +- .../{Documented => }/IGreetee.cs | 4 +- .../{Compliance => }/IImplictBaseOfBase.cs | 4 +- .../IInterfaceImplementedByAbstractClass.cs | 4 +- ...nterfaceImplementedByAbstractClassProxy.cs | 6 +- .../IInterfaceThatShouldNotBeADataType.cs | 6 +- ...IInterfaceThatShouldNotBeADataTypeProxy.cs | 6 +- .../IInterfaceWithInternal.cs | 4 +- .../IInterfaceWithInternalProxy.cs | 6 +- .../{Compliance => }/IInterfaceWithMethods.cs | 4 +- .../IInterfaceWithMethodsProxy.cs | 6 +- .../IInterfaceWithOptionalMethodArguments.cs | 4 +- ...terfaceWithOptionalMethodArgumentsProxy.cs | 6 +- .../IInterfaceWithProperties.cs | 4 +- .../IInterfaceWithPropertiesExtension.cs | 6 +- .../IInterfaceWithPropertiesExtensionProxy.cs | 6 +- .../IInterfaceWithPropertiesProxy.cs | 6 +- .../{ErasureTests => }/IJSII417Derived.cs | 6 +- .../IJSII417DerivedProxy.cs | 6 +- .../IJSII417PublicBaseOfBase.cs | 4 +- .../IJSII417PublicBaseOfBaseProxy.cs | 6 +- .../{ErasureTests => }/IJsii487External.cs | 4 +- .../{ErasureTests => }/IJsii487External2.cs | 4 +- .../IJsii487External2Proxy.cs | 6 +- .../IJsii487ExternalProxy.cs | 6 +- .../{ErasureTests => }/IJsii496.cs | 4 +- .../{ErasureTests => }/IJsii496Proxy.cs | 6 +- .../ILoadBalancedFargateServiceProps.cs | 4 +- .../{Compliance => }/IMutableObjectLiteral.cs | 4 +- .../IMutableObjectLiteralProxy.cs | 6 +- .../{Compliance => }/INestedStruct.cs | 4 +- .../{Compliance => }/INonInternalInterface.cs | 6 +- .../INonInternalInterfaceProxy.cs | 6 +- .../INullShouldBeTreatedAsUndefinedData.cs | 4 +- .../{Compliance => }/IObjectWithProperty.cs | 4 +- .../IObjectWithPropertyProxy.cs | 6 +- .../{Compliance => }/IOptionalMethod.cs | 4 +- .../{Compliance => }/IOptionalMethodProxy.cs | 6 +- .../{Compliance => }/IOptionalStruct.cs | 4 +- .../{Compliance => }/IParentStruct982.cs | 4 +- .../{Compliance => }/IPrivatelyImplemented.cs | 4 +- .../IPrivatelyImplementedProxy.cs | 6 +- .../{Compliance => }/IPublicInterface.cs | 4 +- .../{Compliance => }/IPublicInterface2.cs | 4 +- .../IPublicInterface2Proxy.cs | 6 +- .../{Compliance => }/IPublicInterfaceProxy.cs | 6 +- .../{Compliance => }/IReturnJsii976.cs | 4 +- .../{Compliance => }/IReturnJsii976Proxy.cs | 6 +- .../{Compliance => }/IReturnsNumber.cs | 4 +- .../{Compliance => }/IReturnsNumberProxy.cs | 6 +- .../{Compliance => }/IRootStruct.cs | 8 +- .../{Compliance => }/ISecondLevelStruct.cs | 4 +- .../IStableInterface.cs | 4 +- .../IStableInterfaceProxy.cs | 6 +- .../IStableStruct.cs | 4 +- .../{Compliance => }/IStructA.cs | 4 +- .../{Compliance => }/IStructB.cs | 8 +- .../{Compliance => }/IStructParameterType.cs | 4 +- .../IStructReturningDelegate.cs | 8 +- .../IStructReturningDelegateProxy.cs | 12 +- .../IStructWithJavaReservedWords.cs | 4 +- .../ISupportsNiceJavaBuilderProps.cs | 4 +- .../{Compliance => }/ITopLevelStruct.cs | 6 +- .../{Compliance => }/IUnionProperties.cs | 6 +- .../ImplementInternalInterface.cs | 4 +- .../{Compliance => }/Implementation.cs | 4 +- .../ImplementsInterfaceWithInternal.cs | 6 +- ...ImplementsInterfaceWithInternalSubclass.cs | 6 +- .../ImplementsPrivateInterface.cs | 4 +- .../{Compliance => }/ImplictBaseOfBase.cs | 6 +- .../ImplictBaseOfBaseProxy.cs | 6 +- .../{Compliance => }/InbetweenClass.cs | 6 +- .../{Compliance => }/InterfaceCollections.cs | 28 +- .../Foo.cs | 4 +- .../Hello.cs | 6 +- .../HelloProxy.cs | 6 +- .../IHello.cs | 4 +- .../Hello.cs | 6 +- .../HelloProxy.cs | 6 +- .../IHello.cs | 4 +- .../{Compliance => }/InterfacesMaker.cs | 6 +- .../{ErasureTests => }/JSII417Derived.cs | 6 +- .../JSII417PublicBaseOfBase.cs | 10 +- .../JSObjectLiteralForInterface.cs | 4 +- .../JSObjectLiteralToNative.cs | 10 +- .../JSObjectLiteralToNativeClass.cs | 4 +- .../{Compliance => }/JavaReservedWords.cs | 4 +- .../{ErasureTests => }/Jsii487Derived.cs | 6 +- .../{ErasureTests => }/Jsii496Derived.cs | 6 +- .../{Compliance => }/JsiiAgent_.cs | 6 +- .../{Compliance => }/JsonFormatter.cs | 32 +- .../LoadBalancedFargateServiceProps.cs | 6 +- .../LoadBalancedFargateServicePropsProxy.cs | 6 +- .../{Compliance => }/NestedStruct.cs | 6 +- .../{Compliance => }/NestedStructProxy.cs | 6 +- .../{Compliance => }/NodeStandardLibrary.cs | 4 +- .../NullShouldBeTreatedAsUndefined.cs | 10 +- .../NullShouldBeTreatedAsUndefinedData.cs | 6 +- ...NullShouldBeTreatedAsUndefinedDataProxy.cs | 6 +- .../{Compliance => }/NumberGenerator.cs | 4 +- .../ObjectRefsInCollections.cs | 4 +- .../ObjectWithPropertyProvider.cs | 10 +- .../{Documented => }/Old.cs | 4 +- .../OptionalArgumentInvoker.cs | 6 +- .../OptionalConstructorArgument.cs | 4 +- .../{Compliance => }/OptionalStruct.cs | 6 +- .../OptionalStructConsumer.cs | 6 +- .../{Compliance => }/OptionalStructProxy.cs | 6 +- .../OverridableProtectedMember.cs | 4 +- .../{Compliance => }/OverrideReturnsObject.cs | 10 +- .../{Compliance => }/ParentStruct982.cs | 6 +- .../{Compliance => }/ParentStruct982Proxy.cs | 6 +- .../PartiallyInitializedThisConsumer.cs | 8 +- .../PartiallyInitializedThisConsumerProxy.cs | 26 + .../{Compliance => }/Polymorphism.cs | 4 +- .../{Compliance => }/PublicClass.cs | 4 +- .../{Compliance => }/PythonReservedWords.cs | 4 +- .../ReferenceEnumFromScopedPackage.cs | 4 +- ...ReturnsPrivateImplementationOfInterface.cs | 10 +- .../{Compliance => }/RootStruct.cs | 10 +- .../{Compliance => }/RootStructProxy.cs | 12 +- .../{Compliance => }/RootStructValidator.cs | 10 +- .../{Compliance => }/RuntimeTypeChecking.cs | 4 +- .../{Compliance => }/SecondLevelStruct.cs | 6 +- .../SecondLevelStructProxy.cs | 6 +- .../SingleInstanceTwoTypes.cs | 16 +- .../{Compliance => }/SingletonInt.cs | 4 +- .../{Compliance => }/SingletonIntEnum.cs | 4 +- .../{Compliance => }/SingletonString.cs | 4 +- .../{Compliance => }/SingletonStringEnum.cs | 4 +- .../{Compliance => }/SomeTypeJsii976.cs | 12 +- .../{StabilityAnnotations => }/StableClass.cs | 4 +- .../{StabilityAnnotations => }/StableEnum.cs | 4 +- .../StableStruct.cs | 6 +- .../StableStructProxy.cs | 6 +- .../{Compliance => }/StaticContext.cs | 10 +- .../{Compliance => }/Statics.cs | 30 +- .../{Compliance => }/StringEnum.cs | 4 +- .../{Compliance => }/StripInternal.cs | 4 +- .../{Compliance => }/StructA.cs | 6 +- .../{Compliance => }/StructAProxy.cs | 6 +- .../{Compliance => }/StructB.cs | 10 +- .../{Compliance => }/StructBProxy.cs | 12 +- .../{Compliance => }/StructParameterType.cs | 6 +- .../StructParameterTypeProxy.cs | 6 +- .../{Compliance => }/StructPassing.cs | 16 +- .../{Compliance => }/StructUnionConsumer.cs | 12 +- .../StructWithJavaReservedWords.cs | 6 +- .../StructWithJavaReservedWordsProxy.cs | 6 +- .../Submodule/Child/IStructure.cs | 22 + .../Submodule/Child/Structure.cs | 25 + .../Submodule/Child/StructureProxy.cs | 26 + .../DeeplyNested/INamespaced.cs | 22 + .../DeeplyNested/INamespacedProxy.cs | 26 + .../Submodule/NestedSubmodule/Namespaced.cs | 36 + .../SupportsNiceJavaBuilder.cs | 8 +- .../SupportsNiceJavaBuilderProps.cs | 6 +- .../SupportsNiceJavaBuilderPropsProxy.cs | 6 +- ...upportsNiceJavaBuilderWithRequiredProps.cs | 6 +- .../{Compliance => }/SyncVirtualMethods.cs | 4 +- .../{Compliance => }/Thrower.cs | 4 +- .../{Compliance => }/TopLevelStruct.cs | 8 +- .../{Compliance => }/TopLevelStructProxy.cs | 8 +- .../{Compliance => }/UnionProperties.cs | 8 +- .../{Compliance => }/UnionPropertiesProxy.cs | 8 +- .../{Compliance => }/UseBundledDependency.cs | 4 +- .../{Compliance => }/UseCalcBase.cs | 4 +- .../UsesInterfaceWithProperties.cs | 18 +- .../{Compliance => }/VariadicInvoker.cs | 6 +- .../{Compliance => }/VariadicMethod.cs | 4 +- .../VirtualMethodPlayground.cs | 4 +- .../{Compliance => }/VoidCallback.cs | 4 +- .../{Compliance => }/VoidCallbackProxy.cs | 6 +- .../WithPrivatePropertyInConstructor.cs | 4 +- .../amazon/jsii/tests/calculator/$Module.java | 345 +- .../{compliance => }/AbstractClass.java | 8 +- .../{compliance => }/AbstractClassBase.java | 6 +- .../AbstractClassReturner.java | 16 +- .../calculator/{compliance => }/AllTypes.java | 20 +- .../{compliance => }/AllTypesEnum.java | 4 +- .../{compliance => }/AllowedMethodNames.java | 4 +- .../{compliance => }/AmbiguousParameters.java | 32 +- .../AnonymousImplementationProvider.java | 14 +- .../{compliance => }/AsyncVirtualMethods.java | 4 +- .../{compliance => }/AugmentableClass.java | 4 +- .../{compliance => }/BaseJsii976.java | 4 +- .../calculator/{compliance => }/Bell.java | 6 +- .../{compliance => }/ChildStruct982.java | 8 +- ...assThatImplementsTheInternalInterface.java | 6 +- ...lassThatImplementsThePrivateInterface.java | 6 +- .../ClassWithCollections.java | 16 +- .../{compliance => }/ClassWithDocs.java | 4 +- .../ClassWithJavaReservedWords.java | 4 +- ...ClassWithMutableObjectLiteralProperty.java | 10 +- ...vateConstructorAndAutomaticProperties.java | 10 +- .../{compliance => }/ConfusingToJackson.java | 12 +- .../ConfusingToJacksonStruct.java | 6 +- .../ConstructorPassesThisOut.java | 6 +- .../{compliance => }/Constructors.java | 32 +- .../ConsumePureInterface.java | 10 +- .../{compliance => }/ConsumerCanRingBell.java | 28 +- .../ConsumersOfThisCrazyTypeSystem.java | 8 +- .../{compliance => }/DataRenderer.java | 4 +- .../DefaultedConstructorArgument.java | 4 +- .../{compliance => }/Demonstrate982.java | 12 +- .../DeprecatedClass.java | 4 +- .../DeprecatedEnum.java | 4 +- .../DeprecatedStruct.java | 6 +- .../{compliance => }/DerivedStruct.java | 20 +- .../DiamondInheritanceBaseLevelStruct.java | 6 +- ...DiamondInheritanceFirstMidLevelStruct.java | 8 +- ...iamondInheritanceSecondMidLevelStruct.java | 8 +- .../DiamondInheritanceTopLevelStruct.java | 8 +- .../DisappointingCollectionSource.java | 8 +- .../DoNotOverridePrivates.java | 4 +- .../DoNotRecognizeAnyAsOptional.java | 4 +- .../{documented => }/DocumentedClass.java | 6 +- ...ontComplainAboutVariadicAfterOptional.java | 4 +- .../{compliance => }/DoubleTrouble.java | 4 +- .../{compliance => }/EnumDispenser.java | 12 +- .../EraseUndefinedHashValues.java | 12 +- .../EraseUndefinedHashValuesOptions.java | 6 +- .../ExperimentalClass.java | 4 +- .../ExperimentalEnum.java | 4 +- .../ExperimentalStruct.java | 6 +- .../{compliance => }/ExportedBaseClass.java | 4 +- .../ExtendsInternalInterface.java | 6 +- .../{compliance => }/GiveMeStructs.java | 10 +- .../calculator/{documented => }/Greetee.java | 6 +- .../{compliance => }/GreetingAugmenter.java | 4 +- .../IAnonymousImplementationProvider.java | 18 +- .../IAnonymouslyImplementMe.java | 6 +- .../IAnotherPublicInterface.java | 6 +- .../calculator/{compliance => }/IBell.java | 6 +- .../{compliance => }/IBellRinger.java | 10 +- .../{compliance => }/IConcreteBellRinger.java | 10 +- .../IDeprecatedInterface.java | 6 +- .../IExperimentalInterface.java | 6 +- .../IExtendsPrivateInterface.java | 6 +- .../IInterfaceImplementedByAbstractClass.java | 6 +- .../IInterfaceThatShouldNotBeADataType.java | 8 +- .../IInterfaceWithInternal.java | 6 +- .../IInterfaceWithMethods.java | 6 +- ...IInterfaceWithOptionalMethodArguments.java | 6 +- .../IInterfaceWithProperties.java | 6 +- .../IInterfaceWithPropertiesExtension.java | 8 +- .../{erasure_tests => }/IJSII417Derived.java | 8 +- .../IJSII417PublicBaseOfBase.java | 6 +- .../{erasure_tests => }/IJsii487External.java | 6 +- .../IJsii487External2.java | 6 +- .../{erasure_tests => }/IJsii496.java | 6 +- .../IMutableObjectLiteral.java | 6 +- .../INonInternalInterface.java | 8 +- .../{compliance => }/IObjectWithProperty.java | 6 +- .../{compliance => }/IOptionalMethod.java | 6 +- .../IPrivatelyImplemented.java | 6 +- .../{compliance => }/IPublicInterface.java | 6 +- .../{compliance => }/IPublicInterface2.java | 6 +- .../{compliance => }/IReturnJsii976.java | 6 +- .../{compliance => }/IReturnsNumber.java | 6 +- .../IStableInterface.java | 6 +- .../IStructReturningDelegate.java | 12 +- .../ImplementInternalInterface.java | 4 +- .../{compliance => }/Implementation.java | 4 +- .../ImplementsInterfaceWithInternal.java | 6 +- ...plementsInterfaceWithInternalSubclass.java | 6 +- .../ImplementsPrivateInterface.java | 4 +- .../{compliance => }/ImplictBaseOfBase.java | 6 +- .../{compliance => }/InbetweenClass.java | 6 +- .../InterfaceCollections.java | 20 +- .../{compliance => }/InterfacesMaker.java | 6 +- .../{erasure_tests => }/JSII417Derived.java | 6 +- .../JSII417PublicBaseOfBase.java | 8 +- .../JSObjectLiteralForInterface.java | 4 +- .../JSObjectLiteralToNative.java | 8 +- .../JSObjectLiteralToNativeClass.java | 4 +- .../{compliance => }/JavaReservedWords.java | 4 +- .../{erasure_tests => }/Jsii487Derived.java | 6 +- .../{erasure_tests => }/Jsii496Derived.java | 6 +- .../{compliance => }/JsiiAgent.java | 6 +- .../{compliance => }/JsonFormatter.java | 34 +- .../LoadBalancedFargateServiceProps.java | 6 +- .../{compliance => }/NestedStruct.java | 6 +- .../{compliance => }/NodeStandardLibrary.java | 4 +- .../NullShouldBeTreatedAsUndefined.java | 6 +- .../NullShouldBeTreatedAsUndefinedData.java | 6 +- .../{compliance => }/NumberGenerator.java | 4 +- .../ObjectRefsInCollections.java | 4 +- .../ObjectWithPropertyProvider.java | 8 +- .../calculator/{documented => }/Old.java | 4 +- .../OptionalArgumentInvoker.java | 6 +- .../OptionalConstructorArgument.java | 4 +- .../{compliance => }/OptionalStruct.java | 6 +- .../OptionalStructConsumer.java | 20 +- .../OverridableProtectedMember.java | 4 +- .../OverrideReturnsObject.java | 6 +- .../{compliance => }/ParentStruct982.java | 6 +- .../PartiallyInitializedThisConsumer.java | 10 +- .../{compliance => }/Polymorphism.java | 4 +- .../{compliance => }/PublicClass.java | 4 +- .../{compliance => }/PythonReservedWords.java | 4 +- .../ReferenceEnumFromScopedPackage.java | 4 +- ...turnsPrivateImplementationOfInterface.java | 8 +- .../{compliance => }/RootStruct.java | 20 +- .../{compliance => }/RootStructValidator.java | 8 +- .../{compliance => }/RuntimeTypeChecking.java | 4 +- .../{compliance => }/SecondLevelStruct.java | 6 +- .../SingleInstanceTwoTypes.java | 12 +- .../{compliance => }/SingletonInt.java | 4 +- .../{compliance => }/SingletonIntEnum.java | 4 +- .../{compliance => }/SingletonString.java | 4 +- .../{compliance => }/SingletonStringEnum.java | 4 +- .../{compliance => }/SomeTypeJsii976.java | 10 +- .../StableClass.java | 4 +- .../StableEnum.java | 4 +- .../StableStruct.java | 6 +- .../{compliance => }/StaticContext.java | 10 +- .../calculator/{compliance => }/Statics.java | 28 +- .../{compliance => }/StringEnum.java | 4 +- .../{compliance => }/StripInternal.java | 4 +- .../calculator/{compliance => }/StructA.java | 6 +- .../calculator/{compliance => }/StructB.java | 20 +- .../{compliance => }/StructParameterType.java | 6 +- .../{compliance => }/StructPassing.java | 12 +- .../{compliance => }/StructUnionConsumer.java | 8 +- .../StructWithJavaReservedWords.java | 6 +- .../SupportsNiceJavaBuilder.java | 22 +- .../SupportsNiceJavaBuilderProps.java | 6 +- ...portsNiceJavaBuilderWithRequiredProps.java | 18 +- .../{compliance => }/SyncVirtualMethods.java | 4 +- .../calculator/{compliance => }/Thrower.java | 4 +- .../{compliance => }/TopLevelStruct.java | 8 +- .../{compliance => }/UnionProperties.java | 8 +- .../UseBundledDependency.java | 4 +- .../{compliance => }/UseCalcBase.java | 4 +- .../UsesInterfaceWithProperties.java | 12 +- .../{compliance => }/VariadicInvoker.java | 6 +- .../{compliance => }/VariadicMethod.java | 4 +- .../VirtualMethodPlayground.java | 4 +- .../{compliance => }/VoidCallback.java | 6 +- .../WithPrivatePropertyInConstructor.java | 4 +- .../derived_class_has_no_properties/Base.java | 4 +- .../Derived.java | 6 +- .../Foo.java | 4 +- .../Hello.java | 6 +- .../Hello.java | 6 +- .../calculator/submodule/child/Structure.java | 116 + .../nested_submodule/Namespaced.java | 27 + .../deeply_nested/INamespaced.java | 35 + .../test/expected.jsii-calc/python/setup.py | 14 +- .../python/src/jsii_calc/__init__.py | 8167 ++++++++++++++- .../src/jsii_calc/compliance/__init__.py | 6660 ------------ .../__init__.py | 8 +- .../src/jsii_calc/documented/__init__.py | 115 - .../src/jsii_calc/erasure_tests/__init__.py | 295 - .../__init__.py | 6 +- .../__init__.py | 2 +- .../stability_annotations/__init__.py | 468 - .../src/jsii_calc/submodule/__init__.py | 19 + .../src/jsii_calc/submodule/child/__init__.py | 51 + .../submodule/nested_submodule/__init__.py | 36 + .../deeply_nested/__init__.py | 56 + 469 files changed, 14692 insertions(+), 14344 deletions(-) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/AbstractClass.cs (88%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/AbstractClassBase.cs (89%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/AbstractClassBaseProxy.cs (76%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/AbstractClassProxy.cs (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/AbstractClassReturner.cs (66%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/AllTypes.cs (91%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/AllTypesEnum.cs (88%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/AllowedMethodNames.cs (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/AmbiguousParameters.cs (67%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/AnonymousImplementationProvider.cs (67%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/AsyncVirtualMethods.cs (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/AugmentableClass.cs (91%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/BaseJsii976.cs (88%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/Bell.cs (91%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/ChildStruct982.cs (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/ChildStruct982Proxy.cs (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/ClassThatImplementsTheInternalInterface.cs (89%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/ClassThatImplementsThePrivateInterface.cs (89%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/ClassWithCollections.cs (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/ClassWithDocs.cs (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/ClassWithJavaReservedWords.cs (88%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/ClassWithMutableObjectLiteralProperty.cs (78%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/ClassWithPrivateConstructorAndAutomaticProperties.cs (67%) delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/PartiallyInitializedThisConsumerProxy.cs rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/ConfusingToJackson.cs (67%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/ConfusingToJacksonStruct.cs (59%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/ConfusingToJacksonStructProxy.cs (65%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/ConstructorPassesThisOut.cs (75%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/Constructors.cs (52%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/ConsumePureInterface.cs (71%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/ConsumerCanRingBell.cs (69%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/ConsumersOfThisCrazyTypeSystem.cs (72%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/DataRenderer.cs (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/DefaultedConstructorArgument.cs (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/Demonstrate982.cs (73%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{StabilityAnnotations => }/DeprecatedClass.cs (88%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{StabilityAnnotations => }/DeprecatedEnum.cs (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{StabilityAnnotations => }/DeprecatedStruct.cs (76%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{StabilityAnnotations => }/DeprecatedStructProxy.cs (78%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/DerivedClassHasNoProperties/Base.cs (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/DerivedClassHasNoProperties/Derived.cs (80%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/DerivedStruct.cs (92%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/DerivedStructProxy.cs (91%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/DiamondInheritanceBaseLevelStruct.cs (73%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/DiamondInheritanceBaseLevelStructProxy.cs (74%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/DiamondInheritanceFirstMidLevelStruct.cs (79%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/DiamondInheritanceFirstMidLevelStructProxy.cs (79%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/DiamondInheritanceSecondMidLevelStruct.cs (79%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/DiamondInheritanceSecondMidLevelStructProxy.cs (79%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/DiamondInheritanceTopLevelStruct.cs (87%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/DiamondInheritanceTopLevelStructProxy.cs (87%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/DisappointingCollectionSource.cs (89%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/DoNotOverridePrivates.cs (93%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/DoNotRecognizeAnyAsOptional.cs (91%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Documented => }/DocumentedClass.cs (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/DontComplainAboutVariadicAfterOptional.cs (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/DoubleTrouble.cs (92%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/EnumDispenser.cs (66%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/EraseUndefinedHashValues.cs (78%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/EraseUndefinedHashValuesOptions.cs (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/EraseUndefinedHashValuesOptionsProxy.cs (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{StabilityAnnotations => }/ExperimentalClass.cs (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{StabilityAnnotations => }/ExperimentalEnum.cs (82%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{StabilityAnnotations => }/ExperimentalStruct.cs (74%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{StabilityAnnotations => }/ExperimentalStructProxy.cs (76%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/ExportedBaseClass.cs (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/ExtendsInternalInterface.cs (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/ExtendsInternalInterfaceProxy.cs (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/GiveMeStructs.cs (78%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Documented => }/Greetee.cs (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Documented => }/GreeteeProxy.cs (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/GreetingAugmenter.cs (91%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IAnonymousImplementationProvider.cs (62%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IAnonymousImplementationProviderProxy.cs (58%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IAnonymouslyImplementMe.cs (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IAnonymouslyImplementMeProxy.cs (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IAnotherPublicInterface.cs (80%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IAnotherPublicInterfaceProxy.cs (77%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IBell.cs (82%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IBellProxy.cs (82%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IBellRinger.cs (66%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IBellRingerProxy.cs (70%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IChildStruct982.cs (78%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IConcreteBellRinger.cs (65%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IConcreteBellRingerProxy.cs (68%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IConfusingToJacksonStruct.cs (68%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{StabilityAnnotations => }/IDeprecatedInterface.cs (88%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{StabilityAnnotations => }/IDeprecatedInterfaceProxy.cs (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{StabilityAnnotations => }/IDeprecatedStruct.cs (82%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IDerivedStruct.cs (91%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IDiamondInheritanceBaseLevelStruct.cs (79%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IDiamondInheritanceFirstMidLevelStruct.cs (70%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IDiamondInheritanceSecondMidLevelStruct.cs (70%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IDiamondInheritanceTopLevelStruct.cs (64%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IEraseUndefinedHashValuesOptions.cs (87%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{StabilityAnnotations => }/IExperimentalInterface.cs (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{StabilityAnnotations => }/IExperimentalInterfaceProxy.cs (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{StabilityAnnotations => }/IExperimentalStruct.cs (79%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IExtendsInternalInterface.cs (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IExtendsPrivateInterface.cs (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IExtendsPrivateInterfaceProxy.cs (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Documented => }/IGreetee.cs (89%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IImplictBaseOfBase.cs (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IInterfaceImplementedByAbstractClass.cs (80%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IInterfaceImplementedByAbstractClassProxy.cs (75%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IInterfaceThatShouldNotBeADataType.cs (77%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IInterfaceThatShouldNotBeADataTypeProxy.cs (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IInterfaceWithInternal.cs (78%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IInterfaceWithInternalProxy.cs (76%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IInterfaceWithMethods.cs (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IInterfaceWithMethodsProxy.cs (82%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IInterfaceWithOptionalMethodArguments.cs (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IInterfaceWithOptionalMethodArgumentsProxy.cs (79%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IInterfaceWithProperties.cs (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IInterfaceWithPropertiesExtension.cs (72%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IInterfaceWithPropertiesExtensionProxy.cs (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IInterfaceWithPropertiesProxy.cs (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ErasureTests => }/IJSII417Derived.cs (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ErasureTests => }/IJSII417DerivedProxy.cs (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ErasureTests => }/IJSII417PublicBaseOfBase.cs (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ErasureTests => }/IJSII417PublicBaseOfBaseProxy.cs (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ErasureTests => }/IJsii487External.cs (70%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ErasureTests => }/IJsii487External2.cs (70%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ErasureTests => }/IJsii487External2Proxy.cs (68%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ErasureTests => }/IJsii487ExternalProxy.cs (68%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ErasureTests => }/IJsii496.cs (73%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ErasureTests => }/IJsii496Proxy.cs (72%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/ILoadBalancedFargateServiceProps.cs (96%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IMutableObjectLiteral.cs (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IMutableObjectLiteralProxy.cs (78%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/INestedStruct.cs (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/INonInternalInterface.cs (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/INonInternalInterfaceProxy.cs (87%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/INullShouldBeTreatedAsUndefinedData.cs (87%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IObjectWithProperty.cs (87%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IObjectWithPropertyProxy.cs (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IOptionalMethod.cs (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IOptionalMethodProxy.cs (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IOptionalStruct.cs (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IParentStruct982.cs (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IPrivatelyImplemented.cs (80%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IPrivatelyImplementedProxy.cs (77%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IPublicInterface.cs (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IPublicInterface2.cs (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IPublicInterface2Proxy.cs (80%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IPublicInterfaceProxy.cs (80%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IReturnJsii976.cs (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IReturnJsii976Proxy.cs (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IReturnsNumber.cs (89%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IReturnsNumberProxy.cs (88%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IRootStruct.cs (82%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/ISecondLevelStruct.cs (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{StabilityAnnotations => }/IStableInterface.cs (87%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{StabilityAnnotations => }/IStableInterfaceProxy.cs (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{StabilityAnnotations => }/IStableStruct.cs (80%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IStructA.cs (93%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IStructB.cs (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IStructParameterType.cs (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IStructReturningDelegate.cs (67%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IStructReturningDelegateProxy.cs (64%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IStructWithJavaReservedWords.cs (92%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/ISupportsNiceJavaBuilderProps.cs (89%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/ITopLevelStruct.cs (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/IUnionProperties.cs (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/ImplementInternalInterface.cs (89%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/Implementation.cs (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/ImplementsInterfaceWithInternal.cs (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/ImplementsInterfaceWithInternalSubclass.cs (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/ImplementsPrivateInterface.cs (89%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/ImplictBaseOfBase.cs (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/ImplictBaseOfBaseProxy.cs (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/InbetweenClass.cs (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/InterfaceCollections.cs (58%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/InterfaceInNamespaceIncludesClasses/Foo.cs (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance/InterfaceInNamespaceOnlyInterface => InterfaceInNamespaceIncludesClasses}/Hello.cs (62%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance/InterfaceInNamespaceOnlyInterface => InterfaceInNamespaceIncludesClasses}/HelloProxy.cs (73%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance/InterfaceInNamespaceOnlyInterface => InterfaceInNamespaceIncludesClasses}/IHello.cs (75%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance/InterfaceInNamespaceIncludesClasses => InterfaceInNamespaceOnlyInterface}/Hello.cs (61%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance/InterfaceInNamespaceIncludesClasses => InterfaceInNamespaceOnlyInterface}/HelloProxy.cs (73%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance/InterfaceInNamespaceIncludesClasses => InterfaceInNamespaceOnlyInterface}/IHello.cs (75%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/InterfacesMaker.cs (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ErasureTests => }/JSII417Derived.cs (87%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ErasureTests => }/JSII417PublicBaseOfBase.cs (78%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/JSObjectLiteralForInterface.cs (92%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/JSObjectLiteralToNative.cs (75%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/JSObjectLiteralToNativeClass.cs (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/JavaReservedWords.cs (98%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ErasureTests => }/Jsii487Derived.cs (80%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{ErasureTests => }/Jsii496Derived.cs (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/JsiiAgent_.cs (89%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/JsonFormatter.cs (79%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/LoadBalancedFargateServiceProps.cs (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/LoadBalancedFargateServicePropsProxy.cs (94%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/NestedStruct.cs (80%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/NestedStructProxy.cs (82%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/NodeStandardLibrary.cs (94%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/NullShouldBeTreatedAsUndefined.cs (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/NullShouldBeTreatedAsUndefinedData.cs (82%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/NullShouldBeTreatedAsUndefinedDataProxy.cs (82%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/NumberGenerator.cs (91%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/ObjectRefsInCollections.cs (94%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/ObjectWithPropertyProvider.cs (72%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Documented => }/Old.cs (91%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/OptionalArgumentInvoker.cs (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/OptionalConstructorArgument.cs (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/OptionalStruct.cs (78%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/OptionalStructConsumer.cs (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/OptionalStructProxy.cs (80%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/OverridableProtectedMember.cs (94%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/OverrideReturnsObject.cs (80%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/ParentStruct982.cs (79%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/ParentStruct982Proxy.cs (80%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/PartiallyInitializedThisConsumer.cs (72%) create mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PartiallyInitializedThisConsumerProxy.cs rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/Polymorphism.cs (91%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/PublicClass.cs (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/PythonReservedWords.cs (98%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/ReferenceEnumFromScopedPackage.cs (93%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/ReturnsPrivateImplementationOfInterface.cs (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/RootStruct.cs (78%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/RootStructProxy.cs (78%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/RootStructValidator.cs (75%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/RuntimeTypeChecking.cs (94%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/SecondLevelStruct.cs (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/SecondLevelStructProxy.cs (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/SingleInstanceTwoTypes.cs (75%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/SingletonInt.cs (91%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/SingletonIntEnum.cs (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/SingletonString.cs (91%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/SingletonStringEnum.cs (82%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/SomeTypeJsii976.cs (75%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{StabilityAnnotations => }/StableClass.cs (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{StabilityAnnotations => }/StableEnum.cs (82%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{StabilityAnnotations => }/StableStruct.cs (75%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{StabilityAnnotations => }/StableStructProxy.cs (77%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/StaticContext.cs (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/Statics.cs (82%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/StringEnum.cs (87%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/StripInternal.cs (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/StructA.cs (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/StructAProxy.cs (91%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/StructB.cs (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/StructBProxy.cs (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/StructParameterType.cs (87%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/StructParameterTypeProxy.cs (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/StructPassing.cs (60%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/StructUnionConsumer.cs (72%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/StructWithJavaReservedWords.cs (88%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/StructWithJavaReservedWordsProxy.cs (88%) create mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/IStructure.cs create mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/Structure.cs create mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/StructureProxy.cs create mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/DeeplyNested/INamespaced.cs create mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/DeeplyNested/INamespacedProxy.cs create mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/Namespaced.cs rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/SupportsNiceJavaBuilder.cs (68%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/SupportsNiceJavaBuilderProps.cs (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/SupportsNiceJavaBuilderPropsProxy.cs (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/SupportsNiceJavaBuilderWithRequiredProps.cs (80%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/SyncVirtualMethods.cs (97%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/Thrower.cs (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/TopLevelStruct.cs (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/TopLevelStructProxy.cs (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/UnionProperties.cs (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/UnionPropertiesProxy.cs (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/UseBundledDependency.cs (89%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/UseCalcBase.cs (91%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/UsesInterfaceWithProperties.cs (75%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/VariadicInvoker.cs (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/VariadicMethod.cs (87%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/VirtualMethodPlayground.cs (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/VoidCallback.cs (93%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/VoidCallbackProxy.cs (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{Compliance => }/WithPrivatePropertyInConstructor.cs (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/AbstractClass.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/AbstractClassBase.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/AbstractClassReturner.java (72%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/AllTypes.java (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/AllTypesEnum.java (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/AllowedMethodNames.java (96%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/AmbiguousParameters.java (75%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/AnonymousImplementationProvider.java (75%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/AsyncVirtualMethods.java (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/AugmentableClass.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/BaseJsii976.java (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/Bell.java (89%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/ChildStruct982.java (94%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/ClassThatImplementsTheInternalInterface.java (94%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/ClassThatImplementsThePrivateInterface.java (94%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/ClassWithCollections.java (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/ClassWithDocs.java (88%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/ClassWithJavaReservedWords.java (93%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/ClassWithMutableObjectLiteralProperty.java (78%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/ClassWithPrivateConstructorAndAutomaticProperties.java (70%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/ConfusingToJackson.java (76%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/ConfusingToJacksonStruct.java (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/ConstructorPassesThisOut.java (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/Constructors.java (58%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/ConsumePureInterface.java (80%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/ConsumerCanRingBell.java (77%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/ConsumersOfThisCrazyTypeSystem.java (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/DataRenderer.java (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/DefaultedConstructorArgument.java (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/Demonstrate982.java (74%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{stability_annotations => }/DeprecatedClass.java (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{stability_annotations => }/DeprecatedEnum.java (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{stability_annotations => }/DeprecatedStruct.java (94%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/DerivedStruct.java (93%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/DiamondInheritanceBaseLevelStruct.java (94%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/DiamondInheritanceFirstMidLevelStruct.java (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/DiamondInheritanceSecondMidLevelStruct.java (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/DiamondInheritanceTopLevelStruct.java (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/DisappointingCollectionSource.java (70%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/DoNotOverridePrivates.java (93%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/DoNotRecognizeAnyAsOptional.java (94%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{documented => }/DocumentedClass.java (92%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/DontComplainAboutVariadicAfterOptional.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/DoubleTrouble.java (91%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/EnumDispenser.java (63%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/EraseUndefinedHashValues.java (71%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/EraseUndefinedHashValuesOptions.java (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{stability_annotations => }/ExperimentalClass.java (94%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{stability_annotations => }/ExperimentalEnum.java (77%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{stability_annotations => }/ExperimentalStruct.java (94%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/ExportedBaseClass.java (91%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/ExtendsInternalInterface.java (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/GiveMeStructs.java (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{documented => }/Greetee.java (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/GreetingAugmenter.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/IAnonymousImplementationProvider.java (72%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/IAnonymouslyImplementMe.java (87%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/IAnotherPublicInterface.java (87%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/IBell.java (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/IBellRinger.java (80%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/IConcreteBellRinger.java (80%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{stability_annotations => }/IDeprecatedInterface.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{stability_annotations => }/IExperimentalInterface.java (89%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/IExtendsPrivateInterface.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/IInterfaceImplementedByAbstractClass.java (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/IInterfaceThatShouldNotBeADataType.java (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/IInterfaceWithInternal.java (82%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/IInterfaceWithMethods.java (87%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/IInterfaceWithOptionalMethodArguments.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/IInterfaceWithProperties.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/IInterfaceWithPropertiesExtension.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{erasure_tests => }/IJSII417Derived.java (88%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{erasure_tests => }/IJSII417PublicBaseOfBase.java (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{erasure_tests => }/IJsii487External.java (74%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{erasure_tests => }/IJsii487External2.java (74%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{erasure_tests => }/IJsii496.java (75%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/IMutableObjectLiteral.java (87%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/INonInternalInterface.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/IObjectWithProperty.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/IOptionalMethod.java (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/IPrivatelyImplemented.java (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/IPublicInterface.java (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/IPublicInterface2.java (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/IReturnJsii976.java (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/IReturnsNumber.java (89%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{stability_annotations => }/IStableInterface.java (89%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/IStructReturningDelegate.java (75%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/ImplementInternalInterface.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/Implementation.java (88%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/ImplementsInterfaceWithInternal.java (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/ImplementsInterfaceWithInternalSubclass.java (77%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/ImplementsPrivateInterface.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/ImplictBaseOfBase.java (96%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/InbetweenClass.java (80%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/InterfaceCollections.java (59%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/InterfacesMaker.java (73%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{erasure_tests => }/JSII417Derived.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{erasure_tests => }/JSII417PublicBaseOfBase.java (79%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/JSObjectLiteralForInterface.java (91%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/JSObjectLiteralToNative.java (78%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/JSObjectLiteralToNativeClass.java (93%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/JavaReservedWords.java (99%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{erasure_tests => }/Jsii487Derived.java (71%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{erasure_tests => }/Jsii496Derived.java (77%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/JsiiAgent.java (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/JsonFormatter.java (73%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/LoadBalancedFargateServiceProps.java (98%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/NestedStruct.java (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/NodeStandardLibrary.java (94%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/NullShouldBeTreatedAsUndefined.java (93%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/NullShouldBeTreatedAsUndefinedData.java (96%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/NumberGenerator.java (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/ObjectRefsInCollections.java (93%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/ObjectWithPropertyProvider.java (69%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{documented => }/Old.java (89%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/OptionalArgumentInvoker.java (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/OptionalConstructorArgument.java (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/OptionalStruct.java (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/OptionalStructConsumer.java (80%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/OverridableProtectedMember.java (94%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/OverrideReturnsObject.java (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/ParentStruct982.java (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/PartiallyInitializedThisConsumer.java (75%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/Polymorphism.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/PublicClass.java (88%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/PythonReservedWords.java (98%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/ReferenceEnumFromScopedPackage.java (94%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/ReturnsPrivateImplementationOfInterface.java (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/RootStruct.java (88%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/RootStructValidator.java (68%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/RuntimeTypeChecking.java (97%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/SecondLevelStruct.java (96%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/SingleInstanceTwoTypes.java (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/SingletonInt.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/SingletonIntEnum.java (77%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/SingletonString.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/SingletonStringEnum.java (77%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/SomeTypeJsii976.java (73%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{stability_annotations => }/StableClass.java (94%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{stability_annotations => }/StableEnum.java (75%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{stability_annotations => }/StableStruct.java (94%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/StaticContext.java (75%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/Statics.java (74%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/StringEnum.java (83%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/StripInternal.java (91%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/StructA.java (97%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/StructB.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/StructParameterType.java (96%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/StructPassing.java (58%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/StructUnionConsumer.java (72%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/StructWithJavaReservedWords.java (97%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/SupportsNiceJavaBuilder.java (84%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/SupportsNiceJavaBuilderProps.java (96%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/SupportsNiceJavaBuilderWithRequiredProps.java (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/SyncVirtualMethods.java (98%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/Thrower.java (88%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/TopLevelStruct.java (96%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/UnionProperties.java (96%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/UseBundledDependency.java (88%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/UseCalcBase.java (90%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/UsesInterfaceWithProperties.java (85%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/VariadicInvoker.java (88%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/VariadicMethod.java (94%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/VirtualMethodPlayground.java (95%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/VoidCallback.java (93%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/WithPrivatePropertyInConstructor.java (92%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/derived_class_has_no_properties/Base.java (87%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/derived_class_has_no_properties/Derived.java (75%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance => }/interface_in_namespace_includes_classes/Foo.java (86%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance/interface_in_namespace_only_interface => interface_in_namespace_includes_classes}/Hello.java (93%) rename packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/{compliance/interface_in_namespace_includes_classes => interface_in_namespace_only_interface}/Hello.java (93%) create mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/Structure.java create mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/nested_submodule/Namespaced.java create mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/nested_submodule/deeply_nested/INamespaced.java delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/compliance/__init__.py rename packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/{compliance => }/derived_class_has_no_properties/__init__.py (66%) delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/documented/__init__.py delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/erasure_tests/__init__.py rename packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/{compliance => }/interface_in_namespace_includes_classes/__init__.py (81%) rename packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/{compliance => }/interface_in_namespace_only_interface/__init__.py (88%) delete mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/stability_annotations/__init__.py create mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/__init__.py create mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/child/__init__.py create mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/__init__.py create mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/deeply_nested/__init__.py diff --git a/packages/@jsii/dotnet-runtime-test/test/Amazon.JSII.Runtime.IntegrationTests/ComplianceTests.cs b/packages/@jsii/dotnet-runtime-test/test/Amazon.JSII.Runtime.IntegrationTests/ComplianceTests.cs index c7afb7f5e5..49d8f1fbc2 100644 --- a/packages/@jsii/dotnet-runtime-test/test/Amazon.JSII.Runtime.IntegrationTests/ComplianceTests.cs +++ b/packages/@jsii/dotnet-runtime-test/test/Amazon.JSII.Runtime.IntegrationTests/ComplianceTests.cs @@ -3,8 +3,7 @@ using System.Linq; using Amazon.JSII.Runtime.Deputy; using Amazon.JSII.Tests.CalculatorNamespace; -using Amazon.JSII.Tests.CalculatorNamespace.Compliance; -using CompositeOperation = Amazon.JSII.Tests.CalculatorNamespace.Composition.CompositeOperation; +using CompositeOperation = Amazon.JSII.Tests.CalculatorNamespace.composition.CompositeOperation; using Amazon.JSII.Tests.CalculatorNamespace.LibNamespace; using Newtonsoft.Json.Linq; using Xunit; diff --git a/packages/@jsii/java-runtime-test/project/src/test/java/software/amazon/jsii/testing/ComplianceTest.java b/packages/@jsii/java-runtime-test/project/src/test/java/software/amazon/jsii/testing/ComplianceTest.java index 611a6e619b..9ff756864c 100644 --- a/packages/@jsii/java-runtime-test/project/src/test/java/software/amazon/jsii/testing/ComplianceTest.java +++ b/packages/@jsii/java-runtime-test/project/src/test/java/software/amazon/jsii/testing/ComplianceTest.java @@ -7,12 +7,13 @@ import software.amazon.jsii.JsiiEngine; import software.amazon.jsii.JsiiException; import software.amazon.jsii.tests.calculator.*; -import software.amazon.jsii.tests.calculator.compliance.*; -import software.amazon.jsii.tests.calculator.composition.*; -import software.amazon.jsii.tests.calculator.lib.*; -// Removes ambiguity with java.lang.Number +import software.amazon.jsii.tests.calculator.composition.CompositeOperation; +import software.amazon.jsii.tests.calculator.lib.EnumFromScopedModule; +import software.amazon.jsii.tests.calculator.lib.IFriendly; +import software.amazon.jsii.tests.calculator.lib.MyFirstStruct; import software.amazon.jsii.tests.calculator.lib.Number; -import software.amazon.jsii.tests.calculator.stability_annotations.*; +import software.amazon.jsii.tests.calculator.lib.StructWithOnlyOptionals; +import software.amazon.jsii.tests.calculator.lib.Value; import java.io.IOException; import java.time.Instant; diff --git a/packages/@jsii/java-runtime-test/project/src/test/java/software/amazon/jsii/testing/JsiiClientTest.java b/packages/@jsii/java-runtime-test/project/src/test/java/software/amazon/jsii/testing/JsiiClientTest.java index cf5b0ee691..00bbad3ea4 100644 --- a/packages/@jsii/java-runtime-test/project/src/test/java/software/amazon/jsii/testing/JsiiClientTest.java +++ b/packages/@jsii/java-runtime-test/project/src/test/java/software/amazon/jsii/testing/JsiiClientTest.java @@ -79,7 +79,7 @@ public void initialTest() { @Test public void asyncMethods() { - JsiiObjectRef obj = client.createObject("jsii-calc.compliance.AsyncVirtualMethods", Arrays.asList(), Arrays.asList(), Arrays.asList()); + JsiiObjectRef obj = client.createObject("jsii-calc.AsyncVirtualMethods", Arrays.asList(), Arrays.asList(), Arrays.asList()); // begin will return a promise JsiiPromise promise = client.beginAsyncMethod(obj, "callMe", toSandboxArray()); @@ -99,7 +99,7 @@ private Collection methodOverride(final String methodName, final S @Test public void asyncMethodOverrides() { - JsiiObjectRef obj = client.createObject("jsii-calc.compliance.AsyncVirtualMethods", Arrays.asList(), methodOverride("overrideMe", "myCookie"), Arrays.asList()); + JsiiObjectRef obj = client.createObject("jsii-calc.AsyncVirtualMethods", Arrays.asList(), methodOverride("overrideMe", "myCookie"), Arrays.asList()); // begin will return a promise JsiiPromise promise = client.beginAsyncMethod(obj, "callMe", toSandboxArray()); @@ -128,7 +128,7 @@ public void asyncMethodOverrides() { @Test public void asyncMethodOverridesThrow() { - JsiiObjectRef obj = client.createObject("jsii-calc.compliance.AsyncVirtualMethods", Arrays.asList(), methodOverride("overrideMe", "myCookie"), Arrays.asList()); + JsiiObjectRef obj = client.createObject("jsii-calc.AsyncVirtualMethods", Arrays.asList(), methodOverride("overrideMe", "myCookie"), Arrays.asList()); // begin will return a promise JsiiPromise promise = client.beginAsyncMethod(obj, "callMe", toSandboxArray()); @@ -163,7 +163,7 @@ public void asyncMethodOverridesThrow() { @Test public void syncVirtualMethods() { - JsiiObjectRef obj = client.createObject("jsii-calc.compliance.SyncVirtualMethods", Arrays.asList(), methodOverride("virtualMethod","myCookie"), Arrays.asList()); + JsiiObjectRef obj = client.createObject("jsii-calc.SyncVirtualMethods", Arrays.asList(), methodOverride("virtualMethod","myCookie"), Arrays.asList()); jsiiRuntime.setCallbackHandler(callback -> { assertEquals(obj.getObjId(), JsiiObjectRef.parse(callback.getInvoke().getObjref()).getObjId()); @@ -197,7 +197,7 @@ public void syncVirtualMethods() { @Test public void staticProperties() { - final String fqn = "jsii-calc.compliance.Statics"; + final String fqn = "jsii-calc.Statics"; assertEquals("hello", client.getStaticPropertyValue(fqn, "Foo").textValue()); JsonNode defaultInstance = client.getStaticPropertyValue(fqn, "instance"); @@ -212,7 +212,7 @@ public void staticProperties() { @Test public void staticMethods() { - final String fqn = "jsii-calc.compliance.Statics"; + final String fqn = "jsii-calc.Statics"; JsonNode result = client.callStaticMethod(fqn, "staticMethod", JSON.arrayNode().add("Foo")); assertEquals("hello ,Foo!", result.textValue()); } diff --git a/packages/@jsii/python-runtime/tests/test_compliance.py b/packages/@jsii/python-runtime/tests/test_compliance.py index db01979ed5..e09ee4d9bb 100644 --- a/packages/@jsii/python-runtime/tests/test_compliance.py +++ b/packages/@jsii/python-runtime/tests/test_compliance.py @@ -9,24 +9,15 @@ from json import loads from jsii_calc import ( + AbstractClassReturner, AbstractSuite, Add, - Calculator, - IFriendlier, - IFriendlyRandomGenerator, - IRandomNumberGenerator, - Multiply, - Negate, - Power, - Sum, -) -from jsii_calc.compliance import ( - AbstractClassReturner, AllTypes, AllTypesEnum, AmbiguousParameters, AsyncVirtualMethods, Bell, + Calculator, ClassWithPrivateConstructorAndAutomaticProperties, ConfusingToJackson, ConsumerCanRingBell, @@ -40,6 +31,9 @@ GreetingAugmenter, IBellRinger, IConcreteBellRinger, + IFriendlier, + IFriendlyRandomGenerator, + IRandomNumberGenerator, InterfaceCollections, IInterfaceWithProperties, IStructReturningDelegate, @@ -47,18 +41,23 @@ JSObjectLiteralForInterface, JSObjectLiteralToNative, JsonFormatter, + Multiply, + Negate, NodeStandardLibrary, NullShouldBeTreatedAsUndefined, NumberGenerator, ObjectWithPropertyProvider, PartiallyInitializedThisConsumer, Polymorphism, + Power, PythonReservedWords, ReferenceEnumFromScopedPackage, ReturnsPrivateImplementationOfInterface, Statics, + Sum, SyncVirtualMethods, UsesInterfaceWithProperties, + composition, EraseUndefinedHashValues, EraseUndefinedHashValuesOptions, VariadicMethod, @@ -71,10 +70,7 @@ StructUnionConsumer, SomeTypeJsii976, StructParameterType, - AnonymousImplementationProvider, -) -from jsii_calc.composition import ( - CompositeOperation + AnonymousImplementationProvider ) from scope.jsii_calc_lib import IFriendly, EnumFromScopedModule, Number @@ -373,6 +369,8 @@ def test_getAndSetEnumValues(): calc.add(9) calc.pow(3) + CompositeOperation = composition.CompositeOperation + assert calc.string_style == CompositeOperation.CompositionStringStyle.NORMAL calc.string_style = CompositeOperation.CompositionStringStyle.DECORATED @@ -1048,7 +1046,7 @@ def test_return_subclass_that_implements_interface_976_raises_attributeerror_whe failed = False except AttributeError as err: failed = True - assert err.args[0] == "'+' object has no attribute 'not_a_real_method_I_swear'" + assert err.args[0] == "'+' object has no attribute 'not_a_real_method_I_swear'" assert failed def test_return_anonymous_implementation_of_interface(): diff --git a/packages/@jsii/python-runtime/tests/test_python.py b/packages/@jsii/python-runtime/tests/test_python.py index 965a6e18c6..d4778f6774 100644 --- a/packages/@jsii/python-runtime/tests/test_python.py +++ b/packages/@jsii/python-runtime/tests/test_python.py @@ -17,7 +17,7 @@ def test_jsii_error(self): def test_inheritance_maintained(self): """Check that for JSII struct types we can get the inheritance tree in some way.""" # inspect.getmro() won't work because of TypedDict, but we add another annotation - bases = find_struct_bases(jsii_calc.compliance.DerivedStruct) + bases = find_struct_bases(jsii_calc.DerivedStruct) base_names = [b.__name__ for b in bases] @@ -43,4 +43,4 @@ def recurse(s): recurse(base) recurse(x) - return ret + return ret \ No newline at end of file diff --git a/packages/@jsii/ruby-runtime/project/test/jsii_runtime_test.rb b/packages/@jsii/ruby-runtime/project/test/jsii_runtime_test.rb index 38757ada1b..b0aabf8710 100644 --- a/packages/@jsii/ruby-runtime/project/test/jsii_runtime_test.rb +++ b/packages/@jsii/ruby-runtime/project/test/jsii_runtime_test.rb @@ -39,13 +39,13 @@ def test_api @client.del(objref: calc) assert_raise(Aws::Jsii::JsiiError) { @client.get(objref: calc, property: 'curr') } - assert_equal({ 'value' => 'hello' }, @client.sget(fqn: 'jsii-calc.compliance.Statics', property: 'Foo')) - assert_equal({ 'result' => 'hello ,Foo!' }, @client.sinvoke(fqn: 'jsii-calc.compliance.Statics', method: 'staticMethod', args: ['Foo'])) + assert_equal({ 'value' => 'hello' }, @client.sget(fqn: 'jsii-calc.Statics', property: 'Foo')) + assert_equal({ 'result' => 'hello ,Foo!' }, @client.sinvoke(fqn: 'jsii-calc.Statics', method: 'staticMethod', args: ['Foo'])) end def test_async_callbacks objref = @client.create( - fqn: 'jsii-calc.compliance.AsyncVirtualMethods', + fqn: 'jsii-calc.AsyncVirtualMethods', overrides: [{ method: 'overrideMe', cookie: 'myCookie' }] ) @@ -67,7 +67,7 @@ def test_async_callbacks def test_overrides objref = @client.create( - fqn: 'jsii-calc.compliance.SyncVirtualMethods', + fqn: 'jsii-calc.SyncVirtualMethods', overrides: [{ method: 'virtualMethod', cookie: 'myCookie' }] ) @@ -92,7 +92,7 @@ def test_overrides def test_overrides_error objref = @client.create( - fqn: 'jsii-calc.compliance.SyncVirtualMethods', + fqn: 'jsii-calc.SyncVirtualMethods', overrides: [{ method: 'virtualMethod', cookie: 'myCookie' }] ) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/.jsii b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/.jsii index 1b2c7ca3cd..9e62f807b4 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/.jsii +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/.jsii @@ -159,6 +159,177 @@ } }, "types": { + "jsii-calc.AbstractClass": { + "abstract": true, + "assembly": "jsii-calc", + "base": "jsii-calc.AbstractClassBase", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.AbstractClass", + "initializer": {}, + "interfaces": [ + "jsii-calc.IInterfaceImplementedByAbstractClass" + ], + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1100 + }, + "methods": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1105 + }, + "name": "abstractMethod", + "parameters": [ + { + "name": "name", + "type": { + "primitive": "string" + } + } + ], + "returns": { + "type": { + "primitive": "string" + } + } + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1101 + }, + "name": "nonAbstractMethod", + "returns": { + "type": { + "primitive": "number" + } + } + } + ], + "name": "AbstractClass", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1107 + }, + "name": "propFromInterface", + "overrides": "jsii-calc.IInterfaceImplementedByAbstractClass", + "type": { + "primitive": "string" + } + } + ] + }, + "jsii-calc.AbstractClassBase": { + "abstract": true, + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.AbstractClassBase", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1096 + }, + "name": "AbstractClassBase", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1097 + }, + "name": "abstractProperty", + "type": { + "primitive": "string" + } + } + ] + }, + "jsii-calc.AbstractClassReturner": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.AbstractClassReturner", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1122 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1123 + }, + "name": "giveMeAbstract", + "returns": { + "type": { + "fqn": "jsii-calc.AbstractClass" + } + } + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1127 + }, + "name": "giveMeInterface", + "returns": { + "type": { + "fqn": "jsii-calc.IInterfaceImplementedByAbstractClass" + } + } + } + ], + "name": "AbstractClassReturner", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1131 + }, + "name": "returnAbstractFromProperty", + "type": { + "fqn": "jsii-calc.AbstractClassBase" + } + } + ] + }, "jsii-calc.AbstractSuite": { "abstract": true, "assembly": "jsii-calc", @@ -324,279 +495,226 @@ } ] }, - "jsii-calc.BinaryOperation": { - "abstract": true, + "jsii-calc.AllTypes": { "assembly": "jsii-calc", - "base": "@scope/jsii-calc-lib.Operation", "docs": { + "remarks": "The setters will validate\nthat the value set is of the expected type and throw otherwise.", "stability": "experimental", - "summary": "Represents an operation with two operands." - }, - "fqn": "jsii-calc.BinaryOperation", - "initializer": { - "docs": { - "stability": "experimental", - "summary": "Creates a BinaryOperation." - }, - "parameters": [ - { - "docs": { - "summary": "Left-hand side operand." - }, - "name": "lhs", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - }, - { - "docs": { - "summary": "Right-hand side operand." - }, - "name": "rhs", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - } - ] + "summary": "This class includes property for all types supported by jsii." }, - "interfaces": [ - "@scope/jsii-calc-lib.IFriendly" - ], + "fqn": "jsii-calc.AllTypes", + "initializer": {}, "kind": "class", "locationInModule": { - "filename": "lib/calculator.ts", - "line": 37 + "filename": "lib/compliance.ts", + "line": 52 }, "methods": [ { "docs": { - "stability": "experimental", - "summary": "Say hello!" + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 47 + "filename": "lib/compliance.ts", + "line": 220 }, - "name": "hello", - "overrides": "@scope/jsii-calc-lib.IFriendly", - "returns": { - "type": { - "primitive": "string" + "name": "anyIn", + "parameters": [ + { + "name": "inp", + "type": { + "primitive": "any" + } } - } - } - ], - "name": "BinaryOperation", - "properties": [ + ] + }, { "docs": { - "stability": "experimental", - "summary": "Left-hand side operand." + "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 43 + "filename": "lib/compliance.ts", + "line": 212 }, - "name": "lhs", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" + "name": "anyOut", + "returns": { + "type": { + "primitive": "any" + } } }, { "docs": { - "stability": "experimental", - "summary": "Right-hand side operand." + "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 43 + "filename": "lib/compliance.ts", + "line": 207 }, - "name": "rhs", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - } - ] - }, - "jsii-calc.Calculator": { - "assembly": "jsii-calc", - "base": "jsii-calc.composition.CompositeOperation", - "docs": { - "example": "const calculator = new calc.Calculator();\ncalculator.add(5);\ncalculator.mul(3);\nconsole.log(calculator.expression.value);", - "remarks": "Here's how you use it:\n\n```ts\nconst calculator = new calc.Calculator();\ncalculator.add(5);\ncalculator.mul(3);\nconsole.log(calculator.expression.value);\n```\n\nI will repeat this example again, but in an @example tag.", - "stability": "experimental", - "summary": "A calculator which maintains a current value and allows adding operations." - }, - "fqn": "jsii-calc.Calculator", - "initializer": { - "docs": { - "stability": "experimental", - "summary": "Creates a Calculator object." - }, - "parameters": [ - { - "docs": { - "summary": "Initialization properties." - }, - "name": "props", - "optional": true, + "name": "enumMethod", + "parameters": [ + { + "name": "value", + "type": { + "fqn": "jsii-calc.StringEnum" + } + } + ], + "returns": { "type": { - "fqn": "jsii-calc.CalculatorProps" + "fqn": "jsii-calc.StringEnum" } } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 273 - }, - "methods": [ + } + ], + "name": "AllTypes", + "properties": [ { "docs": { - "stability": "experimental", - "summary": "Adds a number to the current value." + "stability": "experimental" }, + "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 312 + "filename": "lib/compliance.ts", + "line": 203 }, - "name": "add", - "parameters": [ - { - "name": "value", - "type": { - "primitive": "number" - } + "name": "enumPropertyValue", + "type": { + "primitive": "number" + } + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 167 + }, + "name": "anyArrayProperty", + "type": { + "collection": { + "elementtype": { + "primitive": "any" + }, + "kind": "array" } - ] + } }, { "docs": { - "stability": "experimental", - "summary": "Multiplies the current value by a number." + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 319 + "filename": "lib/compliance.ts", + "line": 168 }, - "name": "mul", - "parameters": [ - { - "name": "value", - "type": { - "primitive": "number" - } + "name": "anyMapProperty", + "type": { + "collection": { + "elementtype": { + "primitive": "any" + }, + "kind": "map" } - ] + } }, { "docs": { - "stability": "experimental", - "summary": "Negates the current value." + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 333 + "filename": "lib/compliance.ts", + "line": 166 }, - "name": "neg" + "name": "anyProperty", + "type": { + "primitive": "any" + } }, { "docs": { - "stability": "experimental", - "summary": "Raises the current value by a power." + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 326 + "filename": "lib/compliance.ts", + "line": 152 }, - "name": "pow", - "parameters": [ - { - "name": "value", - "type": { - "primitive": "number" - } + "name": "arrayProperty", + "type": { + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "array" } - ] + } }, { "docs": { - "stability": "experimental", - "summary": "Returns teh value of the union property (if defined)." + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 352 + "filename": "lib/compliance.ts", + "line": 58 }, - "name": "readUnionValue", - "returns": { - "type": { - "primitive": "number" - } + "name": "booleanProperty", + "type": { + "primitive": "boolean" } - } - ], - "name": "Calculator", - "properties": [ + }, { "docs": { - "stability": "experimental", - "summary": "Returns the expression." + "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 340 + "filename": "lib/compliance.ts", + "line": 104 }, - "name": "expression", - "overrides": "jsii-calc.composition.CompositeOperation", + "name": "dateProperty", "type": { - "fqn": "@scope/jsii-calc-lib.Value" + "primitive": "date" } }, { "docs": { - "stability": "experimental", - "summary": "A log of all operations." + "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 302 + "filename": "lib/compliance.ts", + "line": 187 }, - "name": "operationsLog", + "name": "enumProperty", "type": { - "collection": { - "elementtype": { - "fqn": "@scope/jsii-calc-lib.Value" - }, - "kind": "array" - } + "fqn": "jsii-calc.AllTypesEnum" } }, { "docs": { - "stability": "experimental", - "summary": "A map of per operation name of all operations performed." + "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 297 + "filename": "lib/compliance.ts", + "line": 121 }, - "name": "operationsMap", + "name": "jsonProperty", + "type": { + "primitive": "json" + } + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 137 + }, + "name": "mapProperty", "type": { "collection": { "elementtype": { - "collection": { - "elementtype": { - "fqn": "@scope/jsii-calc-lib.Value" - }, - "kind": "array" - } + "fqn": "@scope/jsii-calc-lib.Number" }, "kind": "map" } @@ -604,232 +722,224 @@ }, { "docs": { - "stability": "experimental", - "summary": "The current value." + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 292 + "filename": "lib/compliance.ts", + "line": 89 }, - "name": "curr", + "name": "numberProperty", "type": { - "fqn": "@scope/jsii-calc-lib.Value" + "primitive": "number" } }, { "docs": { - "stability": "experimental", - "summary": "The maximum value allows in this calculator." + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 307 + "filename": "lib/compliance.ts", + "line": 73 }, - "name": "maxValue", - "optional": true, + "name": "stringProperty", "type": { - "primitive": "number" + "primitive": "string" } }, { "docs": { - "stability": "experimental", - "summary": "Example of a property that accepts a union of types." + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 347 + "filename": "lib/compliance.ts", + "line": 179 }, - "name": "unionProperty", - "optional": true, + "name": "unionArrayProperty", "type": { - "union": { - "types": [ - { - "fqn": "jsii-calc.Add" + "collection": { + "elementtype": { + "union": { + "types": [ + { + "primitive": "number" + }, + { + "fqn": "@scope/jsii-calc-lib.Value" + } + ] + } + }, + "kind": "array" + } + } + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 180 + }, + "name": "unionMapProperty", + "type": { + "collection": { + "elementtype": { + "union": { + "types": [ + { + "primitive": "string" + }, + { + "primitive": "number" + }, + { + "fqn": "@scope/jsii-calc-lib.Number" + } + ] + } + }, + "kind": "map" + } + } + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 178 + }, + "name": "unionProperty", + "type": { + "union": { + "types": [ + { + "primitive": "string" + }, + { + "primitive": "number" }, { "fqn": "jsii-calc.Multiply" }, { - "fqn": "jsii-calc.Power" + "fqn": "@scope/jsii-calc-lib.Number" } ] } } - } - ] - }, - "jsii-calc.CalculatorProps": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental", - "summary": "Properties for Calculator." - }, - "fqn": "jsii-calc.CalculatorProps", - "kind": "interface", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 234 - }, - "name": "CalculatorProps", - "properties": [ + }, { - "abstract": true, "docs": { - "default": "0", - "remarks": "NOTE: Any number works here, it's fine.", - "stability": "experimental", - "summary": "The initial value of the calculator." + "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 242 + "filename": "lib/compliance.ts", + "line": 173 }, - "name": "initialValue", - "optional": true, + "name": "unknownArrayProperty", "type": { - "primitive": "number" + "collection": { + "elementtype": { + "primitive": "any" + }, + "kind": "array" + } } }, { - "abstract": true, "docs": { - "default": "none", - "stability": "experimental", - "summary": "The maximum value the calculator can store." + "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 249 + "filename": "lib/compliance.ts", + "line": 174 }, - "name": "maximumValue", - "optional": true, + "name": "unknownMapProperty", "type": { - "primitive": "number" + "collection": { + "elementtype": { + "primitive": "any" + }, + "kind": "map" + } } - } - ] - }, - "jsii-calc.IFriendlier": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Even friendlier classes can implement this interface." - }, - "fqn": "jsii-calc.IFriendlier", - "interfaces": [ - "@scope/jsii-calc-lib.IFriendly" - ], - "kind": "interface", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 6 - }, - "methods": [ + }, { - "abstract": true, "docs": { - "stability": "experimental", - "summary": "Say farewell." + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 16 + "filename": "lib/compliance.ts", + "line": 172 }, - "name": "farewell", - "returns": { - "type": { - "primitive": "string" - } + "name": "unknownProperty", + "type": { + "primitive": "any" } }, { - "abstract": true, "docs": { - "returns": "A goodbye blessing.", - "stability": "experimental", - "summary": "Say goodbye." + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 11 + "filename": "lib/compliance.ts", + "line": 184 }, - "name": "goodbye", - "returns": { - "type": { - "primitive": "string" - } + "name": "optionalEnumValue", + "optional": true, + "type": { + "fqn": "jsii-calc.StringEnum" } } - ], - "name": "IFriendlier" + ] }, - "jsii-calc.IFriendlyRandomGenerator": { + "jsii-calc.AllTypesEnum": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.IFriendlyRandomGenerator", - "interfaces": [ - "jsii-calc.IRandomNumberGenerator", - "@scope/jsii-calc-lib.IFriendly" - ], - "kind": "interface", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 30 - }, - "name": "IFriendlyRandomGenerator" - }, - "jsii-calc.IRandomNumberGenerator": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Generates random numbers." - }, - "fqn": "jsii-calc.IRandomNumberGenerator", - "kind": "interface", + "fqn": "jsii-calc.AllTypesEnum", + "kind": "enum", "locationInModule": { - "filename": "lib/calculator.ts", + "filename": "lib/compliance.ts", "line": 22 }, - "methods": [ + "members": [ { - "abstract": true, "docs": { - "returns": "A random number.", - "stability": "experimental", - "summary": "Returns another random number." + "stability": "experimental" }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 27 + "name": "MY_ENUM_VALUE" + }, + { + "docs": { + "stability": "experimental" }, - "name": "next", - "returns": { - "type": { - "primitive": "number" - } - } + "name": "YOUR_ENUM_VALUE" + }, + { + "docs": { + "stability": "experimental" + }, + "name": "THIS_IS_GREAT" } ], - "name": "IRandomNumberGenerator" + "name": "AllTypesEnum" }, - "jsii-calc.MethodNamedProperty": { + "jsii-calc.AllowedMethodNames": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.MethodNamedProperty", + "fqn": "jsii-calc.AllowedMethodNames", "initializer": {}, "kind": "class", "locationInModule": { - "filename": "lib/calculator.ts", - "line": 386 + "filename": "lib/compliance.ts", + "line": 606 }, "methods": [ { @@ -837,124 +947,243 @@ "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 387 + "filename": "lib/compliance.ts", + "line": 615 }, - "name": "property", - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "MethodNamedProperty", - "properties": [ - { + "name": "getBar", + "parameters": [ + { + "name": "_p1", + "type": { + "primitive": "string" + } + }, + { + "name": "_p2", + "type": { + "primitive": "number" + } + } + ] + }, + { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "getXxx() is not allowed (see negatives), but getXxx(a, ...) is okay." }, - "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 391 + "filename": "lib/compliance.ts", + "line": 611 }, - "name": "elite", - "type": { - "primitive": "number" + "name": "getFoo", + "parameters": [ + { + "name": "withParam", + "type": { + "primitive": "string" + } + } + ], + "returns": { + "type": { + "primitive": "string" + } } + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 626 + }, + "name": "setBar", + "parameters": [ + { + "name": "_x", + "type": { + "primitive": "string" + } + }, + { + "name": "_y", + "type": { + "primitive": "number" + } + }, + { + "name": "_z", + "type": { + "primitive": "boolean" + } + } + ] + }, + { + "docs": { + "stability": "experimental", + "summary": "setFoo(x) is not allowed (see negatives), but setXxx(a, b, ...) is okay." + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 622 + }, + "name": "setFoo", + "parameters": [ + { + "name": "_x", + "type": { + "primitive": "string" + } + }, + { + "name": "_y", + "type": { + "primitive": "number" + } + } + ] } - ] + ], + "name": "AllowedMethodNames" }, - "jsii-calc.Multiply": { + "jsii-calc.AmbiguousParameters": { "assembly": "jsii-calc", - "base": "jsii-calc.BinaryOperation", "docs": { - "stability": "experimental", - "summary": "The \"*\" binary operation." + "stability": "experimental" }, - "fqn": "jsii-calc.Multiply", + "fqn": "jsii-calc.AmbiguousParameters", "initializer": { "docs": { - "stability": "experimental", - "summary": "Creates a BinaryOperation." + "stability": "experimental" }, "parameters": [ { - "docs": { - "summary": "Left-hand side operand." - }, - "name": "lhs", + "name": "scope", "type": { - "fqn": "@scope/jsii-calc-lib.Value" + "fqn": "jsii-calc.Bell" } }, { - "docs": { - "summary": "Right-hand side operand." - }, - "name": "rhs", + "name": "props", "type": { - "fqn": "@scope/jsii-calc-lib.Value" + "fqn": "jsii-calc.StructParameterType" } } ] }, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2425 + }, + "name": "AmbiguousParameters", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2426 + }, + "name": "props", + "type": { + "fqn": "jsii-calc.StructParameterType" + } + }, + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2426 + }, + "name": "scope", + "type": { + "fqn": "jsii-calc.Bell" + } + } + ] + }, + "jsii-calc.AnonymousImplementationProvider": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.AnonymousImplementationProvider", + "initializer": {}, "interfaces": [ - "jsii-calc.IFriendlier", - "jsii-calc.IRandomNumberGenerator" + "jsii-calc.IAnonymousImplementationProvider" ], "kind": "class", "locationInModule": { - "filename": "lib/calculator.ts", - "line": 68 + "filename": "lib/compliance.ts", + "line": 1976 }, "methods": [ { "docs": { - "stability": "experimental", - "summary": "Say farewell." + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 81 + "filename": "lib/compliance.ts", + "line": 1979 }, - "name": "farewell", - "overrides": "jsii-calc.IFriendlier", + "name": "provideAsClass", + "overrides": "jsii-calc.IAnonymousImplementationProvider", "returns": { "type": { - "primitive": "string" + "fqn": "jsii-calc.Implementation" } } }, { "docs": { - "stability": "experimental", - "summary": "Say goodbye." + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 77 + "filename": "lib/compliance.ts", + "line": 1983 }, - "name": "goodbye", - "overrides": "jsii-calc.IFriendlier", + "name": "provideAsInterface", + "overrides": "jsii-calc.IAnonymousImplementationProvider", "returns": { "type": { - "primitive": "string" + "fqn": "jsii-calc.IAnonymouslyImplementMe" } } - }, + } + ], + "name": "AnonymousImplementationProvider" + }, + "jsii-calc.AsyncVirtualMethods": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.AsyncVirtualMethods", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 321 + }, + "methods": [ { + "async": true, "docs": { - "stability": "experimental", - "summary": "Returns another random number." + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 85 + "filename": "lib/compliance.ts", + "line": 322 }, - "name": "next", - "overrides": "jsii-calc.IRandomNumberGenerator", + "name": "callMe", "returns": { "type": { "primitive": "number" @@ -962,231 +1191,268 @@ } }, { + "async": true, "docs": { "stability": "experimental", - "summary": "String representation of the value." + "summary": "Just calls \"overrideMeToo\"." }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 73 + "filename": "lib/compliance.ts", + "line": 337 }, - "name": "toString", - "overrides": "@scope/jsii-calc-lib.Operation", + "name": "callMe2", "returns": { "type": { - "primitive": "string" + "primitive": "number" } } - } - ], - "name": "Multiply", - "properties": [ + }, { + "async": true, "docs": { + "remarks": "This is a \"double promise\" situation, which\nmeans that callbacks are not going to be available immediate, but only\nafter an \"immediates\" cycle.", "stability": "experimental", - "summary": "The value." + "summary": "This method calls the \"callMe\" async method indirectly, which will then invoke a virtual method." }, - "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 69 + "filename": "lib/compliance.ts", + "line": 347 }, - "name": "value", - "overrides": "@scope/jsii-calc-lib.Value", - "type": { - "primitive": "number" + "name": "callMeDoublePromise", + "returns": { + "type": { + "primitive": "number" + } } - } - ] - }, - "jsii-calc.Negate": { - "assembly": "jsii-calc", - "base": "jsii-calc.UnaryOperation", - "docs": { - "stability": "experimental", - "summary": "The negation operation (\"-value\")." - }, - "fqn": "jsii-calc.Negate", - "initializer": { - "docs": { - "stability": "experimental" }, - "parameters": [ - { - "name": "operand", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - } - ] - }, - "interfaces": [ - "jsii-calc.IFriendlier" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 102 - }, - "methods": [ { "docs": { - "stability": "experimental", - "summary": "Say farewell." + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 119 + "filename": "lib/compliance.ts", + "line": 355 }, - "name": "farewell", - "overrides": "jsii-calc.IFriendlier", + "name": "dontOverrideMe", "returns": { "type": { - "primitive": "string" + "primitive": "number" } } }, { + "async": true, "docs": { - "stability": "experimental", - "summary": "Say goodbye." + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 115 + "filename": "lib/compliance.ts", + "line": 326 }, - "name": "goodbye", - "overrides": "jsii-calc.IFriendlier", + "name": "overrideMe", + "parameters": [ + { + "name": "mult", + "type": { + "primitive": "number" + } + } + ], "returns": { "type": { - "primitive": "string" + "primitive": "number" } } }, { + "async": true, "docs": { - "stability": "experimental", - "summary": "Say hello!" + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 111 + "filename": "lib/compliance.ts", + "line": 330 }, - "name": "hello", - "overrides": "@scope/jsii-calc-lib.IFriendly", + "name": "overrideMeToo", "returns": { "type": { - "primitive": "string" + "primitive": "number" } } + } + ], + "name": "AsyncVirtualMethods" + }, + "jsii-calc.AugmentableClass": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.AugmentableClass", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1354 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1355 + }, + "name": "methodOne" }, { "docs": { - "stability": "experimental", - "summary": "String representation of the value." + "stability": "experimental" }, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 107 + "filename": "lib/compliance.ts", + "line": 1361 }, - "name": "toString", - "overrides": "@scope/jsii-calc-lib.Operation", - "returns": { - "type": { - "primitive": "string" - } - } + "name": "methodTwo" } ], - "name": "Negate", + "name": "AugmentableClass" + }, + "jsii-calc.BaseJsii976": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.BaseJsii976", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2219 + }, + "name": "BaseJsii976" + }, + "jsii-calc.Bell": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.Bell", + "initializer": {}, + "interfaces": [ + "jsii-calc.IBell" + ], + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2163 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2166 + }, + "name": "ring", + "overrides": "jsii-calc.IBell" + } + ], + "name": "Bell", "properties": [ { "docs": { - "stability": "experimental", - "summary": "The value." + "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/calculator.ts", - "line": 103 + "filename": "lib/compliance.ts", + "line": 2164 }, - "name": "value", - "overrides": "@scope/jsii-calc-lib.Value", + "name": "rung", "type": { - "primitive": "number" + "primitive": "boolean" } } ] }, - "jsii-calc.Power": { + "jsii-calc.BinaryOperation": { + "abstract": true, "assembly": "jsii-calc", - "base": "jsii-calc.composition.CompositeOperation", + "base": "@scope/jsii-calc-lib.Operation", "docs": { "stability": "experimental", - "summary": "The power operation." + "summary": "Represents an operation with two operands." }, - "fqn": "jsii-calc.Power", + "fqn": "jsii-calc.BinaryOperation", "initializer": { "docs": { "stability": "experimental", - "summary": "Creates a Power operation." + "summary": "Creates a BinaryOperation." }, "parameters": [ { "docs": { - "summary": "The base of the power." + "summary": "Left-hand side operand." }, - "name": "base", + "name": "lhs", "type": { "fqn": "@scope/jsii-calc-lib.Value" } }, { "docs": { - "summary": "The number of times to multiply." + "summary": "Right-hand side operand." }, - "name": "pow", + "name": "rhs", "type": { "fqn": "@scope/jsii-calc-lib.Value" } } ] }, + "interfaces": [ + "@scope/jsii-calc-lib.IFriendly" + ], "kind": "class", "locationInModule": { "filename": "lib/calculator.ts", - "line": 211 + "line": 37 }, - "name": "Power", - "properties": [ + "methods": [ { "docs": { "stability": "experimental", - "summary": "The base of the power." + "summary": "Say hello!" }, - "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 218 + "line": 47 }, - "name": "base", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" + "name": "hello", + "overrides": "@scope/jsii-calc-lib.IFriendly", + "returns": { + "type": { + "primitive": "string" + } } - }, + } + ], + "name": "BinaryOperation", + "properties": [ { "docs": { - "remarks": "Must be implemented by derived classes.", "stability": "experimental", - "summary": "The expression that this operation consists of." + "summary": "Left-hand side operand." }, "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 222 + "line": 43 }, - "name": "expression", - "overrides": "jsii-calc.composition.CompositeOperation", + "name": "lhs", "type": { "fqn": "@scope/jsii-calc-lib.Value" } @@ -1194,141 +1460,150 @@ { "docs": { "stability": "experimental", - "summary": "The number of times to multiply." + "summary": "Right-hand side operand." }, "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 218 + "line": 43 }, - "name": "pow", + "name": "rhs", "type": { "fqn": "@scope/jsii-calc-lib.Value" } } ] }, - "jsii-calc.PropertyNamedProperty": { + "jsii-calc.Calculator": { "assembly": "jsii-calc", + "base": "jsii-calc.composition.CompositeOperation", "docs": { + "example": "const calculator = new calc.Calculator();\ncalculator.add(5);\ncalculator.mul(3);\nconsole.log(calculator.expression.value);", + "remarks": "Here's how you use it:\n\n```ts\nconst calculator = new calc.Calculator();\ncalculator.add(5);\ncalculator.mul(3);\nconsole.log(calculator.expression.value);\n```\n\nI will repeat this example again, but in an @example tag.", "stability": "experimental", - "summary": "Reproduction for https://github.com/aws/jsii/issues/1113 Where a method or property named \"property\" would result in impossible to load Python code." + "summary": "A calculator which maintains a current value and allows adding operations." + }, + "fqn": "jsii-calc.Calculator", + "initializer": { + "docs": { + "stability": "experimental", + "summary": "Creates a Calculator object." + }, + "parameters": [ + { + "docs": { + "summary": "Initialization properties." + }, + "name": "props", + "optional": true, + "type": { + "fqn": "jsii-calc.CalculatorProps" + } + } + ] }, - "fqn": "jsii-calc.PropertyNamedProperty", - "initializer": {}, "kind": "class", "locationInModule": { "filename": "lib/calculator.ts", - "line": 382 + "line": 273 }, - "name": "PropertyNamedProperty", - "properties": [ + "methods": [ { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Adds a number to the current value." }, - "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 383 + "line": 312 }, - "name": "property", - "type": { - "primitive": "string" - } + "name": "add", + "parameters": [ + { + "name": "value", + "type": { + "primitive": "number" + } + } + ] }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Multiplies the current value by a number." }, - "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 384 + "line": 319 }, - "name": "yetAnoterOne", - "type": { - "primitive": "boolean" - } - } - ] - }, - "jsii-calc.SmellyStruct": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.SmellyStruct", - "kind": "interface", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 393 - }, - "name": "SmellyStruct", - "properties": [ + "name": "mul", + "parameters": [ + { + "name": "value", + "type": { + "primitive": "number" + } + } + ] + }, { - "abstract": true, "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Negates the current value." }, - "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 394 + "line": 333 }, - "name": "property", - "type": { - "primitive": "string" - } + "name": "neg" }, { - "abstract": true, "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Raises the current value by a power." }, - "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 395 + "line": 326 }, - "name": "yetAnoterOne", - "type": { - "primitive": "boolean" + "name": "pow", + "parameters": [ + { + "name": "value", + "type": { + "primitive": "number" + } + } + ] + }, + { + "docs": { + "stability": "experimental", + "summary": "Returns teh value of the union property (if defined)." + }, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 352 + }, + "name": "readUnionValue", + "returns": { + "type": { + "primitive": "number" + } } } - ] - }, - "jsii-calc.Sum": { - "assembly": "jsii-calc", - "base": "jsii-calc.composition.CompositeOperation", - "docs": { - "stability": "experimental", - "summary": "An operation that sums multiple values." - }, - "fqn": "jsii-calc.Sum", - "initializer": { - "docs": { - "stability": "experimental" - } - }, - "kind": "class", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 186 - }, - "name": "Sum", + ], + "name": "Calculator", "properties": [ { "docs": { - "remarks": "Must be implemented by derived classes.", "stability": "experimental", - "summary": "The expression that this operation consists of." + "summary": "Returns the expression." }, "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 199 + "line": 340 }, "name": "expression", "overrides": "jsii-calc.composition.CompositeOperation", @@ -1339,13 +1614,14 @@ { "docs": { "stability": "experimental", - "summary": "The parts to sum." + "summary": "A log of all operations." }, + "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 191 + "line": 302 }, - "name": "parts", + "name": "operationsLog", "type": { "collection": { "elementtype": { @@ -1354,315 +1630,207 @@ "kind": "array" } } - } - ] - }, - "jsii-calc.UnaryOperation": { - "abstract": true, - "assembly": "jsii-calc", - "base": "@scope/jsii-calc-lib.Operation", - "docs": { - "stability": "experimental", - "summary": "An operation on a single operand." - }, - "fqn": "jsii-calc.UnaryOperation", - "initializer": { - "docs": { - "stability": "experimental" }, - "parameters": [ - { - "name": "operand", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 93 - }, - "name": "UnaryOperation", - "properties": [ { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "A map of per operation name of all operations performed." }, "immutable": true, "locationInModule": { "filename": "lib/calculator.ts", - "line": 94 + "line": 297 }, - "name": "operand", + "name": "operationsMap", "type": { - "fqn": "@scope/jsii-calc-lib.Value" + "collection": { + "elementtype": { + "collection": { + "elementtype": { + "fqn": "@scope/jsii-calc-lib.Value" + }, + "kind": "array" + } + }, + "kind": "map" + } } - } - ] - }, - "jsii-calc.compliance.AbstractClass": { - "abstract": true, - "assembly": "jsii-calc", - "base": "jsii-calc.compliance.AbstractClassBase", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.compliance.AbstractClass", - "initializer": {}, - "interfaces": [ - "jsii-calc.compliance.IInterfaceImplementedByAbstractClass" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1100 - }, - "methods": [ + }, { - "abstract": true, "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "The current value." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1105 + "filename": "lib/calculator.ts", + "line": 292 }, - "name": "abstractMethod", - "parameters": [ - { - "name": "name", - "type": { - "primitive": "string" - } - } - ], - "returns": { - "type": { - "primitive": "string" - } + "name": "curr", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" } }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "The maximum value allows in this calculator." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1101 + "filename": "lib/calculator.ts", + "line": 307 }, - "name": "nonAbstractMethod", - "returns": { - "type": { - "primitive": "number" - } + "name": "maxValue", + "optional": true, + "type": { + "primitive": "number" } - } - ], - "name": "AbstractClass", - "namespace": "compliance", - "properties": [ + }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Example of a property that accepts a union of types." }, - "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1107 + "filename": "lib/calculator.ts", + "line": 347 }, - "name": "propFromInterface", - "overrides": "jsii-calc.compliance.IInterfaceImplementedByAbstractClass", - "type": { - "primitive": "string" + "name": "unionProperty", + "optional": true, + "type": { + "union": { + "types": [ + { + "fqn": "jsii-calc.Add" + }, + { + "fqn": "jsii-calc.Multiply" + }, + { + "fqn": "jsii-calc.Power" + } + ] + } } } ] }, - "jsii-calc.compliance.AbstractClassBase": { - "abstract": true, + "jsii-calc.CalculatorProps": { "assembly": "jsii-calc", + "datatype": true, "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Properties for Calculator." }, - "fqn": "jsii-calc.compliance.AbstractClassBase", - "initializer": {}, - "kind": "class", + "fqn": "jsii-calc.CalculatorProps", + "kind": "interface", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1096 + "filename": "lib/calculator.ts", + "line": 234 }, - "name": "AbstractClassBase", - "namespace": "compliance", + "name": "CalculatorProps", "properties": [ { "abstract": true, "docs": { - "stability": "experimental" + "default": "0", + "remarks": "NOTE: Any number works here, it's fine.", + "stability": "experimental", + "summary": "The initial value of the calculator." }, "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1097 + "filename": "lib/calculator.ts", + "line": 242 }, - "name": "abstractProperty", + "name": "initialValue", + "optional": true, "type": { - "primitive": "string" + "primitive": "number" + } + }, + { + "abstract": true, + "docs": { + "default": "none", + "stability": "experimental", + "summary": "The maximum value the calculator can store." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 249 + }, + "name": "maximumValue", + "optional": true, + "type": { + "primitive": "number" } } ] }, - "jsii-calc.compliance.AbstractClassReturner": { + "jsii-calc.ChildStruct982": { "assembly": "jsii-calc", + "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.AbstractClassReturner", - "initializer": {}, - "kind": "class", + "fqn": "jsii-calc.ChildStruct982", + "interfaces": [ + "jsii-calc.ParentStruct982" + ], + "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1122 + "line": 2244 }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1123 - }, - "name": "giveMeAbstract", - "returns": { - "type": { - "fqn": "jsii-calc.compliance.AbstractClass" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1127 - }, - "name": "giveMeInterface", - "returns": { - "type": { - "fqn": "jsii-calc.compliance.IInterfaceImplementedByAbstractClass" - } - } - } - ], - "name": "AbstractClassReturner", - "namespace": "compliance", + "name": "ChildStruct982", "properties": [ { + "abstract": true, "docs": { "stability": "experimental" }, "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1131 + "line": 2245 }, - "name": "returnAbstractFromProperty", + "name": "bar", "type": { - "fqn": "jsii-calc.compliance.AbstractClassBase" + "primitive": "number" } } ] }, - "jsii-calc.compliance.AllTypes": { + "jsii-calc.ClassThatImplementsTheInternalInterface": { "assembly": "jsii-calc", "docs": { - "remarks": "The setters will validate\nthat the value set is of the expected type and throw otherwise.", - "stability": "experimental", - "summary": "This class includes property for all types supported by jsii." + "stability": "experimental" }, - "fqn": "jsii-calc.compliance.AllTypes", + "fqn": "jsii-calc.ClassThatImplementsTheInternalInterface", "initializer": {}, + "interfaces": [ + "jsii-calc.INonInternalInterface" + ], "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 52 + "line": 1596 }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 220 - }, - "name": "anyIn", - "parameters": [ - { - "name": "inp", - "type": { - "primitive": "any" - } - } - ] - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 212 - }, - "name": "anyOut", - "returns": { - "type": { - "primitive": "any" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 207 - }, - "name": "enumMethod", - "parameters": [ - { - "name": "value", - "type": { - "fqn": "jsii-calc.compliance.StringEnum" - } - } - ], - "returns": { - "type": { - "fqn": "jsii-calc.compliance.StringEnum" - } - } - } - ], - "name": "AllTypes", - "namespace": "compliance", + "name": "ClassThatImplementsTheInternalInterface", "properties": [ { "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 203 + "line": 1597 }, - "name": "enumPropertyValue", + "name": "a", + "overrides": "jsii-calc.IAnotherPublicInterface", "type": { - "primitive": "number" + "primitive": "string" } }, { @@ -1671,16 +1839,12 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 167 + "line": 1598 }, - "name": "anyArrayProperty", + "name": "b", + "overrides": "jsii-calc.INonInternalInterface", "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "array" - } + "primitive": "string" } }, { @@ -1689,16 +1853,12 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 168 + "line": 1599 }, - "name": "anyMapProperty", + "name": "c", + "overrides": "jsii-calc.INonInternalInterface", "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "map" - } + "primitive": "string" } }, { @@ -1707,29 +1867,44 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 166 + "line": 1600 }, - "name": "anyProperty", + "name": "d", "type": { - "primitive": "any" + "primitive": "string" } - }, + } + ] + }, + "jsii-calc.ClassThatImplementsThePrivateInterface": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.ClassThatImplementsThePrivateInterface", + "initializer": {}, + "interfaces": [ + "jsii-calc.INonInternalInterface" + ], + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1603 + }, + "name": "ClassThatImplementsThePrivateInterface", + "properties": [ { "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 152 + "line": 1604 }, - "name": "arrayProperty", + "name": "a", + "overrides": "jsii-calc.IAnotherPublicInterface", "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" - } + "primitive": "string" } }, { @@ -1738,11 +1913,12 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 58 + "line": 1605 }, - "name": "booleanProperty", + "name": "b", + "overrides": "jsii-calc.INonInternalInterface", "type": { - "primitive": "boolean" + "primitive": "string" } }, { @@ -1751,11 +1927,12 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 104 + "line": 1606 }, - "name": "dateProperty", + "name": "c", + "overrides": "jsii-calc.INonInternalInterface", "type": { - "primitive": "date" + "primitive": "string" } }, { @@ -1764,56 +1941,76 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 187 + "line": 1607 }, - "name": "enumProperty", + "name": "e", "type": { - "fqn": "jsii-calc.compliance.AllTypesEnum" + "primitive": "string" } + } + ] + }, + "jsii-calc.ClassWithCollections": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.ClassWithCollections", + "initializer": { + "docs": { + "stability": "experimental" }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 121 + "parameters": [ + { + "name": "map", + "type": { + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "map" + } + } }, - "name": "jsonProperty", - "type": { - "primitive": "json" + { + "name": "array", + "type": { + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "array" + } + } } - }, + ] + }, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1883 + }, + "methods": [ { "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 137 + "line": 1895 }, - "name": "mapProperty", - "type": { - "collection": { - "elementtype": { - "fqn": "@scope/jsii-calc-lib.Number" - }, - "kind": "map" + "name": "createAList", + "returns": { + "type": { + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "array" + } } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 89 }, - "name": "numberProperty", - "type": { - "primitive": "number" - } + "static": true }, { "docs": { @@ -1821,35 +2018,38 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 73 + "line": 1899 }, - "name": "stringProperty", - "type": { - "primitive": "string" - } - }, + "name": "createAMap", + "returns": { + "type": { + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "map" + } + } + }, + "static": true + } + ], + "name": "ClassWithCollections", + "properties": [ { "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 179 + "line": 1888 }, - "name": "unionArrayProperty", + "name": "staticArray", + "static": true, "type": { "collection": { "elementtype": { - "union": { - "types": [ - { - "primitive": "number" - }, - { - "fqn": "@scope/jsii-calc-lib.Value" - } - ] - } + "primitive": "string" }, "kind": "array" } @@ -1861,25 +2061,14 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 180 + "line": 1887 }, - "name": "unionMapProperty", + "name": "staticMap", + "static": true, "type": { "collection": { "elementtype": { - "union": { - "types": [ - { - "primitive": "string" - }, - { - "primitive": "number" - }, - { - "fqn": "@scope/jsii-calc-lib.Number" - } - ] - } + "primitive": "string" }, "kind": "map" } @@ -1891,41 +2080,13 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 178 - }, - "name": "unionProperty", - "type": { - "union": { - "types": [ - { - "primitive": "string" - }, - { - "primitive": "number" - }, - { - "fqn": "jsii-calc.Multiply" - }, - { - "fqn": "@scope/jsii-calc-lib.Number" - } - ] - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 173 + "line": 1885 }, - "name": "unknownArrayProperty", + "name": "array", "type": { "collection": { "elementtype": { - "primitive": "any" + "primitive": "string" }, "kind": "array" } @@ -1937,92 +2098,151 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 174 + "line": 1884 }, - "name": "unknownMapProperty", + "name": "map", "type": { "collection": { "elementtype": { - "primitive": "any" + "primitive": "string" }, "kind": "map" } } + } + ] + }, + "jsii-calc.ClassWithDocs": { + "assembly": "jsii-calc", + "docs": { + "custom": { + "customAttribute": "hasAValue" + }, + "example": "function anExample() {\n}", + "remarks": "The docs are great. They're a bunch of tags.", + "see": "https://aws.amazon.com/", + "stability": "stable", + "summary": "This class has docs." + }, + "fqn": "jsii-calc.ClassWithDocs", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1669 + }, + "name": "ClassWithDocs" + }, + "jsii-calc.ClassWithJavaReservedWords": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.ClassWithJavaReservedWords", + "initializer": { + "docs": { + "stability": "experimental" }, + "parameters": [ + { + "name": "int", + "type": { + "primitive": "string" + } + } + ] + }, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1836 + }, + "methods": [ { "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 172 + "line": 1843 }, - "name": "unknownProperty", - "type": { - "primitive": "any" + "name": "import", + "parameters": [ + { + "name": "assert", + "type": { + "primitive": "string" + } + } + ], + "returns": { + "type": { + "primitive": "string" + } } - }, + } + ], + "name": "ClassWithJavaReservedWords", + "properties": [ { "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 184 + "line": 1837 }, - "name": "optionalEnumValue", - "optional": true, + "name": "int", "type": { - "fqn": "jsii-calc.compliance.StringEnum" + "primitive": "string" } } ] }, - "jsii-calc.compliance.AllTypesEnum": { + "jsii-calc.ClassWithMutableObjectLiteralProperty": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.AllTypesEnum", - "kind": "enum", + "fqn": "jsii-calc.ClassWithMutableObjectLiteralProperty", + "initializer": {}, + "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 22 + "line": 1142 }, - "members": [ - { - "docs": { - "stability": "experimental" - }, - "name": "MY_ENUM_VALUE" - }, + "name": "ClassWithMutableObjectLiteralProperty", + "properties": [ { "docs": { "stability": "experimental" }, - "name": "YOUR_ENUM_VALUE" - }, - { - "docs": { - "stability": "experimental" + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1143 }, - "name": "THIS_IS_GREAT" + "name": "mutableObject", + "type": { + "fqn": "jsii-calc.IMutableObjectLiteral" + } } - ], - "name": "AllTypesEnum", - "namespace": "compliance" + ] }, - "jsii-calc.compliance.AllowedMethodNames": { + "jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties": { "assembly": "jsii-calc", "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Class that implements interface properties automatically, but using a private constructor." }, - "fqn": "jsii-calc.compliance.AllowedMethodNames", - "initializer": {}, + "fqn": "jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties", + "interfaces": [ + "jsii-calc.IInterfaceWithProperties" + ], "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 606 + "line": 1169 }, "methods": [ { @@ -2031,37 +2251,18 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 615 + "line": 1170 }, - "name": "getBar", + "name": "create", "parameters": [ { - "name": "_p1", + "name": "readOnlyString", "type": { "primitive": "string" } }, { - "name": "_p2", - "type": { - "primitive": "number" - } - } - ] - }, - { - "docs": { - "stability": "experimental", - "summary": "getXxx() is not allowed (see negatives), but getXxx(a, ...) is okay." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 611 - }, - "name": "getFoo", - "parameters": [ - { - "name": "withParam", + "name": "readWriteString", "type": { "primitive": "string" } @@ -2069,101 +2270,13 @@ ], "returns": { "type": { - "primitive": "string" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 626 - }, - "name": "setBar", - "parameters": [ - { - "name": "_x", - "type": { - "primitive": "string" - } - }, - { - "name": "_y", - "type": { - "primitive": "number" - } - }, - { - "name": "_z", - "type": { - "primitive": "boolean" - } + "fqn": "jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties" } - ] - }, - { - "docs": { - "stability": "experimental", - "summary": "setFoo(x) is not allowed (see negatives), but setXxx(a, b, ...) is okay." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 622 }, - "name": "setFoo", - "parameters": [ - { - "name": "_x", - "type": { - "primitive": "string" - } - }, - { - "name": "_y", - "type": { - "primitive": "number" - } - } - ] + "static": true } ], - "name": "AllowedMethodNames", - "namespace": "compliance" - }, - "jsii-calc.compliance.AmbiguousParameters": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.compliance.AmbiguousParameters", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "scope", - "type": { - "fqn": "jsii-calc.compliance.Bell" - } - }, - { - "name": "props", - "type": { - "fqn": "jsii-calc.compliance.StructParameterType" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2425 - }, - "name": "AmbiguousParameters", - "namespace": "compliance", + "name": "ClassWithPrivateConstructorAndAutomaticProperties", "properties": [ { "docs": { @@ -2172,43 +2285,42 @@ "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2426 + "line": 1174 }, - "name": "props", + "name": "readOnlyString", + "overrides": "jsii-calc.IInterfaceWithProperties", "type": { - "fqn": "jsii-calc.compliance.StructParameterType" + "primitive": "string" } }, { "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2426 + "line": 1174 }, - "name": "scope", + "name": "readWriteString", + "overrides": "jsii-calc.IInterfaceWithProperties", "type": { - "fqn": "jsii-calc.compliance.Bell" + "primitive": "string" } } ] }, - "jsii-calc.compliance.AnonymousImplementationProvider": { + "jsii-calc.ConfusingToJackson": { "assembly": "jsii-calc", "docs": { - "stability": "experimental" + "see": "https://github.com/aws/aws-cdk/issues/4080", + "stability": "experimental", + "summary": "This tries to confuse Jackson by having overloaded property setters." }, - "fqn": "jsii-calc.compliance.AnonymousImplementationProvider", - "initializer": {}, - "interfaces": [ - "jsii-calc.compliance.IAnonymousImplementationProvider" - ], + "fqn": "jsii-calc.ConfusingToJackson", "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1976 + "line": 2383 }, "methods": [ { @@ -2217,15 +2329,15 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1979 + "line": 2384 }, - "name": "provideAsClass", - "overrides": "jsii-calc.compliance.IAnonymousImplementationProvider", + "name": "makeInstance", "returns": { "type": { - "fqn": "jsii-calc.compliance.Implementation" + "fqn": "jsii-calc.ConfusingToJackson" } - } + }, + "static": true }, { "docs": { @@ -2233,83 +2345,167 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1983 + "line": 2388 }, - "name": "provideAsInterface", - "overrides": "jsii-calc.compliance.IAnonymousImplementationProvider", + "name": "makeStructInstance", "returns": { "type": { - "fqn": "jsii-calc.compliance.IAnonymouslyImplementMe" + "fqn": "jsii-calc.ConfusingToJacksonStruct" } - } + }, + "static": true } ], - "name": "AnonymousImplementationProvider", - "namespace": "compliance" - }, - "jsii-calc.compliance.AsyncVirtualMethods": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.compliance.AsyncVirtualMethods", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 321 - }, - "methods": [ + "name": "ConfusingToJackson", + "properties": [ { - "async": true, "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 322 + "line": 2392 }, - "name": "callMe", - "returns": { - "type": { - "primitive": "number" + "name": "unionProperty", + "optional": true, + "type": { + "union": { + "types": [ + { + "fqn": "@scope/jsii-calc-lib.IFriendly" + }, + { + "collection": { + "elementtype": { + "union": { + "types": [ + { + "fqn": "@scope/jsii-calc-lib.IFriendly" + }, + { + "fqn": "jsii-calc.AbstractClass" + } + ] + } + }, + "kind": "array" + } + } + ] } } - }, + } + ] + }, + "jsii-calc.ConfusingToJacksonStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.ConfusingToJacksonStruct", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2396 + }, + "name": "ConfusingToJacksonStruct", + "properties": [ { - "async": true, + "abstract": true, "docs": { - "stability": "experimental", - "summary": "Just calls \"overrideMeToo\"." + "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 337 + "line": 2397 }, - "name": "callMe2", - "returns": { - "type": { - "primitive": "number" + "name": "unionProperty", + "optional": true, + "type": { + "union": { + "types": [ + { + "fqn": "@scope/jsii-calc-lib.IFriendly" + }, + { + "collection": { + "elementtype": { + "union": { + "types": [ + { + "fqn": "@scope/jsii-calc-lib.IFriendly" + }, + { + "fqn": "jsii-calc.AbstractClass" + } + ] + } + }, + "kind": "array" + } + } + ] } } + } + ] + }, + "jsii-calc.ConstructorPassesThisOut": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.ConstructorPassesThisOut", + "initializer": { + "docs": { + "stability": "experimental" }, + "parameters": [ + { + "name": "consumer", + "type": { + "fqn": "jsii-calc.PartiallyInitializedThisConsumer" + } + } + ] + }, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1628 + }, + "name": "ConstructorPassesThisOut" + }, + "jsii-calc.Constructors": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.Constructors", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1393 + }, + "methods": [ { - "async": true, "docs": { - "remarks": "This is a \"double promise\" situation, which\nmeans that callbacks are not going to be available immediate, but only\nafter an \"immediates\" cycle.", - "stability": "experimental", - "summary": "This method calls the \"callMe\" async method indirectly, which will then invoke a virtual method." + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 347 + "line": 1410 }, - "name": "callMeDoublePromise", + "name": "hiddenInterface", "returns": { "type": { - "primitive": "number" + "fqn": "jsii-calc.IPublicInterface" } - } + }, + "static": true }, { "docs": { @@ -2317,81 +2513,57 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 355 + "line": 1414 }, - "name": "dontOverrideMe", + "name": "hiddenInterfaces", "returns": { "type": { - "primitive": "number" + "collection": { + "elementtype": { + "fqn": "jsii-calc.IPublicInterface" + }, + "kind": "array" + } } - } + }, + "static": true }, { - "async": true, "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 326 + "line": 1418 }, - "name": "overrideMe", - "parameters": [ - { - "name": "mult", - "type": { - "primitive": "number" - } - } - ], + "name": "hiddenSubInterfaces", "returns": { "type": { - "primitive": "number" + "collection": { + "elementtype": { + "fqn": "jsii-calc.IPublicInterface" + }, + "kind": "array" + } } - } + }, + "static": true }, { - "async": true, "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 330 + "line": 1394 }, - "name": "overrideMeToo", + "name": "makeClass", "returns": { "type": { - "primitive": "number" + "fqn": "jsii-calc.PublicClass" } - } - } - ], - "name": "AsyncVirtualMethods", - "namespace": "compliance" - }, - "jsii-calc.compliance.AugmentableClass": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.compliance.AugmentableClass", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1354 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1355 }, - "name": "methodOne" + "static": true }, { "docs": { @@ -2399,299 +2571,332 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1361 + "line": 1398 }, - "name": "methodTwo" - } - ], - "name": "AugmentableClass", - "namespace": "compliance" - }, - "jsii-calc.compliance.BaseJsii976": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.compliance.BaseJsii976", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2219 - }, - "name": "BaseJsii976", - "namespace": "compliance" - }, - "jsii-calc.compliance.Bell": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.compliance.Bell", - "initializer": {}, - "interfaces": [ - "jsii-calc.compliance.IBell" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2163 - }, - "methods": [ + "name": "makeInterface", + "returns": { + "type": { + "fqn": "jsii-calc.IPublicInterface" + } + }, + "static": true + }, { "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2166 + "line": 1402 }, - "name": "ring", - "overrides": "jsii-calc.compliance.IBell" - } - ], - "name": "Bell", - "namespace": "compliance", - "properties": [ + "name": "makeInterface2", + "returns": { + "type": { + "fqn": "jsii-calc.IPublicInterface2" + } + }, + "static": true + }, { "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2164 + "line": 1406 }, - "name": "rung", - "type": { - "primitive": "boolean" - } + "name": "makeInterfaces", + "returns": { + "type": { + "collection": { + "elementtype": { + "fqn": "jsii-calc.IPublicInterface" + }, + "kind": "array" + } + } + }, + "static": true } - ] + ], + "name": "Constructors" }, - "jsii-calc.compliance.ChildStruct982": { + "jsii-calc.ConsumePureInterface": { "assembly": "jsii-calc", - "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.ChildStruct982", - "interfaces": [ - "jsii-calc.compliance.ParentStruct982" - ], - "kind": "interface", + "fqn": "jsii-calc.ConsumePureInterface", + "initializer": { + "docs": { + "stability": "experimental" + }, + "parameters": [ + { + "name": "delegate", + "type": { + "fqn": "jsii-calc.IStructReturningDelegate" + } + } + ] + }, + "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2244 + "line": 2406 }, - "name": "ChildStruct982", - "namespace": "compliance", - "properties": [ + "methods": [ { - "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2245 + "line": 2409 }, - "name": "bar", - "type": { - "primitive": "number" + "name": "workItBaby", + "returns": { + "type": { + "fqn": "jsii-calc.StructB" + } } } - ] + ], + "name": "ConsumePureInterface" }, - "jsii-calc.compliance.ClassThatImplementsTheInternalInterface": { + "jsii-calc.ConsumerCanRingBell": { "assembly": "jsii-calc", "docs": { - "stability": "experimental" + "remarks": "Check that if a JSII consumer implements IConsumerWithInterfaceParam, they can call\nthe method on the argument that they're passed...", + "stability": "experimental", + "summary": "Test calling back to consumers that implement interfaces." }, - "fqn": "jsii-calc.compliance.ClassThatImplementsTheInternalInterface", + "fqn": "jsii-calc.ConsumerCanRingBell", "initializer": {}, - "interfaces": [ - "jsii-calc.compliance.INonInternalInterface" - ], "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1596 + "line": 2048 }, - "name": "ClassThatImplementsTheInternalInterface", - "namespace": "compliance", - "properties": [ + "methods": [ { "docs": { - "stability": "experimental" - }, + "remarks": "Returns whether the bell was rung.", + "stability": "experimental", + "summary": "...if the interface is implemented using an object literal." + }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1597 + "line": 2054 }, - "name": "a", - "overrides": "jsii-calc.compliance.IAnotherPublicInterface", - "type": { - "primitive": "string" - } + "name": "staticImplementedByObjectLiteral", + "parameters": [ + { + "name": "ringer", + "type": { + "fqn": "jsii-calc.IBellRinger" + } + } + ], + "returns": { + "type": { + "primitive": "boolean" + } + }, + "static": true }, { "docs": { - "stability": "experimental" + "remarks": "Return whether the bell was rung.", + "stability": "experimental", + "summary": "...if the interface is implemented using a private class." }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1598 + "line": 2080 }, - "name": "b", - "overrides": "jsii-calc.compliance.INonInternalInterface", - "type": { - "primitive": "string" - } + "name": "staticImplementedByPrivateClass", + "parameters": [ + { + "name": "ringer", + "type": { + "fqn": "jsii-calc.IBellRinger" + } + } + ], + "returns": { + "type": { + "primitive": "boolean" + } + }, + "static": true }, { "docs": { - "stability": "experimental" + "remarks": "Return whether the bell was rung.", + "stability": "experimental", + "summary": "...if the interface is implemented using a public class." }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1599 + "line": 2069 }, - "name": "c", - "overrides": "jsii-calc.compliance.INonInternalInterface", - "type": { - "primitive": "string" - } + "name": "staticImplementedByPublicClass", + "parameters": [ + { + "name": "ringer", + "type": { + "fqn": "jsii-calc.IBellRinger" + } + } + ], + "returns": { + "type": { + "primitive": "boolean" + } + }, + "static": true }, { "docs": { - "stability": "experimental" + "remarks": "Return whether the bell was rung.", + "stability": "experimental", + "summary": "If the parameter is a concrete class instead of an interface." }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1600 + "line": 2091 }, - "name": "d", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.compliance.ClassThatImplementsThePrivateInterface": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.compliance.ClassThatImplementsThePrivateInterface", - "initializer": {}, - "interfaces": [ - "jsii-calc.compliance.INonInternalInterface" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1603 - }, - "name": "ClassThatImplementsThePrivateInterface", - "namespace": "compliance", - "properties": [ + "name": "staticWhenTypedAsClass", + "parameters": [ + { + "name": "ringer", + "type": { + "fqn": "jsii-calc.IConcreteBellRinger" + } + } + ], + "returns": { + "type": { + "primitive": "boolean" + } + }, + "static": true + }, { "docs": { - "stability": "experimental" + "remarks": "Returns whether the bell was rung.", + "stability": "experimental", + "summary": "...if the interface is implemented using an object literal." }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1604 + "line": 2101 }, - "name": "a", - "overrides": "jsii-calc.compliance.IAnotherPublicInterface", - "type": { - "primitive": "string" + "name": "implementedByObjectLiteral", + "parameters": [ + { + "name": "ringer", + "type": { + "fqn": "jsii-calc.IBellRinger" + } + } + ], + "returns": { + "type": { + "primitive": "boolean" + } } }, { "docs": { - "stability": "experimental" + "remarks": "Return whether the bell was rung.", + "stability": "experimental", + "summary": "...if the interface is implemented using a private class." }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1605 + "line": 2127 }, - "name": "b", - "overrides": "jsii-calc.compliance.INonInternalInterface", - "type": { - "primitive": "string" + "name": "implementedByPrivateClass", + "parameters": [ + { + "name": "ringer", + "type": { + "fqn": "jsii-calc.IBellRinger" + } + } + ], + "returns": { + "type": { + "primitive": "boolean" + } } }, { "docs": { - "stability": "experimental" + "remarks": "Return whether the bell was rung.", + "stability": "experimental", + "summary": "...if the interface is implemented using a public class." }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1606 + "line": 2116 }, - "name": "c", - "overrides": "jsii-calc.compliance.INonInternalInterface", - "type": { - "primitive": "string" + "name": "implementedByPublicClass", + "parameters": [ + { + "name": "ringer", + "type": { + "fqn": "jsii-calc.IBellRinger" + } + } + ], + "returns": { + "type": { + "primitive": "boolean" + } } }, { "docs": { - "stability": "experimental" + "remarks": "Return whether the bell was rung.", + "stability": "experimental", + "summary": "If the parameter is a concrete class instead of an interface." }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1607 + "line": 2138 }, - "name": "e", - "type": { - "primitive": "string" + "name": "whenTypedAsClass", + "parameters": [ + { + "name": "ringer", + "type": { + "fqn": "jsii-calc.IConcreteBellRinger" + } + } + ], + "returns": { + "type": { + "primitive": "boolean" + } } } - ] + ], + "name": "ConsumerCanRingBell" }, - "jsii-calc.compliance.ClassWithCollections": { + "jsii-calc.ConsumersOfThisCrazyTypeSystem": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.ClassWithCollections", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "map", - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "map" - } - } - }, - { - "name": "array", - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" - } - } - } - ] - }, + "fqn": "jsii-calc.ConsumersOfThisCrazyTypeSystem", + "initializer": {}, "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1883 + "line": 1610 }, "methods": [ { @@ -2700,20 +2905,22 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1895 + "line": 1611 }, - "name": "createAList", + "name": "consumeAnotherPublicInterface", + "parameters": [ + { + "name": "obj", + "type": { + "fqn": "jsii-calc.IAnotherPublicInterface" + } + } + ], "returns": { "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" - } + "primitive": "string" } - }, - "static": true + } }, { "docs": { @@ -2721,60 +2928,65 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1899 + "line": 1615 }, - "name": "createAMap", + "name": "consumeNonInternalInterface", + "parameters": [ + { + "name": "obj", + "type": { + "fqn": "jsii-calc.INonInternalInterface" + } + } + ], "returns": { "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "map" - } + "primitive": "any" } - }, - "static": true + } } ], - "name": "ClassWithCollections", - "namespace": "compliance", - "properties": [ + "name": "ConsumersOfThisCrazyTypeSystem" + }, + "jsii-calc.DataRenderer": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Verifies proper type handling through dynamic overrides." + }, + "fqn": "jsii-calc.DataRenderer", + "initializer": { + "docs": { + "stability": "experimental" + } + }, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1766 + }, + "methods": [ { "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1888 + "line": 1769 }, - "name": "staticArray", - "static": true, - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" + "name": "render", + "parameters": [ + { + "name": "data", + "optional": true, + "type": { + "fqn": "@scope/jsii-calc-lib.MyFirstStruct" + } } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1887 - }, - "name": "staticMap", - "static": true, - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "map" + ], + "returns": { + "type": { + "primitive": "string" } } }, @@ -2784,15 +2996,25 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1885 + "line": 1773 }, - "name": "array", - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" + "name": "renderArbitrary", + "parameters": [ + { + "name": "data", + "type": { + "collection": { + "elementtype": { + "primitive": "any" + }, + "kind": "map" + } + } + } + ], + "returns": { + "type": { + "primitive": "string" } } }, @@ -2802,94 +3024,86 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1884 + "line": 1777 }, - "name": "map", - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "map" + "name": "renderMap", + "parameters": [ + { + "name": "map", + "type": { + "collection": { + "elementtype": { + "primitive": "any" + }, + "kind": "map" + } + } + } + ], + "returns": { + "type": { + "primitive": "string" } } } - ] - }, - "jsii-calc.compliance.ClassWithDocs": { - "assembly": "jsii-calc", - "docs": { - "custom": { - "customAttribute": "hasAValue" - }, - "example": "function anExample() {\n}", - "remarks": "The docs are great. They're a bunch of tags.", - "see": "https://aws.amazon.com/", - "stability": "stable", - "summary": "This class has docs." - }, - "fqn": "jsii-calc.compliance.ClassWithDocs", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1669 - }, - "name": "ClassWithDocs", - "namespace": "compliance" + ], + "name": "DataRenderer" }, - "jsii-calc.compliance.ClassWithJavaReservedWords": { + "jsii-calc.DefaultedConstructorArgument": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.ClassWithJavaReservedWords", + "fqn": "jsii-calc.DefaultedConstructorArgument", "initializer": { "docs": { "stability": "experimental" }, "parameters": [ { - "name": "int", + "name": "arg1", + "optional": true, + "type": { + "primitive": "number" + } + }, + { + "name": "arg2", + "optional": true, "type": { "primitive": "string" } + }, + { + "name": "arg3", + "optional": true, + "type": { + "primitive": "date" + } } ] }, "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1836 + "line": 302 }, - "methods": [ + "name": "DefaultedConstructorArgument", + "properties": [ { "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1843 + "line": 303 }, - "name": "import", - "parameters": [ - { - "name": "assert", - "type": { - "primitive": "string" - } - } - ], - "returns": { - "type": { - "primitive": "string" - } + "name": "arg1", + "type": { + "primitive": "number" } - } - ], - "name": "ClassWithJavaReservedWords", - "namespace": "compliance", - "properties": [ + }, { "docs": { "stability": "experimental" @@ -2897,720 +3111,675 @@ "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1837 + "line": 305 }, - "name": "int", + "name": "arg3", "type": { - "primitive": "string" + "primitive": "date" } - } - ] - }, - "jsii-calc.compliance.ClassWithMutableObjectLiteralProperty": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.compliance.ClassWithMutableObjectLiteralProperty", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1142 - }, - "name": "ClassWithMutableObjectLiteralProperty", - "namespace": "compliance", - "properties": [ + }, { "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1143 + "line": 304 }, - "name": "mutableObject", + "name": "arg2", + "optional": true, "type": { - "fqn": "jsii-calc.compliance.IMutableObjectLiteral" + "primitive": "string" } } ] }, - "jsii-calc.compliance.ClassWithPrivateConstructorAndAutomaticProperties": { + "jsii-calc.Demonstrate982": { "assembly": "jsii-calc", "docs": { + "remarks": "call #takeThis() -> An ObjectRef will be provisioned for the value (it'll be re-used!)\n2. call #takeThisToo() -> The ObjectRef from before will need to be down-cased to the ParentStruct982 type", "stability": "experimental", - "summary": "Class that implements interface properties automatically, but using a private constructor." + "summary": "1." + }, + "fqn": "jsii-calc.Demonstrate982", + "initializer": { + "docs": { + "stability": "experimental" + } }, - "fqn": "jsii-calc.compliance.ClassWithPrivateConstructorAndAutomaticProperties", - "interfaces": [ - "jsii-calc.compliance.IInterfaceWithProperties" - ], "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1169 + "line": 2251 }, "methods": [ { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "It's dangerous to go alone!" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1170 + "line": 2258 }, - "name": "create", - "parameters": [ - { - "name": "readOnlyString", - "type": { - "primitive": "string" - } - }, - { - "name": "readWriteString", - "type": { - "primitive": "string" - } - } - ], + "name": "takeThis", + "returns": { + "type": { + "fqn": "jsii-calc.ChildStruct982" + } + }, + "static": true + }, + { + "docs": { + "stability": "experimental", + "summary": "It's dangerous to go alone!" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2263 + }, + "name": "takeThisToo", "returns": { "type": { - "fqn": "jsii-calc.compliance.ClassWithPrivateConstructorAndAutomaticProperties" + "fqn": "jsii-calc.ParentStruct982" } }, "static": true } ], - "name": "ClassWithPrivateConstructorAndAutomaticProperties", - "namespace": "compliance", + "name": "Demonstrate982" + }, + "jsii-calc.DeprecatedClass": { + "assembly": "jsii-calc", + "docs": { + "deprecated": "a pretty boring class", + "stability": "deprecated" + }, + "fqn": "jsii-calc.DeprecatedClass", + "initializer": { + "docs": { + "deprecated": "this constructor is \"just\" okay", + "stability": "deprecated" + }, + "parameters": [ + { + "name": "readonlyString", + "type": { + "primitive": "string" + } + }, + { + "name": "mutableNumber", + "optional": true, + "type": { + "primitive": "number" + } + } + ] + }, + "kind": "class", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 85 + }, + "methods": [ + { + "docs": { + "deprecated": "it was a bad idea", + "stability": "deprecated" + }, + "locationInModule": { + "filename": "lib/stability.ts", + "line": 96 + }, + "name": "method" + } + ], + "name": "DeprecatedClass", "properties": [ { "docs": { - "stability": "experimental" + "deprecated": "this is not always \"wazoo\", be ready to be disappointed", + "stability": "deprecated" }, "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1174 + "filename": "lib/stability.ts", + "line": 87 }, - "name": "readOnlyString", - "overrides": "jsii-calc.compliance.IInterfaceWithProperties", + "name": "readonlyProperty", "type": { "primitive": "string" } }, { "docs": { - "stability": "experimental" + "deprecated": "shouldn't have been mutable", + "stability": "deprecated" }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1174 + "filename": "lib/stability.ts", + "line": 89 }, - "name": "readWriteString", - "overrides": "jsii-calc.compliance.IInterfaceWithProperties", + "name": "mutableProperty", + "optional": true, "type": { - "primitive": "string" + "primitive": "number" } } ] }, - "jsii-calc.compliance.ConfusingToJackson": { + "jsii-calc.DeprecatedEnum": { "assembly": "jsii-calc", "docs": { - "see": "https://github.com/aws/aws-cdk/issues/4080", - "stability": "experimental", - "summary": "This tries to confuse Jackson by having overloaded property setters." + "deprecated": "your deprecated selection of bad options", + "stability": "deprecated" }, - "fqn": "jsii-calc.compliance.ConfusingToJackson", - "kind": "class", + "fqn": "jsii-calc.DeprecatedEnum", + "kind": "enum", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2383 + "filename": "lib/stability.ts", + "line": 99 }, - "methods": [ + "members": [ { "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2384 - }, - "name": "makeInstance", - "returns": { - "type": { - "fqn": "jsii-calc.compliance.ConfusingToJackson" - } + "deprecated": "option A is not great", + "stability": "deprecated" }, - "static": true + "name": "OPTION_A" }, { "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2388 - }, - "name": "makeStructInstance", - "returns": { - "type": { - "fqn": "jsii-calc.compliance.ConfusingToJacksonStruct" - } + "deprecated": "option B is kinda bad, too", + "stability": "deprecated" }, - "static": true + "name": "OPTION_B" } ], - "name": "ConfusingToJackson", - "namespace": "compliance", + "name": "DeprecatedEnum" + }, + "jsii-calc.DeprecatedStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "deprecated": "it just wraps a string", + "stability": "deprecated" + }, + "fqn": "jsii-calc.DeprecatedStruct", + "kind": "interface", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 73 + }, + "name": "DeprecatedStruct", "properties": [ { + "abstract": true, "docs": { - "stability": "experimental" + "deprecated": "well, yeah", + "stability": "deprecated" }, + "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2392 + "filename": "lib/stability.ts", + "line": 75 }, - "name": "unionProperty", - "optional": true, + "name": "readonlyProperty", "type": { - "union": { - "types": [ - { - "fqn": "@scope/jsii-calc-lib.IFriendly" - }, - { - "collection": { - "elementtype": { - "union": { - "types": [ - { - "fqn": "jsii-calc.compliance.AbstractClass" - }, - { - "fqn": "@scope/jsii-calc-lib.IFriendly" - } - ] - } - }, - "kind": "array" - } - } - ] - } + "primitive": "string" } } ] }, - "jsii-calc.compliance.ConfusingToJacksonStruct": { + "jsii-calc.DerivedClassHasNoProperties.Base": { "assembly": "jsii-calc", - "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.ConfusingToJacksonStruct", - "kind": "interface", + "fqn": "jsii-calc.DerivedClassHasNoProperties.Base", + "initializer": {}, + "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2396 + "line": 311 }, - "name": "ConfusingToJacksonStruct", - "namespace": "compliance", + "name": "Base", + "namespace": "DerivedClassHasNoProperties", "properties": [ { - "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2397 + "line": 312 }, - "name": "unionProperty", - "optional": true, + "name": "prop", "type": { - "union": { - "types": [ - { - "fqn": "@scope/jsii-calc-lib.IFriendly" - }, - { - "collection": { - "elementtype": { - "union": { - "types": [ - { - "fqn": "jsii-calc.compliance.AbstractClass" - }, - { - "fqn": "@scope/jsii-calc-lib.IFriendly" - } - ] - } - }, - "kind": "array" - } - } - ] - } + "primitive": "string" } } ] }, - "jsii-calc.compliance.ConstructorPassesThisOut": { + "jsii-calc.DerivedClassHasNoProperties.Derived": { "assembly": "jsii-calc", + "base": "jsii-calc.DerivedClassHasNoProperties.Base", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.ConstructorPassesThisOut", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "consumer", - "type": { - "fqn": "jsii-calc.compliance.PartiallyInitializedThisConsumer" - } - } - ] - }, + "fqn": "jsii-calc.DerivedClassHasNoProperties.Derived", + "initializer": {}, "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1628 + "line": 315 }, - "name": "ConstructorPassesThisOut", - "namespace": "compliance" + "name": "Derived", + "namespace": "DerivedClassHasNoProperties" }, - "jsii-calc.compliance.Constructors": { + "jsii-calc.DerivedStruct": { "assembly": "jsii-calc", + "datatype": true, "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "A struct which derives from another struct." }, - "fqn": "jsii-calc.compliance.Constructors", - "initializer": {}, - "kind": "class", + "fqn": "jsii-calc.DerivedStruct", + "interfaces": [ + "@scope/jsii-calc-lib.MyFirstStruct" + ], + "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1393 + "line": 533 }, - "methods": [ + "name": "DerivedStruct", + "properties": [ { + "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1410 - }, - "name": "hiddenInterface", - "returns": { - "type": { - "fqn": "jsii-calc.compliance.IPublicInterface" - } + "line": 539 }, - "static": true + "name": "anotherRequired", + "type": { + "primitive": "date" + } }, { + "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1414 - }, - "name": "hiddenInterfaces", - "returns": { - "type": { - "collection": { - "elementtype": { - "fqn": "jsii-calc.compliance.IPublicInterface" - }, - "kind": "array" - } - } + "line": 538 }, - "static": true + "name": "bool", + "type": { + "primitive": "boolean" + } }, { + "abstract": true, "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "An example of a non primitive property." }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1418 - }, - "name": "hiddenSubInterfaces", - "returns": { - "type": { - "collection": { - "elementtype": { - "fqn": "jsii-calc.compliance.IPublicInterface" - }, - "kind": "array" - } - } + "line": 537 }, - "static": true + "name": "nonPrimitive", + "type": { + "fqn": "jsii-calc.DoubleTrouble" + } }, { + "abstract": true, "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "This is optional." }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1394 + "line": 545 }, - "name": "makeClass", - "returns": { - "type": { - "fqn": "jsii-calc.compliance.PublicClass" + "name": "anotherOptional", + "optional": true, + "type": { + "collection": { + "elementtype": { + "fqn": "@scope/jsii-calc-lib.Value" + }, + "kind": "map" } - }, - "static": true + } }, { + "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1398 - }, - "name": "makeInterface", - "returns": { - "type": { - "fqn": "jsii-calc.compliance.IPublicInterface" - } + "line": 541 }, - "static": true + "name": "optionalAny", + "optional": true, + "type": { + "primitive": "any" + } }, { + "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1402 + "line": 540 }, - "name": "makeInterface2", - "returns": { - "type": { - "fqn": "jsii-calc.compliance.IPublicInterface2" + "name": "optionalArray", + "optional": true, + "type": { + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "array" } - }, - "static": true - }, + } + } + ] + }, + "jsii-calc.DiamondInheritanceBaseLevelStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.DiamondInheritanceBaseLevelStruct", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1811 + }, + "name": "DiamondInheritanceBaseLevelStruct", + "properties": [ { + "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1406 - }, - "name": "makeInterfaces", - "returns": { - "type": { - "collection": { - "elementtype": { - "fqn": "jsii-calc.compliance.IPublicInterface" - }, - "kind": "array" - } - } + "line": 1812 }, - "static": true + "name": "baseLevelProperty", + "type": { + "primitive": "string" + } } - ], - "name": "Constructors", - "namespace": "compliance" + ] }, - "jsii-calc.compliance.ConsumePureInterface": { + "jsii-calc.DiamondInheritanceFirstMidLevelStruct": { "assembly": "jsii-calc", + "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.ConsumePureInterface", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "delegate", - "type": { - "fqn": "jsii-calc.compliance.IStructReturningDelegate" - } - } - ] - }, - "kind": "class", + "fqn": "jsii-calc.DiamondInheritanceFirstMidLevelStruct", + "interfaces": [ + "jsii-calc.DiamondInheritanceBaseLevelStruct" + ], + "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2406 + "line": 1815 }, - "methods": [ + "name": "DiamondInheritanceFirstMidLevelStruct", + "properties": [ { + "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2409 + "line": 1816 }, - "name": "workItBaby", - "returns": { - "type": { - "fqn": "jsii-calc.compliance.StructB" - } + "name": "firstMidLevelProperty", + "type": { + "primitive": "string" } } - ], - "name": "ConsumePureInterface", - "namespace": "compliance" + ] }, - "jsii-calc.compliance.ConsumerCanRingBell": { + "jsii-calc.DiamondInheritanceSecondMidLevelStruct": { "assembly": "jsii-calc", + "datatype": true, "docs": { - "remarks": "Check that if a JSII consumer implements IConsumerWithInterfaceParam, they can call\nthe method on the argument that they're passed...", - "stability": "experimental", - "summary": "Test calling back to consumers that implement interfaces." + "stability": "experimental" }, - "fqn": "jsii-calc.compliance.ConsumerCanRingBell", - "initializer": {}, - "kind": "class", + "fqn": "jsii-calc.DiamondInheritanceSecondMidLevelStruct", + "interfaces": [ + "jsii-calc.DiamondInheritanceBaseLevelStruct" + ], + "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2048 + "line": 1819 }, - "methods": [ + "name": "DiamondInheritanceSecondMidLevelStruct", + "properties": [ { + "abstract": true, "docs": { - "remarks": "Returns whether the bell was rung.", - "stability": "experimental", - "summary": "...if the interface is implemented using an object literal." + "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2054 - }, - "name": "staticImplementedByObjectLiteral", - "parameters": [ - { - "name": "ringer", - "type": { - "fqn": "jsii-calc.compliance.IBellRinger" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } + "line": 1820 }, - "static": true - }, + "name": "secondMidLevelProperty", + "type": { + "primitive": "string" + } + } + ] + }, + "jsii-calc.DiamondInheritanceTopLevelStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.DiamondInheritanceTopLevelStruct", + "interfaces": [ + "jsii-calc.DiamondInheritanceFirstMidLevelStruct", + "jsii-calc.DiamondInheritanceSecondMidLevelStruct" + ], + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1823 + }, + "name": "DiamondInheritanceTopLevelStruct", + "properties": [ { + "abstract": true, "docs": { - "remarks": "Return whether the bell was rung.", - "stability": "experimental", - "summary": "...if the interface is implemented using a private class." + "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2080 - }, - "name": "staticImplementedByPrivateClass", - "parameters": [ - { - "name": "ringer", - "type": { - "fqn": "jsii-calc.compliance.IBellRinger" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } + "line": 1824 }, - "static": true - }, - { - "docs": { - "remarks": "Return whether the bell was rung.", - "stability": "experimental", - "summary": "...if the interface is implemented using a public class." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2069 - }, - "name": "staticImplementedByPublicClass", - "parameters": [ - { - "name": "ringer", - "type": { - "fqn": "jsii-calc.compliance.IBellRinger" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } - }, - "static": true - }, + "name": "topLevelProperty", + "type": { + "primitive": "string" + } + } + ] + }, + "jsii-calc.DisappointingCollectionSource": { + "assembly": "jsii-calc", + "docs": { + "remarks": "This source of collections is disappointing - it'll always give you nothing :(", + "stability": "experimental", + "summary": "Verifies that null/undefined can be returned for optional collections." + }, + "fqn": "jsii-calc.DisappointingCollectionSource", + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2275 + }, + "name": "DisappointingCollectionSource", + "properties": [ { + "const": true, "docs": { - "remarks": "Return whether the bell was rung.", + "remarks": "(Nah, just a billion dollars mistake!)", "stability": "experimental", - "summary": "If the parameter is a concrete class instead of an interface." + "summary": "Some List of strings, maybe?" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2091 + "line": 2277 }, - "name": "staticWhenTypedAsClass", - "parameters": [ - { - "name": "ringer", - "type": { - "fqn": "jsii-calc.compliance.IConcreteBellRinger" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" + "name": "maybeList", + "optional": true, + "static": true, + "type": { + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "array" } - }, - "static": true + } }, { + "const": true, "docs": { - "remarks": "Returns whether the bell was rung.", + "remarks": "(Nah, just a billion dollars mistake!)", "stability": "experimental", - "summary": "...if the interface is implemented using an object literal." + "summary": "Some Map of strings to numbers, maybe?" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2101 + "line": 2279 }, - "name": "implementedByObjectLiteral", - "parameters": [ - { - "name": "ringer", - "type": { - "fqn": "jsii-calc.compliance.IBellRinger" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" + "name": "maybeMap", + "optional": true, + "static": true, + "type": { + "collection": { + "elementtype": { + "primitive": "number" + }, + "kind": "map" } } - }, + } + ] + }, + "jsii-calc.DoNotOverridePrivates": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.DoNotOverridePrivates", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1146 + }, + "methods": [ { "docs": { - "remarks": "Return whether the bell was rung.", - "stability": "experimental", - "summary": "...if the interface is implemented using a private class." + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2127 + "line": 1161 }, - "name": "implementedByPrivateClass", + "name": "changePrivatePropertyValue", "parameters": [ { - "name": "ringer", + "name": "newValue", "type": { - "fqn": "jsii-calc.compliance.IBellRinger" + "primitive": "string" } } - ], - "returns": { - "type": { - "primitive": "boolean" - } - } + ] }, { "docs": { - "remarks": "Return whether the bell was rung.", - "stability": "experimental", - "summary": "...if the interface is implemented using a public class." + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2116 + "line": 1153 }, - "name": "implementedByPublicClass", - "parameters": [ - { - "name": "ringer", - "type": { - "fqn": "jsii-calc.compliance.IBellRinger" - } - } - ], + "name": "privateMethodValue", "returns": { "type": { - "primitive": "boolean" + "primitive": "string" } } }, { "docs": { - "remarks": "Return whether the bell was rung.", - "stability": "experimental", - "summary": "If the parameter is a concrete class instead of an interface." + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2138 + "line": 1157 }, - "name": "whenTypedAsClass", - "parameters": [ - { - "name": "ringer", - "type": { - "fqn": "jsii-calc.compliance.IConcreteBellRinger" - } - } - ], + "name": "privatePropertyValue", "returns": { "type": { - "primitive": "boolean" + "primitive": "string" } } } ], - "name": "ConsumerCanRingBell", - "namespace": "compliance" + "name": "DoNotOverridePrivates" }, - "jsii-calc.compliance.ConsumersOfThisCrazyTypeSystem": { + "jsii-calc.DoNotRecognizeAnyAsOptional": { "assembly": "jsii-calc", "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "jsii#284: do not recognize \"any\" as an optional argument." }, - "fqn": "jsii-calc.compliance.ConsumersOfThisCrazyTypeSystem", + "fqn": "jsii-calc.DoNotRecognizeAnyAsOptional", "initializer": {}, "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1610 + "line": 1195 }, "methods": [ { @@ -3619,271 +3788,283 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1611 + "line": 1196 }, - "name": "consumeAnotherPublicInterface", + "name": "method", "parameters": [ { - "name": "obj", + "name": "_requiredAny", "type": { - "fqn": "jsii-calc.compliance.IAnotherPublicInterface" + "primitive": "any" } - } - ], - "returns": { - "type": { - "primitive": "string" - } - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1615 - }, - "name": "consumeNonInternalInterface", - "parameters": [ + }, { - "name": "obj", + "name": "_optionalAny", + "optional": true, "type": { - "fqn": "jsii-calc.compliance.INonInternalInterface" + "primitive": "any" + } + }, + { + "name": "_optionalString", + "optional": true, + "type": { + "primitive": "string" } } - ], - "returns": { - "type": { - "primitive": "any" - } - } + ] } ], - "name": "ConsumersOfThisCrazyTypeSystem", - "namespace": "compliance" + "name": "DoNotRecognizeAnyAsOptional" }, - "jsii-calc.compliance.DataRenderer": { + "jsii-calc.DocumentedClass": { "assembly": "jsii-calc", "docs": { - "stability": "experimental", - "summary": "Verifies proper type handling through dynamic overrides." - }, - "fqn": "jsii-calc.compliance.DataRenderer", - "initializer": { - "docs": { - "stability": "experimental" - } + "remarks": "This is the meat of the TSDoc comment. It may contain\nmultiple lines and multiple paragraphs.\n\nMultiple paragraphs are separated by an empty line.", + "stability": "stable", + "summary": "Here's the first line of the TSDoc comment." }, + "fqn": "jsii-calc.DocumentedClass", + "initializer": {}, "kind": "class", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1766 + "filename": "lib/documented.ts", + "line": 11 }, "methods": [ { "docs": { - "stability": "experimental" + "remarks": "This will print out a friendly greeting intended for\nthe indicated person.", + "returns": "A number that everyone knows very well", + "stability": "stable", + "summary": "Greet the indicated person." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1769 + "filename": "lib/documented.ts", + "line": 22 }, - "name": "render", + "name": "greet", "parameters": [ { - "name": "data", + "docs": { + "summary": "The person to be greeted." + }, + "name": "greetee", "optional": true, "type": { - "fqn": "@scope/jsii-calc-lib.MyFirstStruct" + "fqn": "jsii-calc.Greetee" } } ], "returns": { "type": { - "primitive": "string" + "primitive": "number" } } }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Say ¡Hola!" }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1773 - }, - "name": "renderArbitrary", - "parameters": [ - { - "name": "data", - "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "map" - } - } - } - ], - "returns": { - "type": { - "primitive": "string" - } - } - }, + "filename": "lib/documented.ts", + "line": 32 + }, + "name": "hola" + } + ], + "name": "DocumentedClass" + }, + "jsii-calc.DontComplainAboutVariadicAfterOptional": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.DontComplainAboutVariadicAfterOptional", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1246 + }, + "methods": [ { "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1777 + "line": 1247 }, - "name": "renderMap", + "name": "optionalAndVariadic", "parameters": [ { - "name": "map", + "name": "optional", + "optional": true, "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "map" - } + "primitive": "string" } + }, + { + "name": "things", + "type": { + "primitive": "string" + }, + "variadic": true } ], "returns": { "type": { "primitive": "string" } - } + }, + "variadic": true } ], - "name": "DataRenderer", - "namespace": "compliance" + "name": "DontComplainAboutVariadicAfterOptional" }, - "jsii-calc.compliance.DefaultedConstructorArgument": { + "jsii-calc.DoubleTrouble": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.DefaultedConstructorArgument", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "arg1", - "optional": true, - "type": { - "primitive": "number" - } + "fqn": "jsii-calc.DoubleTrouble", + "initializer": {}, + "interfaces": [ + "jsii-calc.IFriendlyRandomGenerator" + ], + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 473 + }, + "methods": [ + { + "docs": { + "stability": "experimental", + "summary": "Say hello!" }, - { - "name": "arg2", - "optional": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 478 + }, + "name": "hello", + "overrides": "@scope/jsii-calc-lib.IFriendly", + "returns": { "type": { "primitive": "string" } + } + }, + { + "docs": { + "stability": "experimental", + "summary": "Returns another random number." }, - { - "name": "arg3", - "optional": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 474 + }, + "name": "next", + "overrides": "jsii-calc.IRandomNumberGenerator", + "returns": { "type": { - "primitive": "date" + "primitive": "number" } } - ] + } + ], + "name": "DoubleTrouble" + }, + "jsii-calc.EnumDispenser": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" }, + "fqn": "jsii-calc.EnumDispenser", "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 302 + "line": 34 }, - "name": "DefaultedConstructorArgument", - "namespace": "compliance", - "properties": [ + "methods": [ { "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 303 - }, - "name": "arg1", - "type": { - "primitive": "number" - } - }, - { - "docs": { - "stability": "experimental" + "line": 40 }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 305 + "name": "randomIntegerLikeEnum", + "returns": { + "type": { + "fqn": "jsii-calc.AllTypesEnum" + } }, - "name": "arg3", - "type": { - "primitive": "date" - } + "static": true }, { "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 304 + "line": 35 }, - "name": "arg2", - "optional": true, - "type": { - "primitive": "string" - } + "name": "randomStringLikeEnum", + "returns": { + "type": { + "fqn": "jsii-calc.StringEnum" + } + }, + "static": true } - ] + ], + "name": "EnumDispenser" }, - "jsii-calc.compliance.Demonstrate982": { + "jsii-calc.EraseUndefinedHashValues": { "assembly": "jsii-calc", "docs": { - "remarks": "call #takeThis() -> An ObjectRef will be provisioned for the value (it'll be re-used!)\n2. call #takeThisToo() -> The ObjectRef from before will need to be down-cased to the ParentStruct982 type", - "stability": "experimental", - "summary": "1." - }, - "fqn": "jsii-calc.compliance.Demonstrate982", - "initializer": { - "docs": { - "stability": "experimental" - } + "stability": "experimental" }, + "fqn": "jsii-calc.EraseUndefinedHashValues", + "initializer": {}, "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2251 + "line": 1449 }, "methods": [ { "docs": { + "remarks": "Used to check that undefined/null hash values\nare being erased when sending values from native code to JS.", "stability": "experimental", - "summary": "It's dangerous to go alone!" + "summary": "Returns `true` if `key` is defined in `opts`." }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2258 + "line": 1454 }, - "name": "takeThis", + "name": "doesKeyExist", + "parameters": [ + { + "name": "opts", + "type": { + "fqn": "jsii-calc.EraseUndefinedHashValuesOptions" + } + }, + { + "name": "key", + "type": { + "primitive": "string" + } + } + ], "returns": { "type": { - "fqn": "jsii-calc.compliance.ChildStruct982" + "primitive": "boolean" } }, "static": true @@ -3891,89 +4072,80 @@ { "docs": { "stability": "experimental", - "summary": "It's dangerous to go alone!" + "summary": "We expect \"prop1\" to be erased." }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2263 + "line": 1471 }, - "name": "takeThisToo", + "name": "prop1IsNull", + "returns": { + "type": { + "collection": { + "elementtype": { + "primitive": "any" + }, + "kind": "map" + } + } + }, + "static": true + }, + { + "docs": { + "stability": "experimental", + "summary": "We expect \"prop2\" to be erased." + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1461 + }, + "name": "prop2IsUndefined", "returns": { "type": { - "fqn": "jsii-calc.compliance.ParentStruct982" + "collection": { + "elementtype": { + "primitive": "any" + }, + "kind": "map" + } } }, "static": true } ], - "name": "Demonstrate982", - "namespace": "compliance" + "name": "EraseUndefinedHashValues" }, - "jsii-calc.compliance.DerivedClassHasNoProperties.Base": { + "jsii-calc.EraseUndefinedHashValuesOptions": { "assembly": "jsii-calc", + "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.DerivedClassHasNoProperties.Base", - "initializer": {}, - "kind": "class", + "fqn": "jsii-calc.EraseUndefinedHashValuesOptions", + "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 311 + "line": 1444 }, - "name": "Base", - "namespace": "compliance.DerivedClassHasNoProperties", + "name": "EraseUndefinedHashValuesOptions", "properties": [ { + "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 312 + "line": 1445 }, - "name": "prop", + "name": "option1", + "optional": true, "type": { "primitive": "string" } - } - ] - }, - "jsii-calc.compliance.DerivedClassHasNoProperties.Derived": { - "assembly": "jsii-calc", - "base": "jsii-calc.compliance.DerivedClassHasNoProperties.Base", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.compliance.DerivedClassHasNoProperties.Derived", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 315 - }, - "name": "Derived", - "namespace": "compliance.DerivedClassHasNoProperties" - }, - "jsii-calc.compliance.DerivedStruct": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental", - "summary": "A struct which derives from another struct." - }, - "fqn": "jsii-calc.compliance.DerivedStruct", - "interfaces": [ - "@scope/jsii-calc-lib.MyFirstStruct" - ], - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 533 - }, - "name": "DerivedStruct", - "namespace": "compliance", - "properties": [ + }, { "abstract": true, "docs": { @@ -3982,119 +4154,131 @@ "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 539 + "line": 1446 }, - "name": "anotherRequired", + "name": "option2", + "optional": true, "type": { - "primitive": "date" + "primitive": "string" } + } + ] + }, + "jsii-calc.ExperimentalClass": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.ExperimentalClass", + "initializer": { + "docs": { + "stability": "experimental" }, + "parameters": [ + { + "name": "readonlyString", + "type": { + "primitive": "string" + } + }, + { + "name": "mutableNumber", + "optional": true, + "type": { + "primitive": "number" + } + } + ] + }, + "kind": "class", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 16 + }, + "methods": [ { - "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 538 + "filename": "lib/stability.ts", + "line": 28 }, - "name": "bool", - "type": { - "primitive": "boolean" - } - }, + "name": "method" + } + ], + "name": "ExperimentalClass", + "properties": [ { - "abstract": true, "docs": { - "stability": "experimental", - "summary": "An example of a non primitive property." + "stability": "experimental" }, "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 537 + "filename": "lib/stability.ts", + "line": 18 }, - "name": "nonPrimitive", + "name": "readonlyProperty", "type": { - "fqn": "jsii-calc.compliance.DoubleTrouble" + "primitive": "string" } }, { - "abstract": true, "docs": { - "stability": "experimental", - "summary": "This is optional." + "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 545 + "filename": "lib/stability.ts", + "line": 20 }, - "name": "anotherOptional", + "name": "mutableProperty", "optional": true, "type": { - "collection": { - "elementtype": { - "fqn": "@scope/jsii-calc-lib.Value" - }, - "kind": "map" - } + "primitive": "number" } - }, + } + ] + }, + "jsii-calc.ExperimentalEnum": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.ExperimentalEnum", + "kind": "enum", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 31 + }, + "members": [ { - "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 541 - }, - "name": "optionalAny", - "optional": true, - "type": { - "primitive": "any" - } + "name": "OPTION_A" }, { - "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 540 - }, - "name": "optionalArray", - "optional": true, - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" - } - } + "name": "OPTION_B" } - ] + ], + "name": "ExperimentalEnum" }, - "jsii-calc.compliance.DiamondInheritanceBaseLevelStruct": { + "jsii-calc.ExperimentalStruct": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.DiamondInheritanceBaseLevelStruct", + "fqn": "jsii-calc.ExperimentalStruct", "kind": "interface", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1811 + "filename": "lib/stability.ts", + "line": 4 }, - "name": "DiamondInheritanceBaseLevelStruct", - "namespace": "compliance", + "name": "ExperimentalStruct", "properties": [ { "abstract": true, @@ -4103,68 +4287,71 @@ }, "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1812 + "filename": "lib/stability.ts", + "line": 6 }, - "name": "baseLevelProperty", + "name": "readonlyProperty", "type": { "primitive": "string" } } ] }, - "jsii-calc.compliance.DiamondInheritanceFirstMidLevelStruct": { + "jsii-calc.ExportedBaseClass": { "assembly": "jsii-calc", - "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.DiamondInheritanceFirstMidLevelStruct", - "interfaces": [ - "jsii-calc.compliance.DiamondInheritanceBaseLevelStruct" - ], - "kind": "interface", + "fqn": "jsii-calc.ExportedBaseClass", + "initializer": { + "docs": { + "stability": "experimental" + }, + "parameters": [ + { + "name": "success", + "type": { + "primitive": "boolean" + } + } + ] + }, + "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1815 + "line": 1331 }, - "name": "DiamondInheritanceFirstMidLevelStruct", - "namespace": "compliance", + "name": "ExportedBaseClass", "properties": [ { - "abstract": true, "docs": { "stability": "experimental" }, "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1816 + "line": 1332 }, - "name": "firstMidLevelProperty", + "name": "success", "type": { - "primitive": "string" + "primitive": "boolean" } } ] }, - "jsii-calc.compliance.DiamondInheritanceSecondMidLevelStruct": { + "jsii-calc.ExtendsInternalInterface": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.DiamondInheritanceSecondMidLevelStruct", - "interfaces": [ - "jsii-calc.compliance.DiamondInheritanceBaseLevelStruct" - ], + "fqn": "jsii-calc.ExtendsInternalInterface", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1819 + "line": 1552 }, - "name": "DiamondInheritanceSecondMidLevelStruct", - "namespace": "compliance", + "name": "ExtendsInternalInterface", "properties": [ { "abstract": true, @@ -4174,34 +4361,13 @@ "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1820 + "line": 1553 }, - "name": "secondMidLevelProperty", + "name": "boom", "type": { - "primitive": "string" + "primitive": "boolean" } - } - ] - }, - "jsii-calc.compliance.DiamondInheritanceTopLevelStruct": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.compliance.DiamondInheritanceTopLevelStruct", - "interfaces": [ - "jsii-calc.compliance.DiamondInheritanceFirstMidLevelStruct", - "jsii-calc.compliance.DiamondInheritanceSecondMidLevelStruct" - ], - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1823 - }, - "name": "DiamondInheritanceTopLevelStruct", - "namespace": "compliance", - "properties": [ + }, { "abstract": true, "docs": { @@ -4210,207 +4376,165 @@ "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1824 + "line": 1501 }, - "name": "topLevelProperty", + "name": "prop", "type": { "primitive": "string" } } ] }, - "jsii-calc.compliance.DisappointingCollectionSource": { + "jsii-calc.GiveMeStructs": { "assembly": "jsii-calc", "docs": { - "remarks": "This source of collections is disappointing - it'll always give you nothing :(", - "stability": "experimental", - "summary": "Verifies that null/undefined can be returned for optional collections." + "stability": "experimental" }, - "fqn": "jsii-calc.compliance.DisappointingCollectionSource", + "fqn": "jsii-calc.GiveMeStructs", + "initializer": {}, "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2275 + "line": 548 }, - "name": "DisappointingCollectionSource", - "namespace": "compliance", - "properties": [ + "methods": [ { - "const": true, "docs": { - "remarks": "(Nah, just a billion dollars mistake!)", "stability": "experimental", - "summary": "Some List of strings, maybe?" + "summary": "Accepts a struct of type DerivedStruct and returns a struct of type FirstStruct." }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2277 + "line": 566 }, - "name": "maybeList", - "optional": true, - "static": true, - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" + "name": "derivedToFirst", + "parameters": [ + { + "name": "derived", + "type": { + "fqn": "jsii-calc.DerivedStruct" + } + } + ], + "returns": { + "type": { + "fqn": "@scope/jsii-calc-lib.MyFirstStruct" } } }, { - "const": true, "docs": { - "remarks": "(Nah, just a billion dollars mistake!)", "stability": "experimental", - "summary": "Some Map of strings to numbers, maybe?" + "summary": "Returns the boolean from a DerivedStruct struct." }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2279 + "line": 559 }, - "name": "maybeMap", - "optional": true, - "static": true, - "type": { - "collection": { - "elementtype": { - "primitive": "number" - }, - "kind": "map" + "name": "readDerivedNonPrimitive", + "parameters": [ + { + "name": "derived", + "type": { + "fqn": "jsii-calc.DerivedStruct" + } + } + ], + "returns": { + "type": { + "fqn": "jsii-calc.DoubleTrouble" } } - } - ] - }, - "jsii-calc.compliance.DoNotOverridePrivates": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.compliance.DoNotOverridePrivates", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1146 - }, - "methods": [ + }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Returns the \"anumber\" from a MyFirstStruct struct;" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1161 + "line": 552 }, - "name": "changePrivatePropertyValue", + "name": "readFirstNumber", "parameters": [ { - "name": "newValue", + "name": "first", "type": { - "primitive": "string" + "fqn": "@scope/jsii-calc-lib.MyFirstStruct" } } - ] - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1153 - }, - "name": "privateMethodValue", + ], "returns": { "type": { - "primitive": "string" + "primitive": "number" } } - }, + } + ], + "name": "GiveMeStructs", + "properties": [ { "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1157 + "line": 570 }, - "name": "privatePropertyValue", - "returns": { - "type": { - "primitive": "string" - } + "name": "structLiteral", + "type": { + "fqn": "@scope/jsii-calc-lib.StructWithOnlyOptionals" } } - ], - "name": "DoNotOverridePrivates", - "namespace": "compliance" + ] }, - "jsii-calc.compliance.DoNotRecognizeAnyAsOptional": { + "jsii-calc.Greetee": { "assembly": "jsii-calc", + "datatype": true, "docs": { "stability": "experimental", - "summary": "jsii#284: do not recognize \"any\" as an optional argument." + "summary": "These are some arguments you can pass to a method." }, - "fqn": "jsii-calc.compliance.DoNotRecognizeAnyAsOptional", - "initializer": {}, - "kind": "class", + "fqn": "jsii-calc.Greetee", + "kind": "interface", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1195 + "filename": "lib/documented.ts", + "line": 40 }, - "methods": [ + "name": "Greetee", + "properties": [ { + "abstract": true, "docs": { - "stability": "experimental" + "default": "world", + "stability": "experimental", + "summary": "The name of the greetee." }, + "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1196 + "filename": "lib/documented.ts", + "line": 46 }, - "name": "method", - "parameters": [ - { - "name": "_requiredAny", - "type": { - "primitive": "any" - } - }, - { - "name": "_optionalAny", - "optional": true, - "type": { - "primitive": "any" - } - }, - { - "name": "_optionalString", - "optional": true, - "type": { - "primitive": "string" - } - } - ] + "name": "name", + "optional": true, + "type": { + "primitive": "string" + } } - ], - "name": "DoNotRecognizeAnyAsOptional", - "namespace": "compliance" + ] }, - "jsii-calc.compliance.DontComplainAboutVariadicAfterOptional": { + "jsii-calc.GreetingAugmenter": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.DontComplainAboutVariadicAfterOptional", + "fqn": "jsii-calc.GreetingAugmenter", "initializer": {}, "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1246 + "line": 524 }, "methods": [ { @@ -4419,337 +4543,348 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1247 + "line": 525 }, - "name": "optionalAndVariadic", + "name": "betterGreeting", "parameters": [ { - "name": "optional", - "optional": true, + "name": "friendly", "type": { - "primitive": "string" + "fqn": "@scope/jsii-calc-lib.IFriendly" } - }, - { - "name": "things", - "type": { - "primitive": "string" - }, - "variadic": true } ], "returns": { "type": { "primitive": "string" } - }, - "variadic": true + } } ], - "name": "DontComplainAboutVariadicAfterOptional", - "namespace": "compliance" + "name": "GreetingAugmenter" }, - "jsii-calc.compliance.DoubleTrouble": { + "jsii-calc.IAnonymousImplementationProvider": { "assembly": "jsii-calc", "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "We can return an anonymous interface implementation from an override without losing the interface declarations." }, - "fqn": "jsii-calc.compliance.DoubleTrouble", - "initializer": {}, - "interfaces": [ - "jsii-calc.IFriendlyRandomGenerator" - ], - "kind": "class", + "fqn": "jsii-calc.IAnonymousImplementationProvider", + "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 473 + "line": 1972 }, "methods": [ { + "abstract": true, "docs": { - "stability": "experimental", - "summary": "Say hello!" + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 478 + "line": 1974 }, - "name": "hello", - "overrides": "@scope/jsii-calc-lib.IFriendly", + "name": "provideAsClass", "returns": { "type": { - "primitive": "string" + "fqn": "jsii-calc.Implementation" } } }, { + "abstract": true, "docs": { - "stability": "experimental", - "summary": "Returns another random number." + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 474 + "line": 1973 }, - "name": "next", - "overrides": "jsii-calc.IRandomNumberGenerator", + "name": "provideAsInterface", "returns": { "type": { - "primitive": "number" + "fqn": "jsii-calc.IAnonymouslyImplementMe" } } } ], - "name": "DoubleTrouble", - "namespace": "compliance" + "name": "IAnonymousImplementationProvider" }, - "jsii-calc.compliance.EnumDispenser": { + "jsii-calc.IAnonymouslyImplementMe": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.EnumDispenser", - "kind": "class", + "fqn": "jsii-calc.IAnonymouslyImplementMe", + "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 34 + "line": 1990 }, "methods": [ { + "abstract": true, "docs": { "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 40 + "line": 1992 }, - "name": "randomIntegerLikeEnum", + "name": "verb", "returns": { "type": { - "fqn": "jsii-calc.compliance.AllTypesEnum" + "primitive": "string" } - }, - "static": true - }, + } + } + ], + "name": "IAnonymouslyImplementMe", + "properties": [ { + "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 35 - }, - "name": "randomStringLikeEnum", - "returns": { - "type": { - "fqn": "jsii-calc.compliance.StringEnum" - } + "line": 1991 }, - "static": true + "name": "value", + "type": { + "primitive": "number" + } } - ], - "name": "EnumDispenser", - "namespace": "compliance" + ] }, - "jsii-calc.compliance.EraseUndefinedHashValues": { + "jsii-calc.IAnotherPublicInterface": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.EraseUndefinedHashValues", - "initializer": {}, - "kind": "class", + "fqn": "jsii-calc.IAnotherPublicInterface", + "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1449 + "line": 1573 }, - "methods": [ + "name": "IAnotherPublicInterface", + "properties": [ { + "abstract": true, "docs": { - "remarks": "Used to check that undefined/null hash values\nare being erased when sending values from native code to JS.", - "stability": "experimental", - "summary": "Returns `true` if `key` is defined in `opts`." + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1454 + "line": 1574 }, - "name": "doesKeyExist", - "parameters": [ - { - "name": "opts", - "type": { - "fqn": "jsii-calc.compliance.EraseUndefinedHashValuesOptions" - } - }, - { - "name": "key", - "type": { - "primitive": "string" - } - } - ], - "returns": { - "type": { - "primitive": "boolean" - } - }, - "static": true - }, + "name": "a", + "type": { + "primitive": "string" + } + } + ] + }, + "jsii-calc.IBell": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.IBell", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2159 + }, + "methods": [ { + "abstract": true, "docs": { - "stability": "experimental", - "summary": "We expect \"prop1\" to be erased." + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1471 - }, - "name": "prop1IsNull", - "returns": { - "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "map" - } - } + "line": 2160 }, - "static": true - }, + "name": "ring" + } + ], + "name": "IBell" + }, + "jsii-calc.IBellRinger": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Takes the object parameter as an interface." + }, + "fqn": "jsii-calc.IBellRinger", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2148 + }, + "methods": [ { + "abstract": true, "docs": { - "stability": "experimental", - "summary": "We expect \"prop2\" to be erased." + "stability": "experimental" }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1461 + "line": 2149 }, - "name": "prop2IsUndefined", - "returns": { - "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "map" + "name": "yourTurn", + "parameters": [ + { + "name": "bell", + "type": { + "fqn": "jsii-calc.IBell" } } - }, - "static": true + ] } ], - "name": "EraseUndefinedHashValues", - "namespace": "compliance" + "name": "IBellRinger" }, - "jsii-calc.compliance.EraseUndefinedHashValuesOptions": { + "jsii-calc.IConcreteBellRinger": { "assembly": "jsii-calc", - "datatype": true, "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Takes the object parameter as a calss." }, - "fqn": "jsii-calc.compliance.EraseUndefinedHashValuesOptions", + "fqn": "jsii-calc.IConcreteBellRinger", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1444 + "line": 2155 }, - "name": "EraseUndefinedHashValuesOptions", - "namespace": "compliance", - "properties": [ + "methods": [ { "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1445 + "line": 2156 }, - "name": "option1", - "optional": true, - "type": { - "primitive": "string" - } - }, + "name": "yourTurn", + "parameters": [ + { + "name": "bell", + "type": { + "fqn": "jsii-calc.Bell" + } + } + ] + } + ], + "name": "IConcreteBellRinger" + }, + "jsii-calc.IDeprecatedInterface": { + "assembly": "jsii-calc", + "docs": { + "deprecated": "useless interface", + "stability": "deprecated" + }, + "fqn": "jsii-calc.IDeprecatedInterface", + "kind": "interface", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 78 + }, + "methods": [ { "abstract": true, "docs": { - "stability": "experimental" + "deprecated": "services no purpose", + "stability": "deprecated" }, - "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1446 + "filename": "lib/stability.ts", + "line": 82 }, - "name": "option2", + "name": "method" + } + ], + "name": "IDeprecatedInterface", + "properties": [ + { + "abstract": true, + "docs": { + "deprecated": "could be better", + "stability": "deprecated" + }, + "locationInModule": { + "filename": "lib/stability.ts", + "line": 80 + }, + "name": "mutableProperty", "optional": true, "type": { - "primitive": "string" + "primitive": "number" } } ] }, - "jsii-calc.compliance.ExportedBaseClass": { + "jsii-calc.IExperimentalInterface": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.ExportedBaseClass", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "success", - "type": { - "primitive": "boolean" - } - } - ] - }, - "kind": "class", + "fqn": "jsii-calc.IExperimentalInterface", + "kind": "interface", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1331 + "filename": "lib/stability.ts", + "line": 9 }, - "name": "ExportedBaseClass", - "namespace": "compliance", + "methods": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/stability.ts", + "line": 13 + }, + "name": "method" + } + ], + "name": "IExperimentalInterface", "properties": [ { + "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1332 + "filename": "lib/stability.ts", + "line": 11 }, - "name": "success", + "name": "mutableProperty", + "optional": true, "type": { - "primitive": "boolean" + "primitive": "number" } } ] }, - "jsii-calc.compliance.ExtendsInternalInterface": { + "jsii-calc.IExtendsPrivateInterface": { "assembly": "jsii-calc", - "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.ExtendsInternalInterface", + "fqn": "jsii-calc.IExtendsPrivateInterface", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1552 + "line": 1564 }, - "name": "ExtendsInternalInterface", - "namespace": "compliance", + "name": "IExtendsPrivateInterface", "properties": [ { "abstract": true, @@ -4759,11 +4894,16 @@ "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1553 + "line": 1565 }, - "name": "boom", + "name": "moreThings", "type": { - "primitive": "boolean" + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "array" + } } }, { @@ -4771,243 +4911,135 @@ "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1501 + "line": 1549 }, - "name": "prop", + "name": "private", "type": { "primitive": "string" } } ] }, - "jsii-calc.compliance.GiveMeStructs": { + "jsii-calc.IFriendlier": { "assembly": "jsii-calc", "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Even friendlier classes can implement this interface." }, - "fqn": "jsii-calc.compliance.GiveMeStructs", - "initializer": {}, - "kind": "class", + "fqn": "jsii-calc.IFriendlier", + "interfaces": [ + "@scope/jsii-calc-lib.IFriendly" + ], + "kind": "interface", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 548 + "filename": "lib/calculator.ts", + "line": 6 }, "methods": [ { + "abstract": true, "docs": { "stability": "experimental", - "summary": "Accepts a struct of type DerivedStruct and returns a struct of type FirstStruct." + "summary": "Say farewell." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 566 + "filename": "lib/calculator.ts", + "line": 16 }, - "name": "derivedToFirst", - "parameters": [ - { - "name": "derived", - "type": { - "fqn": "jsii-calc.compliance.DerivedStruct" - } - } - ], + "name": "farewell", "returns": { "type": { - "fqn": "@scope/jsii-calc-lib.MyFirstStruct" + "primitive": "string" } } }, { + "abstract": true, "docs": { + "returns": "A goodbye blessing.", "stability": "experimental", - "summary": "Returns the boolean from a DerivedStruct struct." - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 559 - }, - "name": "readDerivedNonPrimitive", - "parameters": [ - { - "name": "derived", - "type": { - "fqn": "jsii-calc.compliance.DerivedStruct" - } - } - ], - "returns": { - "type": { - "fqn": "jsii-calc.compliance.DoubleTrouble" - } - } - }, - { - "docs": { - "stability": "experimental", - "summary": "Returns the \"anumber\" from a MyFirstStruct struct;" + "summary": "Say goodbye." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 552 + "filename": "lib/calculator.ts", + "line": 11 }, - "name": "readFirstNumber", - "parameters": [ - { - "name": "first", - "type": { - "fqn": "@scope/jsii-calc-lib.MyFirstStruct" - } - } - ], + "name": "goodbye", "returns": { "type": { - "primitive": "number" + "primitive": "string" } } } ], - "name": "GiveMeStructs", - "namespace": "compliance", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 570 - }, - "name": "structLiteral", - "type": { - "fqn": "@scope/jsii-calc-lib.StructWithOnlyOptionals" - } - } - ] + "name": "IFriendlier" }, - "jsii-calc.compliance.GreetingAugmenter": { + "jsii-calc.IFriendlyRandomGenerator": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.GreetingAugmenter", - "initializer": {}, - "kind": "class", + "fqn": "jsii-calc.IFriendlyRandomGenerator", + "interfaces": [ + "jsii-calc.IRandomNumberGenerator", + "@scope/jsii-calc-lib.IFriendly" + ], + "kind": "interface", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 524 + "filename": "lib/calculator.ts", + "line": 30 }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 525 - }, - "name": "betterGreeting", - "parameters": [ - { - "name": "friendly", - "type": { - "fqn": "@scope/jsii-calc-lib.IFriendly" - } - } - ], - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "GreetingAugmenter", - "namespace": "compliance" + "name": "IFriendlyRandomGenerator" }, - "jsii-calc.compliance.IAnonymousImplementationProvider": { + "jsii-calc.IInterfaceImplementedByAbstractClass": { "assembly": "jsii-calc", "docs": { "stability": "experimental", - "summary": "We can return an anonymous interface implementation from an override without losing the interface declarations." + "summary": "awslabs/jsii#220 Abstract return type." }, - "fqn": "jsii-calc.compliance.IAnonymousImplementationProvider", + "fqn": "jsii-calc.IInterfaceImplementedByAbstractClass", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1972 + "line": 1092 }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1974 - }, - "name": "provideAsClass", - "returns": { - "type": { - "fqn": "jsii-calc.compliance.Implementation" - } - } - }, + "name": "IInterfaceImplementedByAbstractClass", + "properties": [ { "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1973 + "line": 1093 }, - "name": "provideAsInterface", - "returns": { - "type": { - "fqn": "jsii-calc.compliance.IAnonymouslyImplementMe" - } + "name": "propFromInterface", + "type": { + "primitive": "string" } } - ], - "name": "IAnonymousImplementationProvider", - "namespace": "compliance" + ] }, - "jsii-calc.compliance.IAnonymouslyImplementMe": { + "jsii-calc.IInterfaceThatShouldNotBeADataType": { "assembly": "jsii-calc", "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype." }, - "fqn": "jsii-calc.compliance.IAnonymouslyImplementMe", + "fqn": "jsii-calc.IInterfaceThatShouldNotBeADataType", + "interfaces": [ + "jsii-calc.IInterfaceWithMethods" + ], "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1990 + "line": 1188 }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1992 - }, - "name": "verb", - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "IAnonymouslyImplementMe", - "namespace": "compliance", + "name": "IInterfaceThatShouldNotBeADataType", "properties": [ { "abstract": true, @@ -5017,29 +5049,27 @@ "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1991 + "line": 1189 }, - "name": "value", + "name": "otherValue", "type": { - "primitive": "number" + "primitive": "string" } } ] }, - "jsii-calc.compliance.IAnotherPublicInterface": { + "jsii-calc.IInterfaceWithInternal": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.IAnotherPublicInterface", + "fqn": "jsii-calc.IInterfaceWithInternal", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1573 + "line": 1512 }, - "name": "IAnotherPublicInterface", - "namespace": "compliance", - "properties": [ + "methods": [ { "abstract": true, "docs": { @@ -5047,25 +5077,23 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1574 + "line": 1513 }, - "name": "a", - "type": { - "primitive": "string" - } + "name": "visible" } - ] + ], + "name": "IInterfaceWithInternal" }, - "jsii-calc.compliance.IBell": { + "jsii-calc.IInterfaceWithMethods": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.IBell", + "fqn": "jsii-calc.IInterfaceWithMethods", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2159 + "line": 1178 }, "methods": [ { @@ -5075,61 +5103,41 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2160 + "line": 1181 }, - "name": "ring" + "name": "doThings" } ], - "name": "IBell", - "namespace": "compliance" - }, - "jsii-calc.compliance.IBellRinger": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Takes the object parameter as an interface." - }, - "fqn": "jsii-calc.compliance.IBellRinger", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2148 - }, - "methods": [ + "name": "IInterfaceWithMethods", + "properties": [ { "abstract": true, "docs": { "stability": "experimental" }, + "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2149 + "line": 1179 }, - "name": "yourTurn", - "parameters": [ - { - "name": "bell", - "type": { - "fqn": "jsii-calc.compliance.IBell" - } - } - ] + "name": "value", + "type": { + "primitive": "string" + } } - ], - "name": "IBellRinger", - "namespace": "compliance" + ] }, - "jsii-calc.compliance.IConcreteBellRinger": { + "jsii-calc.IInterfaceWithOptionalMethodArguments": { "assembly": "jsii-calc", "docs": { "stability": "experimental", - "summary": "Takes the object parameter as a calss." + "summary": "awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods." }, - "fqn": "jsii-calc.compliance.IConcreteBellRinger", + "fqn": "jsii-calc.IInterfaceWithOptionalMethodArguments", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 2155 + "line": 1072 }, "methods": [ { @@ -5139,35 +5147,40 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 2156 + "line": 1073 }, - "name": "yourTurn", + "name": "hello", "parameters": [ { - "name": "bell", + "name": "arg1", "type": { - "fqn": "jsii-calc.compliance.Bell" + "primitive": "string" + } + }, + { + "name": "arg2", + "optional": true, + "type": { + "primitive": "number" } } ] } ], - "name": "IConcreteBellRinger", - "namespace": "compliance" + "name": "IInterfaceWithOptionalMethodArguments" }, - "jsii-calc.compliance.IExtendsPrivateInterface": { + "jsii-calc.IInterfaceWithProperties": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.IExtendsPrivateInterface", + "fqn": "jsii-calc.IInterfaceWithProperties", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1564 + "line": 578 }, - "name": "IExtendsPrivateInterface", - "namespace": "compliance", + "name": "IInterfaceWithProperties", "properties": [ { "abstract": true, @@ -5177,16 +5190,11 @@ "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1565 + "line": 579 }, - "name": "moreThings", + "name": "readOnlyString", "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" - } + "primitive": "string" } }, { @@ -5196,119 +5204,114 @@ }, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1549 + "line": 580 }, - "name": "private", + "name": "readWriteString", "type": { "primitive": "string" } } ] }, - "jsii-calc.compliance.IInterfaceImplementedByAbstractClass": { + "jsii-calc.IInterfaceWithPropertiesExtension": { "assembly": "jsii-calc", "docs": { - "stability": "experimental", - "summary": "awslabs/jsii#220 Abstract return type." + "stability": "experimental" }, - "fqn": "jsii-calc.compliance.IInterfaceImplementedByAbstractClass", + "fqn": "jsii-calc.IInterfaceWithPropertiesExtension", + "interfaces": [ + "jsii-calc.IInterfaceWithProperties" + ], "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1092 + "line": 583 }, - "name": "IInterfaceImplementedByAbstractClass", - "namespace": "compliance", + "name": "IInterfaceWithPropertiesExtension", "properties": [ { "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1093 + "line": 584 }, - "name": "propFromInterface", + "name": "foo", "type": { - "primitive": "string" + "primitive": "number" } } ] }, - "jsii-calc.compliance.IInterfaceThatShouldNotBeADataType": { + "jsii-calc.IJSII417Derived": { "assembly": "jsii-calc", "docs": { - "stability": "experimental", - "summary": "Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype." + "stability": "experimental" }, - "fqn": "jsii-calc.compliance.IInterfaceThatShouldNotBeADataType", + "fqn": "jsii-calc.IJSII417Derived", "interfaces": [ - "jsii-calc.compliance.IInterfaceWithMethods" + "jsii-calc.IJSII417PublicBaseOfBase" ], "kind": "interface", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1188 + "filename": "lib/erasures.ts", + "line": 37 }, - "name": "IInterfaceThatShouldNotBeADataType", - "namespace": "compliance", - "properties": [ + "methods": [ { "abstract": true, "docs": { "stability": "experimental" }, - "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1189 + "filename": "lib/erasures.ts", + "line": 35 }, - "name": "otherValue", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.compliance.IInterfaceWithInternal": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.compliance.IInterfaceWithInternal", - "kind": "interface", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1512 - }, - "methods": [ + "name": "bar" + }, { "abstract": true, "docs": { "stability": "experimental" }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1513 + "filename": "lib/erasures.ts", + "line": 38 }, - "name": "visible" + "name": "baz" } ], - "name": "IInterfaceWithInternal", - "namespace": "compliance" + "name": "IJSII417Derived", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 34 + }, + "name": "property", + "type": { + "primitive": "string" + } + } + ] }, - "jsii-calc.compliance.IInterfaceWithMethods": { + "jsii-calc.IJSII417PublicBaseOfBase": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.IInterfaceWithMethods", + "fqn": "jsii-calc.IJSII417PublicBaseOfBase", "kind": "interface", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1178 + "filename": "lib/erasures.ts", + "line": 30 }, "methods": [ { @@ -5317,14 +5320,13 @@ "stability": "experimental" }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1181 + "filename": "lib/erasures.ts", + "line": 31 }, - "name": "doThings" + "name": "foo" } ], - "name": "IInterfaceWithMethods", - "namespace": "compliance", + "name": "IJSII417PublicBaseOfBase", "properties": [ { "abstract": true, @@ -5333,150 +5335,67 @@ }, "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1179 + "filename": "lib/erasures.ts", + "line": 28 }, - "name": "value", + "name": "hasRoot", "type": { - "primitive": "string" + "primitive": "boolean" } } ] }, - "jsii-calc.compliance.IInterfaceWithOptionalMethodArguments": { + "jsii-calc.IJsii487External": { "assembly": "jsii-calc", "docs": { - "stability": "experimental", - "summary": "awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods." + "stability": "experimental" }, - "fqn": "jsii-calc.compliance.IInterfaceWithOptionalMethodArguments", + "fqn": "jsii-calc.IJsii487External", "kind": "interface", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1072 + "filename": "lib/erasures.ts", + "line": 45 }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1073 - }, - "name": "hello", - "parameters": [ - { - "name": "arg1", - "type": { - "primitive": "string" - } - }, - { - "name": "arg2", - "optional": true, - "type": { - "primitive": "number" - } - } - ] - } - ], - "name": "IInterfaceWithOptionalMethodArguments", - "namespace": "compliance" + "name": "IJsii487External" }, - "jsii-calc.compliance.IInterfaceWithProperties": { + "jsii-calc.IJsii487External2": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.IInterfaceWithProperties", + "fqn": "jsii-calc.IJsii487External2", "kind": "interface", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 578 + "filename": "lib/erasures.ts", + "line": 46 }, - "name": "IInterfaceWithProperties", - "namespace": "compliance", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 579 - }, - "name": "readOnlyString", - "type": { - "primitive": "string" - } - }, - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 580 - }, - "name": "readWriteString", - "type": { - "primitive": "string" - } - } - ] + "name": "IJsii487External2" }, - "jsii-calc.compliance.IInterfaceWithPropertiesExtension": { + "jsii-calc.IJsii496": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.IInterfaceWithPropertiesExtension", - "interfaces": [ - "jsii-calc.compliance.IInterfaceWithProperties" - ], + "fqn": "jsii-calc.IJsii496", "kind": "interface", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 583 + "filename": "lib/erasures.ts", + "line": 54 }, - "name": "IInterfaceWithPropertiesExtension", - "namespace": "compliance", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 584 - }, - "name": "foo", - "type": { - "primitive": "number" - } - } - ] + "name": "IJsii496" }, - "jsii-calc.compliance.IMutableObjectLiteral": { + "jsii-calc.IMutableObjectLiteral": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.IMutableObjectLiteral", + "fqn": "jsii-calc.IMutableObjectLiteral", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 1138 }, "name": "IMutableObjectLiteral", - "namespace": "compliance", "properties": [ { "abstract": true, @@ -5494,14 +5413,14 @@ } ] }, - "jsii-calc.compliance.INonInternalInterface": { + "jsii-calc.INonInternalInterface": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.INonInternalInterface", + "fqn": "jsii-calc.INonInternalInterface", "interfaces": [ - "jsii-calc.compliance.IAnotherPublicInterface" + "jsii-calc.IAnotherPublicInterface" ], "kind": "interface", "locationInModule": { @@ -5509,7 +5428,6 @@ "line": 1583 }, "name": "INonInternalInterface", - "namespace": "compliance", "properties": [ { "abstract": true, @@ -5541,13 +5459,13 @@ } ] }, - "jsii-calc.compliance.IObjectWithProperty": { + "jsii-calc.IObjectWithProperty": { "assembly": "jsii-calc", "docs": { "stability": "experimental", "summary": "Make sure that setters are properly called on objects with interfaces." }, - "fqn": "jsii-calc.compliance.IObjectWithProperty", + "fqn": "jsii-calc.IObjectWithProperty", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", @@ -5572,7 +5490,6 @@ } ], "name": "IObjectWithProperty", - "namespace": "compliance", "properties": [ { "abstract": true, @@ -5590,13 +5507,13 @@ } ] }, - "jsii-calc.compliance.IOptionalMethod": { + "jsii-calc.IOptionalMethod": { "assembly": "jsii-calc", "docs": { "stability": "experimental", "summary": "Checks that optional result from interface method code generates correctly." }, - "fqn": "jsii-calc.compliance.IOptionalMethod", + "fqn": "jsii-calc.IOptionalMethod", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", @@ -5621,22 +5538,20 @@ } } ], - "name": "IOptionalMethod", - "namespace": "compliance" + "name": "IOptionalMethod" }, - "jsii-calc.compliance.IPrivatelyImplemented": { + "jsii-calc.IPrivatelyImplemented": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.IPrivatelyImplemented", + "fqn": "jsii-calc.IPrivatelyImplemented", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 1328 }, "name": "IPrivatelyImplemented", - "namespace": "compliance", "properties": [ { "abstract": true, @@ -5655,12 +5570,12 @@ } ] }, - "jsii-calc.compliance.IPublicInterface": { + "jsii-calc.IPublicInterface": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.IPublicInterface", + "fqn": "jsii-calc.IPublicInterface", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", @@ -5684,15 +5599,14 @@ } } ], - "name": "IPublicInterface", - "namespace": "compliance" + "name": "IPublicInterface" }, - "jsii-calc.compliance.IPublicInterface2": { + "jsii-calc.IPublicInterface2": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.IPublicInterface2", + "fqn": "jsii-calc.IPublicInterface2", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", @@ -5716,23 +5630,55 @@ } } ], - "name": "IPublicInterface2", - "namespace": "compliance" + "name": "IPublicInterface2" + }, + "jsii-calc.IRandomNumberGenerator": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Generates random numbers." + }, + "fqn": "jsii-calc.IRandomNumberGenerator", + "kind": "interface", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 22 + }, + "methods": [ + { + "abstract": true, + "docs": { + "returns": "A random number.", + "stability": "experimental", + "summary": "Returns another random number." + }, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 27 + }, + "name": "next", + "returns": { + "type": { + "primitive": "number" + } + } + } + ], + "name": "IRandomNumberGenerator" }, - "jsii-calc.compliance.IReturnJsii976": { + "jsii-calc.IReturnJsii976": { "assembly": "jsii-calc", "docs": { "stability": "experimental", "summary": "Returns a subclass of a known class which implements an interface." }, - "fqn": "jsii-calc.compliance.IReturnJsii976", + "fqn": "jsii-calc.IReturnJsii976", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 2215 }, "name": "IReturnJsii976", - "namespace": "compliance", "properties": [ { "abstract": true, @@ -5751,12 +5697,12 @@ } ] }, - "jsii-calc.compliance.IReturnsNumber": { + "jsii-calc.IReturnsNumber": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.IReturnsNumber", + "fqn": "jsii-calc.IReturnsNumber", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", @@ -5781,7 +5727,6 @@ } ], "name": "IReturnsNumber", - "namespace": "compliance", "properties": [ { "abstract": true, @@ -5800,61 +5745,102 @@ } ] }, - "jsii-calc.compliance.IStructReturningDelegate": { + "jsii-calc.IStableInterface": { "assembly": "jsii-calc", "docs": { - "stability": "experimental", - "summary": "Verifies that a \"pure\" implementation of an interface works correctly." + "stability": "stable" }, - "fqn": "jsii-calc.compliance.IStructReturningDelegate", + "fqn": "jsii-calc.IStableInterface", "kind": "interface", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2403 + "filename": "lib/stability.ts", + "line": 44 }, "methods": [ { "abstract": true, "docs": { - "stability": "experimental" + "stability": "stable" }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2404 + "filename": "lib/stability.ts", + "line": 48 }, - "name": "returnStruct", - "returns": { - "type": { - "fqn": "jsii-calc.compliance.StructB" - } - } + "name": "method" } ], - "name": "IStructReturningDelegate", - "namespace": "compliance" - }, - "jsii-calc.compliance.ImplementInternalInterface": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.compliance.ImplementInternalInterface", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1556 - }, - "name": "ImplementInternalInterface", - "namespace": "compliance", + "name": "IStableInterface", "properties": [ { + "abstract": true, "docs": { - "stability": "experimental" + "stability": "stable" }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1557 + "filename": "lib/stability.ts", + "line": 46 + }, + "name": "mutableProperty", + "optional": true, + "type": { + "primitive": "number" + } + } + ] + }, + "jsii-calc.IStructReturningDelegate": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Verifies that a \"pure\" implementation of an interface works correctly." + }, + "fqn": "jsii-calc.IStructReturningDelegate", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2403 + }, + "methods": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2404 + }, + "name": "returnStruct", + "returns": { + "type": { + "fqn": "jsii-calc.StructB" + } + } + } + ], + "name": "IStructReturningDelegate" + }, + "jsii-calc.ImplementInternalInterface": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.ImplementInternalInterface", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1556 + }, + "name": "ImplementInternalInterface", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1557 }, "name": "prop", "type": { @@ -5863,12 +5849,12 @@ } ] }, - "jsii-calc.compliance.Implementation": { + "jsii-calc.Implementation": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.Implementation", + "fqn": "jsii-calc.Implementation", "initializer": {}, "kind": "class", "locationInModule": { @@ -5876,7 +5862,6 @@ "line": 1987 }, "name": "Implementation", - "namespace": "compliance", "properties": [ { "docs": { @@ -5894,15 +5879,15 @@ } ] }, - "jsii-calc.compliance.ImplementsInterfaceWithInternal": { + "jsii-calc.ImplementsInterfaceWithInternal": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.ImplementsInterfaceWithInternal", + "fqn": "jsii-calc.ImplementsInterfaceWithInternal", "initializer": {}, "interfaces": [ - "jsii-calc.compliance.IInterfaceWithInternal" + "jsii-calc.IInterfaceWithInternal" ], "kind": "class", "locationInModule": { @@ -5919,34 +5904,32 @@ "line": 1520 }, "name": "visible", - "overrides": "jsii-calc.compliance.IInterfaceWithInternal" + "overrides": "jsii-calc.IInterfaceWithInternal" } ], - "name": "ImplementsInterfaceWithInternal", - "namespace": "compliance" + "name": "ImplementsInterfaceWithInternal" }, - "jsii-calc.compliance.ImplementsInterfaceWithInternalSubclass": { + "jsii-calc.ImplementsInterfaceWithInternalSubclass": { "assembly": "jsii-calc", - "base": "jsii-calc.compliance.ImplementsInterfaceWithInternal", + "base": "jsii-calc.ImplementsInterfaceWithInternal", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.ImplementsInterfaceWithInternalSubclass", + "fqn": "jsii-calc.ImplementsInterfaceWithInternalSubclass", "initializer": {}, "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", "line": 1532 }, - "name": "ImplementsInterfaceWithInternalSubclass", - "namespace": "compliance" + "name": "ImplementsInterfaceWithInternalSubclass" }, - "jsii-calc.compliance.ImplementsPrivateInterface": { + "jsii-calc.ImplementsPrivateInterface": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.ImplementsPrivateInterface", + "fqn": "jsii-calc.ImplementsPrivateInterface", "initializer": {}, "kind": "class", "locationInModule": { @@ -5954,7 +5937,6 @@ "line": 1560 }, "name": "ImplementsPrivateInterface", - "namespace": "compliance", "properties": [ { "docs": { @@ -5971,13 +5953,13 @@ } ] }, - "jsii-calc.compliance.ImplictBaseOfBase": { + "jsii-calc.ImplictBaseOfBase": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.ImplictBaseOfBase", + "fqn": "jsii-calc.ImplictBaseOfBase", "interfaces": [ "@scope/jsii-calc-base.BaseProps" ], @@ -5987,7 +5969,6 @@ "line": 1025 }, "name": "ImplictBaseOfBase", - "namespace": "compliance", "properties": [ { "abstract": true, @@ -6006,16 +5987,16 @@ } ] }, - "jsii-calc.compliance.InbetweenClass": { + "jsii-calc.InbetweenClass": { "assembly": "jsii-calc", - "base": "jsii-calc.compliance.PublicClass", + "base": "jsii-calc.PublicClass", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.InbetweenClass", + "fqn": "jsii-calc.InbetweenClass", "initializer": {}, "interfaces": [ - "jsii-calc.compliance.IPublicInterface2" + "jsii-calc.IPublicInterface2" ], "kind": "class", "locationInModule": { @@ -6032,7 +6013,7 @@ "line": 1379 }, "name": "ciao", - "overrides": "jsii-calc.compliance.IPublicInterface2", + "overrides": "jsii-calc.IPublicInterface2", "returns": { "type": { "primitive": "string" @@ -6040,17 +6021,16 @@ } } ], - "name": "InbetweenClass", - "namespace": "compliance" + "name": "InbetweenClass" }, - "jsii-calc.compliance.InterfaceCollections": { + "jsii-calc.InterfaceCollections": { "assembly": "jsii-calc", "docs": { "remarks": "See: https://github.com/aws/jsii/issues/1196", "stability": "experimental", "summary": "Verifies that collections of interfaces or structs are correctly handled." }, - "fqn": "jsii-calc.compliance.InterfaceCollections", + "fqn": "jsii-calc.InterfaceCollections", "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", @@ -6070,7 +6050,7 @@ "type": { "collection": { "elementtype": { - "fqn": "jsii-calc.compliance.IBell" + "fqn": "jsii-calc.IBell" }, "kind": "array" } @@ -6091,7 +6071,7 @@ "type": { "collection": { "elementtype": { - "fqn": "jsii-calc.compliance.StructA" + "fqn": "jsii-calc.StructA" }, "kind": "array" } @@ -6112,7 +6092,7 @@ "type": { "collection": { "elementtype": { - "fqn": "jsii-calc.compliance.IBell" + "fqn": "jsii-calc.IBell" }, "kind": "map" } @@ -6133,7 +6113,7 @@ "type": { "collection": { "elementtype": { - "fqn": "jsii-calc.compliance.StructA" + "fqn": "jsii-calc.StructA" }, "kind": "map" } @@ -6142,15 +6122,14 @@ "static": true } ], - "name": "InterfaceCollections", - "namespace": "compliance" + "name": "InterfaceCollections" }, - "jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Foo": { + "jsii-calc.InterfaceInNamespaceIncludesClasses.Foo": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Foo", + "fqn": "jsii-calc.InterfaceInNamespaceIncludesClasses.Foo", "initializer": {}, "kind": "class", "locationInModule": { @@ -6158,7 +6137,7 @@ "line": 1059 }, "name": "Foo", - "namespace": "compliance.InterfaceInNamespaceIncludesClasses", + "namespace": "InterfaceInNamespaceIncludesClasses", "properties": [ { "docs": { @@ -6176,20 +6155,20 @@ } ] }, - "jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Hello": { + "jsii-calc.InterfaceInNamespaceIncludesClasses.Hello": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Hello", + "fqn": "jsii-calc.InterfaceInNamespaceIncludesClasses.Hello", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 1063 }, "name": "Hello", - "namespace": "compliance.InterfaceInNamespaceIncludesClasses", + "namespace": "InterfaceInNamespaceIncludesClasses", "properties": [ { "abstract": true, @@ -6208,20 +6187,20 @@ } ] }, - "jsii-calc.compliance.InterfaceInNamespaceOnlyInterface.Hello": { + "jsii-calc.InterfaceInNamespaceOnlyInterface.Hello": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.InterfaceInNamespaceOnlyInterface.Hello", + "fqn": "jsii-calc.InterfaceInNamespaceOnlyInterface.Hello", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 1051 }, "name": "Hello", - "namespace": "compliance.InterfaceInNamespaceOnlyInterface", + "namespace": "InterfaceInNamespaceOnlyInterface", "properties": [ { "abstract": true, @@ -6240,13 +6219,13 @@ } ] }, - "jsii-calc.compliance.InterfacesMaker": { + "jsii-calc.InterfacesMaker": { "assembly": "jsii-calc", "docs": { "stability": "experimental", "summary": "We can return arrays of interfaces See aws/aws-cdk#2362." }, - "fqn": "jsii-calc.compliance.InterfacesMaker", + "fqn": "jsii-calc.InterfacesMaker", "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", @@ -6283,15 +6262,138 @@ "static": true } ], - "name": "InterfacesMaker", - "namespace": "compliance" + "name": "InterfacesMaker" + }, + "jsii-calc.JSII417Derived": { + "assembly": "jsii-calc", + "base": "jsii-calc.JSII417PublicBaseOfBase", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.JSII417Derived", + "initializer": { + "docs": { + "stability": "experimental" + }, + "parameters": [ + { + "name": "property", + "type": { + "primitive": "string" + } + } + ] + }, + "kind": "class", + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 20 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 21 + }, + "name": "bar" + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 24 + }, + "name": "baz" + } + ], + "name": "JSII417Derived", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 15 + }, + "name": "property", + "protected": true, + "type": { + "primitive": "string" + } + } + ] + }, + "jsii-calc.JSII417PublicBaseOfBase": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.JSII417PublicBaseOfBase", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 8 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 9 + }, + "name": "makeInstance", + "returns": { + "type": { + "fqn": "jsii-calc.JSII417PublicBaseOfBase" + } + }, + "static": true + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 12 + }, + "name": "foo" + } + ], + "name": "JSII417PublicBaseOfBase", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 6 + }, + "name": "hasRoot", + "type": { + "primitive": "boolean" + } + } + ] }, - "jsii-calc.compliance.JSObjectLiteralForInterface": { + "jsii-calc.JSObjectLiteralForInterface": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.JSObjectLiteralForInterface", + "fqn": "jsii-calc.JSObjectLiteralForInterface", "initializer": {}, "kind": "class", "locationInModule": { @@ -6330,15 +6432,14 @@ } } ], - "name": "JSObjectLiteralForInterface", - "namespace": "compliance" + "name": "JSObjectLiteralForInterface" }, - "jsii-calc.compliance.JSObjectLiteralToNative": { + "jsii-calc.JSObjectLiteralToNative": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.JSObjectLiteralToNative", + "fqn": "jsii-calc.JSObjectLiteralToNative", "initializer": {}, "kind": "class", "locationInModule": { @@ -6357,20 +6458,19 @@ "name": "returnLiteral", "returns": { "type": { - "fqn": "jsii-calc.compliance.JSObjectLiteralToNativeClass" + "fqn": "jsii-calc.JSObjectLiteralToNativeClass" } } } ], - "name": "JSObjectLiteralToNative", - "namespace": "compliance" + "name": "JSObjectLiteralToNative" }, - "jsii-calc.compliance.JSObjectLiteralToNativeClass": { + "jsii-calc.JSObjectLiteralToNativeClass": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.JSObjectLiteralToNativeClass", + "fqn": "jsii-calc.JSObjectLiteralToNativeClass", "initializer": {}, "kind": "class", "locationInModule": { @@ -6378,7 +6478,6 @@ "line": 242 }, "name": "JSObjectLiteralToNativeClass", - "namespace": "compliance", "properties": [ { "docs": { @@ -6408,12 +6507,12 @@ } ] }, - "jsii-calc.compliance.JavaReservedWords": { + "jsii-calc.JavaReservedWords": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.JavaReservedWords", + "fqn": "jsii-calc.JavaReservedWords", "initializer": {}, "kind": "class", "locationInModule": { @@ -6943,7 +7042,6 @@ } ], "name": "JavaReservedWords", - "namespace": "compliance", "properties": [ { "docs": { @@ -6960,13 +7058,48 @@ } ] }, - "jsii-calc.compliance.JsiiAgent": { + "jsii-calc.Jsii487Derived": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.Jsii487Derived", + "initializer": {}, + "interfaces": [ + "jsii-calc.IJsii487External2", + "jsii-calc.IJsii487External" + ], + "kind": "class", + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 48 + }, + "name": "Jsii487Derived" + }, + "jsii-calc.Jsii496Derived": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.Jsii496Derived", + "initializer": {}, + "interfaces": [ + "jsii-calc.IJsii496" + ], + "kind": "class", + "locationInModule": { + "filename": "lib/erasures.ts", + "line": 56 + }, + "name": "Jsii496Derived" + }, + "jsii-calc.JsiiAgent": { "assembly": "jsii-calc", "docs": { "stability": "experimental", "summary": "Host runtime version should be set via JSII_AGENT." }, - "fqn": "jsii-calc.compliance.JsiiAgent", + "fqn": "jsii-calc.JsiiAgent", "initializer": {}, "kind": "class", "locationInModule": { @@ -6974,7 +7107,6 @@ "line": 1343 }, "name": "JsiiAgent", - "namespace": "compliance", "properties": [ { "docs": { @@ -6995,14 +7127,14 @@ } ] }, - "jsii-calc.compliance.JsonFormatter": { + "jsii-calc.JsonFormatter": { "assembly": "jsii-calc", "docs": { "see": "https://github.com/aws/aws-cdk/issues/5066", "stability": "experimental", "summary": "Make sure structs are un-decorated on the way in." }, - "fqn": "jsii-calc.compliance.JsonFormatter", + "fqn": "jsii-calc.JsonFormatter", "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", @@ -7244,24 +7376,22 @@ "static": true } ], - "name": "JsonFormatter", - "namespace": "compliance" + "name": "JsonFormatter" }, - "jsii-calc.compliance.LoadBalancedFargateServiceProps": { + "jsii-calc.LoadBalancedFargateServiceProps": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental", "summary": "jsii#298: show default values in sphinx documentation, and respect newlines." }, - "fqn": "jsii-calc.compliance.LoadBalancedFargateServiceProps", + "fqn": "jsii-calc.LoadBalancedFargateServiceProps", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 1255 }, "name": "LoadBalancedFargateServiceProps", - "namespace": "compliance", "properties": [ { "abstract": true, @@ -7358,64 +7488,108 @@ } ] }, - "jsii-calc.compliance.NestedStruct": { + "jsii-calc.MethodNamedProperty": { "assembly": "jsii-calc", - "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.NestedStruct", - "kind": "interface", + "fqn": "jsii-calc.MethodNamedProperty", + "initializer": {}, + "kind": "class", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2191 + "filename": "lib/calculator.ts", + "line": 386 }, - "name": "NestedStruct", - "namespace": "compliance", + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 387 + }, + "name": "property", + "returns": { + "type": { + "primitive": "string" + } + } + } + ], + "name": "MethodNamedProperty", "properties": [ { - "abstract": true, "docs": { - "stability": "experimental", - "summary": "When provided, must be > 0." + "stability": "experimental" }, "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 2195 + "filename": "lib/calculator.ts", + "line": 391 }, - "name": "numberProp", + "name": "elite", "type": { "primitive": "number" } } ] }, - "jsii-calc.compliance.NodeStandardLibrary": { + "jsii-calc.Multiply": { "assembly": "jsii-calc", + "base": "jsii-calc.BinaryOperation", "docs": { "stability": "experimental", - "summary": "Test fixture to verify that jsii modules can use the node standard library." - }, - "fqn": "jsii-calc.compliance.NodeStandardLibrary", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 977 + "summary": "The \"*\" binary operation." }, - "methods": [ - { - "docs": { - "returns": "\"6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50\"", - "stability": "experimental", - "summary": "Uses node.js \"crypto\" module to calculate sha256 of a string." - }, + "fqn": "jsii-calc.Multiply", + "initializer": { + "docs": { + "stability": "experimental", + "summary": "Creates a BinaryOperation." + }, + "parameters": [ + { + "docs": { + "summary": "Left-hand side operand." + }, + "name": "lhs", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" + } + }, + { + "docs": { + "summary": "Right-hand side operand." + }, + "name": "rhs", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" + } + } + ] + }, + "interfaces": [ + "jsii-calc.IFriendlier", + "jsii-calc.IRandomNumberGenerator" + ], + "kind": "class", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 68 + }, + "methods": [ + { + "docs": { + "stability": "experimental", + "summary": "Say farewell." + }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1006 + "filename": "lib/calculator.ts", + "line": 81 }, - "name": "cryptoSha256", + "name": "farewell", + "overrides": "jsii-calc.IFriendlier", "returns": { "type": { "primitive": "string" @@ -7423,17 +7597,16 @@ } }, { - "async": true, "docs": { - "returns": "\"Hello, resource!\"", "stability": "experimental", - "summary": "Reads a local resource file (resource.txt) asynchronously." + "summary": "Say goodbye." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 982 + "filename": "lib/calculator.ts", + "line": 77 }, - "name": "fsReadFile", + "name": "goodbye", + "overrides": "jsii-calc.IFriendlier", "returns": { "type": { "primitive": "string" @@ -7442,15 +7615,32 @@ }, { "docs": { - "returns": "\"Hello, resource! SYNC!\"", "stability": "experimental", - "summary": "Sync version of fsReadFile." + "summary": "Returns another random number." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 991 + "filename": "lib/calculator.ts", + "line": 85 }, - "name": "fsReadFileSync", + "name": "next", + "overrides": "jsii-calc.IRandomNumberGenerator", + "returns": { + "type": { + "primitive": "number" + } + } + }, + { + "docs": { + "stability": "experimental", + "summary": "String representation of the value." + }, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 73 + }, + "name": "toString", + "overrides": "@scope/jsii-calc-lib.Operation", "returns": { "type": { "primitive": "string" @@ -7458,193 +7648,428 @@ } } ], - "name": "NodeStandardLibrary", - "namespace": "compliance", + "name": "Multiply", "properties": [ { "docs": { "stability": "experimental", - "summary": "Returns the current os.platform() from the \"os\" node module." + "summary": "The value." }, "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 998 + "filename": "lib/calculator.ts", + "line": 69 }, - "name": "osPlatform", + "name": "value", + "overrides": "@scope/jsii-calc-lib.Value", "type": { - "primitive": "string" + "primitive": "number" } } ] }, - "jsii-calc.compliance.NullShouldBeTreatedAsUndefined": { + "jsii-calc.Negate": { "assembly": "jsii-calc", + "base": "jsii-calc.UnaryOperation", "docs": { "stability": "experimental", - "summary": "jsii#282, aws-cdk#157: null should be treated as \"undefined\"." + "summary": "The negation operation (\"-value\")." }, - "fqn": "jsii-calc.compliance.NullShouldBeTreatedAsUndefined", + "fqn": "jsii-calc.Negate", "initializer": { "docs": { "stability": "experimental" }, "parameters": [ { - "name": "_param1", - "type": { - "primitive": "string" - } - }, - { - "name": "optional", - "optional": true, + "name": "operand", "type": { - "primitive": "any" + "fqn": "@scope/jsii-calc-lib.Value" } } ] }, + "interfaces": [ + "jsii-calc.IFriendlier" + ], "kind": "class", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1204 + "filename": "lib/calculator.ts", + "line": 102 }, "methods": [ { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Say farewell." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1213 + "filename": "lib/calculator.ts", + "line": 119 }, - "name": "giveMeUndefined", - "parameters": [ - { - "name": "value", - "optional": true, - "type": { - "primitive": "any" - } + "name": "farewell", + "overrides": "jsii-calc.IFriendlier", + "returns": { + "type": { + "primitive": "string" } - ] + } }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Say goodbye." }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1219 + "filename": "lib/calculator.ts", + "line": 115 }, - "name": "giveMeUndefinedInsideAnObject", - "parameters": [ - { - "name": "input", - "type": { - "fqn": "jsii-calc.compliance.NullShouldBeTreatedAsUndefinedData" - } + "name": "goodbye", + "overrides": "jsii-calc.IFriendlier", + "returns": { + "type": { + "primitive": "string" } - ] + } }, { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "Say hello!" }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1234 + "filename": "lib/calculator.ts", + "line": 111 }, - "name": "verifyPropertyIsUndefined" + "name": "hello", + "overrides": "@scope/jsii-calc-lib.IFriendly", + "returns": { + "type": { + "primitive": "string" + } + } + }, + { + "docs": { + "stability": "experimental", + "summary": "String representation of the value." + }, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 107 + }, + "name": "toString", + "overrides": "@scope/jsii-calc-lib.Operation", + "returns": { + "type": { + "primitive": "string" + } + } } ], - "name": "NullShouldBeTreatedAsUndefined", - "namespace": "compliance", + "name": "Negate", "properties": [ { "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "The value." }, + "immutable": true, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1205 + "filename": "lib/calculator.ts", + "line": 103 }, - "name": "changeMeToUndefined", - "optional": true, + "name": "value", + "overrides": "@scope/jsii-calc-lib.Value", "type": { - "primitive": "string" + "primitive": "number" } } ] }, - "jsii-calc.compliance.NullShouldBeTreatedAsUndefinedData": { + "jsii-calc.NestedStruct": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.NullShouldBeTreatedAsUndefinedData", + "fqn": "jsii-calc.NestedStruct", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", - "line": 1241 + "line": 2191 }, - "name": "NullShouldBeTreatedAsUndefinedData", - "namespace": "compliance", + "name": "NestedStruct", "properties": [ { "abstract": true, "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1243 - }, - "name": "arrayWithThreeElementsAndUndefinedAsSecondArgument", - "type": { - "collection": { - "elementtype": { - "primitive": "any" - }, - "kind": "array" - } - } - }, - { - "abstract": true, - "docs": { - "stability": "experimental" + "stability": "experimental", + "summary": "When provided, must be > 0." }, "immutable": true, "locationInModule": { "filename": "lib/compliance.ts", - "line": 1242 + "line": 2195 }, - "name": "thisShouldBeUndefined", - "optional": true, + "name": "numberProp", "type": { - "primitive": "any" + "primitive": "number" } } ] }, - "jsii-calc.compliance.NumberGenerator": { + "jsii-calc.NodeStandardLibrary": { "assembly": "jsii-calc", "docs": { "stability": "experimental", - "summary": "This allows us to test that a reference can be stored for objects that implement interfaces." + "summary": "Test fixture to verify that jsii modules can use the node standard library." }, - "fqn": "jsii-calc.compliance.NumberGenerator", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "generator", + "fqn": "jsii-calc.NodeStandardLibrary", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 977 + }, + "methods": [ + { + "docs": { + "returns": "\"6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50\"", + "stability": "experimental", + "summary": "Uses node.js \"crypto\" module to calculate sha256 of a string." + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1006 + }, + "name": "cryptoSha256", + "returns": { + "type": { + "primitive": "string" + } + } + }, + { + "async": true, + "docs": { + "returns": "\"Hello, resource!\"", + "stability": "experimental", + "summary": "Reads a local resource file (resource.txt) asynchronously." + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 982 + }, + "name": "fsReadFile", + "returns": { + "type": { + "primitive": "string" + } + } + }, + { + "docs": { + "returns": "\"Hello, resource! SYNC!\"", + "stability": "experimental", + "summary": "Sync version of fsReadFile." + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 991 + }, + "name": "fsReadFileSync", + "returns": { + "type": { + "primitive": "string" + } + } + } + ], + "name": "NodeStandardLibrary", + "properties": [ + { + "docs": { + "stability": "experimental", + "summary": "Returns the current os.platform() from the \"os\" node module." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 998 + }, + "name": "osPlatform", + "type": { + "primitive": "string" + } + } + ] + }, + "jsii-calc.NullShouldBeTreatedAsUndefined": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "jsii#282, aws-cdk#157: null should be treated as \"undefined\"." + }, + "fqn": "jsii-calc.NullShouldBeTreatedAsUndefined", + "initializer": { + "docs": { + "stability": "experimental" + }, + "parameters": [ + { + "name": "_param1", + "type": { + "primitive": "string" + } + }, + { + "name": "optional", + "optional": true, + "type": { + "primitive": "any" + } + } + ] + }, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1204 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1213 + }, + "name": "giveMeUndefined", + "parameters": [ + { + "name": "value", + "optional": true, + "type": { + "primitive": "any" + } + } + ] + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1219 + }, + "name": "giveMeUndefinedInsideAnObject", + "parameters": [ + { + "name": "input", + "type": { + "fqn": "jsii-calc.NullShouldBeTreatedAsUndefinedData" + } + } + ] + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1234 + }, + "name": "verifyPropertyIsUndefined" + } + ], + "name": "NullShouldBeTreatedAsUndefined", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1205 + }, + "name": "changeMeToUndefined", + "optional": true, + "type": { + "primitive": "string" + } + } + ] + }, + "jsii-calc.NullShouldBeTreatedAsUndefinedData": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.NullShouldBeTreatedAsUndefinedData", + "kind": "interface", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1241 + }, + "name": "NullShouldBeTreatedAsUndefinedData", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1243 + }, + "name": "arrayWithThreeElementsAndUndefinedAsSecondArgument", + "type": { + "collection": { + "elementtype": { + "primitive": "any" + }, + "kind": "array" + } + } + }, + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1242 + }, + "name": "thisShouldBeUndefined", + "optional": true, + "type": { + "primitive": "any" + } + } + ] + }, + "jsii-calc.NumberGenerator": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "This allows us to test that a reference can be stored for objects that implement interfaces." + }, + "fqn": "jsii-calc.NumberGenerator", + "initializer": { + "docs": { + "stability": "experimental" + }, + "parameters": [ + { + "name": "generator", "type": { "fqn": "jsii-calc.IRandomNumberGenerator" } @@ -7697,7 +8122,6 @@ } ], "name": "NumberGenerator", - "namespace": "compliance", "properties": [ { "docs": { @@ -7714,13 +8138,13 @@ } ] }, - "jsii-calc.compliance.ObjectRefsInCollections": { + "jsii-calc.ObjectRefsInCollections": { "assembly": "jsii-calc", "docs": { "stability": "experimental", "summary": "Verify that object references can be passed inside collections." }, - "fqn": "jsii-calc.compliance.ObjectRefsInCollections", + "fqn": "jsii-calc.ObjectRefsInCollections", "initializer": {}, "kind": "class", "locationInModule": { @@ -7787,15 +8211,14 @@ } } ], - "name": "ObjectRefsInCollections", - "namespace": "compliance" + "name": "ObjectRefsInCollections" }, - "jsii-calc.compliance.ObjectWithPropertyProvider": { + "jsii-calc.ObjectWithPropertyProvider": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.ObjectWithPropertyProvider", + "fqn": "jsii-calc.ObjectWithPropertyProvider", "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", @@ -7813,38 +8236,66 @@ "name": "provide", "returns": { "type": { - "fqn": "jsii-calc.compliance.IObjectWithProperty" + "fqn": "jsii-calc.IObjectWithProperty" } }, "static": true } ], - "name": "ObjectWithPropertyProvider", - "namespace": "compliance" + "name": "ObjectWithPropertyProvider" }, - "jsii-calc.compliance.OptionalArgumentInvoker": { + "jsii-calc.Old": { "assembly": "jsii-calc", "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.compliance.OptionalArgumentInvoker", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "delegate", - "type": { - "fqn": "jsii-calc.compliance.IInterfaceWithOptionalMethodArguments" - } - } - ] + "deprecated": "Use the new class", + "stability": "deprecated", + "summary": "Old class." }, + "fqn": "jsii-calc.Old", + "initializer": {}, "kind": "class", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1075 + "filename": "lib/documented.ts", + "line": 54 + }, + "methods": [ + { + "docs": { + "stability": "deprecated", + "summary": "Doo wop that thing." + }, + "locationInModule": { + "filename": "lib/documented.ts", + "line": 58 + }, + "name": "doAThing" + } + ], + "name": "Old" + }, + "jsii-calc.OptionalArgumentInvoker": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.OptionalArgumentInvoker", + "initializer": { + "docs": { + "stability": "experimental" + }, + "parameters": [ + { + "name": "delegate", + "type": { + "fqn": "jsii-calc.IInterfaceWithOptionalMethodArguments" + } + } + ] + }, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1075 }, "methods": [ { @@ -7868,15 +8319,14 @@ "name": "invokeWithoutOptional" } ], - "name": "OptionalArgumentInvoker", - "namespace": "compliance" + "name": "OptionalArgumentInvoker" }, - "jsii-calc.compliance.OptionalConstructorArgument": { + "jsii-calc.OptionalConstructorArgument": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.OptionalConstructorArgument", + "fqn": "jsii-calc.OptionalConstructorArgument", "initializer": { "docs": { "stability": "experimental" @@ -7909,7 +8359,6 @@ "line": 295 }, "name": "OptionalConstructorArgument", - "namespace": "compliance", "properties": [ { "docs": { @@ -7956,20 +8405,19 @@ } ] }, - "jsii-calc.compliance.OptionalStruct": { + "jsii-calc.OptionalStruct": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.OptionalStruct", + "fqn": "jsii-calc.OptionalStruct", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 1650 }, "name": "OptionalStruct", - "namespace": "compliance", "properties": [ { "abstract": true, @@ -7989,12 +8437,12 @@ } ] }, - "jsii-calc.compliance.OptionalStructConsumer": { + "jsii-calc.OptionalStructConsumer": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.OptionalStructConsumer", + "fqn": "jsii-calc.OptionalStructConsumer", "initializer": { "docs": { "stability": "experimental" @@ -8004,7 +8452,7 @@ "name": "optionalStruct", "optional": true, "type": { - "fqn": "jsii-calc.compliance.OptionalStruct" + "fqn": "jsii-calc.OptionalStruct" } } ] @@ -8015,7 +8463,6 @@ "line": 1641 }, "name": "OptionalStructConsumer", - "namespace": "compliance", "properties": [ { "docs": { @@ -8048,13 +8495,13 @@ } ] }, - "jsii-calc.compliance.OverridableProtectedMember": { + "jsii-calc.OverridableProtectedMember": { "assembly": "jsii-calc", "docs": { "see": "https://github.com/aws/jsii/issues/903", "stability": "experimental" }, - "fqn": "jsii-calc.compliance.OverridableProtectedMember", + "fqn": "jsii-calc.OverridableProtectedMember", "initializer": {}, "kind": "class", "locationInModule": { @@ -8105,7 +8552,6 @@ } ], "name": "OverridableProtectedMember", - "namespace": "compliance", "properties": [ { "docs": { @@ -8138,12 +8584,12 @@ } ] }, - "jsii-calc.compliance.OverrideReturnsObject": { + "jsii-calc.OverrideReturnsObject": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.OverrideReturnsObject", + "fqn": "jsii-calc.OverrideReturnsObject", "initializer": {}, "kind": "class", "locationInModule": { @@ -8164,7 +8610,7 @@ { "name": "obj", "type": { - "fqn": "jsii-calc.compliance.IReturnsNumber" + "fqn": "jsii-calc.IReturnsNumber" } } ], @@ -8175,24 +8621,22 @@ } } ], - "name": "OverrideReturnsObject", - "namespace": "compliance" + "name": "OverrideReturnsObject" }, - "jsii-calc.compliance.ParentStruct982": { + "jsii-calc.ParentStruct982": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental", "summary": "https://github.com/aws/jsii/issues/982." }, - "fqn": "jsii-calc.compliance.ParentStruct982", + "fqn": "jsii-calc.ParentStruct982", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 2241 }, "name": "ParentStruct982", - "namespace": "compliance", "properties": [ { "abstract": true, @@ -8211,13 +8655,13 @@ } ] }, - "jsii-calc.compliance.PartiallyInitializedThisConsumer": { + "jsii-calc.PartiallyInitializedThisConsumer": { "abstract": true, "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.PartiallyInitializedThisConsumer", + "fqn": "jsii-calc.PartiallyInitializedThisConsumer", "initializer": {}, "kind": "class", "locationInModule": { @@ -8239,7 +8683,7 @@ { "name": "obj", "type": { - "fqn": "jsii-calc.compliance.ConstructorPassesThisOut" + "fqn": "jsii-calc.ConstructorPassesThisOut" } }, { @@ -8251,7 +8695,7 @@ { "name": "ev", "type": { - "fqn": "jsii-calc.compliance.AllTypesEnum" + "fqn": "jsii-calc.AllTypesEnum" } } ], @@ -8262,15 +8706,14 @@ } } ], - "name": "PartiallyInitializedThisConsumer", - "namespace": "compliance" + "name": "PartiallyInitializedThisConsumer" }, - "jsii-calc.compliance.Polymorphism": { + "jsii-calc.Polymorphism": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.Polymorphism", + "fqn": "jsii-calc.Polymorphism", "initializer": {}, "kind": "class", "locationInModule": { @@ -8302,15 +8745,149 @@ } } ], - "name": "Polymorphism", - "namespace": "compliance" + "name": "Polymorphism" + }, + "jsii-calc.Power": { + "assembly": "jsii-calc", + "base": "jsii-calc.composition.CompositeOperation", + "docs": { + "stability": "experimental", + "summary": "The power operation." + }, + "fqn": "jsii-calc.Power", + "initializer": { + "docs": { + "stability": "experimental", + "summary": "Creates a Power operation." + }, + "parameters": [ + { + "docs": { + "summary": "The base of the power." + }, + "name": "base", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" + } + }, + { + "docs": { + "summary": "The number of times to multiply." + }, + "name": "pow", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" + } + } + ] + }, + "kind": "class", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 211 + }, + "name": "Power", + "properties": [ + { + "docs": { + "stability": "experimental", + "summary": "The base of the power." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 218 + }, + "name": "base", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" + } + }, + { + "docs": { + "remarks": "Must be implemented by derived classes.", + "stability": "experimental", + "summary": "The expression that this operation consists of." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 222 + }, + "name": "expression", + "overrides": "jsii-calc.composition.CompositeOperation", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" + } + }, + { + "docs": { + "stability": "experimental", + "summary": "The number of times to multiply." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 218 + }, + "name": "pow", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" + } + } + ] + }, + "jsii-calc.PropertyNamedProperty": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental", + "summary": "Reproduction for https://github.com/aws/jsii/issues/1113 Where a method or property named \"property\" would result in impossible to load Python code." + }, + "fqn": "jsii-calc.PropertyNamedProperty", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 382 + }, + "name": "PropertyNamedProperty", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 383 + }, + "name": "property", + "type": { + "primitive": "string" + } + }, + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 384 + }, + "name": "yetAnoterOne", + "type": { + "primitive": "boolean" + } + } + ] }, - "jsii-calc.compliance.PublicClass": { + "jsii-calc.PublicClass": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.PublicClass", + "fqn": "jsii-calc.PublicClass", "initializer": {}, "kind": "class", "locationInModule": { @@ -8329,15 +8906,14 @@ "name": "hello" } ], - "name": "PublicClass", - "namespace": "compliance" + "name": "PublicClass" }, - "jsii-calc.compliance.PythonReservedWords": { + "jsii-calc.PythonReservedWords": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.PythonReservedWords", + "fqn": "jsii-calc.PythonReservedWords", "initializer": {}, "kind": "class", "locationInModule": { @@ -8666,16 +9242,15 @@ "name": "yield" } ], - "name": "PythonReservedWords", - "namespace": "compliance" + "name": "PythonReservedWords" }, - "jsii-calc.compliance.ReferenceEnumFromScopedPackage": { + "jsii-calc.ReferenceEnumFromScopedPackage": { "assembly": "jsii-calc", "docs": { "stability": "experimental", "summary": "See awslabs/jsii#138." }, - "fqn": "jsii-calc.compliance.ReferenceEnumFromScopedPackage", + "fqn": "jsii-calc.ReferenceEnumFromScopedPackage", "initializer": {}, "kind": "class", "locationInModule": { @@ -8719,7 +9294,6 @@ } ], "name": "ReferenceEnumFromScopedPackage", - "namespace": "compliance", "properties": [ { "docs": { @@ -8737,7 +9311,7 @@ } ] }, - "jsii-calc.compliance.ReturnsPrivateImplementationOfInterface": { + "jsii-calc.ReturnsPrivateImplementationOfInterface": { "assembly": "jsii-calc", "docs": { "returns": "an instance of an un-exported class that extends `ExportedBaseClass`, declared as `IPrivatelyImplemented`.", @@ -8745,7 +9319,7 @@ "stability": "experimental", "summary": "Helps ensure the JSII kernel & runtime cooperate correctly when an un-exported instance of a class is returned with a declared type that is an exported interface, and the instance inherits from an exported class." }, - "fqn": "jsii-calc.compliance.ReturnsPrivateImplementationOfInterface", + "fqn": "jsii-calc.ReturnsPrivateImplementationOfInterface", "initializer": {}, "kind": "class", "locationInModule": { @@ -8753,7 +9327,6 @@ "line": 1323 }, "name": "ReturnsPrivateImplementationOfInterface", - "namespace": "compliance", "properties": [ { "docs": { @@ -8766,12 +9339,12 @@ }, "name": "privateImplementation", "type": { - "fqn": "jsii-calc.compliance.IPrivatelyImplemented" + "fqn": "jsii-calc.IPrivatelyImplemented" } } ] }, - "jsii-calc.compliance.RootStruct": { + "jsii-calc.RootStruct": { "assembly": "jsii-calc", "datatype": true, "docs": { @@ -8779,14 +9352,13 @@ "stability": "experimental", "summary": "This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary." }, - "fqn": "jsii-calc.compliance.RootStruct", + "fqn": "jsii-calc.RootStruct", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 2184 }, "name": "RootStruct", - "namespace": "compliance", "properties": [ { "abstract": true, @@ -8817,17 +9389,17 @@ "name": "nestedStruct", "optional": true, "type": { - "fqn": "jsii-calc.compliance.NestedStruct" + "fqn": "jsii-calc.NestedStruct" } } ] }, - "jsii-calc.compliance.RootStructValidator": { + "jsii-calc.RootStructValidator": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.RootStructValidator", + "fqn": "jsii-calc.RootStructValidator", "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", @@ -8847,22 +9419,21 @@ { "name": "struct", "type": { - "fqn": "jsii-calc.compliance.RootStruct" + "fqn": "jsii-calc.RootStruct" } } ], "static": true } ], - "name": "RootStructValidator", - "namespace": "compliance" + "name": "RootStructValidator" }, - "jsii-calc.compliance.RuntimeTypeChecking": { + "jsii-calc.RuntimeTypeChecking": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.RuntimeTypeChecking", + "fqn": "jsii-calc.RuntimeTypeChecking", "initializer": {}, "kind": "class", "locationInModule": { @@ -8955,23 +9526,21 @@ ] } ], - "name": "RuntimeTypeChecking", - "namespace": "compliance" + "name": "RuntimeTypeChecking" }, - "jsii-calc.compliance.SecondLevelStruct": { + "jsii-calc.SecondLevelStruct": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.SecondLevelStruct", + "fqn": "jsii-calc.SecondLevelStruct", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 1799 }, "name": "SecondLevelStruct", - "namespace": "compliance", "properties": [ { "abstract": true, @@ -9008,14 +9577,14 @@ } ] }, - "jsii-calc.compliance.SingleInstanceTwoTypes": { + "jsii-calc.SingleInstanceTwoTypes": { "assembly": "jsii-calc", "docs": { "remarks": "JSII clients can instantiate 2 different strongly-typed wrappers for the same\nobject. Unfortunately, this will break object equality, but if we didn't do\nthis it would break runtime type checks in the JVM or CLR.", "stability": "experimental", "summary": "Test that a single instance can be returned under two different FQNs." }, - "fqn": "jsii-calc.compliance.SingleInstanceTwoTypes", + "fqn": "jsii-calc.SingleInstanceTwoTypes", "initializer": {}, "kind": "class", "locationInModule": { @@ -9034,7 +9603,7 @@ "name": "interface1", "returns": { "type": { - "fqn": "jsii-calc.compliance.InbetweenClass" + "fqn": "jsii-calc.InbetweenClass" } } }, @@ -9049,22 +9618,21 @@ "name": "interface2", "returns": { "type": { - "fqn": "jsii-calc.compliance.IPublicInterface" + "fqn": "jsii-calc.IPublicInterface" } } } ], - "name": "SingleInstanceTwoTypes", - "namespace": "compliance" + "name": "SingleInstanceTwoTypes" }, - "jsii-calc.compliance.SingletonInt": { + "jsii-calc.SingletonInt": { "assembly": "jsii-calc", "docs": { "remarks": "https://github.com/aws/jsii/issues/231", "stability": "experimental", "summary": "Verifies that singleton enums are handled correctly." }, - "fqn": "jsii-calc.compliance.SingletonInt", + "fqn": "jsii-calc.SingletonInt", "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", @@ -9095,16 +9663,15 @@ } } ], - "name": "SingletonInt", - "namespace": "compliance" + "name": "SingletonInt" }, - "jsii-calc.compliance.SingletonIntEnum": { + "jsii-calc.SingletonIntEnum": { "assembly": "jsii-calc", "docs": { "stability": "experimental", "summary": "A singleton integer." }, - "fqn": "jsii-calc.compliance.SingletonIntEnum", + "fqn": "jsii-calc.SingletonIntEnum", "kind": "enum", "locationInModule": { "filename": "lib/compliance.ts", @@ -9119,17 +9686,16 @@ "name": "SINGLETON_INT" } ], - "name": "SingletonIntEnum", - "namespace": "compliance" + "name": "SingletonIntEnum" }, - "jsii-calc.compliance.SingletonString": { + "jsii-calc.SingletonString": { "assembly": "jsii-calc", "docs": { "remarks": "https://github.com/aws/jsii/issues/231", "stability": "experimental", "summary": "Verifies that singleton enums are handled correctly." }, - "fqn": "jsii-calc.compliance.SingletonString", + "fqn": "jsii-calc.SingletonString", "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", @@ -9160,16 +9726,15 @@ } } ], - "name": "SingletonString", - "namespace": "compliance" + "name": "SingletonString" }, - "jsii-calc.compliance.SingletonStringEnum": { + "jsii-calc.SingletonStringEnum": { "assembly": "jsii-calc", "docs": { "stability": "experimental", "summary": "A singleton string." }, - "fqn": "jsii-calc.compliance.SingletonStringEnum", + "fqn": "jsii-calc.SingletonStringEnum", "kind": "enum", "locationInModule": { "filename": "lib/compliance.ts", @@ -9184,15 +9749,60 @@ "name": "SINGLETON_STRING" } ], - "name": "SingletonStringEnum", - "namespace": "compliance" + "name": "SingletonStringEnum" + }, + "jsii-calc.SmellyStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.SmellyStruct", + "kind": "interface", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 393 + }, + "name": "SmellyStruct", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 394 + }, + "name": "property", + "type": { + "primitive": "string" + } + }, + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 395 + }, + "name": "yetAnoterOne", + "type": { + "primitive": "boolean" + } + } + ] }, - "jsii-calc.compliance.SomeTypeJsii976": { + "jsii-calc.SomeTypeJsii976": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.SomeTypeJsii976", + "fqn": "jsii-calc.SomeTypeJsii976", "initializer": {}, "kind": "class", "locationInModule": { @@ -9227,48 +9837,179 @@ "name": "returnReturn", "returns": { "type": { - "fqn": "jsii-calc.compliance.IReturnJsii976" + "fqn": "jsii-calc.IReturnJsii976" } }, "static": true } ], - "name": "SomeTypeJsii976", - "namespace": "compliance" + "name": "SomeTypeJsii976" }, - "jsii-calc.compliance.StaticContext": { + "jsii-calc.StableClass": { "assembly": "jsii-calc", "docs": { - "remarks": "https://github.com/awslabs/aws-cdk/issues/2304", - "stability": "experimental", - "summary": "This is used to validate the ability to use `this` from within a static context." + "stability": "stable" + }, + "fqn": "jsii-calc.StableClass", + "initializer": { + "docs": { + "stability": "stable" + }, + "parameters": [ + { + "name": "readonlyString", + "type": { + "primitive": "string" + } + }, + { + "name": "mutableNumber", + "optional": true, + "type": { + "primitive": "number" + } + } + ] }, - "fqn": "jsii-calc.compliance.StaticContext", "kind": "class", "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1677 + "filename": "lib/stability.ts", + "line": 51 }, "methods": [ { "docs": { - "stability": "experimental" + "stability": "stable" }, "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1680 + "filename": "lib/stability.ts", + "line": 62 }, - "name": "canAccessStaticContext", - "returns": { - "type": { - "primitive": "boolean" + "name": "method" + } + ], + "name": "StableClass", + "properties": [ + { + "docs": { + "stability": "stable" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/stability.ts", + "line": 53 + }, + "name": "readonlyProperty", + "type": { + "primitive": "string" + } + }, + { + "docs": { + "stability": "stable" + }, + "locationInModule": { + "filename": "lib/stability.ts", + "line": 55 + }, + "name": "mutableProperty", + "optional": true, + "type": { + "primitive": "number" + } + } + ] + }, + "jsii-calc.StableEnum": { + "assembly": "jsii-calc", + "docs": { + "stability": "stable" + }, + "fqn": "jsii-calc.StableEnum", + "kind": "enum", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 65 + }, + "members": [ + { + "docs": { + "stability": "stable" + }, + "name": "OPTION_A" + }, + { + "docs": { + "stability": "stable" + }, + "name": "OPTION_B" + } + ], + "name": "StableEnum" + }, + "jsii-calc.StableStruct": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "stable" + }, + "fqn": "jsii-calc.StableStruct", + "kind": "interface", + "locationInModule": { + "filename": "lib/stability.ts", + "line": 39 + }, + "name": "StableStruct", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "stable" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/stability.ts", + "line": 41 + }, + "name": "readonlyProperty", + "type": { + "primitive": "string" + } + } + ] + }, + "jsii-calc.StaticContext": { + "assembly": "jsii-calc", + "docs": { + "remarks": "https://github.com/awslabs/aws-cdk/issues/2304", + "stability": "experimental", + "summary": "This is used to validate the ability to use `this` from within a static context." + }, + "fqn": "jsii-calc.StaticContext", + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1677 + }, + "methods": [ + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1680 + }, + "name": "canAccessStaticContext", + "returns": { + "type": { + "primitive": "boolean" } }, "static": true } ], "name": "StaticContext", - "namespace": "compliance", "properties": [ { "docs": { @@ -9286,12 +10027,12 @@ } ] }, - "jsii-calc.compliance.Statics": { + "jsii-calc.Statics": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.Statics", + "fqn": "jsii-calc.Statics", "initializer": { "docs": { "stability": "experimental" @@ -9356,7 +10097,6 @@ } ], "name": "Statics", - "namespace": "compliance", "properties": [ { "const": true, @@ -9388,7 +10128,7 @@ "name": "ConstObj", "static": true, "type": { - "fqn": "jsii-calc.compliance.DoubleTrouble" + "fqn": "jsii-calc.DoubleTrouble" } }, { @@ -9443,7 +10183,7 @@ "name": "instance", "static": true, "type": { - "fqn": "jsii-calc.compliance.Statics" + "fqn": "jsii-calc.Statics" } }, { @@ -9476,12 +10216,12 @@ } ] }, - "jsii-calc.compliance.StringEnum": { + "jsii-calc.StringEnum": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.StringEnum", + "fqn": "jsii-calc.StringEnum", "kind": "enum", "locationInModule": { "filename": "lib/compliance.ts", @@ -9507,15 +10247,14 @@ "name": "C" } ], - "name": "StringEnum", - "namespace": "compliance" + "name": "StringEnum" }, - "jsii-calc.compliance.StripInternal": { + "jsii-calc.StripInternal": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.StripInternal", + "fqn": "jsii-calc.StripInternal", "initializer": {}, "kind": "class", "locationInModule": { @@ -9523,7 +10262,6 @@ "line": 1480 }, "name": "StripInternal", - "namespace": "compliance", "properties": [ { "docs": { @@ -9540,21 +10278,20 @@ } ] }, - "jsii-calc.compliance.StructA": { + "jsii-calc.StructA": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental", "summary": "We can serialize and deserialize structs without silently ignoring optional fields." }, - "fqn": "jsii-calc.compliance.StructA", + "fqn": "jsii-calc.StructA", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 2003 }, "name": "StructA", - "namespace": "compliance", "properties": [ { "abstract": true, @@ -9605,21 +10342,20 @@ } ] }, - "jsii-calc.compliance.StructB": { + "jsii-calc.StructB": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental", "summary": "This intentionally overlaps with StructA (where only requiredString is provided) to test htat the kernel properly disambiguates those." }, - "fqn": "jsii-calc.compliance.StructB", + "fqn": "jsii-calc.StructB", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 2012 }, "name": "StructB", - "namespace": "compliance", "properties": [ { "abstract": true, @@ -9665,12 +10401,12 @@ "name": "optionalStructA", "optional": true, "type": { - "fqn": "jsii-calc.compliance.StructA" + "fqn": "jsii-calc.StructA" } } ] }, - "jsii-calc.compliance.StructParameterType": { + "jsii-calc.StructParameterType": { "assembly": "jsii-calc", "datatype": true, "docs": { @@ -9678,14 +10414,13 @@ "stability": "experimental", "summary": "Verifies that, in languages that do keyword lifting (e.g: Python), having a struct member with the same name as a positional parameter results in the correct code being emitted." }, - "fqn": "jsii-calc.compliance.StructParameterType", + "fqn": "jsii-calc.StructParameterType", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 2421 }, "name": "StructParameterType", - "namespace": "compliance", "properties": [ { "abstract": true, @@ -9720,13 +10455,13 @@ } ] }, - "jsii-calc.compliance.StructPassing": { + "jsii-calc.StructPassing": { "assembly": "jsii-calc", "docs": { "stability": "external", "summary": "Just because we can." }, - "fqn": "jsii-calc.compliance.StructPassing", + "fqn": "jsii-calc.StructPassing", "initializer": {}, "kind": "class", "locationInModule": { @@ -9753,7 +10488,7 @@ { "name": "inputs", "type": { - "fqn": "jsii-calc.compliance.TopLevelStruct" + "fqn": "jsii-calc.TopLevelStruct" }, "variadic": true } @@ -9785,27 +10520,26 @@ { "name": "input", "type": { - "fqn": "jsii-calc.compliance.TopLevelStruct" + "fqn": "jsii-calc.TopLevelStruct" } } ], "returns": { "type": { - "fqn": "jsii-calc.compliance.TopLevelStruct" + "fqn": "jsii-calc.TopLevelStruct" } }, "static": true } ], - "name": "StructPassing", - "namespace": "compliance" + "name": "StructPassing" }, - "jsii-calc.compliance.StructUnionConsumer": { + "jsii-calc.StructUnionConsumer": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.StructUnionConsumer", + "fqn": "jsii-calc.StructUnionConsumer", "kind": "class", "locationInModule": { "filename": "lib/compliance.ts", @@ -9828,10 +10562,10 @@ "union": { "types": [ { - "fqn": "jsii-calc.compliance.StructA" + "fqn": "jsii-calc.StructA" }, { - "fqn": "jsii-calc.compliance.StructB" + "fqn": "jsii-calc.StructB" } ] } @@ -9861,10 +10595,10 @@ "union": { "types": [ { - "fqn": "jsii-calc.compliance.StructA" + "fqn": "jsii-calc.StructA" }, { - "fqn": "jsii-calc.compliance.StructB" + "fqn": "jsii-calc.StructB" } ] } @@ -9879,23 +10613,21 @@ "static": true } ], - "name": "StructUnionConsumer", - "namespace": "compliance" + "name": "StructUnionConsumer" }, - "jsii-calc.compliance.StructWithJavaReservedWords": { + "jsii-calc.StructWithJavaReservedWords": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.StructWithJavaReservedWords", + "fqn": "jsii-calc.StructWithJavaReservedWords", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 1827 }, "name": "StructWithJavaReservedWords", - "namespace": "compliance", "properties": [ { "abstract": true, @@ -9962,13 +10694,71 @@ } ] }, - "jsii-calc.compliance.SupportsNiceJavaBuilder": { + "jsii-calc.Sum": { + "assembly": "jsii-calc", + "base": "jsii-calc.composition.CompositeOperation", + "docs": { + "stability": "experimental", + "summary": "An operation that sums multiple values." + }, + "fqn": "jsii-calc.Sum", + "initializer": { + "docs": { + "stability": "experimental" + } + }, + "kind": "class", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 186 + }, + "name": "Sum", + "properties": [ + { + "docs": { + "remarks": "Must be implemented by derived classes.", + "stability": "experimental", + "summary": "The expression that this operation consists of." + }, + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 199 + }, + "name": "expression", + "overrides": "jsii-calc.composition.CompositeOperation", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" + } + }, + { + "docs": { + "stability": "experimental", + "summary": "The parts to sum." + }, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 191 + }, + "name": "parts", + "type": { + "collection": { + "elementtype": { + "fqn": "@scope/jsii-calc-lib.Value" + }, + "kind": "array" + } + } + } + ] + }, + "jsii-calc.SupportsNiceJavaBuilder": { "assembly": "jsii-calc", - "base": "jsii-calc.compliance.SupportsNiceJavaBuilderWithRequiredProps", + "base": "jsii-calc.SupportsNiceJavaBuilderWithRequiredProps", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.SupportsNiceJavaBuilder", + "fqn": "jsii-calc.SupportsNiceJavaBuilder", "initializer": { "docs": { "stability": "experimental" @@ -10000,7 +10790,7 @@ "name": "props", "optional": true, "type": { - "fqn": "jsii-calc.compliance.SupportsNiceJavaBuilderProps" + "fqn": "jsii-calc.SupportsNiceJavaBuilderProps" } }, { @@ -10022,7 +10812,6 @@ "line": 1940 }, "name": "SupportsNiceJavaBuilder", - "namespace": "compliance", "properties": [ { "docs": { @@ -10035,7 +10824,7 @@ "line": 1950 }, "name": "id", - "overrides": "jsii-calc.compliance.SupportsNiceJavaBuilderWithRequiredProps", + "overrides": "jsii-calc.SupportsNiceJavaBuilderWithRequiredProps", "type": { "primitive": "number" } @@ -10061,20 +10850,19 @@ } ] }, - "jsii-calc.compliance.SupportsNiceJavaBuilderProps": { + "jsii-calc.SupportsNiceJavaBuilderProps": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.SupportsNiceJavaBuilderProps", + "fqn": "jsii-calc.SupportsNiceJavaBuilderProps", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 1955 }, "name": "SupportsNiceJavaBuilderProps", - "namespace": "compliance", "properties": [ { "abstract": true, @@ -10112,13 +10900,13 @@ } ] }, - "jsii-calc.compliance.SupportsNiceJavaBuilderWithRequiredProps": { + "jsii-calc.SupportsNiceJavaBuilderWithRequiredProps": { "assembly": "jsii-calc", "docs": { "stability": "experimental", "summary": "We can generate fancy builders in Java for classes which take a mix of positional & struct parameters." }, - "fqn": "jsii-calc.compliance.SupportsNiceJavaBuilderWithRequiredProps", + "fqn": "jsii-calc.SupportsNiceJavaBuilderWithRequiredProps", "initializer": { "docs": { "stability": "experimental" @@ -10139,7 +10927,7 @@ }, "name": "props", "type": { - "fqn": "jsii-calc.compliance.SupportsNiceJavaBuilderProps" + "fqn": "jsii-calc.SupportsNiceJavaBuilderProps" } } ] @@ -10150,7 +10938,6 @@ "line": 1927 }, "name": "SupportsNiceJavaBuilderWithRequiredProps", - "namespace": "compliance", "properties": [ { "docs": { @@ -10198,12 +10985,12 @@ } ] }, - "jsii-calc.compliance.SyncVirtualMethods": { + "jsii-calc.SyncVirtualMethods": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.SyncVirtualMethods", + "fqn": "jsii-calc.SyncVirtualMethods", "initializer": {}, "kind": "class", "locationInModule": { @@ -10381,7 +11168,6 @@ } ], "name": "SyncVirtualMethods", - "namespace": "compliance", "properties": [ { "docs": { @@ -10464,12 +11250,12 @@ } ] }, - "jsii-calc.compliance.Thrower": { + "jsii-calc.Thrower": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.Thrower", + "fqn": "jsii-calc.Thrower", "initializer": {}, "kind": "class", "locationInModule": { @@ -10488,23 +11274,21 @@ "name": "throwError" } ], - "name": "Thrower", - "namespace": "compliance" + "name": "Thrower" }, - "jsii-calc.compliance.TopLevelStruct": { + "jsii-calc.TopLevelStruct": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.TopLevelStruct", + "fqn": "jsii-calc.TopLevelStruct", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 1782 }, "name": "TopLevelStruct", - "namespace": "compliance", "properties": [ { "abstract": true, @@ -10541,7 +11325,7 @@ "primitive": "number" }, { - "fqn": "jsii-calc.compliance.SecondLevelStruct" + "fqn": "jsii-calc.SecondLevelStruct" } ] } @@ -10566,20 +11350,64 @@ } ] }, - "jsii-calc.compliance.UnionProperties": { + "jsii-calc.UnaryOperation": { + "abstract": true, + "assembly": "jsii-calc", + "base": "@scope/jsii-calc-lib.Operation", + "docs": { + "stability": "experimental", + "summary": "An operation on a single operand." + }, + "fqn": "jsii-calc.UnaryOperation", + "initializer": { + "docs": { + "stability": "experimental" + }, + "parameters": [ + { + "name": "operand", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" + } + } + ] + }, + "kind": "class", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 93 + }, + "name": "UnaryOperation", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 94 + }, + "name": "operand", + "type": { + "fqn": "@scope/jsii-calc-lib.Value" + } + } + ] + }, + "jsii-calc.UnionProperties": { "assembly": "jsii-calc", "datatype": true, "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.UnionProperties", + "fqn": "jsii-calc.UnionProperties", "kind": "interface", "locationInModule": { "filename": "lib/compliance.ts", "line": 963 }, "name": "UnionProperties", - "namespace": "compliance", "properties": [ { "abstract": true, @@ -10602,7 +11430,7 @@ "primitive": "number" }, { - "fqn": "jsii-calc.compliance.AllTypes" + "fqn": "jsii-calc.AllTypes" } ] } @@ -10635,12 +11463,12 @@ } ] }, - "jsii-calc.compliance.UseBundledDependency": { + "jsii-calc.UseBundledDependency": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.UseBundledDependency", + "fqn": "jsii-calc.UseBundledDependency", "initializer": {}, "kind": "class", "locationInModule": { @@ -10664,16 +11492,15 @@ } } ], - "name": "UseBundledDependency", - "namespace": "compliance" + "name": "UseBundledDependency" }, - "jsii-calc.compliance.UseCalcBase": { + "jsii-calc.UseCalcBase": { "assembly": "jsii-calc", "docs": { "stability": "experimental", "summary": "Depend on a type from jsii-calc-base as a test for awslabs/jsii#128." }, - "fqn": "jsii-calc.compliance.UseCalcBase", + "fqn": "jsii-calc.UseCalcBase", "initializer": {}, "kind": "class", "locationInModule": { @@ -10697,15 +11524,14 @@ } } ], - "name": "UseCalcBase", - "namespace": "compliance" + "name": "UseCalcBase" }, - "jsii-calc.compliance.UsesInterfaceWithProperties": { + "jsii-calc.UsesInterfaceWithProperties": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.UsesInterfaceWithProperties", + "fqn": "jsii-calc.UsesInterfaceWithProperties", "initializer": { "docs": { "stability": "experimental" @@ -10714,7 +11540,7 @@ { "name": "obj", "type": { - "fqn": "jsii-calc.compliance.IInterfaceWithProperties" + "fqn": "jsii-calc.IInterfaceWithProperties" } } ] @@ -10753,7 +11579,7 @@ { "name": "ext", "type": { - "fqn": "jsii-calc.compliance.IInterfaceWithPropertiesExtension" + "fqn": "jsii-calc.IInterfaceWithPropertiesExtension" } } ], @@ -10788,7 +11614,6 @@ } ], "name": "UsesInterfaceWithProperties", - "namespace": "compliance", "properties": [ { "docs": { @@ -10801,17 +11626,17 @@ }, "name": "obj", "type": { - "fqn": "jsii-calc.compliance.IInterfaceWithProperties" + "fqn": "jsii-calc.IInterfaceWithProperties" } } ] }, - "jsii-calc.compliance.VariadicInvoker": { + "jsii-calc.VariadicInvoker": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.VariadicInvoker", + "fqn": "jsii-calc.VariadicInvoker", "initializer": { "docs": { "stability": "experimental" @@ -10820,7 +11645,7 @@ { "name": "method", "type": { - "fqn": "jsii-calc.compliance.VariadicMethod" + "fqn": "jsii-calc.VariadicMethod" } } ] @@ -10862,15 +11687,14 @@ "variadic": true } ], - "name": "VariadicInvoker", - "namespace": "compliance" + "name": "VariadicInvoker" }, - "jsii-calc.compliance.VariadicMethod": { + "jsii-calc.VariadicMethod": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.VariadicMethod", + "fqn": "jsii-calc.VariadicMethod", "initializer": { "docs": { "stability": "experimental" @@ -10938,15 +11762,14 @@ "variadic": true } ], - "name": "VariadicMethod", - "namespace": "compliance" + "name": "VariadicMethod" }, - "jsii-calc.compliance.VirtualMethodPlayground": { + "jsii-calc.VirtualMethodPlayground": { "assembly": "jsii-calc", "docs": { "stability": "experimental" }, - "fqn": "jsii-calc.compliance.VirtualMethodPlayground", + "fqn": "jsii-calc.VirtualMethodPlayground", "initializer": {}, "kind": "class", "locationInModule": { @@ -11073,10 +11896,9 @@ } } ], - "name": "VirtualMethodPlayground", - "namespace": "compliance" + "name": "VirtualMethodPlayground" }, - "jsii-calc.compliance.VoidCallback": { + "jsii-calc.VoidCallback": { "abstract": true, "assembly": "jsii-calc", "docs": { @@ -11084,7 +11906,7 @@ "stability": "experimental", "summary": "This test is used to validate the runtimes can return correctly from a void callback." }, - "fqn": "jsii-calc.compliance.VoidCallback", + "fqn": "jsii-calc.VoidCallback", "initializer": {}, "kind": "class", "locationInModule": { @@ -11096,1224 +11918,333 @@ "docs": { "stability": "experimental" }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1711 - }, - "name": "callMe" - }, - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1715 - }, - "name": "overrideMe", - "protected": true - } - ], - "name": "VoidCallback", - "namespace": "compliance", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1708 - }, - "name": "methodWasCalled", - "type": { - "primitive": "boolean" - } - } - ] - }, - "jsii-calc.compliance.WithPrivatePropertyInConstructor": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Verifies that private property declarations in constructor arguments are hidden." - }, - "fqn": "jsii-calc.compliance.WithPrivatePropertyInConstructor", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "privateField", - "optional": true, - "type": { - "primitive": "string" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1721 - }, - "name": "WithPrivatePropertyInConstructor", - "namespace": "compliance", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/compliance.ts", - "line": 1724 - }, - "name": "success", - "type": { - "primitive": "boolean" - } - } - ] - }, - "jsii-calc.composition.CompositeOperation": { - "abstract": true, - "assembly": "jsii-calc", - "base": "@scope/jsii-calc-lib.Operation", - "docs": { - "stability": "experimental", - "summary": "Abstract operation composed from an expression of other operations." - }, - "fqn": "jsii-calc.composition.CompositeOperation", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 131 - }, - "methods": [ - { - "docs": { - "stability": "experimental", - "summary": "String representation of the value." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 157 - }, - "name": "toString", - "overrides": "@scope/jsii-calc-lib.Operation", - "returns": { - "type": { - "primitive": "string" - } - } - } - ], - "name": "CompositeOperation", - "namespace": "composition", - "properties": [ - { - "abstract": true, - "docs": { - "remarks": "Must be implemented by derived classes.", - "stability": "experimental", - "summary": "The expression that this operation consists of." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 155 - }, - "name": "expression", - "type": { - "fqn": "@scope/jsii-calc-lib.Value" - } - }, - { - "docs": { - "stability": "experimental", - "summary": "The value." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 147 - }, - "name": "value", - "overrides": "@scope/jsii-calc-lib.Value", - "type": { - "primitive": "number" - } - }, - { - "docs": { - "stability": "experimental", - "summary": "A set of postfixes to include in a decorated .toString()." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 145 - }, - "name": "decorationPostfixes", - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" - } - } - }, - { - "docs": { - "stability": "experimental", - "summary": "A set of prefixes to include in a decorated .toString()." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 140 - }, - "name": "decorationPrefixes", - "type": { - "collection": { - "elementtype": { - "primitive": "string" - }, - "kind": "array" - } - } - }, - { - "docs": { - "stability": "experimental", - "summary": "The .toString() style." - }, - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 135 - }, - "name": "stringStyle", - "type": { - "fqn": "jsii-calc.composition.CompositeOperation.CompositionStringStyle" - } - } - ] - }, - "jsii-calc.composition.CompositeOperation.CompositionStringStyle": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental", - "summary": "Style of .toString() output for CompositeOperation." - }, - "fqn": "jsii-calc.composition.CompositeOperation.CompositionStringStyle", - "kind": "enum", - "locationInModule": { - "filename": "lib/calculator.ts", - "line": 173 - }, - "members": [ - { - "docs": { - "stability": "experimental", - "summary": "Normal string expression." - }, - "name": "NORMAL" - }, - { - "docs": { - "stability": "experimental", - "summary": "Decorated string expression." - }, - "name": "DECORATED" - } - ], - "name": "CompositionStringStyle", - "namespace": "composition.CompositeOperation" - }, - "jsii-calc.documented.DocumentedClass": { - "assembly": "jsii-calc", - "docs": { - "remarks": "This is the meat of the TSDoc comment. It may contain\nmultiple lines and multiple paragraphs.\n\nMultiple paragraphs are separated by an empty line.", - "stability": "stable", - "summary": "Here's the first line of the TSDoc comment." - }, - "fqn": "jsii-calc.documented.DocumentedClass", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/documented.ts", - "line": 11 - }, - "methods": [ - { - "docs": { - "remarks": "This will print out a friendly greeting intended for\nthe indicated person.", - "returns": "A number that everyone knows very well", - "stability": "stable", - "summary": "Greet the indicated person." - }, - "locationInModule": { - "filename": "lib/documented.ts", - "line": 22 - }, - "name": "greet", - "parameters": [ - { - "docs": { - "summary": "The person to be greeted." - }, - "name": "greetee", - "optional": true, - "type": { - "fqn": "jsii-calc.documented.Greetee" - } - } - ], - "returns": { - "type": { - "primitive": "number" - } - } - }, - { - "docs": { - "stability": "experimental", - "summary": "Say ¡Hola!" - }, - "locationInModule": { - "filename": "lib/documented.ts", - "line": 32 - }, - "name": "hola" - } - ], - "name": "DocumentedClass", - "namespace": "documented" - }, - "jsii-calc.documented.Greetee": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental", - "summary": "These are some arguments you can pass to a method." - }, - "fqn": "jsii-calc.documented.Greetee", - "kind": "interface", - "locationInModule": { - "filename": "lib/documented.ts", - "line": 40 - }, - "name": "Greetee", - "namespace": "documented", - "properties": [ - { - "abstract": true, - "docs": { - "default": "world", - "stability": "experimental", - "summary": "The name of the greetee." - }, - "immutable": true, - "locationInModule": { - "filename": "lib/documented.ts", - "line": 46 - }, - "name": "name", - "optional": true, - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.documented.Old": { - "assembly": "jsii-calc", - "docs": { - "deprecated": "Use the new class", - "stability": "deprecated", - "summary": "Old class." - }, - "fqn": "jsii-calc.documented.Old", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/documented.ts", - "line": 54 - }, - "methods": [ - { - "docs": { - "stability": "deprecated", - "summary": "Doo wop that thing." - }, - "locationInModule": { - "filename": "lib/documented.ts", - "line": 58 - }, - "name": "doAThing" - } - ], - "name": "Old", - "namespace": "documented" - }, - "jsii-calc.erasureTests.IJSII417Derived": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.erasureTests.IJSII417Derived", - "interfaces": [ - "jsii-calc.erasureTests.IJSII417PublicBaseOfBase" - ], - "kind": "interface", - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 37 - }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 35 - }, - "name": "bar" - }, - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 38 - }, - "name": "baz" - } - ], - "name": "IJSII417Derived", - "namespace": "erasureTests", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 34 - }, - "name": "property", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.erasureTests.IJSII417PublicBaseOfBase": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.erasureTests.IJSII417PublicBaseOfBase", - "kind": "interface", - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 30 - }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 31 - }, - "name": "foo" - } - ], - "name": "IJSII417PublicBaseOfBase", - "namespace": "erasureTests", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 28 - }, - "name": "hasRoot", - "type": { - "primitive": "boolean" - } - } - ] - }, - "jsii-calc.erasureTests.IJsii487External": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.erasureTests.IJsii487External", - "kind": "interface", - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 45 - }, - "name": "IJsii487External", - "namespace": "erasureTests" - }, - "jsii-calc.erasureTests.IJsii487External2": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.erasureTests.IJsii487External2", - "kind": "interface", - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 46 - }, - "name": "IJsii487External2", - "namespace": "erasureTests" - }, - "jsii-calc.erasureTests.IJsii496": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.erasureTests.IJsii496", - "kind": "interface", - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 54 - }, - "name": "IJsii496", - "namespace": "erasureTests" - }, - "jsii-calc.erasureTests.JSII417Derived": { - "assembly": "jsii-calc", - "base": "jsii-calc.erasureTests.JSII417PublicBaseOfBase", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.erasureTests.JSII417Derived", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "property", - "type": { - "primitive": "string" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 20 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 21 - }, - "name": "bar" - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 24 - }, - "name": "baz" - } - ], - "name": "JSII417Derived", - "namespace": "erasureTests", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 15 - }, - "name": "property", - "protected": true, - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.erasureTests.JSII417PublicBaseOfBase": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.erasureTests.JSII417PublicBaseOfBase", - "initializer": {}, - "kind": "class", - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 8 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 9 - }, - "name": "makeInstance", - "returns": { - "type": { - "fqn": "jsii-calc.erasureTests.JSII417PublicBaseOfBase" - } - }, - "static": true - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 12 - }, - "name": "foo" - } - ], - "name": "JSII417PublicBaseOfBase", - "namespace": "erasureTests", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 6 - }, - "name": "hasRoot", - "type": { - "primitive": "boolean" - } - } - ] - }, - "jsii-calc.erasureTests.Jsii487Derived": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.erasureTests.Jsii487Derived", - "initializer": {}, - "interfaces": [ - "jsii-calc.erasureTests.IJsii487External2", - "jsii-calc.erasureTests.IJsii487External" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 48 - }, - "name": "Jsii487Derived", - "namespace": "erasureTests" - }, - "jsii-calc.erasureTests.Jsii496Derived": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.erasureTests.Jsii496Derived", - "initializer": {}, - "interfaces": [ - "jsii-calc.erasureTests.IJsii496" - ], - "kind": "class", - "locationInModule": { - "filename": "lib/erasures.ts", - "line": 56 - }, - "name": "Jsii496Derived", - "namespace": "erasureTests" - }, - "jsii-calc.stability_annotations.DeprecatedClass": { - "assembly": "jsii-calc", - "docs": { - "deprecated": "a pretty boring class", - "stability": "deprecated" - }, - "fqn": "jsii-calc.stability_annotations.DeprecatedClass", - "initializer": { - "docs": { - "deprecated": "this constructor is \"just\" okay", - "stability": "deprecated" - }, - "parameters": [ - { - "name": "readonlyString", - "type": { - "primitive": "string" - } - }, - { - "name": "mutableNumber", - "optional": true, - "type": { - "primitive": "number" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 85 - }, - "methods": [ - { - "docs": { - "deprecated": "it was a bad idea", - "stability": "deprecated" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 96 - }, - "name": "method" - } - ], - "name": "DeprecatedClass", - "namespace": "stability_annotations", - "properties": [ - { - "docs": { - "deprecated": "this is not always \"wazoo\", be ready to be disappointed", - "stability": "deprecated" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 87 - }, - "name": "readonlyProperty", - "type": { - "primitive": "string" - } - }, - { - "docs": { - "deprecated": "shouldn't have been mutable", - "stability": "deprecated" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 89 - }, - "name": "mutableProperty", - "optional": true, - "type": { - "primitive": "number" - } - } - ] - }, - "jsii-calc.stability_annotations.DeprecatedEnum": { - "assembly": "jsii-calc", - "docs": { - "deprecated": "your deprecated selection of bad options", - "stability": "deprecated" - }, - "fqn": "jsii-calc.stability_annotations.DeprecatedEnum", - "kind": "enum", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 99 - }, - "members": [ - { - "docs": { - "deprecated": "option A is not great", - "stability": "deprecated" - }, - "name": "OPTION_A" - }, - { - "docs": { - "deprecated": "option B is kinda bad, too", - "stability": "deprecated" - }, - "name": "OPTION_B" - } - ], - "name": "DeprecatedEnum", - "namespace": "stability_annotations" - }, - "jsii-calc.stability_annotations.DeprecatedStruct": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "deprecated": "it just wraps a string", - "stability": "deprecated" - }, - "fqn": "jsii-calc.stability_annotations.DeprecatedStruct", - "kind": "interface", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 73 - }, - "name": "DeprecatedStruct", - "namespace": "stability_annotations", - "properties": [ - { - "abstract": true, - "docs": { - "deprecated": "well, yeah", - "stability": "deprecated" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 75 - }, - "name": "readonlyProperty", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.stability_annotations.ExperimentalClass": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.stability_annotations.ExperimentalClass", - "initializer": { - "docs": { - "stability": "experimental" - }, - "parameters": [ - { - "name": "readonlyString", - "type": { - "primitive": "string" - } - }, - { - "name": "mutableNumber", - "optional": true, - "type": { - "primitive": "number" - } - } - ] - }, - "kind": "class", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 16 - }, - "methods": [ - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 28 - }, - "name": "method" - } - ], - "name": "ExperimentalClass", - "namespace": "stability_annotations", - "properties": [ - { - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 18 - }, - "name": "readonlyProperty", - "type": { - "primitive": "string" - } - }, - { - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 20 - }, - "name": "mutableProperty", - "optional": true, - "type": { - "primitive": "number" - } - } - ] - }, - "jsii-calc.stability_annotations.ExperimentalEnum": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.stability_annotations.ExperimentalEnum", - "kind": "enum", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 31 - }, - "members": [ - { - "docs": { - "stability": "experimental" - }, - "name": "OPTION_A" - }, - { - "docs": { - "stability": "experimental" - }, - "name": "OPTION_B" - } - ], - "name": "ExperimentalEnum", - "namespace": "stability_annotations" - }, - "jsii-calc.stability_annotations.ExperimentalStruct": { - "assembly": "jsii-calc", - "datatype": true, - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.stability_annotations.ExperimentalStruct", - "kind": "interface", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 4 - }, - "name": "ExperimentalStruct", - "namespace": "stability_annotations", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "immutable": true, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 6 - }, - "name": "readonlyProperty", - "type": { - "primitive": "string" - } - } - ] - }, - "jsii-calc.stability_annotations.IDeprecatedInterface": { - "assembly": "jsii-calc", - "docs": { - "deprecated": "useless interface", - "stability": "deprecated" - }, - "fqn": "jsii-calc.stability_annotations.IDeprecatedInterface", - "kind": "interface", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 78 - }, - "methods": [ - { - "abstract": true, - "docs": { - "deprecated": "services no purpose", - "stability": "deprecated" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 82 - }, - "name": "method" - } - ], - "name": "IDeprecatedInterface", - "namespace": "stability_annotations", - "properties": [ - { - "abstract": true, - "docs": { - "deprecated": "could be better", - "stability": "deprecated" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 80 - }, - "name": "mutableProperty", - "optional": true, - "type": { - "primitive": "number" - } - } - ] - }, - "jsii-calc.stability_annotations.IExperimentalInterface": { - "assembly": "jsii-calc", - "docs": { - "stability": "experimental" - }, - "fqn": "jsii-calc.stability_annotations.IExperimentalInterface", - "kind": "interface", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 9 - }, - "methods": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 13 - }, - "name": "method" - } - ], - "name": "IExperimentalInterface", - "namespace": "stability_annotations", - "properties": [ - { - "abstract": true, - "docs": { - "stability": "experimental" - }, - "locationInModule": { - "filename": "lib/stability.ts", - "line": 11 - }, - "name": "mutableProperty", - "optional": true, - "type": { - "primitive": "number" - } - } - ] - }, - "jsii-calc.stability_annotations.IStableInterface": { - "assembly": "jsii-calc", - "docs": { - "stability": "stable" - }, - "fqn": "jsii-calc.stability_annotations.IStableInterface", - "kind": "interface", - "locationInModule": { - "filename": "lib/stability.ts", - "line": 44 - }, - "methods": [ + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1711 + }, + "name": "callMe" + }, { "abstract": true, "docs": { - "stability": "stable" + "stability": "experimental" }, "locationInModule": { - "filename": "lib/stability.ts", - "line": 48 + "filename": "lib/compliance.ts", + "line": 1715 }, - "name": "method" + "name": "overrideMe", + "protected": true } ], - "name": "IStableInterface", - "namespace": "stability_annotations", + "name": "VoidCallback", "properties": [ { - "abstract": true, "docs": { - "stability": "stable" + "stability": "experimental" }, + "immutable": true, "locationInModule": { - "filename": "lib/stability.ts", - "line": 46 + "filename": "lib/compliance.ts", + "line": 1708 }, - "name": "mutableProperty", - "optional": true, + "name": "methodWasCalled", "type": { - "primitive": "number" + "primitive": "boolean" } } ] }, - "jsii-calc.stability_annotations.StableClass": { + "jsii-calc.WithPrivatePropertyInConstructor": { "assembly": "jsii-calc", "docs": { - "stability": "stable" + "stability": "experimental", + "summary": "Verifies that private property declarations in constructor arguments are hidden." }, - "fqn": "jsii-calc.stability_annotations.StableClass", + "fqn": "jsii-calc.WithPrivatePropertyInConstructor", "initializer": { "docs": { - "stability": "stable" + "stability": "experimental" }, "parameters": [ { - "name": "readonlyString", - "type": { - "primitive": "string" - } - }, - { - "name": "mutableNumber", + "name": "privateField", "optional": true, "type": { - "primitive": "number" + "primitive": "string" } } ] }, "kind": "class", "locationInModule": { - "filename": "lib/stability.ts", - "line": 51 + "filename": "lib/compliance.ts", + "line": 1721 + }, + "name": "WithPrivatePropertyInConstructor", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 1724 + }, + "name": "success", + "type": { + "primitive": "boolean" + } + } + ] + }, + "jsii-calc.composition.CompositeOperation": { + "abstract": true, + "assembly": "jsii-calc", + "base": "@scope/jsii-calc-lib.Operation", + "docs": { + "stability": "experimental", + "summary": "Abstract operation composed from an expression of other operations." + }, + "fqn": "jsii-calc.composition.CompositeOperation", + "initializer": {}, + "kind": "class", + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 131 }, "methods": [ { "docs": { - "stability": "stable" + "stability": "experimental", + "summary": "String representation of the value." }, "locationInModule": { - "filename": "lib/stability.ts", - "line": 62 + "filename": "lib/calculator.ts", + "line": 157 }, - "name": "method" + "name": "toString", + "overrides": "@scope/jsii-calc-lib.Operation", + "returns": { + "type": { + "primitive": "string" + } + } } ], - "name": "StableClass", - "namespace": "stability_annotations", + "name": "CompositeOperation", + "namespace": "composition", "properties": [ { + "abstract": true, "docs": { - "stability": "stable" + "remarks": "Must be implemented by derived classes.", + "stability": "experimental", + "summary": "The expression that this operation consists of." }, "immutable": true, "locationInModule": { - "filename": "lib/stability.ts", - "line": 53 + "filename": "lib/calculator.ts", + "line": 155 }, - "name": "readonlyProperty", + "name": "expression", "type": { - "primitive": "string" + "fqn": "@scope/jsii-calc-lib.Value" } }, { "docs": { - "stability": "stable" + "stability": "experimental", + "summary": "The value." }, + "immutable": true, "locationInModule": { - "filename": "lib/stability.ts", - "line": 55 + "filename": "lib/calculator.ts", + "line": 147 }, - "name": "mutableProperty", - "optional": true, + "name": "value", + "overrides": "@scope/jsii-calc-lib.Value", "type": { "primitive": "number" } + }, + { + "docs": { + "stability": "experimental", + "summary": "A set of postfixes to include in a decorated .toString()." + }, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 145 + }, + "name": "decorationPostfixes", + "type": { + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "array" + } + } + }, + { + "docs": { + "stability": "experimental", + "summary": "A set of prefixes to include in a decorated .toString()." + }, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 140 + }, + "name": "decorationPrefixes", + "type": { + "collection": { + "elementtype": { + "primitive": "string" + }, + "kind": "array" + } + } + }, + { + "docs": { + "stability": "experimental", + "summary": "The .toString() style." + }, + "locationInModule": { + "filename": "lib/calculator.ts", + "line": 135 + }, + "name": "stringStyle", + "type": { + "fqn": "jsii-calc.composition.CompositeOperation.CompositionStringStyle" + } } ] }, - "jsii-calc.stability_annotations.StableEnum": { + "jsii-calc.composition.CompositeOperation.CompositionStringStyle": { "assembly": "jsii-calc", "docs": { - "stability": "stable" + "stability": "experimental", + "summary": "Style of .toString() output for CompositeOperation." }, - "fqn": "jsii-calc.stability_annotations.StableEnum", + "fqn": "jsii-calc.composition.CompositeOperation.CompositionStringStyle", "kind": "enum", "locationInModule": { - "filename": "lib/stability.ts", - "line": 65 + "filename": "lib/calculator.ts", + "line": 173 }, "members": [ { "docs": { - "stability": "stable" + "stability": "experimental", + "summary": "Normal string expression." }, - "name": "OPTION_A" + "name": "NORMAL" }, { "docs": { - "stability": "stable" + "stability": "experimental", + "summary": "Decorated string expression." }, - "name": "OPTION_B" + "name": "DECORATED" } ], - "name": "StableEnum", - "namespace": "stability_annotations" + "name": "CompositionStringStyle", + "namespace": "composition.CompositeOperation" }, - "jsii-calc.stability_annotations.StableStruct": { + "jsii-calc.submodule.child.Structure": { "assembly": "jsii-calc", "datatype": true, "docs": { - "stability": "stable" + "stability": "experimental" }, - "fqn": "jsii-calc.stability_annotations.StableStruct", + "fqn": "jsii-calc.submodule.child.Structure", "kind": "interface", "locationInModule": { - "filename": "lib/stability.ts", - "line": 39 + "filename": "lib/submodule/child/index.ts", + "line": 1 }, - "name": "StableStruct", - "namespace": "stability_annotations", + "name": "Structure", + "namespace": "submodule.child", "properties": [ { "abstract": true, "docs": { - "stability": "stable" + "stability": "experimental" }, "immutable": true, "locationInModule": { - "filename": "lib/stability.ts", - "line": 41 + "filename": "lib/submodule/child/index.ts", + "line": 2 }, - "name": "readonlyProperty", + "name": "bool", + "type": { + "primitive": "boolean" + } + } + ] + }, + "jsii-calc.submodule.nested_submodule.Namespaced": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.submodule.nested_submodule.Namespaced", + "interfaces": [ + "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced" + ], + "kind": "class", + "locationInModule": { + "filename": "lib/submodule/index.ts", + "line": 8 + }, + "name": "Namespaced", + "namespace": "submodule.nested_submodule", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/submodule/index.ts", + "line": 9 + }, + "name": "definedAt", + "overrides": "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced", + "type": { + "primitive": "string" + } + } + ] + }, + "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced", + "kind": "interface", + "locationInModule": { + "filename": "lib/submodule/index.ts", + "line": 3 + }, + "name": "INamespaced", + "namespace": "submodule.nested_submodule.deeplyNested", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/submodule/index.ts", + "line": 4 + }, + "name": "definedAt", "type": { "primitive": "string" } @@ -12322,5 +12253,5 @@ } }, "version": "1.1.0", - "fingerprint": "tFgCMeRkHnCWBVGvHrYgR5SWZ0f5dYueD9CbBxCxpmY=" + "fingerprint": "q2bAmQlqnFhbni6+NVgvKc4llulsPPEXGKkQvoTi1jo=" } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AbstractClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClass.cs similarity index 88% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AbstractClass.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClass.cs index b2fc112964..674cac8f98 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AbstractClass.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClass.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.AbstractClass), fullyQualifiedName: "jsii-calc.compliance.AbstractClass")] - public abstract class AbstractClass : Amazon.JSII.Tests.CalculatorNamespace.Compliance.AbstractClassBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IInterfaceImplementedByAbstractClass + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractClass), fullyQualifiedName: "jsii-calc.AbstractClass")] + public abstract class AbstractClass : Amazon.JSII.Tests.CalculatorNamespace.AbstractClassBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceImplementedByAbstractClass { protected AbstractClass(): base(new DeputyProps(new object[]{})) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AbstractClassBase.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassBase.cs similarity index 89% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AbstractClassBase.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassBase.cs index 7b0cf3177b..04bb8920c1 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AbstractClassBase.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassBase.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.AbstractClassBase), fullyQualifiedName: "jsii-calc.compliance.AbstractClassBase")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractClassBase), fullyQualifiedName: "jsii-calc.AbstractClassBase")] public abstract class AbstractClassBase : DeputyBase { protected AbstractClassBase(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AbstractClassBaseProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassBaseProxy.cs similarity index 76% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AbstractClassBaseProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassBaseProxy.cs index 4cde73d468..12666dca56 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AbstractClassBaseProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassBaseProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.AbstractClassBase), fullyQualifiedName: "jsii-calc.compliance.AbstractClassBase")] - internal sealed class AbstractClassBaseProxy : Amazon.JSII.Tests.CalculatorNamespace.Compliance.AbstractClassBase + [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractClassBase), fullyQualifiedName: "jsii-calc.AbstractClassBase")] + internal sealed class AbstractClassBaseProxy : Amazon.JSII.Tests.CalculatorNamespace.AbstractClassBase { private AbstractClassBaseProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AbstractClassProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassProxy.cs similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AbstractClassProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassProxy.cs index f34419fbbf..16218d84ec 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AbstractClassProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.AbstractClass), fullyQualifiedName: "jsii-calc.compliance.AbstractClass")] - internal sealed class AbstractClassProxy : Amazon.JSII.Tests.CalculatorNamespace.Compliance.AbstractClass + [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractClass), fullyQualifiedName: "jsii-calc.AbstractClass")] + internal sealed class AbstractClassProxy : Amazon.JSII.Tests.CalculatorNamespace.AbstractClass { private AbstractClassProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AbstractClassReturner.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassReturner.cs similarity index 66% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AbstractClassReturner.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassReturner.cs index 818446cd86..c6b090cfca 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AbstractClassReturner.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AbstractClassReturner.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.AbstractClassReturner), fullyQualifiedName: "jsii-calc.compliance.AbstractClassReturner")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractClassReturner), fullyQualifiedName: "jsii-calc.AbstractClassReturner")] public class AbstractClassReturner : DeputyBase { public AbstractClassReturner(): base(new DeputyProps(new object[]{})) @@ -31,28 +31,28 @@ protected AbstractClassReturner(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "giveMeAbstract", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.AbstractClass\"}}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.Compliance.AbstractClass GiveMeAbstract() + [JsiiMethod(name: "giveMeAbstract", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.AbstractClass\"}}")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.AbstractClass GiveMeAbstract() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } /// /// Stability: Experimental /// - [JsiiMethod(name: "giveMeInterface", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.IInterfaceImplementedByAbstractClass\"}}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.Compliance.IInterfaceImplementedByAbstractClass GiveMeInterface() + [JsiiMethod(name: "giveMeInterface", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.IInterfaceImplementedByAbstractClass\"}}")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.IInterfaceImplementedByAbstractClass GiveMeInterface() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } /// /// Stability: Experimental /// - [JsiiProperty(name: "returnAbstractFromProperty", typeJson: "{\"fqn\":\"jsii-calc.compliance.AbstractClassBase\"}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.Compliance.AbstractClassBase ReturnAbstractFromProperty + [JsiiProperty(name: "returnAbstractFromProperty", typeJson: "{\"fqn\":\"jsii-calc.AbstractClassBase\"}")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.AbstractClassBase ReturnAbstractFromProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty(); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AllTypes.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AllTypes.cs similarity index 91% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AllTypes.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AllTypes.cs index b5e04be03c..2c19f2ae0f 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AllTypes.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AllTypes.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// This class includes property for all types supported by jsii. /// @@ -11,7 +11,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.AllTypes), fullyQualifiedName: "jsii-calc.compliance.AllTypes")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AllTypes), fullyQualifiedName: "jsii-calc.AllTypes")] public class AllTypes : DeputyBase { public AllTypes(): base(new DeputyProps(new object[]{})) @@ -53,10 +53,10 @@ public virtual object AnyOut() /// /// Stability: Experimental /// - [JsiiMethod(name: "enumMethod", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.StringEnum\"}}", parametersJson: "[{\"name\":\"value\",\"type\":{\"fqn\":\"jsii-calc.compliance.StringEnum\"}}]")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.Compliance.StringEnum EnumMethod(Amazon.JSII.Tests.CalculatorNamespace.Compliance.StringEnum @value) + [JsiiMethod(name: "enumMethod", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.StringEnum\"}}", parametersJson: "[{\"name\":\"value\",\"type\":{\"fqn\":\"jsii-calc.StringEnum\"}}]")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.StringEnum EnumMethod(Amazon.JSII.Tests.CalculatorNamespace.StringEnum @value) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.StringEnum)}, new object[]{@value}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.StringEnum)}, new object[]{@value}); } /// @@ -131,10 +131,10 @@ public virtual System.DateTime DateProperty /// /// Stability: Experimental /// - [JsiiProperty(name: "enumProperty", typeJson: "{\"fqn\":\"jsii-calc.compliance.AllTypesEnum\"}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.Compliance.AllTypesEnum EnumProperty + [JsiiProperty(name: "enumProperty", typeJson: "{\"fqn\":\"jsii-calc.AllTypesEnum\"}")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.AllTypesEnum EnumProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty(); set => SetInstanceProperty(value); } @@ -242,10 +242,10 @@ public virtual object UnknownProperty /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: "optionalEnumValue", typeJson: "{\"fqn\":\"jsii-calc.compliance.StringEnum\"}", isOptional: true)] - public virtual Amazon.JSII.Tests.CalculatorNamespace.Compliance.StringEnum? OptionalEnumValue + [JsiiProperty(name: "optionalEnumValue", typeJson: "{\"fqn\":\"jsii-calc.StringEnum\"}", isOptional: true)] + public virtual Amazon.JSII.Tests.CalculatorNamespace.StringEnum? OptionalEnumValue { - get => GetInstanceProperty(); + get => GetInstanceProperty(); set => SetInstanceProperty(value); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AllTypesEnum.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AllTypesEnum.cs similarity index 88% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AllTypesEnum.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AllTypesEnum.cs index 86bd0c345c..f02269efed 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AllTypesEnum.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AllTypesEnum.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiEnum(nativeType: typeof(AllTypesEnum), fullyQualifiedName: "jsii-calc.compliance.AllTypesEnum")] + [JsiiEnum(nativeType: typeof(AllTypesEnum), fullyQualifiedName: "jsii-calc.AllTypesEnum")] public enum AllTypesEnum { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AllowedMethodNames.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AllowedMethodNames.cs similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AllowedMethodNames.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AllowedMethodNames.cs index 265969f88c..bc997d179b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AllowedMethodNames.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AllowedMethodNames.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.AllowedMethodNames), fullyQualifiedName: "jsii-calc.compliance.AllowedMethodNames")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AllowedMethodNames), fullyQualifiedName: "jsii-calc.AllowedMethodNames")] public class AllowedMethodNames : DeputyBase { public AllowedMethodNames(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AmbiguousParameters.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AmbiguousParameters.cs similarity index 67% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AmbiguousParameters.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AmbiguousParameters.cs index 04ef0a0b59..7d8a8b3dee 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AmbiguousParameters.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AmbiguousParameters.cs @@ -2,18 +2,18 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.AmbiguousParameters), fullyQualifiedName: "jsii-calc.compliance.AmbiguousParameters", parametersJson: "[{\"name\":\"scope\",\"type\":{\"fqn\":\"jsii-calc.compliance.Bell\"}},{\"name\":\"props\",\"type\":{\"fqn\":\"jsii-calc.compliance.StructParameterType\"}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AmbiguousParameters), fullyQualifiedName: "jsii-calc.AmbiguousParameters", parametersJson: "[{\"name\":\"scope\",\"type\":{\"fqn\":\"jsii-calc.Bell\"}},{\"name\":\"props\",\"type\":{\"fqn\":\"jsii-calc.StructParameterType\"}}]")] public class AmbiguousParameters : DeputyBase { /// /// Stability: Experimental /// - public AmbiguousParameters(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Bell scope, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IStructParameterType props): base(new DeputyProps(new object[]{scope, props})) + public AmbiguousParameters(Amazon.JSII.Tests.CalculatorNamespace.Bell scope, Amazon.JSII.Tests.CalculatorNamespace.IStructParameterType props): base(new DeputyProps(new object[]{scope, props})) { } @@ -34,19 +34,19 @@ protected AmbiguousParameters(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiProperty(name: "props", typeJson: "{\"fqn\":\"jsii-calc.compliance.StructParameterType\"}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.Compliance.IStructParameterType Props + [JsiiProperty(name: "props", typeJson: "{\"fqn\":\"jsii-calc.StructParameterType\"}")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.IStructParameterType Props { - get => GetInstanceProperty(); + get => GetInstanceProperty(); } /// /// Stability: Experimental /// - [JsiiProperty(name: "scope", typeJson: "{\"fqn\":\"jsii-calc.compliance.Bell\"}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.Compliance.Bell Scope + [JsiiProperty(name: "scope", typeJson: "{\"fqn\":\"jsii-calc.Bell\"}")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.Bell Scope { - get => GetInstanceProperty(); + get => GetInstanceProperty(); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AnonymousImplementationProvider.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AnonymousImplementationProvider.cs similarity index 67% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AnonymousImplementationProvider.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AnonymousImplementationProvider.cs index 9a5e1e3def..30b741eff4 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AnonymousImplementationProvider.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AnonymousImplementationProvider.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.AnonymousImplementationProvider), fullyQualifiedName: "jsii-calc.compliance.AnonymousImplementationProvider")] - public class AnonymousImplementationProvider : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IAnonymousImplementationProvider + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AnonymousImplementationProvider), fullyQualifiedName: "jsii-calc.AnonymousImplementationProvider")] + public class AnonymousImplementationProvider : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IAnonymousImplementationProvider { public AnonymousImplementationProvider(): base(new DeputyProps(new object[]{})) { @@ -31,19 +31,19 @@ protected AnonymousImplementationProvider(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "provideAsClass", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.Implementation\"}}", isOverride: true)] - public virtual Amazon.JSII.Tests.CalculatorNamespace.Compliance.Implementation ProvideAsClass() + [JsiiMethod(name: "provideAsClass", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.Implementation\"}}", isOverride: true)] + public virtual Amazon.JSII.Tests.CalculatorNamespace.Implementation ProvideAsClass() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } /// /// Stability: Experimental /// - [JsiiMethod(name: "provideAsInterface", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.IAnonymouslyImplementMe\"}}", isOverride: true)] - public virtual Amazon.JSII.Tests.CalculatorNamespace.Compliance.IAnonymouslyImplementMe ProvideAsInterface() + [JsiiMethod(name: "provideAsInterface", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.IAnonymouslyImplementMe\"}}", isOverride: true)] + public virtual Amazon.JSII.Tests.CalculatorNamespace.IAnonymouslyImplementMe ProvideAsInterface() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AsyncVirtualMethods.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AsyncVirtualMethods.cs similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AsyncVirtualMethods.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AsyncVirtualMethods.cs index 0a3aa9cce7..111842b88f 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AsyncVirtualMethods.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AsyncVirtualMethods.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.AsyncVirtualMethods), fullyQualifiedName: "jsii-calc.compliance.AsyncVirtualMethods")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AsyncVirtualMethods), fullyQualifiedName: "jsii-calc.AsyncVirtualMethods")] public class AsyncVirtualMethods : DeputyBase { public AsyncVirtualMethods(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AugmentableClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AugmentableClass.cs similarity index 91% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AugmentableClass.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AugmentableClass.cs index f85be3865e..8014391671 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/AugmentableClass.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/AugmentableClass.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.AugmentableClass), fullyQualifiedName: "jsii-calc.compliance.AugmentableClass")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AugmentableClass), fullyQualifiedName: "jsii-calc.AugmentableClass")] public class AugmentableClass : DeputyBase { public AugmentableClass(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/BaseJsii976.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseJsii976.cs similarity index 88% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/BaseJsii976.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseJsii976.cs index 98814352fd..ddab3c0b59 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/BaseJsii976.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/BaseJsii976.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.BaseJsii976), fullyQualifiedName: "jsii-calc.compliance.BaseJsii976")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.BaseJsii976), fullyQualifiedName: "jsii-calc.BaseJsii976")] public class BaseJsii976 : DeputyBase { public BaseJsii976(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Bell.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Bell.cs similarity index 91% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Bell.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Bell.cs index e15214c6bf..1422b6b179 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Bell.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Bell.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Bell), fullyQualifiedName: "jsii-calc.compliance.Bell")] - public class Bell : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IBell + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Bell), fullyQualifiedName: "jsii-calc.Bell")] + public class Bell : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IBell { public Bell(): base(new DeputyProps(new object[]{})) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ChildStruct982.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ChildStruct982.cs similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ChildStruct982.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ChildStruct982.cs index 90354d2e98..1c27bda562 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ChildStruct982.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ChildStruct982.cs @@ -2,15 +2,15 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { #pragma warning disable CS8618 /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.compliance.ChildStruct982")] - public class ChildStruct982 : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IChildStruct982 + [JsiiByValue(fqn: "jsii-calc.ChildStruct982")] + public class ChildStruct982 : Amazon.JSII.Tests.CalculatorNamespace.IChildStruct982 { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ChildStruct982Proxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ChildStruct982Proxy.cs similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ChildStruct982Proxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ChildStruct982Proxy.cs index cd51224e30..e54993d05a 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ChildStruct982Proxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ChildStruct982Proxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IChildStruct982), fullyQualifiedName: "jsii-calc.compliance.ChildStruct982")] - internal sealed class ChildStruct982Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IChildStruct982 + [JsiiTypeProxy(nativeType: typeof(IChildStruct982), fullyQualifiedName: "jsii-calc.ChildStruct982")] + internal sealed class ChildStruct982Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IChildStruct982 { private ChildStruct982Proxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassThatImplementsTheInternalInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassThatImplementsTheInternalInterface.cs similarity index 89% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassThatImplementsTheInternalInterface.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassThatImplementsTheInternalInterface.cs index d84b488d04..1e95857ca2 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassThatImplementsTheInternalInterface.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassThatImplementsTheInternalInterface.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ClassThatImplementsTheInternalInterface), fullyQualifiedName: "jsii-calc.compliance.ClassThatImplementsTheInternalInterface")] - public class ClassThatImplementsTheInternalInterface : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.INonInternalInterface + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassThatImplementsTheInternalInterface), fullyQualifiedName: "jsii-calc.ClassThatImplementsTheInternalInterface")] + public class ClassThatImplementsTheInternalInterface : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.INonInternalInterface { public ClassThatImplementsTheInternalInterface(): base(new DeputyProps(new object[]{})) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassThatImplementsThePrivateInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassThatImplementsThePrivateInterface.cs similarity index 89% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassThatImplementsThePrivateInterface.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassThatImplementsThePrivateInterface.cs index c0c98a9142..d96eeb2564 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassThatImplementsThePrivateInterface.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassThatImplementsThePrivateInterface.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ClassThatImplementsThePrivateInterface), fullyQualifiedName: "jsii-calc.compliance.ClassThatImplementsThePrivateInterface")] - public class ClassThatImplementsThePrivateInterface : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.INonInternalInterface + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassThatImplementsThePrivateInterface), fullyQualifiedName: "jsii-calc.ClassThatImplementsThePrivateInterface")] + public class ClassThatImplementsThePrivateInterface : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.INonInternalInterface { public ClassThatImplementsThePrivateInterface(): base(new DeputyProps(new object[]{})) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassWithCollections.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithCollections.cs similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassWithCollections.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithCollections.cs index 882cc19915..1253a83880 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassWithCollections.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithCollections.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ClassWithCollections), fullyQualifiedName: "jsii-calc.compliance.ClassWithCollections", parametersJson: "[{\"name\":\"map\",\"type\":{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"map\"}}},{\"name\":\"array\",\"type\":{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"array\"}}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections), fullyQualifiedName: "jsii-calc.ClassWithCollections", parametersJson: "[{\"name\":\"map\",\"type\":{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"map\"}}},{\"name\":\"array\",\"type\":{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"array\"}}}]")] public class ClassWithCollections : DeputyBase { /// @@ -37,7 +37,7 @@ protected ClassWithCollections(DeputyProps props): base(props) [JsiiMethod(name: "createAList", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"array\"}}}")] public static string[] CreateAList() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ClassWithCollections), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections), new System.Type[]{}, new object[]{}); } /// @@ -46,7 +46,7 @@ public static string[] CreateAList() [JsiiMethod(name: "createAMap", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"map\"}}}")] public static System.Collections.Generic.IDictionary CreateAMap() { - return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ClassWithCollections), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections), new System.Type[]{}, new object[]{}); } /// @@ -55,8 +55,8 @@ public static System.Collections.Generic.IDictionary CreateAMap( [JsiiProperty(name: "staticArray", typeJson: "{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"array\"}}")] public static string[] StaticArray { - get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ClassWithCollections)); - set => SetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ClassWithCollections), value); + get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections)); + set => SetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections), value); } /// @@ -65,8 +65,8 @@ public static string[] StaticArray [JsiiProperty(name: "staticMap", typeJson: "{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"map\"}}")] public static System.Collections.Generic.IDictionary StaticMap { - get => GetStaticProperty>(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ClassWithCollections)); - set => SetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ClassWithCollections), value); + get => GetStaticProperty>(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections)); + set => SetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections), value); } /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassWithDocs.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithDocs.cs similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassWithDocs.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithDocs.cs index b519816d65..04b2fc29e1 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassWithDocs.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithDocs.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// This class has docs. /// @@ -20,7 +20,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance /// { /// } /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ClassWithDocs), fullyQualifiedName: "jsii-calc.compliance.ClassWithDocs")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithDocs), fullyQualifiedName: "jsii-calc.ClassWithDocs")] public class ClassWithDocs : DeputyBase { public ClassWithDocs(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassWithJavaReservedWords.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithJavaReservedWords.cs similarity index 88% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassWithJavaReservedWords.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithJavaReservedWords.cs index 858caa0f0b..32d8bf514c 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassWithJavaReservedWords.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithJavaReservedWords.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ClassWithJavaReservedWords), fullyQualifiedName: "jsii-calc.compliance.ClassWithJavaReservedWords", parametersJson: "[{\"name\":\"int\",\"type\":{\"primitive\":\"string\"}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithJavaReservedWords), fullyQualifiedName: "jsii-calc.ClassWithJavaReservedWords", parametersJson: "[{\"name\":\"int\",\"type\":{\"primitive\":\"string\"}}]")] public class ClassWithJavaReservedWords : DeputyBase { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassWithMutableObjectLiteralProperty.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithMutableObjectLiteralProperty.cs similarity index 78% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassWithMutableObjectLiteralProperty.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithMutableObjectLiteralProperty.cs index 5e55391c3a..75655eff04 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassWithMutableObjectLiteralProperty.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithMutableObjectLiteralProperty.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ClassWithMutableObjectLiteralProperty), fullyQualifiedName: "jsii-calc.compliance.ClassWithMutableObjectLiteralProperty")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithMutableObjectLiteralProperty), fullyQualifiedName: "jsii-calc.ClassWithMutableObjectLiteralProperty")] public class ClassWithMutableObjectLiteralProperty : DeputyBase { public ClassWithMutableObjectLiteralProperty(): base(new DeputyProps(new object[]{})) @@ -31,10 +31,10 @@ protected ClassWithMutableObjectLiteralProperty(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiProperty(name: "mutableObject", typeJson: "{\"fqn\":\"jsii-calc.compliance.IMutableObjectLiteral\"}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.Compliance.IMutableObjectLiteral MutableObject + [JsiiProperty(name: "mutableObject", typeJson: "{\"fqn\":\"jsii-calc.IMutableObjectLiteral\"}")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.IMutableObjectLiteral MutableObject { - get => GetInstanceProperty(); + get => GetInstanceProperty(); set => SetInstanceProperty(value); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassWithPrivateConstructorAndAutomaticProperties.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithPrivateConstructorAndAutomaticProperties.cs similarity index 67% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassWithPrivateConstructorAndAutomaticProperties.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithPrivateConstructorAndAutomaticProperties.cs index 554d7c7758..09263ba3f4 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ClassWithPrivateConstructorAndAutomaticProperties.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ClassWithPrivateConstructorAndAutomaticProperties.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// Class that implements interface properties automatically, but using a private constructor. /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ClassWithPrivateConstructorAndAutomaticProperties), fullyQualifiedName: "jsii-calc.compliance.ClassWithPrivateConstructorAndAutomaticProperties")] - public class ClassWithPrivateConstructorAndAutomaticProperties : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IInterfaceWithProperties + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithPrivateConstructorAndAutomaticProperties), fullyQualifiedName: "jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties")] + public class ClassWithPrivateConstructorAndAutomaticProperties : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithProperties { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference /// The Javascript-owned object reference @@ -28,10 +28,10 @@ protected ClassWithPrivateConstructorAndAutomaticProperties(DeputyProps props): /// /// Stability: Experimental /// - [JsiiMethod(name: "create", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.ClassWithPrivateConstructorAndAutomaticProperties\"}}", parametersJson: "[{\"name\":\"readOnlyString\",\"type\":{\"primitive\":\"string\"}},{\"name\":\"readWriteString\",\"type\":{\"primitive\":\"string\"}}]")] - public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.ClassWithPrivateConstructorAndAutomaticProperties Create(string readOnlyString, string readWriteString) + [JsiiMethod(name: "create", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties\"}}", parametersJson: "[{\"name\":\"readOnlyString\",\"type\":{\"primitive\":\"string\"}},{\"name\":\"readWriteString\",\"type\":{\"primitive\":\"string\"}}]")] + public static Amazon.JSII.Tests.CalculatorNamespace.ClassWithPrivateConstructorAndAutomaticProperties Create(string readOnlyString, string readWriteString) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ClassWithPrivateConstructorAndAutomaticProperties), new System.Type[]{typeof(string), typeof(string)}, new object[]{readOnlyString, readWriteString}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithPrivateConstructorAndAutomaticProperties), new System.Type[]{typeof(string), typeof(string)}, new object[]{readOnlyString, readWriteString}); } /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/PartiallyInitializedThisConsumerProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/PartiallyInitializedThisConsumerProxy.cs deleted file mode 100644 index 46ea2654f6..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/PartiallyInitializedThisConsumerProxy.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Amazon.JSII.Runtime.Deputy; - -#pragma warning disable CS0672,CS0809,CS1591 - -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance -{ - /// - /// Stability: Experimental - /// - [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.PartiallyInitializedThisConsumer), fullyQualifiedName: "jsii-calc.compliance.PartiallyInitializedThisConsumer")] - internal sealed class PartiallyInitializedThisConsumerProxy : Amazon.JSII.Tests.CalculatorNamespace.Compliance.PartiallyInitializedThisConsumer - { - private PartiallyInitializedThisConsumerProxy(ByRefValue reference): base(reference) - { - } - - /// - /// Stability: Experimental - /// - [JsiiMethod(name: "consumePartiallyInitializedThis", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"obj\",\"type\":{\"fqn\":\"jsii-calc.compliance.ConstructorPassesThisOut\"}},{\"name\":\"dt\",\"type\":{\"primitive\":\"date\"}},{\"name\":\"ev\",\"type\":{\"fqn\":\"jsii-calc.compliance.AllTypesEnum\"}}]")] - public override string ConsumePartiallyInitializedThis(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ConstructorPassesThisOut obj, System.DateTime dt, Amazon.JSII.Tests.CalculatorNamespace.Compliance.AllTypesEnum ev) - { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ConstructorPassesThisOut), typeof(System.DateTime), typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.AllTypesEnum)}, new object[]{obj, dt, ev}); - } - } -} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConfusingToJackson.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConfusingToJackson.cs similarity index 67% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConfusingToJackson.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConfusingToJackson.cs index 94366d0497..a74b653a5a 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConfusingToJackson.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConfusingToJackson.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// This tries to confuse Jackson by having overloaded property setters. /// @@ -10,7 +10,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance /// /// See: https://github.com/aws/aws-cdk/issues/4080 /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ConfusingToJackson), fullyQualifiedName: "jsii-calc.compliance.ConfusingToJackson")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ConfusingToJackson), fullyQualifiedName: "jsii-calc.ConfusingToJackson")] public class ConfusingToJackson : DeputyBase { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference @@ -30,26 +30,26 @@ protected ConfusingToJackson(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "makeInstance", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.ConfusingToJackson\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.ConfusingToJackson MakeInstance() + [JsiiMethod(name: "makeInstance", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.ConfusingToJackson\"}}")] + public static Amazon.JSII.Tests.CalculatorNamespace.ConfusingToJackson MakeInstance() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ConfusingToJackson), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConfusingToJackson), new System.Type[]{}, new object[]{}); } /// /// Stability: Experimental /// - [JsiiMethod(name: "makeStructInstance", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.ConfusingToJacksonStruct\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.IConfusingToJacksonStruct MakeStructInstance() + [JsiiMethod(name: "makeStructInstance", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.ConfusingToJacksonStruct\"}}")] + public static Amazon.JSII.Tests.CalculatorNamespace.IConfusingToJacksonStruct MakeStructInstance() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ConfusingToJackson), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConfusingToJackson), new System.Type[]{}, new object[]{}); } /// /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: "unionProperty", typeJson: "{\"union\":{\"types\":[{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"},{\"collection\":{\"elementtype\":{\"union\":{\"types\":[{\"fqn\":\"jsii-calc.compliance.AbstractClass\"},{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"}]}},\"kind\":\"array\"}}]}}", isOptional: true)] + [JsiiProperty(name: "unionProperty", typeJson: "{\"union\":{\"types\":[{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"},{\"collection\":{\"elementtype\":{\"union\":{\"types\":[{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"},{\"fqn\":\"jsii-calc.AbstractClass\"}]}},\"kind\":\"array\"}}]}}", isOptional: true)] public virtual object? UnionProperty { get => GetInstanceProperty(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConfusingToJacksonStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConfusingToJacksonStruct.cs similarity index 59% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConfusingToJacksonStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConfusingToJacksonStruct.cs index 58149a2937..931605685f 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConfusingToJacksonStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConfusingToJacksonStruct.cs @@ -2,19 +2,19 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.compliance.ConfusingToJacksonStruct")] - public class ConfusingToJacksonStruct : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IConfusingToJacksonStruct + [JsiiByValue(fqn: "jsii-calc.ConfusingToJacksonStruct")] + public class ConfusingToJacksonStruct : Amazon.JSII.Tests.CalculatorNamespace.IConfusingToJacksonStruct { /// /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: "unionProperty", typeJson: "{\"union\":{\"types\":[{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"},{\"collection\":{\"elementtype\":{\"union\":{\"types\":[{\"fqn\":\"jsii-calc.compliance.AbstractClass\"},{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"}]}},\"kind\":\"array\"}}]}}", isOptional: true, isOverride: true)] + [JsiiProperty(name: "unionProperty", typeJson: "{\"union\":{\"types\":[{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"},{\"collection\":{\"elementtype\":{\"union\":{\"types\":[{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"},{\"fqn\":\"jsii-calc.AbstractClass\"}]}},\"kind\":\"array\"}}]}}", isOptional: true, isOverride: true)] public object? UnionProperty { get; diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConfusingToJacksonStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConfusingToJacksonStructProxy.cs similarity index 65% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConfusingToJacksonStructProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConfusingToJacksonStructProxy.cs index e0037f8d29..49c24131e4 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConfusingToJacksonStructProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConfusingToJacksonStructProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IConfusingToJacksonStruct), fullyQualifiedName: "jsii-calc.compliance.ConfusingToJacksonStruct")] - internal sealed class ConfusingToJacksonStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IConfusingToJacksonStruct + [JsiiTypeProxy(nativeType: typeof(IConfusingToJacksonStruct), fullyQualifiedName: "jsii-calc.ConfusingToJacksonStruct")] + internal sealed class ConfusingToJacksonStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IConfusingToJacksonStruct { private ConfusingToJacksonStructProxy(ByRefValue reference): base(reference) { @@ -18,7 +18,7 @@ private ConfusingToJacksonStructProxy(ByRefValue reference): base(reference) /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: "unionProperty", typeJson: "{\"union\":{\"types\":[{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"},{\"collection\":{\"elementtype\":{\"union\":{\"types\":[{\"fqn\":\"jsii-calc.compliance.AbstractClass\"},{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"}]}},\"kind\":\"array\"}}]}}", isOptional: true)] + [JsiiProperty(name: "unionProperty", typeJson: "{\"union\":{\"types\":[{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"},{\"collection\":{\"elementtype\":{\"union\":{\"types\":[{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"},{\"fqn\":\"jsii-calc.AbstractClass\"}]}},\"kind\":\"array\"}}]}}", isOptional: true)] public object? UnionProperty { get => GetInstanceProperty(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConstructorPassesThisOut.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConstructorPassesThisOut.cs similarity index 75% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConstructorPassesThisOut.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConstructorPassesThisOut.cs index 77e15c2ad8..33d0c74c81 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConstructorPassesThisOut.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConstructorPassesThisOut.cs @@ -2,18 +2,18 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ConstructorPassesThisOut), fullyQualifiedName: "jsii-calc.compliance.ConstructorPassesThisOut", parametersJson: "[{\"name\":\"consumer\",\"type\":{\"fqn\":\"jsii-calc.compliance.PartiallyInitializedThisConsumer\"}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ConstructorPassesThisOut), fullyQualifiedName: "jsii-calc.ConstructorPassesThisOut", parametersJson: "[{\"name\":\"consumer\",\"type\":{\"fqn\":\"jsii-calc.PartiallyInitializedThisConsumer\"}}]")] public class ConstructorPassesThisOut : DeputyBase { /// /// Stability: Experimental /// - public ConstructorPassesThisOut(Amazon.JSII.Tests.CalculatorNamespace.Compliance.PartiallyInitializedThisConsumer consumer): base(new DeputyProps(new object[]{consumer})) + public ConstructorPassesThisOut(Amazon.JSII.Tests.CalculatorNamespace.PartiallyInitializedThisConsumer consumer): base(new DeputyProps(new object[]{consumer})) { } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Constructors.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Constructors.cs similarity index 52% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Constructors.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Constructors.cs index 5120fe4e24..55e7618385 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Constructors.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Constructors.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Constructors), fullyQualifiedName: "jsii-calc.compliance.Constructors")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), fullyQualifiedName: "jsii-calc.Constructors")] public class Constructors : DeputyBase { public Constructors(): base(new DeputyProps(new object[]{})) @@ -31,64 +31,64 @@ protected Constructors(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "hiddenInterface", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.IPublicInterface\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.IPublicInterface HiddenInterface() + [JsiiMethod(name: "hiddenInterface", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.IPublicInterface\"}}")] + public static Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface HiddenInterface() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Constructors), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); } /// /// Stability: Experimental /// - [JsiiMethod(name: "hiddenInterfaces", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"jsii-calc.compliance.IPublicInterface\"},\"kind\":\"array\"}}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.IPublicInterface[] HiddenInterfaces() + [JsiiMethod(name: "hiddenInterfaces", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"jsii-calc.IPublicInterface\"},\"kind\":\"array\"}}}")] + public static Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface[] HiddenInterfaces() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Constructors), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); } /// /// Stability: Experimental /// - [JsiiMethod(name: "hiddenSubInterfaces", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"jsii-calc.compliance.IPublicInterface\"},\"kind\":\"array\"}}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.IPublicInterface[] HiddenSubInterfaces() + [JsiiMethod(name: "hiddenSubInterfaces", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"jsii-calc.IPublicInterface\"},\"kind\":\"array\"}}}")] + public static Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface[] HiddenSubInterfaces() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Constructors), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); } /// /// Stability: Experimental /// - [JsiiMethod(name: "makeClass", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.PublicClass\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.PublicClass MakeClass() + [JsiiMethod(name: "makeClass", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.PublicClass\"}}")] + public static Amazon.JSII.Tests.CalculatorNamespace.PublicClass MakeClass() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Constructors), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); } /// /// Stability: Experimental /// - [JsiiMethod(name: "makeInterface", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.IPublicInterface\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.IPublicInterface MakeInterface() + [JsiiMethod(name: "makeInterface", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.IPublicInterface\"}}")] + public static Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface MakeInterface() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Constructors), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); } /// /// Stability: Experimental /// - [JsiiMethod(name: "makeInterface2", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.IPublicInterface2\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.IPublicInterface2 MakeInterface2() + [JsiiMethod(name: "makeInterface2", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.IPublicInterface2\"}}")] + public static Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface2 MakeInterface2() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Constructors), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); } /// /// Stability: Experimental /// - [JsiiMethod(name: "makeInterfaces", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"jsii-calc.compliance.IPublicInterface\"},\"kind\":\"array\"}}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.IPublicInterface[] MakeInterfaces() + [JsiiMethod(name: "makeInterfaces", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"jsii-calc.IPublicInterface\"},\"kind\":\"array\"}}}")] + public static Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface[] MakeInterfaces() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Constructors), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConsumePureInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConsumePureInterface.cs similarity index 71% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConsumePureInterface.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConsumePureInterface.cs index 67186b7615..409d7b7445 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConsumePureInterface.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConsumePureInterface.cs @@ -2,18 +2,18 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ConsumePureInterface), fullyQualifiedName: "jsii-calc.compliance.ConsumePureInterface", parametersJson: "[{\"name\":\"delegate\",\"type\":{\"fqn\":\"jsii-calc.compliance.IStructReturningDelegate\"}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumePureInterface), fullyQualifiedName: "jsii-calc.ConsumePureInterface", parametersJson: "[{\"name\":\"delegate\",\"type\":{\"fqn\":\"jsii-calc.IStructReturningDelegate\"}}]")] public class ConsumePureInterface : DeputyBase { /// /// Stability: Experimental /// - public ConsumePureInterface(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IStructReturningDelegate @delegate): base(new DeputyProps(new object[]{@delegate})) + public ConsumePureInterface(Amazon.JSII.Tests.CalculatorNamespace.IStructReturningDelegate @delegate): base(new DeputyProps(new object[]{@delegate})) { } @@ -34,10 +34,10 @@ protected ConsumePureInterface(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "workItBaby", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.StructB\"}}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.Compliance.IStructB WorkItBaby() + [JsiiMethod(name: "workItBaby", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.StructB\"}}")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.IStructB WorkItBaby() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConsumerCanRingBell.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConsumerCanRingBell.cs similarity index 69% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConsumerCanRingBell.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConsumerCanRingBell.cs index fdf2ac52da..693e45d5e3 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConsumerCanRingBell.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConsumerCanRingBell.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// Test calling back to consumers that implement interfaces. /// @@ -11,7 +11,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ConsumerCanRingBell), fullyQualifiedName: "jsii-calc.compliance.ConsumerCanRingBell")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumerCanRingBell), fullyQualifiedName: "jsii-calc.ConsumerCanRingBell")] public class ConsumerCanRingBell : DeputyBase { public ConsumerCanRingBell(): base(new DeputyProps(new object[]{})) @@ -38,10 +38,10 @@ protected ConsumerCanRingBell(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "staticImplementedByObjectLiteral", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.compliance.IBellRinger\"}}]")] - public static bool StaticImplementedByObjectLiteral(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IBellRinger ringer) + [JsiiMethod(name: "staticImplementedByObjectLiteral", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.IBellRinger\"}}]")] + public static bool StaticImplementedByObjectLiteral(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger ringer) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ConsumerCanRingBell), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IBellRinger)}, new object[]{ringer}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumerCanRingBell), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer}); } /// ...if the interface is implemented using a private class. @@ -50,10 +50,10 @@ public static bool StaticImplementedByObjectLiteral(Amazon.JSII.Tests.Calculator /// /// Stability: Experimental /// - [JsiiMethod(name: "staticImplementedByPrivateClass", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.compliance.IBellRinger\"}}]")] - public static bool StaticImplementedByPrivateClass(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IBellRinger ringer) + [JsiiMethod(name: "staticImplementedByPrivateClass", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.IBellRinger\"}}]")] + public static bool StaticImplementedByPrivateClass(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger ringer) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ConsumerCanRingBell), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IBellRinger)}, new object[]{ringer}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumerCanRingBell), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer}); } /// ...if the interface is implemented using a public class. @@ -62,10 +62,10 @@ public static bool StaticImplementedByPrivateClass(Amazon.JSII.Tests.CalculatorN /// /// Stability: Experimental /// - [JsiiMethod(name: "staticImplementedByPublicClass", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.compliance.IBellRinger\"}}]")] - public static bool StaticImplementedByPublicClass(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IBellRinger ringer) + [JsiiMethod(name: "staticImplementedByPublicClass", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.IBellRinger\"}}]")] + public static bool StaticImplementedByPublicClass(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger ringer) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ConsumerCanRingBell), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IBellRinger)}, new object[]{ringer}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumerCanRingBell), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer}); } /// If the parameter is a concrete class instead of an interface. @@ -74,10 +74,10 @@ public static bool StaticImplementedByPublicClass(Amazon.JSII.Tests.CalculatorNa /// /// Stability: Experimental /// - [JsiiMethod(name: "staticWhenTypedAsClass", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.compliance.IConcreteBellRinger\"}}]")] - public static bool StaticWhenTypedAsClass(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IConcreteBellRinger ringer) + [JsiiMethod(name: "staticWhenTypedAsClass", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.IConcreteBellRinger\"}}]")] + public static bool StaticWhenTypedAsClass(Amazon.JSII.Tests.CalculatorNamespace.IConcreteBellRinger ringer) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ConsumerCanRingBell), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IConcreteBellRinger)}, new object[]{ringer}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumerCanRingBell), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IConcreteBellRinger)}, new object[]{ringer}); } /// ...if the interface is implemented using an object literal. @@ -86,10 +86,10 @@ public static bool StaticWhenTypedAsClass(Amazon.JSII.Tests.CalculatorNamespace. /// /// Stability: Experimental /// - [JsiiMethod(name: "implementedByObjectLiteral", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.compliance.IBellRinger\"}}]")] - public virtual bool ImplementedByObjectLiteral(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IBellRinger ringer) + [JsiiMethod(name: "implementedByObjectLiteral", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.IBellRinger\"}}]")] + public virtual bool ImplementedByObjectLiteral(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger ringer) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IBellRinger)}, new object[]{ringer}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer}); } /// ...if the interface is implemented using a private class. @@ -98,10 +98,10 @@ public virtual bool ImplementedByObjectLiteral(Amazon.JSII.Tests.CalculatorNames /// /// Stability: Experimental /// - [JsiiMethod(name: "implementedByPrivateClass", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.compliance.IBellRinger\"}}]")] - public virtual bool ImplementedByPrivateClass(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IBellRinger ringer) + [JsiiMethod(name: "implementedByPrivateClass", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.IBellRinger\"}}]")] + public virtual bool ImplementedByPrivateClass(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger ringer) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IBellRinger)}, new object[]{ringer}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer}); } /// ...if the interface is implemented using a public class. @@ -110,10 +110,10 @@ public virtual bool ImplementedByPrivateClass(Amazon.JSII.Tests.CalculatorNamesp /// /// Stability: Experimental /// - [JsiiMethod(name: "implementedByPublicClass", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.compliance.IBellRinger\"}}]")] - public virtual bool ImplementedByPublicClass(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IBellRinger ringer) + [JsiiMethod(name: "implementedByPublicClass", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.IBellRinger\"}}]")] + public virtual bool ImplementedByPublicClass(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger ringer) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IBellRinger)}, new object[]{ringer}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer}); } /// If the parameter is a concrete class instead of an interface. @@ -122,10 +122,10 @@ public virtual bool ImplementedByPublicClass(Amazon.JSII.Tests.CalculatorNamespa /// /// Stability: Experimental /// - [JsiiMethod(name: "whenTypedAsClass", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.compliance.IConcreteBellRinger\"}}]")] - public virtual bool WhenTypedAsClass(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IConcreteBellRinger ringer) + [JsiiMethod(name: "whenTypedAsClass", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"ringer\",\"type\":{\"fqn\":\"jsii-calc.IConcreteBellRinger\"}}]")] + public virtual bool WhenTypedAsClass(Amazon.JSII.Tests.CalculatorNamespace.IConcreteBellRinger ringer) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IConcreteBellRinger)}, new object[]{ringer}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IConcreteBellRinger)}, new object[]{ringer}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConsumersOfThisCrazyTypeSystem.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConsumersOfThisCrazyTypeSystem.cs similarity index 72% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConsumersOfThisCrazyTypeSystem.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConsumersOfThisCrazyTypeSystem.cs index b25f178baa..ce7c6630f5 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ConsumersOfThisCrazyTypeSystem.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConsumersOfThisCrazyTypeSystem.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ConsumersOfThisCrazyTypeSystem), fullyQualifiedName: "jsii-calc.compliance.ConsumersOfThisCrazyTypeSystem")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumersOfThisCrazyTypeSystem), fullyQualifiedName: "jsii-calc.ConsumersOfThisCrazyTypeSystem")] public class ConsumersOfThisCrazyTypeSystem : DeputyBase { public ConsumersOfThisCrazyTypeSystem(): base(new DeputyProps(new object[]{})) @@ -31,19 +31,19 @@ protected ConsumersOfThisCrazyTypeSystem(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "consumeAnotherPublicInterface", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"obj\",\"type\":{\"fqn\":\"jsii-calc.compliance.IAnotherPublicInterface\"}}]")] - public virtual string ConsumeAnotherPublicInterface(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IAnotherPublicInterface obj) + [JsiiMethod(name: "consumeAnotherPublicInterface", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"obj\",\"type\":{\"fqn\":\"jsii-calc.IAnotherPublicInterface\"}}]")] + public virtual string ConsumeAnotherPublicInterface(Amazon.JSII.Tests.CalculatorNamespace.IAnotherPublicInterface obj) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IAnotherPublicInterface)}, new object[]{obj}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IAnotherPublicInterface)}, new object[]{obj}); } /// /// Stability: Experimental /// - [JsiiMethod(name: "consumeNonInternalInterface", returnsJson: "{\"type\":{\"primitive\":\"any\"}}", parametersJson: "[{\"name\":\"obj\",\"type\":{\"fqn\":\"jsii-calc.compliance.INonInternalInterface\"}}]")] - public virtual object ConsumeNonInternalInterface(Amazon.JSII.Tests.CalculatorNamespace.Compliance.INonInternalInterface obj) + [JsiiMethod(name: "consumeNonInternalInterface", returnsJson: "{\"type\":{\"primitive\":\"any\"}}", parametersJson: "[{\"name\":\"obj\",\"type\":{\"fqn\":\"jsii-calc.INonInternalInterface\"}}]")] + public virtual object ConsumeNonInternalInterface(Amazon.JSII.Tests.CalculatorNamespace.INonInternalInterface obj) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.INonInternalInterface)}, new object[]{obj}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.INonInternalInterface)}, new object[]{obj}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DataRenderer.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DataRenderer.cs similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DataRenderer.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DataRenderer.cs index 2b60ef91e8..6710b1a168 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DataRenderer.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DataRenderer.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// Verifies proper type handling through dynamic overrides. /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.DataRenderer), fullyQualifiedName: "jsii-calc.compliance.DataRenderer")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DataRenderer), fullyQualifiedName: "jsii-calc.DataRenderer")] public class DataRenderer : DeputyBase { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DefaultedConstructorArgument.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DefaultedConstructorArgument.cs similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DefaultedConstructorArgument.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DefaultedConstructorArgument.cs index 8b4dc82c48..09c247d989 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DefaultedConstructorArgument.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DefaultedConstructorArgument.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.DefaultedConstructorArgument), fullyQualifiedName: "jsii-calc.compliance.DefaultedConstructorArgument", parametersJson: "[{\"name\":\"arg1\",\"optional\":true,\"type\":{\"primitive\":\"number\"}},{\"name\":\"arg2\",\"optional\":true,\"type\":{\"primitive\":\"string\"}},{\"name\":\"arg3\",\"optional\":true,\"type\":{\"primitive\":\"date\"}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DefaultedConstructorArgument), fullyQualifiedName: "jsii-calc.DefaultedConstructorArgument", parametersJson: "[{\"name\":\"arg1\",\"optional\":true,\"type\":{\"primitive\":\"number\"}},{\"name\":\"arg2\",\"optional\":true,\"type\":{\"primitive\":\"string\"}},{\"name\":\"arg3\",\"optional\":true,\"type\":{\"primitive\":\"date\"}}]")] public class DefaultedConstructorArgument : DeputyBase { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Demonstrate982.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Demonstrate982.cs similarity index 73% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Demonstrate982.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Demonstrate982.cs index 7acd0593dc..58462c9962 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Demonstrate982.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Demonstrate982.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// 1. /// @@ -11,7 +11,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Demonstrate982), fullyQualifiedName: "jsii-calc.compliance.Demonstrate982")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Demonstrate982), fullyQualifiedName: "jsii-calc.Demonstrate982")] public class Demonstrate982 : DeputyBase { /// @@ -39,20 +39,20 @@ protected Demonstrate982(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "takeThis", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.ChildStruct982\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.IChildStruct982 TakeThis() + [JsiiMethod(name: "takeThis", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.ChildStruct982\"}}")] + public static Amazon.JSII.Tests.CalculatorNamespace.IChildStruct982 TakeThis() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Demonstrate982), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Demonstrate982), new System.Type[]{}, new object[]{}); } /// It's dangerous to go alone! /// /// Stability: Experimental /// - [JsiiMethod(name: "takeThisToo", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.ParentStruct982\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.IParentStruct982 TakeThisToo() + [JsiiMethod(name: "takeThisToo", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.ParentStruct982\"}}")] + public static Amazon.JSII.Tests.CalculatorNamespace.IParentStruct982 TakeThisToo() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Demonstrate982), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Demonstrate982), new System.Type[]{}, new object[]{}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/DeprecatedClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedClass.cs similarity index 88% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/DeprecatedClass.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedClass.cs index d40feddab5..755679743a 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/DeprecatedClass.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedClass.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Deprecated /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations.DeprecatedClass), fullyQualifiedName: "jsii-calc.stability_annotations.DeprecatedClass", parametersJson: "[{\"name\":\"readonlyString\",\"type\":{\"primitive\":\"string\"}},{\"name\":\"mutableNumber\",\"optional\":true,\"type\":{\"primitive\":\"number\"}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DeprecatedClass), fullyQualifiedName: "jsii-calc.DeprecatedClass", parametersJson: "[{\"name\":\"readonlyString\",\"type\":{\"primitive\":\"string\"}},{\"name\":\"mutableNumber\",\"optional\":true,\"type\":{\"primitive\":\"number\"}}]")] [System.Obsolete("a pretty boring class")] public class DeprecatedClass : DeputyBase { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/DeprecatedEnum.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedEnum.cs similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/DeprecatedEnum.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedEnum.cs index 64a84113bf..bac1794583 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/DeprecatedEnum.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedEnum.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Deprecated /// - [JsiiEnum(nativeType: typeof(DeprecatedEnum), fullyQualifiedName: "jsii-calc.stability_annotations.DeprecatedEnum")] + [JsiiEnum(nativeType: typeof(DeprecatedEnum), fullyQualifiedName: "jsii-calc.DeprecatedEnum")] [System.Obsolete("your deprecated selection of bad options")] public enum DeprecatedEnum { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/DeprecatedStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedStruct.cs similarity index 76% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/DeprecatedStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedStruct.cs index be7e264ae9..41bdd5203a 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/DeprecatedStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedStruct.cs @@ -2,15 +2,15 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations +namespace Amazon.JSII.Tests.CalculatorNamespace { #pragma warning disable CS8618 /// /// Stability: Deprecated /// - [JsiiByValue(fqn: "jsii-calc.stability_annotations.DeprecatedStruct")] - public class DeprecatedStruct : Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations.IDeprecatedStruct + [JsiiByValue(fqn: "jsii-calc.DeprecatedStruct")] + public class DeprecatedStruct : Amazon.JSII.Tests.CalculatorNamespace.IDeprecatedStruct { /// /// Stability: Deprecated diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/DeprecatedStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedStructProxy.cs similarity index 78% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/DeprecatedStructProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedStructProxy.cs index e658eb1624..e09c590c3d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/DeprecatedStructProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DeprecatedStructProxy.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Deprecated /// - [JsiiTypeProxy(nativeType: typeof(IDeprecatedStruct), fullyQualifiedName: "jsii-calc.stability_annotations.DeprecatedStruct")] + [JsiiTypeProxy(nativeType: typeof(IDeprecatedStruct), fullyQualifiedName: "jsii-calc.DeprecatedStruct")] [System.Obsolete("it just wraps a string")] - internal sealed class DeprecatedStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations.IDeprecatedStruct + internal sealed class DeprecatedStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IDeprecatedStruct { private DeprecatedStructProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DerivedClassHasNoProperties/Base.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedClassHasNoProperties/Base.cs similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DerivedClassHasNoProperties/Base.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedClassHasNoProperties/Base.cs index 8e9841bc85..a4bdb00ecd 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DerivedClassHasNoProperties/Base.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedClassHasNoProperties/Base.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance.DerivedClassHasNoProperties +namespace Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.DerivedClassHasNoProperties.Base), fullyQualifiedName: "jsii-calc.compliance.DerivedClassHasNoProperties.Base")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties.Base), fullyQualifiedName: "jsii-calc.DerivedClassHasNoProperties.Base")] public class Base : DeputyBase { public Base(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DerivedClassHasNoProperties/Derived.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedClassHasNoProperties/Derived.cs similarity index 80% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DerivedClassHasNoProperties/Derived.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedClassHasNoProperties/Derived.cs index 815da1dea4..a15eaf9776 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DerivedClassHasNoProperties/Derived.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedClassHasNoProperties/Derived.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance.DerivedClassHasNoProperties +namespace Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.DerivedClassHasNoProperties.Derived), fullyQualifiedName: "jsii-calc.compliance.DerivedClassHasNoProperties.Derived")] - public class Derived : Amazon.JSII.Tests.CalculatorNamespace.Compliance.DerivedClassHasNoProperties.Base + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties.Derived), fullyQualifiedName: "jsii-calc.DerivedClassHasNoProperties.Derived")] + public class Derived : Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties.Base { public Derived(): base(new DeputyProps(new object[]{})) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DerivedStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedStruct.cs similarity index 92% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DerivedStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedStruct.cs index 3c6de9375f..3ebd040b64 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DerivedStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedStruct.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { #pragma warning disable CS8618 @@ -10,8 +10,8 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.compliance.DerivedStruct")] - public class DerivedStruct : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IDerivedStruct + [JsiiByValue(fqn: "jsii-calc.DerivedStruct")] + public class DerivedStruct : Amazon.JSII.Tests.CalculatorNamespace.IDerivedStruct { /// /// Stability: Experimental @@ -37,8 +37,8 @@ public bool Bool /// /// Stability: Experimental /// - [JsiiProperty(name: "nonPrimitive", typeJson: "{\"fqn\":\"jsii-calc.compliance.DoubleTrouble\"}", isOverride: true)] - public Amazon.JSII.Tests.CalculatorNamespace.Compliance.DoubleTrouble NonPrimitive + [JsiiProperty(name: "nonPrimitive", typeJson: "{\"fqn\":\"jsii-calc.DoubleTrouble\"}", isOverride: true)] + public Amazon.JSII.Tests.CalculatorNamespace.DoubleTrouble NonPrimitive { get; set; diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DerivedStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedStructProxy.cs similarity index 91% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DerivedStructProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedStructProxy.cs index 46344aa424..d73f819aa6 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DerivedStructProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DerivedStructProxy.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// A struct which derives from another struct. /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IDerivedStruct), fullyQualifiedName: "jsii-calc.compliance.DerivedStruct")] - internal sealed class DerivedStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IDerivedStruct + [JsiiTypeProxy(nativeType: typeof(IDerivedStruct), fullyQualifiedName: "jsii-calc.DerivedStruct")] + internal sealed class DerivedStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IDerivedStruct { private DerivedStructProxy(ByRefValue reference): base(reference) { @@ -37,10 +37,10 @@ public bool Bool /// /// Stability: Experimental /// - [JsiiProperty(name: "nonPrimitive", typeJson: "{\"fqn\":\"jsii-calc.compliance.DoubleTrouble\"}")] - public Amazon.JSII.Tests.CalculatorNamespace.Compliance.DoubleTrouble NonPrimitive + [JsiiProperty(name: "nonPrimitive", typeJson: "{\"fqn\":\"jsii-calc.DoubleTrouble\"}")] + public Amazon.JSII.Tests.CalculatorNamespace.DoubleTrouble NonPrimitive { - get => GetInstanceProperty(); + get => GetInstanceProperty(); } /// This is optional. diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceBaseLevelStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceBaseLevelStruct.cs similarity index 73% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceBaseLevelStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceBaseLevelStruct.cs index 2bbf4880b7..18964efa05 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceBaseLevelStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceBaseLevelStruct.cs @@ -2,15 +2,15 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { #pragma warning disable CS8618 /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.compliance.DiamondInheritanceBaseLevelStruct")] - public class DiamondInheritanceBaseLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IDiamondInheritanceBaseLevelStruct + [JsiiByValue(fqn: "jsii-calc.DiamondInheritanceBaseLevelStruct")] + public class DiamondInheritanceBaseLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceBaseLevelStruct { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceBaseLevelStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceBaseLevelStructProxy.cs similarity index 74% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceBaseLevelStructProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceBaseLevelStructProxy.cs index 13dbe12a38..2d3b621874 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceBaseLevelStructProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceBaseLevelStructProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IDiamondInheritanceBaseLevelStruct), fullyQualifiedName: "jsii-calc.compliance.DiamondInheritanceBaseLevelStruct")] - internal sealed class DiamondInheritanceBaseLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IDiamondInheritanceBaseLevelStruct + [JsiiTypeProxy(nativeType: typeof(IDiamondInheritanceBaseLevelStruct), fullyQualifiedName: "jsii-calc.DiamondInheritanceBaseLevelStruct")] + internal sealed class DiamondInheritanceBaseLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceBaseLevelStruct { private DiamondInheritanceBaseLevelStructProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceFirstMidLevelStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceFirstMidLevelStruct.cs similarity index 79% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceFirstMidLevelStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceFirstMidLevelStruct.cs index ed8cadcad9..e436e3e1e0 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceFirstMidLevelStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceFirstMidLevelStruct.cs @@ -2,15 +2,15 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { #pragma warning disable CS8618 /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.compliance.DiamondInheritanceFirstMidLevelStruct")] - public class DiamondInheritanceFirstMidLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IDiamondInheritanceFirstMidLevelStruct + [JsiiByValue(fqn: "jsii-calc.DiamondInheritanceFirstMidLevelStruct")] + public class DiamondInheritanceFirstMidLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceFirstMidLevelStruct { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceFirstMidLevelStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceFirstMidLevelStructProxy.cs similarity index 79% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceFirstMidLevelStructProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceFirstMidLevelStructProxy.cs index e69e58edc6..aa831688a5 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceFirstMidLevelStructProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceFirstMidLevelStructProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IDiamondInheritanceFirstMidLevelStruct), fullyQualifiedName: "jsii-calc.compliance.DiamondInheritanceFirstMidLevelStruct")] - internal sealed class DiamondInheritanceFirstMidLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IDiamondInheritanceFirstMidLevelStruct + [JsiiTypeProxy(nativeType: typeof(IDiamondInheritanceFirstMidLevelStruct), fullyQualifiedName: "jsii-calc.DiamondInheritanceFirstMidLevelStruct")] + internal sealed class DiamondInheritanceFirstMidLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceFirstMidLevelStruct { private DiamondInheritanceFirstMidLevelStructProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceSecondMidLevelStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceSecondMidLevelStruct.cs similarity index 79% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceSecondMidLevelStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceSecondMidLevelStruct.cs index 72d62bd794..ef8d735f16 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceSecondMidLevelStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceSecondMidLevelStruct.cs @@ -2,15 +2,15 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { #pragma warning disable CS8618 /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.compliance.DiamondInheritanceSecondMidLevelStruct")] - public class DiamondInheritanceSecondMidLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IDiamondInheritanceSecondMidLevelStruct + [JsiiByValue(fqn: "jsii-calc.DiamondInheritanceSecondMidLevelStruct")] + public class DiamondInheritanceSecondMidLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceSecondMidLevelStruct { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceSecondMidLevelStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceSecondMidLevelStructProxy.cs similarity index 79% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceSecondMidLevelStructProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceSecondMidLevelStructProxy.cs index 2ab461111d..ff88d769b6 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceSecondMidLevelStructProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceSecondMidLevelStructProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IDiamondInheritanceSecondMidLevelStruct), fullyQualifiedName: "jsii-calc.compliance.DiamondInheritanceSecondMidLevelStruct")] - internal sealed class DiamondInheritanceSecondMidLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IDiamondInheritanceSecondMidLevelStruct + [JsiiTypeProxy(nativeType: typeof(IDiamondInheritanceSecondMidLevelStruct), fullyQualifiedName: "jsii-calc.DiamondInheritanceSecondMidLevelStruct")] + internal sealed class DiamondInheritanceSecondMidLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceSecondMidLevelStruct { private DiamondInheritanceSecondMidLevelStructProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceTopLevelStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceTopLevelStruct.cs similarity index 87% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceTopLevelStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceTopLevelStruct.cs index 561a37d7ce..16435c8c60 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceTopLevelStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceTopLevelStruct.cs @@ -2,15 +2,15 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { #pragma warning disable CS8618 /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.compliance.DiamondInheritanceTopLevelStruct")] - public class DiamondInheritanceTopLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IDiamondInheritanceTopLevelStruct + [JsiiByValue(fqn: "jsii-calc.DiamondInheritanceTopLevelStruct")] + public class DiamondInheritanceTopLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceTopLevelStruct { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceTopLevelStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceTopLevelStructProxy.cs similarity index 87% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceTopLevelStructProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceTopLevelStructProxy.cs index 2a2cbb185a..b4c89fc547 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DiamondInheritanceTopLevelStructProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DiamondInheritanceTopLevelStructProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IDiamondInheritanceTopLevelStruct), fullyQualifiedName: "jsii-calc.compliance.DiamondInheritanceTopLevelStruct")] - internal sealed class DiamondInheritanceTopLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IDiamondInheritanceTopLevelStruct + [JsiiTypeProxy(nativeType: typeof(IDiamondInheritanceTopLevelStruct), fullyQualifiedName: "jsii-calc.DiamondInheritanceTopLevelStruct")] + internal sealed class DiamondInheritanceTopLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceTopLevelStruct { private DiamondInheritanceTopLevelStructProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DisappointingCollectionSource.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DisappointingCollectionSource.cs similarity index 89% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DisappointingCollectionSource.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DisappointingCollectionSource.cs index 664989e1ce..bef36a3fc8 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DisappointingCollectionSource.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DisappointingCollectionSource.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// Verifies that null/undefined can be returned for optional collections. /// @@ -10,7 +10,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.DisappointingCollectionSource), fullyQualifiedName: "jsii-calc.compliance.DisappointingCollectionSource")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DisappointingCollectionSource), fullyQualifiedName: "jsii-calc.DisappointingCollectionSource")] public class DisappointingCollectionSource : DeputyBase { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference @@ -38,7 +38,7 @@ public static string[] MaybeList { get; } - = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.DisappointingCollectionSource)); + = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.DisappointingCollectionSource)); /// Some Map of strings to numbers, maybe? /// @@ -51,6 +51,6 @@ public static System.Collections.Generic.IDictionary MaybeMap { get; } - = GetStaticProperty>(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.DisappointingCollectionSource)); + = GetStaticProperty>(typeof(Amazon.JSII.Tests.CalculatorNamespace.DisappointingCollectionSource)); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DoNotOverridePrivates.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DoNotOverridePrivates.cs similarity index 93% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DoNotOverridePrivates.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DoNotOverridePrivates.cs index 452d307858..84599175cf 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DoNotOverridePrivates.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DoNotOverridePrivates.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.DoNotOverridePrivates), fullyQualifiedName: "jsii-calc.compliance.DoNotOverridePrivates")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DoNotOverridePrivates), fullyQualifiedName: "jsii-calc.DoNotOverridePrivates")] public class DoNotOverridePrivates : DeputyBase { public DoNotOverridePrivates(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DoNotRecognizeAnyAsOptional.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DoNotRecognizeAnyAsOptional.cs similarity index 91% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DoNotRecognizeAnyAsOptional.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DoNotRecognizeAnyAsOptional.cs index 70cf9d34b5..bd4f50f852 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DoNotRecognizeAnyAsOptional.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DoNotRecognizeAnyAsOptional.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// jsii#284: do not recognize "any" as an optional argument. /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.DoNotRecognizeAnyAsOptional), fullyQualifiedName: "jsii-calc.compliance.DoNotRecognizeAnyAsOptional")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DoNotRecognizeAnyAsOptional), fullyQualifiedName: "jsii-calc.DoNotRecognizeAnyAsOptional")] public class DoNotRecognizeAnyAsOptional : DeputyBase { public DoNotRecognizeAnyAsOptional(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Documented/DocumentedClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DocumentedClass.cs similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Documented/DocumentedClass.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DocumentedClass.cs index bdc648dae8..39b9d51f4d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Documented/DocumentedClass.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DocumentedClass.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Documented +namespace Amazon.JSII.Tests.CalculatorNamespace { /// Here's the first line of the TSDoc comment. /// @@ -13,7 +13,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Documented /// /// Stability: Stable /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Documented.DocumentedClass), fullyQualifiedName: "jsii-calc.documented.DocumentedClass")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DocumentedClass), fullyQualifiedName: "jsii-calc.DocumentedClass")] public class DocumentedClass : DeputyBase { public DocumentedClass(): base(new DeputyProps(new object[]{})) @@ -43,10 +43,10 @@ protected DocumentedClass(DeputyProps props): base(props) /// /// Stability: Stable /// - [JsiiMethod(name: "greet", returnsJson: "{\"type\":{\"primitive\":\"number\"}}", parametersJson: "[{\"docs\":{\"summary\":\"The person to be greeted.\"},\"name\":\"greetee\",\"optional\":true,\"type\":{\"fqn\":\"jsii-calc.documented.Greetee\"}}]")] - public virtual double Greet(Amazon.JSII.Tests.CalculatorNamespace.Documented.IGreetee? greetee = null) + [JsiiMethod(name: "greet", returnsJson: "{\"type\":{\"primitive\":\"number\"}}", parametersJson: "[{\"docs\":{\"summary\":\"The person to be greeted.\"},\"name\":\"greetee\",\"optional\":true,\"type\":{\"fqn\":\"jsii-calc.Greetee\"}}]")] + public virtual double Greet(Amazon.JSII.Tests.CalculatorNamespace.IGreetee? greetee = null) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Documented.IGreetee)}, new object?[]{greetee}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IGreetee)}, new object?[]{greetee}); } /// Say ¡Hola! diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DontComplainAboutVariadicAfterOptional.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DontComplainAboutVariadicAfterOptional.cs similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DontComplainAboutVariadicAfterOptional.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DontComplainAboutVariadicAfterOptional.cs index 9a6282716f..5255be3e1a 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DontComplainAboutVariadicAfterOptional.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DontComplainAboutVariadicAfterOptional.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.DontComplainAboutVariadicAfterOptional), fullyQualifiedName: "jsii-calc.compliance.DontComplainAboutVariadicAfterOptional")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DontComplainAboutVariadicAfterOptional), fullyQualifiedName: "jsii-calc.DontComplainAboutVariadicAfterOptional")] public class DontComplainAboutVariadicAfterOptional : DeputyBase { public DontComplainAboutVariadicAfterOptional(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DoubleTrouble.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DoubleTrouble.cs similarity index 92% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DoubleTrouble.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DoubleTrouble.cs index 1f1d0d0e50..1e53d66e69 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/DoubleTrouble.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DoubleTrouble.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.DoubleTrouble), fullyQualifiedName: "jsii-calc.compliance.DoubleTrouble")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DoubleTrouble), fullyQualifiedName: "jsii-calc.DoubleTrouble")] public class DoubleTrouble : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IFriendlyRandomGenerator { public DoubleTrouble(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/EnumDispenser.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EnumDispenser.cs similarity index 66% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/EnumDispenser.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EnumDispenser.cs index 5e17847aec..11304b8937 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/EnumDispenser.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EnumDispenser.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.EnumDispenser), fullyQualifiedName: "jsii-calc.compliance.EnumDispenser")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.EnumDispenser), fullyQualifiedName: "jsii-calc.EnumDispenser")] public class EnumDispenser : DeputyBase { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference @@ -27,19 +27,19 @@ protected EnumDispenser(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "randomIntegerLikeEnum", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.AllTypesEnum\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.AllTypesEnum RandomIntegerLikeEnum() + [JsiiMethod(name: "randomIntegerLikeEnum", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.AllTypesEnum\"}}")] + public static Amazon.JSII.Tests.CalculatorNamespace.AllTypesEnum RandomIntegerLikeEnum() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.EnumDispenser), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.EnumDispenser), new System.Type[]{}, new object[]{}); } /// /// Stability: Experimental /// - [JsiiMethod(name: "randomStringLikeEnum", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.StringEnum\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.StringEnum RandomStringLikeEnum() + [JsiiMethod(name: "randomStringLikeEnum", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.StringEnum\"}}")] + public static Amazon.JSII.Tests.CalculatorNamespace.StringEnum RandomStringLikeEnum() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.EnumDispenser), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.EnumDispenser), new System.Type[]{}, new object[]{}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/EraseUndefinedHashValues.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EraseUndefinedHashValues.cs similarity index 78% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/EraseUndefinedHashValues.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EraseUndefinedHashValues.cs index e3f85d4daa..247f3df086 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/EraseUndefinedHashValues.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EraseUndefinedHashValues.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.EraseUndefinedHashValues), fullyQualifiedName: "jsii-calc.compliance.EraseUndefinedHashValues")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.EraseUndefinedHashValues), fullyQualifiedName: "jsii-calc.EraseUndefinedHashValues")] public class EraseUndefinedHashValues : DeputyBase { public EraseUndefinedHashValues(): base(new DeputyProps(new object[]{})) @@ -35,10 +35,10 @@ protected EraseUndefinedHashValues(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "doesKeyExist", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"opts\",\"type\":{\"fqn\":\"jsii-calc.compliance.EraseUndefinedHashValuesOptions\"}},{\"name\":\"key\",\"type\":{\"primitive\":\"string\"}}]")] - public static bool DoesKeyExist(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IEraseUndefinedHashValuesOptions opts, string key) + [JsiiMethod(name: "doesKeyExist", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"opts\",\"type\":{\"fqn\":\"jsii-calc.EraseUndefinedHashValuesOptions\"}},{\"name\":\"key\",\"type\":{\"primitive\":\"string\"}}]")] + public static bool DoesKeyExist(Amazon.JSII.Tests.CalculatorNamespace.IEraseUndefinedHashValuesOptions opts, string key) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.EraseUndefinedHashValues), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IEraseUndefinedHashValuesOptions), typeof(string)}, new object[]{opts, key}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.EraseUndefinedHashValues), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IEraseUndefinedHashValuesOptions), typeof(string)}, new object[]{opts, key}); } /// We expect "prop1" to be erased. @@ -48,7 +48,7 @@ public static bool DoesKeyExist(Amazon.JSII.Tests.CalculatorNamespace.Compliance [JsiiMethod(name: "prop1IsNull", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"primitive\":\"any\"},\"kind\":\"map\"}}}")] public static System.Collections.Generic.IDictionary Prop1IsNull() { - return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.EraseUndefinedHashValues), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.EraseUndefinedHashValues), new System.Type[]{}, new object[]{}); } /// We expect "prop2" to be erased. @@ -58,7 +58,7 @@ public static System.Collections.Generic.IDictionary Prop1IsNull [JsiiMethod(name: "prop2IsUndefined", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"primitive\":\"any\"},\"kind\":\"map\"}}}")] public static System.Collections.Generic.IDictionary Prop2IsUndefined() { - return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.EraseUndefinedHashValues), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.EraseUndefinedHashValues), new System.Type[]{}, new object[]{}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/EraseUndefinedHashValuesOptions.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EraseUndefinedHashValuesOptions.cs similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/EraseUndefinedHashValuesOptions.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EraseUndefinedHashValuesOptions.cs index 704a9ee0b0..210da73b00 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/EraseUndefinedHashValuesOptions.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EraseUndefinedHashValuesOptions.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.compliance.EraseUndefinedHashValuesOptions")] - public class EraseUndefinedHashValuesOptions : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IEraseUndefinedHashValuesOptions + [JsiiByValue(fqn: "jsii-calc.EraseUndefinedHashValuesOptions")] + public class EraseUndefinedHashValuesOptions : Amazon.JSII.Tests.CalculatorNamespace.IEraseUndefinedHashValuesOptions { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/EraseUndefinedHashValuesOptionsProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EraseUndefinedHashValuesOptionsProxy.cs similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/EraseUndefinedHashValuesOptionsProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EraseUndefinedHashValuesOptionsProxy.cs index 3ce4ab3f0b..b052171dcb 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/EraseUndefinedHashValuesOptionsProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/EraseUndefinedHashValuesOptionsProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IEraseUndefinedHashValuesOptions), fullyQualifiedName: "jsii-calc.compliance.EraseUndefinedHashValuesOptions")] - internal sealed class EraseUndefinedHashValuesOptionsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IEraseUndefinedHashValuesOptions + [JsiiTypeProxy(nativeType: typeof(IEraseUndefinedHashValuesOptions), fullyQualifiedName: "jsii-calc.EraseUndefinedHashValuesOptions")] + internal sealed class EraseUndefinedHashValuesOptionsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IEraseUndefinedHashValuesOptions { private EraseUndefinedHashValuesOptionsProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/ExperimentalClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalClass.cs similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/ExperimentalClass.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalClass.cs index d9bb9ae33e..c3637f9d89 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/ExperimentalClass.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalClass.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations.ExperimentalClass), fullyQualifiedName: "jsii-calc.stability_annotations.ExperimentalClass", parametersJson: "[{\"name\":\"readonlyString\",\"type\":{\"primitive\":\"string\"}},{\"name\":\"mutableNumber\",\"optional\":true,\"type\":{\"primitive\":\"number\"}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ExperimentalClass), fullyQualifiedName: "jsii-calc.ExperimentalClass", parametersJson: "[{\"name\":\"readonlyString\",\"type\":{\"primitive\":\"string\"}},{\"name\":\"mutableNumber\",\"optional\":true,\"type\":{\"primitive\":\"number\"}}]")] public class ExperimentalClass : DeputyBase { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/ExperimentalEnum.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalEnum.cs similarity index 82% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/ExperimentalEnum.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalEnum.cs index 8d269f7f74..044ca3163c 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/ExperimentalEnum.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalEnum.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiEnum(nativeType: typeof(ExperimentalEnum), fullyQualifiedName: "jsii-calc.stability_annotations.ExperimentalEnum")] + [JsiiEnum(nativeType: typeof(ExperimentalEnum), fullyQualifiedName: "jsii-calc.ExperimentalEnum")] public enum ExperimentalEnum { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/ExperimentalStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalStruct.cs similarity index 74% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/ExperimentalStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalStruct.cs index 989f25f066..ce67d8764d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/ExperimentalStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalStruct.cs @@ -2,15 +2,15 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations +namespace Amazon.JSII.Tests.CalculatorNamespace { #pragma warning disable CS8618 /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.stability_annotations.ExperimentalStruct")] - public class ExperimentalStruct : Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations.IExperimentalStruct + [JsiiByValue(fqn: "jsii-calc.ExperimentalStruct")] + public class ExperimentalStruct : Amazon.JSII.Tests.CalculatorNamespace.IExperimentalStruct { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/ExperimentalStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalStructProxy.cs similarity index 76% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/ExperimentalStructProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalStructProxy.cs index ba4e481b31..d0d4e8c78e 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/ExperimentalStructProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExperimentalStructProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IExperimentalStruct), fullyQualifiedName: "jsii-calc.stability_annotations.ExperimentalStruct")] - internal sealed class ExperimentalStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations.IExperimentalStruct + [JsiiTypeProxy(nativeType: typeof(IExperimentalStruct), fullyQualifiedName: "jsii-calc.ExperimentalStruct")] + internal sealed class ExperimentalStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IExperimentalStruct { private ExperimentalStructProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ExportedBaseClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExportedBaseClass.cs similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ExportedBaseClass.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExportedBaseClass.cs index 7f499a1058..12ba96ce45 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ExportedBaseClass.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExportedBaseClass.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ExportedBaseClass), fullyQualifiedName: "jsii-calc.compliance.ExportedBaseClass", parametersJson: "[{\"name\":\"success\",\"type\":{\"primitive\":\"boolean\"}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ExportedBaseClass), fullyQualifiedName: "jsii-calc.ExportedBaseClass", parametersJson: "[{\"name\":\"success\",\"type\":{\"primitive\":\"boolean\"}}]")] public class ExportedBaseClass : DeputyBase { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ExtendsInternalInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExtendsInternalInterface.cs similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ExtendsInternalInterface.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExtendsInternalInterface.cs index c04751d389..e421064e24 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ExtendsInternalInterface.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExtendsInternalInterface.cs @@ -2,15 +2,15 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { #pragma warning disable CS8618 /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.compliance.ExtendsInternalInterface")] - public class ExtendsInternalInterface : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IExtendsInternalInterface + [JsiiByValue(fqn: "jsii-calc.ExtendsInternalInterface")] + public class ExtendsInternalInterface : Amazon.JSII.Tests.CalculatorNamespace.IExtendsInternalInterface { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ExtendsInternalInterfaceProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExtendsInternalInterfaceProxy.cs similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ExtendsInternalInterfaceProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExtendsInternalInterfaceProxy.cs index dce5b8bea5..b59b2a688d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ExtendsInternalInterfaceProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ExtendsInternalInterfaceProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IExtendsInternalInterface), fullyQualifiedName: "jsii-calc.compliance.ExtendsInternalInterface")] - internal sealed class ExtendsInternalInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IExtendsInternalInterface + [JsiiTypeProxy(nativeType: typeof(IExtendsInternalInterface), fullyQualifiedName: "jsii-calc.ExtendsInternalInterface")] + internal sealed class ExtendsInternalInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IExtendsInternalInterface { private ExtendsInternalInterfaceProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/GiveMeStructs.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/GiveMeStructs.cs similarity index 78% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/GiveMeStructs.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/GiveMeStructs.cs index 0e3cad1599..9eac9f7240 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/GiveMeStructs.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/GiveMeStructs.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.GiveMeStructs), fullyQualifiedName: "jsii-calc.compliance.GiveMeStructs")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.GiveMeStructs), fullyQualifiedName: "jsii-calc.GiveMeStructs")] public class GiveMeStructs : DeputyBase { public GiveMeStructs(): base(new DeputyProps(new object[]{})) @@ -32,20 +32,20 @@ protected GiveMeStructs(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "derivedToFirst", returnsJson: "{\"type\":{\"fqn\":\"@scope/jsii-calc-lib.MyFirstStruct\"}}", parametersJson: "[{\"name\":\"derived\",\"type\":{\"fqn\":\"jsii-calc.compliance.DerivedStruct\"}}]")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IMyFirstStruct DerivedToFirst(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IDerivedStruct derived) + [JsiiMethod(name: "derivedToFirst", returnsJson: "{\"type\":{\"fqn\":\"@scope/jsii-calc-lib.MyFirstStruct\"}}", parametersJson: "[{\"name\":\"derived\",\"type\":{\"fqn\":\"jsii-calc.DerivedStruct\"}}]")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IMyFirstStruct DerivedToFirst(Amazon.JSII.Tests.CalculatorNamespace.IDerivedStruct derived) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IDerivedStruct)}, new object[]{derived}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IDerivedStruct)}, new object[]{derived}); } /// Returns the boolean from a DerivedStruct struct. /// /// Stability: Experimental /// - [JsiiMethod(name: "readDerivedNonPrimitive", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.DoubleTrouble\"}}", parametersJson: "[{\"name\":\"derived\",\"type\":{\"fqn\":\"jsii-calc.compliance.DerivedStruct\"}}]")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.Compliance.DoubleTrouble ReadDerivedNonPrimitive(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IDerivedStruct derived) + [JsiiMethod(name: "readDerivedNonPrimitive", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.DoubleTrouble\"}}", parametersJson: "[{\"name\":\"derived\",\"type\":{\"fqn\":\"jsii-calc.DerivedStruct\"}}]")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.DoubleTrouble ReadDerivedNonPrimitive(Amazon.JSII.Tests.CalculatorNamespace.IDerivedStruct derived) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IDerivedStruct)}, new object[]{derived}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IDerivedStruct)}, new object[]{derived}); } /// Returns the "anumber" from a MyFirstStruct struct; diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Documented/Greetee.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Greetee.cs similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Documented/Greetee.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Greetee.cs index 8ef5800fd7..48d1f46546 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Documented/Greetee.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Greetee.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Documented +namespace Amazon.JSII.Tests.CalculatorNamespace { /// These are some arguments you can pass to a method. /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.documented.Greetee")] - public class Greetee : Amazon.JSII.Tests.CalculatorNamespace.Documented.IGreetee + [JsiiByValue(fqn: "jsii-calc.Greetee")] + public class Greetee : Amazon.JSII.Tests.CalculatorNamespace.IGreetee { /// The name of the greetee. /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Documented/GreeteeProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/GreeteeProxy.cs similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Documented/GreeteeProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/GreeteeProxy.cs index 5de3632e79..063f33cc48 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Documented/GreeteeProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/GreeteeProxy.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Documented +namespace Amazon.JSII.Tests.CalculatorNamespace { /// These are some arguments you can pass to a method. /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IGreetee), fullyQualifiedName: "jsii-calc.documented.Greetee")] - internal sealed class GreeteeProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Documented.IGreetee + [JsiiTypeProxy(nativeType: typeof(IGreetee), fullyQualifiedName: "jsii-calc.Greetee")] + internal sealed class GreeteeProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IGreetee { private GreeteeProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/GreetingAugmenter.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/GreetingAugmenter.cs similarity index 91% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/GreetingAugmenter.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/GreetingAugmenter.cs index 80754960d6..27f15e61fc 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/GreetingAugmenter.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/GreetingAugmenter.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.GreetingAugmenter), fullyQualifiedName: "jsii-calc.compliance.GreetingAugmenter")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.GreetingAugmenter), fullyQualifiedName: "jsii-calc.GreetingAugmenter")] public class GreetingAugmenter : DeputyBase { public GreetingAugmenter(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IAnonymousImplementationProvider.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymousImplementationProvider.cs similarity index 62% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IAnonymousImplementationProvider.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymousImplementationProvider.cs index 717814d7eb..b05ab50ed2 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IAnonymousImplementationProvider.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymousImplementationProvider.cs @@ -2,24 +2,24 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// We can return an anonymous interface implementation from an override without losing the interface declarations. /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IAnonymousImplementationProvider), fullyQualifiedName: "jsii-calc.compliance.IAnonymousImplementationProvider")] + [JsiiInterface(nativeType: typeof(IAnonymousImplementationProvider), fullyQualifiedName: "jsii-calc.IAnonymousImplementationProvider")] public interface IAnonymousImplementationProvider { /// /// Stability: Experimental /// - [JsiiMethod(name: "provideAsClass", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.Implementation\"}}")] - Amazon.JSII.Tests.CalculatorNamespace.Compliance.Implementation ProvideAsClass(); + [JsiiMethod(name: "provideAsClass", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.Implementation\"}}")] + Amazon.JSII.Tests.CalculatorNamespace.Implementation ProvideAsClass(); /// /// Stability: Experimental /// - [JsiiMethod(name: "provideAsInterface", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.IAnonymouslyImplementMe\"}}")] - Amazon.JSII.Tests.CalculatorNamespace.Compliance.IAnonymouslyImplementMe ProvideAsInterface(); + [JsiiMethod(name: "provideAsInterface", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.IAnonymouslyImplementMe\"}}")] + Amazon.JSII.Tests.CalculatorNamespace.IAnonymouslyImplementMe ProvideAsInterface(); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IAnonymousImplementationProviderProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymousImplementationProviderProxy.cs similarity index 58% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IAnonymousImplementationProviderProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymousImplementationProviderProxy.cs index 484874fce4..024b37f5d4 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IAnonymousImplementationProviderProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymousImplementationProviderProxy.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// We can return an anonymous interface implementation from an override without losing the interface declarations. /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IAnonymousImplementationProvider), fullyQualifiedName: "jsii-calc.compliance.IAnonymousImplementationProvider")] - internal sealed class IAnonymousImplementationProviderProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IAnonymousImplementationProvider + [JsiiTypeProxy(nativeType: typeof(IAnonymousImplementationProvider), fullyQualifiedName: "jsii-calc.IAnonymousImplementationProvider")] + internal sealed class IAnonymousImplementationProviderProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IAnonymousImplementationProvider { private IAnonymousImplementationProviderProxy(ByRefValue reference): base(reference) { @@ -18,19 +18,19 @@ private IAnonymousImplementationProviderProxy(ByRefValue reference): base(refere /// /// Stability: Experimental /// - [JsiiMethod(name: "provideAsClass", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.Implementation\"}}")] - public Amazon.JSII.Tests.CalculatorNamespace.Compliance.Implementation ProvideAsClass() + [JsiiMethod(name: "provideAsClass", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.Implementation\"}}")] + public Amazon.JSII.Tests.CalculatorNamespace.Implementation ProvideAsClass() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } /// /// Stability: Experimental /// - [JsiiMethod(name: "provideAsInterface", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.IAnonymouslyImplementMe\"}}")] - public Amazon.JSII.Tests.CalculatorNamespace.Compliance.IAnonymouslyImplementMe ProvideAsInterface() + [JsiiMethod(name: "provideAsInterface", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.IAnonymouslyImplementMe\"}}")] + public Amazon.JSII.Tests.CalculatorNamespace.IAnonymouslyImplementMe ProvideAsInterface() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IAnonymouslyImplementMe.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymouslyImplementMe.cs similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IAnonymouslyImplementMe.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymouslyImplementMe.cs index c489ab2dbe..e597158e5b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IAnonymouslyImplementMe.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymouslyImplementMe.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IAnonymouslyImplementMe), fullyQualifiedName: "jsii-calc.compliance.IAnonymouslyImplementMe")] + [JsiiInterface(nativeType: typeof(IAnonymouslyImplementMe), fullyQualifiedName: "jsii-calc.IAnonymouslyImplementMe")] public interface IAnonymouslyImplementMe { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IAnonymouslyImplementMeProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymouslyImplementMeProxy.cs similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IAnonymouslyImplementMeProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymouslyImplementMeProxy.cs index 22ee493947..8332a597ee 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IAnonymouslyImplementMeProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnonymouslyImplementMeProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IAnonymouslyImplementMe), fullyQualifiedName: "jsii-calc.compliance.IAnonymouslyImplementMe")] - internal sealed class IAnonymouslyImplementMeProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IAnonymouslyImplementMe + [JsiiTypeProxy(nativeType: typeof(IAnonymouslyImplementMe), fullyQualifiedName: "jsii-calc.IAnonymouslyImplementMe")] + internal sealed class IAnonymouslyImplementMeProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IAnonymouslyImplementMe { private IAnonymouslyImplementMeProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IAnotherPublicInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnotherPublicInterface.cs similarity index 80% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IAnotherPublicInterface.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnotherPublicInterface.cs index 73882af025..a9e6e70208 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IAnotherPublicInterface.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnotherPublicInterface.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IAnotherPublicInterface), fullyQualifiedName: "jsii-calc.compliance.IAnotherPublicInterface")] + [JsiiInterface(nativeType: typeof(IAnotherPublicInterface), fullyQualifiedName: "jsii-calc.IAnotherPublicInterface")] public interface IAnotherPublicInterface { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IAnotherPublicInterfaceProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnotherPublicInterfaceProxy.cs similarity index 77% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IAnotherPublicInterfaceProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnotherPublicInterfaceProxy.cs index e7b91aea6c..c8cc9365ae 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IAnotherPublicInterfaceProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IAnotherPublicInterfaceProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IAnotherPublicInterface), fullyQualifiedName: "jsii-calc.compliance.IAnotherPublicInterface")] - internal sealed class IAnotherPublicInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IAnotherPublicInterface + [JsiiTypeProxy(nativeType: typeof(IAnotherPublicInterface), fullyQualifiedName: "jsii-calc.IAnotherPublicInterface")] + internal sealed class IAnotherPublicInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IAnotherPublicInterface { private IAnotherPublicInterfaceProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IBell.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBell.cs similarity index 82% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IBell.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBell.cs index 7c42661bc5..8d9660f909 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IBell.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBell.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IBell), fullyQualifiedName: "jsii-calc.compliance.IBell")] + [JsiiInterface(nativeType: typeof(IBell), fullyQualifiedName: "jsii-calc.IBell")] public interface IBell { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IBellProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBellProxy.cs similarity index 82% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IBellProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBellProxy.cs index dc679e1234..c97675e990 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IBellProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBellProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IBell), fullyQualifiedName: "jsii-calc.compliance.IBell")] - internal sealed class IBellProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IBell + [JsiiTypeProxy(nativeType: typeof(IBell), fullyQualifiedName: "jsii-calc.IBell")] + internal sealed class IBellProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IBell { private IBellProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IBellRinger.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBellRinger.cs similarity index 66% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IBellRinger.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBellRinger.cs index 263619581d..c3ce3e7eee 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IBellRinger.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBellRinger.cs @@ -2,19 +2,19 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// Takes the object parameter as an interface. /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IBellRinger), fullyQualifiedName: "jsii-calc.compliance.IBellRinger")] + [JsiiInterface(nativeType: typeof(IBellRinger), fullyQualifiedName: "jsii-calc.IBellRinger")] public interface IBellRinger { /// /// Stability: Experimental /// - [JsiiMethod(name: "yourTurn", parametersJson: "[{\"name\":\"bell\",\"type\":{\"fqn\":\"jsii-calc.compliance.IBell\"}}]")] - void YourTurn(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IBell bell); + [JsiiMethod(name: "yourTurn", parametersJson: "[{\"name\":\"bell\",\"type\":{\"fqn\":\"jsii-calc.IBell\"}}]")] + void YourTurn(Amazon.JSII.Tests.CalculatorNamespace.IBell bell); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IBellRingerProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBellRingerProxy.cs similarity index 70% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IBellRingerProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBellRingerProxy.cs index 796f39064a..58c94edc91 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IBellRingerProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IBellRingerProxy.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// Takes the object parameter as an interface. /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IBellRinger), fullyQualifiedName: "jsii-calc.compliance.IBellRinger")] - internal sealed class IBellRingerProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IBellRinger + [JsiiTypeProxy(nativeType: typeof(IBellRinger), fullyQualifiedName: "jsii-calc.IBellRinger")] + internal sealed class IBellRingerProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IBellRinger { private IBellRingerProxy(ByRefValue reference): base(reference) { @@ -18,10 +18,10 @@ private IBellRingerProxy(ByRefValue reference): base(reference) /// /// Stability: Experimental /// - [JsiiMethod(name: "yourTurn", parametersJson: "[{\"name\":\"bell\",\"type\":{\"fqn\":\"jsii-calc.compliance.IBell\"}}]")] - public void YourTurn(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IBell bell) + [JsiiMethod(name: "yourTurn", parametersJson: "[{\"name\":\"bell\",\"type\":{\"fqn\":\"jsii-calc.IBell\"}}]")] + public void YourTurn(Amazon.JSII.Tests.CalculatorNamespace.IBell bell) { - InvokeInstanceVoidMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IBell)}, new object[]{bell}); + InvokeInstanceVoidMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBell)}, new object[]{bell}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IChildStruct982.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IChildStruct982.cs similarity index 78% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IChildStruct982.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IChildStruct982.cs index 8749363116..547a089a6d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IChildStruct982.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IChildStruct982.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IChildStruct982), fullyQualifiedName: "jsii-calc.compliance.ChildStruct982")] - public interface IChildStruct982 : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IParentStruct982 + [JsiiInterface(nativeType: typeof(IChildStruct982), fullyQualifiedName: "jsii-calc.ChildStruct982")] + public interface IChildStruct982 : Amazon.JSII.Tests.CalculatorNamespace.IParentStruct982 { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IConcreteBellRinger.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IConcreteBellRinger.cs similarity index 65% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IConcreteBellRinger.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IConcreteBellRinger.cs index 4324154581..30046d2fe7 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IConcreteBellRinger.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IConcreteBellRinger.cs @@ -2,19 +2,19 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// Takes the object parameter as a calss. /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IConcreteBellRinger), fullyQualifiedName: "jsii-calc.compliance.IConcreteBellRinger")] + [JsiiInterface(nativeType: typeof(IConcreteBellRinger), fullyQualifiedName: "jsii-calc.IConcreteBellRinger")] public interface IConcreteBellRinger { /// /// Stability: Experimental /// - [JsiiMethod(name: "yourTurn", parametersJson: "[{\"name\":\"bell\",\"type\":{\"fqn\":\"jsii-calc.compliance.Bell\"}}]")] - void YourTurn(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Bell bell); + [JsiiMethod(name: "yourTurn", parametersJson: "[{\"name\":\"bell\",\"type\":{\"fqn\":\"jsii-calc.Bell\"}}]")] + void YourTurn(Amazon.JSII.Tests.CalculatorNamespace.Bell bell); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IConcreteBellRingerProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IConcreteBellRingerProxy.cs similarity index 68% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IConcreteBellRingerProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IConcreteBellRingerProxy.cs index 38c96e00bd..2070d3934b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IConcreteBellRingerProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IConcreteBellRingerProxy.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// Takes the object parameter as a calss. /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IConcreteBellRinger), fullyQualifiedName: "jsii-calc.compliance.IConcreteBellRinger")] - internal sealed class IConcreteBellRingerProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IConcreteBellRinger + [JsiiTypeProxy(nativeType: typeof(IConcreteBellRinger), fullyQualifiedName: "jsii-calc.IConcreteBellRinger")] + internal sealed class IConcreteBellRingerProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IConcreteBellRinger { private IConcreteBellRingerProxy(ByRefValue reference): base(reference) { @@ -18,10 +18,10 @@ private IConcreteBellRingerProxy(ByRefValue reference): base(reference) /// /// Stability: Experimental /// - [JsiiMethod(name: "yourTurn", parametersJson: "[{\"name\":\"bell\",\"type\":{\"fqn\":\"jsii-calc.compliance.Bell\"}}]")] - public void YourTurn(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Bell bell) + [JsiiMethod(name: "yourTurn", parametersJson: "[{\"name\":\"bell\",\"type\":{\"fqn\":\"jsii-calc.Bell\"}}]")] + public void YourTurn(Amazon.JSII.Tests.CalculatorNamespace.Bell bell) { - InvokeInstanceVoidMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Bell)}, new object[]{bell}); + InvokeInstanceVoidMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Bell)}, new object[]{bell}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IConfusingToJacksonStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IConfusingToJacksonStruct.cs similarity index 68% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IConfusingToJacksonStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IConfusingToJacksonStruct.cs index 4fda1e6d13..6f977dec15 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IConfusingToJacksonStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IConfusingToJacksonStruct.cs @@ -2,18 +2,18 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IConfusingToJacksonStruct), fullyQualifiedName: "jsii-calc.compliance.ConfusingToJacksonStruct")] + [JsiiInterface(nativeType: typeof(IConfusingToJacksonStruct), fullyQualifiedName: "jsii-calc.ConfusingToJacksonStruct")] public interface IConfusingToJacksonStruct { /// /// Stability: Experimental /// - [JsiiProperty(name: "unionProperty", typeJson: "{\"union\":{\"types\":[{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"},{\"collection\":{\"elementtype\":{\"union\":{\"types\":[{\"fqn\":\"jsii-calc.compliance.AbstractClass\"},{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"}]}},\"kind\":\"array\"}}]}}", isOptional: true)] + [JsiiProperty(name: "unionProperty", typeJson: "{\"union\":{\"types\":[{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"},{\"collection\":{\"elementtype\":{\"union\":{\"types\":[{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"},{\"fqn\":\"jsii-calc.AbstractClass\"}]}},\"kind\":\"array\"}}]}}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] object? UnionProperty { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IDeprecatedInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDeprecatedInterface.cs similarity index 88% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IDeprecatedInterface.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDeprecatedInterface.cs index 3d32ad3535..cf3eec3a0b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IDeprecatedInterface.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDeprecatedInterface.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Deprecated /// - [JsiiInterface(nativeType: typeof(IDeprecatedInterface), fullyQualifiedName: "jsii-calc.stability_annotations.IDeprecatedInterface")] + [JsiiInterface(nativeType: typeof(IDeprecatedInterface), fullyQualifiedName: "jsii-calc.IDeprecatedInterface")] [System.Obsolete("useless interface")] public interface IDeprecatedInterface { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IDeprecatedInterfaceProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDeprecatedInterfaceProxy.cs similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IDeprecatedInterfaceProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDeprecatedInterfaceProxy.cs index 7ee2014c41..3088276b2b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IDeprecatedInterfaceProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDeprecatedInterfaceProxy.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Deprecated /// - [JsiiTypeProxy(nativeType: typeof(IDeprecatedInterface), fullyQualifiedName: "jsii-calc.stability_annotations.IDeprecatedInterface")] + [JsiiTypeProxy(nativeType: typeof(IDeprecatedInterface), fullyQualifiedName: "jsii-calc.IDeprecatedInterface")] [System.Obsolete("useless interface")] - internal sealed class IDeprecatedInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations.IDeprecatedInterface + internal sealed class IDeprecatedInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IDeprecatedInterface { private IDeprecatedInterfaceProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IDeprecatedStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDeprecatedStruct.cs similarity index 82% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IDeprecatedStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDeprecatedStruct.cs index 110b2618e8..9ac07e113a 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IDeprecatedStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDeprecatedStruct.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Deprecated /// - [JsiiInterface(nativeType: typeof(IDeprecatedStruct), fullyQualifiedName: "jsii-calc.stability_annotations.DeprecatedStruct")] + [JsiiInterface(nativeType: typeof(IDeprecatedStruct), fullyQualifiedName: "jsii-calc.DeprecatedStruct")] [System.Obsolete("it just wraps a string")] public interface IDeprecatedStruct { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IDerivedStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDerivedStruct.cs similarity index 91% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IDerivedStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDerivedStruct.cs index 053dd89bc5..d13374e934 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IDerivedStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDerivedStruct.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// A struct which derives from another struct. /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IDerivedStruct), fullyQualifiedName: "jsii-calc.compliance.DerivedStruct")] + [JsiiInterface(nativeType: typeof(IDerivedStruct), fullyQualifiedName: "jsii-calc.DerivedStruct")] public interface IDerivedStruct : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IMyFirstStruct { /// @@ -33,8 +33,8 @@ bool Bool /// /// Stability: Experimental /// - [JsiiProperty(name: "nonPrimitive", typeJson: "{\"fqn\":\"jsii-calc.compliance.DoubleTrouble\"}")] - Amazon.JSII.Tests.CalculatorNamespace.Compliance.DoubleTrouble NonPrimitive + [JsiiProperty(name: "nonPrimitive", typeJson: "{\"fqn\":\"jsii-calc.DoubleTrouble\"}")] + Amazon.JSII.Tests.CalculatorNamespace.DoubleTrouble NonPrimitive { get; } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IDiamondInheritanceBaseLevelStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceBaseLevelStruct.cs similarity index 79% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IDiamondInheritanceBaseLevelStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceBaseLevelStruct.cs index 009be2919e..593ddc3b2f 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IDiamondInheritanceBaseLevelStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceBaseLevelStruct.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IDiamondInheritanceBaseLevelStruct), fullyQualifiedName: "jsii-calc.compliance.DiamondInheritanceBaseLevelStruct")] + [JsiiInterface(nativeType: typeof(IDiamondInheritanceBaseLevelStruct), fullyQualifiedName: "jsii-calc.DiamondInheritanceBaseLevelStruct")] public interface IDiamondInheritanceBaseLevelStruct { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IDiamondInheritanceFirstMidLevelStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceFirstMidLevelStruct.cs similarity index 70% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IDiamondInheritanceFirstMidLevelStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceFirstMidLevelStruct.cs index a5b4e90f1b..122e1e2e8c 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IDiamondInheritanceFirstMidLevelStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceFirstMidLevelStruct.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IDiamondInheritanceFirstMidLevelStruct), fullyQualifiedName: "jsii-calc.compliance.DiamondInheritanceFirstMidLevelStruct")] - public interface IDiamondInheritanceFirstMidLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IDiamondInheritanceBaseLevelStruct + [JsiiInterface(nativeType: typeof(IDiamondInheritanceFirstMidLevelStruct), fullyQualifiedName: "jsii-calc.DiamondInheritanceFirstMidLevelStruct")] + public interface IDiamondInheritanceFirstMidLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceBaseLevelStruct { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IDiamondInheritanceSecondMidLevelStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceSecondMidLevelStruct.cs similarity index 70% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IDiamondInheritanceSecondMidLevelStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceSecondMidLevelStruct.cs index d19468a159..b7d5765c88 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IDiamondInheritanceSecondMidLevelStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceSecondMidLevelStruct.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IDiamondInheritanceSecondMidLevelStruct), fullyQualifiedName: "jsii-calc.compliance.DiamondInheritanceSecondMidLevelStruct")] - public interface IDiamondInheritanceSecondMidLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IDiamondInheritanceBaseLevelStruct + [JsiiInterface(nativeType: typeof(IDiamondInheritanceSecondMidLevelStruct), fullyQualifiedName: "jsii-calc.DiamondInheritanceSecondMidLevelStruct")] + public interface IDiamondInheritanceSecondMidLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceBaseLevelStruct { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IDiamondInheritanceTopLevelStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceTopLevelStruct.cs similarity index 64% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IDiamondInheritanceTopLevelStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceTopLevelStruct.cs index 1c5e1ba9b3..4db183c2f0 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IDiamondInheritanceTopLevelStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IDiamondInheritanceTopLevelStruct.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IDiamondInheritanceTopLevelStruct), fullyQualifiedName: "jsii-calc.compliance.DiamondInheritanceTopLevelStruct")] - public interface IDiamondInheritanceTopLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IDiamondInheritanceFirstMidLevelStruct, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IDiamondInheritanceSecondMidLevelStruct + [JsiiInterface(nativeType: typeof(IDiamondInheritanceTopLevelStruct), fullyQualifiedName: "jsii-calc.DiamondInheritanceTopLevelStruct")] + public interface IDiamondInheritanceTopLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceFirstMidLevelStruct, Amazon.JSII.Tests.CalculatorNamespace.IDiamondInheritanceSecondMidLevelStruct { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IEraseUndefinedHashValuesOptions.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IEraseUndefinedHashValuesOptions.cs similarity index 87% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IEraseUndefinedHashValuesOptions.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IEraseUndefinedHashValuesOptions.cs index 385443aabb..9e531f3fc3 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IEraseUndefinedHashValuesOptions.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IEraseUndefinedHashValuesOptions.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IEraseUndefinedHashValuesOptions), fullyQualifiedName: "jsii-calc.compliance.EraseUndefinedHashValuesOptions")] + [JsiiInterface(nativeType: typeof(IEraseUndefinedHashValuesOptions), fullyQualifiedName: "jsii-calc.EraseUndefinedHashValuesOptions")] public interface IEraseUndefinedHashValuesOptions { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IExperimentalInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExperimentalInterface.cs similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IExperimentalInterface.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExperimentalInterface.cs index dece1e6513..6490862fd1 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IExperimentalInterface.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExperimentalInterface.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IExperimentalInterface), fullyQualifiedName: "jsii-calc.stability_annotations.IExperimentalInterface")] + [JsiiInterface(nativeType: typeof(IExperimentalInterface), fullyQualifiedName: "jsii-calc.IExperimentalInterface")] public interface IExperimentalInterface { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IExperimentalInterfaceProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExperimentalInterfaceProxy.cs similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IExperimentalInterfaceProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExperimentalInterfaceProxy.cs index 57544d3aed..0116a80ac4 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IExperimentalInterfaceProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExperimentalInterfaceProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IExperimentalInterface), fullyQualifiedName: "jsii-calc.stability_annotations.IExperimentalInterface")] - internal sealed class IExperimentalInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations.IExperimentalInterface + [JsiiTypeProxy(nativeType: typeof(IExperimentalInterface), fullyQualifiedName: "jsii-calc.IExperimentalInterface")] + internal sealed class IExperimentalInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IExperimentalInterface { private IExperimentalInterfaceProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IExperimentalStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExperimentalStruct.cs similarity index 79% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IExperimentalStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExperimentalStruct.cs index 33e6482343..b7e3ead730 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IExperimentalStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExperimentalStruct.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IExperimentalStruct), fullyQualifiedName: "jsii-calc.stability_annotations.ExperimentalStruct")] + [JsiiInterface(nativeType: typeof(IExperimentalStruct), fullyQualifiedName: "jsii-calc.ExperimentalStruct")] public interface IExperimentalStruct { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IExtendsInternalInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExtendsInternalInterface.cs similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IExtendsInternalInterface.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExtendsInternalInterface.cs index 9282678c0d..4d4acef34c 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IExtendsInternalInterface.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExtendsInternalInterface.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IExtendsInternalInterface), fullyQualifiedName: "jsii-calc.compliance.ExtendsInternalInterface")] + [JsiiInterface(nativeType: typeof(IExtendsInternalInterface), fullyQualifiedName: "jsii-calc.ExtendsInternalInterface")] public interface IExtendsInternalInterface { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IExtendsPrivateInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExtendsPrivateInterface.cs similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IExtendsPrivateInterface.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExtendsPrivateInterface.cs index b7086540e6..bfa38ca241 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IExtendsPrivateInterface.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExtendsPrivateInterface.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IExtendsPrivateInterface), fullyQualifiedName: "jsii-calc.compliance.IExtendsPrivateInterface")] + [JsiiInterface(nativeType: typeof(IExtendsPrivateInterface), fullyQualifiedName: "jsii-calc.IExtendsPrivateInterface")] public interface IExtendsPrivateInterface { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IExtendsPrivateInterfaceProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExtendsPrivateInterfaceProxy.cs similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IExtendsPrivateInterfaceProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExtendsPrivateInterfaceProxy.cs index 5f5f873b9b..1487123ed0 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IExtendsPrivateInterfaceProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IExtendsPrivateInterfaceProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IExtendsPrivateInterface), fullyQualifiedName: "jsii-calc.compliance.IExtendsPrivateInterface")] - internal sealed class IExtendsPrivateInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IExtendsPrivateInterface + [JsiiTypeProxy(nativeType: typeof(IExtendsPrivateInterface), fullyQualifiedName: "jsii-calc.IExtendsPrivateInterface")] + internal sealed class IExtendsPrivateInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IExtendsPrivateInterface { private IExtendsPrivateInterfaceProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Documented/IGreetee.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IGreetee.cs similarity index 89% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Documented/IGreetee.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IGreetee.cs index b48b807293..dd4e12710b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Documented/IGreetee.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IGreetee.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Documented +namespace Amazon.JSII.Tests.CalculatorNamespace { /// These are some arguments you can pass to a method. /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IGreetee), fullyQualifiedName: "jsii-calc.documented.Greetee")] + [JsiiInterface(nativeType: typeof(IGreetee), fullyQualifiedName: "jsii-calc.Greetee")] public interface IGreetee { /// The name of the greetee. diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IImplictBaseOfBase.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IImplictBaseOfBase.cs similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IImplictBaseOfBase.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IImplictBaseOfBase.cs index 04c0274dd5..20d87af703 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IImplictBaseOfBase.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IImplictBaseOfBase.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IImplictBaseOfBase), fullyQualifiedName: "jsii-calc.compliance.ImplictBaseOfBase")] + [JsiiInterface(nativeType: typeof(IImplictBaseOfBase), fullyQualifiedName: "jsii-calc.ImplictBaseOfBase")] public interface IImplictBaseOfBase : Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.IBaseProps { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceImplementedByAbstractClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceImplementedByAbstractClass.cs similarity index 80% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceImplementedByAbstractClass.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceImplementedByAbstractClass.cs index d3ee621e04..31fb8626cd 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceImplementedByAbstractClass.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceImplementedByAbstractClass.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// awslabs/jsii#220 Abstract return type. /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IInterfaceImplementedByAbstractClass), fullyQualifiedName: "jsii-calc.compliance.IInterfaceImplementedByAbstractClass")] + [JsiiInterface(nativeType: typeof(IInterfaceImplementedByAbstractClass), fullyQualifiedName: "jsii-calc.IInterfaceImplementedByAbstractClass")] public interface IInterfaceImplementedByAbstractClass { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceImplementedByAbstractClassProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceImplementedByAbstractClassProxy.cs similarity index 75% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceImplementedByAbstractClassProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceImplementedByAbstractClassProxy.cs index 74a6dd6b2b..a0a1c599dc 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceImplementedByAbstractClassProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceImplementedByAbstractClassProxy.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// awslabs/jsii#220 Abstract return type. /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IInterfaceImplementedByAbstractClass), fullyQualifiedName: "jsii-calc.compliance.IInterfaceImplementedByAbstractClass")] - internal sealed class IInterfaceImplementedByAbstractClassProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IInterfaceImplementedByAbstractClass + [JsiiTypeProxy(nativeType: typeof(IInterfaceImplementedByAbstractClass), fullyQualifiedName: "jsii-calc.IInterfaceImplementedByAbstractClass")] + internal sealed class IInterfaceImplementedByAbstractClassProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceImplementedByAbstractClass { private IInterfaceImplementedByAbstractClassProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceThatShouldNotBeADataType.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceThatShouldNotBeADataType.cs similarity index 77% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceThatShouldNotBeADataType.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceThatShouldNotBeADataType.cs index c01647befb..2ed4afd7aa 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceThatShouldNotBeADataType.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceThatShouldNotBeADataType.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype. /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IInterfaceThatShouldNotBeADataType), fullyQualifiedName: "jsii-calc.compliance.IInterfaceThatShouldNotBeADataType")] - public interface IInterfaceThatShouldNotBeADataType : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IInterfaceWithMethods + [JsiiInterface(nativeType: typeof(IInterfaceThatShouldNotBeADataType), fullyQualifiedName: "jsii-calc.IInterfaceThatShouldNotBeADataType")] + public interface IInterfaceThatShouldNotBeADataType : Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithMethods { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceThatShouldNotBeADataTypeProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceThatShouldNotBeADataTypeProxy.cs similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceThatShouldNotBeADataTypeProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceThatShouldNotBeADataTypeProxy.cs index 1ca539bb6c..8d94bf4959 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceThatShouldNotBeADataTypeProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceThatShouldNotBeADataTypeProxy.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype. /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IInterfaceThatShouldNotBeADataType), fullyQualifiedName: "jsii-calc.compliance.IInterfaceThatShouldNotBeADataType")] - internal sealed class IInterfaceThatShouldNotBeADataTypeProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IInterfaceThatShouldNotBeADataType + [JsiiTypeProxy(nativeType: typeof(IInterfaceThatShouldNotBeADataType), fullyQualifiedName: "jsii-calc.IInterfaceThatShouldNotBeADataType")] + internal sealed class IInterfaceThatShouldNotBeADataTypeProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceThatShouldNotBeADataType { private IInterfaceThatShouldNotBeADataTypeProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithInternal.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithInternal.cs similarity index 78% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithInternal.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithInternal.cs index 0b0f44374c..53ffdd4132 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithInternal.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithInternal.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IInterfaceWithInternal), fullyQualifiedName: "jsii-calc.compliance.IInterfaceWithInternal")] + [JsiiInterface(nativeType: typeof(IInterfaceWithInternal), fullyQualifiedName: "jsii-calc.IInterfaceWithInternal")] public interface IInterfaceWithInternal { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithInternalProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithInternalProxy.cs similarity index 76% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithInternalProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithInternalProxy.cs index 28afb360de..7fd3e24542 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithInternalProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithInternalProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IInterfaceWithInternal), fullyQualifiedName: "jsii-calc.compliance.IInterfaceWithInternal")] - internal sealed class IInterfaceWithInternalProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IInterfaceWithInternal + [JsiiTypeProxy(nativeType: typeof(IInterfaceWithInternal), fullyQualifiedName: "jsii-calc.IInterfaceWithInternal")] + internal sealed class IInterfaceWithInternalProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithInternal { private IInterfaceWithInternalProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithMethods.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithMethods.cs similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithMethods.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithMethods.cs index ab63a075b5..e3f276336c 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithMethods.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithMethods.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IInterfaceWithMethods), fullyQualifiedName: "jsii-calc.compliance.IInterfaceWithMethods")] + [JsiiInterface(nativeType: typeof(IInterfaceWithMethods), fullyQualifiedName: "jsii-calc.IInterfaceWithMethods")] public interface IInterfaceWithMethods { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithMethodsProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithMethodsProxy.cs similarity index 82% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithMethodsProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithMethodsProxy.cs index 911d1d61b4..e995d959d3 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithMethodsProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithMethodsProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IInterfaceWithMethods), fullyQualifiedName: "jsii-calc.compliance.IInterfaceWithMethods")] - internal sealed class IInterfaceWithMethodsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IInterfaceWithMethods + [JsiiTypeProxy(nativeType: typeof(IInterfaceWithMethods), fullyQualifiedName: "jsii-calc.IInterfaceWithMethods")] + internal sealed class IInterfaceWithMethodsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithMethods { private IInterfaceWithMethodsProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithOptionalMethodArguments.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithOptionalMethodArguments.cs similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithOptionalMethodArguments.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithOptionalMethodArguments.cs index 2a084de66b..b5dffd51a6 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithOptionalMethodArguments.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithOptionalMethodArguments.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods. /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IInterfaceWithOptionalMethodArguments), fullyQualifiedName: "jsii-calc.compliance.IInterfaceWithOptionalMethodArguments")] + [JsiiInterface(nativeType: typeof(IInterfaceWithOptionalMethodArguments), fullyQualifiedName: "jsii-calc.IInterfaceWithOptionalMethodArguments")] public interface IInterfaceWithOptionalMethodArguments { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithOptionalMethodArgumentsProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithOptionalMethodArgumentsProxy.cs similarity index 79% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithOptionalMethodArgumentsProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithOptionalMethodArgumentsProxy.cs index 67c2a59dde..6646913a80 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithOptionalMethodArgumentsProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithOptionalMethodArgumentsProxy.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods. /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IInterfaceWithOptionalMethodArguments), fullyQualifiedName: "jsii-calc.compliance.IInterfaceWithOptionalMethodArguments")] - internal sealed class IInterfaceWithOptionalMethodArgumentsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IInterfaceWithOptionalMethodArguments + [JsiiTypeProxy(nativeType: typeof(IInterfaceWithOptionalMethodArguments), fullyQualifiedName: "jsii-calc.IInterfaceWithOptionalMethodArguments")] + internal sealed class IInterfaceWithOptionalMethodArgumentsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithOptionalMethodArguments { private IInterfaceWithOptionalMethodArgumentsProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithProperties.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithProperties.cs similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithProperties.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithProperties.cs index 1a974ae881..294f1202d9 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithProperties.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithProperties.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IInterfaceWithProperties), fullyQualifiedName: "jsii-calc.compliance.IInterfaceWithProperties")] + [JsiiInterface(nativeType: typeof(IInterfaceWithProperties), fullyQualifiedName: "jsii-calc.IInterfaceWithProperties")] public interface IInterfaceWithProperties { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithPropertiesExtension.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithPropertiesExtension.cs similarity index 72% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithPropertiesExtension.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithPropertiesExtension.cs index 03f2ec3396..bc3a8dd689 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithPropertiesExtension.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithPropertiesExtension.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IInterfaceWithPropertiesExtension), fullyQualifiedName: "jsii-calc.compliance.IInterfaceWithPropertiesExtension")] - public interface IInterfaceWithPropertiesExtension : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IInterfaceWithProperties + [JsiiInterface(nativeType: typeof(IInterfaceWithPropertiesExtension), fullyQualifiedName: "jsii-calc.IInterfaceWithPropertiesExtension")] + public interface IInterfaceWithPropertiesExtension : Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithProperties { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithPropertiesExtensionProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithPropertiesExtensionProxy.cs similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithPropertiesExtensionProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithPropertiesExtensionProxy.cs index eec1e0002f..7925b7b394 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithPropertiesExtensionProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithPropertiesExtensionProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IInterfaceWithPropertiesExtension), fullyQualifiedName: "jsii-calc.compliance.IInterfaceWithPropertiesExtension")] - internal sealed class IInterfaceWithPropertiesExtensionProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IInterfaceWithPropertiesExtension + [JsiiTypeProxy(nativeType: typeof(IInterfaceWithPropertiesExtension), fullyQualifiedName: "jsii-calc.IInterfaceWithPropertiesExtension")] + internal sealed class IInterfaceWithPropertiesExtensionProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithPropertiesExtension { private IInterfaceWithPropertiesExtensionProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithPropertiesProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithPropertiesProxy.cs similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithPropertiesProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithPropertiesProxy.cs index d424650fb5..4e38afd9d6 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IInterfaceWithPropertiesProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IInterfaceWithPropertiesProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IInterfaceWithProperties), fullyQualifiedName: "jsii-calc.compliance.IInterfaceWithProperties")] - internal sealed class IInterfaceWithPropertiesProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IInterfaceWithProperties + [JsiiTypeProxy(nativeType: typeof(IInterfaceWithProperties), fullyQualifiedName: "jsii-calc.IInterfaceWithProperties")] + internal sealed class IInterfaceWithPropertiesProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithProperties { private IInterfaceWithPropertiesProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJSII417Derived.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417Derived.cs similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJSII417Derived.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417Derived.cs index a6b0d652f4..7e0e6c7eca 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJSII417Derived.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417Derived.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.ErasureTests +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IJSII417Derived), fullyQualifiedName: "jsii-calc.erasureTests.IJSII417Derived")] - public interface IJSII417Derived : Amazon.JSII.Tests.CalculatorNamespace.ErasureTests.IJSII417PublicBaseOfBase + [JsiiInterface(nativeType: typeof(IJSII417Derived), fullyQualifiedName: "jsii-calc.IJSII417Derived")] + public interface IJSII417Derived : Amazon.JSII.Tests.CalculatorNamespace.IJSII417PublicBaseOfBase { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJSII417DerivedProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417DerivedProxy.cs similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJSII417DerivedProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417DerivedProxy.cs index af499220ed..7802c21a47 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJSII417DerivedProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417DerivedProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.ErasureTests +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IJSII417Derived), fullyQualifiedName: "jsii-calc.erasureTests.IJSII417Derived")] - internal sealed class IJSII417DerivedProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ErasureTests.IJSII417Derived + [JsiiTypeProxy(nativeType: typeof(IJSII417Derived), fullyQualifiedName: "jsii-calc.IJSII417Derived")] + internal sealed class IJSII417DerivedProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IJSII417Derived { private IJSII417DerivedProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJSII417PublicBaseOfBase.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417PublicBaseOfBase.cs similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJSII417PublicBaseOfBase.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417PublicBaseOfBase.cs index 20a717ac67..c5681e0a2b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJSII417PublicBaseOfBase.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417PublicBaseOfBase.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.ErasureTests +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IJSII417PublicBaseOfBase), fullyQualifiedName: "jsii-calc.erasureTests.IJSII417PublicBaseOfBase")] + [JsiiInterface(nativeType: typeof(IJSII417PublicBaseOfBase), fullyQualifiedName: "jsii-calc.IJSII417PublicBaseOfBase")] public interface IJSII417PublicBaseOfBase { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJSII417PublicBaseOfBaseProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417PublicBaseOfBaseProxy.cs similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJSII417PublicBaseOfBaseProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417PublicBaseOfBaseProxy.cs index 704f096327..01a7b4700f 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJSII417PublicBaseOfBaseProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJSII417PublicBaseOfBaseProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.ErasureTests +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IJSII417PublicBaseOfBase), fullyQualifiedName: "jsii-calc.erasureTests.IJSII417PublicBaseOfBase")] - internal sealed class IJSII417PublicBaseOfBaseProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ErasureTests.IJSII417PublicBaseOfBase + [JsiiTypeProxy(nativeType: typeof(IJSII417PublicBaseOfBase), fullyQualifiedName: "jsii-calc.IJSII417PublicBaseOfBase")] + internal sealed class IJSII417PublicBaseOfBaseProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IJSII417PublicBaseOfBase { private IJSII417PublicBaseOfBaseProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJsii487External.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487External.cs similarity index 70% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJsii487External.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487External.cs index 9b674debb8..de1260883b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJsii487External.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487External.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.ErasureTests +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IJsii487External), fullyQualifiedName: "jsii-calc.erasureTests.IJsii487External")] + [JsiiInterface(nativeType: typeof(IJsii487External), fullyQualifiedName: "jsii-calc.IJsii487External")] public interface IJsii487External { } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJsii487External2.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487External2.cs similarity index 70% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJsii487External2.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487External2.cs index 7c9be2c457..2eaeb8cba4 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJsii487External2.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487External2.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.ErasureTests +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IJsii487External2), fullyQualifiedName: "jsii-calc.erasureTests.IJsii487External2")] + [JsiiInterface(nativeType: typeof(IJsii487External2), fullyQualifiedName: "jsii-calc.IJsii487External2")] public interface IJsii487External2 { } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJsii487External2Proxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487External2Proxy.cs similarity index 68% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJsii487External2Proxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487External2Proxy.cs index 3276a34004..a1c3449a59 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJsii487External2Proxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487External2Proxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.ErasureTests +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IJsii487External2), fullyQualifiedName: "jsii-calc.erasureTests.IJsii487External2")] - internal sealed class IJsii487External2Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ErasureTests.IJsii487External2 + [JsiiTypeProxy(nativeType: typeof(IJsii487External2), fullyQualifiedName: "jsii-calc.IJsii487External2")] + internal sealed class IJsii487External2Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IJsii487External2 { private IJsii487External2Proxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJsii487ExternalProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487ExternalProxy.cs similarity index 68% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJsii487ExternalProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487ExternalProxy.cs index d49d00081b..6d6488ae8f 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJsii487ExternalProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii487ExternalProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.ErasureTests +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IJsii487External), fullyQualifiedName: "jsii-calc.erasureTests.IJsii487External")] - internal sealed class IJsii487ExternalProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ErasureTests.IJsii487External + [JsiiTypeProxy(nativeType: typeof(IJsii487External), fullyQualifiedName: "jsii-calc.IJsii487External")] + internal sealed class IJsii487ExternalProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IJsii487External { private IJsii487ExternalProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJsii496.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii496.cs similarity index 73% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJsii496.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii496.cs index 0edb5a2d96..06d683366f 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJsii496.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii496.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.ErasureTests +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IJsii496), fullyQualifiedName: "jsii-calc.erasureTests.IJsii496")] + [JsiiInterface(nativeType: typeof(IJsii496), fullyQualifiedName: "jsii-calc.IJsii496")] public interface IJsii496 { } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJsii496Proxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii496Proxy.cs similarity index 72% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJsii496Proxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii496Proxy.cs index 8ccec8f5e0..bc1adf5c06 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/IJsii496Proxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii496Proxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.ErasureTests +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IJsii496), fullyQualifiedName: "jsii-calc.erasureTests.IJsii496")] - internal sealed class IJsii496Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ErasureTests.IJsii496 + [JsiiTypeProxy(nativeType: typeof(IJsii496), fullyQualifiedName: "jsii-calc.IJsii496")] + internal sealed class IJsii496Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IJsii496 { private IJsii496Proxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ILoadBalancedFargateServiceProps.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ILoadBalancedFargateServiceProps.cs similarity index 96% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ILoadBalancedFargateServiceProps.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ILoadBalancedFargateServiceProps.cs index 8f1a81eaf2..13e935d855 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ILoadBalancedFargateServiceProps.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ILoadBalancedFargateServiceProps.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// jsii#298: show default values in sphinx documentation, and respect newlines. /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(ILoadBalancedFargateServiceProps), fullyQualifiedName: "jsii-calc.compliance.LoadBalancedFargateServiceProps")] + [JsiiInterface(nativeType: typeof(ILoadBalancedFargateServiceProps), fullyQualifiedName: "jsii-calc.LoadBalancedFargateServiceProps")] public interface ILoadBalancedFargateServiceProps { /// The container port of the application load balancer attached to your Fargate service. diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IMutableObjectLiteral.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IMutableObjectLiteral.cs similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IMutableObjectLiteral.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IMutableObjectLiteral.cs index 6d913069f2..4a4a0ef2ec 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IMutableObjectLiteral.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IMutableObjectLiteral.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IMutableObjectLiteral), fullyQualifiedName: "jsii-calc.compliance.IMutableObjectLiteral")] + [JsiiInterface(nativeType: typeof(IMutableObjectLiteral), fullyQualifiedName: "jsii-calc.IMutableObjectLiteral")] public interface IMutableObjectLiteral { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IMutableObjectLiteralProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IMutableObjectLiteralProxy.cs similarity index 78% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IMutableObjectLiteralProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IMutableObjectLiteralProxy.cs index 5ab915810e..d40ea185a4 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IMutableObjectLiteralProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IMutableObjectLiteralProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IMutableObjectLiteral), fullyQualifiedName: "jsii-calc.compliance.IMutableObjectLiteral")] - internal sealed class IMutableObjectLiteralProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IMutableObjectLiteral + [JsiiTypeProxy(nativeType: typeof(IMutableObjectLiteral), fullyQualifiedName: "jsii-calc.IMutableObjectLiteral")] + internal sealed class IMutableObjectLiteralProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IMutableObjectLiteral { private IMutableObjectLiteralProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/INestedStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INestedStruct.cs similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/INestedStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INestedStruct.cs index 357db989b4..0a9b2170b4 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/INestedStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INestedStruct.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(INestedStruct), fullyQualifiedName: "jsii-calc.compliance.NestedStruct")] + [JsiiInterface(nativeType: typeof(INestedStruct), fullyQualifiedName: "jsii-calc.NestedStruct")] public interface INestedStruct { /// When provided, must be > 0. diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/INonInternalInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INonInternalInterface.cs similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/INonInternalInterface.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INonInternalInterface.cs index d27d8b0ac6..74382048e8 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/INonInternalInterface.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INonInternalInterface.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(INonInternalInterface), fullyQualifiedName: "jsii-calc.compliance.INonInternalInterface")] - public interface INonInternalInterface : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IAnotherPublicInterface + [JsiiInterface(nativeType: typeof(INonInternalInterface), fullyQualifiedName: "jsii-calc.INonInternalInterface")] + public interface INonInternalInterface : Amazon.JSII.Tests.CalculatorNamespace.IAnotherPublicInterface { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/INonInternalInterfaceProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INonInternalInterfaceProxy.cs similarity index 87% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/INonInternalInterfaceProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INonInternalInterfaceProxy.cs index 2d777be636..9aef3b93df 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/INonInternalInterfaceProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INonInternalInterfaceProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(INonInternalInterface), fullyQualifiedName: "jsii-calc.compliance.INonInternalInterface")] - internal sealed class INonInternalInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.INonInternalInterface + [JsiiTypeProxy(nativeType: typeof(INonInternalInterface), fullyQualifiedName: "jsii-calc.INonInternalInterface")] + internal sealed class INonInternalInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.INonInternalInterface { private INonInternalInterfaceProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/INullShouldBeTreatedAsUndefinedData.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INullShouldBeTreatedAsUndefinedData.cs similarity index 87% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/INullShouldBeTreatedAsUndefinedData.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INullShouldBeTreatedAsUndefinedData.cs index a1270a6e7e..e2961d22da 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/INullShouldBeTreatedAsUndefinedData.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/INullShouldBeTreatedAsUndefinedData.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(INullShouldBeTreatedAsUndefinedData), fullyQualifiedName: "jsii-calc.compliance.NullShouldBeTreatedAsUndefinedData")] + [JsiiInterface(nativeType: typeof(INullShouldBeTreatedAsUndefinedData), fullyQualifiedName: "jsii-calc.NullShouldBeTreatedAsUndefinedData")] public interface INullShouldBeTreatedAsUndefinedData { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IObjectWithProperty.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IObjectWithProperty.cs similarity index 87% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IObjectWithProperty.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IObjectWithProperty.cs index b765d11be7..2851ffe3cf 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IObjectWithProperty.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IObjectWithProperty.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// Make sure that setters are properly called on objects with interfaces. /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IObjectWithProperty), fullyQualifiedName: "jsii-calc.compliance.IObjectWithProperty")] + [JsiiInterface(nativeType: typeof(IObjectWithProperty), fullyQualifiedName: "jsii-calc.IObjectWithProperty")] public interface IObjectWithProperty { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IObjectWithPropertyProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IObjectWithPropertyProxy.cs similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IObjectWithPropertyProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IObjectWithPropertyProxy.cs index d4a89ac73f..f56faa6f35 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IObjectWithPropertyProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IObjectWithPropertyProxy.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// Make sure that setters are properly called on objects with interfaces. /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IObjectWithProperty), fullyQualifiedName: "jsii-calc.compliance.IObjectWithProperty")] - internal sealed class IObjectWithPropertyProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IObjectWithProperty + [JsiiTypeProxy(nativeType: typeof(IObjectWithProperty), fullyQualifiedName: "jsii-calc.IObjectWithProperty")] + internal sealed class IObjectWithPropertyProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IObjectWithProperty { private IObjectWithPropertyProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IOptionalMethod.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IOptionalMethod.cs similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IOptionalMethod.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IOptionalMethod.cs index 62494f192d..65f2b701fa 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IOptionalMethod.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IOptionalMethod.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// Checks that optional result from interface method code generates correctly. /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IOptionalMethod), fullyQualifiedName: "jsii-calc.compliance.IOptionalMethod")] + [JsiiInterface(nativeType: typeof(IOptionalMethod), fullyQualifiedName: "jsii-calc.IOptionalMethod")] public interface IOptionalMethod { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IOptionalMethodProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IOptionalMethodProxy.cs similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IOptionalMethodProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IOptionalMethodProxy.cs index e600535e85..fc24f81181 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IOptionalMethodProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IOptionalMethodProxy.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// Checks that optional result from interface method code generates correctly. /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IOptionalMethod), fullyQualifiedName: "jsii-calc.compliance.IOptionalMethod")] - internal sealed class IOptionalMethodProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IOptionalMethod + [JsiiTypeProxy(nativeType: typeof(IOptionalMethod), fullyQualifiedName: "jsii-calc.IOptionalMethod")] + internal sealed class IOptionalMethodProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IOptionalMethod { private IOptionalMethodProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IOptionalStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IOptionalStruct.cs similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IOptionalStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IOptionalStruct.cs index c20c2bc8c3..f843be2012 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IOptionalStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IOptionalStruct.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IOptionalStruct), fullyQualifiedName: "jsii-calc.compliance.OptionalStruct")] + [JsiiInterface(nativeType: typeof(IOptionalStruct), fullyQualifiedName: "jsii-calc.OptionalStruct")] public interface IOptionalStruct { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IParentStruct982.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IParentStruct982.cs similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IParentStruct982.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IParentStruct982.cs index a30e018826..6cb0e65e6d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IParentStruct982.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IParentStruct982.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// https://github.com/aws/jsii/issues/982. /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IParentStruct982), fullyQualifiedName: "jsii-calc.compliance.ParentStruct982")] + [JsiiInterface(nativeType: typeof(IParentStruct982), fullyQualifiedName: "jsii-calc.ParentStruct982")] public interface IParentStruct982 { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IPrivatelyImplemented.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPrivatelyImplemented.cs similarity index 80% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IPrivatelyImplemented.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPrivatelyImplemented.cs index 4a60ebe620..e90b1a7344 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IPrivatelyImplemented.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPrivatelyImplemented.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IPrivatelyImplemented), fullyQualifiedName: "jsii-calc.compliance.IPrivatelyImplemented")] + [JsiiInterface(nativeType: typeof(IPrivatelyImplemented), fullyQualifiedName: "jsii-calc.IPrivatelyImplemented")] public interface IPrivatelyImplemented { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IPrivatelyImplementedProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPrivatelyImplementedProxy.cs similarity index 77% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IPrivatelyImplementedProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPrivatelyImplementedProxy.cs index bb5c981a2f..5b545a9197 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IPrivatelyImplementedProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPrivatelyImplementedProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IPrivatelyImplemented), fullyQualifiedName: "jsii-calc.compliance.IPrivatelyImplemented")] - internal sealed class IPrivatelyImplementedProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IPrivatelyImplemented + [JsiiTypeProxy(nativeType: typeof(IPrivatelyImplemented), fullyQualifiedName: "jsii-calc.IPrivatelyImplemented")] + internal sealed class IPrivatelyImplementedProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IPrivatelyImplemented { private IPrivatelyImplementedProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IPublicInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterface.cs similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IPublicInterface.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterface.cs index 25edc55397..a90f2de934 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IPublicInterface.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterface.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IPublicInterface), fullyQualifiedName: "jsii-calc.compliance.IPublicInterface")] + [JsiiInterface(nativeType: typeof(IPublicInterface), fullyQualifiedName: "jsii-calc.IPublicInterface")] public interface IPublicInterface { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IPublicInterface2.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterface2.cs similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IPublicInterface2.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterface2.cs index f21ad1e35f..42fb8a9d20 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IPublicInterface2.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterface2.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IPublicInterface2), fullyQualifiedName: "jsii-calc.compliance.IPublicInterface2")] + [JsiiInterface(nativeType: typeof(IPublicInterface2), fullyQualifiedName: "jsii-calc.IPublicInterface2")] public interface IPublicInterface2 { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IPublicInterface2Proxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterface2Proxy.cs similarity index 80% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IPublicInterface2Proxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterface2Proxy.cs index 16138f634d..ca9ec52744 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IPublicInterface2Proxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterface2Proxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IPublicInterface2), fullyQualifiedName: "jsii-calc.compliance.IPublicInterface2")] - internal sealed class IPublicInterface2Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IPublicInterface2 + [JsiiTypeProxy(nativeType: typeof(IPublicInterface2), fullyQualifiedName: "jsii-calc.IPublicInterface2")] + internal sealed class IPublicInterface2Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface2 { private IPublicInterface2Proxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IPublicInterfaceProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterfaceProxy.cs similarity index 80% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IPublicInterfaceProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterfaceProxy.cs index e4ebd4cca3..b0a9c3a4d8 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IPublicInterfaceProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IPublicInterfaceProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IPublicInterface), fullyQualifiedName: "jsii-calc.compliance.IPublicInterface")] - internal sealed class IPublicInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IPublicInterface + [JsiiTypeProxy(nativeType: typeof(IPublicInterface), fullyQualifiedName: "jsii-calc.IPublicInterface")] + internal sealed class IPublicInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface { private IPublicInterfaceProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IReturnJsii976.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnJsii976.cs similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IReturnJsii976.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnJsii976.cs index ff279f86af..451472dc8f 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IReturnJsii976.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnJsii976.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// Returns a subclass of a known class which implements an interface. /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IReturnJsii976), fullyQualifiedName: "jsii-calc.compliance.IReturnJsii976")] + [JsiiInterface(nativeType: typeof(IReturnJsii976), fullyQualifiedName: "jsii-calc.IReturnJsii976")] public interface IReturnJsii976 { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IReturnJsii976Proxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnJsii976Proxy.cs similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IReturnJsii976Proxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnJsii976Proxy.cs index d0e4850dda..e0e1417885 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IReturnJsii976Proxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnJsii976Proxy.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// Returns a subclass of a known class which implements an interface. /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IReturnJsii976), fullyQualifiedName: "jsii-calc.compliance.IReturnJsii976")] - internal sealed class IReturnJsii976Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IReturnJsii976 + [JsiiTypeProxy(nativeType: typeof(IReturnJsii976), fullyQualifiedName: "jsii-calc.IReturnJsii976")] + internal sealed class IReturnJsii976Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IReturnJsii976 { private IReturnJsii976Proxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IReturnsNumber.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnsNumber.cs similarity index 89% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IReturnsNumber.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnsNumber.cs index ee3b1837d9..58caa1a521 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IReturnsNumber.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnsNumber.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IReturnsNumber), fullyQualifiedName: "jsii-calc.compliance.IReturnsNumber")] + [JsiiInterface(nativeType: typeof(IReturnsNumber), fullyQualifiedName: "jsii-calc.IReturnsNumber")] public interface IReturnsNumber { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IReturnsNumberProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnsNumberProxy.cs similarity index 88% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IReturnsNumberProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnsNumberProxy.cs index 8a69ce8dc0..d5d7968841 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IReturnsNumberProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnsNumberProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IReturnsNumber), fullyQualifiedName: "jsii-calc.compliance.IReturnsNumber")] - internal sealed class IReturnsNumberProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IReturnsNumber + [JsiiTypeProxy(nativeType: typeof(IReturnsNumber), fullyQualifiedName: "jsii-calc.IReturnsNumber")] + internal sealed class IReturnsNumberProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IReturnsNumber { private IReturnsNumberProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IRootStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IRootStruct.cs similarity index 82% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IRootStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IRootStruct.cs index 4318eff604..ab6087c2a4 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IRootStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IRootStruct.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary. /// @@ -11,7 +11,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IRootStruct), fullyQualifiedName: "jsii-calc.compliance.RootStruct")] + [JsiiInterface(nativeType: typeof(IRootStruct), fullyQualifiedName: "jsii-calc.RootStruct")] public interface IRootStruct { /// May not be empty. @@ -27,9 +27,9 @@ string StringProp /// /// Stability: Experimental /// - [JsiiProperty(name: "nestedStruct", typeJson: "{\"fqn\":\"jsii-calc.compliance.NestedStruct\"}", isOptional: true)] + [JsiiProperty(name: "nestedStruct", typeJson: "{\"fqn\":\"jsii-calc.NestedStruct\"}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] - Amazon.JSII.Tests.CalculatorNamespace.Compliance.INestedStruct? NestedStruct + Amazon.JSII.Tests.CalculatorNamespace.INestedStruct? NestedStruct { get { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ISecondLevelStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ISecondLevelStruct.cs similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ISecondLevelStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ISecondLevelStruct.cs index 6ed2309318..9a04203a0a 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ISecondLevelStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ISecondLevelStruct.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(ISecondLevelStruct), fullyQualifiedName: "jsii-calc.compliance.SecondLevelStruct")] + [JsiiInterface(nativeType: typeof(ISecondLevelStruct), fullyQualifiedName: "jsii-calc.SecondLevelStruct")] public interface ISecondLevelStruct { /// It's long and required. diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IStableInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStableInterface.cs similarity index 87% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IStableInterface.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStableInterface.cs index a4e095764a..1cf2da11af 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IStableInterface.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStableInterface.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Stable /// - [JsiiInterface(nativeType: typeof(IStableInterface), fullyQualifiedName: "jsii-calc.stability_annotations.IStableInterface")] + [JsiiInterface(nativeType: typeof(IStableInterface), fullyQualifiedName: "jsii-calc.IStableInterface")] public interface IStableInterface { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IStableInterfaceProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStableInterfaceProxy.cs similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IStableInterfaceProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStableInterfaceProxy.cs index 198cb93c03..74f9263890 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IStableInterfaceProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStableInterfaceProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Stable /// - [JsiiTypeProxy(nativeType: typeof(IStableInterface), fullyQualifiedName: "jsii-calc.stability_annotations.IStableInterface")] - internal sealed class IStableInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations.IStableInterface + [JsiiTypeProxy(nativeType: typeof(IStableInterface), fullyQualifiedName: "jsii-calc.IStableInterface")] + internal sealed class IStableInterfaceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IStableInterface { private IStableInterfaceProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IStableStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStableStruct.cs similarity index 80% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IStableStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStableStruct.cs index 0916aadfea..9ffedb742b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/IStableStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStableStruct.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Stable /// - [JsiiInterface(nativeType: typeof(IStableStruct), fullyQualifiedName: "jsii-calc.stability_annotations.StableStruct")] + [JsiiInterface(nativeType: typeof(IStableStruct), fullyQualifiedName: "jsii-calc.StableStruct")] public interface IStableStruct { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IStructA.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructA.cs similarity index 93% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IStructA.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructA.cs index 2fec1689b6..82fc21e9dc 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IStructA.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructA.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// We can serialize and deserialize structs without silently ignoring optional fields. /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IStructA), fullyQualifiedName: "jsii-calc.compliance.StructA")] + [JsiiInterface(nativeType: typeof(IStructA), fullyQualifiedName: "jsii-calc.StructA")] public interface IStructA { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IStructB.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructB.cs similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IStructB.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructB.cs index ce9627a389..0f8b980847 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IStructB.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructB.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// This intentionally overlaps with StructA (where only requiredString is provided) to test htat the kernel properly disambiguates those. /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IStructB), fullyQualifiedName: "jsii-calc.compliance.StructB")] + [JsiiInterface(nativeType: typeof(IStructB), fullyQualifiedName: "jsii-calc.StructB")] public interface IStructB { /// @@ -36,9 +36,9 @@ string RequiredString /// /// Stability: Experimental /// - [JsiiProperty(name: "optionalStructA", typeJson: "{\"fqn\":\"jsii-calc.compliance.StructA\"}", isOptional: true)] + [JsiiProperty(name: "optionalStructA", typeJson: "{\"fqn\":\"jsii-calc.StructA\"}", isOptional: true)] [Amazon.JSII.Runtime.Deputy.JsiiOptional] - Amazon.JSII.Tests.CalculatorNamespace.Compliance.IStructA? OptionalStructA + Amazon.JSII.Tests.CalculatorNamespace.IStructA? OptionalStructA { get { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IStructParameterType.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructParameterType.cs similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IStructParameterType.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructParameterType.cs index 2071743858..0add06f85c 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IStructParameterType.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructParameterType.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// Verifies that, in languages that do keyword lifting (e.g: Python), having a struct member with the same name as a positional parameter results in the correct code being emitted. /// @@ -10,7 +10,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IStructParameterType), fullyQualifiedName: "jsii-calc.compliance.StructParameterType")] + [JsiiInterface(nativeType: typeof(IStructParameterType), fullyQualifiedName: "jsii-calc.StructParameterType")] public interface IStructParameterType { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IStructReturningDelegate.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructReturningDelegate.cs similarity index 67% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IStructReturningDelegate.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructReturningDelegate.cs index 294509fab2..33fc919397 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IStructReturningDelegate.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructReturningDelegate.cs @@ -2,19 +2,19 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// Verifies that a "pure" implementation of an interface works correctly. /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IStructReturningDelegate), fullyQualifiedName: "jsii-calc.compliance.IStructReturningDelegate")] + [JsiiInterface(nativeType: typeof(IStructReturningDelegate), fullyQualifiedName: "jsii-calc.IStructReturningDelegate")] public interface IStructReturningDelegate { /// /// Stability: Experimental /// - [JsiiMethod(name: "returnStruct", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.StructB\"}}")] - Amazon.JSII.Tests.CalculatorNamespace.Compliance.IStructB ReturnStruct(); + [JsiiMethod(name: "returnStruct", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.StructB\"}}")] + Amazon.JSII.Tests.CalculatorNamespace.IStructB ReturnStruct(); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IStructReturningDelegateProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructReturningDelegateProxy.cs similarity index 64% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IStructReturningDelegateProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructReturningDelegateProxy.cs index d799fc4996..60a2535e65 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IStructReturningDelegateProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructReturningDelegateProxy.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// Verifies that a "pure" implementation of an interface works correctly. /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IStructReturningDelegate), fullyQualifiedName: "jsii-calc.compliance.IStructReturningDelegate")] - internal sealed class IStructReturningDelegateProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IStructReturningDelegate + [JsiiTypeProxy(nativeType: typeof(IStructReturningDelegate), fullyQualifiedName: "jsii-calc.IStructReturningDelegate")] + internal sealed class IStructReturningDelegateProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IStructReturningDelegate { private IStructReturningDelegateProxy(ByRefValue reference): base(reference) { @@ -18,10 +18,10 @@ private IStructReturningDelegateProxy(ByRefValue reference): base(reference) /// /// Stability: Experimental /// - [JsiiMethod(name: "returnStruct", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.StructB\"}}")] - public Amazon.JSII.Tests.CalculatorNamespace.Compliance.IStructB ReturnStruct() + [JsiiMethod(name: "returnStruct", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.StructB\"}}")] + public Amazon.JSII.Tests.CalculatorNamespace.IStructB ReturnStruct() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IStructWithJavaReservedWords.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructWithJavaReservedWords.cs similarity index 92% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IStructWithJavaReservedWords.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructWithJavaReservedWords.cs index 447cc30a42..626cc39b76 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IStructWithJavaReservedWords.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IStructWithJavaReservedWords.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IStructWithJavaReservedWords), fullyQualifiedName: "jsii-calc.compliance.StructWithJavaReservedWords")] + [JsiiInterface(nativeType: typeof(IStructWithJavaReservedWords), fullyQualifiedName: "jsii-calc.StructWithJavaReservedWords")] public interface IStructWithJavaReservedWords { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ISupportsNiceJavaBuilderProps.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ISupportsNiceJavaBuilderProps.cs similarity index 89% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ISupportsNiceJavaBuilderProps.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ISupportsNiceJavaBuilderProps.cs index 482eb7b0c4..7ab379d0ed 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ISupportsNiceJavaBuilderProps.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ISupportsNiceJavaBuilderProps.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(ISupportsNiceJavaBuilderProps), fullyQualifiedName: "jsii-calc.compliance.SupportsNiceJavaBuilderProps")] + [JsiiInterface(nativeType: typeof(ISupportsNiceJavaBuilderProps), fullyQualifiedName: "jsii-calc.SupportsNiceJavaBuilderProps")] public interface ISupportsNiceJavaBuilderProps { /// Some number, like 42. diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ITopLevelStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ITopLevelStruct.cs similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ITopLevelStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ITopLevelStruct.cs index ac1e006004..de85a44c62 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ITopLevelStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ITopLevelStruct.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(ITopLevelStruct), fullyQualifiedName: "jsii-calc.compliance.TopLevelStruct")] + [JsiiInterface(nativeType: typeof(ITopLevelStruct), fullyQualifiedName: "jsii-calc.TopLevelStruct")] public interface ITopLevelStruct { /// This is a required field. @@ -24,7 +24,7 @@ string Required /// /// Stability: Experimental /// - [JsiiProperty(name: "secondLevel", typeJson: "{\"union\":{\"types\":[{\"primitive\":\"number\"},{\"fqn\":\"jsii-calc.compliance.SecondLevelStruct\"}]}}")] + [JsiiProperty(name: "secondLevel", typeJson: "{\"union\":{\"types\":[{\"primitive\":\"number\"},{\"fqn\":\"jsii-calc.SecondLevelStruct\"}]}}")] object SecondLevel { get; diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IUnionProperties.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IUnionProperties.cs similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IUnionProperties.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IUnionProperties.cs index 94224ec10e..1dfd5102f4 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/IUnionProperties.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IUnionProperties.cs @@ -2,18 +2,18 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IUnionProperties), fullyQualifiedName: "jsii-calc.compliance.UnionProperties")] + [JsiiInterface(nativeType: typeof(IUnionProperties), fullyQualifiedName: "jsii-calc.UnionProperties")] public interface IUnionProperties { /// /// Stability: Experimental /// - [JsiiProperty(name: "bar", typeJson: "{\"union\":{\"types\":[{\"primitive\":\"string\"},{\"primitive\":\"number\"},{\"fqn\":\"jsii-calc.compliance.AllTypes\"}]}}")] + [JsiiProperty(name: "bar", typeJson: "{\"union\":{\"types\":[{\"primitive\":\"string\"},{\"primitive\":\"number\"},{\"fqn\":\"jsii-calc.AllTypes\"}]}}")] object Bar { get; diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ImplementInternalInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementInternalInterface.cs similarity index 89% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ImplementInternalInterface.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementInternalInterface.cs index 345eb7ead6..6598fd1979 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ImplementInternalInterface.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementInternalInterface.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ImplementInternalInterface), fullyQualifiedName: "jsii-calc.compliance.ImplementInternalInterface")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ImplementInternalInterface), fullyQualifiedName: "jsii-calc.ImplementInternalInterface")] public class ImplementInternalInterface : DeputyBase { public ImplementInternalInterface(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Implementation.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Implementation.cs similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Implementation.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Implementation.cs index ec31119b50..2af0448b4f 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Implementation.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Implementation.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Implementation), fullyQualifiedName: "jsii-calc.compliance.Implementation")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Implementation), fullyQualifiedName: "jsii-calc.Implementation")] public class Implementation : DeputyBase { public Implementation(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ImplementsInterfaceWithInternal.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementsInterfaceWithInternal.cs similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ImplementsInterfaceWithInternal.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementsInterfaceWithInternal.cs index 81f3bc49cc..e0c9d93e4d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ImplementsInterfaceWithInternal.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementsInterfaceWithInternal.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ImplementsInterfaceWithInternal), fullyQualifiedName: "jsii-calc.compliance.ImplementsInterfaceWithInternal")] - public class ImplementsInterfaceWithInternal : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IInterfaceWithInternal + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ImplementsInterfaceWithInternal), fullyQualifiedName: "jsii-calc.ImplementsInterfaceWithInternal")] + public class ImplementsInterfaceWithInternal : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithInternal { public ImplementsInterfaceWithInternal(): base(new DeputyProps(new object[]{})) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ImplementsInterfaceWithInternalSubclass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementsInterfaceWithInternalSubclass.cs similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ImplementsInterfaceWithInternalSubclass.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementsInterfaceWithInternalSubclass.cs index 9a10a7001c..530305ecb8 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ImplementsInterfaceWithInternalSubclass.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementsInterfaceWithInternalSubclass.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ImplementsInterfaceWithInternalSubclass), fullyQualifiedName: "jsii-calc.compliance.ImplementsInterfaceWithInternalSubclass")] - public class ImplementsInterfaceWithInternalSubclass : Amazon.JSII.Tests.CalculatorNamespace.Compliance.ImplementsInterfaceWithInternal + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ImplementsInterfaceWithInternalSubclass), fullyQualifiedName: "jsii-calc.ImplementsInterfaceWithInternalSubclass")] + public class ImplementsInterfaceWithInternalSubclass : Amazon.JSII.Tests.CalculatorNamespace.ImplementsInterfaceWithInternal { public ImplementsInterfaceWithInternalSubclass(): base(new DeputyProps(new object[]{})) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ImplementsPrivateInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementsPrivateInterface.cs similarity index 89% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ImplementsPrivateInterface.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementsPrivateInterface.cs index a3b4f9995f..c8363c6b4d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ImplementsPrivateInterface.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplementsPrivateInterface.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ImplementsPrivateInterface), fullyQualifiedName: "jsii-calc.compliance.ImplementsPrivateInterface")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ImplementsPrivateInterface), fullyQualifiedName: "jsii-calc.ImplementsPrivateInterface")] public class ImplementsPrivateInterface : DeputyBase { public ImplementsPrivateInterface(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ImplictBaseOfBase.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplictBaseOfBase.cs similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ImplictBaseOfBase.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplictBaseOfBase.cs index 8ba4a298d6..c71598f91b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ImplictBaseOfBase.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplictBaseOfBase.cs @@ -2,15 +2,15 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { #pragma warning disable CS8618 /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.compliance.ImplictBaseOfBase")] - public class ImplictBaseOfBase : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IImplictBaseOfBase + [JsiiByValue(fqn: "jsii-calc.ImplictBaseOfBase")] + public class ImplictBaseOfBase : Amazon.JSII.Tests.CalculatorNamespace.IImplictBaseOfBase { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ImplictBaseOfBaseProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplictBaseOfBaseProxy.cs similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ImplictBaseOfBaseProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplictBaseOfBaseProxy.cs index 011423e2ec..9fbd7b9fd1 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ImplictBaseOfBaseProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ImplictBaseOfBaseProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IImplictBaseOfBase), fullyQualifiedName: "jsii-calc.compliance.ImplictBaseOfBase")] - internal sealed class ImplictBaseOfBaseProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IImplictBaseOfBase + [JsiiTypeProxy(nativeType: typeof(IImplictBaseOfBase), fullyQualifiedName: "jsii-calc.ImplictBaseOfBase")] + internal sealed class ImplictBaseOfBaseProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IImplictBaseOfBase { private ImplictBaseOfBaseProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InbetweenClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InbetweenClass.cs similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InbetweenClass.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InbetweenClass.cs index 9b4164028c..754b6b065b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InbetweenClass.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InbetweenClass.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.InbetweenClass), fullyQualifiedName: "jsii-calc.compliance.InbetweenClass")] - public class InbetweenClass : Amazon.JSII.Tests.CalculatorNamespace.Compliance.PublicClass, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IPublicInterface2 + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.InbetweenClass), fullyQualifiedName: "jsii-calc.InbetweenClass")] + public class InbetweenClass : Amazon.JSII.Tests.CalculatorNamespace.PublicClass, Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface2 { public InbetweenClass(): base(new DeputyProps(new object[]{})) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceCollections.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceCollections.cs similarity index 58% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceCollections.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceCollections.cs index 601b0fe1e0..c913a9de18 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceCollections.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceCollections.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// Verifies that collections of interfaces or structs are correctly handled. /// @@ -10,7 +10,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.InterfaceCollections), fullyQualifiedName: "jsii-calc.compliance.InterfaceCollections")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceCollections), fullyQualifiedName: "jsii-calc.InterfaceCollections")] public class InterfaceCollections : DeputyBase { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference @@ -30,37 +30,37 @@ protected InterfaceCollections(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "listOfInterfaces", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"jsii-calc.compliance.IBell\"},\"kind\":\"array\"}}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.IBell[] ListOfInterfaces() + [JsiiMethod(name: "listOfInterfaces", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"jsii-calc.IBell\"},\"kind\":\"array\"}}}")] + public static Amazon.JSII.Tests.CalculatorNamespace.IBell[] ListOfInterfaces() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.InterfaceCollections), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceCollections), new System.Type[]{}, new object[]{}); } /// /// Stability: Experimental /// - [JsiiMethod(name: "listOfStructs", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"jsii-calc.compliance.StructA\"},\"kind\":\"array\"}}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.IStructA[] ListOfStructs() + [JsiiMethod(name: "listOfStructs", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"jsii-calc.StructA\"},\"kind\":\"array\"}}}")] + public static Amazon.JSII.Tests.CalculatorNamespace.IStructA[] ListOfStructs() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.InterfaceCollections), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceCollections), new System.Type[]{}, new object[]{}); } /// /// Stability: Experimental /// - [JsiiMethod(name: "mapOfInterfaces", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"jsii-calc.compliance.IBell\"},\"kind\":\"map\"}}}")] - public static System.Collections.Generic.IDictionary MapOfInterfaces() + [JsiiMethod(name: "mapOfInterfaces", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"jsii-calc.IBell\"},\"kind\":\"map\"}}}")] + public static System.Collections.Generic.IDictionary MapOfInterfaces() { - return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.InterfaceCollections), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceCollections), new System.Type[]{}, new object[]{}); } /// /// Stability: Experimental /// - [JsiiMethod(name: "mapOfStructs", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"jsii-calc.compliance.StructA\"},\"kind\":\"map\"}}}")] - public static System.Collections.Generic.IDictionary MapOfStructs() + [JsiiMethod(name: "mapOfStructs", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"jsii-calc.StructA\"},\"kind\":\"map\"}}}")] + public static System.Collections.Generic.IDictionary MapOfStructs() { - return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.InterfaceCollections), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceCollections), new System.Type[]{}, new object[]{}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceIncludesClasses/Foo.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/Foo.cs similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceIncludesClasses/Foo.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/Foo.cs index 29d84f3bd9..3e34aa2f00 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceIncludesClasses/Foo.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/Foo.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance.InterfaceInNamespaceIncludesClasses +namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClasses { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.InterfaceInNamespaceIncludesClasses.Foo), fullyQualifiedName: "jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Foo")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClasses.Foo), fullyQualifiedName: "jsii-calc.InterfaceInNamespaceIncludesClasses.Foo")] public class Foo : DeputyBase { public Foo(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceOnlyInterface/Hello.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/Hello.cs similarity index 62% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceOnlyInterface/Hello.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/Hello.cs index a694e04f49..01f793a673 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceOnlyInterface/Hello.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/Hello.cs @@ -2,15 +2,15 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance.InterfaceInNamespaceOnlyInterface +namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClasses { #pragma warning disable CS8618 /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.compliance.InterfaceInNamespaceOnlyInterface.Hello")] - public class Hello : Amazon.JSII.Tests.CalculatorNamespace.Compliance.InterfaceInNamespaceOnlyInterface.IHello + [JsiiByValue(fqn: "jsii-calc.InterfaceInNamespaceIncludesClasses.Hello")] + public class Hello : Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClasses.IHello { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceOnlyInterface/HelloProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/HelloProxy.cs similarity index 73% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceOnlyInterface/HelloProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/HelloProxy.cs index 7e835d1a70..99836531c8 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceOnlyInterface/HelloProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/HelloProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance.InterfaceInNamespaceOnlyInterface +namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClasses { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IHello), fullyQualifiedName: "jsii-calc.compliance.InterfaceInNamespaceOnlyInterface.Hello")] - internal sealed class HelloProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.InterfaceInNamespaceOnlyInterface.IHello + [JsiiTypeProxy(nativeType: typeof(IHello), fullyQualifiedName: "jsii-calc.InterfaceInNamespaceIncludesClasses.Hello")] + internal sealed class HelloProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClasses.IHello { private HelloProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceOnlyInterface/IHello.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/IHello.cs similarity index 75% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceOnlyInterface/IHello.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/IHello.cs index 0e941792fd..ea8cc39ce2 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceOnlyInterface/IHello.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceIncludesClasses/IHello.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance.InterfaceInNamespaceOnlyInterface +namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClasses { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IHello), fullyQualifiedName: "jsii-calc.compliance.InterfaceInNamespaceOnlyInterface.Hello")] + [JsiiInterface(nativeType: typeof(IHello), fullyQualifiedName: "jsii-calc.InterfaceInNamespaceIncludesClasses.Hello")] public interface IHello { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceIncludesClasses/Hello.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceOnlyInterface/Hello.cs similarity index 61% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceIncludesClasses/Hello.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceOnlyInterface/Hello.cs index 49b2c08c3f..d0f4347ac5 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceIncludesClasses/Hello.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceOnlyInterface/Hello.cs @@ -2,15 +2,15 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance.InterfaceInNamespaceIncludesClasses +namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceOnlyInterface { #pragma warning disable CS8618 /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Hello")] - public class Hello : Amazon.JSII.Tests.CalculatorNamespace.Compliance.InterfaceInNamespaceIncludesClasses.IHello + [JsiiByValue(fqn: "jsii-calc.InterfaceInNamespaceOnlyInterface.Hello")] + public class Hello : Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceOnlyInterface.IHello { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceIncludesClasses/HelloProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceOnlyInterface/HelloProxy.cs similarity index 73% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceIncludesClasses/HelloProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceOnlyInterface/HelloProxy.cs index e6e462f1ae..ff0c6f5ade 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceIncludesClasses/HelloProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceOnlyInterface/HelloProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance.InterfaceInNamespaceIncludesClasses +namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceOnlyInterface { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IHello), fullyQualifiedName: "jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Hello")] - internal sealed class HelloProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.InterfaceInNamespaceIncludesClasses.IHello + [JsiiTypeProxy(nativeType: typeof(IHello), fullyQualifiedName: "jsii-calc.InterfaceInNamespaceOnlyInterface.Hello")] + internal sealed class HelloProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceOnlyInterface.IHello { private HelloProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceIncludesClasses/IHello.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceOnlyInterface/IHello.cs similarity index 75% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceIncludesClasses/IHello.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceOnlyInterface/IHello.cs index 5ac2235440..b467b87743 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfaceInNamespaceIncludesClasses/IHello.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfaceInNamespaceOnlyInterface/IHello.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance.InterfaceInNamespaceIncludesClasses +namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceOnlyInterface { /// /// Stability: Experimental /// - [JsiiInterface(nativeType: typeof(IHello), fullyQualifiedName: "jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Hello")] + [JsiiInterface(nativeType: typeof(IHello), fullyQualifiedName: "jsii-calc.InterfaceInNamespaceOnlyInterface.Hello")] public interface IHello { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfacesMaker.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfacesMaker.cs similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfacesMaker.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfacesMaker.cs index 594024df01..95a4a6315f 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/InterfacesMaker.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/InterfacesMaker.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// We can return arrays of interfaces See aws/aws-cdk#2362. /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.InterfacesMaker), fullyQualifiedName: "jsii-calc.compliance.InterfacesMaker")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfacesMaker), fullyQualifiedName: "jsii-calc.InterfacesMaker")] public class InterfacesMaker : DeputyBase { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference @@ -31,7 +31,7 @@ protected InterfacesMaker(DeputyProps props): base(props) [JsiiMethod(name: "makeInterfaces", returnsJson: "{\"type\":{\"collection\":{\"elementtype\":{\"fqn\":\"@scope/jsii-calc-lib.IDoublable\"},\"kind\":\"array\"}}}", parametersJson: "[{\"name\":\"count\",\"type\":{\"primitive\":\"number\"}}]")] public static Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IDoublable[] MakeInterfaces(double count) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.InterfacesMaker), new System.Type[]{typeof(double)}, new object[]{count}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfacesMaker), new System.Type[]{typeof(double)}, new object[]{count}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/JSII417Derived.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSII417Derived.cs similarity index 87% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/JSII417Derived.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSII417Derived.cs index 103d4300a8..e70c3cd65d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/JSII417Derived.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSII417Derived.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.ErasureTests +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ErasureTests.JSII417Derived), fullyQualifiedName: "jsii-calc.erasureTests.JSII417Derived", parametersJson: "[{\"name\":\"property\",\"type\":{\"primitive\":\"string\"}}]")] - public class JSII417Derived : Amazon.JSII.Tests.CalculatorNamespace.ErasureTests.JSII417PublicBaseOfBase + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JSII417Derived), fullyQualifiedName: "jsii-calc.JSII417Derived", parametersJson: "[{\"name\":\"property\",\"type\":{\"primitive\":\"string\"}}]")] + public class JSII417Derived : Amazon.JSII.Tests.CalculatorNamespace.JSII417PublicBaseOfBase { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/JSII417PublicBaseOfBase.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSII417PublicBaseOfBase.cs similarity index 78% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/JSII417PublicBaseOfBase.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSII417PublicBaseOfBase.cs index 3025d46046..bb7a64cdb0 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/JSII417PublicBaseOfBase.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSII417PublicBaseOfBase.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.ErasureTests +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ErasureTests.JSII417PublicBaseOfBase), fullyQualifiedName: "jsii-calc.erasureTests.JSII417PublicBaseOfBase")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JSII417PublicBaseOfBase), fullyQualifiedName: "jsii-calc.JSII417PublicBaseOfBase")] public class JSII417PublicBaseOfBase : DeputyBase { public JSII417PublicBaseOfBase(): base(new DeputyProps(new object[]{})) @@ -31,10 +31,10 @@ protected JSII417PublicBaseOfBase(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "makeInstance", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.erasureTests.JSII417PublicBaseOfBase\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.ErasureTests.JSII417PublicBaseOfBase MakeInstance() + [JsiiMethod(name: "makeInstance", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.JSII417PublicBaseOfBase\"}}")] + public static Amazon.JSII.Tests.CalculatorNamespace.JSII417PublicBaseOfBase MakeInstance() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ErasureTests.JSII417PublicBaseOfBase), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JSII417PublicBaseOfBase), new System.Type[]{}, new object[]{}); } /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/JSObjectLiteralForInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSObjectLiteralForInterface.cs similarity index 92% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/JSObjectLiteralForInterface.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSObjectLiteralForInterface.cs index 4ae066a094..5d89e6b9b0 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/JSObjectLiteralForInterface.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSObjectLiteralForInterface.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JSObjectLiteralForInterface), fullyQualifiedName: "jsii-calc.compliance.JSObjectLiteralForInterface")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JSObjectLiteralForInterface), fullyQualifiedName: "jsii-calc.JSObjectLiteralForInterface")] public class JSObjectLiteralForInterface : DeputyBase { public JSObjectLiteralForInterface(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/JSObjectLiteralToNative.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSObjectLiteralToNative.cs similarity index 75% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/JSObjectLiteralToNative.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSObjectLiteralToNative.cs index 85257c9452..ab79a78349 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/JSObjectLiteralToNative.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSObjectLiteralToNative.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JSObjectLiteralToNative), fullyQualifiedName: "jsii-calc.compliance.JSObjectLiteralToNative")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JSObjectLiteralToNative), fullyQualifiedName: "jsii-calc.JSObjectLiteralToNative")] public class JSObjectLiteralToNative : DeputyBase { public JSObjectLiteralToNative(): base(new DeputyProps(new object[]{})) @@ -31,10 +31,10 @@ protected JSObjectLiteralToNative(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "returnLiteral", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.JSObjectLiteralToNativeClass\"}}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.Compliance.JSObjectLiteralToNativeClass ReturnLiteral() + [JsiiMethod(name: "returnLiteral", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.JSObjectLiteralToNativeClass\"}}")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.JSObjectLiteralToNativeClass ReturnLiteral() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/JSObjectLiteralToNativeClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSObjectLiteralToNativeClass.cs similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/JSObjectLiteralToNativeClass.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSObjectLiteralToNativeClass.cs index 3d7feed527..c263a06802 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/JSObjectLiteralToNativeClass.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSObjectLiteralToNativeClass.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JSObjectLiteralToNativeClass), fullyQualifiedName: "jsii-calc.compliance.JSObjectLiteralToNativeClass")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JSObjectLiteralToNativeClass), fullyQualifiedName: "jsii-calc.JSObjectLiteralToNativeClass")] public class JSObjectLiteralToNativeClass : DeputyBase { public JSObjectLiteralToNativeClass(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/JavaReservedWords.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JavaReservedWords.cs similarity index 98% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/JavaReservedWords.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JavaReservedWords.cs index 0a0d29e2cf..df59a2e6a9 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/JavaReservedWords.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JavaReservedWords.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JavaReservedWords), fullyQualifiedName: "jsii-calc.compliance.JavaReservedWords")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JavaReservedWords), fullyQualifiedName: "jsii-calc.JavaReservedWords")] public class JavaReservedWords : DeputyBase { public JavaReservedWords(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/Jsii487Derived.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Jsii487Derived.cs similarity index 80% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/Jsii487Derived.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Jsii487Derived.cs index d7cec01d51..aa7d3d8b0b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/Jsii487Derived.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Jsii487Derived.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.ErasureTests +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ErasureTests.Jsii487Derived), fullyQualifiedName: "jsii-calc.erasureTests.Jsii487Derived")] - public class Jsii487Derived : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ErasureTests.IJsii487External2, Amazon.JSII.Tests.CalculatorNamespace.ErasureTests.IJsii487External + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Jsii487Derived), fullyQualifiedName: "jsii-calc.Jsii487Derived")] + public class Jsii487Derived : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IJsii487External2, Amazon.JSII.Tests.CalculatorNamespace.IJsii487External { public Jsii487Derived(): base(new DeputyProps(new object[]{})) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/Jsii496Derived.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Jsii496Derived.cs similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/Jsii496Derived.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Jsii496Derived.cs index 4bee446aa0..416f9ac50e 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ErasureTests/Jsii496Derived.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Jsii496Derived.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.ErasureTests +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ErasureTests.Jsii496Derived), fullyQualifiedName: "jsii-calc.erasureTests.Jsii496Derived")] - public class Jsii496Derived : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ErasureTests.IJsii496 + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Jsii496Derived), fullyQualifiedName: "jsii-calc.Jsii496Derived")] + public class Jsii496Derived : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IJsii496 { public Jsii496Derived(): base(new DeputyProps(new object[]{})) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/JsiiAgent_.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JsiiAgent_.cs similarity index 89% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/JsiiAgent_.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JsiiAgent_.cs index 8096412e49..d01b95db87 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/JsiiAgent_.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JsiiAgent_.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// Host runtime version should be set via JSII_AGENT. /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JsiiAgent_), fullyQualifiedName: "jsii-calc.compliance.JsiiAgent")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JsiiAgent_), fullyQualifiedName: "jsii-calc.JsiiAgent")] public class JsiiAgent_ : DeputyBase { public JsiiAgent_(): base(new DeputyProps(new object[]{})) @@ -37,7 +37,7 @@ protected JsiiAgent_(DeputyProps props): base(props) [JsiiProperty(name: "jsiiAgent", typeJson: "{\"primitive\":\"string\"}", isOptional: true)] public static string? JsiiAgent { - get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JsiiAgent_)); + get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsiiAgent_)); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/JsonFormatter.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JsonFormatter.cs similarity index 79% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/JsonFormatter.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JsonFormatter.cs index 75c520b336..ea1591c1ab 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/JsonFormatter.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JsonFormatter.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// Make sure structs are un-decorated on the way in. /// @@ -10,7 +10,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance /// /// See: https://github.com/aws/aws-cdk/issues/5066 /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JsonFormatter), fullyQualifiedName: "jsii-calc.compliance.JsonFormatter")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), fullyQualifiedName: "jsii-calc.JsonFormatter")] public class JsonFormatter : DeputyBase { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference @@ -33,7 +33,7 @@ protected JsonFormatter(DeputyProps props): base(props) [JsiiMethod(name: "anyArray", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] public static object AnyArray() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); } /// @@ -42,7 +42,7 @@ public static object AnyArray() [JsiiMethod(name: "anyBooleanFalse", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] public static object AnyBooleanFalse() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); } /// @@ -51,7 +51,7 @@ public static object AnyBooleanFalse() [JsiiMethod(name: "anyBooleanTrue", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] public static object AnyBooleanTrue() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); } /// @@ -60,7 +60,7 @@ public static object AnyBooleanTrue() [JsiiMethod(name: "anyDate", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] public static object AnyDate() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); } /// @@ -69,7 +69,7 @@ public static object AnyDate() [JsiiMethod(name: "anyEmptyString", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] public static object AnyEmptyString() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); } /// @@ -78,7 +78,7 @@ public static object AnyEmptyString() [JsiiMethod(name: "anyFunction", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] public static object AnyFunction() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); } /// @@ -87,7 +87,7 @@ public static object AnyFunction() [JsiiMethod(name: "anyHash", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] public static object AnyHash() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); } /// @@ -96,7 +96,7 @@ public static object AnyHash() [JsiiMethod(name: "anyNull", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] public static object AnyNull() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); } /// @@ -105,7 +105,7 @@ public static object AnyNull() [JsiiMethod(name: "anyNumber", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] public static object AnyNumber() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); } /// @@ -114,7 +114,7 @@ public static object AnyNumber() [JsiiMethod(name: "anyRef", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] public static object AnyRef() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); } /// @@ -123,7 +123,7 @@ public static object AnyRef() [JsiiMethod(name: "anyString", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] public static object AnyString() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); } /// @@ -132,7 +132,7 @@ public static object AnyString() [JsiiMethod(name: "anyUndefined", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] public static object AnyUndefined() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); } /// @@ -141,7 +141,7 @@ public static object AnyUndefined() [JsiiMethod(name: "anyZero", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] public static object AnyZero() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); } /// @@ -150,7 +150,7 @@ public static object AnyZero() [JsiiMethod(name: "stringify", returnsJson: "{\"optional\":true,\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"value\",\"optional\":true,\"type\":{\"primitive\":\"any\"}}]")] public static string? Stringify(object? @value = null) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.JsonFormatter), new System.Type[]{typeof(object)}, new object?[]{@value}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{typeof(object)}, new object?[]{@value}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/LoadBalancedFargateServiceProps.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/LoadBalancedFargateServiceProps.cs similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/LoadBalancedFargateServiceProps.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/LoadBalancedFargateServiceProps.cs index 298173c673..1d6eda47cb 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/LoadBalancedFargateServiceProps.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/LoadBalancedFargateServiceProps.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// jsii#298: show default values in sphinx documentation, and respect newlines. /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.compliance.LoadBalancedFargateServiceProps")] - public class LoadBalancedFargateServiceProps : Amazon.JSII.Tests.CalculatorNamespace.Compliance.ILoadBalancedFargateServiceProps + [JsiiByValue(fqn: "jsii-calc.LoadBalancedFargateServiceProps")] + public class LoadBalancedFargateServiceProps : Amazon.JSII.Tests.CalculatorNamespace.ILoadBalancedFargateServiceProps { /// The container port of the application load balancer attached to your Fargate service. /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/LoadBalancedFargateServicePropsProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/LoadBalancedFargateServicePropsProxy.cs similarity index 94% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/LoadBalancedFargateServicePropsProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/LoadBalancedFargateServicePropsProxy.cs index 0f8b907f88..157359c801 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/LoadBalancedFargateServicePropsProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/LoadBalancedFargateServicePropsProxy.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// jsii#298: show default values in sphinx documentation, and respect newlines. /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(ILoadBalancedFargateServiceProps), fullyQualifiedName: "jsii-calc.compliance.LoadBalancedFargateServiceProps")] - internal sealed class LoadBalancedFargateServicePropsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.ILoadBalancedFargateServiceProps + [JsiiTypeProxy(nativeType: typeof(ILoadBalancedFargateServiceProps), fullyQualifiedName: "jsii-calc.LoadBalancedFargateServiceProps")] + internal sealed class LoadBalancedFargateServicePropsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ILoadBalancedFargateServiceProps { private LoadBalancedFargateServicePropsProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NestedStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NestedStruct.cs similarity index 80% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NestedStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NestedStruct.cs index c970d5c0d5..a0ae6d4c83 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NestedStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NestedStruct.cs @@ -2,15 +2,15 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { #pragma warning disable CS8618 /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.compliance.NestedStruct")] - public class NestedStruct : Amazon.JSII.Tests.CalculatorNamespace.Compliance.INestedStruct + [JsiiByValue(fqn: "jsii-calc.NestedStruct")] + public class NestedStruct : Amazon.JSII.Tests.CalculatorNamespace.INestedStruct { /// When provided, must be > 0. /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NestedStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NestedStructProxy.cs similarity index 82% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NestedStructProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NestedStructProxy.cs index f7788f7a92..e19f2ab74e 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NestedStructProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NestedStructProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(INestedStruct), fullyQualifiedName: "jsii-calc.compliance.NestedStruct")] - internal sealed class NestedStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.INestedStruct + [JsiiTypeProxy(nativeType: typeof(INestedStruct), fullyQualifiedName: "jsii-calc.NestedStruct")] + internal sealed class NestedStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.INestedStruct { private NestedStructProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NodeStandardLibrary.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NodeStandardLibrary.cs similarity index 94% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NodeStandardLibrary.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NodeStandardLibrary.cs index 8cd947430f..2c6addda10 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NodeStandardLibrary.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NodeStandardLibrary.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// Test fixture to verify that jsii modules can use the node standard library. /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.NodeStandardLibrary), fullyQualifiedName: "jsii-calc.compliance.NodeStandardLibrary")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.NodeStandardLibrary), fullyQualifiedName: "jsii-calc.NodeStandardLibrary")] public class NodeStandardLibrary : DeputyBase { public NodeStandardLibrary(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NullShouldBeTreatedAsUndefined.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NullShouldBeTreatedAsUndefined.cs similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NullShouldBeTreatedAsUndefined.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NullShouldBeTreatedAsUndefined.cs index 2e09cd039a..f4a238d7fe 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NullShouldBeTreatedAsUndefined.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NullShouldBeTreatedAsUndefined.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// jsii#282, aws-cdk#157: null should be treated as "undefined". /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.NullShouldBeTreatedAsUndefined), fullyQualifiedName: "jsii-calc.compliance.NullShouldBeTreatedAsUndefined", parametersJson: "[{\"name\":\"_param1\",\"type\":{\"primitive\":\"string\"}},{\"name\":\"optional\",\"optional\":true,\"type\":{\"primitive\":\"any\"}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.NullShouldBeTreatedAsUndefined), fullyQualifiedName: "jsii-calc.NullShouldBeTreatedAsUndefined", parametersJson: "[{\"name\":\"_param1\",\"type\":{\"primitive\":\"string\"}},{\"name\":\"optional\",\"optional\":true,\"type\":{\"primitive\":\"any\"}}]")] public class NullShouldBeTreatedAsUndefined : DeputyBase { /// @@ -44,10 +44,10 @@ public virtual void GiveMeUndefined(object? @value = null) /// /// Stability: Experimental /// - [JsiiMethod(name: "giveMeUndefinedInsideAnObject", parametersJson: "[{\"name\":\"input\",\"type\":{\"fqn\":\"jsii-calc.compliance.NullShouldBeTreatedAsUndefinedData\"}}]")] - public virtual void GiveMeUndefinedInsideAnObject(Amazon.JSII.Tests.CalculatorNamespace.Compliance.INullShouldBeTreatedAsUndefinedData input) + [JsiiMethod(name: "giveMeUndefinedInsideAnObject", parametersJson: "[{\"name\":\"input\",\"type\":{\"fqn\":\"jsii-calc.NullShouldBeTreatedAsUndefinedData\"}}]")] + public virtual void GiveMeUndefinedInsideAnObject(Amazon.JSII.Tests.CalculatorNamespace.INullShouldBeTreatedAsUndefinedData input) { - InvokeInstanceVoidMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.INullShouldBeTreatedAsUndefinedData)}, new object[]{input}); + InvokeInstanceVoidMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.INullShouldBeTreatedAsUndefinedData)}, new object[]{input}); } /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NullShouldBeTreatedAsUndefinedData.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NullShouldBeTreatedAsUndefinedData.cs similarity index 82% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NullShouldBeTreatedAsUndefinedData.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NullShouldBeTreatedAsUndefinedData.cs index 120761da66..7bf97343ff 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NullShouldBeTreatedAsUndefinedData.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NullShouldBeTreatedAsUndefinedData.cs @@ -2,15 +2,15 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { #pragma warning disable CS8618 /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.compliance.NullShouldBeTreatedAsUndefinedData")] - public class NullShouldBeTreatedAsUndefinedData : Amazon.JSII.Tests.CalculatorNamespace.Compliance.INullShouldBeTreatedAsUndefinedData + [JsiiByValue(fqn: "jsii-calc.NullShouldBeTreatedAsUndefinedData")] + public class NullShouldBeTreatedAsUndefinedData : Amazon.JSII.Tests.CalculatorNamespace.INullShouldBeTreatedAsUndefinedData { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NullShouldBeTreatedAsUndefinedDataProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NullShouldBeTreatedAsUndefinedDataProxy.cs similarity index 82% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NullShouldBeTreatedAsUndefinedDataProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NullShouldBeTreatedAsUndefinedDataProxy.cs index 10d91d2ee2..196225af4a 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NullShouldBeTreatedAsUndefinedDataProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NullShouldBeTreatedAsUndefinedDataProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(INullShouldBeTreatedAsUndefinedData), fullyQualifiedName: "jsii-calc.compliance.NullShouldBeTreatedAsUndefinedData")] - internal sealed class NullShouldBeTreatedAsUndefinedDataProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.INullShouldBeTreatedAsUndefinedData + [JsiiTypeProxy(nativeType: typeof(INullShouldBeTreatedAsUndefinedData), fullyQualifiedName: "jsii-calc.NullShouldBeTreatedAsUndefinedData")] + internal sealed class NullShouldBeTreatedAsUndefinedDataProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.INullShouldBeTreatedAsUndefinedData { private NullShouldBeTreatedAsUndefinedDataProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NumberGenerator.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NumberGenerator.cs similarity index 91% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NumberGenerator.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NumberGenerator.cs index f91a9bb1ef..574e60fb11 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/NumberGenerator.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/NumberGenerator.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// This allows us to test that a reference can be stored for objects that implement interfaces. /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.NumberGenerator), fullyQualifiedName: "jsii-calc.compliance.NumberGenerator", parametersJson: "[{\"name\":\"generator\",\"type\":{\"fqn\":\"jsii-calc.IRandomNumberGenerator\"}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.NumberGenerator), fullyQualifiedName: "jsii-calc.NumberGenerator", parametersJson: "[{\"name\":\"generator\",\"type\":{\"fqn\":\"jsii-calc.IRandomNumberGenerator\"}}]")] public class NumberGenerator : DeputyBase { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ObjectRefsInCollections.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ObjectRefsInCollections.cs similarity index 94% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ObjectRefsInCollections.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ObjectRefsInCollections.cs index 967f06861d..7e08cf4e69 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ObjectRefsInCollections.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ObjectRefsInCollections.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// Verify that object references can be passed inside collections. /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ObjectRefsInCollections), fullyQualifiedName: "jsii-calc.compliance.ObjectRefsInCollections")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ObjectRefsInCollections), fullyQualifiedName: "jsii-calc.ObjectRefsInCollections")] public class ObjectRefsInCollections : DeputyBase { public ObjectRefsInCollections(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ObjectWithPropertyProvider.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ObjectWithPropertyProvider.cs similarity index 72% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ObjectWithPropertyProvider.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ObjectWithPropertyProvider.cs index aa308aa1fc..32e1cc2176 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ObjectWithPropertyProvider.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ObjectWithPropertyProvider.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ObjectWithPropertyProvider), fullyQualifiedName: "jsii-calc.compliance.ObjectWithPropertyProvider")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ObjectWithPropertyProvider), fullyQualifiedName: "jsii-calc.ObjectWithPropertyProvider")] public class ObjectWithPropertyProvider : DeputyBase { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference @@ -27,10 +27,10 @@ protected ObjectWithPropertyProvider(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "provide", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.IObjectWithProperty\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.IObjectWithProperty Provide() + [JsiiMethod(name: "provide", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.IObjectWithProperty\"}}")] + public static Amazon.JSII.Tests.CalculatorNamespace.IObjectWithProperty Provide() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ObjectWithPropertyProvider), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ObjectWithPropertyProvider), new System.Type[]{}, new object[]{}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Documented/Old.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Old.cs similarity index 91% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Documented/Old.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Old.cs index 316baf2d53..a1b2d15a4b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Documented/Old.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Old.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Documented +namespace Amazon.JSII.Tests.CalculatorNamespace { /// Old class. /// /// Stability: Deprecated /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Documented.Old), fullyQualifiedName: "jsii-calc.documented.Old")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Old), fullyQualifiedName: "jsii-calc.Old")] [System.Obsolete("Use the new class")] public class Old : DeputyBase { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OptionalArgumentInvoker.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalArgumentInvoker.cs similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OptionalArgumentInvoker.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalArgumentInvoker.cs index 9a89e56169..71a808bded 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OptionalArgumentInvoker.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalArgumentInvoker.cs @@ -2,18 +2,18 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.OptionalArgumentInvoker), fullyQualifiedName: "jsii-calc.compliance.OptionalArgumentInvoker", parametersJson: "[{\"name\":\"delegate\",\"type\":{\"fqn\":\"jsii-calc.compliance.IInterfaceWithOptionalMethodArguments\"}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.OptionalArgumentInvoker), fullyQualifiedName: "jsii-calc.OptionalArgumentInvoker", parametersJson: "[{\"name\":\"delegate\",\"type\":{\"fqn\":\"jsii-calc.IInterfaceWithOptionalMethodArguments\"}}]")] public class OptionalArgumentInvoker : DeputyBase { /// /// Stability: Experimental /// - public OptionalArgumentInvoker(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IInterfaceWithOptionalMethodArguments @delegate): base(new DeputyProps(new object[]{@delegate})) + public OptionalArgumentInvoker(Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithOptionalMethodArguments @delegate): base(new DeputyProps(new object[]{@delegate})) { } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OptionalConstructorArgument.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalConstructorArgument.cs similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OptionalConstructorArgument.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalConstructorArgument.cs index 168f28db5d..c2af050109 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OptionalConstructorArgument.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalConstructorArgument.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.OptionalConstructorArgument), fullyQualifiedName: "jsii-calc.compliance.OptionalConstructorArgument", parametersJson: "[{\"name\":\"arg1\",\"type\":{\"primitive\":\"number\"}},{\"name\":\"arg2\",\"type\":{\"primitive\":\"string\"}},{\"name\":\"arg3\",\"optional\":true,\"type\":{\"primitive\":\"date\"}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.OptionalConstructorArgument), fullyQualifiedName: "jsii-calc.OptionalConstructorArgument", parametersJson: "[{\"name\":\"arg1\",\"type\":{\"primitive\":\"number\"}},{\"name\":\"arg2\",\"type\":{\"primitive\":\"string\"}},{\"name\":\"arg3\",\"optional\":true,\"type\":{\"primitive\":\"date\"}}]")] public class OptionalConstructorArgument : DeputyBase { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OptionalStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalStruct.cs similarity index 78% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OptionalStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalStruct.cs index 40ae9521ab..a734f19e6a 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OptionalStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalStruct.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.compliance.OptionalStruct")] - public class OptionalStruct : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IOptionalStruct + [JsiiByValue(fqn: "jsii-calc.OptionalStruct")] + public class OptionalStruct : Amazon.JSII.Tests.CalculatorNamespace.IOptionalStruct { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OptionalStructConsumer.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalStructConsumer.cs similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OptionalStructConsumer.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalStructConsumer.cs index 95218eb94f..a6d80e094c 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OptionalStructConsumer.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalStructConsumer.cs @@ -2,18 +2,18 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.OptionalStructConsumer), fullyQualifiedName: "jsii-calc.compliance.OptionalStructConsumer", parametersJson: "[{\"name\":\"optionalStruct\",\"optional\":true,\"type\":{\"fqn\":\"jsii-calc.compliance.OptionalStruct\"}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.OptionalStructConsumer), fullyQualifiedName: "jsii-calc.OptionalStructConsumer", parametersJson: "[{\"name\":\"optionalStruct\",\"optional\":true,\"type\":{\"fqn\":\"jsii-calc.OptionalStruct\"}}]")] public class OptionalStructConsumer : DeputyBase { /// /// Stability: Experimental /// - public OptionalStructConsumer(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IOptionalStruct? optionalStruct = null): base(new DeputyProps(new object?[]{optionalStruct})) + public OptionalStructConsumer(Amazon.JSII.Tests.CalculatorNamespace.IOptionalStruct? optionalStruct = null): base(new DeputyProps(new object?[]{optionalStruct})) { } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OptionalStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalStructProxy.cs similarity index 80% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OptionalStructProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalStructProxy.cs index ae4523e7ee..ea0c9fa351 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OptionalStructProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OptionalStructProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IOptionalStruct), fullyQualifiedName: "jsii-calc.compliance.OptionalStruct")] - internal sealed class OptionalStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IOptionalStruct + [JsiiTypeProxy(nativeType: typeof(IOptionalStruct), fullyQualifiedName: "jsii-calc.OptionalStruct")] + internal sealed class OptionalStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IOptionalStruct { private OptionalStructProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OverridableProtectedMember.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OverridableProtectedMember.cs similarity index 94% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OverridableProtectedMember.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OverridableProtectedMember.cs index 784dd2251e..e86b9610d5 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OverridableProtectedMember.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OverridableProtectedMember.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// /// See: https://github.com/aws/jsii/issues/903 /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.OverridableProtectedMember), fullyQualifiedName: "jsii-calc.compliance.OverridableProtectedMember")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.OverridableProtectedMember), fullyQualifiedName: "jsii-calc.OverridableProtectedMember")] public class OverridableProtectedMember : DeputyBase { public OverridableProtectedMember(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OverrideReturnsObject.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OverrideReturnsObject.cs similarity index 80% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OverrideReturnsObject.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OverrideReturnsObject.cs index 1f1dfa576a..35434cc6d5 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/OverrideReturnsObject.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/OverrideReturnsObject.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.OverrideReturnsObject), fullyQualifiedName: "jsii-calc.compliance.OverrideReturnsObject")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.OverrideReturnsObject), fullyQualifiedName: "jsii-calc.OverrideReturnsObject")] public class OverrideReturnsObject : DeputyBase { public OverrideReturnsObject(): base(new DeputyProps(new object[]{})) @@ -31,10 +31,10 @@ protected OverrideReturnsObject(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "test", returnsJson: "{\"type\":{\"primitive\":\"number\"}}", parametersJson: "[{\"name\":\"obj\",\"type\":{\"fqn\":\"jsii-calc.compliance.IReturnsNumber\"}}]")] - public virtual double Test(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IReturnsNumber obj) + [JsiiMethod(name: "test", returnsJson: "{\"type\":{\"primitive\":\"number\"}}", parametersJson: "[{\"name\":\"obj\",\"type\":{\"fqn\":\"jsii-calc.IReturnsNumber\"}}]")] + public virtual double Test(Amazon.JSII.Tests.CalculatorNamespace.IReturnsNumber obj) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IReturnsNumber)}, new object[]{obj}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IReturnsNumber)}, new object[]{obj}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ParentStruct982.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ParentStruct982.cs similarity index 79% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ParentStruct982.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ParentStruct982.cs index 1a07489123..85afd15639 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ParentStruct982.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ParentStruct982.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { #pragma warning disable CS8618 @@ -10,8 +10,8 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.compliance.ParentStruct982")] - public class ParentStruct982 : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IParentStruct982 + [JsiiByValue(fqn: "jsii-calc.ParentStruct982")] + public class ParentStruct982 : Amazon.JSII.Tests.CalculatorNamespace.IParentStruct982 { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ParentStruct982Proxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ParentStruct982Proxy.cs similarity index 80% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ParentStruct982Proxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ParentStruct982Proxy.cs index 5e42b9a9c9..275ef7c034 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ParentStruct982Proxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ParentStruct982Proxy.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// https://github.com/aws/jsii/issues/982. /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IParentStruct982), fullyQualifiedName: "jsii-calc.compliance.ParentStruct982")] - internal sealed class ParentStruct982Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IParentStruct982 + [JsiiTypeProxy(nativeType: typeof(IParentStruct982), fullyQualifiedName: "jsii-calc.ParentStruct982")] + internal sealed class ParentStruct982Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IParentStruct982 { private ParentStruct982Proxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/PartiallyInitializedThisConsumer.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PartiallyInitializedThisConsumer.cs similarity index 72% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/PartiallyInitializedThisConsumer.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PartiallyInitializedThisConsumer.cs index 5d85b025e1..87ede7b7a4 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/PartiallyInitializedThisConsumer.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PartiallyInitializedThisConsumer.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.PartiallyInitializedThisConsumer), fullyQualifiedName: "jsii-calc.compliance.PartiallyInitializedThisConsumer")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PartiallyInitializedThisConsumer), fullyQualifiedName: "jsii-calc.PartiallyInitializedThisConsumer")] public abstract class PartiallyInitializedThisConsumer : DeputyBase { protected PartiallyInitializedThisConsumer(): base(new DeputyProps(new object[]{})) @@ -31,8 +31,8 @@ protected PartiallyInitializedThisConsumer(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "consumePartiallyInitializedThis", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"obj\",\"type\":{\"fqn\":\"jsii-calc.compliance.ConstructorPassesThisOut\"}},{\"name\":\"dt\",\"type\":{\"primitive\":\"date\"}},{\"name\":\"ev\",\"type\":{\"fqn\":\"jsii-calc.compliance.AllTypesEnum\"}}]")] - public abstract string ConsumePartiallyInitializedThis(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ConstructorPassesThisOut obj, System.DateTime dt, Amazon.JSII.Tests.CalculatorNamespace.Compliance.AllTypesEnum ev); + [JsiiMethod(name: "consumePartiallyInitializedThis", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"obj\",\"type\":{\"fqn\":\"jsii-calc.ConstructorPassesThisOut\"}},{\"name\":\"dt\",\"type\":{\"primitive\":\"date\"}},{\"name\":\"ev\",\"type\":{\"fqn\":\"jsii-calc.AllTypesEnum\"}}]")] + public abstract string ConsumePartiallyInitializedThis(Amazon.JSII.Tests.CalculatorNamespace.ConstructorPassesThisOut obj, System.DateTime dt, Amazon.JSII.Tests.CalculatorNamespace.AllTypesEnum ev); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PartiallyInitializedThisConsumerProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PartiallyInitializedThisConsumerProxy.cs new file mode 100644 index 0000000000..721a24c93a --- /dev/null +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PartiallyInitializedThisConsumerProxy.cs @@ -0,0 +1,26 @@ +using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PartiallyInitializedThisConsumer), fullyQualifiedName: "jsii-calc.PartiallyInitializedThisConsumer")] + internal sealed class PartiallyInitializedThisConsumerProxy : Amazon.JSII.Tests.CalculatorNamespace.PartiallyInitializedThisConsumer + { + private PartiallyInitializedThisConsumerProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiMethod(name: "consumePartiallyInitializedThis", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"obj\",\"type\":{\"fqn\":\"jsii-calc.ConstructorPassesThisOut\"}},{\"name\":\"dt\",\"type\":{\"primitive\":\"date\"}},{\"name\":\"ev\",\"type\":{\"fqn\":\"jsii-calc.AllTypesEnum\"}}]")] + public override string ConsumePartiallyInitializedThis(Amazon.JSII.Tests.CalculatorNamespace.ConstructorPassesThisOut obj, System.DateTime dt, Amazon.JSII.Tests.CalculatorNamespace.AllTypesEnum ev) + { + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.ConstructorPassesThisOut), typeof(System.DateTime), typeof(Amazon.JSII.Tests.CalculatorNamespace.AllTypesEnum)}, new object[]{obj, dt, ev}); + } + } +} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Polymorphism.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Polymorphism.cs similarity index 91% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Polymorphism.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Polymorphism.cs index 91f6e7f436..566aaa57e6 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Polymorphism.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Polymorphism.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Polymorphism), fullyQualifiedName: "jsii-calc.compliance.Polymorphism")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Polymorphism), fullyQualifiedName: "jsii-calc.Polymorphism")] public class Polymorphism : DeputyBase { public Polymorphism(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/PublicClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PublicClass.cs similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/PublicClass.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PublicClass.cs index 824f1c5689..93eba8a103 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/PublicClass.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PublicClass.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.PublicClass), fullyQualifiedName: "jsii-calc.compliance.PublicClass")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PublicClass), fullyQualifiedName: "jsii-calc.PublicClass")] public class PublicClass : DeputyBase { public PublicClass(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/PythonReservedWords.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonReservedWords.cs similarity index 98% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/PythonReservedWords.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonReservedWords.cs index 22f2882f16..ac65bd5f4c 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/PythonReservedWords.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/PythonReservedWords.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.PythonReservedWords), fullyQualifiedName: "jsii-calc.compliance.PythonReservedWords")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PythonReservedWords), fullyQualifiedName: "jsii-calc.PythonReservedWords")] public class PythonReservedWords : DeputyBase { public PythonReservedWords(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ReferenceEnumFromScopedPackage.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ReferenceEnumFromScopedPackage.cs similarity index 93% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ReferenceEnumFromScopedPackage.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ReferenceEnumFromScopedPackage.cs index 195e57e3de..6ad440ee3c 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ReferenceEnumFromScopedPackage.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ReferenceEnumFromScopedPackage.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// See awslabs/jsii#138. /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ReferenceEnumFromScopedPackage), fullyQualifiedName: "jsii-calc.compliance.ReferenceEnumFromScopedPackage")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ReferenceEnumFromScopedPackage), fullyQualifiedName: "jsii-calc.ReferenceEnumFromScopedPackage")] public class ReferenceEnumFromScopedPackage : DeputyBase { public ReferenceEnumFromScopedPackage(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ReturnsPrivateImplementationOfInterface.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ReturnsPrivateImplementationOfInterface.cs similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ReturnsPrivateImplementationOfInterface.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ReturnsPrivateImplementationOfInterface.cs index e112a055ec..2dcb05a14e 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/ReturnsPrivateImplementationOfInterface.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ReturnsPrivateImplementationOfInterface.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// Helps ensure the JSII kernel & runtime cooperate correctly when an un-exported instance of a class is returned with a declared type that is an exported interface, and the instance inherits from an exported class. /// an instance of an un-exported class that extends `ExportedBaseClass`, declared as `IPrivatelyImplemented`. @@ -11,7 +11,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance /// /// See: https://github.com/aws/jsii/issues/320 /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ReturnsPrivateImplementationOfInterface), fullyQualifiedName: "jsii-calc.compliance.ReturnsPrivateImplementationOfInterface")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ReturnsPrivateImplementationOfInterface), fullyQualifiedName: "jsii-calc.ReturnsPrivateImplementationOfInterface")] public class ReturnsPrivateImplementationOfInterface : DeputyBase { public ReturnsPrivateImplementationOfInterface(): base(new DeputyProps(new object[]{})) @@ -35,10 +35,10 @@ protected ReturnsPrivateImplementationOfInterface(DeputyProps props): base(props /// /// Stability: Experimental /// - [JsiiProperty(name: "privateImplementation", typeJson: "{\"fqn\":\"jsii-calc.compliance.IPrivatelyImplemented\"}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.Compliance.IPrivatelyImplemented PrivateImplementation + [JsiiProperty(name: "privateImplementation", typeJson: "{\"fqn\":\"jsii-calc.IPrivatelyImplemented\"}")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.IPrivatelyImplemented PrivateImplementation { - get => GetInstanceProperty(); + get => GetInstanceProperty(); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/RootStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RootStruct.cs similarity index 78% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/RootStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RootStruct.cs index d58ecdd349..68f3a11453 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/RootStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RootStruct.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { #pragma warning disable CS8618 @@ -13,8 +13,8 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.compliance.RootStruct")] - public class RootStruct : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IRootStruct + [JsiiByValue(fqn: "jsii-calc.RootStruct")] + public class RootStruct : Amazon.JSII.Tests.CalculatorNamespace.IRootStruct { /// May not be empty. /// @@ -31,8 +31,8 @@ public string StringProp /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: "nestedStruct", typeJson: "{\"fqn\":\"jsii-calc.compliance.NestedStruct\"}", isOptional: true, isOverride: true)] - public Amazon.JSII.Tests.CalculatorNamespace.Compliance.INestedStruct? NestedStruct + [JsiiProperty(name: "nestedStruct", typeJson: "{\"fqn\":\"jsii-calc.NestedStruct\"}", isOptional: true, isOverride: true)] + public Amazon.JSII.Tests.CalculatorNamespace.INestedStruct? NestedStruct { get; set; diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/RootStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RootStructProxy.cs similarity index 78% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/RootStructProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RootStructProxy.cs index 5dc6aca44d..35c3c57f12 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/RootStructProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RootStructProxy.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary. /// @@ -11,8 +11,8 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IRootStruct), fullyQualifiedName: "jsii-calc.compliance.RootStruct")] - internal sealed class RootStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IRootStruct + [JsiiTypeProxy(nativeType: typeof(IRootStruct), fullyQualifiedName: "jsii-calc.RootStruct")] + internal sealed class RootStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IRootStruct { private RootStructProxy(ByRefValue reference): base(reference) { @@ -32,10 +32,10 @@ public string StringProp /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: "nestedStruct", typeJson: "{\"fqn\":\"jsii-calc.compliance.NestedStruct\"}", isOptional: true)] - public Amazon.JSII.Tests.CalculatorNamespace.Compliance.INestedStruct? NestedStruct + [JsiiProperty(name: "nestedStruct", typeJson: "{\"fqn\":\"jsii-calc.NestedStruct\"}", isOptional: true)] + public Amazon.JSII.Tests.CalculatorNamespace.INestedStruct? NestedStruct { - get => GetInstanceProperty(); + get => GetInstanceProperty(); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/RootStructValidator.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RootStructValidator.cs similarity index 75% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/RootStructValidator.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RootStructValidator.cs index 903bd75d14..f560779442 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/RootStructValidator.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RootStructValidator.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.RootStructValidator), fullyQualifiedName: "jsii-calc.compliance.RootStructValidator")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.RootStructValidator), fullyQualifiedName: "jsii-calc.RootStructValidator")] public class RootStructValidator : DeputyBase { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference @@ -27,10 +27,10 @@ protected RootStructValidator(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "validate", parametersJson: "[{\"name\":\"struct\",\"type\":{\"fqn\":\"jsii-calc.compliance.RootStruct\"}}]")] - public static void Validate(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IRootStruct @struct) + [JsiiMethod(name: "validate", parametersJson: "[{\"name\":\"struct\",\"type\":{\"fqn\":\"jsii-calc.RootStruct\"}}]")] + public static void Validate(Amazon.JSII.Tests.CalculatorNamespace.IRootStruct @struct) { - InvokeStaticVoidMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.RootStructValidator), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IRootStruct)}, new object[]{@struct}); + InvokeStaticVoidMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.RootStructValidator), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IRootStruct)}, new object[]{@struct}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/RuntimeTypeChecking.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RuntimeTypeChecking.cs similarity index 94% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/RuntimeTypeChecking.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RuntimeTypeChecking.cs index 435b0a2049..cbc8ad3849 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/RuntimeTypeChecking.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/RuntimeTypeChecking.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.RuntimeTypeChecking), fullyQualifiedName: "jsii-calc.compliance.RuntimeTypeChecking")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.RuntimeTypeChecking), fullyQualifiedName: "jsii-calc.RuntimeTypeChecking")] public class RuntimeTypeChecking : DeputyBase { public RuntimeTypeChecking(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SecondLevelStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SecondLevelStruct.cs similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SecondLevelStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SecondLevelStruct.cs index 0c12a4035a..18f6fa479d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SecondLevelStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SecondLevelStruct.cs @@ -2,15 +2,15 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { #pragma warning disable CS8618 /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.compliance.SecondLevelStruct")] - public class SecondLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.Compliance.ISecondLevelStruct + [JsiiByValue(fqn: "jsii-calc.SecondLevelStruct")] + public class SecondLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.ISecondLevelStruct { /// It's long and required. /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SecondLevelStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SecondLevelStructProxy.cs similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SecondLevelStructProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SecondLevelStructProxy.cs index 2319b75451..45f51b425f 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SecondLevelStructProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SecondLevelStructProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(ISecondLevelStruct), fullyQualifiedName: "jsii-calc.compliance.SecondLevelStruct")] - internal sealed class SecondLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.ISecondLevelStruct + [JsiiTypeProxy(nativeType: typeof(ISecondLevelStruct), fullyQualifiedName: "jsii-calc.SecondLevelStruct")] + internal sealed class SecondLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ISecondLevelStruct { private SecondLevelStructProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SingleInstanceTwoTypes.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingleInstanceTwoTypes.cs similarity index 75% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SingleInstanceTwoTypes.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingleInstanceTwoTypes.cs index 18fe8c2ff2..0cbbc600a7 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SingleInstanceTwoTypes.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingleInstanceTwoTypes.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// Test that a single instance can be returned under two different FQNs. /// @@ -12,7 +12,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.SingleInstanceTwoTypes), fullyQualifiedName: "jsii-calc.compliance.SingleInstanceTwoTypes")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SingleInstanceTwoTypes), fullyQualifiedName: "jsii-calc.SingleInstanceTwoTypes")] public class SingleInstanceTwoTypes : DeputyBase { public SingleInstanceTwoTypes(): base(new DeputyProps(new object[]{})) @@ -36,19 +36,19 @@ protected SingleInstanceTwoTypes(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "interface1", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.InbetweenClass\"}}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.Compliance.InbetweenClass Interface1() + [JsiiMethod(name: "interface1", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.InbetweenClass\"}}")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.InbetweenClass Interface1() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } /// /// Stability: Experimental /// - [JsiiMethod(name: "interface2", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.IPublicInterface\"}}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.Compliance.IPublicInterface Interface2() + [JsiiMethod(name: "interface2", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.IPublicInterface\"}}")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface Interface2() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SingletonInt.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonInt.cs similarity index 91% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SingletonInt.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonInt.cs index f5e54a49aa..172df42f94 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SingletonInt.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonInt.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// Verifies that singleton enums are handled correctly. /// @@ -10,7 +10,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.SingletonInt), fullyQualifiedName: "jsii-calc.compliance.SingletonInt")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SingletonInt), fullyQualifiedName: "jsii-calc.SingletonInt")] public class SingletonInt : DeputyBase { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SingletonIntEnum.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonIntEnum.cs similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SingletonIntEnum.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonIntEnum.cs index 4a586c561c..255d9ad793 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SingletonIntEnum.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonIntEnum.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// A singleton integer. /// /// Stability: Experimental /// - [JsiiEnum(nativeType: typeof(SingletonIntEnum), fullyQualifiedName: "jsii-calc.compliance.SingletonIntEnum")] + [JsiiEnum(nativeType: typeof(SingletonIntEnum), fullyQualifiedName: "jsii-calc.SingletonIntEnum")] public enum SingletonIntEnum { /// Elite! diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SingletonString.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonString.cs similarity index 91% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SingletonString.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonString.cs index 0369c70773..0443985851 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SingletonString.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonString.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// Verifies that singleton enums are handled correctly. /// @@ -10,7 +10,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.SingletonString), fullyQualifiedName: "jsii-calc.compliance.SingletonString")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SingletonString), fullyQualifiedName: "jsii-calc.SingletonString")] public class SingletonString : DeputyBase { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SingletonStringEnum.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonStringEnum.cs similarity index 82% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SingletonStringEnum.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonStringEnum.cs index 52c90c9d65..5e9afb5734 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SingletonStringEnum.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SingletonStringEnum.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// A singleton string. /// /// Stability: Experimental /// - [JsiiEnum(nativeType: typeof(SingletonStringEnum), fullyQualifiedName: "jsii-calc.compliance.SingletonStringEnum")] + [JsiiEnum(nativeType: typeof(SingletonStringEnum), fullyQualifiedName: "jsii-calc.SingletonStringEnum")] public enum SingletonStringEnum { /// 1337. diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SomeTypeJsii976.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SomeTypeJsii976.cs similarity index 75% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SomeTypeJsii976.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SomeTypeJsii976.cs index 64fa80bb22..c9c17b6804 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SomeTypeJsii976.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SomeTypeJsii976.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.SomeTypeJsii976), fullyQualifiedName: "jsii-calc.compliance.SomeTypeJsii976")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SomeTypeJsii976), fullyQualifiedName: "jsii-calc.SomeTypeJsii976")] public class SomeTypeJsii976 : DeputyBase { public SomeTypeJsii976(): base(new DeputyProps(new object[]{})) @@ -34,16 +34,16 @@ protected SomeTypeJsii976(DeputyProps props): base(props) [JsiiMethod(name: "returnAnonymous", returnsJson: "{\"type\":{\"primitive\":\"any\"}}")] public static object ReturnAnonymous() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.SomeTypeJsii976), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.SomeTypeJsii976), new System.Type[]{}, new object[]{}); } /// /// Stability: Experimental /// - [JsiiMethod(name: "returnReturn", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.IReturnJsii976\"}}")] - public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.IReturnJsii976 ReturnReturn() + [JsiiMethod(name: "returnReturn", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.IReturnJsii976\"}}")] + public static Amazon.JSII.Tests.CalculatorNamespace.IReturnJsii976 ReturnReturn() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.SomeTypeJsii976), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.SomeTypeJsii976), new System.Type[]{}, new object[]{}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/StableClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableClass.cs similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/StableClass.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableClass.cs index 0faef41ad8..02354c12df 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/StableClass.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableClass.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Stable /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations.StableClass), fullyQualifiedName: "jsii-calc.stability_annotations.StableClass", parametersJson: "[{\"name\":\"readonlyString\",\"type\":{\"primitive\":\"string\"}},{\"name\":\"mutableNumber\",\"optional\":true,\"type\":{\"primitive\":\"number\"}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.StableClass), fullyQualifiedName: "jsii-calc.StableClass", parametersJson: "[{\"name\":\"readonlyString\",\"type\":{\"primitive\":\"string\"}},{\"name\":\"mutableNumber\",\"optional\":true,\"type\":{\"primitive\":\"number\"}}]")] public class StableClass : DeputyBase { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/StableEnum.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableEnum.cs similarity index 82% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/StableEnum.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableEnum.cs index 703717b1fc..464d91e8be 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/StableEnum.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableEnum.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Stable /// - [JsiiEnum(nativeType: typeof(StableEnum), fullyQualifiedName: "jsii-calc.stability_annotations.StableEnum")] + [JsiiEnum(nativeType: typeof(StableEnum), fullyQualifiedName: "jsii-calc.StableEnum")] public enum StableEnum { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/StableStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableStruct.cs similarity index 75% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/StableStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableStruct.cs index b580b3a5ca..2c91c36aaf 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/StableStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableStruct.cs @@ -2,15 +2,15 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations +namespace Amazon.JSII.Tests.CalculatorNamespace { #pragma warning disable CS8618 /// /// Stability: Stable /// - [JsiiByValue(fqn: "jsii-calc.stability_annotations.StableStruct")] - public class StableStruct : Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations.IStableStruct + [JsiiByValue(fqn: "jsii-calc.StableStruct")] + public class StableStruct : Amazon.JSII.Tests.CalculatorNamespace.IStableStruct { /// /// Stability: Stable diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/StableStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableStructProxy.cs similarity index 77% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/StableStructProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableStructProxy.cs index b9350a486d..db9e5f1e19 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StabilityAnnotations/StableStructProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StableStructProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Stable /// - [JsiiTypeProxy(nativeType: typeof(IStableStruct), fullyQualifiedName: "jsii-calc.stability_annotations.StableStruct")] - internal sealed class StableStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.StabilityAnnotations.IStableStruct + [JsiiTypeProxy(nativeType: typeof(IStableStruct), fullyQualifiedName: "jsii-calc.StableStruct")] + internal sealed class StableStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IStableStruct { private StableStructProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StaticContext.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StaticContext.cs similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StaticContext.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StaticContext.cs index f14dc3e76a..d803de2769 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StaticContext.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StaticContext.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// This is used to validate the ability to use `this` from within a static context. /// @@ -10,7 +10,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.StaticContext), fullyQualifiedName: "jsii-calc.compliance.StaticContext")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.StaticContext), fullyQualifiedName: "jsii-calc.StaticContext")] public class StaticContext : DeputyBase { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference @@ -33,7 +33,7 @@ protected StaticContext(DeputyProps props): base(props) [JsiiMethod(name: "canAccessStaticContext", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}")] public static bool CanAccessStaticContext() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.StaticContext), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.StaticContext), new System.Type[]{}, new object[]{}); } /// @@ -42,8 +42,8 @@ public static bool CanAccessStaticContext() [JsiiProperty(name: "staticVariable", typeJson: "{\"primitive\":\"boolean\"}")] public static bool StaticVariable { - get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.StaticContext)); - set => SetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.StaticContext), value); + get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.StaticContext)); + set => SetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.StaticContext), value); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Statics.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Statics.cs similarity index 82% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Statics.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Statics.cs index ddb778dcd7..fabaa43e58 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Statics.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Statics.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Statics), fullyQualifiedName: "jsii-calc.compliance.Statics", parametersJson: "[{\"name\":\"value\",\"type\":{\"primitive\":\"string\"}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics), fullyQualifiedName: "jsii-calc.Statics", parametersJson: "[{\"name\":\"value\",\"type\":{\"primitive\":\"string\"}}]")] public class Statics : DeputyBase { /// @@ -39,7 +39,7 @@ protected Statics(DeputyProps props): base(props) [JsiiMethod(name: "staticMethod", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"docs\":{\"summary\":\"The name of the person to say hello to.\"},\"name\":\"name\",\"type\":{\"primitive\":\"string\"}}]")] public static string StaticMethod(string name) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Statics), new System.Type[]{typeof(string)}, new object[]{name}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics), new System.Type[]{typeof(string)}, new object[]{name}); } /// @@ -60,17 +60,17 @@ public static double BAR { get; } - = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Statics)); + = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics)); /// /// Stability: Experimental /// - [JsiiProperty(name: "ConstObj", typeJson: "{\"fqn\":\"jsii-calc.compliance.DoubleTrouble\"}")] - public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.DoubleTrouble ConstObj + [JsiiProperty(name: "ConstObj", typeJson: "{\"fqn\":\"jsii-calc.DoubleTrouble\"}")] + public static Amazon.JSII.Tests.CalculatorNamespace.DoubleTrouble ConstObj { get; } - = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Statics)); + = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics)); /// Jsdocs for static property. /// @@ -81,7 +81,7 @@ public static string Foo { get; } - = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Statics)); + = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics)); /// Constants can also use camelCase. /// @@ -92,7 +92,7 @@ public static System.Collections.Generic.IDictionary ZooBar { get; } - = GetStaticProperty>(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Statics)); + = GetStaticProperty>(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics)); /// Jsdocs for static getter. /// @@ -100,11 +100,11 @@ public static System.Collections.Generic.IDictionary ZooBar /// /// Stability: Experimental /// - [JsiiProperty(name: "instance", typeJson: "{\"fqn\":\"jsii-calc.compliance.Statics\"}")] - public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.Statics Instance + [JsiiProperty(name: "instance", typeJson: "{\"fqn\":\"jsii-calc.Statics\"}")] + public static Amazon.JSII.Tests.CalculatorNamespace.Statics Instance { - get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Statics)); - set => SetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Statics), value); + get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics)); + set => SetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics), value); } /// @@ -113,8 +113,8 @@ public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.Statics Instance [JsiiProperty(name: "nonConstStatic", typeJson: "{\"primitive\":\"number\"}")] public static double NonConstStatic { - get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Statics)); - set => SetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Statics), value); + get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics)); + set => SetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics), value); } /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StringEnum.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StringEnum.cs similarity index 87% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StringEnum.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StringEnum.cs index e5b435b97e..4c7851da65 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StringEnum.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StringEnum.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiEnum(nativeType: typeof(StringEnum), fullyQualifiedName: "jsii-calc.compliance.StringEnum")] + [JsiiEnum(nativeType: typeof(StringEnum), fullyQualifiedName: "jsii-calc.StringEnum")] public enum StringEnum { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StripInternal.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StripInternal.cs similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StripInternal.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StripInternal.cs index b9852ee093..e1b17595e7 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StripInternal.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StripInternal.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.StripInternal), fullyQualifiedName: "jsii-calc.compliance.StripInternal")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.StripInternal), fullyQualifiedName: "jsii-calc.StripInternal")] public class StripInternal : DeputyBase { public StripInternal(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructA.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructA.cs similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructA.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructA.cs index 1b399400cf..a689765a1d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructA.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructA.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { #pragma warning disable CS8618 @@ -10,8 +10,8 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.compliance.StructA")] - public class StructA : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IStructA + [JsiiByValue(fqn: "jsii-calc.StructA")] + public class StructA : Amazon.JSII.Tests.CalculatorNamespace.IStructA { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructAProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructAProxy.cs similarity index 91% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructAProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructAProxy.cs index 143cc01a48..dfccd35da5 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructAProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructAProxy.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// We can serialize and deserialize structs without silently ignoring optional fields. /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IStructA), fullyQualifiedName: "jsii-calc.compliance.StructA")] - internal sealed class StructAProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IStructA + [JsiiTypeProxy(nativeType: typeof(IStructA), fullyQualifiedName: "jsii-calc.StructA")] + internal sealed class StructAProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IStructA { private StructAProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructB.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructB.cs similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructB.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructB.cs index c97783d59b..5e3288721b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructB.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructB.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { #pragma warning disable CS8618 @@ -10,8 +10,8 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.compliance.StructB")] - public class StructB : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IStructB + [JsiiByValue(fqn: "jsii-calc.StructB")] + public class StructB : Amazon.JSII.Tests.CalculatorNamespace.IStructB { /// /// Stability: Experimental @@ -38,8 +38,8 @@ public bool? OptionalBoolean /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: "optionalStructA", typeJson: "{\"fqn\":\"jsii-calc.compliance.StructA\"}", isOptional: true, isOverride: true)] - public Amazon.JSII.Tests.CalculatorNamespace.Compliance.IStructA? OptionalStructA + [JsiiProperty(name: "optionalStructA", typeJson: "{\"fqn\":\"jsii-calc.StructA\"}", isOptional: true, isOverride: true)] + public Amazon.JSII.Tests.CalculatorNamespace.IStructA? OptionalStructA { get; set; diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructBProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructBProxy.cs similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructBProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructBProxy.cs index 15286c71f0..fbeb80c2fe 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructBProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructBProxy.cs @@ -2,14 +2,14 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// This intentionally overlaps with StructA (where only requiredString is provided) to test htat the kernel properly disambiguates those. /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IStructB), fullyQualifiedName: "jsii-calc.compliance.StructB")] - internal sealed class StructBProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IStructB + [JsiiTypeProxy(nativeType: typeof(IStructB), fullyQualifiedName: "jsii-calc.StructB")] + internal sealed class StructBProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IStructB { private StructBProxy(ByRefValue reference): base(reference) { @@ -38,10 +38,10 @@ public bool? OptionalBoolean /// Stability: Experimental /// [JsiiOptional] - [JsiiProperty(name: "optionalStructA", typeJson: "{\"fqn\":\"jsii-calc.compliance.StructA\"}", isOptional: true)] - public Amazon.JSII.Tests.CalculatorNamespace.Compliance.IStructA? OptionalStructA + [JsiiProperty(name: "optionalStructA", typeJson: "{\"fqn\":\"jsii-calc.StructA\"}", isOptional: true)] + public Amazon.JSII.Tests.CalculatorNamespace.IStructA? OptionalStructA { - get => GetInstanceProperty(); + get => GetInstanceProperty(); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructParameterType.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructParameterType.cs similarity index 87% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructParameterType.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructParameterType.cs index 6a8ce057e4..498e8ebb67 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructParameterType.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructParameterType.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { #pragma warning disable CS8618 @@ -12,8 +12,8 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.compliance.StructParameterType")] - public class StructParameterType : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IStructParameterType + [JsiiByValue(fqn: "jsii-calc.StructParameterType")] + public class StructParameterType : Amazon.JSII.Tests.CalculatorNamespace.IStructParameterType { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructParameterTypeProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructParameterTypeProxy.cs similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructParameterTypeProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructParameterTypeProxy.cs index 098cc3ef4d..25ffff86b0 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructParameterTypeProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructParameterTypeProxy.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// Verifies that, in languages that do keyword lifting (e.g: Python), having a struct member with the same name as a positional parameter results in the correct code being emitted. /// @@ -10,8 +10,8 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IStructParameterType), fullyQualifiedName: "jsii-calc.compliance.StructParameterType")] - internal sealed class StructParameterTypeProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IStructParameterType + [JsiiTypeProxy(nativeType: typeof(IStructParameterType), fullyQualifiedName: "jsii-calc.StructParameterType")] + internal sealed class StructParameterTypeProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IStructParameterType { private StructParameterTypeProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructPassing.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructPassing.cs similarity index 60% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructPassing.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructPassing.cs index 77d0aa9125..0d7de5953d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructPassing.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructPassing.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// Just because we can. /// /// Stability: External /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.StructPassing), fullyQualifiedName: "jsii-calc.compliance.StructPassing")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.StructPassing), fullyQualifiedName: "jsii-calc.StructPassing")] public class StructPassing : DeputyBase { public StructPassing(): base(new DeputyProps(new object[]{})) @@ -32,19 +32,19 @@ protected StructPassing(DeputyProps props): base(props) /// /// Stability: External /// - [JsiiMethod(name: "howManyVarArgsDidIPass", returnsJson: "{\"type\":{\"primitive\":\"number\"}}", parametersJson: "[{\"name\":\"_positional\",\"type\":{\"primitive\":\"number\"}},{\"name\":\"inputs\",\"type\":{\"fqn\":\"jsii-calc.compliance.TopLevelStruct\"},\"variadic\":true}]")] - public static double HowManyVarArgsDidIPass(double positional, params Amazon.JSII.Tests.CalculatorNamespace.Compliance.ITopLevelStruct[] inputs) + [JsiiMethod(name: "howManyVarArgsDidIPass", returnsJson: "{\"type\":{\"primitive\":\"number\"}}", parametersJson: "[{\"name\":\"_positional\",\"type\":{\"primitive\":\"number\"}},{\"name\":\"inputs\",\"type\":{\"fqn\":\"jsii-calc.TopLevelStruct\"},\"variadic\":true}]")] + public static double HowManyVarArgsDidIPass(double positional, params Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct[] inputs) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.StructPassing), new System.Type[]{typeof(double), typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ITopLevelStruct[])}, new object[]{positional, inputs}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.StructPassing), new System.Type[]{typeof(double), typeof(Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct[])}, new object[]{positional, inputs}); } /// /// Stability: External /// - [JsiiMethod(name: "roundTrip", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.compliance.TopLevelStruct\"}}", parametersJson: "[{\"name\":\"_positional\",\"type\":{\"primitive\":\"number\"}},{\"name\":\"input\",\"type\":{\"fqn\":\"jsii-calc.compliance.TopLevelStruct\"}}]")] - public static Amazon.JSII.Tests.CalculatorNamespace.Compliance.ITopLevelStruct RoundTrip(double positional, Amazon.JSII.Tests.CalculatorNamespace.Compliance.ITopLevelStruct input) + [JsiiMethod(name: "roundTrip", returnsJson: "{\"type\":{\"fqn\":\"jsii-calc.TopLevelStruct\"}}", parametersJson: "[{\"name\":\"_positional\",\"type\":{\"primitive\":\"number\"}},{\"name\":\"input\",\"type\":{\"fqn\":\"jsii-calc.TopLevelStruct\"}}]")] + public static Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct RoundTrip(double positional, Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct input) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.StructPassing), new System.Type[]{typeof(double), typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.ITopLevelStruct)}, new object[]{positional, input}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.StructPassing), new System.Type[]{typeof(double), typeof(Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct)}, new object[]{positional, input}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructUnionConsumer.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructUnionConsumer.cs similarity index 72% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructUnionConsumer.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructUnionConsumer.cs index 950ee9352b..550aa1ab46 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructUnionConsumer.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructUnionConsumer.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.StructUnionConsumer), fullyQualifiedName: "jsii-calc.compliance.StructUnionConsumer")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.StructUnionConsumer), fullyQualifiedName: "jsii-calc.StructUnionConsumer")] public class StructUnionConsumer : DeputyBase { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference @@ -27,19 +27,19 @@ protected StructUnionConsumer(DeputyProps props): base(props) /// /// Stability: Experimental /// - [JsiiMethod(name: "isStructA", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"struct\",\"type\":{\"union\":{\"types\":[{\"fqn\":\"jsii-calc.compliance.StructA\"},{\"fqn\":\"jsii-calc.compliance.StructB\"}]}}}]")] + [JsiiMethod(name: "isStructA", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"struct\",\"type\":{\"union\":{\"types\":[{\"fqn\":\"jsii-calc.StructA\"},{\"fqn\":\"jsii-calc.StructB\"}]}}}]")] public static bool IsStructA(object @struct) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.StructUnionConsumer), new System.Type[]{typeof(object)}, new object[]{@struct}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.StructUnionConsumer), new System.Type[]{typeof(object)}, new object[]{@struct}); } /// /// Stability: Experimental /// - [JsiiMethod(name: "isStructB", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"struct\",\"type\":{\"union\":{\"types\":[{\"fqn\":\"jsii-calc.compliance.StructA\"},{\"fqn\":\"jsii-calc.compliance.StructB\"}]}}}]")] + [JsiiMethod(name: "isStructB", returnsJson: "{\"type\":{\"primitive\":\"boolean\"}}", parametersJson: "[{\"name\":\"struct\",\"type\":{\"union\":{\"types\":[{\"fqn\":\"jsii-calc.StructA\"},{\"fqn\":\"jsii-calc.StructB\"}]}}}]")] public static bool IsStructB(object @struct) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.StructUnionConsumer), new System.Type[]{typeof(object)}, new object[]{@struct}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.StructUnionConsumer), new System.Type[]{typeof(object)}, new object[]{@struct}); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructWithJavaReservedWords.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructWithJavaReservedWords.cs similarity index 88% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructWithJavaReservedWords.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructWithJavaReservedWords.cs index 9abaca8d2d..ae29361d74 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructWithJavaReservedWords.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructWithJavaReservedWords.cs @@ -2,15 +2,15 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { #pragma warning disable CS8618 /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.compliance.StructWithJavaReservedWords")] - public class StructWithJavaReservedWords : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IStructWithJavaReservedWords + [JsiiByValue(fqn: "jsii-calc.StructWithJavaReservedWords")] + public class StructWithJavaReservedWords : Amazon.JSII.Tests.CalculatorNamespace.IStructWithJavaReservedWords { /// /// Stability: Experimental diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructWithJavaReservedWordsProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructWithJavaReservedWordsProxy.cs similarity index 88% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructWithJavaReservedWordsProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructWithJavaReservedWordsProxy.cs index 9264824a2c..82d29eef13 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/StructWithJavaReservedWordsProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/StructWithJavaReservedWordsProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IStructWithJavaReservedWords), fullyQualifiedName: "jsii-calc.compliance.StructWithJavaReservedWords")] - internal sealed class StructWithJavaReservedWordsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IStructWithJavaReservedWords + [JsiiTypeProxy(nativeType: typeof(IStructWithJavaReservedWords), fullyQualifiedName: "jsii-calc.StructWithJavaReservedWords")] + internal sealed class StructWithJavaReservedWordsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IStructWithJavaReservedWords { private StructWithJavaReservedWordsProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/IStructure.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/IStructure.cs new file mode 100644 index 0000000000..0592d56531 --- /dev/null +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/IStructure.cs @@ -0,0 +1,22 @@ +using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IStructure), fullyQualifiedName: "jsii-calc.submodule.child.Structure")] + public interface IStructure + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: "bool", typeJson: "{\"primitive\":\"boolean\"}")] + bool Bool + { + get; + } + } +} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/Structure.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/Structure.cs new file mode 100644 index 0000000000..249762ae88 --- /dev/null +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/Structure.cs @@ -0,0 +1,25 @@ +using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child +{ + #pragma warning disable CS8618 + + /// + /// Stability: Experimental + /// + [JsiiByValue(fqn: "jsii-calc.submodule.child.Structure")] + public class Structure : Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.IStructure + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: "bool", typeJson: "{\"primitive\":\"boolean\"}", isOverride: true)] + public bool Bool + { + get; + set; + } + } +} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/StructureProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/StructureProxy.cs new file mode 100644 index 0000000000..945641b246 --- /dev/null +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/StructureProxy.cs @@ -0,0 +1,26 @@ +using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IStructure), fullyQualifiedName: "jsii-calc.submodule.child.Structure")] + internal sealed class StructureProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.IStructure + { + private StructureProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: "bool", typeJson: "{\"primitive\":\"boolean\"}")] + public bool Bool + { + get => GetInstanceProperty(); + } + } +} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/DeeplyNested/INamespaced.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/DeeplyNested/INamespaced.cs new file mode 100644 index 0000000000..b68772f183 --- /dev/null +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/DeeplyNested/INamespaced.cs @@ -0,0 +1,22 @@ +using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.DeeplyNested +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(INamespaced), fullyQualifiedName: "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced")] + public interface INamespaced + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: "definedAt", typeJson: "{\"primitive\":\"string\"}")] + string DefinedAt + { + get; + } + } +} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/DeeplyNested/INamespacedProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/DeeplyNested/INamespacedProxy.cs new file mode 100644 index 0000000000..13f38d0463 --- /dev/null +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/DeeplyNested/INamespacedProxy.cs @@ -0,0 +1,26 @@ +using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.DeeplyNested +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(INamespaced), fullyQualifiedName: "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced")] + internal sealed class INamespacedProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.DeeplyNested.INamespaced + { + private INamespacedProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: "definedAt", typeJson: "{\"primitive\":\"string\"}")] + public string DefinedAt + { + get => GetInstanceProperty(); + } + } +} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/Namespaced.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/Namespaced.cs new file mode 100644 index 0000000000..a5d1fa2f8a --- /dev/null +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/Namespaced.cs @@ -0,0 +1,36 @@ +using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.Namespaced), fullyQualifiedName: "jsii-calc.submodule.nested_submodule.Namespaced")] + public class Namespaced : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.DeeplyNested.INamespaced + { + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Namespaced(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected Namespaced(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: "definedAt", typeJson: "{\"primitive\":\"string\"}")] + public virtual string DefinedAt + { + get => GetInstanceProperty(); + } + } +} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SupportsNiceJavaBuilder.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilder.cs similarity index 68% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SupportsNiceJavaBuilder.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilder.cs index 280bfbc7b6..4d125e367a 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SupportsNiceJavaBuilder.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilder.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.SupportsNiceJavaBuilder), fullyQualifiedName: "jsii-calc.compliance.SupportsNiceJavaBuilder", parametersJson: "[{\"docs\":{\"summary\":\"some identifier.\"},\"name\":\"id\",\"type\":{\"primitive\":\"number\"}},{\"docs\":{\"summary\":\"the default value of `bar`.\"},\"name\":\"defaultBar\",\"optional\":true,\"type\":{\"primitive\":\"number\"}},{\"docs\":{\"summary\":\"some props once can provide.\"},\"name\":\"props\",\"optional\":true,\"type\":{\"fqn\":\"jsii-calc.compliance.SupportsNiceJavaBuilderProps\"}},{\"docs\":{\"summary\":\"a variadic continuation.\"},\"name\":\"rest\",\"type\":{\"primitive\":\"string\"},\"variadic\":true}]")] - public class SupportsNiceJavaBuilder : Amazon.JSII.Tests.CalculatorNamespace.Compliance.SupportsNiceJavaBuilderWithRequiredProps + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SupportsNiceJavaBuilder), fullyQualifiedName: "jsii-calc.SupportsNiceJavaBuilder", parametersJson: "[{\"docs\":{\"summary\":\"some identifier.\"},\"name\":\"id\",\"type\":{\"primitive\":\"number\"}},{\"docs\":{\"summary\":\"the default value of `bar`.\"},\"name\":\"defaultBar\",\"optional\":true,\"type\":{\"primitive\":\"number\"}},{\"docs\":{\"summary\":\"some props once can provide.\"},\"name\":\"props\",\"optional\":true,\"type\":{\"fqn\":\"jsii-calc.SupportsNiceJavaBuilderProps\"}},{\"docs\":{\"summary\":\"a variadic continuation.\"},\"name\":\"rest\",\"type\":{\"primitive\":\"string\"},\"variadic\":true}]")] + public class SupportsNiceJavaBuilder : Amazon.JSII.Tests.CalculatorNamespace.SupportsNiceJavaBuilderWithRequiredProps { /// some identifier. /// the default value of `bar`. @@ -17,7 +17,7 @@ public class SupportsNiceJavaBuilder : Amazon.JSII.Tests.CalculatorNamespace.Com /// /// Stability: Experimental /// - public SupportsNiceJavaBuilder(double id, double? defaultBar = null, Amazon.JSII.Tests.CalculatorNamespace.Compliance.ISupportsNiceJavaBuilderProps? props = null, params string[] rest): base(new DeputyProps(new object?[]{id, defaultBar, props, rest})) + public SupportsNiceJavaBuilder(double id, double? defaultBar = null, Amazon.JSII.Tests.CalculatorNamespace.ISupportsNiceJavaBuilderProps? props = null, params string[] rest): base(new DeputyProps(new object?[]{id, defaultBar, props, rest})) { } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SupportsNiceJavaBuilderProps.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilderProps.cs similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SupportsNiceJavaBuilderProps.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilderProps.cs index a960bc263b..16c2819a9d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SupportsNiceJavaBuilderProps.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilderProps.cs @@ -2,15 +2,15 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { #pragma warning disable CS8618 /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.compliance.SupportsNiceJavaBuilderProps")] - public class SupportsNiceJavaBuilderProps : Amazon.JSII.Tests.CalculatorNamespace.Compliance.ISupportsNiceJavaBuilderProps + [JsiiByValue(fqn: "jsii-calc.SupportsNiceJavaBuilderProps")] + public class SupportsNiceJavaBuilderProps : Amazon.JSII.Tests.CalculatorNamespace.ISupportsNiceJavaBuilderProps { /// Some number, like 42. /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SupportsNiceJavaBuilderPropsProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilderPropsProxy.cs similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SupportsNiceJavaBuilderPropsProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilderPropsProxy.cs index 26eaab45c7..d11df3b092 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SupportsNiceJavaBuilderPropsProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilderPropsProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(ISupportsNiceJavaBuilderProps), fullyQualifiedName: "jsii-calc.compliance.SupportsNiceJavaBuilderProps")] - internal sealed class SupportsNiceJavaBuilderPropsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.ISupportsNiceJavaBuilderProps + [JsiiTypeProxy(nativeType: typeof(ISupportsNiceJavaBuilderProps), fullyQualifiedName: "jsii-calc.SupportsNiceJavaBuilderProps")] + internal sealed class SupportsNiceJavaBuilderPropsProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ISupportsNiceJavaBuilderProps { private SupportsNiceJavaBuilderPropsProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SupportsNiceJavaBuilderWithRequiredProps.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilderWithRequiredProps.cs similarity index 80% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SupportsNiceJavaBuilderWithRequiredProps.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilderWithRequiredProps.cs index 595d741dea..2f9b227c46 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SupportsNiceJavaBuilderWithRequiredProps.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SupportsNiceJavaBuilderWithRequiredProps.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// We can generate fancy builders in Java for classes which take a mix of positional & struct parameters. /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.SupportsNiceJavaBuilderWithRequiredProps), fullyQualifiedName: "jsii-calc.compliance.SupportsNiceJavaBuilderWithRequiredProps", parametersJson: "[{\"docs\":{\"summary\":\"some identifier of your choice.\"},\"name\":\"id\",\"type\":{\"primitive\":\"number\"}},{\"docs\":{\"summary\":\"some properties.\"},\"name\":\"props\",\"type\":{\"fqn\":\"jsii-calc.compliance.SupportsNiceJavaBuilderProps\"}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SupportsNiceJavaBuilderWithRequiredProps), fullyQualifiedName: "jsii-calc.SupportsNiceJavaBuilderWithRequiredProps", parametersJson: "[{\"docs\":{\"summary\":\"some identifier of your choice.\"},\"name\":\"id\",\"type\":{\"primitive\":\"number\"}},{\"docs\":{\"summary\":\"some properties.\"},\"name\":\"props\",\"type\":{\"fqn\":\"jsii-calc.SupportsNiceJavaBuilderProps\"}}]")] public class SupportsNiceJavaBuilderWithRequiredProps : DeputyBase { /// some identifier of your choice. @@ -16,7 +16,7 @@ public class SupportsNiceJavaBuilderWithRequiredProps : DeputyBase /// /// Stability: Experimental /// - public SupportsNiceJavaBuilderWithRequiredProps(double id, Amazon.JSII.Tests.CalculatorNamespace.Compliance.ISupportsNiceJavaBuilderProps props): base(new DeputyProps(new object[]{id, props})) + public SupportsNiceJavaBuilderWithRequiredProps(double id, Amazon.JSII.Tests.CalculatorNamespace.ISupportsNiceJavaBuilderProps props): base(new DeputyProps(new object[]{id, props})) { } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SyncVirtualMethods.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SyncVirtualMethods.cs similarity index 97% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SyncVirtualMethods.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SyncVirtualMethods.cs index 3106beae4e..130db1db59 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/SyncVirtualMethods.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/SyncVirtualMethods.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.SyncVirtualMethods), fullyQualifiedName: "jsii-calc.compliance.SyncVirtualMethods")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SyncVirtualMethods), fullyQualifiedName: "jsii-calc.SyncVirtualMethods")] public class SyncVirtualMethods : DeputyBase { public SyncVirtualMethods(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Thrower.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Thrower.cs similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Thrower.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Thrower.cs index 69db55bd5f..16df088228 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/Thrower.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Thrower.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.Thrower), fullyQualifiedName: "jsii-calc.compliance.Thrower")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Thrower), fullyQualifiedName: "jsii-calc.Thrower")] public class Thrower : DeputyBase { public Thrower(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/TopLevelStruct.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/TopLevelStruct.cs similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/TopLevelStruct.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/TopLevelStruct.cs index fe201b9821..71952e0149 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/TopLevelStruct.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/TopLevelStruct.cs @@ -2,15 +2,15 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { #pragma warning disable CS8618 /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.compliance.TopLevelStruct")] - public class TopLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.Compliance.ITopLevelStruct + [JsiiByValue(fqn: "jsii-calc.TopLevelStruct")] + public class TopLevelStruct : Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct { /// This is a required field. /// @@ -27,7 +27,7 @@ public string Required /// /// Stability: Experimental /// - [JsiiProperty(name: "secondLevel", typeJson: "{\"union\":{\"types\":[{\"primitive\":\"number\"},{\"fqn\":\"jsii-calc.compliance.SecondLevelStruct\"}]}}", isOverride: true)] + [JsiiProperty(name: "secondLevel", typeJson: "{\"union\":{\"types\":[{\"primitive\":\"number\"},{\"fqn\":\"jsii-calc.SecondLevelStruct\"}]}}", isOverride: true)] public object SecondLevel { get; diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/TopLevelStructProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/TopLevelStructProxy.cs similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/TopLevelStructProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/TopLevelStructProxy.cs index 18ea15f5f8..9c94640e97 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/TopLevelStructProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/TopLevelStructProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(ITopLevelStruct), fullyQualifiedName: "jsii-calc.compliance.TopLevelStruct")] - internal sealed class TopLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.ITopLevelStruct + [JsiiTypeProxy(nativeType: typeof(ITopLevelStruct), fullyQualifiedName: "jsii-calc.TopLevelStruct")] + internal sealed class TopLevelStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct { private TopLevelStructProxy(ByRefValue reference): base(reference) { @@ -28,7 +28,7 @@ public string Required /// /// Stability: Experimental /// - [JsiiProperty(name: "secondLevel", typeJson: "{\"union\":{\"types\":[{\"primitive\":\"number\"},{\"fqn\":\"jsii-calc.compliance.SecondLevelStruct\"}]}}")] + [JsiiProperty(name: "secondLevel", typeJson: "{\"union\":{\"types\":[{\"primitive\":\"number\"},{\"fqn\":\"jsii-calc.SecondLevelStruct\"}]}}")] public object SecondLevel { get => GetInstanceProperty(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/UnionProperties.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UnionProperties.cs similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/UnionProperties.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UnionProperties.cs index 464d5377f8..c827b0e642 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/UnionProperties.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UnionProperties.cs @@ -2,20 +2,20 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { #pragma warning disable CS8618 /// /// Stability: Experimental /// - [JsiiByValue(fqn: "jsii-calc.compliance.UnionProperties")] - public class UnionProperties : Amazon.JSII.Tests.CalculatorNamespace.Compliance.IUnionProperties + [JsiiByValue(fqn: "jsii-calc.UnionProperties")] + public class UnionProperties : Amazon.JSII.Tests.CalculatorNamespace.IUnionProperties { /// /// Stability: Experimental /// - [JsiiProperty(name: "bar", typeJson: "{\"union\":{\"types\":[{\"primitive\":\"string\"},{\"primitive\":\"number\"},{\"fqn\":\"jsii-calc.compliance.AllTypes\"}]}}", isOverride: true)] + [JsiiProperty(name: "bar", typeJson: "{\"union\":{\"types\":[{\"primitive\":\"string\"},{\"primitive\":\"number\"},{\"fqn\":\"jsii-calc.AllTypes\"}]}}", isOverride: true)] public object Bar { get; diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/UnionPropertiesProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UnionPropertiesProxy.cs similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/UnionPropertiesProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UnionPropertiesProxy.cs index ad648aabb1..16732ebbcf 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/UnionPropertiesProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UnionPropertiesProxy.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(IUnionProperties), fullyQualifiedName: "jsii-calc.compliance.UnionProperties")] - internal sealed class UnionPropertiesProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Compliance.IUnionProperties + [JsiiTypeProxy(nativeType: typeof(IUnionProperties), fullyQualifiedName: "jsii-calc.UnionProperties")] + internal sealed class UnionPropertiesProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IUnionProperties { private UnionPropertiesProxy(ByRefValue reference): base(reference) { @@ -17,7 +17,7 @@ private UnionPropertiesProxy(ByRefValue reference): base(reference) /// /// Stability: Experimental /// - [JsiiProperty(name: "bar", typeJson: "{\"union\":{\"types\":[{\"primitive\":\"string\"},{\"primitive\":\"number\"},{\"fqn\":\"jsii-calc.compliance.AllTypes\"}]}}")] + [JsiiProperty(name: "bar", typeJson: "{\"union\":{\"types\":[{\"primitive\":\"string\"},{\"primitive\":\"number\"},{\"fqn\":\"jsii-calc.AllTypes\"}]}}")] public object Bar { get => GetInstanceProperty(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/UseBundledDependency.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UseBundledDependency.cs similarity index 89% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/UseBundledDependency.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UseBundledDependency.cs index 8f96a9734a..cbf27fedd2 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/UseBundledDependency.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UseBundledDependency.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.UseBundledDependency), fullyQualifiedName: "jsii-calc.compliance.UseBundledDependency")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UseBundledDependency), fullyQualifiedName: "jsii-calc.UseBundledDependency")] public class UseBundledDependency : DeputyBase { public UseBundledDependency(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/UseCalcBase.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UseCalcBase.cs similarity index 91% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/UseCalcBase.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UseCalcBase.cs index c17012e96e..ef9929be49 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/UseCalcBase.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UseCalcBase.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// Depend on a type from jsii-calc-base as a test for awslabs/jsii#128. /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.UseCalcBase), fullyQualifiedName: "jsii-calc.compliance.UseCalcBase")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UseCalcBase), fullyQualifiedName: "jsii-calc.UseCalcBase")] public class UseCalcBase : DeputyBase { public UseCalcBase(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/UsesInterfaceWithProperties.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UsesInterfaceWithProperties.cs similarity index 75% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/UsesInterfaceWithProperties.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UsesInterfaceWithProperties.cs index 1ff637ee4a..85b8ea2818 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/UsesInterfaceWithProperties.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UsesInterfaceWithProperties.cs @@ -2,18 +2,18 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.UsesInterfaceWithProperties), fullyQualifiedName: "jsii-calc.compliance.UsesInterfaceWithProperties", parametersJson: "[{\"name\":\"obj\",\"type\":{\"fqn\":\"jsii-calc.compliance.IInterfaceWithProperties\"}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UsesInterfaceWithProperties), fullyQualifiedName: "jsii-calc.UsesInterfaceWithProperties", parametersJson: "[{\"name\":\"obj\",\"type\":{\"fqn\":\"jsii-calc.IInterfaceWithProperties\"}}]")] public class UsesInterfaceWithProperties : DeputyBase { /// /// Stability: Experimental /// - public UsesInterfaceWithProperties(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IInterfaceWithProperties obj): base(new DeputyProps(new object[]{obj})) + public UsesInterfaceWithProperties(Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithProperties obj): base(new DeputyProps(new object[]{obj})) { } @@ -43,10 +43,10 @@ public virtual string JustRead() /// /// Stability: Experimental /// - [JsiiMethod(name: "readStringAndNumber", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"ext\",\"type\":{\"fqn\":\"jsii-calc.compliance.IInterfaceWithPropertiesExtension\"}}]")] - public virtual string ReadStringAndNumber(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IInterfaceWithPropertiesExtension ext) + [JsiiMethod(name: "readStringAndNumber", returnsJson: "{\"type\":{\"primitive\":\"string\"}}", parametersJson: "[{\"name\":\"ext\",\"type\":{\"fqn\":\"jsii-calc.IInterfaceWithPropertiesExtension\"}}]")] + public virtual string ReadStringAndNumber(Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithPropertiesExtension ext) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.IInterfaceWithPropertiesExtension)}, new object[]{ext}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithPropertiesExtension)}, new object[]{ext}); } /// @@ -61,10 +61,10 @@ public virtual string WriteAndRead(string @value) /// /// Stability: Experimental /// - [JsiiProperty(name: "obj", typeJson: "{\"fqn\":\"jsii-calc.compliance.IInterfaceWithProperties\"}")] - public virtual Amazon.JSII.Tests.CalculatorNamespace.Compliance.IInterfaceWithProperties Obj + [JsiiProperty(name: "obj", typeJson: "{\"fqn\":\"jsii-calc.IInterfaceWithProperties\"}")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithProperties Obj { - get => GetInstanceProperty(); + get => GetInstanceProperty(); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/VariadicInvoker.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VariadicInvoker.cs similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/VariadicInvoker.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VariadicInvoker.cs index aa4c838612..2c7f3d7d65 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/VariadicInvoker.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VariadicInvoker.cs @@ -2,18 +2,18 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.VariadicInvoker), fullyQualifiedName: "jsii-calc.compliance.VariadicInvoker", parametersJson: "[{\"name\":\"method\",\"type\":{\"fqn\":\"jsii-calc.compliance.VariadicMethod\"}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.VariadicInvoker), fullyQualifiedName: "jsii-calc.VariadicInvoker", parametersJson: "[{\"name\":\"method\",\"type\":{\"fqn\":\"jsii-calc.VariadicMethod\"}}]")] public class VariadicInvoker : DeputyBase { /// /// Stability: Experimental /// - public VariadicInvoker(Amazon.JSII.Tests.CalculatorNamespace.Compliance.VariadicMethod method): base(new DeputyProps(new object[]{method})) + public VariadicInvoker(Amazon.JSII.Tests.CalculatorNamespace.VariadicMethod method): base(new DeputyProps(new object[]{method})) { } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/VariadicMethod.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VariadicMethod.cs similarity index 87% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/VariadicMethod.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VariadicMethod.cs index 15f9b3f389..102b19b473 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/VariadicMethod.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VariadicMethod.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.VariadicMethod), fullyQualifiedName: "jsii-calc.compliance.VariadicMethod", parametersJson: "[{\"docs\":{\"summary\":\"a prefix that will be use for all values returned by `#asArray`.\"},\"name\":\"prefix\",\"type\":{\"primitive\":\"number\"},\"variadic\":true}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.VariadicMethod), fullyQualifiedName: "jsii-calc.VariadicMethod", parametersJson: "[{\"docs\":{\"summary\":\"a prefix that will be use for all values returned by `#asArray`.\"},\"name\":\"prefix\",\"type\":{\"primitive\":\"number\"},\"variadic\":true}]")] public class VariadicMethod : DeputyBase { /// a prefix that will be use for all values returned by `#asArray`. diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/VirtualMethodPlayground.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VirtualMethodPlayground.cs similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/VirtualMethodPlayground.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VirtualMethodPlayground.cs index 29d42f0c76..e55286686c 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/VirtualMethodPlayground.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VirtualMethodPlayground.cs @@ -2,12 +2,12 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.VirtualMethodPlayground), fullyQualifiedName: "jsii-calc.compliance.VirtualMethodPlayground")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.VirtualMethodPlayground), fullyQualifiedName: "jsii-calc.VirtualMethodPlayground")] public class VirtualMethodPlayground : DeputyBase { public VirtualMethodPlayground(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/VoidCallback.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VoidCallback.cs similarity index 93% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/VoidCallback.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VoidCallback.cs index 0e353001ee..0b71fc3d26 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/VoidCallback.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VoidCallback.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// This test is used to validate the runtimes can return correctly from a void callback. /// @@ -14,7 +14,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.VoidCallback), fullyQualifiedName: "jsii-calc.compliance.VoidCallback")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.VoidCallback), fullyQualifiedName: "jsii-calc.VoidCallback")] public abstract class VoidCallback : DeputyBase { protected VoidCallback(): base(new DeputyProps(new object[]{})) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/VoidCallbackProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VoidCallbackProxy.cs similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/VoidCallbackProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VoidCallbackProxy.cs index 8cbb3233b7..17fcef5856 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/VoidCallbackProxy.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/VoidCallbackProxy.cs @@ -2,7 +2,7 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// This test is used to validate the runtimes can return correctly from a void callback. /// @@ -14,8 +14,8 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance /// /// Stability: Experimental /// - [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.VoidCallback), fullyQualifiedName: "jsii-calc.compliance.VoidCallback")] - internal sealed class VoidCallbackProxy : Amazon.JSII.Tests.CalculatorNamespace.Compliance.VoidCallback + [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.VoidCallback), fullyQualifiedName: "jsii-calc.VoidCallback")] + internal sealed class VoidCallbackProxy : Amazon.JSII.Tests.CalculatorNamespace.VoidCallback { private VoidCallbackProxy(ByRefValue reference): base(reference) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/WithPrivatePropertyInConstructor.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/WithPrivatePropertyInConstructor.cs similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/WithPrivatePropertyInConstructor.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/WithPrivatePropertyInConstructor.cs index 4d9ad46830..2dfcb9651f 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Compliance/WithPrivatePropertyInConstructor.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/WithPrivatePropertyInConstructor.cs @@ -2,13 +2,13 @@ #pragma warning disable CS0672,CS0809,CS1591 -namespace Amazon.JSII.Tests.CalculatorNamespace.Compliance +namespace Amazon.JSII.Tests.CalculatorNamespace { /// Verifies that private property declarations in constructor arguments are hidden. /// /// Stability: Experimental /// - [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Compliance.WithPrivatePropertyInConstructor), fullyQualifiedName: "jsii-calc.compliance.WithPrivatePropertyInConstructor", parametersJson: "[{\"name\":\"privateField\",\"optional\":true,\"type\":{\"primitive\":\"string\"}}]")] + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.WithPrivatePropertyInConstructor), fullyQualifiedName: "jsii-calc.WithPrivatePropertyInConstructor", parametersJson: "[{\"name\":\"privateField\",\"optional\":true,\"type\":{\"primitive\":\"string\"}}]")] public class WithPrivatePropertyInConstructor : DeputyBase { /// diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/$Module.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/$Module.java index 7fd11dbd09..90301d7615 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/$Module.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/$Module.java @@ -18,195 +18,198 @@ public List> getDependencies() { @Override protected Class resolveClass(final String fqn) throws ClassNotFoundException { switch (fqn) { + case "jsii-calc.AbstractClass": return software.amazon.jsii.tests.calculator.AbstractClass.class; + case "jsii-calc.AbstractClassBase": return software.amazon.jsii.tests.calculator.AbstractClassBase.class; + case "jsii-calc.AbstractClassReturner": return software.amazon.jsii.tests.calculator.AbstractClassReturner.class; case "jsii-calc.AbstractSuite": return software.amazon.jsii.tests.calculator.AbstractSuite.class; case "jsii-calc.Add": return software.amazon.jsii.tests.calculator.Add.class; + case "jsii-calc.AllTypes": return software.amazon.jsii.tests.calculator.AllTypes.class; + case "jsii-calc.AllTypesEnum": return software.amazon.jsii.tests.calculator.AllTypesEnum.class; + case "jsii-calc.AllowedMethodNames": return software.amazon.jsii.tests.calculator.AllowedMethodNames.class; + case "jsii-calc.AmbiguousParameters": return software.amazon.jsii.tests.calculator.AmbiguousParameters.class; + case "jsii-calc.AnonymousImplementationProvider": return software.amazon.jsii.tests.calculator.AnonymousImplementationProvider.class; + case "jsii-calc.AsyncVirtualMethods": return software.amazon.jsii.tests.calculator.AsyncVirtualMethods.class; + case "jsii-calc.AugmentableClass": return software.amazon.jsii.tests.calculator.AugmentableClass.class; + case "jsii-calc.BaseJsii976": return software.amazon.jsii.tests.calculator.BaseJsii976.class; + case "jsii-calc.Bell": return software.amazon.jsii.tests.calculator.Bell.class; case "jsii-calc.BinaryOperation": return software.amazon.jsii.tests.calculator.BinaryOperation.class; case "jsii-calc.Calculator": return software.amazon.jsii.tests.calculator.Calculator.class; case "jsii-calc.CalculatorProps": return software.amazon.jsii.tests.calculator.CalculatorProps.class; + case "jsii-calc.ChildStruct982": return software.amazon.jsii.tests.calculator.ChildStruct982.class; + case "jsii-calc.ClassThatImplementsTheInternalInterface": return software.amazon.jsii.tests.calculator.ClassThatImplementsTheInternalInterface.class; + case "jsii-calc.ClassThatImplementsThePrivateInterface": return software.amazon.jsii.tests.calculator.ClassThatImplementsThePrivateInterface.class; + case "jsii-calc.ClassWithCollections": return software.amazon.jsii.tests.calculator.ClassWithCollections.class; + case "jsii-calc.ClassWithDocs": return software.amazon.jsii.tests.calculator.ClassWithDocs.class; + case "jsii-calc.ClassWithJavaReservedWords": return software.amazon.jsii.tests.calculator.ClassWithJavaReservedWords.class; + case "jsii-calc.ClassWithMutableObjectLiteralProperty": return software.amazon.jsii.tests.calculator.ClassWithMutableObjectLiteralProperty.class; + case "jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties": return software.amazon.jsii.tests.calculator.ClassWithPrivateConstructorAndAutomaticProperties.class; + case "jsii-calc.ConfusingToJackson": return software.amazon.jsii.tests.calculator.ConfusingToJackson.class; + case "jsii-calc.ConfusingToJacksonStruct": return software.amazon.jsii.tests.calculator.ConfusingToJacksonStruct.class; + case "jsii-calc.ConstructorPassesThisOut": return software.amazon.jsii.tests.calculator.ConstructorPassesThisOut.class; + case "jsii-calc.Constructors": return software.amazon.jsii.tests.calculator.Constructors.class; + case "jsii-calc.ConsumePureInterface": return software.amazon.jsii.tests.calculator.ConsumePureInterface.class; + case "jsii-calc.ConsumerCanRingBell": return software.amazon.jsii.tests.calculator.ConsumerCanRingBell.class; + case "jsii-calc.ConsumersOfThisCrazyTypeSystem": return software.amazon.jsii.tests.calculator.ConsumersOfThisCrazyTypeSystem.class; + case "jsii-calc.DataRenderer": return software.amazon.jsii.tests.calculator.DataRenderer.class; + case "jsii-calc.DefaultedConstructorArgument": return software.amazon.jsii.tests.calculator.DefaultedConstructorArgument.class; + case "jsii-calc.Demonstrate982": return software.amazon.jsii.tests.calculator.Demonstrate982.class; + case "jsii-calc.DeprecatedClass": return software.amazon.jsii.tests.calculator.DeprecatedClass.class; + case "jsii-calc.DeprecatedEnum": return software.amazon.jsii.tests.calculator.DeprecatedEnum.class; + case "jsii-calc.DeprecatedStruct": return software.amazon.jsii.tests.calculator.DeprecatedStruct.class; + case "jsii-calc.DerivedClassHasNoProperties.Base": return software.amazon.jsii.tests.calculator.derived_class_has_no_properties.Base.class; + case "jsii-calc.DerivedClassHasNoProperties.Derived": return software.amazon.jsii.tests.calculator.derived_class_has_no_properties.Derived.class; + case "jsii-calc.DerivedStruct": return software.amazon.jsii.tests.calculator.DerivedStruct.class; + case "jsii-calc.DiamondInheritanceBaseLevelStruct": return software.amazon.jsii.tests.calculator.DiamondInheritanceBaseLevelStruct.class; + case "jsii-calc.DiamondInheritanceFirstMidLevelStruct": return software.amazon.jsii.tests.calculator.DiamondInheritanceFirstMidLevelStruct.class; + case "jsii-calc.DiamondInheritanceSecondMidLevelStruct": return software.amazon.jsii.tests.calculator.DiamondInheritanceSecondMidLevelStruct.class; + case "jsii-calc.DiamondInheritanceTopLevelStruct": return software.amazon.jsii.tests.calculator.DiamondInheritanceTopLevelStruct.class; + case "jsii-calc.DisappointingCollectionSource": return software.amazon.jsii.tests.calculator.DisappointingCollectionSource.class; + case "jsii-calc.DoNotOverridePrivates": return software.amazon.jsii.tests.calculator.DoNotOverridePrivates.class; + case "jsii-calc.DoNotRecognizeAnyAsOptional": return software.amazon.jsii.tests.calculator.DoNotRecognizeAnyAsOptional.class; + case "jsii-calc.DocumentedClass": return software.amazon.jsii.tests.calculator.DocumentedClass.class; + case "jsii-calc.DontComplainAboutVariadicAfterOptional": return software.amazon.jsii.tests.calculator.DontComplainAboutVariadicAfterOptional.class; + case "jsii-calc.DoubleTrouble": return software.amazon.jsii.tests.calculator.DoubleTrouble.class; + case "jsii-calc.EnumDispenser": return software.amazon.jsii.tests.calculator.EnumDispenser.class; + case "jsii-calc.EraseUndefinedHashValues": return software.amazon.jsii.tests.calculator.EraseUndefinedHashValues.class; + case "jsii-calc.EraseUndefinedHashValuesOptions": return software.amazon.jsii.tests.calculator.EraseUndefinedHashValuesOptions.class; + case "jsii-calc.ExperimentalClass": return software.amazon.jsii.tests.calculator.ExperimentalClass.class; + case "jsii-calc.ExperimentalEnum": return software.amazon.jsii.tests.calculator.ExperimentalEnum.class; + case "jsii-calc.ExperimentalStruct": return software.amazon.jsii.tests.calculator.ExperimentalStruct.class; + case "jsii-calc.ExportedBaseClass": return software.amazon.jsii.tests.calculator.ExportedBaseClass.class; + case "jsii-calc.ExtendsInternalInterface": return software.amazon.jsii.tests.calculator.ExtendsInternalInterface.class; + case "jsii-calc.GiveMeStructs": return software.amazon.jsii.tests.calculator.GiveMeStructs.class; + case "jsii-calc.Greetee": return software.amazon.jsii.tests.calculator.Greetee.class; + case "jsii-calc.GreetingAugmenter": return software.amazon.jsii.tests.calculator.GreetingAugmenter.class; + case "jsii-calc.IAnonymousImplementationProvider": return software.amazon.jsii.tests.calculator.IAnonymousImplementationProvider.class; + case "jsii-calc.IAnonymouslyImplementMe": return software.amazon.jsii.tests.calculator.IAnonymouslyImplementMe.class; + case "jsii-calc.IAnotherPublicInterface": return software.amazon.jsii.tests.calculator.IAnotherPublicInterface.class; + case "jsii-calc.IBell": return software.amazon.jsii.tests.calculator.IBell.class; + case "jsii-calc.IBellRinger": return software.amazon.jsii.tests.calculator.IBellRinger.class; + case "jsii-calc.IConcreteBellRinger": return software.amazon.jsii.tests.calculator.IConcreteBellRinger.class; + case "jsii-calc.IDeprecatedInterface": return software.amazon.jsii.tests.calculator.IDeprecatedInterface.class; + case "jsii-calc.IExperimentalInterface": return software.amazon.jsii.tests.calculator.IExperimentalInterface.class; + case "jsii-calc.IExtendsPrivateInterface": return software.amazon.jsii.tests.calculator.IExtendsPrivateInterface.class; case "jsii-calc.IFriendlier": return software.amazon.jsii.tests.calculator.IFriendlier.class; case "jsii-calc.IFriendlyRandomGenerator": return software.amazon.jsii.tests.calculator.IFriendlyRandomGenerator.class; + case "jsii-calc.IInterfaceImplementedByAbstractClass": return software.amazon.jsii.tests.calculator.IInterfaceImplementedByAbstractClass.class; + case "jsii-calc.IInterfaceThatShouldNotBeADataType": return software.amazon.jsii.tests.calculator.IInterfaceThatShouldNotBeADataType.class; + case "jsii-calc.IInterfaceWithInternal": return software.amazon.jsii.tests.calculator.IInterfaceWithInternal.class; + case "jsii-calc.IInterfaceWithMethods": return software.amazon.jsii.tests.calculator.IInterfaceWithMethods.class; + case "jsii-calc.IInterfaceWithOptionalMethodArguments": return software.amazon.jsii.tests.calculator.IInterfaceWithOptionalMethodArguments.class; + case "jsii-calc.IInterfaceWithProperties": return software.amazon.jsii.tests.calculator.IInterfaceWithProperties.class; + case "jsii-calc.IInterfaceWithPropertiesExtension": return software.amazon.jsii.tests.calculator.IInterfaceWithPropertiesExtension.class; + case "jsii-calc.IJSII417Derived": return software.amazon.jsii.tests.calculator.IJSII417Derived.class; + case "jsii-calc.IJSII417PublicBaseOfBase": return software.amazon.jsii.tests.calculator.IJSII417PublicBaseOfBase.class; + case "jsii-calc.IJsii487External": return software.amazon.jsii.tests.calculator.IJsii487External.class; + case "jsii-calc.IJsii487External2": return software.amazon.jsii.tests.calculator.IJsii487External2.class; + case "jsii-calc.IJsii496": return software.amazon.jsii.tests.calculator.IJsii496.class; + case "jsii-calc.IMutableObjectLiteral": return software.amazon.jsii.tests.calculator.IMutableObjectLiteral.class; + case "jsii-calc.INonInternalInterface": return software.amazon.jsii.tests.calculator.INonInternalInterface.class; + case "jsii-calc.IObjectWithProperty": return software.amazon.jsii.tests.calculator.IObjectWithProperty.class; + case "jsii-calc.IOptionalMethod": return software.amazon.jsii.tests.calculator.IOptionalMethod.class; + case "jsii-calc.IPrivatelyImplemented": return software.amazon.jsii.tests.calculator.IPrivatelyImplemented.class; + case "jsii-calc.IPublicInterface": return software.amazon.jsii.tests.calculator.IPublicInterface.class; + case "jsii-calc.IPublicInterface2": return software.amazon.jsii.tests.calculator.IPublicInterface2.class; case "jsii-calc.IRandomNumberGenerator": return software.amazon.jsii.tests.calculator.IRandomNumberGenerator.class; + case "jsii-calc.IReturnJsii976": return software.amazon.jsii.tests.calculator.IReturnJsii976.class; + case "jsii-calc.IReturnsNumber": return software.amazon.jsii.tests.calculator.IReturnsNumber.class; + case "jsii-calc.IStableInterface": return software.amazon.jsii.tests.calculator.IStableInterface.class; + case "jsii-calc.IStructReturningDelegate": return software.amazon.jsii.tests.calculator.IStructReturningDelegate.class; + case "jsii-calc.ImplementInternalInterface": return software.amazon.jsii.tests.calculator.ImplementInternalInterface.class; + case "jsii-calc.Implementation": return software.amazon.jsii.tests.calculator.Implementation.class; + case "jsii-calc.ImplementsInterfaceWithInternal": return software.amazon.jsii.tests.calculator.ImplementsInterfaceWithInternal.class; + case "jsii-calc.ImplementsInterfaceWithInternalSubclass": return software.amazon.jsii.tests.calculator.ImplementsInterfaceWithInternalSubclass.class; + case "jsii-calc.ImplementsPrivateInterface": return software.amazon.jsii.tests.calculator.ImplementsPrivateInterface.class; + case "jsii-calc.ImplictBaseOfBase": return software.amazon.jsii.tests.calculator.ImplictBaseOfBase.class; + case "jsii-calc.InbetweenClass": return software.amazon.jsii.tests.calculator.InbetweenClass.class; + case "jsii-calc.InterfaceCollections": return software.amazon.jsii.tests.calculator.InterfaceCollections.class; + case "jsii-calc.InterfaceInNamespaceIncludesClasses.Foo": return software.amazon.jsii.tests.calculator.interface_in_namespace_includes_classes.Foo.class; + case "jsii-calc.InterfaceInNamespaceIncludesClasses.Hello": return software.amazon.jsii.tests.calculator.interface_in_namespace_includes_classes.Hello.class; + case "jsii-calc.InterfaceInNamespaceOnlyInterface.Hello": return software.amazon.jsii.tests.calculator.interface_in_namespace_only_interface.Hello.class; + case "jsii-calc.InterfacesMaker": return software.amazon.jsii.tests.calculator.InterfacesMaker.class; + case "jsii-calc.JSII417Derived": return software.amazon.jsii.tests.calculator.JSII417Derived.class; + case "jsii-calc.JSII417PublicBaseOfBase": return software.amazon.jsii.tests.calculator.JSII417PublicBaseOfBase.class; + case "jsii-calc.JSObjectLiteralForInterface": return software.amazon.jsii.tests.calculator.JSObjectLiteralForInterface.class; + case "jsii-calc.JSObjectLiteralToNative": return software.amazon.jsii.tests.calculator.JSObjectLiteralToNative.class; + case "jsii-calc.JSObjectLiteralToNativeClass": return software.amazon.jsii.tests.calculator.JSObjectLiteralToNativeClass.class; + case "jsii-calc.JavaReservedWords": return software.amazon.jsii.tests.calculator.JavaReservedWords.class; + case "jsii-calc.Jsii487Derived": return software.amazon.jsii.tests.calculator.Jsii487Derived.class; + case "jsii-calc.Jsii496Derived": return software.amazon.jsii.tests.calculator.Jsii496Derived.class; + case "jsii-calc.JsiiAgent": return software.amazon.jsii.tests.calculator.JsiiAgent.class; + case "jsii-calc.JsonFormatter": return software.amazon.jsii.tests.calculator.JsonFormatter.class; + case "jsii-calc.LoadBalancedFargateServiceProps": return software.amazon.jsii.tests.calculator.LoadBalancedFargateServiceProps.class; case "jsii-calc.MethodNamedProperty": return software.amazon.jsii.tests.calculator.MethodNamedProperty.class; case "jsii-calc.Multiply": return software.amazon.jsii.tests.calculator.Multiply.class; case "jsii-calc.Negate": return software.amazon.jsii.tests.calculator.Negate.class; + case "jsii-calc.NestedStruct": return software.amazon.jsii.tests.calculator.NestedStruct.class; + case "jsii-calc.NodeStandardLibrary": return software.amazon.jsii.tests.calculator.NodeStandardLibrary.class; + case "jsii-calc.NullShouldBeTreatedAsUndefined": return software.amazon.jsii.tests.calculator.NullShouldBeTreatedAsUndefined.class; + case "jsii-calc.NullShouldBeTreatedAsUndefinedData": return software.amazon.jsii.tests.calculator.NullShouldBeTreatedAsUndefinedData.class; + case "jsii-calc.NumberGenerator": return software.amazon.jsii.tests.calculator.NumberGenerator.class; + case "jsii-calc.ObjectRefsInCollections": return software.amazon.jsii.tests.calculator.ObjectRefsInCollections.class; + case "jsii-calc.ObjectWithPropertyProvider": return software.amazon.jsii.tests.calculator.ObjectWithPropertyProvider.class; + case "jsii-calc.Old": return software.amazon.jsii.tests.calculator.Old.class; + case "jsii-calc.OptionalArgumentInvoker": return software.amazon.jsii.tests.calculator.OptionalArgumentInvoker.class; + case "jsii-calc.OptionalConstructorArgument": return software.amazon.jsii.tests.calculator.OptionalConstructorArgument.class; + case "jsii-calc.OptionalStruct": return software.amazon.jsii.tests.calculator.OptionalStruct.class; + case "jsii-calc.OptionalStructConsumer": return software.amazon.jsii.tests.calculator.OptionalStructConsumer.class; + case "jsii-calc.OverridableProtectedMember": return software.amazon.jsii.tests.calculator.OverridableProtectedMember.class; + case "jsii-calc.OverrideReturnsObject": return software.amazon.jsii.tests.calculator.OverrideReturnsObject.class; + case "jsii-calc.ParentStruct982": return software.amazon.jsii.tests.calculator.ParentStruct982.class; + case "jsii-calc.PartiallyInitializedThisConsumer": return software.amazon.jsii.tests.calculator.PartiallyInitializedThisConsumer.class; + case "jsii-calc.Polymorphism": return software.amazon.jsii.tests.calculator.Polymorphism.class; case "jsii-calc.Power": return software.amazon.jsii.tests.calculator.Power.class; case "jsii-calc.PropertyNamedProperty": return software.amazon.jsii.tests.calculator.PropertyNamedProperty.class; + case "jsii-calc.PublicClass": return software.amazon.jsii.tests.calculator.PublicClass.class; + case "jsii-calc.PythonReservedWords": return software.amazon.jsii.tests.calculator.PythonReservedWords.class; + case "jsii-calc.ReferenceEnumFromScopedPackage": return software.amazon.jsii.tests.calculator.ReferenceEnumFromScopedPackage.class; + case "jsii-calc.ReturnsPrivateImplementationOfInterface": return software.amazon.jsii.tests.calculator.ReturnsPrivateImplementationOfInterface.class; + case "jsii-calc.RootStruct": return software.amazon.jsii.tests.calculator.RootStruct.class; + case "jsii-calc.RootStructValidator": return software.amazon.jsii.tests.calculator.RootStructValidator.class; + case "jsii-calc.RuntimeTypeChecking": return software.amazon.jsii.tests.calculator.RuntimeTypeChecking.class; + case "jsii-calc.SecondLevelStruct": return software.amazon.jsii.tests.calculator.SecondLevelStruct.class; + case "jsii-calc.SingleInstanceTwoTypes": return software.amazon.jsii.tests.calculator.SingleInstanceTwoTypes.class; + case "jsii-calc.SingletonInt": return software.amazon.jsii.tests.calculator.SingletonInt.class; + case "jsii-calc.SingletonIntEnum": return software.amazon.jsii.tests.calculator.SingletonIntEnum.class; + case "jsii-calc.SingletonString": return software.amazon.jsii.tests.calculator.SingletonString.class; + case "jsii-calc.SingletonStringEnum": return software.amazon.jsii.tests.calculator.SingletonStringEnum.class; case "jsii-calc.SmellyStruct": return software.amazon.jsii.tests.calculator.SmellyStruct.class; + case "jsii-calc.SomeTypeJsii976": return software.amazon.jsii.tests.calculator.SomeTypeJsii976.class; + case "jsii-calc.StableClass": return software.amazon.jsii.tests.calculator.StableClass.class; + case "jsii-calc.StableEnum": return software.amazon.jsii.tests.calculator.StableEnum.class; + case "jsii-calc.StableStruct": return software.amazon.jsii.tests.calculator.StableStruct.class; + case "jsii-calc.StaticContext": return software.amazon.jsii.tests.calculator.StaticContext.class; + case "jsii-calc.Statics": return software.amazon.jsii.tests.calculator.Statics.class; + case "jsii-calc.StringEnum": return software.amazon.jsii.tests.calculator.StringEnum.class; + case "jsii-calc.StripInternal": return software.amazon.jsii.tests.calculator.StripInternal.class; + case "jsii-calc.StructA": return software.amazon.jsii.tests.calculator.StructA.class; + case "jsii-calc.StructB": return software.amazon.jsii.tests.calculator.StructB.class; + case "jsii-calc.StructParameterType": return software.amazon.jsii.tests.calculator.StructParameterType.class; + case "jsii-calc.StructPassing": return software.amazon.jsii.tests.calculator.StructPassing.class; + case "jsii-calc.StructUnionConsumer": return software.amazon.jsii.tests.calculator.StructUnionConsumer.class; + case "jsii-calc.StructWithJavaReservedWords": return software.amazon.jsii.tests.calculator.StructWithJavaReservedWords.class; case "jsii-calc.Sum": return software.amazon.jsii.tests.calculator.Sum.class; + case "jsii-calc.SupportsNiceJavaBuilder": return software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilder.class; + case "jsii-calc.SupportsNiceJavaBuilderProps": return software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderProps.class; + case "jsii-calc.SupportsNiceJavaBuilderWithRequiredProps": return software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderWithRequiredProps.class; + case "jsii-calc.SyncVirtualMethods": return software.amazon.jsii.tests.calculator.SyncVirtualMethods.class; + case "jsii-calc.Thrower": return software.amazon.jsii.tests.calculator.Thrower.class; + case "jsii-calc.TopLevelStruct": return software.amazon.jsii.tests.calculator.TopLevelStruct.class; case "jsii-calc.UnaryOperation": return software.amazon.jsii.tests.calculator.UnaryOperation.class; - case "jsii-calc.compliance.AbstractClass": return software.amazon.jsii.tests.calculator.compliance.AbstractClass.class; - case "jsii-calc.compliance.AbstractClassBase": return software.amazon.jsii.tests.calculator.compliance.AbstractClassBase.class; - case "jsii-calc.compliance.AbstractClassReturner": return software.amazon.jsii.tests.calculator.compliance.AbstractClassReturner.class; - case "jsii-calc.compliance.AllTypes": return software.amazon.jsii.tests.calculator.compliance.AllTypes.class; - case "jsii-calc.compliance.AllTypesEnum": return software.amazon.jsii.tests.calculator.compliance.AllTypesEnum.class; - case "jsii-calc.compliance.AllowedMethodNames": return software.amazon.jsii.tests.calculator.compliance.AllowedMethodNames.class; - case "jsii-calc.compliance.AmbiguousParameters": return software.amazon.jsii.tests.calculator.compliance.AmbiguousParameters.class; - case "jsii-calc.compliance.AnonymousImplementationProvider": return software.amazon.jsii.tests.calculator.compliance.AnonymousImplementationProvider.class; - case "jsii-calc.compliance.AsyncVirtualMethods": return software.amazon.jsii.tests.calculator.compliance.AsyncVirtualMethods.class; - case "jsii-calc.compliance.AugmentableClass": return software.amazon.jsii.tests.calculator.compliance.AugmentableClass.class; - case "jsii-calc.compliance.BaseJsii976": return software.amazon.jsii.tests.calculator.compliance.BaseJsii976.class; - case "jsii-calc.compliance.Bell": return software.amazon.jsii.tests.calculator.compliance.Bell.class; - case "jsii-calc.compliance.ChildStruct982": return software.amazon.jsii.tests.calculator.compliance.ChildStruct982.class; - case "jsii-calc.compliance.ClassThatImplementsTheInternalInterface": return software.amazon.jsii.tests.calculator.compliance.ClassThatImplementsTheInternalInterface.class; - case "jsii-calc.compliance.ClassThatImplementsThePrivateInterface": return software.amazon.jsii.tests.calculator.compliance.ClassThatImplementsThePrivateInterface.class; - case "jsii-calc.compliance.ClassWithCollections": return software.amazon.jsii.tests.calculator.compliance.ClassWithCollections.class; - case "jsii-calc.compliance.ClassWithDocs": return software.amazon.jsii.tests.calculator.compliance.ClassWithDocs.class; - case "jsii-calc.compliance.ClassWithJavaReservedWords": return software.amazon.jsii.tests.calculator.compliance.ClassWithJavaReservedWords.class; - case "jsii-calc.compliance.ClassWithMutableObjectLiteralProperty": return software.amazon.jsii.tests.calculator.compliance.ClassWithMutableObjectLiteralProperty.class; - case "jsii-calc.compliance.ClassWithPrivateConstructorAndAutomaticProperties": return software.amazon.jsii.tests.calculator.compliance.ClassWithPrivateConstructorAndAutomaticProperties.class; - case "jsii-calc.compliance.ConfusingToJackson": return software.amazon.jsii.tests.calculator.compliance.ConfusingToJackson.class; - case "jsii-calc.compliance.ConfusingToJacksonStruct": return software.amazon.jsii.tests.calculator.compliance.ConfusingToJacksonStruct.class; - case "jsii-calc.compliance.ConstructorPassesThisOut": return software.amazon.jsii.tests.calculator.compliance.ConstructorPassesThisOut.class; - case "jsii-calc.compliance.Constructors": return software.amazon.jsii.tests.calculator.compliance.Constructors.class; - case "jsii-calc.compliance.ConsumePureInterface": return software.amazon.jsii.tests.calculator.compliance.ConsumePureInterface.class; - case "jsii-calc.compliance.ConsumerCanRingBell": return software.amazon.jsii.tests.calculator.compliance.ConsumerCanRingBell.class; - case "jsii-calc.compliance.ConsumersOfThisCrazyTypeSystem": return software.amazon.jsii.tests.calculator.compliance.ConsumersOfThisCrazyTypeSystem.class; - case "jsii-calc.compliance.DataRenderer": return software.amazon.jsii.tests.calculator.compliance.DataRenderer.class; - case "jsii-calc.compliance.DefaultedConstructorArgument": return software.amazon.jsii.tests.calculator.compliance.DefaultedConstructorArgument.class; - case "jsii-calc.compliance.Demonstrate982": return software.amazon.jsii.tests.calculator.compliance.Demonstrate982.class; - case "jsii-calc.compliance.DerivedClassHasNoProperties.Base": return software.amazon.jsii.tests.calculator.compliance.derived_class_has_no_properties.Base.class; - case "jsii-calc.compliance.DerivedClassHasNoProperties.Derived": return software.amazon.jsii.tests.calculator.compliance.derived_class_has_no_properties.Derived.class; - case "jsii-calc.compliance.DerivedStruct": return software.amazon.jsii.tests.calculator.compliance.DerivedStruct.class; - case "jsii-calc.compliance.DiamondInheritanceBaseLevelStruct": return software.amazon.jsii.tests.calculator.compliance.DiamondInheritanceBaseLevelStruct.class; - case "jsii-calc.compliance.DiamondInheritanceFirstMidLevelStruct": return software.amazon.jsii.tests.calculator.compliance.DiamondInheritanceFirstMidLevelStruct.class; - case "jsii-calc.compliance.DiamondInheritanceSecondMidLevelStruct": return software.amazon.jsii.tests.calculator.compliance.DiamondInheritanceSecondMidLevelStruct.class; - case "jsii-calc.compliance.DiamondInheritanceTopLevelStruct": return software.amazon.jsii.tests.calculator.compliance.DiamondInheritanceTopLevelStruct.class; - case "jsii-calc.compliance.DisappointingCollectionSource": return software.amazon.jsii.tests.calculator.compliance.DisappointingCollectionSource.class; - case "jsii-calc.compliance.DoNotOverridePrivates": return software.amazon.jsii.tests.calculator.compliance.DoNotOverridePrivates.class; - case "jsii-calc.compliance.DoNotRecognizeAnyAsOptional": return software.amazon.jsii.tests.calculator.compliance.DoNotRecognizeAnyAsOptional.class; - case "jsii-calc.compliance.DontComplainAboutVariadicAfterOptional": return software.amazon.jsii.tests.calculator.compliance.DontComplainAboutVariadicAfterOptional.class; - case "jsii-calc.compliance.DoubleTrouble": return software.amazon.jsii.tests.calculator.compliance.DoubleTrouble.class; - case "jsii-calc.compliance.EnumDispenser": return software.amazon.jsii.tests.calculator.compliance.EnumDispenser.class; - case "jsii-calc.compliance.EraseUndefinedHashValues": return software.amazon.jsii.tests.calculator.compliance.EraseUndefinedHashValues.class; - case "jsii-calc.compliance.EraseUndefinedHashValuesOptions": return software.amazon.jsii.tests.calculator.compliance.EraseUndefinedHashValuesOptions.class; - case "jsii-calc.compliance.ExportedBaseClass": return software.amazon.jsii.tests.calculator.compliance.ExportedBaseClass.class; - case "jsii-calc.compliance.ExtendsInternalInterface": return software.amazon.jsii.tests.calculator.compliance.ExtendsInternalInterface.class; - case "jsii-calc.compliance.GiveMeStructs": return software.amazon.jsii.tests.calculator.compliance.GiveMeStructs.class; - case "jsii-calc.compliance.GreetingAugmenter": return software.amazon.jsii.tests.calculator.compliance.GreetingAugmenter.class; - case "jsii-calc.compliance.IAnonymousImplementationProvider": return software.amazon.jsii.tests.calculator.compliance.IAnonymousImplementationProvider.class; - case "jsii-calc.compliance.IAnonymouslyImplementMe": return software.amazon.jsii.tests.calculator.compliance.IAnonymouslyImplementMe.class; - case "jsii-calc.compliance.IAnotherPublicInterface": return software.amazon.jsii.tests.calculator.compliance.IAnotherPublicInterface.class; - case "jsii-calc.compliance.IBell": return software.amazon.jsii.tests.calculator.compliance.IBell.class; - case "jsii-calc.compliance.IBellRinger": return software.amazon.jsii.tests.calculator.compliance.IBellRinger.class; - case "jsii-calc.compliance.IConcreteBellRinger": return software.amazon.jsii.tests.calculator.compliance.IConcreteBellRinger.class; - case "jsii-calc.compliance.IExtendsPrivateInterface": return software.amazon.jsii.tests.calculator.compliance.IExtendsPrivateInterface.class; - case "jsii-calc.compliance.IInterfaceImplementedByAbstractClass": return software.amazon.jsii.tests.calculator.compliance.IInterfaceImplementedByAbstractClass.class; - case "jsii-calc.compliance.IInterfaceThatShouldNotBeADataType": return software.amazon.jsii.tests.calculator.compliance.IInterfaceThatShouldNotBeADataType.class; - case "jsii-calc.compliance.IInterfaceWithInternal": return software.amazon.jsii.tests.calculator.compliance.IInterfaceWithInternal.class; - case "jsii-calc.compliance.IInterfaceWithMethods": return software.amazon.jsii.tests.calculator.compliance.IInterfaceWithMethods.class; - case "jsii-calc.compliance.IInterfaceWithOptionalMethodArguments": return software.amazon.jsii.tests.calculator.compliance.IInterfaceWithOptionalMethodArguments.class; - case "jsii-calc.compliance.IInterfaceWithProperties": return software.amazon.jsii.tests.calculator.compliance.IInterfaceWithProperties.class; - case "jsii-calc.compliance.IInterfaceWithPropertiesExtension": return software.amazon.jsii.tests.calculator.compliance.IInterfaceWithPropertiesExtension.class; - case "jsii-calc.compliance.IMutableObjectLiteral": return software.amazon.jsii.tests.calculator.compliance.IMutableObjectLiteral.class; - case "jsii-calc.compliance.INonInternalInterface": return software.amazon.jsii.tests.calculator.compliance.INonInternalInterface.class; - case "jsii-calc.compliance.IObjectWithProperty": return software.amazon.jsii.tests.calculator.compliance.IObjectWithProperty.class; - case "jsii-calc.compliance.IOptionalMethod": return software.amazon.jsii.tests.calculator.compliance.IOptionalMethod.class; - case "jsii-calc.compliance.IPrivatelyImplemented": return software.amazon.jsii.tests.calculator.compliance.IPrivatelyImplemented.class; - case "jsii-calc.compliance.IPublicInterface": return software.amazon.jsii.tests.calculator.compliance.IPublicInterface.class; - case "jsii-calc.compliance.IPublicInterface2": return software.amazon.jsii.tests.calculator.compliance.IPublicInterface2.class; - case "jsii-calc.compliance.IReturnJsii976": return software.amazon.jsii.tests.calculator.compliance.IReturnJsii976.class; - case "jsii-calc.compliance.IReturnsNumber": return software.amazon.jsii.tests.calculator.compliance.IReturnsNumber.class; - case "jsii-calc.compliance.IStructReturningDelegate": return software.amazon.jsii.tests.calculator.compliance.IStructReturningDelegate.class; - case "jsii-calc.compliance.ImplementInternalInterface": return software.amazon.jsii.tests.calculator.compliance.ImplementInternalInterface.class; - case "jsii-calc.compliance.Implementation": return software.amazon.jsii.tests.calculator.compliance.Implementation.class; - case "jsii-calc.compliance.ImplementsInterfaceWithInternal": return software.amazon.jsii.tests.calculator.compliance.ImplementsInterfaceWithInternal.class; - case "jsii-calc.compliance.ImplementsInterfaceWithInternalSubclass": return software.amazon.jsii.tests.calculator.compliance.ImplementsInterfaceWithInternalSubclass.class; - case "jsii-calc.compliance.ImplementsPrivateInterface": return software.amazon.jsii.tests.calculator.compliance.ImplementsPrivateInterface.class; - case "jsii-calc.compliance.ImplictBaseOfBase": return software.amazon.jsii.tests.calculator.compliance.ImplictBaseOfBase.class; - case "jsii-calc.compliance.InbetweenClass": return software.amazon.jsii.tests.calculator.compliance.InbetweenClass.class; - case "jsii-calc.compliance.InterfaceCollections": return software.amazon.jsii.tests.calculator.compliance.InterfaceCollections.class; - case "jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Foo": return software.amazon.jsii.tests.calculator.compliance.interface_in_namespace_includes_classes.Foo.class; - case "jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Hello": return software.amazon.jsii.tests.calculator.compliance.interface_in_namespace_includes_classes.Hello.class; - case "jsii-calc.compliance.InterfaceInNamespaceOnlyInterface.Hello": return software.amazon.jsii.tests.calculator.compliance.interface_in_namespace_only_interface.Hello.class; - case "jsii-calc.compliance.InterfacesMaker": return software.amazon.jsii.tests.calculator.compliance.InterfacesMaker.class; - case "jsii-calc.compliance.JSObjectLiteralForInterface": return software.amazon.jsii.tests.calculator.compliance.JSObjectLiteralForInterface.class; - case "jsii-calc.compliance.JSObjectLiteralToNative": return software.amazon.jsii.tests.calculator.compliance.JSObjectLiteralToNative.class; - case "jsii-calc.compliance.JSObjectLiteralToNativeClass": return software.amazon.jsii.tests.calculator.compliance.JSObjectLiteralToNativeClass.class; - case "jsii-calc.compliance.JavaReservedWords": return software.amazon.jsii.tests.calculator.compliance.JavaReservedWords.class; - case "jsii-calc.compliance.JsiiAgent": return software.amazon.jsii.tests.calculator.compliance.JsiiAgent.class; - case "jsii-calc.compliance.JsonFormatter": return software.amazon.jsii.tests.calculator.compliance.JsonFormatter.class; - case "jsii-calc.compliance.LoadBalancedFargateServiceProps": return software.amazon.jsii.tests.calculator.compliance.LoadBalancedFargateServiceProps.class; - case "jsii-calc.compliance.NestedStruct": return software.amazon.jsii.tests.calculator.compliance.NestedStruct.class; - case "jsii-calc.compliance.NodeStandardLibrary": return software.amazon.jsii.tests.calculator.compliance.NodeStandardLibrary.class; - case "jsii-calc.compliance.NullShouldBeTreatedAsUndefined": return software.amazon.jsii.tests.calculator.compliance.NullShouldBeTreatedAsUndefined.class; - case "jsii-calc.compliance.NullShouldBeTreatedAsUndefinedData": return software.amazon.jsii.tests.calculator.compliance.NullShouldBeTreatedAsUndefinedData.class; - case "jsii-calc.compliance.NumberGenerator": return software.amazon.jsii.tests.calculator.compliance.NumberGenerator.class; - case "jsii-calc.compliance.ObjectRefsInCollections": return software.amazon.jsii.tests.calculator.compliance.ObjectRefsInCollections.class; - case "jsii-calc.compliance.ObjectWithPropertyProvider": return software.amazon.jsii.tests.calculator.compliance.ObjectWithPropertyProvider.class; - case "jsii-calc.compliance.OptionalArgumentInvoker": return software.amazon.jsii.tests.calculator.compliance.OptionalArgumentInvoker.class; - case "jsii-calc.compliance.OptionalConstructorArgument": return software.amazon.jsii.tests.calculator.compliance.OptionalConstructorArgument.class; - case "jsii-calc.compliance.OptionalStruct": return software.amazon.jsii.tests.calculator.compliance.OptionalStruct.class; - case "jsii-calc.compliance.OptionalStructConsumer": return software.amazon.jsii.tests.calculator.compliance.OptionalStructConsumer.class; - case "jsii-calc.compliance.OverridableProtectedMember": return software.amazon.jsii.tests.calculator.compliance.OverridableProtectedMember.class; - case "jsii-calc.compliance.OverrideReturnsObject": return software.amazon.jsii.tests.calculator.compliance.OverrideReturnsObject.class; - case "jsii-calc.compliance.ParentStruct982": return software.amazon.jsii.tests.calculator.compliance.ParentStruct982.class; - case "jsii-calc.compliance.PartiallyInitializedThisConsumer": return software.amazon.jsii.tests.calculator.compliance.PartiallyInitializedThisConsumer.class; - case "jsii-calc.compliance.Polymorphism": return software.amazon.jsii.tests.calculator.compliance.Polymorphism.class; - case "jsii-calc.compliance.PublicClass": return software.amazon.jsii.tests.calculator.compliance.PublicClass.class; - case "jsii-calc.compliance.PythonReservedWords": return software.amazon.jsii.tests.calculator.compliance.PythonReservedWords.class; - case "jsii-calc.compliance.ReferenceEnumFromScopedPackage": return software.amazon.jsii.tests.calculator.compliance.ReferenceEnumFromScopedPackage.class; - case "jsii-calc.compliance.ReturnsPrivateImplementationOfInterface": return software.amazon.jsii.tests.calculator.compliance.ReturnsPrivateImplementationOfInterface.class; - case "jsii-calc.compliance.RootStruct": return software.amazon.jsii.tests.calculator.compliance.RootStruct.class; - case "jsii-calc.compliance.RootStructValidator": return software.amazon.jsii.tests.calculator.compliance.RootStructValidator.class; - case "jsii-calc.compliance.RuntimeTypeChecking": return software.amazon.jsii.tests.calculator.compliance.RuntimeTypeChecking.class; - case "jsii-calc.compliance.SecondLevelStruct": return software.amazon.jsii.tests.calculator.compliance.SecondLevelStruct.class; - case "jsii-calc.compliance.SingleInstanceTwoTypes": return software.amazon.jsii.tests.calculator.compliance.SingleInstanceTwoTypes.class; - case "jsii-calc.compliance.SingletonInt": return software.amazon.jsii.tests.calculator.compliance.SingletonInt.class; - case "jsii-calc.compliance.SingletonIntEnum": return software.amazon.jsii.tests.calculator.compliance.SingletonIntEnum.class; - case "jsii-calc.compliance.SingletonString": return software.amazon.jsii.tests.calculator.compliance.SingletonString.class; - case "jsii-calc.compliance.SingletonStringEnum": return software.amazon.jsii.tests.calculator.compliance.SingletonStringEnum.class; - case "jsii-calc.compliance.SomeTypeJsii976": return software.amazon.jsii.tests.calculator.compliance.SomeTypeJsii976.class; - case "jsii-calc.compliance.StaticContext": return software.amazon.jsii.tests.calculator.compliance.StaticContext.class; - case "jsii-calc.compliance.Statics": return software.amazon.jsii.tests.calculator.compliance.Statics.class; - case "jsii-calc.compliance.StringEnum": return software.amazon.jsii.tests.calculator.compliance.StringEnum.class; - case "jsii-calc.compliance.StripInternal": return software.amazon.jsii.tests.calculator.compliance.StripInternal.class; - case "jsii-calc.compliance.StructA": return software.amazon.jsii.tests.calculator.compliance.StructA.class; - case "jsii-calc.compliance.StructB": return software.amazon.jsii.tests.calculator.compliance.StructB.class; - case "jsii-calc.compliance.StructParameterType": return software.amazon.jsii.tests.calculator.compliance.StructParameterType.class; - case "jsii-calc.compliance.StructPassing": return software.amazon.jsii.tests.calculator.compliance.StructPassing.class; - case "jsii-calc.compliance.StructUnionConsumer": return software.amazon.jsii.tests.calculator.compliance.StructUnionConsumer.class; - case "jsii-calc.compliance.StructWithJavaReservedWords": return software.amazon.jsii.tests.calculator.compliance.StructWithJavaReservedWords.class; - case "jsii-calc.compliance.SupportsNiceJavaBuilder": return software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilder.class; - case "jsii-calc.compliance.SupportsNiceJavaBuilderProps": return software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilderProps.class; - case "jsii-calc.compliance.SupportsNiceJavaBuilderWithRequiredProps": return software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilderWithRequiredProps.class; - case "jsii-calc.compliance.SyncVirtualMethods": return software.amazon.jsii.tests.calculator.compliance.SyncVirtualMethods.class; - case "jsii-calc.compliance.Thrower": return software.amazon.jsii.tests.calculator.compliance.Thrower.class; - case "jsii-calc.compliance.TopLevelStruct": return software.amazon.jsii.tests.calculator.compliance.TopLevelStruct.class; - case "jsii-calc.compliance.UnionProperties": return software.amazon.jsii.tests.calculator.compliance.UnionProperties.class; - case "jsii-calc.compliance.UseBundledDependency": return software.amazon.jsii.tests.calculator.compliance.UseBundledDependency.class; - case "jsii-calc.compliance.UseCalcBase": return software.amazon.jsii.tests.calculator.compliance.UseCalcBase.class; - case "jsii-calc.compliance.UsesInterfaceWithProperties": return software.amazon.jsii.tests.calculator.compliance.UsesInterfaceWithProperties.class; - case "jsii-calc.compliance.VariadicInvoker": return software.amazon.jsii.tests.calculator.compliance.VariadicInvoker.class; - case "jsii-calc.compliance.VariadicMethod": return software.amazon.jsii.tests.calculator.compliance.VariadicMethod.class; - case "jsii-calc.compliance.VirtualMethodPlayground": return software.amazon.jsii.tests.calculator.compliance.VirtualMethodPlayground.class; - case "jsii-calc.compliance.VoidCallback": return software.amazon.jsii.tests.calculator.compliance.VoidCallback.class; - case "jsii-calc.compliance.WithPrivatePropertyInConstructor": return software.amazon.jsii.tests.calculator.compliance.WithPrivatePropertyInConstructor.class; + case "jsii-calc.UnionProperties": return software.amazon.jsii.tests.calculator.UnionProperties.class; + case "jsii-calc.UseBundledDependency": return software.amazon.jsii.tests.calculator.UseBundledDependency.class; + case "jsii-calc.UseCalcBase": return software.amazon.jsii.tests.calculator.UseCalcBase.class; + case "jsii-calc.UsesInterfaceWithProperties": return software.amazon.jsii.tests.calculator.UsesInterfaceWithProperties.class; + case "jsii-calc.VariadicInvoker": return software.amazon.jsii.tests.calculator.VariadicInvoker.class; + case "jsii-calc.VariadicMethod": return software.amazon.jsii.tests.calculator.VariadicMethod.class; + case "jsii-calc.VirtualMethodPlayground": return software.amazon.jsii.tests.calculator.VirtualMethodPlayground.class; + case "jsii-calc.VoidCallback": return software.amazon.jsii.tests.calculator.VoidCallback.class; + case "jsii-calc.WithPrivatePropertyInConstructor": return software.amazon.jsii.tests.calculator.WithPrivatePropertyInConstructor.class; case "jsii-calc.composition.CompositeOperation": return software.amazon.jsii.tests.calculator.composition.CompositeOperation.class; case "jsii-calc.composition.CompositeOperation.CompositionStringStyle": return software.amazon.jsii.tests.calculator.composition.CompositeOperation.CompositionStringStyle.class; - case "jsii-calc.documented.DocumentedClass": return software.amazon.jsii.tests.calculator.documented.DocumentedClass.class; - case "jsii-calc.documented.Greetee": return software.amazon.jsii.tests.calculator.documented.Greetee.class; - case "jsii-calc.documented.Old": return software.amazon.jsii.tests.calculator.documented.Old.class; - case "jsii-calc.erasureTests.IJSII417Derived": return software.amazon.jsii.tests.calculator.erasure_tests.IJSII417Derived.class; - case "jsii-calc.erasureTests.IJSII417PublicBaseOfBase": return software.amazon.jsii.tests.calculator.erasure_tests.IJSII417PublicBaseOfBase.class; - case "jsii-calc.erasureTests.IJsii487External": return software.amazon.jsii.tests.calculator.erasure_tests.IJsii487External.class; - case "jsii-calc.erasureTests.IJsii487External2": return software.amazon.jsii.tests.calculator.erasure_tests.IJsii487External2.class; - case "jsii-calc.erasureTests.IJsii496": return software.amazon.jsii.tests.calculator.erasure_tests.IJsii496.class; - case "jsii-calc.erasureTests.JSII417Derived": return software.amazon.jsii.tests.calculator.erasure_tests.JSII417Derived.class; - case "jsii-calc.erasureTests.JSII417PublicBaseOfBase": return software.amazon.jsii.tests.calculator.erasure_tests.JSII417PublicBaseOfBase.class; - case "jsii-calc.erasureTests.Jsii487Derived": return software.amazon.jsii.tests.calculator.erasure_tests.Jsii487Derived.class; - case "jsii-calc.erasureTests.Jsii496Derived": return software.amazon.jsii.tests.calculator.erasure_tests.Jsii496Derived.class; - case "jsii-calc.stability_annotations.DeprecatedClass": return software.amazon.jsii.tests.calculator.stability_annotations.DeprecatedClass.class; - case "jsii-calc.stability_annotations.DeprecatedEnum": return software.amazon.jsii.tests.calculator.stability_annotations.DeprecatedEnum.class; - case "jsii-calc.stability_annotations.DeprecatedStruct": return software.amazon.jsii.tests.calculator.stability_annotations.DeprecatedStruct.class; - case "jsii-calc.stability_annotations.ExperimentalClass": return software.amazon.jsii.tests.calculator.stability_annotations.ExperimentalClass.class; - case "jsii-calc.stability_annotations.ExperimentalEnum": return software.amazon.jsii.tests.calculator.stability_annotations.ExperimentalEnum.class; - case "jsii-calc.stability_annotations.ExperimentalStruct": return software.amazon.jsii.tests.calculator.stability_annotations.ExperimentalStruct.class; - case "jsii-calc.stability_annotations.IDeprecatedInterface": return software.amazon.jsii.tests.calculator.stability_annotations.IDeprecatedInterface.class; - case "jsii-calc.stability_annotations.IExperimentalInterface": return software.amazon.jsii.tests.calculator.stability_annotations.IExperimentalInterface.class; - case "jsii-calc.stability_annotations.IStableInterface": return software.amazon.jsii.tests.calculator.stability_annotations.IStableInterface.class; - case "jsii-calc.stability_annotations.StableClass": return software.amazon.jsii.tests.calculator.stability_annotations.StableClass.class; - case "jsii-calc.stability_annotations.StableEnum": return software.amazon.jsii.tests.calculator.stability_annotations.StableEnum.class; - case "jsii-calc.stability_annotations.StableStruct": return software.amazon.jsii.tests.calculator.stability_annotations.StableStruct.class; + case "jsii-calc.submodule.child.Structure": return software.amazon.jsii.tests.calculator.submodule.child.Structure.class; + case "jsii-calc.submodule.nested_submodule.Namespaced": return software.amazon.jsii.tests.calculator.submodule.nested_submodule.Namespaced.class; + case "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced": return software.amazon.jsii.tests.calculator.submodule.nested_submodule.deeply_nested.INamespaced.class; default: throw new ClassNotFoundException("Unknown JSII type: " + fqn); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AbstractClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AbstractClass.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AbstractClass.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AbstractClass.java index 688367f273..0e86f59872 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AbstractClass.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AbstractClass.java @@ -1,12 +1,12 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.AbstractClass") -public abstract class AbstractClass extends software.amazon.jsii.tests.calculator.compliance.AbstractClassBase implements software.amazon.jsii.tests.calculator.compliance.IInterfaceImplementedByAbstractClass { +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AbstractClass") +public abstract class AbstractClass extends software.amazon.jsii.tests.calculator.AbstractClassBase implements software.amazon.jsii.tests.calculator.IInterfaceImplementedByAbstractClass { protected AbstractClass(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); @@ -49,7 +49,7 @@ protected AbstractClass() { /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.compliance.AbstractClass { + final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.AbstractClass { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AbstractClassBase.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AbstractClassBase.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AbstractClassBase.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AbstractClassBase.java index 190f800eb6..7f34db48e9 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AbstractClassBase.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AbstractClassBase.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.AbstractClassBase") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AbstractClassBase") public abstract class AbstractClassBase extends software.amazon.jsii.JsiiObject { protected AbstractClassBase(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -30,7 +30,7 @@ protected AbstractClassBase() { /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.compliance.AbstractClassBase { + final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.AbstractClassBase { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AbstractClassReturner.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AbstractClassReturner.java similarity index 72% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AbstractClassReturner.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AbstractClassReturner.java index 037ced9f24..35e26e2596 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AbstractClassReturner.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AbstractClassReturner.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.AbstractClassReturner") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AbstractClassReturner") public class AbstractClassReturner extends software.amazon.jsii.JsiiObject { protected AbstractClassReturner(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -25,23 +25,23 @@ public AbstractClassReturner() { * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.AbstractClass giveMeAbstract() { - return this.jsiiCall("giveMeAbstract", software.amazon.jsii.tests.calculator.compliance.AbstractClass.class); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.AbstractClass giveMeAbstract() { + return this.jsiiCall("giveMeAbstract", software.amazon.jsii.tests.calculator.AbstractClass.class); } /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IInterfaceImplementedByAbstractClass giveMeInterface() { - return this.jsiiCall("giveMeInterface", software.amazon.jsii.tests.calculator.compliance.IInterfaceImplementedByAbstractClass.class); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IInterfaceImplementedByAbstractClass giveMeInterface() { + return this.jsiiCall("giveMeInterface", software.amazon.jsii.tests.calculator.IInterfaceImplementedByAbstractClass.class); } /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.AbstractClassBase getReturnAbstractFromProperty() { - return this.jsiiGet("returnAbstractFromProperty", software.amazon.jsii.tests.calculator.compliance.AbstractClassBase.class); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.AbstractClassBase getReturnAbstractFromProperty() { + return this.jsiiGet("returnAbstractFromProperty", software.amazon.jsii.tests.calculator.AbstractClassBase.class); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AllTypes.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AllTypes.java similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AllTypes.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AllTypes.java index c7d8ba2955..6a7ab2d088 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AllTypes.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AllTypes.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * This class includes property for all types supported by jsii. @@ -10,7 +10,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.AllTypes") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AllTypes") public class AllTypes extends software.amazon.jsii.JsiiObject { protected AllTypes(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -50,8 +50,8 @@ public void anyIn(final @org.jetbrains.annotations.NotNull java.lang.Object inp) * @param value This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.StringEnum enumMethod(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.StringEnum value) { - return this.jsiiCall("enumMethod", software.amazon.jsii.tests.calculator.compliance.StringEnum.class, new Object[] { java.util.Objects.requireNonNull(value, "value is required") }); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StringEnum enumMethod(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StringEnum value) { + return this.jsiiCall("enumMethod", software.amazon.jsii.tests.calculator.StringEnum.class, new Object[] { java.util.Objects.requireNonNull(value, "value is required") }); } /** @@ -162,15 +162,15 @@ public void setDateProperty(final @org.jetbrains.annotations.NotNull java.time.I * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.AllTypesEnum getEnumProperty() { - return this.jsiiGet("enumProperty", software.amazon.jsii.tests.calculator.compliance.AllTypesEnum.class); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.AllTypesEnum getEnumProperty() { + return this.jsiiGet("enumProperty", software.amazon.jsii.tests.calculator.AllTypesEnum.class); } /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setEnumProperty(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.AllTypesEnum value) { + public void setEnumProperty(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.AllTypesEnum value) { this.jsiiSet("enumProperty", java.util.Objects.requireNonNull(value, "enumProperty is required")); } @@ -362,15 +362,15 @@ public void setUnknownProperty(final @org.jetbrains.annotations.NotNull java.lan * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.compliance.StringEnum getOptionalEnumValue() { - return this.jsiiGet("optionalEnumValue", software.amazon.jsii.tests.calculator.compliance.StringEnum.class); + public @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.StringEnum getOptionalEnumValue() { + return this.jsiiGet("optionalEnumValue", software.amazon.jsii.tests.calculator.StringEnum.class); } /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setOptionalEnumValue(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.compliance.StringEnum value) { + public void setOptionalEnumValue(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.StringEnum value) { this.jsiiSet("optionalEnumValue", value); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AllTypesEnum.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AllTypesEnum.java similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AllTypesEnum.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AllTypesEnum.java index c2d9187620..5037016559 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AllTypesEnum.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AllTypesEnum.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.AllTypesEnum") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AllTypesEnum") public enum AllTypesEnum { /** * EXPERIMENTAL diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AllowedMethodNames.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AllowedMethodNames.java similarity index 96% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AllowedMethodNames.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AllowedMethodNames.java index cb85e1b1aa..ae4d22996b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AllowedMethodNames.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AllowedMethodNames.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.AllowedMethodNames") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AllowedMethodNames") public class AllowedMethodNames extends software.amazon.jsii.JsiiObject { protected AllowedMethodNames(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AmbiguousParameters.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AmbiguousParameters.java similarity index 75% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AmbiguousParameters.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AmbiguousParameters.java index 7c972ec598..5abb3cf504 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AmbiguousParameters.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AmbiguousParameters.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.AmbiguousParameters") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AmbiguousParameters") public class AmbiguousParameters extends software.amazon.jsii.JsiiObject { protected AmbiguousParameters(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -23,7 +23,7 @@ protected AmbiguousParameters(final software.amazon.jsii.JsiiObject.Initializati * @param props This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public AmbiguousParameters(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.Bell scope, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.StructParameterType props) { + public AmbiguousParameters(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Bell scope, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StructParameterType props) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(props, "props is required") }); } @@ -32,20 +32,20 @@ public AmbiguousParameters(final @org.jetbrains.annotations.NotNull software.ama * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.StructParameterType getProps() { - return this.jsiiGet("props", software.amazon.jsii.tests.calculator.compliance.StructParameterType.class); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StructParameterType getProps() { + return this.jsiiGet("props", software.amazon.jsii.tests.calculator.StructParameterType.class); } /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.Bell getScope() { - return this.jsiiGet("scope", software.amazon.jsii.tests.calculator.compliance.Bell.class); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Bell getScope() { + return this.jsiiGet("scope", software.amazon.jsii.tests.calculator.Bell.class); } /** - * A fluent builder for {@link software.amazon.jsii.tests.calculator.compliance.AmbiguousParameters}. + * A fluent builder for {@link software.amazon.jsii.tests.calculator.AmbiguousParameters}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static final class Builder { @@ -56,16 +56,16 @@ public static final class Builder { * @param scope This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static Builder create(final software.amazon.jsii.tests.calculator.compliance.Bell scope) { + public static Builder create(final software.amazon.jsii.tests.calculator.Bell scope) { return new Builder(scope); } - private final software.amazon.jsii.tests.calculator.compliance.Bell scope; - private final software.amazon.jsii.tests.calculator.compliance.StructParameterType.Builder props; + private final software.amazon.jsii.tests.calculator.Bell scope; + private final software.amazon.jsii.tests.calculator.StructParameterType.Builder props; - private Builder(final software.amazon.jsii.tests.calculator.compliance.Bell scope) { + private Builder(final software.amazon.jsii.tests.calculator.Bell scope) { this.scope = scope; - this.props = new software.amazon.jsii.tests.calculator.compliance.StructParameterType.Builder(); + this.props = new software.amazon.jsii.tests.calculator.StructParameterType.Builder(); } /** @@ -93,11 +93,11 @@ public Builder props(final java.lang.Boolean props) { } /** - * @returns a newly built instance of {@link software.amazon.jsii.tests.calculator.compliance.AmbiguousParameters}. + * @returns a newly built instance of {@link software.amazon.jsii.tests.calculator.AmbiguousParameters}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public software.amazon.jsii.tests.calculator.compliance.AmbiguousParameters build() { - return new software.amazon.jsii.tests.calculator.compliance.AmbiguousParameters( + public software.amazon.jsii.tests.calculator.AmbiguousParameters build() { + return new software.amazon.jsii.tests.calculator.AmbiguousParameters( this.scope, this.props.build() ); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AnonymousImplementationProvider.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AnonymousImplementationProvider.java similarity index 75% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AnonymousImplementationProvider.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AnonymousImplementationProvider.java index 312798cc58..b319f7377c 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AnonymousImplementationProvider.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AnonymousImplementationProvider.java @@ -1,12 +1,12 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.AnonymousImplementationProvider") -public class AnonymousImplementationProvider extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IAnonymousImplementationProvider { +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AnonymousImplementationProvider") +public class AnonymousImplementationProvider extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IAnonymousImplementationProvider { protected AnonymousImplementationProvider(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); @@ -26,8 +26,8 @@ public AnonymousImplementationProvider() { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.Implementation provideAsClass() { - return this.jsiiCall("provideAsClass", software.amazon.jsii.tests.calculator.compliance.Implementation.class); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Implementation provideAsClass() { + return this.jsiiCall("provideAsClass", software.amazon.jsii.tests.calculator.Implementation.class); } /** @@ -35,7 +35,7 @@ public AnonymousImplementationProvider() { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IAnonymouslyImplementMe provideAsInterface() { - return this.jsiiCall("provideAsInterface", software.amazon.jsii.tests.calculator.compliance.IAnonymouslyImplementMe.class); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IAnonymouslyImplementMe provideAsInterface() { + return this.jsiiCall("provideAsInterface", software.amazon.jsii.tests.calculator.IAnonymouslyImplementMe.class); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AsyncVirtualMethods.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AsyncVirtualMethods.java similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AsyncVirtualMethods.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AsyncVirtualMethods.java index 1bcce38edc..2b07f84373 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AsyncVirtualMethods.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AsyncVirtualMethods.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.AsyncVirtualMethods") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AsyncVirtualMethods") public class AsyncVirtualMethods extends software.amazon.jsii.JsiiObject { protected AsyncVirtualMethods(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AugmentableClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AugmentableClass.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AugmentableClass.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AugmentableClass.java index e92277d04d..065961928e 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/AugmentableClass.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/AugmentableClass.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.AugmentableClass") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.AugmentableClass") public class AugmentableClass extends software.amazon.jsii.JsiiObject { protected AugmentableClass(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/BaseJsii976.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/BaseJsii976.java similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/BaseJsii976.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/BaseJsii976.java index 1ee96666ef..7f5c012371 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/BaseJsii976.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/BaseJsii976.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.BaseJsii976") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.BaseJsii976") public class BaseJsii976 extends software.amazon.jsii.JsiiObject { protected BaseJsii976(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Bell.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Bell.java similarity index 89% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Bell.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Bell.java index 22e079dc8c..9d95cd9112 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Bell.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Bell.java @@ -1,12 +1,12 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.Bell") -public class Bell extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IBell { +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Bell") +public class Bell extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IBell { protected Bell(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ChildStruct982.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ChildStruct982.java similarity index 94% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ChildStruct982.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ChildStruct982.java index 771bb4485f..88e41ae378 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ChildStruct982.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ChildStruct982.java @@ -1,13 +1,13 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ChildStruct982") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ChildStruct982") @software.amazon.jsii.Jsii.Proxy(ChildStruct982.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface ChildStruct982 extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.compliance.ParentStruct982 { +public interface ChildStruct982 extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.ParentStruct982 { /** * EXPERIMENTAL @@ -109,7 +109,7 @@ public java.lang.String getFoo() { data.set("foo", om.valueToTree(this.getFoo())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.compliance.ChildStruct982")); + struct.set("fqn", om.valueToTree("jsii-calc.ChildStruct982")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassThatImplementsTheInternalInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassThatImplementsTheInternalInterface.java similarity index 94% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassThatImplementsTheInternalInterface.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassThatImplementsTheInternalInterface.java index 3c0961db91..852647d59e 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassThatImplementsTheInternalInterface.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassThatImplementsTheInternalInterface.java @@ -1,12 +1,12 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ClassThatImplementsTheInternalInterface") -public class ClassThatImplementsTheInternalInterface extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.INonInternalInterface { +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ClassThatImplementsTheInternalInterface") +public class ClassThatImplementsTheInternalInterface extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.INonInternalInterface { protected ClassThatImplementsTheInternalInterface(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassThatImplementsThePrivateInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassThatImplementsThePrivateInterface.java similarity index 94% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassThatImplementsThePrivateInterface.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassThatImplementsThePrivateInterface.java index 04ce1a11ca..bf11210c1a 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassThatImplementsThePrivateInterface.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassThatImplementsThePrivateInterface.java @@ -1,12 +1,12 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ClassThatImplementsThePrivateInterface") -public class ClassThatImplementsThePrivateInterface extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.INonInternalInterface { +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ClassThatImplementsThePrivateInterface") +public class ClassThatImplementsThePrivateInterface extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.INonInternalInterface { protected ClassThatImplementsThePrivateInterface(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassWithCollections.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithCollections.java similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassWithCollections.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithCollections.java index 7b5a356a8b..fde75d67a0 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassWithCollections.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithCollections.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ClassWithCollections") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ClassWithCollections") public class ClassWithCollections extends software.amazon.jsii.JsiiObject { protected ClassWithCollections(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -33,7 +33,7 @@ public ClassWithCollections(final @org.jetbrains.annotations.NotNull java.util.M */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.util.List createAList() { - return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.ClassWithCollections.class, "createAList", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); + return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ClassWithCollections.class, "createAList", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); } /** @@ -41,7 +41,7 @@ public ClassWithCollections(final @org.jetbrains.annotations.NotNull java.util.M */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.util.Map createAMap() { - return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.ClassWithCollections.class, "createAMap", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); + return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ClassWithCollections.class, "createAMap", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); } /** @@ -49,7 +49,7 @@ public ClassWithCollections(final @org.jetbrains.annotations.NotNull java.util.M */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.util.List getStaticArray() { - return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.compliance.ClassWithCollections.class, "staticArray", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); + return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.ClassWithCollections.class, "staticArray", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); } /** @@ -57,7 +57,7 @@ public ClassWithCollections(final @org.jetbrains.annotations.NotNull java.util.M */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static void setStaticArray(final @org.jetbrains.annotations.NotNull java.util.List value) { - software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.compliance.ClassWithCollections.class, "staticArray", java.util.Objects.requireNonNull(value, "staticArray is required")); + software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.ClassWithCollections.class, "staticArray", java.util.Objects.requireNonNull(value, "staticArray is required")); } /** @@ -65,7 +65,7 @@ public static void setStaticArray(final @org.jetbrains.annotations.NotNull java. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.util.Map getStaticMap() { - return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.compliance.ClassWithCollections.class, "staticMap", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); + return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.ClassWithCollections.class, "staticMap", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); } /** @@ -73,7 +73,7 @@ public static void setStaticArray(final @org.jetbrains.annotations.NotNull java. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static void setStaticMap(final @org.jetbrains.annotations.NotNull java.util.Map value) { - software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.compliance.ClassWithCollections.class, "staticMap", java.util.Objects.requireNonNull(value, "staticMap is required")); + software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.ClassWithCollections.class, "staticMap", java.util.Objects.requireNonNull(value, "staticMap is required")); } /** diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassWithDocs.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithDocs.java similarity index 88% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassWithDocs.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithDocs.java index 8ccf02ac78..8490328692 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassWithDocs.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithDocs.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * This class has docs. @@ -16,7 +16,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ClassWithDocs") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ClassWithDocs") public class ClassWithDocs extends software.amazon.jsii.JsiiObject { protected ClassWithDocs(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassWithJavaReservedWords.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithJavaReservedWords.java similarity index 93% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassWithJavaReservedWords.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithJavaReservedWords.java index 913319ee50..8909302c32 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassWithJavaReservedWords.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithJavaReservedWords.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ClassWithJavaReservedWords") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ClassWithJavaReservedWords") public class ClassWithJavaReservedWords extends software.amazon.jsii.JsiiObject { protected ClassWithJavaReservedWords(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassWithMutableObjectLiteralProperty.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithMutableObjectLiteralProperty.java similarity index 78% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassWithMutableObjectLiteralProperty.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithMutableObjectLiteralProperty.java index 2b7495576c..b8b547dacb 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassWithMutableObjectLiteralProperty.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithMutableObjectLiteralProperty.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ClassWithMutableObjectLiteralProperty") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ClassWithMutableObjectLiteralProperty") public class ClassWithMutableObjectLiteralProperty extends software.amazon.jsii.JsiiObject { protected ClassWithMutableObjectLiteralProperty(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -25,15 +25,15 @@ public ClassWithMutableObjectLiteralProperty() { * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IMutableObjectLiteral getMutableObject() { - return this.jsiiGet("mutableObject", software.amazon.jsii.tests.calculator.compliance.IMutableObjectLiteral.class); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IMutableObjectLiteral getMutableObject() { + return this.jsiiGet("mutableObject", software.amazon.jsii.tests.calculator.IMutableObjectLiteral.class); } /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void setMutableObject(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IMutableObjectLiteral value) { + public void setMutableObject(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IMutableObjectLiteral value) { this.jsiiSet("mutableObject", java.util.Objects.requireNonNull(value, "mutableObject is required")); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassWithPrivateConstructorAndAutomaticProperties.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithPrivateConstructorAndAutomaticProperties.java similarity index 70% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassWithPrivateConstructorAndAutomaticProperties.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithPrivateConstructorAndAutomaticProperties.java index 7257b1f9ee..aa9b4d92d6 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ClassWithPrivateConstructorAndAutomaticProperties.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ClassWithPrivateConstructorAndAutomaticProperties.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * Class that implements interface properties automatically, but using a private constructor. @@ -7,8 +7,8 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ClassWithPrivateConstructorAndAutomaticProperties") -public class ClassWithPrivateConstructorAndAutomaticProperties extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IInterfaceWithProperties { +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties") +public class ClassWithPrivateConstructorAndAutomaticProperties extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceWithProperties { protected ClassWithPrivateConstructorAndAutomaticProperties(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); @@ -25,8 +25,8 @@ protected ClassWithPrivateConstructorAndAutomaticProperties(final software.amazo * @param readWriteString This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.ClassWithPrivateConstructorAndAutomaticProperties create(final @org.jetbrains.annotations.NotNull java.lang.String readOnlyString, final @org.jetbrains.annotations.NotNull java.lang.String readWriteString) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.ClassWithPrivateConstructorAndAutomaticProperties.class, "create", software.amazon.jsii.tests.calculator.compliance.ClassWithPrivateConstructorAndAutomaticProperties.class, new Object[] { java.util.Objects.requireNonNull(readOnlyString, "readOnlyString is required"), java.util.Objects.requireNonNull(readWriteString, "readWriteString is required") }); + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.ClassWithPrivateConstructorAndAutomaticProperties create(final @org.jetbrains.annotations.NotNull java.lang.String readOnlyString, final @org.jetbrains.annotations.NotNull java.lang.String readWriteString) { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ClassWithPrivateConstructorAndAutomaticProperties.class, "create", software.amazon.jsii.tests.calculator.ClassWithPrivateConstructorAndAutomaticProperties.class, new Object[] { java.util.Objects.requireNonNull(readOnlyString, "readOnlyString is required"), java.util.Objects.requireNonNull(readWriteString, "readWriteString is required") }); } /** diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ConfusingToJackson.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConfusingToJackson.java similarity index 76% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ConfusingToJackson.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConfusingToJackson.java index 557380e547..50693499d4 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ConfusingToJackson.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConfusingToJackson.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * This tries to confuse Jackson by having overloaded property setters. @@ -9,7 +9,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ConfusingToJackson") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ConfusingToJackson") public class ConfusingToJackson extends software.amazon.jsii.JsiiObject { protected ConfusingToJackson(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -24,16 +24,16 @@ protected ConfusingToJackson(final software.amazon.jsii.JsiiObject.Initializatio * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.ConfusingToJackson makeInstance() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.ConfusingToJackson.class, "makeInstance", software.amazon.jsii.tests.calculator.compliance.ConfusingToJackson.class); + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.ConfusingToJackson makeInstance() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ConfusingToJackson.class, "makeInstance", software.amazon.jsii.tests.calculator.ConfusingToJackson.class); } /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.ConfusingToJacksonStruct makeStructInstance() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.ConfusingToJackson.class, "makeStructInstance", software.amazon.jsii.tests.calculator.compliance.ConfusingToJacksonStruct.class); + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.ConfusingToJacksonStruct makeStructInstance() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ConfusingToJackson.class, "makeStructInstance", software.amazon.jsii.tests.calculator.ConfusingToJacksonStruct.class); } /** diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ConfusingToJacksonStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConfusingToJacksonStruct.java similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ConfusingToJacksonStruct.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConfusingToJacksonStruct.java index 6cd11536b6..7fea0c033f 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ConfusingToJacksonStruct.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConfusingToJacksonStruct.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ConfusingToJacksonStruct") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ConfusingToJacksonStruct") @software.amazon.jsii.Jsii.Proxy(ConfusingToJacksonStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface ConfusingToJacksonStruct extends software.amazon.jsii.JsiiSerializable { @@ -103,7 +103,7 @@ public java.lang.Object getUnionProperty() { } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.compliance.ConfusingToJacksonStruct")); + struct.set("fqn", om.valueToTree("jsii-calc.ConfusingToJacksonStruct")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ConstructorPassesThisOut.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConstructorPassesThisOut.java similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ConstructorPassesThisOut.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConstructorPassesThisOut.java index 7fae756b2b..df0af47c17 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ConstructorPassesThisOut.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConstructorPassesThisOut.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ConstructorPassesThisOut") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ConstructorPassesThisOut") public class ConstructorPassesThisOut extends software.amazon.jsii.JsiiObject { protected ConstructorPassesThisOut(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -22,7 +22,7 @@ protected ConstructorPassesThisOut(final software.amazon.jsii.JsiiObject.Initial * @param consumer This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public ConstructorPassesThisOut(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.PartiallyInitializedThisConsumer consumer) { + public ConstructorPassesThisOut(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.PartiallyInitializedThisConsumer consumer) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(consumer, "consumer is required") }); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Constructors.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Constructors.java similarity index 58% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Constructors.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Constructors.java index 442f3e201e..584a444da5 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Constructors.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Constructors.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.Constructors") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Constructors") public class Constructors extends software.amazon.jsii.JsiiObject { protected Constructors(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -25,55 +25,55 @@ public Constructors() { * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IPublicInterface hiddenInterface() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.Constructors.class, "hiddenInterface", software.amazon.jsii.tests.calculator.compliance.IPublicInterface.class); + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IPublicInterface hiddenInterface() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, "hiddenInterface", software.amazon.jsii.tests.calculator.IPublicInterface.class); } /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.util.List hiddenInterfaces() { - return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.Constructors.class, "hiddenInterfaces", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.compliance.IPublicInterface.class)))); + public static @org.jetbrains.annotations.NotNull java.util.List hiddenInterfaces() { + return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, "hiddenInterfaces", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.IPublicInterface.class)))); } /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.util.List hiddenSubInterfaces() { - return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.Constructors.class, "hiddenSubInterfaces", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.compliance.IPublicInterface.class)))); + public static @org.jetbrains.annotations.NotNull java.util.List hiddenSubInterfaces() { + return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, "hiddenSubInterfaces", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.IPublicInterface.class)))); } /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.PublicClass makeClass() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.Constructors.class, "makeClass", software.amazon.jsii.tests.calculator.compliance.PublicClass.class); + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.PublicClass makeClass() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, "makeClass", software.amazon.jsii.tests.calculator.PublicClass.class); } /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IPublicInterface makeInterface() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.Constructors.class, "makeInterface", software.amazon.jsii.tests.calculator.compliance.IPublicInterface.class); + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IPublicInterface makeInterface() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, "makeInterface", software.amazon.jsii.tests.calculator.IPublicInterface.class); } /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IPublicInterface2 makeInterface2() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.Constructors.class, "makeInterface2", software.amazon.jsii.tests.calculator.compliance.IPublicInterface2.class); + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IPublicInterface2 makeInterface2() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, "makeInterface2", software.amazon.jsii.tests.calculator.IPublicInterface2.class); } /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.util.List makeInterfaces() { - return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.Constructors.class, "makeInterfaces", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.compliance.IPublicInterface.class)))); + public static @org.jetbrains.annotations.NotNull java.util.List makeInterfaces() { + return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Constructors.class, "makeInterfaces", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.IPublicInterface.class)))); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ConsumePureInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConsumePureInterface.java similarity index 80% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ConsumePureInterface.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConsumePureInterface.java index d967986f83..10ee1b8178 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ConsumePureInterface.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConsumePureInterface.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ConsumePureInterface") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ConsumePureInterface") public class ConsumePureInterface extends software.amazon.jsii.JsiiObject { protected ConsumePureInterface(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -22,7 +22,7 @@ protected ConsumePureInterface(final software.amazon.jsii.JsiiObject.Initializat * @param delegate This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public ConsumePureInterface(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IStructReturningDelegate delegate) { + public ConsumePureInterface(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IStructReturningDelegate delegate) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(delegate, "delegate is required") }); } @@ -31,7 +31,7 @@ public ConsumePureInterface(final @org.jetbrains.annotations.NotNull software.am * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.StructB workItBaby() { - return this.jsiiCall("workItBaby", software.amazon.jsii.tests.calculator.compliance.StructB.class); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StructB workItBaby() { + return this.jsiiCall("workItBaby", software.amazon.jsii.tests.calculator.StructB.class); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ConsumerCanRingBell.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConsumerCanRingBell.java similarity index 77% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ConsumerCanRingBell.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConsumerCanRingBell.java index d784b66701..cd44105f27 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ConsumerCanRingBell.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConsumerCanRingBell.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * Test calling back to consumers that implement interfaces. @@ -10,7 +10,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ConsumerCanRingBell") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ConsumerCanRingBell") public class ConsumerCanRingBell extends software.amazon.jsii.JsiiObject { protected ConsumerCanRingBell(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -36,8 +36,8 @@ public ConsumerCanRingBell() { * @param ringer This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.lang.Boolean staticImplementedByObjectLiteral(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IBellRinger ringer) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.ConsumerCanRingBell.class, "staticImplementedByObjectLiteral", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); + public static @org.jetbrains.annotations.NotNull java.lang.Boolean staticImplementedByObjectLiteral(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBellRinger ringer) { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ConsumerCanRingBell.class, "staticImplementedByObjectLiteral", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); } /** @@ -50,8 +50,8 @@ public ConsumerCanRingBell() { * @param ringer This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.lang.Boolean staticImplementedByPrivateClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IBellRinger ringer) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.ConsumerCanRingBell.class, "staticImplementedByPrivateClass", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); + public static @org.jetbrains.annotations.NotNull java.lang.Boolean staticImplementedByPrivateClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBellRinger ringer) { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ConsumerCanRingBell.class, "staticImplementedByPrivateClass", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); } /** @@ -64,8 +64,8 @@ public ConsumerCanRingBell() { * @param ringer This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.lang.Boolean staticImplementedByPublicClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IBellRinger ringer) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.ConsumerCanRingBell.class, "staticImplementedByPublicClass", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); + public static @org.jetbrains.annotations.NotNull java.lang.Boolean staticImplementedByPublicClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBellRinger ringer) { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ConsumerCanRingBell.class, "staticImplementedByPublicClass", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); } /** @@ -78,8 +78,8 @@ public ConsumerCanRingBell() { * @param ringer This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.lang.Boolean staticWhenTypedAsClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IConcreteBellRinger ringer) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.ConsumerCanRingBell.class, "staticWhenTypedAsClass", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); + public static @org.jetbrains.annotations.NotNull java.lang.Boolean staticWhenTypedAsClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IConcreteBellRinger ringer) { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ConsumerCanRingBell.class, "staticWhenTypedAsClass", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); } /** @@ -92,7 +92,7 @@ public ConsumerCanRingBell() { * @param ringer This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Boolean implementedByObjectLiteral(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IBellRinger ringer) { + public @org.jetbrains.annotations.NotNull java.lang.Boolean implementedByObjectLiteral(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBellRinger ringer) { return this.jsiiCall("implementedByObjectLiteral", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); } @@ -106,7 +106,7 @@ public ConsumerCanRingBell() { * @param ringer This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Boolean implementedByPrivateClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IBellRinger ringer) { + public @org.jetbrains.annotations.NotNull java.lang.Boolean implementedByPrivateClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBellRinger ringer) { return this.jsiiCall("implementedByPrivateClass", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); } @@ -120,7 +120,7 @@ public ConsumerCanRingBell() { * @param ringer This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Boolean implementedByPublicClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IBellRinger ringer) { + public @org.jetbrains.annotations.NotNull java.lang.Boolean implementedByPublicClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBellRinger ringer) { return this.jsiiCall("implementedByPublicClass", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); } @@ -134,7 +134,7 @@ public ConsumerCanRingBell() { * @param ringer This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Boolean whenTypedAsClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IConcreteBellRinger ringer) { + public @org.jetbrains.annotations.NotNull java.lang.Boolean whenTypedAsClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IConcreteBellRinger ringer) { return this.jsiiCall("whenTypedAsClass", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(ringer, "ringer is required") }); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ConsumersOfThisCrazyTypeSystem.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConsumersOfThisCrazyTypeSystem.java similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ConsumersOfThisCrazyTypeSystem.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConsumersOfThisCrazyTypeSystem.java index f141e85b1f..b3e29f27df 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ConsumersOfThisCrazyTypeSystem.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ConsumersOfThisCrazyTypeSystem.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ConsumersOfThisCrazyTypeSystem") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ConsumersOfThisCrazyTypeSystem") public class ConsumersOfThisCrazyTypeSystem extends software.amazon.jsii.JsiiObject { protected ConsumersOfThisCrazyTypeSystem(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -27,7 +27,7 @@ public ConsumersOfThisCrazyTypeSystem() { * @param obj This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String consumeAnotherPublicInterface(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IAnotherPublicInterface obj) { + public @org.jetbrains.annotations.NotNull java.lang.String consumeAnotherPublicInterface(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IAnotherPublicInterface obj) { return this.jsiiCall("consumeAnotherPublicInterface", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(obj, "obj is required") }); } @@ -37,7 +37,7 @@ public ConsumersOfThisCrazyTypeSystem() { * @param obj This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Object consumeNonInternalInterface(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.INonInternalInterface obj) { + public @org.jetbrains.annotations.NotNull java.lang.Object consumeNonInternalInterface(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.INonInternalInterface obj) { return this.jsiiCall("consumeNonInternalInterface", java.lang.Object.class, new Object[] { java.util.Objects.requireNonNull(obj, "obj is required") }); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DataRenderer.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DataRenderer.java similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DataRenderer.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DataRenderer.java index af046024e4..abcb865f83 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DataRenderer.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DataRenderer.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * Verifies proper type handling through dynamic overrides. @@ -7,7 +7,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.DataRenderer") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DataRenderer") public class DataRenderer extends software.amazon.jsii.JsiiObject { protected DataRenderer(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DefaultedConstructorArgument.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DefaultedConstructorArgument.java similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DefaultedConstructorArgument.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DefaultedConstructorArgument.java index 21e2f31be3..804a6ff2e9 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DefaultedConstructorArgument.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DefaultedConstructorArgument.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.DefaultedConstructorArgument") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DefaultedConstructorArgument") public class DefaultedConstructorArgument extends software.amazon.jsii.JsiiObject { protected DefaultedConstructorArgument(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Demonstrate982.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Demonstrate982.java similarity index 74% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Demonstrate982.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Demonstrate982.java index e99b540d32..44d9540c2d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Demonstrate982.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Demonstrate982.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * 1. @@ -10,7 +10,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.Demonstrate982") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Demonstrate982") public class Demonstrate982 extends software.amazon.jsii.JsiiObject { protected Demonstrate982(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -36,8 +36,8 @@ public Demonstrate982() { * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.ChildStruct982 takeThis() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.Demonstrate982.class, "takeThis", software.amazon.jsii.tests.calculator.compliance.ChildStruct982.class); + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.ChildStruct982 takeThis() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Demonstrate982.class, "takeThis", software.amazon.jsii.tests.calculator.ChildStruct982.class); } /** @@ -46,7 +46,7 @@ public Demonstrate982() { * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.ParentStruct982 takeThisToo() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.Demonstrate982.class, "takeThisToo", software.amazon.jsii.tests.calculator.compliance.ParentStruct982.class); + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.ParentStruct982 takeThisToo() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Demonstrate982.class, "takeThisToo", software.amazon.jsii.tests.calculator.ParentStruct982.class); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/DeprecatedClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DeprecatedClass.java similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/DeprecatedClass.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DeprecatedClass.java index b15f8514c7..164665b54e 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/DeprecatedClass.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DeprecatedClass.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.stability_annotations; +package software.amazon.jsii.tests.calculator; /** * @deprecated a pretty boring class @@ -6,7 +6,7 @@ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.stability_annotations.DeprecatedClass") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DeprecatedClass") public class DeprecatedClass extends software.amazon.jsii.JsiiObject { protected DeprecatedClass(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/DeprecatedEnum.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DeprecatedEnum.java similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/DeprecatedEnum.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DeprecatedEnum.java index 64ca88681b..aee4dd6aaf 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/DeprecatedEnum.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DeprecatedEnum.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.stability_annotations; +package software.amazon.jsii.tests.calculator; /** * @deprecated your deprecated selection of bad options @@ -6,7 +6,7 @@ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.stability_annotations.DeprecatedEnum") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DeprecatedEnum") public enum DeprecatedEnum { /** * @deprecated option A is not great diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/DeprecatedStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DeprecatedStruct.java similarity index 94% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/DeprecatedStruct.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DeprecatedStruct.java index 180a7cb082..f4c0449daf 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/DeprecatedStruct.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DeprecatedStruct.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.stability_annotations; +package software.amazon.jsii.tests.calculator; /** * @deprecated it just wraps a string */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.stability_annotations.DeprecatedStruct") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DeprecatedStruct") @software.amazon.jsii.Jsii.Proxy(DeprecatedStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated @@ -96,7 +96,7 @@ public java.lang.String getReadonlyProperty() { data.set("readonlyProperty", om.valueToTree(this.getReadonlyProperty())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.stability_annotations.DeprecatedStruct")); + struct.set("fqn", om.valueToTree("jsii-calc.DeprecatedStruct")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DerivedStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DerivedStruct.java similarity index 93% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DerivedStruct.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DerivedStruct.java index d33b29c2ac..1ab89122ec 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DerivedStruct.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DerivedStruct.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * A struct which derives from another struct. @@ -6,7 +6,7 @@ * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.DerivedStruct") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DerivedStruct") @software.amazon.jsii.Jsii.Proxy(DerivedStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface DerivedStruct extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.lib.MyFirstStruct { @@ -29,7 +29,7 @@ public interface DerivedStruct extends software.amazon.jsii.JsiiSerializable, so * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.DoubleTrouble getNonPrimitive(); + @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.DoubleTrouble getNonPrimitive(); /** * This is optional. @@ -71,7 +71,7 @@ static Builder builder() { public static final class Builder { private java.time.Instant anotherRequired; private java.lang.Boolean bool; - private software.amazon.jsii.tests.calculator.compliance.DoubleTrouble nonPrimitive; + private software.amazon.jsii.tests.calculator.DoubleTrouble nonPrimitive; private java.util.Map anotherOptional; private java.lang.Object optionalAny; private java.util.List optionalArray; @@ -107,7 +107,7 @@ public Builder bool(java.lang.Boolean bool) { * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder nonPrimitive(software.amazon.jsii.tests.calculator.compliance.DoubleTrouble nonPrimitive) { + public Builder nonPrimitive(software.amazon.jsii.tests.calculator.DoubleTrouble nonPrimitive) { this.nonPrimitive = nonPrimitive; return this; } @@ -199,7 +199,7 @@ public DerivedStruct build() { final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DerivedStruct { private final java.time.Instant anotherRequired; private final java.lang.Boolean bool; - private final software.amazon.jsii.tests.calculator.compliance.DoubleTrouble nonPrimitive; + private final software.amazon.jsii.tests.calculator.DoubleTrouble nonPrimitive; private final java.util.Map anotherOptional; private final java.lang.Object optionalAny; private final java.util.List optionalArray; @@ -215,7 +215,7 @@ final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements Derive super(objRef); this.anotherRequired = this.jsiiGet("anotherRequired", java.time.Instant.class); this.bool = this.jsiiGet("bool", java.lang.Boolean.class); - this.nonPrimitive = this.jsiiGet("nonPrimitive", software.amazon.jsii.tests.calculator.compliance.DoubleTrouble.class); + this.nonPrimitive = this.jsiiGet("nonPrimitive", software.amazon.jsii.tests.calculator.DoubleTrouble.class); this.anotherOptional = this.jsiiGet("anotherOptional", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.lib.Value.class))); this.optionalAny = this.jsiiGet("optionalAny", java.lang.Object.class); this.optionalArray = this.jsiiGet("optionalArray", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))); @@ -227,7 +227,7 @@ final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements Derive /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ - private Jsii$Proxy(final java.time.Instant anotherRequired, final java.lang.Boolean bool, final software.amazon.jsii.tests.calculator.compliance.DoubleTrouble nonPrimitive, final java.util.Map anotherOptional, final java.lang.Object optionalAny, final java.util.List optionalArray, final java.lang.Number anumber, final java.lang.String astring, final java.util.List firstOptional) { + private Jsii$Proxy(final java.time.Instant anotherRequired, final java.lang.Boolean bool, final software.amazon.jsii.tests.calculator.DoubleTrouble nonPrimitive, final java.util.Map anotherOptional, final java.lang.Object optionalAny, final java.util.List optionalArray, final java.lang.Number anumber, final java.lang.String astring, final java.util.List firstOptional) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.anotherRequired = java.util.Objects.requireNonNull(anotherRequired, "anotherRequired is required"); this.bool = java.util.Objects.requireNonNull(bool, "bool is required"); @@ -251,7 +251,7 @@ public java.lang.Boolean getBool() { } @Override - public software.amazon.jsii.tests.calculator.compliance.DoubleTrouble getNonPrimitive() { + public software.amazon.jsii.tests.calculator.DoubleTrouble getNonPrimitive() { return this.nonPrimitive; } @@ -309,7 +309,7 @@ public java.util.List getFirstOptional() { } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.compliance.DerivedStruct")); + struct.set("fqn", om.valueToTree("jsii-calc.DerivedStruct")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DiamondInheritanceBaseLevelStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceBaseLevelStruct.java similarity index 94% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DiamondInheritanceBaseLevelStruct.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceBaseLevelStruct.java index 9feffb86f8..97936c3ce7 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DiamondInheritanceBaseLevelStruct.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceBaseLevelStruct.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.DiamondInheritanceBaseLevelStruct") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DiamondInheritanceBaseLevelStruct") @software.amazon.jsii.Jsii.Proxy(DiamondInheritanceBaseLevelStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface DiamondInheritanceBaseLevelStruct extends software.amazon.jsii.JsiiSerializable { @@ -88,7 +88,7 @@ public java.lang.String getBaseLevelProperty() { data.set("baseLevelProperty", om.valueToTree(this.getBaseLevelProperty())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.compliance.DiamondInheritanceBaseLevelStruct")); + struct.set("fqn", om.valueToTree("jsii-calc.DiamondInheritanceBaseLevelStruct")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DiamondInheritanceFirstMidLevelStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceFirstMidLevelStruct.java similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DiamondInheritanceFirstMidLevelStruct.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceFirstMidLevelStruct.java index e0b9a0fb58..4a1acc70e2 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DiamondInheritanceFirstMidLevelStruct.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceFirstMidLevelStruct.java @@ -1,13 +1,13 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.DiamondInheritanceFirstMidLevelStruct") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DiamondInheritanceFirstMidLevelStruct") @software.amazon.jsii.Jsii.Proxy(DiamondInheritanceFirstMidLevelStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface DiamondInheritanceFirstMidLevelStruct extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.compliance.DiamondInheritanceBaseLevelStruct { +public interface DiamondInheritanceFirstMidLevelStruct extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.DiamondInheritanceBaseLevelStruct { /** * EXPERIMENTAL @@ -109,7 +109,7 @@ public java.lang.String getBaseLevelProperty() { data.set("baseLevelProperty", om.valueToTree(this.getBaseLevelProperty())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.compliance.DiamondInheritanceFirstMidLevelStruct")); + struct.set("fqn", om.valueToTree("jsii-calc.DiamondInheritanceFirstMidLevelStruct")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DiamondInheritanceSecondMidLevelStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceSecondMidLevelStruct.java similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DiamondInheritanceSecondMidLevelStruct.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceSecondMidLevelStruct.java index e9f5cb092e..a68ed28bcc 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DiamondInheritanceSecondMidLevelStruct.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceSecondMidLevelStruct.java @@ -1,13 +1,13 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.DiamondInheritanceSecondMidLevelStruct") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DiamondInheritanceSecondMidLevelStruct") @software.amazon.jsii.Jsii.Proxy(DiamondInheritanceSecondMidLevelStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface DiamondInheritanceSecondMidLevelStruct extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.compliance.DiamondInheritanceBaseLevelStruct { +public interface DiamondInheritanceSecondMidLevelStruct extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.DiamondInheritanceBaseLevelStruct { /** * EXPERIMENTAL @@ -109,7 +109,7 @@ public java.lang.String getBaseLevelProperty() { data.set("baseLevelProperty", om.valueToTree(this.getBaseLevelProperty())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.compliance.DiamondInheritanceSecondMidLevelStruct")); + struct.set("fqn", om.valueToTree("jsii-calc.DiamondInheritanceSecondMidLevelStruct")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DiamondInheritanceTopLevelStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceTopLevelStruct.java similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DiamondInheritanceTopLevelStruct.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceTopLevelStruct.java index 1d0779a6d0..f9ca6d4863 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DiamondInheritanceTopLevelStruct.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DiamondInheritanceTopLevelStruct.java @@ -1,13 +1,13 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.DiamondInheritanceTopLevelStruct") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DiamondInheritanceTopLevelStruct") @software.amazon.jsii.Jsii.Proxy(DiamondInheritanceTopLevelStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface DiamondInheritanceTopLevelStruct extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.compliance.DiamondInheritanceFirstMidLevelStruct, software.amazon.jsii.tests.calculator.compliance.DiamondInheritanceSecondMidLevelStruct { +public interface DiamondInheritanceTopLevelStruct extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.DiamondInheritanceFirstMidLevelStruct, software.amazon.jsii.tests.calculator.DiamondInheritanceSecondMidLevelStruct { /** * EXPERIMENTAL @@ -151,7 +151,7 @@ public java.lang.String getSecondMidLevelProperty() { data.set("secondMidLevelProperty", om.valueToTree(this.getSecondMidLevelProperty())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.compliance.DiamondInheritanceTopLevelStruct")); + struct.set("fqn", om.valueToTree("jsii-calc.DiamondInheritanceTopLevelStruct")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DisappointingCollectionSource.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DisappointingCollectionSource.java similarity index 70% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DisappointingCollectionSource.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DisappointingCollectionSource.java index 34279b9b83..cd8437b7cd 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DisappointingCollectionSource.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DisappointingCollectionSource.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * Verifies that null/undefined can be returned for optional collections. @@ -9,7 +9,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.DisappointingCollectionSource") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DisappointingCollectionSource") public class DisappointingCollectionSource extends software.amazon.jsii.JsiiObject { protected DisappointingCollectionSource(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -21,8 +21,8 @@ protected DisappointingCollectionSource(final software.amazon.jsii.JsiiObject.In } static { - MAYBE_LIST = java.util.Optional.ofNullable((java.util.List)(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.compliance.DisappointingCollectionSource.class, "maybeList", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))))).map(java.util.Collections::unmodifiableList).orElse(null); - MAYBE_MAP = java.util.Optional.ofNullable((java.util.Map)(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.compliance.DisappointingCollectionSource.class, "maybeMap", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Number.class))))).map(java.util.Collections::unmodifiableMap).orElse(null); + MAYBE_LIST = java.util.Optional.ofNullable((java.util.List)(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.DisappointingCollectionSource.class, "maybeList", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))))).map(java.util.Collections::unmodifiableList).orElse(null); + MAYBE_MAP = java.util.Optional.ofNullable((java.util.Map)(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.DisappointingCollectionSource.class, "maybeMap", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Number.class))))).map(java.util.Collections::unmodifiableMap).orElse(null); } /** diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DoNotOverridePrivates.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DoNotOverridePrivates.java similarity index 93% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DoNotOverridePrivates.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DoNotOverridePrivates.java index 3c70d179df..a75a7ce0f7 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DoNotOverridePrivates.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DoNotOverridePrivates.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.DoNotOverridePrivates") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DoNotOverridePrivates") public class DoNotOverridePrivates extends software.amazon.jsii.JsiiObject { protected DoNotOverridePrivates(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DoNotRecognizeAnyAsOptional.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DoNotRecognizeAnyAsOptional.java similarity index 94% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DoNotRecognizeAnyAsOptional.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DoNotRecognizeAnyAsOptional.java index 32251548a8..f2e9e59f05 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DoNotRecognizeAnyAsOptional.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DoNotRecognizeAnyAsOptional.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * jsii#284: do not recognize "any" as an optional argument. @@ -7,7 +7,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.DoNotRecognizeAnyAsOptional") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DoNotRecognizeAnyAsOptional") public class DoNotRecognizeAnyAsOptional extends software.amazon.jsii.JsiiObject { protected DoNotRecognizeAnyAsOptional(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/documented/DocumentedClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DocumentedClass.java similarity index 92% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/documented/DocumentedClass.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DocumentedClass.java index 61314c4610..0a7bee5b6c 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/documented/DocumentedClass.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DocumentedClass.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.documented; +package software.amazon.jsii.tests.calculator; /** * Here's the first line of the TSDoc comment. @@ -10,7 +10,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.documented.DocumentedClass") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DocumentedClass") public class DocumentedClass extends software.amazon.jsii.JsiiObject { protected DocumentedClass(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -36,7 +36,7 @@ public DocumentedClass() { * @param greetee The person to be greeted. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) - public @org.jetbrains.annotations.NotNull java.lang.Number greet(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.documented.Greetee greetee) { + public @org.jetbrains.annotations.NotNull java.lang.Number greet(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.Greetee greetee) { return this.jsiiCall("greet", java.lang.Number.class, new Object[] { greetee }); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DontComplainAboutVariadicAfterOptional.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DontComplainAboutVariadicAfterOptional.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DontComplainAboutVariadicAfterOptional.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DontComplainAboutVariadicAfterOptional.java index 97cc1918b9..981ccf313b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DontComplainAboutVariadicAfterOptional.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DontComplainAboutVariadicAfterOptional.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.DontComplainAboutVariadicAfterOptional") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DontComplainAboutVariadicAfterOptional") public class DontComplainAboutVariadicAfterOptional extends software.amazon.jsii.JsiiObject { protected DontComplainAboutVariadicAfterOptional(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DoubleTrouble.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DoubleTrouble.java similarity index 91% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DoubleTrouble.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DoubleTrouble.java index 152813686e..3c3b16d8cc 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/DoubleTrouble.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/DoubleTrouble.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.DoubleTrouble") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DoubleTrouble") public class DoubleTrouble extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IFriendlyRandomGenerator { protected DoubleTrouble(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/EnumDispenser.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/EnumDispenser.java similarity index 63% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/EnumDispenser.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/EnumDispenser.java index af887af311..77f137eb25 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/EnumDispenser.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/EnumDispenser.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.EnumDispenser") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.EnumDispenser") public class EnumDispenser extends software.amazon.jsii.JsiiObject { protected EnumDispenser(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -20,15 +20,15 @@ protected EnumDispenser(final software.amazon.jsii.JsiiObject.InitializationMode * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.AllTypesEnum randomIntegerLikeEnum() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.EnumDispenser.class, "randomIntegerLikeEnum", software.amazon.jsii.tests.calculator.compliance.AllTypesEnum.class); + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.AllTypesEnum randomIntegerLikeEnum() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.EnumDispenser.class, "randomIntegerLikeEnum", software.amazon.jsii.tests.calculator.AllTypesEnum.class); } /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.StringEnum randomStringLikeEnum() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.EnumDispenser.class, "randomStringLikeEnum", software.amazon.jsii.tests.calculator.compliance.StringEnum.class); + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StringEnum randomStringLikeEnum() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.EnumDispenser.class, "randomStringLikeEnum", software.amazon.jsii.tests.calculator.StringEnum.class); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/EraseUndefinedHashValues.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/EraseUndefinedHashValues.java similarity index 71% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/EraseUndefinedHashValues.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/EraseUndefinedHashValues.java index 503e75f74e..84ead405b7 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/EraseUndefinedHashValues.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/EraseUndefinedHashValues.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.EraseUndefinedHashValues") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.EraseUndefinedHashValues") public class EraseUndefinedHashValues extends software.amazon.jsii.JsiiObject { protected EraseUndefinedHashValues(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -33,8 +33,8 @@ public EraseUndefinedHashValues() { * @param key This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.lang.Boolean doesKeyExist(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.EraseUndefinedHashValuesOptions opts, final @org.jetbrains.annotations.NotNull java.lang.String key) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.EraseUndefinedHashValues.class, "doesKeyExist", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(opts, "opts is required"), java.util.Objects.requireNonNull(key, "key is required") }); + public static @org.jetbrains.annotations.NotNull java.lang.Boolean doesKeyExist(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.EraseUndefinedHashValuesOptions opts, final @org.jetbrains.annotations.NotNull java.lang.String key) { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.EraseUndefinedHashValues.class, "doesKeyExist", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(opts, "opts is required"), java.util.Objects.requireNonNull(key, "key is required") }); } /** @@ -44,7 +44,7 @@ public EraseUndefinedHashValues() { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.util.Map prop1IsNull() { - return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.EraseUndefinedHashValues.class, "prop1IsNull", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); + return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.EraseUndefinedHashValues.class, "prop1IsNull", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); } /** @@ -54,6 +54,6 @@ public EraseUndefinedHashValues() { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.util.Map prop2IsUndefined() { - return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.EraseUndefinedHashValues.class, "prop2IsUndefined", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); + return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.EraseUndefinedHashValues.class, "prop2IsUndefined", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/EraseUndefinedHashValuesOptions.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/EraseUndefinedHashValuesOptions.java similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/EraseUndefinedHashValuesOptions.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/EraseUndefinedHashValuesOptions.java index 3a07e88a8e..8a395ffb82 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/EraseUndefinedHashValuesOptions.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/EraseUndefinedHashValuesOptions.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.EraseUndefinedHashValuesOptions") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.EraseUndefinedHashValuesOptions") @software.amazon.jsii.Jsii.Proxy(EraseUndefinedHashValuesOptions.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface EraseUndefinedHashValuesOptions extends software.amazon.jsii.JsiiSerializable { @@ -123,7 +123,7 @@ public java.lang.String getOption2() { } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.compliance.EraseUndefinedHashValuesOptions")); + struct.set("fqn", om.valueToTree("jsii-calc.EraseUndefinedHashValuesOptions")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/ExperimentalClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExperimentalClass.java similarity index 94% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/ExperimentalClass.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExperimentalClass.java index f47b661033..f2e82b1ca5 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/ExperimentalClass.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExperimentalClass.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.stability_annotations; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.stability_annotations.ExperimentalClass") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ExperimentalClass") public class ExperimentalClass extends software.amazon.jsii.JsiiObject { protected ExperimentalClass(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/ExperimentalEnum.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExperimentalEnum.java similarity index 77% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/ExperimentalEnum.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExperimentalEnum.java index f283a1d68d..f4fdd8d755 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/ExperimentalEnum.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExperimentalEnum.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.stability_annotations; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.stability_annotations.ExperimentalEnum") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ExperimentalEnum") public enum ExperimentalEnum { /** * EXPERIMENTAL diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/ExperimentalStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExperimentalStruct.java similarity index 94% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/ExperimentalStruct.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExperimentalStruct.java index e30fbf2ce1..bb5760fd96 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/ExperimentalStruct.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExperimentalStruct.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.stability_annotations; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.stability_annotations.ExperimentalStruct") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ExperimentalStruct") @software.amazon.jsii.Jsii.Proxy(ExperimentalStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface ExperimentalStruct extends software.amazon.jsii.JsiiSerializable { @@ -88,7 +88,7 @@ public java.lang.String getReadonlyProperty() { data.set("readonlyProperty", om.valueToTree(this.getReadonlyProperty())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.stability_annotations.ExperimentalStruct")); + struct.set("fqn", om.valueToTree("jsii-calc.ExperimentalStruct")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ExportedBaseClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExportedBaseClass.java similarity index 91% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ExportedBaseClass.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExportedBaseClass.java index e2f790c3dd..aa3ab4a33b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ExportedBaseClass.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExportedBaseClass.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ExportedBaseClass") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ExportedBaseClass") public class ExportedBaseClass extends software.amazon.jsii.JsiiObject { protected ExportedBaseClass(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ExtendsInternalInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExtendsInternalInterface.java similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ExtendsInternalInterface.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExtendsInternalInterface.java index 870d66631c..0534d07a37 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ExtendsInternalInterface.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ExtendsInternalInterface.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ExtendsInternalInterface") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ExtendsInternalInterface") @software.amazon.jsii.Jsii.Proxy(ExtendsInternalInterface.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface ExtendsInternalInterface extends software.amazon.jsii.JsiiSerializable { @@ -115,7 +115,7 @@ public java.lang.String getProp() { data.set("prop", om.valueToTree(this.getProp())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.compliance.ExtendsInternalInterface")); + struct.set("fqn", om.valueToTree("jsii-calc.ExtendsInternalInterface")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/GiveMeStructs.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/GiveMeStructs.java similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/GiveMeStructs.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/GiveMeStructs.java index 4371eba987..8284547a08 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/GiveMeStructs.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/GiveMeStructs.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.GiveMeStructs") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.GiveMeStructs") public class GiveMeStructs extends software.amazon.jsii.JsiiObject { protected GiveMeStructs(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -29,7 +29,7 @@ public GiveMeStructs() { * @param derived This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.MyFirstStruct derivedToFirst(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.DerivedStruct derived) { + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.lib.MyFirstStruct derivedToFirst(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.DerivedStruct derived) { return this.jsiiCall("derivedToFirst", software.amazon.jsii.tests.calculator.lib.MyFirstStruct.class, new Object[] { java.util.Objects.requireNonNull(derived, "derived is required") }); } @@ -41,8 +41,8 @@ public GiveMeStructs() { * @param derived This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.DoubleTrouble readDerivedNonPrimitive(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.DerivedStruct derived) { - return this.jsiiCall("readDerivedNonPrimitive", software.amazon.jsii.tests.calculator.compliance.DoubleTrouble.class, new Object[] { java.util.Objects.requireNonNull(derived, "derived is required") }); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.DoubleTrouble readDerivedNonPrimitive(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.DerivedStruct derived) { + return this.jsiiCall("readDerivedNonPrimitive", software.amazon.jsii.tests.calculator.DoubleTrouble.class, new Object[] { java.util.Objects.requireNonNull(derived, "derived is required") }); } /** diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/documented/Greetee.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Greetee.java similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/documented/Greetee.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Greetee.java index b69f54b349..247bbb53f6 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/documented/Greetee.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Greetee.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.documented; +package software.amazon.jsii.tests.calculator; /** * These are some arguments you can pass to a method. @@ -6,7 +6,7 @@ * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.documented.Greetee") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Greetee") @software.amazon.jsii.Jsii.Proxy(Greetee.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface Greetee extends software.amazon.jsii.JsiiSerializable { @@ -98,7 +98,7 @@ public java.lang.String getName() { } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.documented.Greetee")); + struct.set("fqn", om.valueToTree("jsii-calc.Greetee")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/GreetingAugmenter.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/GreetingAugmenter.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/GreetingAugmenter.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/GreetingAugmenter.java index adf820a89c..e98a50372b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/GreetingAugmenter.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/GreetingAugmenter.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.GreetingAugmenter") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.GreetingAugmenter") public class GreetingAugmenter extends software.amazon.jsii.JsiiObject { protected GreetingAugmenter(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IAnonymousImplementationProvider.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IAnonymousImplementationProvider.java similarity index 72% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IAnonymousImplementationProvider.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IAnonymousImplementationProvider.java index f7a63db06d..56ded56652 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IAnonymousImplementationProvider.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IAnonymousImplementationProvider.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * We can return an anonymous interface implementation from an override without losing the interface declarations. @@ -6,7 +6,7 @@ * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IAnonymousImplementationProvider") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IAnonymousImplementationProvider") @software.amazon.jsii.Jsii.Proxy(IAnonymousImplementationProvider.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IAnonymousImplementationProvider extends software.amazon.jsii.JsiiSerializable { @@ -15,18 +15,18 @@ public interface IAnonymousImplementationProvider extends software.amazon.jsii.J * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.Implementation provideAsClass(); + @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Implementation provideAsClass(); /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IAnonymouslyImplementMe provideAsInterface(); + @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IAnonymouslyImplementMe provideAsInterface(); /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IAnonymousImplementationProvider { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IAnonymousImplementationProvider { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } @@ -36,8 +36,8 @@ final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.Implementation provideAsClass() { - return this.jsiiCall("provideAsClass", software.amazon.jsii.tests.calculator.compliance.Implementation.class); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Implementation provideAsClass() { + return this.jsiiCall("provideAsClass", software.amazon.jsii.tests.calculator.Implementation.class); } /** @@ -45,8 +45,8 @@ final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IAnonymouslyImplementMe provideAsInterface() { - return this.jsiiCall("provideAsInterface", software.amazon.jsii.tests.calculator.compliance.IAnonymouslyImplementMe.class); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IAnonymouslyImplementMe provideAsInterface() { + return this.jsiiCall("provideAsInterface", software.amazon.jsii.tests.calculator.IAnonymouslyImplementMe.class); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IAnonymouslyImplementMe.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IAnonymouslyImplementMe.java similarity index 87% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IAnonymouslyImplementMe.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IAnonymouslyImplementMe.java index f085e0c1ac..06a8760603 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IAnonymouslyImplementMe.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IAnonymouslyImplementMe.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IAnonymouslyImplementMe") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IAnonymouslyImplementMe") @software.amazon.jsii.Jsii.Proxy(IAnonymouslyImplementMe.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IAnonymouslyImplementMe extends software.amazon.jsii.JsiiSerializable { @@ -24,7 +24,7 @@ public interface IAnonymouslyImplementMe extends software.amazon.jsii.JsiiSerial /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IAnonymouslyImplementMe { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IAnonymouslyImplementMe { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IAnotherPublicInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IAnotherPublicInterface.java similarity index 87% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IAnotherPublicInterface.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IAnotherPublicInterface.java index d1e0c2cdfd..24df9c1f7e 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IAnotherPublicInterface.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IAnotherPublicInterface.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IAnotherPublicInterface") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IAnotherPublicInterface") @software.amazon.jsii.Jsii.Proxy(IAnotherPublicInterface.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IAnotherPublicInterface extends software.amazon.jsii.JsiiSerializable { @@ -23,7 +23,7 @@ public interface IAnotherPublicInterface extends software.amazon.jsii.JsiiSerial /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IAnotherPublicInterface { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IAnotherPublicInterface { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IBell.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IBell.java similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IBell.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IBell.java index 4d6dee601f..f393b3b3d9 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IBell.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IBell.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IBell") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IBell") @software.amazon.jsii.Jsii.Proxy(IBell.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IBell extends software.amazon.jsii.JsiiSerializable { @@ -18,7 +18,7 @@ public interface IBell extends software.amazon.jsii.JsiiSerializable { /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IBell { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IBell { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IBellRinger.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IBellRinger.java similarity index 80% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IBellRinger.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IBellRinger.java index ff104d4fef..2e022ab157 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IBellRinger.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IBellRinger.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * Takes the object parameter as an interface. @@ -6,7 +6,7 @@ * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IBellRinger") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IBellRinger") @software.amazon.jsii.Jsii.Proxy(IBellRinger.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IBellRinger extends software.amazon.jsii.JsiiSerializable { @@ -17,12 +17,12 @@ public interface IBellRinger extends software.amazon.jsii.JsiiSerializable { * @param bell This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - void yourTurn(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IBell bell); + void yourTurn(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBell bell); /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IBellRinger { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IBellRinger { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } @@ -34,7 +34,7 @@ final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override - public void yourTurn(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IBell bell) { + public void yourTurn(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IBell bell) { this.jsiiCall("yourTurn", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(bell, "bell is required") }); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IConcreteBellRinger.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IConcreteBellRinger.java similarity index 80% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IConcreteBellRinger.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IConcreteBellRinger.java index 350de59b54..33f277235c 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IConcreteBellRinger.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IConcreteBellRinger.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * Takes the object parameter as a calss. @@ -6,7 +6,7 @@ * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IConcreteBellRinger") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IConcreteBellRinger") @software.amazon.jsii.Jsii.Proxy(IConcreteBellRinger.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IConcreteBellRinger extends software.amazon.jsii.JsiiSerializable { @@ -17,12 +17,12 @@ public interface IConcreteBellRinger extends software.amazon.jsii.JsiiSerializab * @param bell This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - void yourTurn(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.Bell bell); + void yourTurn(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Bell bell); /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IConcreteBellRinger { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IConcreteBellRinger { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } @@ -34,7 +34,7 @@ final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override - public void yourTurn(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.Bell bell) { + public void yourTurn(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Bell bell) { this.jsiiCall("yourTurn", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(bell, "bell is required") }); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/IDeprecatedInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IDeprecatedInterface.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/IDeprecatedInterface.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IDeprecatedInterface.java index ecd8318c4a..e21e8f6b01 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/IDeprecatedInterface.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IDeprecatedInterface.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.stability_annotations; +package software.amazon.jsii.tests.calculator; /** * @deprecated useless interface */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.stability_annotations.IDeprecatedInterface") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IDeprecatedInterface") @software.amazon.jsii.Jsii.Proxy(IDeprecatedInterface.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated @@ -37,7 +37,7 @@ default void setMutableProperty(final @org.jetbrains.annotations.Nullable java.l /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.stability_annotations.IDeprecatedInterface { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IDeprecatedInterface { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/IExperimentalInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IExperimentalInterface.java similarity index 89% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/IExperimentalInterface.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IExperimentalInterface.java index 000bedbd23..0275bc94ce 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/IExperimentalInterface.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IExperimentalInterface.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.stability_annotations; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.stability_annotations.IExperimentalInterface") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IExperimentalInterface") @software.amazon.jsii.Jsii.Proxy(IExperimentalInterface.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IExperimentalInterface extends software.amazon.jsii.JsiiSerializable { @@ -34,7 +34,7 @@ default void setMutableProperty(final @org.jetbrains.annotations.Nullable java.l /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.stability_annotations.IExperimentalInterface { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IExperimentalInterface { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IExtendsPrivateInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IExtendsPrivateInterface.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IExtendsPrivateInterface.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IExtendsPrivateInterface.java index 5909a1e3a5..f42620283e 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IExtendsPrivateInterface.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IExtendsPrivateInterface.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IExtendsPrivateInterface") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IExtendsPrivateInterface") @software.amazon.jsii.Jsii.Proxy(IExtendsPrivateInterface.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IExtendsPrivateInterface extends software.amazon.jsii.JsiiSerializable { @@ -29,7 +29,7 @@ public interface IExtendsPrivateInterface extends software.amazon.jsii.JsiiSeria /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IExtendsPrivateInterface { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IExtendsPrivateInterface { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceImplementedByAbstractClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceImplementedByAbstractClass.java similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceImplementedByAbstractClass.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceImplementedByAbstractClass.java index 2b95d6c0dd..d1694f02e4 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceImplementedByAbstractClass.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceImplementedByAbstractClass.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * awslabs/jsii#220 Abstract return type. @@ -6,7 +6,7 @@ * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IInterfaceImplementedByAbstractClass") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IInterfaceImplementedByAbstractClass") @software.amazon.jsii.Jsii.Proxy(IInterfaceImplementedByAbstractClass.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IInterfaceImplementedByAbstractClass extends software.amazon.jsii.JsiiSerializable { @@ -20,7 +20,7 @@ public interface IInterfaceImplementedByAbstractClass extends software.amazon.js /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IInterfaceImplementedByAbstractClass { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceImplementedByAbstractClass { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceThatShouldNotBeADataType.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceThatShouldNotBeADataType.java similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceThatShouldNotBeADataType.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceThatShouldNotBeADataType.java index fbec41149f..2ea770a360 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceThatShouldNotBeADataType.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceThatShouldNotBeADataType.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype. @@ -6,10 +6,10 @@ * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IInterfaceThatShouldNotBeADataType") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IInterfaceThatShouldNotBeADataType") @software.amazon.jsii.Jsii.Proxy(IInterfaceThatShouldNotBeADataType.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IInterfaceThatShouldNotBeADataType extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.compliance.IInterfaceWithMethods { +public interface IInterfaceThatShouldNotBeADataType extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.IInterfaceWithMethods { /** * EXPERIMENTAL @@ -20,7 +20,7 @@ public interface IInterfaceThatShouldNotBeADataType extends software.amazon.jsii /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IInterfaceThatShouldNotBeADataType { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceThatShouldNotBeADataType { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceWithInternal.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithInternal.java similarity index 82% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceWithInternal.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithInternal.java index 839756fc25..9c94f424f3 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceWithInternal.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithInternal.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IInterfaceWithInternal") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IInterfaceWithInternal") @software.amazon.jsii.Jsii.Proxy(IInterfaceWithInternal.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IInterfaceWithInternal extends software.amazon.jsii.JsiiSerializable { @@ -18,7 +18,7 @@ public interface IInterfaceWithInternal extends software.amazon.jsii.JsiiSeriali /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IInterfaceWithInternal { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceWithInternal { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceWithMethods.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithMethods.java similarity index 87% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceWithMethods.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithMethods.java index adcac21a1d..a06c61e818 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceWithMethods.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithMethods.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IInterfaceWithMethods") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IInterfaceWithMethods") @software.amazon.jsii.Jsii.Proxy(IInterfaceWithMethods.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IInterfaceWithMethods extends software.amazon.jsii.JsiiSerializable { @@ -24,7 +24,7 @@ public interface IInterfaceWithMethods extends software.amazon.jsii.JsiiSerializ /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IInterfaceWithMethods { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceWithMethods { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceWithOptionalMethodArguments.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithOptionalMethodArguments.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceWithOptionalMethodArguments.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithOptionalMethodArguments.java index 92dbd75af9..9df417e6e1 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceWithOptionalMethodArguments.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithOptionalMethodArguments.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods. @@ -6,7 +6,7 @@ * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IInterfaceWithOptionalMethodArguments") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IInterfaceWithOptionalMethodArguments") @software.amazon.jsii.Jsii.Proxy(IInterfaceWithOptionalMethodArguments.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IInterfaceWithOptionalMethodArguments extends software.amazon.jsii.JsiiSerializable { @@ -31,7 +31,7 @@ public interface IInterfaceWithOptionalMethodArguments extends software.amazon.j /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IInterfaceWithOptionalMethodArguments { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceWithOptionalMethodArguments { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceWithProperties.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithProperties.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceWithProperties.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithProperties.java index 2e40c332bc..b076c29f7d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceWithProperties.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithProperties.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IInterfaceWithProperties") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IInterfaceWithProperties") @software.amazon.jsii.Jsii.Proxy(IInterfaceWithProperties.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IInterfaceWithProperties extends software.amazon.jsii.JsiiSerializable { @@ -29,7 +29,7 @@ public interface IInterfaceWithProperties extends software.amazon.jsii.JsiiSeria /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IInterfaceWithProperties { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceWithProperties { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceWithPropertiesExtension.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithPropertiesExtension.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceWithPropertiesExtension.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithPropertiesExtension.java index a52f3017c4..77a23479f5 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IInterfaceWithPropertiesExtension.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithPropertiesExtension.java @@ -1,13 +1,13 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IInterfaceWithPropertiesExtension") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IInterfaceWithPropertiesExtension") @software.amazon.jsii.Jsii.Proxy(IInterfaceWithPropertiesExtension.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IInterfaceWithPropertiesExtension extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.compliance.IInterfaceWithProperties { +public interface IInterfaceWithPropertiesExtension extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.IInterfaceWithProperties { /** * EXPERIMENTAL @@ -23,7 +23,7 @@ public interface IInterfaceWithPropertiesExtension extends software.amazon.jsii. /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IInterfaceWithPropertiesExtension { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceWithPropertiesExtension { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/IJSII417Derived.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJSII417Derived.java similarity index 88% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/IJSII417Derived.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJSII417Derived.java index eecd65c1fc..54ba7132dc 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/IJSII417Derived.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJSII417Derived.java @@ -1,13 +1,13 @@ -package software.amazon.jsii.tests.calculator.erasure_tests; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.erasureTests.IJSII417Derived") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IJSII417Derived") @software.amazon.jsii.Jsii.Proxy(IJSII417Derived.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface IJSII417Derived extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.erasure_tests.IJSII417PublicBaseOfBase { +public interface IJSII417Derived extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.IJSII417PublicBaseOfBase { /** * EXPERIMENTAL @@ -30,7 +30,7 @@ public interface IJSII417Derived extends software.amazon.jsii.JsiiSerializable, /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.erasure_tests.IJSII417Derived { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IJSII417Derived { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/IJSII417PublicBaseOfBase.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJSII417PublicBaseOfBase.java similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/IJSII417PublicBaseOfBase.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJSII417PublicBaseOfBase.java index ca6aa70b9f..2c6820d81d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/IJSII417PublicBaseOfBase.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJSII417PublicBaseOfBase.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.erasure_tests; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.erasureTests.IJSII417PublicBaseOfBase") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IJSII417PublicBaseOfBase") @software.amazon.jsii.Jsii.Proxy(IJSII417PublicBaseOfBase.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IJSII417PublicBaseOfBase extends software.amazon.jsii.JsiiSerializable { @@ -24,7 +24,7 @@ public interface IJSII417PublicBaseOfBase extends software.amazon.jsii.JsiiSeria /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.erasure_tests.IJSII417PublicBaseOfBase { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IJSII417PublicBaseOfBase { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/IJsii487External.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJsii487External.java similarity index 74% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/IJsii487External.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJsii487External.java index 8f5a543d8b..7cde89a598 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/IJsii487External.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJsii487External.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.erasure_tests; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.erasureTests.IJsii487External") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IJsii487External") @software.amazon.jsii.Jsii.Proxy(IJsii487External.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IJsii487External extends software.amazon.jsii.JsiiSerializable { @@ -12,7 +12,7 @@ public interface IJsii487External extends software.amazon.jsii.JsiiSerializable /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.erasure_tests.IJsii487External { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IJsii487External { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/IJsii487External2.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJsii487External2.java similarity index 74% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/IJsii487External2.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJsii487External2.java index 39a61bafd4..8bc93504a3 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/IJsii487External2.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJsii487External2.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.erasure_tests; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.erasureTests.IJsii487External2") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IJsii487External2") @software.amazon.jsii.Jsii.Proxy(IJsii487External2.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IJsii487External2 extends software.amazon.jsii.JsiiSerializable { @@ -12,7 +12,7 @@ public interface IJsii487External2 extends software.amazon.jsii.JsiiSerializable /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.erasure_tests.IJsii487External2 { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IJsii487External2 { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/IJsii496.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJsii496.java similarity index 75% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/IJsii496.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJsii496.java index 5dfcefcb95..e460b03bc6 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/IJsii496.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IJsii496.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.erasure_tests; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.erasureTests.IJsii496") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IJsii496") @software.amazon.jsii.Jsii.Proxy(IJsii496.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IJsii496 extends software.amazon.jsii.JsiiSerializable { @@ -12,7 +12,7 @@ public interface IJsii496 extends software.amazon.jsii.JsiiSerializable { /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.erasure_tests.IJsii496 { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IJsii496 { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IMutableObjectLiteral.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IMutableObjectLiteral.java similarity index 87% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IMutableObjectLiteral.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IMutableObjectLiteral.java index 26f2d3d6c0..c586b60c1a 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IMutableObjectLiteral.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IMutableObjectLiteral.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IMutableObjectLiteral") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IMutableObjectLiteral") @software.amazon.jsii.Jsii.Proxy(IMutableObjectLiteral.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IMutableObjectLiteral extends software.amazon.jsii.JsiiSerializable { @@ -23,7 +23,7 @@ public interface IMutableObjectLiteral extends software.amazon.jsii.JsiiSerializ /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IMutableObjectLiteral { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IMutableObjectLiteral { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/INonInternalInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/INonInternalInterface.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/INonInternalInterface.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/INonInternalInterface.java index 1342e24e7c..0eeeddc90b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/INonInternalInterface.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/INonInternalInterface.java @@ -1,13 +1,13 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.INonInternalInterface") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.INonInternalInterface") @software.amazon.jsii.Jsii.Proxy(INonInternalInterface.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -public interface INonInternalInterface extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.compliance.IAnotherPublicInterface { +public interface INonInternalInterface extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.IAnotherPublicInterface { /** * EXPERIMENTAL @@ -34,7 +34,7 @@ public interface INonInternalInterface extends software.amazon.jsii.JsiiSerializ /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.INonInternalInterface { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.INonInternalInterface { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IObjectWithProperty.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IObjectWithProperty.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IObjectWithProperty.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IObjectWithProperty.java index 71b289afc5..52858a88d7 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IObjectWithProperty.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IObjectWithProperty.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * Make sure that setters are properly called on objects with interfaces. @@ -6,7 +6,7 @@ * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IObjectWithProperty") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IObjectWithProperty") @software.amazon.jsii.Jsii.Proxy(IObjectWithProperty.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IObjectWithProperty extends software.amazon.jsii.JsiiSerializable { @@ -31,7 +31,7 @@ public interface IObjectWithProperty extends software.amazon.jsii.JsiiSerializab /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IObjectWithProperty { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IObjectWithProperty { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IOptionalMethod.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IOptionalMethod.java similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IOptionalMethod.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IOptionalMethod.java index df2901bba8..f84d3541fb 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IOptionalMethod.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IOptionalMethod.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * Checks that optional result from interface method code generates correctly. @@ -6,7 +6,7 @@ * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IOptionalMethod") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IOptionalMethod") @software.amazon.jsii.Jsii.Proxy(IOptionalMethod.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IOptionalMethod extends software.amazon.jsii.JsiiSerializable { @@ -20,7 +20,7 @@ public interface IOptionalMethod extends software.amazon.jsii.JsiiSerializable { /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IOptionalMethod { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IOptionalMethod { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IPrivatelyImplemented.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IPrivatelyImplemented.java similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IPrivatelyImplemented.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IPrivatelyImplemented.java index c96046aec6..05e1101d39 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IPrivatelyImplemented.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IPrivatelyImplemented.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IPrivatelyImplemented") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IPrivatelyImplemented") @software.amazon.jsii.Jsii.Proxy(IPrivatelyImplemented.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IPrivatelyImplemented extends software.amazon.jsii.JsiiSerializable { @@ -18,7 +18,7 @@ public interface IPrivatelyImplemented extends software.amazon.jsii.JsiiSerializ /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IPrivatelyImplemented { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IPrivatelyImplemented { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IPublicInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IPublicInterface.java similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IPublicInterface.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IPublicInterface.java index 4244787df3..adf477fa24 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IPublicInterface.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IPublicInterface.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IPublicInterface") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IPublicInterface") @software.amazon.jsii.Jsii.Proxy(IPublicInterface.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IPublicInterface extends software.amazon.jsii.JsiiSerializable { @@ -18,7 +18,7 @@ public interface IPublicInterface extends software.amazon.jsii.JsiiSerializable /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IPublicInterface { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IPublicInterface { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IPublicInterface2.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IPublicInterface2.java similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IPublicInterface2.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IPublicInterface2.java index f3259e7ef7..a206803a86 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IPublicInterface2.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IPublicInterface2.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IPublicInterface2") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IPublicInterface2") @software.amazon.jsii.Jsii.Proxy(IPublicInterface2.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IPublicInterface2 extends software.amazon.jsii.JsiiSerializable { @@ -18,7 +18,7 @@ public interface IPublicInterface2 extends software.amazon.jsii.JsiiSerializable /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IPublicInterface2 { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IPublicInterface2 { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IReturnJsii976.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IReturnJsii976.java similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IReturnJsii976.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IReturnJsii976.java index 8559b331f3..cebf6f3a30 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IReturnJsii976.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IReturnJsii976.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * Returns a subclass of a known class which implements an interface. @@ -6,7 +6,7 @@ * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IReturnJsii976") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IReturnJsii976") @software.amazon.jsii.Jsii.Proxy(IReturnJsii976.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IReturnJsii976 extends software.amazon.jsii.JsiiSerializable { @@ -20,7 +20,7 @@ public interface IReturnJsii976 extends software.amazon.jsii.JsiiSerializable { /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IReturnJsii976 { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IReturnJsii976 { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IReturnsNumber.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IReturnsNumber.java similarity index 89% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IReturnsNumber.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IReturnsNumber.java index 386e879ccf..0ed94b4e90 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IReturnsNumber.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IReturnsNumber.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IReturnsNumber") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IReturnsNumber") @software.amazon.jsii.Jsii.Proxy(IReturnsNumber.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IReturnsNumber extends software.amazon.jsii.JsiiSerializable { @@ -24,7 +24,7 @@ public interface IReturnsNumber extends software.amazon.jsii.JsiiSerializable { /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IReturnsNumber { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IReturnsNumber { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/IStableInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IStableInterface.java similarity index 89% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/IStableInterface.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IStableInterface.java index 465be10a15..156691d894 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/IStableInterface.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IStableInterface.java @@ -1,9 +1,9 @@ -package software.amazon.jsii.tests.calculator.stability_annotations; +package software.amazon.jsii.tests.calculator; /** */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.stability_annotations.IStableInterface") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IStableInterface") @software.amazon.jsii.Jsii.Proxy(IStableInterface.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public interface IStableInterface extends software.amazon.jsii.JsiiSerializable { @@ -30,7 +30,7 @@ default void setMutableProperty(final @org.jetbrains.annotations.Nullable java.l /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.stability_annotations.IStableInterface { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IStableInterface { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IStructReturningDelegate.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IStructReturningDelegate.java similarity index 75% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IStructReturningDelegate.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IStructReturningDelegate.java index 1b1ac4f489..9636fde34c 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/IStructReturningDelegate.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IStructReturningDelegate.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * Verifies that a "pure" implementation of an interface works correctly. @@ -6,7 +6,7 @@ * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.IStructReturningDelegate") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.IStructReturningDelegate") @software.amazon.jsii.Jsii.Proxy(IStructReturningDelegate.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IStructReturningDelegate extends software.amazon.jsii.JsiiSerializable { @@ -15,12 +15,12 @@ public interface IStructReturningDelegate extends software.amazon.jsii.JsiiSeria * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.StructB returnStruct(); + @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StructB returnStruct(); /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IStructReturningDelegate { + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IStructReturningDelegate { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } @@ -30,8 +30,8 @@ final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.StructB returnStruct() { - return this.jsiiCall("returnStruct", software.amazon.jsii.tests.calculator.compliance.StructB.class); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.StructB returnStruct() { + return this.jsiiCall("returnStruct", software.amazon.jsii.tests.calculator.StructB.class); } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ImplementInternalInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementInternalInterface.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ImplementInternalInterface.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementInternalInterface.java index 84965ecf75..cff9447725 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ImplementInternalInterface.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementInternalInterface.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ImplementInternalInterface") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ImplementInternalInterface") public class ImplementInternalInterface extends software.amazon.jsii.JsiiObject { protected ImplementInternalInterface(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Implementation.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Implementation.java similarity index 88% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Implementation.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Implementation.java index 5f3ec061c5..efcf61a699 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Implementation.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Implementation.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.Implementation") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Implementation") public class Implementation extends software.amazon.jsii.JsiiObject { protected Implementation(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ImplementsInterfaceWithInternal.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementsInterfaceWithInternal.java similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ImplementsInterfaceWithInternal.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementsInterfaceWithInternal.java index 25abd7565a..109cc2474c 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ImplementsInterfaceWithInternal.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementsInterfaceWithInternal.java @@ -1,12 +1,12 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ImplementsInterfaceWithInternal") -public class ImplementsInterfaceWithInternal extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.compliance.IInterfaceWithInternal { +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ImplementsInterfaceWithInternal") +public class ImplementsInterfaceWithInternal extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceWithInternal { protected ImplementsInterfaceWithInternal(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ImplementsInterfaceWithInternalSubclass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementsInterfaceWithInternalSubclass.java similarity index 77% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ImplementsInterfaceWithInternalSubclass.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementsInterfaceWithInternalSubclass.java index 8d5571b723..10f483d926 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ImplementsInterfaceWithInternalSubclass.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementsInterfaceWithInternalSubclass.java @@ -1,12 +1,12 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ImplementsInterfaceWithInternalSubclass") -public class ImplementsInterfaceWithInternalSubclass extends software.amazon.jsii.tests.calculator.compliance.ImplementsInterfaceWithInternal { +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ImplementsInterfaceWithInternalSubclass") +public class ImplementsInterfaceWithInternalSubclass extends software.amazon.jsii.tests.calculator.ImplementsInterfaceWithInternal { protected ImplementsInterfaceWithInternalSubclass(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ImplementsPrivateInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementsPrivateInterface.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ImplementsPrivateInterface.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementsPrivateInterface.java index 305d516788..85c7b17af8 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ImplementsPrivateInterface.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplementsPrivateInterface.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ImplementsPrivateInterface") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ImplementsPrivateInterface") public class ImplementsPrivateInterface extends software.amazon.jsii.JsiiObject { protected ImplementsPrivateInterface(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ImplictBaseOfBase.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplictBaseOfBase.java similarity index 96% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ImplictBaseOfBase.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplictBaseOfBase.java index 15c5fb2a6c..68ba8b019f 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ImplictBaseOfBase.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ImplictBaseOfBase.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ImplictBaseOfBase") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ImplictBaseOfBase") @software.amazon.jsii.Jsii.Proxy(ImplictBaseOfBase.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface ImplictBaseOfBase extends software.amazon.jsii.JsiiSerializable, software.amazon.jsii.tests.calculator.base.BaseProps { @@ -128,7 +128,7 @@ public software.amazon.jsii.tests.calculator.baseofbase.Very getFoo() { data.set("foo", om.valueToTree(this.getFoo())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.compliance.ImplictBaseOfBase")); + struct.set("fqn", om.valueToTree("jsii-calc.ImplictBaseOfBase")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/InbetweenClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InbetweenClass.java similarity index 80% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/InbetweenClass.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InbetweenClass.java index 0237e7caa1..5faf132294 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/InbetweenClass.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InbetweenClass.java @@ -1,12 +1,12 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.InbetweenClass") -public class InbetweenClass extends software.amazon.jsii.tests.calculator.compliance.PublicClass implements software.amazon.jsii.tests.calculator.compliance.IPublicInterface2 { +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.InbetweenClass") +public class InbetweenClass extends software.amazon.jsii.tests.calculator.PublicClass implements software.amazon.jsii.tests.calculator.IPublicInterface2 { protected InbetweenClass(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/InterfaceCollections.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InterfaceCollections.java similarity index 59% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/InterfaceCollections.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InterfaceCollections.java index a846652a8c..6eb438dc1e 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/InterfaceCollections.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InterfaceCollections.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * Verifies that collections of interfaces or structs are correctly handled. @@ -9,7 +9,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.InterfaceCollections") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.InterfaceCollections") public class InterfaceCollections extends software.amazon.jsii.JsiiObject { protected InterfaceCollections(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -24,31 +24,31 @@ protected InterfaceCollections(final software.amazon.jsii.JsiiObject.Initializat * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.util.List listOfInterfaces() { - return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.InterfaceCollections.class, "listOfInterfaces", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.compliance.IBell.class)))); + public static @org.jetbrains.annotations.NotNull java.util.List listOfInterfaces() { + return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.InterfaceCollections.class, "listOfInterfaces", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.IBell.class)))); } /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.util.List listOfStructs() { - return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.InterfaceCollections.class, "listOfStructs", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.compliance.StructA.class)))); + public static @org.jetbrains.annotations.NotNull java.util.List listOfStructs() { + return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.InterfaceCollections.class, "listOfStructs", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.StructA.class)))); } /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.util.Map mapOfInterfaces() { - return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.InterfaceCollections.class, "mapOfInterfaces", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.compliance.IBell.class)))); + public static @org.jetbrains.annotations.NotNull java.util.Map mapOfInterfaces() { + return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.InterfaceCollections.class, "mapOfInterfaces", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.IBell.class)))); } /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull java.util.Map mapOfStructs() { - return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.InterfaceCollections.class, "mapOfStructs", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.compliance.StructA.class)))); + public static @org.jetbrains.annotations.NotNull java.util.Map mapOfStructs() { + return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.InterfaceCollections.class, "mapOfStructs", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.StructA.class)))); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/InterfacesMaker.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InterfacesMaker.java similarity index 73% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/InterfacesMaker.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InterfacesMaker.java index bc42613cd9..ce7235ff56 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/InterfacesMaker.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/InterfacesMaker.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * We can return arrays of interfaces See aws/aws-cdk#2362. @@ -7,7 +7,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.InterfacesMaker") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.InterfacesMaker") public class InterfacesMaker extends software.amazon.jsii.JsiiObject { protected InterfacesMaker(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -25,6 +25,6 @@ protected InterfacesMaker(final software.amazon.jsii.JsiiObject.InitializationMo */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.util.List makeInterfaces(final @org.jetbrains.annotations.NotNull java.lang.Number count) { - return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.InterfacesMaker.class, "makeInterfaces", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.lib.IDoublable.class)), new Object[] { java.util.Objects.requireNonNull(count, "count is required") })); + return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.InterfacesMaker.class, "makeInterfaces", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.jsii.tests.calculator.lib.IDoublable.class)), new Object[] { java.util.Objects.requireNonNull(count, "count is required") })); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/JSII417Derived.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSII417Derived.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/JSII417Derived.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSII417Derived.java index 47950804f2..bba61e636c 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/JSII417Derived.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSII417Derived.java @@ -1,12 +1,12 @@ -package software.amazon.jsii.tests.calculator.erasure_tests; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.erasureTests.JSII417Derived") -public class JSII417Derived extends software.amazon.jsii.tests.calculator.erasure_tests.JSII417PublicBaseOfBase { +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.JSII417Derived") +public class JSII417Derived extends software.amazon.jsii.tests.calculator.JSII417PublicBaseOfBase { protected JSII417Derived(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/JSII417PublicBaseOfBase.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSII417PublicBaseOfBase.java similarity index 79% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/JSII417PublicBaseOfBase.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSII417PublicBaseOfBase.java index 906ceee129..91652bcb91 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/JSII417PublicBaseOfBase.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSII417PublicBaseOfBase.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.erasure_tests; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.erasureTests.JSII417PublicBaseOfBase") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.JSII417PublicBaseOfBase") public class JSII417PublicBaseOfBase extends software.amazon.jsii.JsiiObject { protected JSII417PublicBaseOfBase(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -25,8 +25,8 @@ public JSII417PublicBaseOfBase() { * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.erasure_tests.JSII417PublicBaseOfBase makeInstance() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.erasure_tests.JSII417PublicBaseOfBase.class, "makeInstance", software.amazon.jsii.tests.calculator.erasure_tests.JSII417PublicBaseOfBase.class); + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.JSII417PublicBaseOfBase makeInstance() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JSII417PublicBaseOfBase.class, "makeInstance", software.amazon.jsii.tests.calculator.JSII417PublicBaseOfBase.class); } /** diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/JSObjectLiteralForInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSObjectLiteralForInterface.java similarity index 91% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/JSObjectLiteralForInterface.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSObjectLiteralForInterface.java index 74864b41b5..f2668b54b7 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/JSObjectLiteralForInterface.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSObjectLiteralForInterface.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.JSObjectLiteralForInterface") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.JSObjectLiteralForInterface") public class JSObjectLiteralForInterface extends software.amazon.jsii.JsiiObject { protected JSObjectLiteralForInterface(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/JSObjectLiteralToNative.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSObjectLiteralToNative.java similarity index 78% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/JSObjectLiteralToNative.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSObjectLiteralToNative.java index 90507568bc..065c6834e1 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/JSObjectLiteralToNative.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSObjectLiteralToNative.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.JSObjectLiteralToNative") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.JSObjectLiteralToNative") public class JSObjectLiteralToNative extends software.amazon.jsii.JsiiObject { protected JSObjectLiteralToNative(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -25,7 +25,7 @@ public JSObjectLiteralToNative() { * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.JSObjectLiteralToNativeClass returnLiteral() { - return this.jsiiCall("returnLiteral", software.amazon.jsii.tests.calculator.compliance.JSObjectLiteralToNativeClass.class); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.JSObjectLiteralToNativeClass returnLiteral() { + return this.jsiiCall("returnLiteral", software.amazon.jsii.tests.calculator.JSObjectLiteralToNativeClass.class); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/JSObjectLiteralToNativeClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSObjectLiteralToNativeClass.java similarity index 93% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/JSObjectLiteralToNativeClass.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSObjectLiteralToNativeClass.java index b9ef534a5b..d6030d18b3 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/JSObjectLiteralToNativeClass.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JSObjectLiteralToNativeClass.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.JSObjectLiteralToNativeClass") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.JSObjectLiteralToNativeClass") public class JSObjectLiteralToNativeClass extends software.amazon.jsii.JsiiObject { protected JSObjectLiteralToNativeClass(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/JavaReservedWords.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JavaReservedWords.java similarity index 99% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/JavaReservedWords.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JavaReservedWords.java index 77f6eb6c7d..fbf2ae995a 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/JavaReservedWords.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JavaReservedWords.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.JavaReservedWords") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.JavaReservedWords") public class JavaReservedWords extends software.amazon.jsii.JsiiObject { protected JavaReservedWords(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/Jsii487Derived.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Jsii487Derived.java similarity index 71% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/Jsii487Derived.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Jsii487Derived.java index 3d539eb3d3..d004cbb1e6 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/Jsii487Derived.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Jsii487Derived.java @@ -1,12 +1,12 @@ -package software.amazon.jsii.tests.calculator.erasure_tests; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.erasureTests.Jsii487Derived") -public class Jsii487Derived extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.erasure_tests.IJsii487External2,software.amazon.jsii.tests.calculator.erasure_tests.IJsii487External { +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Jsii487Derived") +public class Jsii487Derived extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IJsii487External2,software.amazon.jsii.tests.calculator.IJsii487External { protected Jsii487Derived(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/Jsii496Derived.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Jsii496Derived.java similarity index 77% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/Jsii496Derived.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Jsii496Derived.java index 33236be210..ab0d7145d6 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/erasure_tests/Jsii496Derived.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Jsii496Derived.java @@ -1,12 +1,12 @@ -package software.amazon.jsii.tests.calculator.erasure_tests; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.erasureTests.Jsii496Derived") -public class Jsii496Derived extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.erasure_tests.IJsii496 { +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Jsii496Derived") +public class Jsii496Derived extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IJsii496 { protected Jsii496Derived(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/JsiiAgent.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JsiiAgent.java similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/JsiiAgent.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JsiiAgent.java index 0ad5e7b46e..cb76cd3a65 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/JsiiAgent.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JsiiAgent.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * Host runtime version should be set via JSII_AGENT. @@ -7,7 +7,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.JsiiAgent") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.JsiiAgent") public class JsiiAgent extends software.amazon.jsii.JsiiObject { protected JsiiAgent(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -30,6 +30,6 @@ public JsiiAgent() { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.Nullable java.lang.String getJsiiAgent() { - return software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.compliance.JsiiAgent.class, "jsiiAgent", java.lang.String.class); + return software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.JsiiAgent.class, "jsiiAgent", java.lang.String.class); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/JsonFormatter.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JsonFormatter.java similarity index 73% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/JsonFormatter.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JsonFormatter.java index 7fc59c71b7..cfebde74fa 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/JsonFormatter.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/JsonFormatter.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * Make sure structs are un-decorated on the way in. @@ -9,7 +9,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.JsonFormatter") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.JsonFormatter") public class JsonFormatter extends software.amazon.jsii.JsiiObject { protected JsonFormatter(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -25,7 +25,7 @@ protected JsonFormatter(final software.amazon.jsii.JsiiObject.InitializationMode */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyArray() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.JsonFormatter.class, "anyArray", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyArray", java.lang.Object.class); } /** @@ -33,7 +33,7 @@ protected JsonFormatter(final software.amazon.jsii.JsiiObject.InitializationMode */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyBooleanFalse() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.JsonFormatter.class, "anyBooleanFalse", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyBooleanFalse", java.lang.Object.class); } /** @@ -41,7 +41,7 @@ protected JsonFormatter(final software.amazon.jsii.JsiiObject.InitializationMode */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyBooleanTrue() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.JsonFormatter.class, "anyBooleanTrue", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyBooleanTrue", java.lang.Object.class); } /** @@ -49,7 +49,7 @@ protected JsonFormatter(final software.amazon.jsii.JsiiObject.InitializationMode */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyDate() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.JsonFormatter.class, "anyDate", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyDate", java.lang.Object.class); } /** @@ -57,7 +57,7 @@ protected JsonFormatter(final software.amazon.jsii.JsiiObject.InitializationMode */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyEmptyString() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.JsonFormatter.class, "anyEmptyString", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyEmptyString", java.lang.Object.class); } /** @@ -65,7 +65,7 @@ protected JsonFormatter(final software.amazon.jsii.JsiiObject.InitializationMode */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyFunction() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.JsonFormatter.class, "anyFunction", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyFunction", java.lang.Object.class); } /** @@ -73,7 +73,7 @@ protected JsonFormatter(final software.amazon.jsii.JsiiObject.InitializationMode */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyHash() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.JsonFormatter.class, "anyHash", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyHash", java.lang.Object.class); } /** @@ -81,7 +81,7 @@ protected JsonFormatter(final software.amazon.jsii.JsiiObject.InitializationMode */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyNull() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.JsonFormatter.class, "anyNull", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyNull", java.lang.Object.class); } /** @@ -89,7 +89,7 @@ protected JsonFormatter(final software.amazon.jsii.JsiiObject.InitializationMode */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyNumber() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.JsonFormatter.class, "anyNumber", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyNumber", java.lang.Object.class); } /** @@ -97,7 +97,7 @@ protected JsonFormatter(final software.amazon.jsii.JsiiObject.InitializationMode */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyRef() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.JsonFormatter.class, "anyRef", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyRef", java.lang.Object.class); } /** @@ -105,7 +105,7 @@ protected JsonFormatter(final software.amazon.jsii.JsiiObject.InitializationMode */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyString() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.JsonFormatter.class, "anyString", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyString", java.lang.Object.class); } /** @@ -113,7 +113,7 @@ protected JsonFormatter(final software.amazon.jsii.JsiiObject.InitializationMode */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyUndefined() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.JsonFormatter.class, "anyUndefined", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyUndefined", java.lang.Object.class); } /** @@ -121,7 +121,7 @@ protected JsonFormatter(final software.amazon.jsii.JsiiObject.InitializationMode */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object anyZero() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.JsonFormatter.class, "anyZero", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "anyZero", java.lang.Object.class); } /** @@ -131,7 +131,7 @@ protected JsonFormatter(final software.amazon.jsii.JsiiObject.InitializationMode */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.Nullable java.lang.String stringify(final @org.jetbrains.annotations.Nullable java.lang.Object value) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.JsonFormatter.class, "stringify", java.lang.String.class, new Object[] { value }); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "stringify", java.lang.String.class, new Object[] { value }); } /** @@ -139,6 +139,6 @@ protected JsonFormatter(final software.amazon.jsii.JsiiObject.InitializationMode */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.Nullable java.lang.String stringify() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.JsonFormatter.class, "stringify", java.lang.String.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.JsonFormatter.class, "stringify", java.lang.String.class); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/LoadBalancedFargateServiceProps.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/LoadBalancedFargateServiceProps.java similarity index 98% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/LoadBalancedFargateServiceProps.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/LoadBalancedFargateServiceProps.java index 2b9e8d59ac..481985e467 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/LoadBalancedFargateServiceProps.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/LoadBalancedFargateServiceProps.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * jsii#298: show default values in sphinx documentation, and respect newlines. @@ -6,7 +6,7 @@ * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.LoadBalancedFargateServiceProps") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.LoadBalancedFargateServiceProps") @software.amazon.jsii.Jsii.Proxy(LoadBalancedFargateServiceProps.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface LoadBalancedFargateServiceProps extends software.amazon.jsii.JsiiSerializable { @@ -287,7 +287,7 @@ public java.lang.Boolean getPublicTasks() { } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.compliance.LoadBalancedFargateServiceProps")); + struct.set("fqn", om.valueToTree("jsii-calc.LoadBalancedFargateServiceProps")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/NestedStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NestedStruct.java similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/NestedStruct.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NestedStruct.java index 98afd3a4b4..8829c25054 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/NestedStruct.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NestedStruct.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.NestedStruct") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.NestedStruct") @software.amazon.jsii.Jsii.Proxy(NestedStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface NestedStruct extends software.amazon.jsii.JsiiSerializable { @@ -90,7 +90,7 @@ public java.lang.Number getNumberProp() { data.set("numberProp", om.valueToTree(this.getNumberProp())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.compliance.NestedStruct")); + struct.set("fqn", om.valueToTree("jsii-calc.NestedStruct")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/NodeStandardLibrary.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NodeStandardLibrary.java similarity index 94% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/NodeStandardLibrary.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NodeStandardLibrary.java index 7e1789a65f..23eaffccc8 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/NodeStandardLibrary.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NodeStandardLibrary.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * Test fixture to verify that jsii modules can use the node standard library. @@ -7,7 +7,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.NodeStandardLibrary") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.NodeStandardLibrary") public class NodeStandardLibrary extends software.amazon.jsii.JsiiObject { protected NodeStandardLibrary(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/NullShouldBeTreatedAsUndefined.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NullShouldBeTreatedAsUndefined.java similarity index 93% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/NullShouldBeTreatedAsUndefined.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NullShouldBeTreatedAsUndefined.java index b9e0080ead..034b052505 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/NullShouldBeTreatedAsUndefined.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NullShouldBeTreatedAsUndefined.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * jsii#282, aws-cdk#157: null should be treated as "undefined". @@ -7,7 +7,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.NullShouldBeTreatedAsUndefined") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.NullShouldBeTreatedAsUndefined") public class NullShouldBeTreatedAsUndefined extends software.amazon.jsii.JsiiObject { protected NullShouldBeTreatedAsUndefined(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -65,7 +65,7 @@ public void giveMeUndefined() { * @param input This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public void giveMeUndefinedInsideAnObject(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.NullShouldBeTreatedAsUndefinedData input) { + public void giveMeUndefinedInsideAnObject(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.NullShouldBeTreatedAsUndefinedData input) { this.jsiiCall("giveMeUndefinedInsideAnObject", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(input, "input is required") }); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/NullShouldBeTreatedAsUndefinedData.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NullShouldBeTreatedAsUndefinedData.java similarity index 96% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/NullShouldBeTreatedAsUndefinedData.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NullShouldBeTreatedAsUndefinedData.java index 00d5a4f471..7f687bbf98 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/NullShouldBeTreatedAsUndefinedData.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NullShouldBeTreatedAsUndefinedData.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.NullShouldBeTreatedAsUndefinedData") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.NullShouldBeTreatedAsUndefinedData") @software.amazon.jsii.Jsii.Proxy(NullShouldBeTreatedAsUndefinedData.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface NullShouldBeTreatedAsUndefinedData extends software.amazon.jsii.JsiiSerializable { @@ -119,7 +119,7 @@ public java.lang.Object getThisShouldBeUndefined() { } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.compliance.NullShouldBeTreatedAsUndefinedData")); + struct.set("fqn", om.valueToTree("jsii-calc.NullShouldBeTreatedAsUndefinedData")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/NumberGenerator.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NumberGenerator.java similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/NumberGenerator.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NumberGenerator.java index 4ad25c582c..e41d1086fc 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/NumberGenerator.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/NumberGenerator.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * This allows us to test that a reference can be stored for objects that implement interfaces. @@ -7,7 +7,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.NumberGenerator") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.NumberGenerator") public class NumberGenerator extends software.amazon.jsii.JsiiObject { protected NumberGenerator(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ObjectRefsInCollections.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ObjectRefsInCollections.java similarity index 93% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ObjectRefsInCollections.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ObjectRefsInCollections.java index 609d7e3c47..00a10b6936 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ObjectRefsInCollections.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ObjectRefsInCollections.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * Verify that object references can be passed inside collections. @@ -7,7 +7,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ObjectRefsInCollections") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ObjectRefsInCollections") public class ObjectRefsInCollections extends software.amazon.jsii.JsiiObject { protected ObjectRefsInCollections(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ObjectWithPropertyProvider.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ObjectWithPropertyProvider.java similarity index 69% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ObjectWithPropertyProvider.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ObjectWithPropertyProvider.java index 4e600cce0d..399ccc041d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ObjectWithPropertyProvider.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ObjectWithPropertyProvider.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ObjectWithPropertyProvider") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ObjectWithPropertyProvider") public class ObjectWithPropertyProvider extends software.amazon.jsii.JsiiObject { protected ObjectWithPropertyProvider(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -20,7 +20,7 @@ protected ObjectWithPropertyProvider(final software.amazon.jsii.JsiiObject.Initi * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IObjectWithProperty provide() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.ObjectWithPropertyProvider.class, "provide", software.amazon.jsii.tests.calculator.compliance.IObjectWithProperty.class); + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IObjectWithProperty provide() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.ObjectWithPropertyProvider.class, "provide", software.amazon.jsii.tests.calculator.IObjectWithProperty.class); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/documented/Old.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Old.java similarity index 89% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/documented/Old.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Old.java index 74d833caa9..ef6e2e728c 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/documented/Old.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Old.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.documented; +package software.amazon.jsii.tests.calculator; /** * Old class. @@ -8,7 +8,7 @@ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.documented.Old") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Old") public class Old extends software.amazon.jsii.JsiiObject { protected Old(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/OptionalArgumentInvoker.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalArgumentInvoker.java similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/OptionalArgumentInvoker.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalArgumentInvoker.java index f405167c75..1487518bfe 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/OptionalArgumentInvoker.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalArgumentInvoker.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.OptionalArgumentInvoker") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.OptionalArgumentInvoker") public class OptionalArgumentInvoker extends software.amazon.jsii.JsiiObject { protected OptionalArgumentInvoker(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -22,7 +22,7 @@ protected OptionalArgumentInvoker(final software.amazon.jsii.JsiiObject.Initiali * @param delegate This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public OptionalArgumentInvoker(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IInterfaceWithOptionalMethodArguments delegate) { + public OptionalArgumentInvoker(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IInterfaceWithOptionalMethodArguments delegate) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(delegate, "delegate is required") }); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/OptionalConstructorArgument.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalConstructorArgument.java similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/OptionalConstructorArgument.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalConstructorArgument.java index 7ae112bd2b..10d69a4bf7 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/OptionalConstructorArgument.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalConstructorArgument.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.OptionalConstructorArgument") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.OptionalConstructorArgument") public class OptionalConstructorArgument extends software.amazon.jsii.JsiiObject { protected OptionalConstructorArgument(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/OptionalStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalStruct.java similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/OptionalStruct.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalStruct.java index a298413c44..a56204583e 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/OptionalStruct.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalStruct.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.OptionalStruct") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.OptionalStruct") @software.amazon.jsii.Jsii.Proxy(OptionalStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface OptionalStruct extends software.amazon.jsii.JsiiSerializable { @@ -92,7 +92,7 @@ public java.lang.String getField() { } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.compliance.OptionalStruct")); + struct.set("fqn", om.valueToTree("jsii-calc.OptionalStruct")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/OptionalStructConsumer.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalStructConsumer.java similarity index 80% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/OptionalStructConsumer.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalStructConsumer.java index 0a2e2c448d..a0c9e08e2d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/OptionalStructConsumer.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OptionalStructConsumer.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.OptionalStructConsumer") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.OptionalStructConsumer") public class OptionalStructConsumer extends software.amazon.jsii.JsiiObject { protected OptionalStructConsumer(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -22,7 +22,7 @@ protected OptionalStructConsumer(final software.amazon.jsii.JsiiObject.Initializ * @param optionalStruct */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public OptionalStructConsumer(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.compliance.OptionalStruct optionalStruct) { + public OptionalStructConsumer(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.OptionalStruct optionalStruct) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { optionalStruct }); } @@ -53,7 +53,7 @@ public OptionalStructConsumer() { } /** - * A fluent builder for {@link software.amazon.jsii.tests.calculator.compliance.OptionalStructConsumer}. + * A fluent builder for {@link software.amazon.jsii.tests.calculator.OptionalStructConsumer}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static final class Builder { @@ -67,7 +67,7 @@ public static Builder create() { return new Builder(); } - private software.amazon.jsii.tests.calculator.compliance.OptionalStruct.Builder optionalStruct; + private software.amazon.jsii.tests.calculator.OptionalStruct.Builder optionalStruct; private Builder() { } @@ -85,18 +85,18 @@ public Builder field(final java.lang.String field) { } /** - * @returns a newly built instance of {@link software.amazon.jsii.tests.calculator.compliance.OptionalStructConsumer}. + * @returns a newly built instance of {@link software.amazon.jsii.tests.calculator.OptionalStructConsumer}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public software.amazon.jsii.tests.calculator.compliance.OptionalStructConsumer build() { - return new software.amazon.jsii.tests.calculator.compliance.OptionalStructConsumer( + public software.amazon.jsii.tests.calculator.OptionalStructConsumer build() { + return new software.amazon.jsii.tests.calculator.OptionalStructConsumer( this.optionalStruct != null ? this.optionalStruct.build() : null ); } - private software.amazon.jsii.tests.calculator.compliance.OptionalStruct.Builder optionalStruct() { + private software.amazon.jsii.tests.calculator.OptionalStruct.Builder optionalStruct() { if (this.optionalStruct == null) { - this.optionalStruct = new software.amazon.jsii.tests.calculator.compliance.OptionalStruct.Builder(); + this.optionalStruct = new software.amazon.jsii.tests.calculator.OptionalStruct.Builder(); } return this.optionalStruct; } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/OverridableProtectedMember.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OverridableProtectedMember.java similarity index 94% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/OverridableProtectedMember.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OverridableProtectedMember.java index 6d47041d5c..c3cf0a2f5a 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/OverridableProtectedMember.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OverridableProtectedMember.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL @@ -7,7 +7,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.OverridableProtectedMember") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.OverridableProtectedMember") public class OverridableProtectedMember extends software.amazon.jsii.JsiiObject { protected OverridableProtectedMember(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/OverrideReturnsObject.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OverrideReturnsObject.java similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/OverrideReturnsObject.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OverrideReturnsObject.java index 062ec877ba..d0a12cc6d8 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/OverrideReturnsObject.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/OverrideReturnsObject.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.OverrideReturnsObject") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.OverrideReturnsObject") public class OverrideReturnsObject extends software.amazon.jsii.JsiiObject { protected OverrideReturnsObject(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -27,7 +27,7 @@ public OverrideReturnsObject() { * @param obj This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.Number test(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IReturnsNumber obj) { + public @org.jetbrains.annotations.NotNull java.lang.Number test(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IReturnsNumber obj) { return this.jsiiCall("test", java.lang.Number.class, new Object[] { java.util.Objects.requireNonNull(obj, "obj is required") }); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ParentStruct982.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ParentStruct982.java similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ParentStruct982.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ParentStruct982.java index 1b619dfb10..67b88e0df4 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ParentStruct982.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ParentStruct982.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * https://github.com/aws/jsii/issues/982. @@ -6,7 +6,7 @@ * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ParentStruct982") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ParentStruct982") @software.amazon.jsii.Jsii.Proxy(ParentStruct982.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface ParentStruct982 extends software.amazon.jsii.JsiiSerializable { @@ -90,7 +90,7 @@ public java.lang.String getFoo() { data.set("foo", om.valueToTree(this.getFoo())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.compliance.ParentStruct982")); + struct.set("fqn", om.valueToTree("jsii-calc.ParentStruct982")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/PartiallyInitializedThisConsumer.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/PartiallyInitializedThisConsumer.java similarity index 75% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/PartiallyInitializedThisConsumer.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/PartiallyInitializedThisConsumer.java index 727f54af7e..3dde64f3d0 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/PartiallyInitializedThisConsumer.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/PartiallyInitializedThisConsumer.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.PartiallyInitializedThisConsumer") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.PartiallyInitializedThisConsumer") public abstract class PartiallyInitializedThisConsumer extends software.amazon.jsii.JsiiObject { protected PartiallyInitializedThisConsumer(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -29,12 +29,12 @@ protected PartiallyInitializedThisConsumer() { * @param ev This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public abstract @org.jetbrains.annotations.NotNull java.lang.String consumePartiallyInitializedThis(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.ConstructorPassesThisOut obj, final @org.jetbrains.annotations.NotNull java.time.Instant dt, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.AllTypesEnum ev); + public abstract @org.jetbrains.annotations.NotNull java.lang.String consumePartiallyInitializedThis(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.ConstructorPassesThisOut obj, final @org.jetbrains.annotations.NotNull java.time.Instant dt, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.AllTypesEnum ev); /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.compliance.PartiallyInitializedThisConsumer { + final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.PartiallyInitializedThisConsumer { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } @@ -48,7 +48,7 @@ final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.comp */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override - public @org.jetbrains.annotations.NotNull java.lang.String consumePartiallyInitializedThis(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.ConstructorPassesThisOut obj, final @org.jetbrains.annotations.NotNull java.time.Instant dt, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.AllTypesEnum ev) { + public @org.jetbrains.annotations.NotNull java.lang.String consumePartiallyInitializedThis(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.ConstructorPassesThisOut obj, final @org.jetbrains.annotations.NotNull java.time.Instant dt, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.AllTypesEnum ev) { return this.jsiiCall("consumePartiallyInitializedThis", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(obj, "obj is required"), java.util.Objects.requireNonNull(dt, "dt is required"), java.util.Objects.requireNonNull(ev, "ev is required") }); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Polymorphism.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Polymorphism.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Polymorphism.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Polymorphism.java index 79fb305238..f19e13b1d0 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Polymorphism.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Polymorphism.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.Polymorphism") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Polymorphism") public class Polymorphism extends software.amazon.jsii.JsiiObject { protected Polymorphism(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/PublicClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/PublicClass.java similarity index 88% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/PublicClass.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/PublicClass.java index b49c80a29f..512802e367 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/PublicClass.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/PublicClass.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.PublicClass") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.PublicClass") public class PublicClass extends software.amazon.jsii.JsiiObject { protected PublicClass(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/PythonReservedWords.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/PythonReservedWords.java similarity index 98% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/PythonReservedWords.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/PythonReservedWords.java index 4472022d48..3f2eec1838 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/PythonReservedWords.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/PythonReservedWords.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.PythonReservedWords") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.PythonReservedWords") public class PythonReservedWords extends software.amazon.jsii.JsiiObject { protected PythonReservedWords(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ReferenceEnumFromScopedPackage.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ReferenceEnumFromScopedPackage.java similarity index 94% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ReferenceEnumFromScopedPackage.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ReferenceEnumFromScopedPackage.java index a754c77032..5ad21d50b0 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ReferenceEnumFromScopedPackage.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ReferenceEnumFromScopedPackage.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * See awslabs/jsii#138. @@ -7,7 +7,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ReferenceEnumFromScopedPackage") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ReferenceEnumFromScopedPackage") public class ReferenceEnumFromScopedPackage extends software.amazon.jsii.JsiiObject { protected ReferenceEnumFromScopedPackage(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ReturnsPrivateImplementationOfInterface.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ReturnsPrivateImplementationOfInterface.java similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ReturnsPrivateImplementationOfInterface.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ReturnsPrivateImplementationOfInterface.java index 7197be6670..e8beb1b973 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/ReturnsPrivateImplementationOfInterface.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/ReturnsPrivateImplementationOfInterface.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * Helps ensure the JSII kernel & runtime cooperate correctly when an un-exported instance of a class is returned with a declared type that is an exported interface, and the instance inherits from an exported class. @@ -10,7 +10,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.ReturnsPrivateImplementationOfInterface") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.ReturnsPrivateImplementationOfInterface") public class ReturnsPrivateImplementationOfInterface extends software.amazon.jsii.JsiiObject { protected ReturnsPrivateImplementationOfInterface(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -30,7 +30,7 @@ public ReturnsPrivateImplementationOfInterface() { * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IPrivatelyImplemented getPrivateImplementation() { - return this.jsiiGet("privateImplementation", software.amazon.jsii.tests.calculator.compliance.IPrivatelyImplemented.class); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IPrivatelyImplemented getPrivateImplementation() { + return this.jsiiGet("privateImplementation", software.amazon.jsii.tests.calculator.IPrivatelyImplemented.class); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/RootStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/RootStruct.java similarity index 88% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/RootStruct.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/RootStruct.java index 73c10c1991..bd8962a444 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/RootStruct.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/RootStruct.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary. @@ -9,7 +9,7 @@ * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.RootStruct") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.RootStruct") @software.amazon.jsii.Jsii.Proxy(RootStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface RootStruct extends software.amazon.jsii.JsiiSerializable { @@ -26,7 +26,7 @@ public interface RootStruct extends software.amazon.jsii.JsiiSerializable { * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - default @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.compliance.NestedStruct getNestedStruct() { + default @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.NestedStruct getNestedStruct() { return null; } @@ -43,7 +43,7 @@ static Builder builder() { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static final class Builder { private java.lang.String stringProp; - private software.amazon.jsii.tests.calculator.compliance.NestedStruct nestedStruct; + private software.amazon.jsii.tests.calculator.NestedStruct nestedStruct; /** * Sets the value of {@link RootStruct#getStringProp} @@ -62,7 +62,7 @@ public Builder stringProp(java.lang.String stringProp) { * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder nestedStruct(software.amazon.jsii.tests.calculator.compliance.NestedStruct nestedStruct) { + public Builder nestedStruct(software.amazon.jsii.tests.calculator.NestedStruct nestedStruct) { this.nestedStruct = nestedStruct; return this; } @@ -84,7 +84,7 @@ public RootStruct build() { @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements RootStruct { private final java.lang.String stringProp; - private final software.amazon.jsii.tests.calculator.compliance.NestedStruct nestedStruct; + private final software.amazon.jsii.tests.calculator.NestedStruct nestedStruct; /** * Constructor that initializes the object based on values retrieved from the JsiiObject. @@ -93,13 +93,13 @@ final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements RootSt protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); this.stringProp = this.jsiiGet("stringProp", java.lang.String.class); - this.nestedStruct = this.jsiiGet("nestedStruct", software.amazon.jsii.tests.calculator.compliance.NestedStruct.class); + this.nestedStruct = this.jsiiGet("nestedStruct", software.amazon.jsii.tests.calculator.NestedStruct.class); } /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ - private Jsii$Proxy(final java.lang.String stringProp, final software.amazon.jsii.tests.calculator.compliance.NestedStruct nestedStruct) { + private Jsii$Proxy(final java.lang.String stringProp, final software.amazon.jsii.tests.calculator.NestedStruct nestedStruct) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.stringProp = java.util.Objects.requireNonNull(stringProp, "stringProp is required"); this.nestedStruct = nestedStruct; @@ -111,7 +111,7 @@ public java.lang.String getStringProp() { } @Override - public software.amazon.jsii.tests.calculator.compliance.NestedStruct getNestedStruct() { + public software.amazon.jsii.tests.calculator.NestedStruct getNestedStruct() { return this.nestedStruct; } @@ -126,7 +126,7 @@ public software.amazon.jsii.tests.calculator.compliance.NestedStruct getNestedSt } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.compliance.RootStruct")); + struct.set("fqn", om.valueToTree("jsii-calc.RootStruct")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/RootStructValidator.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/RootStructValidator.java similarity index 68% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/RootStructValidator.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/RootStructValidator.java index d7b9971060..d0eddb2d97 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/RootStructValidator.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/RootStructValidator.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.RootStructValidator") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.RootStructValidator") public class RootStructValidator extends software.amazon.jsii.JsiiObject { protected RootStructValidator(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -22,7 +22,7 @@ protected RootStructValidator(final software.amazon.jsii.JsiiObject.Initializati * @param struct This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static void validate(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.RootStruct struct) { - software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.RootStructValidator.class, "validate", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(struct, "struct is required") }); + public static void validate(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.RootStruct struct) { + software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.RootStructValidator.class, "validate", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(struct, "struct is required") }); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/RuntimeTypeChecking.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/RuntimeTypeChecking.java similarity index 97% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/RuntimeTypeChecking.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/RuntimeTypeChecking.java index 89f3304746..9bb1c91fe7 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/RuntimeTypeChecking.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/RuntimeTypeChecking.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.RuntimeTypeChecking") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.RuntimeTypeChecking") public class RuntimeTypeChecking extends software.amazon.jsii.JsiiObject { protected RuntimeTypeChecking(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SecondLevelStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SecondLevelStruct.java similarity index 96% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SecondLevelStruct.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SecondLevelStruct.java index a2b7ab80b2..731f8d6cdd 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SecondLevelStruct.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SecondLevelStruct.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.SecondLevelStruct") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SecondLevelStruct") @software.amazon.jsii.Jsii.Proxy(SecondLevelStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface SecondLevelStruct extends software.amazon.jsii.JsiiSerializable { @@ -123,7 +123,7 @@ public java.lang.String getDeeperOptionalProp() { } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.compliance.SecondLevelStruct")); + struct.set("fqn", om.valueToTree("jsii-calc.SecondLevelStruct")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SingleInstanceTwoTypes.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingleInstanceTwoTypes.java similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SingleInstanceTwoTypes.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingleInstanceTwoTypes.java index 359fee1a77..5e5a37deab 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SingleInstanceTwoTypes.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingleInstanceTwoTypes.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * Test that a single instance can be returned under two different FQNs. @@ -11,7 +11,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.SingleInstanceTwoTypes") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SingleInstanceTwoTypes") public class SingleInstanceTwoTypes extends software.amazon.jsii.JsiiObject { protected SingleInstanceTwoTypes(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -31,15 +31,15 @@ public SingleInstanceTwoTypes() { * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.InbetweenClass interface1() { - return this.jsiiCall("interface1", software.amazon.jsii.tests.calculator.compliance.InbetweenClass.class); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.InbetweenClass interface1() { + return this.jsiiCall("interface1", software.amazon.jsii.tests.calculator.InbetweenClass.class); } /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IPublicInterface interface2() { - return this.jsiiCall("interface2", software.amazon.jsii.tests.calculator.compliance.IPublicInterface.class); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IPublicInterface interface2() { + return this.jsiiCall("interface2", software.amazon.jsii.tests.calculator.IPublicInterface.class); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SingletonInt.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonInt.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SingletonInt.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonInt.java index 51b763128f..ddfc60cac4 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SingletonInt.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonInt.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * Verifies that singleton enums are handled correctly. @@ -9,7 +9,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.SingletonInt") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SingletonInt") public class SingletonInt extends software.amazon.jsii.JsiiObject { protected SingletonInt(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SingletonIntEnum.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonIntEnum.java similarity index 77% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SingletonIntEnum.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonIntEnum.java index 86cf90de6d..954ee14d05 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SingletonIntEnum.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonIntEnum.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * A singleton integer. @@ -7,7 +7,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.SingletonIntEnum") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SingletonIntEnum") public enum SingletonIntEnum { /** * Elite! diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SingletonString.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonString.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SingletonString.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonString.java index f2391e2e75..bb6c34c8d1 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SingletonString.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonString.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * Verifies that singleton enums are handled correctly. @@ -9,7 +9,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.SingletonString") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SingletonString") public class SingletonString extends software.amazon.jsii.JsiiObject { protected SingletonString(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SingletonStringEnum.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonStringEnum.java similarity index 77% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SingletonStringEnum.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonStringEnum.java index 34eac489fa..eb528aa343 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SingletonStringEnum.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SingletonStringEnum.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * A singleton string. @@ -7,7 +7,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.SingletonStringEnum") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SingletonStringEnum") public enum SingletonStringEnum { /** * 1337. diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SomeTypeJsii976.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SomeTypeJsii976.java similarity index 73% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SomeTypeJsii976.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SomeTypeJsii976.java index 49de4361c3..dcca957771 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SomeTypeJsii976.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SomeTypeJsii976.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.SomeTypeJsii976") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SomeTypeJsii976") public class SomeTypeJsii976 extends software.amazon.jsii.JsiiObject { protected SomeTypeJsii976(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -26,14 +26,14 @@ public SomeTypeJsii976() { */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object returnAnonymous() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.SomeTypeJsii976.class, "returnAnonymous", java.lang.Object.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.SomeTypeJsii976.class, "returnAnonymous", java.lang.Object.class); } /** * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IReturnJsii976 returnReturn() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.SomeTypeJsii976.class, "returnReturn", software.amazon.jsii.tests.calculator.compliance.IReturnJsii976.class); + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IReturnJsii976 returnReturn() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.SomeTypeJsii976.class, "returnReturn", software.amazon.jsii.tests.calculator.IReturnJsii976.class); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/StableClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StableClass.java similarity index 94% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/StableClass.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StableClass.java index c6d8d1ce78..c98dd77ac2 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/StableClass.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StableClass.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.stability_annotations; +package software.amazon.jsii.tests.calculator; /** */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.stability_annotations.StableClass") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StableClass") public class StableClass extends software.amazon.jsii.JsiiObject { protected StableClass(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/StableEnum.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StableEnum.java similarity index 75% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/StableEnum.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StableEnum.java index 0a7ce94cef..7bc834ceba 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/StableEnum.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StableEnum.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.stability_annotations; +package software.amazon.jsii.tests.calculator; /** */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.stability_annotations.StableEnum") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StableEnum") public enum StableEnum { /** */ diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/StableStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StableStruct.java similarity index 94% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/StableStruct.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StableStruct.java index ff5a310ce9..4013d396ec 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/stability_annotations/StableStruct.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StableStruct.java @@ -1,9 +1,9 @@ -package software.amazon.jsii.tests.calculator.stability_annotations; +package software.amazon.jsii.tests.calculator; /** */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.stability_annotations.StableStruct") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StableStruct") @software.amazon.jsii.Jsii.Proxy(StableStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public interface StableStruct extends software.amazon.jsii.JsiiSerializable { @@ -86,7 +86,7 @@ public java.lang.String getReadonlyProperty() { data.set("readonlyProperty", om.valueToTree(this.getReadonlyProperty())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.stability_annotations.StableStruct")); + struct.set("fqn", om.valueToTree("jsii-calc.StableStruct")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StaticContext.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StaticContext.java similarity index 75% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StaticContext.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StaticContext.java index 253eacfc54..bd8decd15b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StaticContext.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StaticContext.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * This is used to validate the ability to use `this` from within a static context. @@ -9,7 +9,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.StaticContext") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StaticContext") public class StaticContext extends software.amazon.jsii.JsiiObject { protected StaticContext(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -25,7 +25,7 @@ protected StaticContext(final software.amazon.jsii.JsiiObject.InitializationMode */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Boolean canAccessStaticContext() { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.StaticContext.class, "canAccessStaticContext", java.lang.Boolean.class); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.StaticContext.class, "canAccessStaticContext", java.lang.Boolean.class); } /** @@ -33,7 +33,7 @@ protected StaticContext(final software.amazon.jsii.JsiiObject.InitializationMode */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Boolean getStaticVariable() { - return software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.compliance.StaticContext.class, "staticVariable", java.lang.Boolean.class); + return software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.StaticContext.class, "staticVariable", java.lang.Boolean.class); } /** @@ -41,6 +41,6 @@ protected StaticContext(final software.amazon.jsii.JsiiObject.InitializationMode */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static void setStaticVariable(final @org.jetbrains.annotations.NotNull java.lang.Boolean value) { - software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.compliance.StaticContext.class, "staticVariable", java.util.Objects.requireNonNull(value, "staticVariable is required")); + software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.StaticContext.class, "staticVariable", java.util.Objects.requireNonNull(value, "staticVariable is required")); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Statics.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Statics.java similarity index 74% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Statics.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Statics.java index 0a1f0f8b8a..e6721a2d42 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Statics.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Statics.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.Statics") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Statics") public class Statics extends software.amazon.jsii.JsiiObject { protected Statics(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -17,10 +17,10 @@ protected Statics(final software.amazon.jsii.JsiiObject.InitializationMode initi } static { - BAR = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.compliance.Statics.class, "BAR", java.lang.Number.class); - CONST_OBJ = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.compliance.Statics.class, "ConstObj", software.amazon.jsii.tests.calculator.compliance.DoubleTrouble.class); - FOO = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.compliance.Statics.class, "Foo", java.lang.String.class); - ZOO_BAR = java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.compliance.Statics.class, "zooBar", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); + BAR = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.Statics.class, "BAR", java.lang.Number.class); + CONST_OBJ = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.Statics.class, "ConstObj", software.amazon.jsii.tests.calculator.DoubleTrouble.class); + FOO = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.Statics.class, "Foo", java.lang.String.class); + ZOO_BAR = java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.Statics.class, "zooBar", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); } /** @@ -43,7 +43,7 @@ public Statics(final @org.jetbrains.annotations.NotNull java.lang.String value) */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.String staticMethod(final @org.jetbrains.annotations.NotNull java.lang.String name) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.Statics.class, "staticMethod", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(name, "name is required") }); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.Statics.class, "staticMethod", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(name, "name is required") }); } /** @@ -66,7 +66,7 @@ public Statics(final @org.jetbrains.annotations.NotNull java.lang.String value) * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public final static software.amazon.jsii.tests.calculator.compliance.DoubleTrouble CONST_OBJ; + public final static software.amazon.jsii.tests.calculator.DoubleTrouble CONST_OBJ; /** * Jsdocs for static property. @@ -92,8 +92,8 @@ public Statics(final @org.jetbrains.annotations.NotNull java.lang.String value) * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.Statics getInstance() { - return software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.compliance.Statics.class, "instance", software.amazon.jsii.tests.calculator.compliance.Statics.class); + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Statics getInstance() { + return software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.Statics.class, "instance", software.amazon.jsii.tests.calculator.Statics.class); } /** @@ -104,8 +104,8 @@ public Statics(final @org.jetbrains.annotations.NotNull java.lang.String value) * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public static void setInstance(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.Statics value) { - software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.compliance.Statics.class, "instance", java.util.Objects.requireNonNull(value, "instance is required")); + public static void setInstance(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.Statics value) { + software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.Statics.class, "instance", java.util.Objects.requireNonNull(value, "instance is required")); } /** @@ -113,7 +113,7 @@ public static void setInstance(final @org.jetbrains.annotations.NotNull software */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Number getNonConstStatic() { - return software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.compliance.Statics.class, "nonConstStatic", java.lang.Number.class); + return software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.jsii.tests.calculator.Statics.class, "nonConstStatic", java.lang.Number.class); } /** @@ -121,7 +121,7 @@ public static void setInstance(final @org.jetbrains.annotations.NotNull software */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static void setNonConstStatic(final @org.jetbrains.annotations.NotNull java.lang.Number value) { - software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.compliance.Statics.class, "nonConstStatic", java.util.Objects.requireNonNull(value, "nonConstStatic is required")); + software.amazon.jsii.JsiiObject.jsiiStaticSet(software.amazon.jsii.tests.calculator.Statics.class, "nonConstStatic", java.util.Objects.requireNonNull(value, "nonConstStatic is required")); } /** diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StringEnum.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StringEnum.java similarity index 83% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StringEnum.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StringEnum.java index 909584a795..948d3e50f3 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StringEnum.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StringEnum.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.StringEnum") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StringEnum") public enum StringEnum { /** * EXPERIMENTAL diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StripInternal.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StripInternal.java similarity index 91% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StripInternal.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StripInternal.java index 063cbb7465..64ac68fabe 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StripInternal.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StripInternal.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.StripInternal") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StripInternal") public class StripInternal extends software.amazon.jsii.JsiiObject { protected StripInternal(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StructA.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructA.java similarity index 97% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StructA.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructA.java index f1d9f26694..374c3ec085 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StructA.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructA.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * We can serialize and deserialize structs without silently ignoring optional fields. @@ -6,7 +6,7 @@ * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.StructA") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StructA") @software.amazon.jsii.Jsii.Proxy(StructA.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface StructA extends software.amazon.jsii.JsiiSerializable { @@ -152,7 +152,7 @@ public java.lang.String getOptionalString() { } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.compliance.StructA")); + struct.set("fqn", om.valueToTree("jsii-calc.StructA")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StructB.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructB.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StructB.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructB.java index e841026e2b..b1d440d443 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StructB.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructB.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * This intentionally overlaps with StructA (where only requiredString is provided) to test htat the kernel properly disambiguates those. @@ -6,7 +6,7 @@ * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.StructB") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StructB") @software.amazon.jsii.Jsii.Proxy(StructB.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface StructB extends software.amazon.jsii.JsiiSerializable { @@ -29,7 +29,7 @@ public interface StructB extends software.amazon.jsii.JsiiSerializable { * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - default @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.compliance.StructA getOptionalStructA() { + default @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.StructA getOptionalStructA() { return null; } @@ -47,7 +47,7 @@ static Builder builder() { public static final class Builder { private java.lang.String requiredString; private java.lang.Boolean optionalBoolean; - private software.amazon.jsii.tests.calculator.compliance.StructA optionalStructA; + private software.amazon.jsii.tests.calculator.StructA optionalStructA; /** * Sets the value of {@link StructB#getRequiredString} @@ -77,7 +77,7 @@ public Builder optionalBoolean(java.lang.Boolean optionalBoolean) { * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder optionalStructA(software.amazon.jsii.tests.calculator.compliance.StructA optionalStructA) { + public Builder optionalStructA(software.amazon.jsii.tests.calculator.StructA optionalStructA) { this.optionalStructA = optionalStructA; return this; } @@ -100,7 +100,7 @@ public StructB build() { final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements StructB { private final java.lang.String requiredString; private final java.lang.Boolean optionalBoolean; - private final software.amazon.jsii.tests.calculator.compliance.StructA optionalStructA; + private final software.amazon.jsii.tests.calculator.StructA optionalStructA; /** * Constructor that initializes the object based on values retrieved from the JsiiObject. @@ -110,13 +110,13 @@ final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements Struct super(objRef); this.requiredString = this.jsiiGet("requiredString", java.lang.String.class); this.optionalBoolean = this.jsiiGet("optionalBoolean", java.lang.Boolean.class); - this.optionalStructA = this.jsiiGet("optionalStructA", software.amazon.jsii.tests.calculator.compliance.StructA.class); + this.optionalStructA = this.jsiiGet("optionalStructA", software.amazon.jsii.tests.calculator.StructA.class); } /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ - private Jsii$Proxy(final java.lang.String requiredString, final java.lang.Boolean optionalBoolean, final software.amazon.jsii.tests.calculator.compliance.StructA optionalStructA) { + private Jsii$Proxy(final java.lang.String requiredString, final java.lang.Boolean optionalBoolean, final software.amazon.jsii.tests.calculator.StructA optionalStructA) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.requiredString = java.util.Objects.requireNonNull(requiredString, "requiredString is required"); this.optionalBoolean = optionalBoolean; @@ -134,7 +134,7 @@ public java.lang.Boolean getOptionalBoolean() { } @Override - public software.amazon.jsii.tests.calculator.compliance.StructA getOptionalStructA() { + public software.amazon.jsii.tests.calculator.StructA getOptionalStructA() { return this.optionalStructA; } @@ -152,7 +152,7 @@ public software.amazon.jsii.tests.calculator.compliance.StructA getOptionalStruc } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.compliance.StructB")); + struct.set("fqn", om.valueToTree("jsii-calc.StructB")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StructParameterType.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructParameterType.java similarity index 96% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StructParameterType.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructParameterType.java index 9d39f74ec6..14508ac359 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StructParameterType.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructParameterType.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * Verifies that, in languages that do keyword lifting (e.g: Python), having a struct member with the same name as a positional parameter results in the correct code being emitted. @@ -8,7 +8,7 @@ * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.StructParameterType") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StructParameterType") @software.amazon.jsii.Jsii.Proxy(StructParameterType.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface StructParameterType extends software.amazon.jsii.JsiiSerializable { @@ -123,7 +123,7 @@ public java.lang.Boolean getProps() { } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.compliance.StructParameterType")); + struct.set("fqn", om.valueToTree("jsii-calc.StructParameterType")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StructPassing.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructPassing.java similarity index 58% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StructPassing.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructPassing.java index 0d31f007f5..8de8c3a13a 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StructPassing.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructPassing.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * Just because we can. */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.StructPassing") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StructPassing") public class StructPassing extends software.amazon.jsii.JsiiObject { protected StructPassing(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -26,8 +26,8 @@ public StructPassing() { * @param inputs This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) - public static @org.jetbrains.annotations.NotNull java.lang.Number howManyVarArgsDidIPass(final @org.jetbrains.annotations.NotNull java.lang.Number _positional, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.TopLevelStruct... inputs) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.StructPassing.class, "howManyVarArgsDidIPass", java.lang.Number.class, java.util.stream.Stream.concat(java.util.Arrays.stream(new Object[] { java.util.Objects.requireNonNull(_positional, "_positional is required") }), java.util.Arrays.stream(inputs)).toArray(Object[]::new)); + public static @org.jetbrains.annotations.NotNull java.lang.Number howManyVarArgsDidIPass(final @org.jetbrains.annotations.NotNull java.lang.Number _positional, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.TopLevelStruct... inputs) { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.StructPassing.class, "howManyVarArgsDidIPass", java.lang.Number.class, java.util.stream.Stream.concat(java.util.Arrays.stream(new Object[] { java.util.Objects.requireNonNull(_positional, "_positional is required") }), java.util.Arrays.stream(inputs)).toArray(Object[]::new)); } /** @@ -35,7 +35,7 @@ public StructPassing() { * @param input This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.External) - public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.TopLevelStruct roundTrip(final @org.jetbrains.annotations.NotNull java.lang.Number _positional, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.TopLevelStruct input) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.StructPassing.class, "roundTrip", software.amazon.jsii.tests.calculator.compliance.TopLevelStruct.class, new Object[] { java.util.Objects.requireNonNull(_positional, "_positional is required"), java.util.Objects.requireNonNull(input, "input is required") }); + public static @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.TopLevelStruct roundTrip(final @org.jetbrains.annotations.NotNull java.lang.Number _positional, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.TopLevelStruct input) { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.StructPassing.class, "roundTrip", software.amazon.jsii.tests.calculator.TopLevelStruct.class, new Object[] { java.util.Objects.requireNonNull(_positional, "_positional is required"), java.util.Objects.requireNonNull(input, "input is required") }); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StructUnionConsumer.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructUnionConsumer.java similarity index 72% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StructUnionConsumer.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructUnionConsumer.java index 8d6ba5a75f..045dac6713 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StructUnionConsumer.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructUnionConsumer.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.StructUnionConsumer") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StructUnionConsumer") public class StructUnionConsumer extends software.amazon.jsii.JsiiObject { protected StructUnionConsumer(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -23,7 +23,7 @@ protected StructUnionConsumer(final software.amazon.jsii.JsiiObject.Initializati */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Boolean isStructA(final @org.jetbrains.annotations.NotNull java.lang.Object struct) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.StructUnionConsumer.class, "isStructA", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(struct, "struct is required") }); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.StructUnionConsumer.class, "isStructA", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(struct, "struct is required") }); } /** @@ -33,6 +33,6 @@ protected StructUnionConsumer(final software.amazon.jsii.JsiiObject.Initializati */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Boolean isStructB(final @org.jetbrains.annotations.NotNull java.lang.Object struct) { - return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.compliance.StructUnionConsumer.class, "isStructB", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(struct, "struct is required") }); + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.StructUnionConsumer.class, "isStructB", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(struct, "struct is required") }); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StructWithJavaReservedWords.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructWithJavaReservedWords.java similarity index 97% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StructWithJavaReservedWords.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructWithJavaReservedWords.java index 83fedce168..08d05baaa7 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/StructWithJavaReservedWords.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/StructWithJavaReservedWords.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.StructWithJavaReservedWords") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.StructWithJavaReservedWords") @software.amazon.jsii.Jsii.Proxy(StructWithJavaReservedWords.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface StructWithJavaReservedWords extends software.amazon.jsii.JsiiSerializable { @@ -181,7 +181,7 @@ public java.lang.String getThat() { } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.compliance.StructWithJavaReservedWords")); + struct.set("fqn", om.valueToTree("jsii-calc.StructWithJavaReservedWords")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SupportsNiceJavaBuilder.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SupportsNiceJavaBuilder.java similarity index 84% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SupportsNiceJavaBuilder.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SupportsNiceJavaBuilder.java index 988cb2a9f7..3394a1fc20 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SupportsNiceJavaBuilder.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SupportsNiceJavaBuilder.java @@ -1,12 +1,12 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.SupportsNiceJavaBuilder") -public class SupportsNiceJavaBuilder extends software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilderWithRequiredProps { +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SupportsNiceJavaBuilder") +public class SupportsNiceJavaBuilder extends software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderWithRequiredProps { protected SupportsNiceJavaBuilder(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); @@ -25,7 +25,7 @@ protected SupportsNiceJavaBuilder(final software.amazon.jsii.JsiiObject.Initiali * @param rest a variadic continuation. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public SupportsNiceJavaBuilder(final @org.jetbrains.annotations.NotNull java.lang.Number id, final @org.jetbrains.annotations.Nullable java.lang.Number defaultBar, final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilderProps props, final @org.jetbrains.annotations.NotNull java.lang.String... rest) { + public SupportsNiceJavaBuilder(final @org.jetbrains.annotations.NotNull java.lang.Number id, final @org.jetbrains.annotations.Nullable java.lang.Number defaultBar, final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderProps props, final @org.jetbrains.annotations.NotNull java.lang.String... rest) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, java.util.stream.Stream.concat(java.util.Arrays.stream(new Object[] { java.util.Objects.requireNonNull(id, "id is required"), defaultBar, props }), java.util.Arrays.stream(rest)).toArray(Object[]::new)); } @@ -50,7 +50,7 @@ public SupportsNiceJavaBuilder(final @org.jetbrains.annotations.NotNull java.lan } /** - * A fluent builder for {@link software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilder}. + * A fluent builder for {@link software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilder}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static final class Builder { @@ -80,7 +80,7 @@ public static Builder create(final java.lang.Number id) { private final java.lang.Number id; private final java.lang.Number defaultBar; private final java.lang.String[] rest; - private software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilderProps.Builder props; + private software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderProps.Builder props; private Builder(final java.lang.Number id, final java.lang.Number defaultBar, final java.lang.String... rest) { this.id = id; @@ -119,11 +119,11 @@ public Builder id(final java.lang.String id) { } /** - * @returns a newly built instance of {@link software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilder}. + * @returns a newly built instance of {@link software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilder}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilder build() { - return new software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilder( + public software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilder build() { + return new software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilder( this.id, this.defaultBar, this.props != null ? this.props.build() : null, @@ -131,9 +131,9 @@ public software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilder ); } - private software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilderProps.Builder props() { + private software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderProps.Builder props() { if (this.props == null) { - this.props = new software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilderProps.Builder(); + this.props = new software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderProps.Builder(); } return this.props; } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SupportsNiceJavaBuilderProps.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SupportsNiceJavaBuilderProps.java similarity index 96% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SupportsNiceJavaBuilderProps.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SupportsNiceJavaBuilderProps.java index e5ceea097d..abd09065de 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SupportsNiceJavaBuilderProps.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SupportsNiceJavaBuilderProps.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.SupportsNiceJavaBuilderProps") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SupportsNiceJavaBuilderProps") @software.amazon.jsii.Jsii.Proxy(SupportsNiceJavaBuilderProps.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface SupportsNiceJavaBuilderProps extends software.amazon.jsii.JsiiSerializable { @@ -126,7 +126,7 @@ public java.lang.String getId() { } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.compliance.SupportsNiceJavaBuilderProps")); + struct.set("fqn", om.valueToTree("jsii-calc.SupportsNiceJavaBuilderProps")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SupportsNiceJavaBuilderWithRequiredProps.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SupportsNiceJavaBuilderWithRequiredProps.java similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SupportsNiceJavaBuilderWithRequiredProps.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SupportsNiceJavaBuilderWithRequiredProps.java index 7f017b4a54..08c2d49c2f 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SupportsNiceJavaBuilderWithRequiredProps.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SupportsNiceJavaBuilderWithRequiredProps.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * We can generate fancy builders in Java for classes which take a mix of positional & struct parameters. @@ -7,7 +7,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.SupportsNiceJavaBuilderWithRequiredProps") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SupportsNiceJavaBuilderWithRequiredProps") public class SupportsNiceJavaBuilderWithRequiredProps extends software.amazon.jsii.JsiiObject { protected SupportsNiceJavaBuilderWithRequiredProps(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -25,7 +25,7 @@ protected SupportsNiceJavaBuilderWithRequiredProps(final software.amazon.jsii.Js * @param props some properties. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public SupportsNiceJavaBuilderWithRequiredProps(final @org.jetbrains.annotations.NotNull java.lang.Number id, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilderProps props) { + public SupportsNiceJavaBuilderWithRequiredProps(final @org.jetbrains.annotations.NotNull java.lang.Number id, final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderProps props) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(props, "props is required") }); } @@ -57,7 +57,7 @@ public SupportsNiceJavaBuilderWithRequiredProps(final @org.jetbrains.annotations } /** - * A fluent builder for {@link software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilderWithRequiredProps}. + * A fluent builder for {@link software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderWithRequiredProps}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static final class Builder { @@ -73,11 +73,11 @@ public static Builder create(final java.lang.Number id) { } private final java.lang.Number id; - private final software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilderProps.Builder props; + private final software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderProps.Builder props; private Builder(final java.lang.Number id) { this.id = id; - this.props = new software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilderProps.Builder(); + this.props = new software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderProps.Builder(); } /** @@ -111,11 +111,11 @@ public Builder id(final java.lang.String id) { } /** - * @returns a newly built instance of {@link software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilderWithRequiredProps}. + * @returns a newly built instance of {@link software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderWithRequiredProps}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilderWithRequiredProps build() { - return new software.amazon.jsii.tests.calculator.compliance.SupportsNiceJavaBuilderWithRequiredProps( + public software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderWithRequiredProps build() { + return new software.amazon.jsii.tests.calculator.SupportsNiceJavaBuilderWithRequiredProps( this.id, this.props.build() ); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SyncVirtualMethods.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SyncVirtualMethods.java similarity index 98% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SyncVirtualMethods.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SyncVirtualMethods.java index a20dca77a1..e63bcab0bf 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/SyncVirtualMethods.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/SyncVirtualMethods.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.SyncVirtualMethods") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.SyncVirtualMethods") public class SyncVirtualMethods extends software.amazon.jsii.JsiiObject { protected SyncVirtualMethods(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Thrower.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Thrower.java similarity index 88% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Thrower.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Thrower.java index 90b840b0a1..cb11bafd06 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/Thrower.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/Thrower.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.Thrower") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.Thrower") public class Thrower extends software.amazon.jsii.JsiiObject { protected Thrower(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/TopLevelStruct.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/TopLevelStruct.java similarity index 96% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/TopLevelStruct.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/TopLevelStruct.java index 8b0803d1e0..44ed331fde 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/TopLevelStruct.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/TopLevelStruct.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.TopLevelStruct") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.TopLevelStruct") @software.amazon.jsii.Jsii.Proxy(TopLevelStruct.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface TopLevelStruct extends software.amazon.jsii.JsiiSerializable { @@ -79,7 +79,7 @@ public Builder secondLevel(java.lang.Number secondLevel) { * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder secondLevel(software.amazon.jsii.tests.calculator.compliance.SecondLevelStruct secondLevel) { + public Builder secondLevel(software.amazon.jsii.tests.calculator.SecondLevelStruct secondLevel) { this.secondLevel = secondLevel; return this; } @@ -163,7 +163,7 @@ public java.lang.String getOptional() { } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.compliance.TopLevelStruct")); + struct.set("fqn", om.valueToTree("jsii-calc.TopLevelStruct")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/UnionProperties.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UnionProperties.java similarity index 96% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/UnionProperties.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UnionProperties.java index 9f12368541..e1c525de0a 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/UnionProperties.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UnionProperties.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.UnionProperties") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.UnionProperties") @software.amazon.jsii.Jsii.Proxy(UnionProperties.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface UnionProperties extends software.amazon.jsii.JsiiSerializable { @@ -66,7 +66,7 @@ public Builder bar(java.lang.Number bar) { * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public Builder bar(software.amazon.jsii.tests.calculator.compliance.AllTypes bar) { + public Builder bar(software.amazon.jsii.tests.calculator.AllTypes bar) { this.bar = bar; return this; } @@ -152,7 +152,7 @@ public java.lang.Object getFoo() { } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.compliance.UnionProperties")); + struct.set("fqn", om.valueToTree("jsii-calc.UnionProperties")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/UseBundledDependency.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UseBundledDependency.java similarity index 88% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/UseBundledDependency.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UseBundledDependency.java index a8eb21a140..31377964d5 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/UseBundledDependency.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UseBundledDependency.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.UseBundledDependency") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.UseBundledDependency") public class UseBundledDependency extends software.amazon.jsii.JsiiObject { protected UseBundledDependency(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/UseCalcBase.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UseCalcBase.java similarity index 90% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/UseCalcBase.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UseCalcBase.java index 3fa167f8c5..eff7d25cdc 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/UseCalcBase.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UseCalcBase.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * Depend on a type from jsii-calc-base as a test for awslabs/jsii#128. @@ -7,7 +7,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.UseCalcBase") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.UseCalcBase") public class UseCalcBase extends software.amazon.jsii.JsiiObject { protected UseCalcBase(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/UsesInterfaceWithProperties.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UsesInterfaceWithProperties.java similarity index 85% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/UsesInterfaceWithProperties.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UsesInterfaceWithProperties.java index 98cf447f22..fc14df07e5 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/UsesInterfaceWithProperties.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UsesInterfaceWithProperties.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.UsesInterfaceWithProperties") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.UsesInterfaceWithProperties") public class UsesInterfaceWithProperties extends software.amazon.jsii.JsiiObject { protected UsesInterfaceWithProperties(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -22,7 +22,7 @@ protected UsesInterfaceWithProperties(final software.amazon.jsii.JsiiObject.Init * @param obj This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public UsesInterfaceWithProperties(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IInterfaceWithProperties obj) { + public UsesInterfaceWithProperties(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IInterfaceWithProperties obj) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(obj, "obj is required") }); } @@ -41,7 +41,7 @@ public UsesInterfaceWithProperties(final @org.jetbrains.annotations.NotNull soft * @param ext This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull java.lang.String readStringAndNumber(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IInterfaceWithPropertiesExtension ext) { + public @org.jetbrains.annotations.NotNull java.lang.String readStringAndNumber(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IInterfaceWithPropertiesExtension ext) { return this.jsiiCall("readStringAndNumber", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(ext, "ext is required") }); } @@ -59,7 +59,7 @@ public UsesInterfaceWithProperties(final @org.jetbrains.annotations.NotNull soft * EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.IInterfaceWithProperties getObj() { - return this.jsiiGet("obj", software.amazon.jsii.tests.calculator.compliance.IInterfaceWithProperties.class); + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.IInterfaceWithProperties getObj() { + return this.jsiiGet("obj", software.amazon.jsii.tests.calculator.IInterfaceWithProperties.class); } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/VariadicInvoker.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VariadicInvoker.java similarity index 88% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/VariadicInvoker.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VariadicInvoker.java index 6e47eae127..701f53dce1 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/VariadicInvoker.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VariadicInvoker.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.VariadicInvoker") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.VariadicInvoker") public class VariadicInvoker extends software.amazon.jsii.JsiiObject { protected VariadicInvoker(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -22,7 +22,7 @@ protected VariadicInvoker(final software.amazon.jsii.JsiiObject.InitializationMo * @param method This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) - public VariadicInvoker(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.compliance.VariadicMethod method) { + public VariadicInvoker(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.VariadicMethod method) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(method, "method is required") }); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/VariadicMethod.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VariadicMethod.java similarity index 94% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/VariadicMethod.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VariadicMethod.java index e2f04f44f3..2d61b3fa33 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/VariadicMethod.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VariadicMethod.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.VariadicMethod") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.VariadicMethod") public class VariadicMethod extends software.amazon.jsii.JsiiObject { protected VariadicMethod(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/VirtualMethodPlayground.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VirtualMethodPlayground.java similarity index 95% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/VirtualMethodPlayground.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VirtualMethodPlayground.java index 6078c4fffc..af2db09e1b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/VirtualMethodPlayground.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VirtualMethodPlayground.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.VirtualMethodPlayground") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.VirtualMethodPlayground") public class VirtualMethodPlayground extends software.amazon.jsii.JsiiObject { protected VirtualMethodPlayground(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/VoidCallback.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VoidCallback.java similarity index 93% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/VoidCallback.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VoidCallback.java index f49338dd6a..e666e38fec 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/VoidCallback.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/VoidCallback.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * This test is used to validate the runtimes can return correctly from a void callback. @@ -13,7 +13,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.VoidCallback") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.VoidCallback") public abstract class VoidCallback extends software.amazon.jsii.JsiiObject { protected VoidCallback(final software.amazon.jsii.JsiiObjectRef objRef) { @@ -54,7 +54,7 @@ public void callMe() { /** * A proxy class which represents a concrete javascript instance of this type. */ - final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.compliance.VoidCallback { + final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.VoidCallback { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/WithPrivatePropertyInConstructor.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/WithPrivatePropertyInConstructor.java similarity index 92% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/WithPrivatePropertyInConstructor.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/WithPrivatePropertyInConstructor.java index 7b965323bd..307ba31434 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/WithPrivatePropertyInConstructor.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/WithPrivatePropertyInConstructor.java @@ -1,4 +1,4 @@ -package software.amazon.jsii.tests.calculator.compliance; +package software.amazon.jsii.tests.calculator; /** * Verifies that private property declarations in constructor arguments are hidden. @@ -7,7 +7,7 @@ */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.WithPrivatePropertyInConstructor") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.WithPrivatePropertyInConstructor") public class WithPrivatePropertyInConstructor extends software.amazon.jsii.JsiiObject { protected WithPrivatePropertyInConstructor(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/derived_class_has_no_properties/Base.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/derived_class_has_no_properties/Base.java similarity index 87% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/derived_class_has_no_properties/Base.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/derived_class_has_no_properties/Base.java index 8b8d1e67f2..351ad6515a 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/derived_class_has_no_properties/Base.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/derived_class_has_no_properties/Base.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance.derived_class_has_no_properties; +package software.amazon.jsii.tests.calculator.derived_class_has_no_properties; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.DerivedClassHasNoProperties.Base") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DerivedClassHasNoProperties.Base") public class Base extends software.amazon.jsii.JsiiObject { protected Base(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/derived_class_has_no_properties/Derived.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/derived_class_has_no_properties/Derived.java similarity index 75% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/derived_class_has_no_properties/Derived.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/derived_class_has_no_properties/Derived.java index c2fd8a2fba..2544874c3a 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/derived_class_has_no_properties/Derived.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/derived_class_has_no_properties/Derived.java @@ -1,12 +1,12 @@ -package software.amazon.jsii.tests.calculator.compliance.derived_class_has_no_properties; +package software.amazon.jsii.tests.calculator.derived_class_has_no_properties; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.DerivedClassHasNoProperties.Derived") -public class Derived extends software.amazon.jsii.tests.calculator.compliance.derived_class_has_no_properties.Base { +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.DerivedClassHasNoProperties.Derived") +public class Derived extends software.amazon.jsii.tests.calculator.derived_class_has_no_properties.Base { protected Derived(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/interface_in_namespace_includes_classes/Foo.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/interface_in_namespace_includes_classes/Foo.java similarity index 86% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/interface_in_namespace_includes_classes/Foo.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/interface_in_namespace_includes_classes/Foo.java index eea7b5cb9b..1c4a652e4f 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/interface_in_namespace_includes_classes/Foo.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/interface_in_namespace_includes_classes/Foo.java @@ -1,11 +1,11 @@ -package software.amazon.jsii.tests.calculator.compliance.interface_in_namespace_includes_classes; +package software.amazon.jsii.tests.calculator.interface_in_namespace_includes_classes; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Foo") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.InterfaceInNamespaceIncludesClasses.Foo") public class Foo extends software.amazon.jsii.JsiiObject { protected Foo(final software.amazon.jsii.JsiiObjectRef objRef) { diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/interface_in_namespace_only_interface/Hello.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/interface_in_namespace_includes_classes/Hello.java similarity index 93% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/interface_in_namespace_only_interface/Hello.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/interface_in_namespace_includes_classes/Hello.java index e5a3881998..2ac3a8a133 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/interface_in_namespace_only_interface/Hello.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/interface_in_namespace_includes_classes/Hello.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.compliance.interface_in_namespace_only_interface; +package software.amazon.jsii.tests.calculator.interface_in_namespace_includes_classes; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.InterfaceInNamespaceOnlyInterface.Hello") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.InterfaceInNamespaceIncludesClasses.Hello") @software.amazon.jsii.Jsii.Proxy(Hello.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface Hello extends software.amazon.jsii.JsiiSerializable { @@ -88,7 +88,7 @@ public java.lang.Number getFoo() { data.set("foo", om.valueToTree(this.getFoo())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.compliance.InterfaceInNamespaceOnlyInterface.Hello")); + struct.set("fqn", om.valueToTree("jsii-calc.InterfaceInNamespaceIncludesClasses.Hello")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/interface_in_namespace_includes_classes/Hello.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/interface_in_namespace_only_interface/Hello.java similarity index 93% rename from packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/interface_in_namespace_includes_classes/Hello.java rename to packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/interface_in_namespace_only_interface/Hello.java index b35b7d1de5..f2558d4221 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/compliance/interface_in_namespace_includes_classes/Hello.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/interface_in_namespace_only_interface/Hello.java @@ -1,10 +1,10 @@ -package software.amazon.jsii.tests.calculator.compliance.interface_in_namespace_includes_classes; +package software.amazon.jsii.tests.calculator.interface_in_namespace_only_interface; /** * EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak") -@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Hello") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.InterfaceInNamespaceOnlyInterface.Hello") @software.amazon.jsii.Jsii.Proxy(Hello.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface Hello extends software.amazon.jsii.JsiiSerializable { @@ -88,7 +88,7 @@ public java.lang.Number getFoo() { data.set("foo", om.valueToTree(this.getFoo())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); - struct.set("fqn", om.valueToTree("jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Hello")); + struct.set("fqn", om.valueToTree("jsii-calc.InterfaceInNamespaceOnlyInterface.Hello")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/Structure.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/Structure.java new file mode 100644 index 0000000000..9ddcc8d1dd --- /dev/null +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/Structure.java @@ -0,0 +1,116 @@ +package software.amazon.jsii.tests.calculator.submodule.child; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.submodule.child.Structure") +@software.amazon.jsii.Jsii.Proxy(Structure.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface Structure extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.Boolean getBool(); + + /** + * @return a {@link Builder} of {@link Structure} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link Structure} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder { + private java.lang.Boolean bool; + + /** + * Sets the value of {@link Structure#getBool} + * @param bool the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder bool(java.lang.Boolean bool) { + this.bool = bool; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link Structure} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Structure build() { + return new Jsii$Proxy(bool); + } + } + + /** + * An implementation for {@link Structure} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements Structure { + private final java.lang.Boolean bool; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.bool = this.jsiiGet("bool", java.lang.Boolean.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final java.lang.Boolean bool) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.bool = java.util.Objects.requireNonNull(bool, "bool is required"); + } + + @Override + public java.lang.Boolean getBool() { + return this.bool; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + data.set("bool", om.valueToTree(this.getBool())); + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set("fqn", om.valueToTree("jsii-calc.submodule.child.Structure")); + struct.set("data", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set("$jsii.struct", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + Structure.Jsii$Proxy that = (Structure.Jsii$Proxy) o; + + return this.bool.equals(that.bool); + } + + @Override + public int hashCode() { + int result = this.bool.hashCode(); + return result; + } + } +} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/nested_submodule/Namespaced.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/nested_submodule/Namespaced.java new file mode 100644 index 0000000000..15c5655731 --- /dev/null +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/nested_submodule/Namespaced.java @@ -0,0 +1,27 @@ +package software.amazon.jsii.tests.calculator.submodule.nested_submodule; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.submodule.nested_submodule.Namespaced") +public class Namespaced extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.submodule.nested_submodule.deeply_nested.INamespaced { + + protected Namespaced(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected Namespaced(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getDefinedAt() { + return this.jsiiGet("definedAt", java.lang.String.class); + } +} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/nested_submodule/deeply_nested/INamespaced.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/nested_submodule/deeply_nested/INamespaced.java new file mode 100644 index 0000000000..bbd6b414c9 --- /dev/null +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/nested_submodule/deeply_nested/INamespaced.java @@ -0,0 +1,35 @@ +package software.amazon.jsii.tests.calculator.submodule.nested_submodule.deeply_nested; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced") +@software.amazon.jsii.Jsii.Proxy(INamespaced.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface INamespaced extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull java.lang.String getDefinedAt(); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.submodule.nested_submodule.deeply_nested.INamespaced { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getDefinedAt() { + return this.jsiiGet("definedAt", java.lang.String.class); + } + } +} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/setup.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/setup.py index 9f990b299d..cc1ddfb9d1 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/setup.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/setup.py @@ -19,14 +19,14 @@ "packages": [ "jsii_calc", "jsii_calc._jsii", - "jsii_calc.compliance", - "jsii_calc.compliance.derived_class_has_no_properties", - "jsii_calc.compliance.interface_in_namespace_includes_classes", - "jsii_calc.compliance.interface_in_namespace_only_interface", "jsii_calc.composition", - "jsii_calc.documented", - "jsii_calc.erasure_tests", - "jsii_calc.stability_annotations" + "jsii_calc.derived_class_has_no_properties", + "jsii_calc.interface_in_namespace_includes_classes", + "jsii_calc.interface_in_namespace_only_interface", + "jsii_calc.submodule", + "jsii_calc.submodule.child", + "jsii_calc.submodule.nested_submodule", + "jsii_calc.submodule.nested_submodule.deeply_nested" ], "package_data": { "jsii_calc._jsii": [ diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/__init__.py index 6614236bf1..f264743a2a 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/__init__.py @@ -45,6 +45,74 @@ __jsii_assembly__ = jsii.JSIIAssembly.load("jsii-calc", "1.1.0", "jsii_calc", "jsii-calc@1.1.0.jsii.tgz") +class AbstractClassBase(metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.AbstractClassBase"): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _AbstractClassBaseProxy + + def __init__(self) -> None: + jsii.create(AbstractClassBase, self, []) + + @builtins.property + @jsii.member(jsii_name="abstractProperty") + @abc.abstractmethod + def abstract_property(self) -> str: + """ + stability + :stability: experimental + """ + ... + + +class _AbstractClassBaseProxy(AbstractClassBase): + @builtins.property + @jsii.member(jsii_name="abstractProperty") + def abstract_property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "abstractProperty") + + +class AbstractClassReturner(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AbstractClassReturner"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(AbstractClassReturner, self, []) + + @jsii.member(jsii_name="giveMeAbstract") + def give_me_abstract(self) -> "AbstractClass": + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "giveMeAbstract", []) + + @jsii.member(jsii_name="giveMeInterface") + def give_me_interface(self) -> "IInterfaceImplementedByAbstractClass": + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "giveMeInterface", []) + + @builtins.property + @jsii.member(jsii_name="returnAbstractFromProperty") + def return_abstract_from_property(self) -> "AbstractClassBase": + """ + stability + :stability: experimental + """ + return jsii.get(self, "returnAbstractFromProperty") + + class AbstractSuite(metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.AbstractSuite"): """Ensures abstract members implementations correctly register overrides in various languages. @@ -121,409 +189,7560 @@ def _property(self, value: str): jsii.set(self, "property", value) -@jsii.implements(scope.jsii_calc_lib.IFriendly) -class BinaryOperation(scope.jsii_calc_lib.Operation, metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.BinaryOperation"): - """Represents an operation with two operands. +class AllTypes(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AllTypes"): + """This class includes property for all types supported by jsii. + + The setters will validate + that the value set is of the expected type and throw otherwise. stability :stability: experimental """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _BinaryOperationProxy + def __init__(self) -> None: + jsii.create(AllTypes, self, []) - def __init__(self, lhs: scope.jsii_calc_lib.Value, rhs: scope.jsii_calc_lib.Value) -> None: - """Creates a BinaryOperation. + @jsii.member(jsii_name="anyIn") + def any_in(self, inp: typing.Any) -> None: + """ + :param inp: - - :param lhs: Left-hand side operand. - :param rhs: Right-hand side operand. + stability + :stability: experimental + """ + return jsii.invoke(self, "anyIn", [inp]) + @jsii.member(jsii_name="anyOut") + def any_out(self) -> typing.Any: + """ stability :stability: experimental """ - jsii.create(BinaryOperation, self, [lhs, rhs]) + return jsii.invoke(self, "anyOut", []) - @jsii.member(jsii_name="hello") - def hello(self) -> str: - """Say hello! + @jsii.member(jsii_name="enumMethod") + def enum_method(self, value: "StringEnum") -> "StringEnum": + """ + :param value: - stability :stability: experimental """ - return jsii.invoke(self, "hello", []) + return jsii.invoke(self, "enumMethod", [value]) @builtins.property - @jsii.member(jsii_name="lhs") - def lhs(self) -> scope.jsii_calc_lib.Value: - """Left-hand side operand. - + @jsii.member(jsii_name="enumPropertyValue") + def enum_property_value(self) -> jsii.Number: + """ stability :stability: experimental """ - return jsii.get(self, "lhs") + return jsii.get(self, "enumPropertyValue") @builtins.property - @jsii.member(jsii_name="rhs") - def rhs(self) -> scope.jsii_calc_lib.Value: - """Right-hand side operand. - + @jsii.member(jsii_name="anyArrayProperty") + def any_array_property(self) -> typing.List[typing.Any]: + """ stability :stability: experimental """ - return jsii.get(self, "rhs") - - -class _BinaryOperationProxy(BinaryOperation, jsii.proxy_for(scope.jsii_calc_lib.Operation)): - pass - -class Calculator(composition.CompositeOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Calculator"): - """A calculator which maintains a current value and allows adding operations. - - Here's how you use it:: - - # Example automatically generated. See https://github.com/aws/jsii/issues/826 - calculator = calc.Calculator() - calculator.add(5) - calculator.mul(3) - print(calculator.expression.value) - - I will repeat this example again, but in an @example tag. - - stability - :stability: experimental - - Example:: - - # Example automatically generated. See https://github.com/aws/jsii/issues/826 - calculator = calc.Calculator() - calculator.add(5) - calculator.mul(3) - print(calculator.expression.value) - """ - def __init__(self, *, initial_value: typing.Optional[jsii.Number]=None, maximum_value: typing.Optional[jsii.Number]=None) -> None: - """Creates a Calculator object. + return jsii.get(self, "anyArrayProperty") - :param initial_value: The initial value of the calculator. NOTE: Any number works here, it's fine. Default: 0 - :param maximum_value: The maximum value the calculator can store. Default: none + @any_array_property.setter + def any_array_property(self, value: typing.List[typing.Any]): + jsii.set(self, "anyArrayProperty", value) + @builtins.property + @jsii.member(jsii_name="anyMapProperty") + def any_map_property(self) -> typing.Mapping[str,typing.Any]: + """ stability :stability: experimental """ - props = CalculatorProps(initial_value=initial_value, maximum_value=maximum_value) + return jsii.get(self, "anyMapProperty") - jsii.create(Calculator, self, [props]) + @any_map_property.setter + def any_map_property(self, value: typing.Mapping[str,typing.Any]): + jsii.set(self, "anyMapProperty", value) - @jsii.member(jsii_name="add") - def add(self, value: jsii.Number) -> None: - """Adds a number to the current value. + @builtins.property + @jsii.member(jsii_name="anyProperty") + def any_property(self) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.get(self, "anyProperty") - :param value: - + @any_property.setter + def any_property(self, value: typing.Any): + jsii.set(self, "anyProperty", value) + @builtins.property + @jsii.member(jsii_name="arrayProperty") + def array_property(self) -> typing.List[str]: + """ stability :stability: experimental """ - return jsii.invoke(self, "add", [value]) - - @jsii.member(jsii_name="mul") - def mul(self, value: jsii.Number) -> None: - """Multiplies the current value by a number. + return jsii.get(self, "arrayProperty") - :param value: - + @array_property.setter + def array_property(self, value: typing.List[str]): + jsii.set(self, "arrayProperty", value) + @builtins.property + @jsii.member(jsii_name="booleanProperty") + def boolean_property(self) -> bool: + """ stability :stability: experimental """ - return jsii.invoke(self, "mul", [value]) + return jsii.get(self, "booleanProperty") - @jsii.member(jsii_name="neg") - def neg(self) -> None: - """Negates the current value. + @boolean_property.setter + def boolean_property(self, value: bool): + jsii.set(self, "booleanProperty", value) + @builtins.property + @jsii.member(jsii_name="dateProperty") + def date_property(self) -> datetime.datetime: + """ stability :stability: experimental """ - return jsii.invoke(self, "neg", []) - - @jsii.member(jsii_name="pow") - def pow(self, value: jsii.Number) -> None: - """Raises the current value by a power. + return jsii.get(self, "dateProperty") - :param value: - + @date_property.setter + def date_property(self, value: datetime.datetime): + jsii.set(self, "dateProperty", value) + @builtins.property + @jsii.member(jsii_name="enumProperty") + def enum_property(self) -> "AllTypesEnum": + """ stability :stability: experimental """ - return jsii.invoke(self, "pow", [value]) + return jsii.get(self, "enumProperty") - @jsii.member(jsii_name="readUnionValue") - def read_union_value(self) -> jsii.Number: - """Returns teh value of the union property (if defined). + @enum_property.setter + def enum_property(self, value: "AllTypesEnum"): + jsii.set(self, "enumProperty", value) + @builtins.property + @jsii.member(jsii_name="jsonProperty") + def json_property(self) -> typing.Mapping[typing.Any, typing.Any]: + """ stability :stability: experimental """ - return jsii.invoke(self, "readUnionValue", []) + return jsii.get(self, "jsonProperty") - @builtins.property - @jsii.member(jsii_name="expression") - def expression(self) -> scope.jsii_calc_lib.Value: - """Returns the expression. + @json_property.setter + def json_property(self, value: typing.Mapping[typing.Any, typing.Any]): + jsii.set(self, "jsonProperty", value) + @builtins.property + @jsii.member(jsii_name="mapProperty") + def map_property(self) -> typing.Mapping[str,scope.jsii_calc_lib.Number]: + """ stability :stability: experimental """ - return jsii.get(self, "expression") + return jsii.get(self, "mapProperty") - @builtins.property - @jsii.member(jsii_name="operationsLog") - def operations_log(self) -> typing.List[scope.jsii_calc_lib.Value]: - """A log of all operations. + @map_property.setter + def map_property(self, value: typing.Mapping[str,scope.jsii_calc_lib.Number]): + jsii.set(self, "mapProperty", value) + @builtins.property + @jsii.member(jsii_name="numberProperty") + def number_property(self) -> jsii.Number: + """ stability :stability: experimental """ - return jsii.get(self, "operationsLog") + return jsii.get(self, "numberProperty") - @builtins.property - @jsii.member(jsii_name="operationsMap") - def operations_map(self) -> typing.Mapping[str,typing.List[scope.jsii_calc_lib.Value]]: - """A map of per operation name of all operations performed. + @number_property.setter + def number_property(self, value: jsii.Number): + jsii.set(self, "numberProperty", value) + @builtins.property + @jsii.member(jsii_name="stringProperty") + def string_property(self) -> str: + """ stability :stability: experimental """ - return jsii.get(self, "operationsMap") + return jsii.get(self, "stringProperty") - @builtins.property - @jsii.member(jsii_name="curr") - def curr(self) -> scope.jsii_calc_lib.Value: - """The current value. + @string_property.setter + def string_property(self, value: str): + jsii.set(self, "stringProperty", value) + @builtins.property + @jsii.member(jsii_name="unionArrayProperty") + def union_array_property(self) -> typing.List[typing.Union[jsii.Number, scope.jsii_calc_lib.Value]]: + """ stability :stability: experimental """ - return jsii.get(self, "curr") + return jsii.get(self, "unionArrayProperty") - @curr.setter - def curr(self, value: scope.jsii_calc_lib.Value): - jsii.set(self, "curr", value) + @union_array_property.setter + def union_array_property(self, value: typing.List[typing.Union[jsii.Number, scope.jsii_calc_lib.Value]]): + jsii.set(self, "unionArrayProperty", value) @builtins.property - @jsii.member(jsii_name="maxValue") - def max_value(self) -> typing.Optional[jsii.Number]: - """The maximum value allows in this calculator. - + @jsii.member(jsii_name="unionMapProperty") + def union_map_property(self) -> typing.Mapping[str,typing.Union[str, jsii.Number, scope.jsii_calc_lib.Number]]: + """ stability :stability: experimental """ - return jsii.get(self, "maxValue") + return jsii.get(self, "unionMapProperty") - @max_value.setter - def max_value(self, value: typing.Optional[jsii.Number]): - jsii.set(self, "maxValue", value) + @union_map_property.setter + def union_map_property(self, value: typing.Mapping[str,typing.Union[str, jsii.Number, scope.jsii_calc_lib.Number]]): + jsii.set(self, "unionMapProperty", value) @builtins.property @jsii.member(jsii_name="unionProperty") - def union_property(self) -> typing.Optional[typing.Union[typing.Optional["Add"], typing.Optional["Multiply"], typing.Optional["Power"]]]: - """Example of a property that accepts a union of types. - + def union_property(self) -> typing.Union[str, jsii.Number, "Multiply", scope.jsii_calc_lib.Number]: + """ stability :stability: experimental """ return jsii.get(self, "unionProperty") @union_property.setter - def union_property(self, value: typing.Optional[typing.Union[typing.Optional["Add"], typing.Optional["Multiply"], typing.Optional["Power"]]]): + def union_property(self, value: typing.Union[str, jsii.Number, "Multiply", scope.jsii_calc_lib.Number]): jsii.set(self, "unionProperty", value) - -@jsii.data_type(jsii_type="jsii-calc.CalculatorProps", jsii_struct_bases=[], name_mapping={'initial_value': 'initialValue', 'maximum_value': 'maximumValue'}) -class CalculatorProps(): - def __init__(self, *, initial_value: typing.Optional[jsii.Number]=None, maximum_value: typing.Optional[jsii.Number]=None): - """Properties for Calculator. - - :param initial_value: The initial value of the calculator. NOTE: Any number works here, it's fine. Default: 0 - :param maximum_value: The maximum value the calculator can store. Default: none - + @builtins.property + @jsii.member(jsii_name="unknownArrayProperty") + def unknown_array_property(self) -> typing.List[typing.Any]: + """ stability :stability: experimental """ - self._values = { - } - if initial_value is not None: self._values["initial_value"] = initial_value - if maximum_value is not None: self._values["maximum_value"] = maximum_value - - @builtins.property - def initial_value(self) -> typing.Optional[jsii.Number]: - """The initial value of the calculator. - - NOTE: Any number works here, it's fine. + return jsii.get(self, "unknownArrayProperty") - default - :default: 0 + @unknown_array_property.setter + def unknown_array_property(self, value: typing.List[typing.Any]): + jsii.set(self, "unknownArrayProperty", value) + @builtins.property + @jsii.member(jsii_name="unknownMapProperty") + def unknown_map_property(self) -> typing.Mapping[str,typing.Any]: + """ stability :stability: experimental """ - return self._values.get('initial_value') + return jsii.get(self, "unknownMapProperty") - @builtins.property - def maximum_value(self) -> typing.Optional[jsii.Number]: - """The maximum value the calculator can store. - - default - :default: none + @unknown_map_property.setter + def unknown_map_property(self, value: typing.Mapping[str,typing.Any]): + jsii.set(self, "unknownMapProperty", value) + @builtins.property + @jsii.member(jsii_name="unknownProperty") + def unknown_property(self) -> typing.Any: + """ stability :stability: experimental """ - return self._values.get('maximum_value') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values + return jsii.get(self, "unknownProperty") - def __ne__(self, rhs) -> bool: - return not (rhs == self) + @unknown_property.setter + def unknown_property(self, value: typing.Any): + jsii.set(self, "unknownProperty", value) - def __repr__(self) -> str: - return 'CalculatorProps(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + @builtins.property + @jsii.member(jsii_name="optionalEnumValue") + def optional_enum_value(self) -> typing.Optional["StringEnum"]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "optionalEnumValue") + @optional_enum_value.setter + def optional_enum_value(self, value: typing.Optional["StringEnum"]): + jsii.set(self, "optionalEnumValue", value) -@jsii.interface(jsii_type="jsii-calc.IFriendlier") -class IFriendlier(scope.jsii_calc_lib.IFriendly, jsii.compat.Protocol): - """Even friendlier classes can implement this interface. +@jsii.enum(jsii_type="jsii-calc.AllTypesEnum") +class AllTypesEnum(enum.Enum): + """ + stability + :stability: experimental + """ + MY_ENUM_VALUE = "MY_ENUM_VALUE" + """ + stability + :stability: experimental + """ + YOUR_ENUM_VALUE = "YOUR_ENUM_VALUE" + """ + stability + :stability: experimental + """ + THIS_IS_GREAT = "THIS_IS_GREAT" + """ + stability + :stability: experimental + """ + +class AllowedMethodNames(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AllowedMethodNames"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(AllowedMethodNames, self, []) + + @jsii.member(jsii_name="getBar") + def get_bar(self, _p1: str, _p2: jsii.Number) -> None: + """ + :param _p1: - + :param _p2: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "getBar", [_p1, _p2]) + + @jsii.member(jsii_name="getFoo") + def get_foo(self, with_param: str) -> str: + """getXxx() is not allowed (see negatives), but getXxx(a, ...) is okay. + + :param with_param: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "getFoo", [with_param]) + + @jsii.member(jsii_name="setBar") + def set_bar(self, _x: str, _y: jsii.Number, _z: bool) -> None: + """ + :param _x: - + :param _y: - + :param _z: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "setBar", [_x, _y, _z]) + + @jsii.member(jsii_name="setFoo") + def set_foo(self, _x: str, _y: jsii.Number) -> None: + """setFoo(x) is not allowed (see negatives), but setXxx(a, b, ...) is okay. + + :param _x: - + :param _y: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "setFoo", [_x, _y]) + + +class AmbiguousParameters(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AmbiguousParameters"): + """ + stability + :stability: experimental + """ + def __init__(self, scope_: "Bell", *, scope: str, props: typing.Optional[bool]=None) -> None: + """ + :param scope_: - + :param scope: + :param props: + + stability + :stability: experimental + """ + props_ = StructParameterType(scope=scope, props=props) + + jsii.create(AmbiguousParameters, self, [scope_, props_]) + + @builtins.property + @jsii.member(jsii_name="props") + def props(self) -> "StructParameterType": + """ + stability + :stability: experimental + """ + return jsii.get(self, "props") + + @builtins.property + @jsii.member(jsii_name="scope") + def scope(self) -> "Bell": + """ + stability + :stability: experimental + """ + return jsii.get(self, "scope") + + +class AsyncVirtualMethods(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AsyncVirtualMethods"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(AsyncVirtualMethods, self, []) + + @jsii.member(jsii_name="callMe") + def call_me(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.ainvoke(self, "callMe", []) + + @jsii.member(jsii_name="callMe2") + def call_me2(self) -> jsii.Number: + """Just calls "overrideMeToo". + + stability + :stability: experimental + """ + return jsii.ainvoke(self, "callMe2", []) + + @jsii.member(jsii_name="callMeDoublePromise") + def call_me_double_promise(self) -> jsii.Number: + """This method calls the "callMe" async method indirectly, which will then invoke a virtual method. + + This is a "double promise" situation, which + means that callbacks are not going to be available immediate, but only + after an "immediates" cycle. + + stability + :stability: experimental + """ + return jsii.ainvoke(self, "callMeDoublePromise", []) + + @jsii.member(jsii_name="dontOverrideMe") + def dont_override_me(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "dontOverrideMe", []) + + @jsii.member(jsii_name="overrideMe") + def override_me(self, mult: jsii.Number) -> jsii.Number: + """ + :param mult: - + + stability + :stability: experimental + """ + return jsii.ainvoke(self, "overrideMe", [mult]) + + @jsii.member(jsii_name="overrideMeToo") + def override_me_too(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.ainvoke(self, "overrideMeToo", []) + + +class AugmentableClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AugmentableClass"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(AugmentableClass, self, []) + + @jsii.member(jsii_name="methodOne") + def method_one(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "methodOne", []) + + @jsii.member(jsii_name="methodTwo") + def method_two(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "methodTwo", []) + + +class BaseJsii976(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.BaseJsii976"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(BaseJsii976, self, []) + + +@jsii.implements(scope.jsii_calc_lib.IFriendly) +class BinaryOperation(scope.jsii_calc_lib.Operation, metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.BinaryOperation"): + """Represents an operation with two operands. + + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _BinaryOperationProxy + + def __init__(self, lhs: scope.jsii_calc_lib.Value, rhs: scope.jsii_calc_lib.Value) -> None: + """Creates a BinaryOperation. + + :param lhs: Left-hand side operand. + :param rhs: Right-hand side operand. + + stability + :stability: experimental + """ + jsii.create(BinaryOperation, self, [lhs, rhs]) + + @jsii.member(jsii_name="hello") + def hello(self) -> str: + """Say hello! + + stability + :stability: experimental + """ + return jsii.invoke(self, "hello", []) + + @builtins.property + @jsii.member(jsii_name="lhs") + def lhs(self) -> scope.jsii_calc_lib.Value: + """Left-hand side operand. + + stability + :stability: experimental + """ + return jsii.get(self, "lhs") + + @builtins.property + @jsii.member(jsii_name="rhs") + def rhs(self) -> scope.jsii_calc_lib.Value: + """Right-hand side operand. + + stability + :stability: experimental + """ + return jsii.get(self, "rhs") + + +class _BinaryOperationProxy(BinaryOperation, jsii.proxy_for(scope.jsii_calc_lib.Operation)): + pass + +class Calculator(composition.CompositeOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Calculator"): + """A calculator which maintains a current value and allows adding operations. + + Here's how you use it:: + + # Example automatically generated. See https://github.com/aws/jsii/issues/826 + calculator = calc.Calculator() + calculator.add(5) + calculator.mul(3) + print(calculator.expression.value) + + I will repeat this example again, but in an @example tag. + + stability + :stability: experimental + + Example:: + + # Example automatically generated. See https://github.com/aws/jsii/issues/826 + calculator = calc.Calculator() + calculator.add(5) + calculator.mul(3) + print(calculator.expression.value) + """ + def __init__(self, *, initial_value: typing.Optional[jsii.Number]=None, maximum_value: typing.Optional[jsii.Number]=None) -> None: + """Creates a Calculator object. + + :param initial_value: The initial value of the calculator. NOTE: Any number works here, it's fine. Default: 0 + :param maximum_value: The maximum value the calculator can store. Default: none + + stability + :stability: experimental + """ + props = CalculatorProps(initial_value=initial_value, maximum_value=maximum_value) + + jsii.create(Calculator, self, [props]) + + @jsii.member(jsii_name="add") + def add(self, value: jsii.Number) -> None: + """Adds a number to the current value. + + :param value: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "add", [value]) + + @jsii.member(jsii_name="mul") + def mul(self, value: jsii.Number) -> None: + """Multiplies the current value by a number. + + :param value: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "mul", [value]) + + @jsii.member(jsii_name="neg") + def neg(self) -> None: + """Negates the current value. + + stability + :stability: experimental + """ + return jsii.invoke(self, "neg", []) + + @jsii.member(jsii_name="pow") + def pow(self, value: jsii.Number) -> None: + """Raises the current value by a power. + + :param value: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "pow", [value]) + + @jsii.member(jsii_name="readUnionValue") + def read_union_value(self) -> jsii.Number: + """Returns teh value of the union property (if defined). + + stability + :stability: experimental + """ + return jsii.invoke(self, "readUnionValue", []) + + @builtins.property + @jsii.member(jsii_name="expression") + def expression(self) -> scope.jsii_calc_lib.Value: + """Returns the expression. + + stability + :stability: experimental + """ + return jsii.get(self, "expression") + + @builtins.property + @jsii.member(jsii_name="operationsLog") + def operations_log(self) -> typing.List[scope.jsii_calc_lib.Value]: + """A log of all operations. + + stability + :stability: experimental + """ + return jsii.get(self, "operationsLog") + + @builtins.property + @jsii.member(jsii_name="operationsMap") + def operations_map(self) -> typing.Mapping[str,typing.List[scope.jsii_calc_lib.Value]]: + """A map of per operation name of all operations performed. + + stability + :stability: experimental + """ + return jsii.get(self, "operationsMap") + + @builtins.property + @jsii.member(jsii_name="curr") + def curr(self) -> scope.jsii_calc_lib.Value: + """The current value. + + stability + :stability: experimental + """ + return jsii.get(self, "curr") + + @curr.setter + def curr(self, value: scope.jsii_calc_lib.Value): + jsii.set(self, "curr", value) + + @builtins.property + @jsii.member(jsii_name="maxValue") + def max_value(self) -> typing.Optional[jsii.Number]: + """The maximum value allows in this calculator. + + stability + :stability: experimental + """ + return jsii.get(self, "maxValue") + + @max_value.setter + def max_value(self, value: typing.Optional[jsii.Number]): + jsii.set(self, "maxValue", value) + + @builtins.property + @jsii.member(jsii_name="unionProperty") + def union_property(self) -> typing.Optional[typing.Union[typing.Optional["Add"], typing.Optional["Multiply"], typing.Optional["Power"]]]: + """Example of a property that accepts a union of types. + + stability + :stability: experimental + """ + return jsii.get(self, "unionProperty") + + @union_property.setter + def union_property(self, value: typing.Optional[typing.Union[typing.Optional["Add"], typing.Optional["Multiply"], typing.Optional["Power"]]]): + jsii.set(self, "unionProperty", value) + + +@jsii.data_type(jsii_type="jsii-calc.CalculatorProps", jsii_struct_bases=[], name_mapping={'initial_value': 'initialValue', 'maximum_value': 'maximumValue'}) +class CalculatorProps(): + def __init__(self, *, initial_value: typing.Optional[jsii.Number]=None, maximum_value: typing.Optional[jsii.Number]=None): + """Properties for Calculator. + + :param initial_value: The initial value of the calculator. NOTE: Any number works here, it's fine. Default: 0 + :param maximum_value: The maximum value the calculator can store. Default: none + + stability + :stability: experimental + """ + self._values = { + } + if initial_value is not None: self._values["initial_value"] = initial_value + if maximum_value is not None: self._values["maximum_value"] = maximum_value + + @builtins.property + def initial_value(self) -> typing.Optional[jsii.Number]: + """The initial value of the calculator. + + NOTE: Any number works here, it's fine. + + default + :default: 0 + + stability + :stability: experimental + """ + return self._values.get('initial_value') + + @builtins.property + def maximum_value(self) -> typing.Optional[jsii.Number]: + """The maximum value the calculator can store. + + default + :default: none + + stability + :stability: experimental + """ + return self._values.get('maximum_value') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'CalculatorProps(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +class ClassWithCollections(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassWithCollections"): + """ + stability + :stability: experimental + """ + def __init__(self, map: typing.Mapping[str,str], array: typing.List[str]) -> None: + """ + :param map: - + :param array: - + + stability + :stability: experimental + """ + jsii.create(ClassWithCollections, self, [map, array]) + + @jsii.member(jsii_name="createAList") + @builtins.classmethod + def create_a_list(cls) -> typing.List[str]: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "createAList", []) + + @jsii.member(jsii_name="createAMap") + @builtins.classmethod + def create_a_map(cls) -> typing.Mapping[str,str]: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "createAMap", []) + + @jsii.python.classproperty + @jsii.member(jsii_name="staticArray") + def static_array(cls) -> typing.List[str]: + """ + stability + :stability: experimental + """ + return jsii.sget(cls, "staticArray") + + @static_array.setter + def static_array(cls, value: typing.List[str]): + jsii.sset(cls, "staticArray", value) + + @jsii.python.classproperty + @jsii.member(jsii_name="staticMap") + def static_map(cls) -> typing.Mapping[str,str]: + """ + stability + :stability: experimental + """ + return jsii.sget(cls, "staticMap") + + @static_map.setter + def static_map(cls, value: typing.Mapping[str,str]): + jsii.sset(cls, "staticMap", value) + + @builtins.property + @jsii.member(jsii_name="array") + def array(self) -> typing.List[str]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "array") + + @array.setter + def array(self, value: typing.List[str]): + jsii.set(self, "array", value) + + @builtins.property + @jsii.member(jsii_name="map") + def map(self) -> typing.Mapping[str,str]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "map") + + @map.setter + def map(self, value: typing.Mapping[str,str]): + jsii.set(self, "map", value) + + +class ClassWithDocs(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassWithDocs"): + """This class has docs. + + The docs are great. They're a bunch of tags. + + see + :see: https://aws.amazon.com/ + customAttribute: + :customAttribute:: hasAValue + + Example:: + + # Example automatically generated. See https://github.com/aws/jsii/issues/826 + def an_example(): + pass + """ + def __init__(self) -> None: + jsii.create(ClassWithDocs, self, []) + + +class ClassWithJavaReservedWords(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassWithJavaReservedWords"): + """ + stability + :stability: experimental + """ + def __init__(self, int: str) -> None: + """ + :param int: - + + stability + :stability: experimental + """ + jsii.create(ClassWithJavaReservedWords, self, [int]) + + @jsii.member(jsii_name="import") + def import_(self, assert_: str) -> str: + """ + :param assert_: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "import", [assert_]) + + @builtins.property + @jsii.member(jsii_name="int") + def int(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "int") + + +class ClassWithMutableObjectLiteralProperty(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassWithMutableObjectLiteralProperty"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(ClassWithMutableObjectLiteralProperty, self, []) + + @builtins.property + @jsii.member(jsii_name="mutableObject") + def mutable_object(self) -> "IMutableObjectLiteral": + """ + stability + :stability: experimental + """ + return jsii.get(self, "mutableObject") + + @mutable_object.setter + def mutable_object(self, value: "IMutableObjectLiteral"): + jsii.set(self, "mutableObject", value) + + +class ConfusingToJackson(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConfusingToJackson"): + """This tries to confuse Jackson by having overloaded property setters. + + see + :see: https://github.com/aws/aws-cdk/issues/4080 + stability + :stability: experimental + """ + @jsii.member(jsii_name="makeInstance") + @builtins.classmethod + def make_instance(cls) -> "ConfusingToJackson": + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "makeInstance", []) + + @jsii.member(jsii_name="makeStructInstance") + @builtins.classmethod + def make_struct_instance(cls) -> "ConfusingToJacksonStruct": + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "makeStructInstance", []) + + @builtins.property + @jsii.member(jsii_name="unionProperty") + def union_property(self) -> typing.Optional[typing.Union[typing.Optional[scope.jsii_calc_lib.IFriendly], typing.Optional[typing.List[typing.Union[scope.jsii_calc_lib.IFriendly, "AbstractClass"]]]]]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "unionProperty") + + @union_property.setter + def union_property(self, value: typing.Optional[typing.Union[typing.Optional[scope.jsii_calc_lib.IFriendly], typing.Optional[typing.List[typing.Union[scope.jsii_calc_lib.IFriendly, "AbstractClass"]]]]]): + jsii.set(self, "unionProperty", value) + + +@jsii.data_type(jsii_type="jsii-calc.ConfusingToJacksonStruct", jsii_struct_bases=[], name_mapping={'union_property': 'unionProperty'}) +class ConfusingToJacksonStruct(): + def __init__(self, *, union_property: typing.Optional[typing.Union[typing.Optional[scope.jsii_calc_lib.IFriendly], typing.Optional[typing.List[typing.Union[scope.jsii_calc_lib.IFriendly, "AbstractClass"]]]]]=None): + """ + :param union_property: + + stability + :stability: experimental + """ + self._values = { + } + if union_property is not None: self._values["union_property"] = union_property + + @builtins.property + def union_property(self) -> typing.Optional[typing.Union[typing.Optional[scope.jsii_calc_lib.IFriendly], typing.Optional[typing.List[typing.Union[scope.jsii_calc_lib.IFriendly, "AbstractClass"]]]]]: + """ + stability + :stability: experimental + """ + return self._values.get('union_property') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'ConfusingToJacksonStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +class ConstructorPassesThisOut(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConstructorPassesThisOut"): + """ + stability + :stability: experimental + """ + def __init__(self, consumer: "PartiallyInitializedThisConsumer") -> None: + """ + :param consumer: - + + stability + :stability: experimental + """ + jsii.create(ConstructorPassesThisOut, self, [consumer]) + + +class Constructors(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Constructors"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(Constructors, self, []) + + @jsii.member(jsii_name="hiddenInterface") + @builtins.classmethod + def hidden_interface(cls) -> "IPublicInterface": + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "hiddenInterface", []) + + @jsii.member(jsii_name="hiddenInterfaces") + @builtins.classmethod + def hidden_interfaces(cls) -> typing.List["IPublicInterface"]: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "hiddenInterfaces", []) + + @jsii.member(jsii_name="hiddenSubInterfaces") + @builtins.classmethod + def hidden_sub_interfaces(cls) -> typing.List["IPublicInterface"]: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "hiddenSubInterfaces", []) + + @jsii.member(jsii_name="makeClass") + @builtins.classmethod + def make_class(cls) -> "PublicClass": + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "makeClass", []) + + @jsii.member(jsii_name="makeInterface") + @builtins.classmethod + def make_interface(cls) -> "IPublicInterface": + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "makeInterface", []) + + @jsii.member(jsii_name="makeInterface2") + @builtins.classmethod + def make_interface2(cls) -> "IPublicInterface2": + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "makeInterface2", []) + + @jsii.member(jsii_name="makeInterfaces") + @builtins.classmethod + def make_interfaces(cls) -> typing.List["IPublicInterface"]: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "makeInterfaces", []) + + +class ConsumePureInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConsumePureInterface"): + """ + stability + :stability: experimental + """ + def __init__(self, delegate: "IStructReturningDelegate") -> None: + """ + :param delegate: - + + stability + :stability: experimental + """ + jsii.create(ConsumePureInterface, self, [delegate]) + + @jsii.member(jsii_name="workItBaby") + def work_it_baby(self) -> "StructB": + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "workItBaby", []) + + +class ConsumerCanRingBell(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConsumerCanRingBell"): + """Test calling back to consumers that implement interfaces. + + Check that if a JSII consumer implements IConsumerWithInterfaceParam, they can call + the method on the argument that they're passed... + + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(ConsumerCanRingBell, self, []) + + @jsii.member(jsii_name="staticImplementedByObjectLiteral") + @builtins.classmethod + def static_implemented_by_object_literal(cls, ringer: "IBellRinger") -> bool: + """...if the interface is implemented using an object literal. + + Returns whether the bell was rung. + + :param ringer: - + + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "staticImplementedByObjectLiteral", [ringer]) + + @jsii.member(jsii_name="staticImplementedByPrivateClass") + @builtins.classmethod + def static_implemented_by_private_class(cls, ringer: "IBellRinger") -> bool: + """...if the interface is implemented using a private class. + + Return whether the bell was rung. + + :param ringer: - + + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "staticImplementedByPrivateClass", [ringer]) + + @jsii.member(jsii_name="staticImplementedByPublicClass") + @builtins.classmethod + def static_implemented_by_public_class(cls, ringer: "IBellRinger") -> bool: + """...if the interface is implemented using a public class. + + Return whether the bell was rung. + + :param ringer: - + + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "staticImplementedByPublicClass", [ringer]) + + @jsii.member(jsii_name="staticWhenTypedAsClass") + @builtins.classmethod + def static_when_typed_as_class(cls, ringer: "IConcreteBellRinger") -> bool: + """If the parameter is a concrete class instead of an interface. + + Return whether the bell was rung. + + :param ringer: - + + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "staticWhenTypedAsClass", [ringer]) + + @jsii.member(jsii_name="implementedByObjectLiteral") + def implemented_by_object_literal(self, ringer: "IBellRinger") -> bool: + """...if the interface is implemented using an object literal. + + Returns whether the bell was rung. + + :param ringer: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "implementedByObjectLiteral", [ringer]) + + @jsii.member(jsii_name="implementedByPrivateClass") + def implemented_by_private_class(self, ringer: "IBellRinger") -> bool: + """...if the interface is implemented using a private class. + + Return whether the bell was rung. + + :param ringer: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "implementedByPrivateClass", [ringer]) + + @jsii.member(jsii_name="implementedByPublicClass") + def implemented_by_public_class(self, ringer: "IBellRinger") -> bool: + """...if the interface is implemented using a public class. + + Return whether the bell was rung. + + :param ringer: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "implementedByPublicClass", [ringer]) + + @jsii.member(jsii_name="whenTypedAsClass") + def when_typed_as_class(self, ringer: "IConcreteBellRinger") -> bool: + """If the parameter is a concrete class instead of an interface. + + Return whether the bell was rung. + + :param ringer: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "whenTypedAsClass", [ringer]) + + +class ConsumersOfThisCrazyTypeSystem(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConsumersOfThisCrazyTypeSystem"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(ConsumersOfThisCrazyTypeSystem, self, []) + + @jsii.member(jsii_name="consumeAnotherPublicInterface") + def consume_another_public_interface(self, obj: "IAnotherPublicInterface") -> str: + """ + :param obj: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "consumeAnotherPublicInterface", [obj]) + + @jsii.member(jsii_name="consumeNonInternalInterface") + def consume_non_internal_interface(self, obj: "INonInternalInterface") -> typing.Any: + """ + :param obj: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "consumeNonInternalInterface", [obj]) + + +class DataRenderer(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DataRenderer"): + """Verifies proper type handling through dynamic overrides. + + stability + :stability: experimental + """ + def __init__(self) -> None: + """ + stability + :stability: experimental + """ + jsii.create(DataRenderer, self, []) + + @jsii.member(jsii_name="render") + def render(self, *, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None) -> str: + """ + :param anumber: An awesome number value. + :param astring: A string value. + :param first_optional: + + stability + :stability: experimental + """ + data = scope.jsii_calc_lib.MyFirstStruct(anumber=anumber, astring=astring, first_optional=first_optional) + + return jsii.invoke(self, "render", [data]) + + @jsii.member(jsii_name="renderArbitrary") + def render_arbitrary(self, data: typing.Mapping[str,typing.Any]) -> str: + """ + :param data: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "renderArbitrary", [data]) + + @jsii.member(jsii_name="renderMap") + def render_map(self, map: typing.Mapping[str,typing.Any]) -> str: + """ + :param map: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "renderMap", [map]) + + +class DefaultedConstructorArgument(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DefaultedConstructorArgument"): + """ + stability + :stability: experimental + """ + def __init__(self, arg1: typing.Optional[jsii.Number]=None, arg2: typing.Optional[str]=None, arg3: typing.Optional[datetime.datetime]=None) -> None: + """ + :param arg1: - + :param arg2: - + :param arg3: - + + stability + :stability: experimental + """ + jsii.create(DefaultedConstructorArgument, self, [arg1, arg2, arg3]) + + @builtins.property + @jsii.member(jsii_name="arg1") + def arg1(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.get(self, "arg1") + + @builtins.property + @jsii.member(jsii_name="arg3") + def arg3(self) -> datetime.datetime: + """ + stability + :stability: experimental + """ + return jsii.get(self, "arg3") + + @builtins.property + @jsii.member(jsii_name="arg2") + def arg2(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "arg2") + + +class Demonstrate982(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Demonstrate982"): + """1. + + call #takeThis() -> An ObjectRef will be provisioned for the value (it'll be re-used!) + 2. call #takeThisToo() -> The ObjectRef from before will need to be down-cased to the ParentStruct982 type + + stability + :stability: experimental + """ + def __init__(self) -> None: + """ + stability + :stability: experimental + """ + jsii.create(Demonstrate982, self, []) + + @jsii.member(jsii_name="takeThis") + @builtins.classmethod + def take_this(cls) -> "ChildStruct982": + """It's dangerous to go alone! + + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "takeThis", []) + + @jsii.member(jsii_name="takeThisToo") + @builtins.classmethod + def take_this_too(cls) -> "ParentStruct982": + """It's dangerous to go alone! + + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "takeThisToo", []) + + +class DeprecatedClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DeprecatedClass"): + """ + deprecated + :deprecated: a pretty boring class + + stability + :stability: deprecated + """ + def __init__(self, readonly_string: str, mutable_number: typing.Optional[jsii.Number]=None) -> None: + """ + :param readonly_string: - + :param mutable_number: - + + deprecated + :deprecated: this constructor is "just" okay + + stability + :stability: deprecated + """ + jsii.create(DeprecatedClass, self, [readonly_string, mutable_number]) + + @jsii.member(jsii_name="method") + def method(self) -> None: + """ + deprecated + :deprecated: it was a bad idea + + stability + :stability: deprecated + """ + return jsii.invoke(self, "method", []) + + @builtins.property + @jsii.member(jsii_name="readonlyProperty") + def readonly_property(self) -> str: + """ + deprecated + :deprecated: this is not always "wazoo", be ready to be disappointed + + stability + :stability: deprecated + """ + return jsii.get(self, "readonlyProperty") + + @builtins.property + @jsii.member(jsii_name="mutableProperty") + def mutable_property(self) -> typing.Optional[jsii.Number]: + """ + deprecated + :deprecated: shouldn't have been mutable + + stability + :stability: deprecated + """ + return jsii.get(self, "mutableProperty") + + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]): + jsii.set(self, "mutableProperty", value) + + +@jsii.enum(jsii_type="jsii-calc.DeprecatedEnum") +class DeprecatedEnum(enum.Enum): + """ + deprecated + :deprecated: your deprecated selection of bad options + + stability + :stability: deprecated + """ + OPTION_A = "OPTION_A" + """ + deprecated + :deprecated: option A is not great + + stability + :stability: deprecated + """ + OPTION_B = "OPTION_B" + """ + deprecated + :deprecated: option B is kinda bad, too + + stability + :stability: deprecated + """ + +@jsii.data_type(jsii_type="jsii-calc.DeprecatedStruct", jsii_struct_bases=[], name_mapping={'readonly_property': 'readonlyProperty'}) +class DeprecatedStruct(): + def __init__(self, *, readonly_property: str): + """ + :param readonly_property: + + deprecated + :deprecated: it just wraps a string + + stability + :stability: deprecated + """ + self._values = { + 'readonly_property': readonly_property, + } + + @builtins.property + def readonly_property(self) -> str: + """ + deprecated + :deprecated: well, yeah + + stability + :stability: deprecated + """ + return self._values.get('readonly_property') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'DeprecatedStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +@jsii.data_type(jsii_type="jsii-calc.DerivedStruct", jsii_struct_bases=[scope.jsii_calc_lib.MyFirstStruct], name_mapping={'anumber': 'anumber', 'astring': 'astring', 'first_optional': 'firstOptional', 'another_required': 'anotherRequired', 'bool': 'bool', 'non_primitive': 'nonPrimitive', 'another_optional': 'anotherOptional', 'optional_any': 'optionalAny', 'optional_array': 'optionalArray'}) +class DerivedStruct(scope.jsii_calc_lib.MyFirstStruct): + def __init__(self, *, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None, another_required: datetime.datetime, bool: bool, non_primitive: "DoubleTrouble", another_optional: typing.Optional[typing.Mapping[str,scope.jsii_calc_lib.Value]]=None, optional_any: typing.Any=None, optional_array: typing.Optional[typing.List[str]]=None): + """A struct which derives from another struct. + + :param anumber: An awesome number value. + :param astring: A string value. + :param first_optional: + :param another_required: + :param bool: + :param non_primitive: An example of a non primitive property. + :param another_optional: This is optional. + :param optional_any: + :param optional_array: + + stability + :stability: experimental + """ + self._values = { + 'anumber': anumber, + 'astring': astring, + 'another_required': another_required, + 'bool': bool, + 'non_primitive': non_primitive, + } + if first_optional is not None: self._values["first_optional"] = first_optional + if another_optional is not None: self._values["another_optional"] = another_optional + if optional_any is not None: self._values["optional_any"] = optional_any + if optional_array is not None: self._values["optional_array"] = optional_array + + @builtins.property + def anumber(self) -> jsii.Number: + """An awesome number value. + + stability + :stability: deprecated + """ + return self._values.get('anumber') + + @builtins.property + def astring(self) -> str: + """A string value. + + stability + :stability: deprecated + """ + return self._values.get('astring') + + @builtins.property + def first_optional(self) -> typing.Optional[typing.List[str]]: + """ + stability + :stability: deprecated + """ + return self._values.get('first_optional') + + @builtins.property + def another_required(self) -> datetime.datetime: + """ + stability + :stability: experimental + """ + return self._values.get('another_required') + + @builtins.property + def bool(self) -> bool: + """ + stability + :stability: experimental + """ + return self._values.get('bool') + + @builtins.property + def non_primitive(self) -> "DoubleTrouble": + """An example of a non primitive property. + + stability + :stability: experimental + """ + return self._values.get('non_primitive') + + @builtins.property + def another_optional(self) -> typing.Optional[typing.Mapping[str,scope.jsii_calc_lib.Value]]: + """This is optional. + + stability + :stability: experimental + """ + return self._values.get('another_optional') + + @builtins.property + def optional_any(self) -> typing.Any: + """ + stability + :stability: experimental + """ + return self._values.get('optional_any') + + @builtins.property + def optional_array(self) -> typing.Optional[typing.List[str]]: + """ + stability + :stability: experimental + """ + return self._values.get('optional_array') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'DerivedStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +@jsii.data_type(jsii_type="jsii-calc.DiamondInheritanceBaseLevelStruct", jsii_struct_bases=[], name_mapping={'base_level_property': 'baseLevelProperty'}) +class DiamondInheritanceBaseLevelStruct(): + def __init__(self, *, base_level_property: str): + """ + :param base_level_property: + + stability + :stability: experimental + """ + self._values = { + 'base_level_property': base_level_property, + } + + @builtins.property + def base_level_property(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('base_level_property') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'DiamondInheritanceBaseLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +@jsii.data_type(jsii_type="jsii-calc.DiamondInheritanceFirstMidLevelStruct", jsii_struct_bases=[DiamondInheritanceBaseLevelStruct], name_mapping={'base_level_property': 'baseLevelProperty', 'first_mid_level_property': 'firstMidLevelProperty'}) +class DiamondInheritanceFirstMidLevelStruct(DiamondInheritanceBaseLevelStruct): + def __init__(self, *, base_level_property: str, first_mid_level_property: str): + """ + :param base_level_property: + :param first_mid_level_property: + + stability + :stability: experimental + """ + self._values = { + 'base_level_property': base_level_property, + 'first_mid_level_property': first_mid_level_property, + } + + @builtins.property + def base_level_property(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('base_level_property') + + @builtins.property + def first_mid_level_property(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('first_mid_level_property') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'DiamondInheritanceFirstMidLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +@jsii.data_type(jsii_type="jsii-calc.DiamondInheritanceSecondMidLevelStruct", jsii_struct_bases=[DiamondInheritanceBaseLevelStruct], name_mapping={'base_level_property': 'baseLevelProperty', 'second_mid_level_property': 'secondMidLevelProperty'}) +class DiamondInheritanceSecondMidLevelStruct(DiamondInheritanceBaseLevelStruct): + def __init__(self, *, base_level_property: str, second_mid_level_property: str): + """ + :param base_level_property: + :param second_mid_level_property: + + stability + :stability: experimental + """ + self._values = { + 'base_level_property': base_level_property, + 'second_mid_level_property': second_mid_level_property, + } + + @builtins.property + def base_level_property(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('base_level_property') + + @builtins.property + def second_mid_level_property(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('second_mid_level_property') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'DiamondInheritanceSecondMidLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +@jsii.data_type(jsii_type="jsii-calc.DiamondInheritanceTopLevelStruct", jsii_struct_bases=[DiamondInheritanceFirstMidLevelStruct, DiamondInheritanceSecondMidLevelStruct], name_mapping={'base_level_property': 'baseLevelProperty', 'first_mid_level_property': 'firstMidLevelProperty', 'second_mid_level_property': 'secondMidLevelProperty', 'top_level_property': 'topLevelProperty'}) +class DiamondInheritanceTopLevelStruct(DiamondInheritanceFirstMidLevelStruct, DiamondInheritanceSecondMidLevelStruct): + def __init__(self, *, base_level_property: str, first_mid_level_property: str, second_mid_level_property: str, top_level_property: str): + """ + :param base_level_property: + :param first_mid_level_property: + :param second_mid_level_property: + :param top_level_property: + + stability + :stability: experimental + """ + self._values = { + 'base_level_property': base_level_property, + 'first_mid_level_property': first_mid_level_property, + 'second_mid_level_property': second_mid_level_property, + 'top_level_property': top_level_property, + } + + @builtins.property + def base_level_property(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('base_level_property') + + @builtins.property + def first_mid_level_property(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('first_mid_level_property') + + @builtins.property + def second_mid_level_property(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('second_mid_level_property') + + @builtins.property + def top_level_property(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('top_level_property') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'DiamondInheritanceTopLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +class DisappointingCollectionSource(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DisappointingCollectionSource"): + """Verifies that null/undefined can be returned for optional collections. + + This source of collections is disappointing - it'll always give you nothing :( + + stability + :stability: experimental + """ + @jsii.python.classproperty + @jsii.member(jsii_name="maybeList") + def MAYBE_LIST(cls) -> typing.Optional[typing.List[str]]: + """Some List of strings, maybe? + + (Nah, just a billion dollars mistake!) + + stability + :stability: experimental + """ + return jsii.sget(cls, "maybeList") + + @jsii.python.classproperty + @jsii.member(jsii_name="maybeMap") + def MAYBE_MAP(cls) -> typing.Optional[typing.Mapping[str,jsii.Number]]: + """Some Map of strings to numbers, maybe? + + (Nah, just a billion dollars mistake!) + + stability + :stability: experimental + """ + return jsii.sget(cls, "maybeMap") + + +class DoNotOverridePrivates(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DoNotOverridePrivates"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(DoNotOverridePrivates, self, []) + + @jsii.member(jsii_name="changePrivatePropertyValue") + def change_private_property_value(self, new_value: str) -> None: + """ + :param new_value: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "changePrivatePropertyValue", [new_value]) + + @jsii.member(jsii_name="privateMethodValue") + def private_method_value(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "privateMethodValue", []) + + @jsii.member(jsii_name="privatePropertyValue") + def private_property_value(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "privatePropertyValue", []) + + +class DoNotRecognizeAnyAsOptional(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DoNotRecognizeAnyAsOptional"): + """jsii#284: do not recognize "any" as an optional argument. + + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(DoNotRecognizeAnyAsOptional, self, []) + + @jsii.member(jsii_name="method") + def method(self, _required_any: typing.Any, _optional_any: typing.Any=None, _optional_string: typing.Optional[str]=None) -> None: + """ + :param _required_any: - + :param _optional_any: - + :param _optional_string: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "method", [_required_any, _optional_any, _optional_string]) + + +class DocumentedClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DocumentedClass"): + """Here's the first line of the TSDoc comment. + + This is the meat of the TSDoc comment. It may contain + multiple lines and multiple paragraphs. + + Multiple paragraphs are separated by an empty line. + """ + def __init__(self) -> None: + jsii.create(DocumentedClass, self, []) + + @jsii.member(jsii_name="greet") + def greet(self, *, name: typing.Optional[str]=None) -> jsii.Number: + """Greet the indicated person. + + This will print out a friendly greeting intended for + the indicated person. + + :param name: The name of the greetee. Default: world + + return + :return: A number that everyone knows very well + """ + greetee = Greetee(name=name) + + return jsii.invoke(self, "greet", [greetee]) + + @jsii.member(jsii_name="hola") + def hola(self) -> None: + """Say ¡Hola! + + stability + :stability: experimental + """ + return jsii.invoke(self, "hola", []) + + +class DontComplainAboutVariadicAfterOptional(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DontComplainAboutVariadicAfterOptional"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(DontComplainAboutVariadicAfterOptional, self, []) + + @jsii.member(jsii_name="optionalAndVariadic") + def optional_and_variadic(self, optional: typing.Optional[str]=None, *things: str) -> str: + """ + :param optional: - + :param things: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "optionalAndVariadic", [optional, *things]) + + +class EnumDispenser(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.EnumDispenser"): + """ + stability + :stability: experimental + """ + @jsii.member(jsii_name="randomIntegerLikeEnum") + @builtins.classmethod + def random_integer_like_enum(cls) -> "AllTypesEnum": + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "randomIntegerLikeEnum", []) + + @jsii.member(jsii_name="randomStringLikeEnum") + @builtins.classmethod + def random_string_like_enum(cls) -> "StringEnum": + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "randomStringLikeEnum", []) + + +class EraseUndefinedHashValues(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.EraseUndefinedHashValues"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(EraseUndefinedHashValues, self, []) + + @jsii.member(jsii_name="doesKeyExist") + @builtins.classmethod + def does_key_exist(cls, opts: "EraseUndefinedHashValuesOptions", key: str) -> bool: + """Returns ``true`` if ``key`` is defined in ``opts``. + + Used to check that undefined/null hash values + are being erased when sending values from native code to JS. + + :param opts: - + :param key: - + + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "doesKeyExist", [opts, key]) + + @jsii.member(jsii_name="prop1IsNull") + @builtins.classmethod + def prop1_is_null(cls) -> typing.Mapping[str,typing.Any]: + """We expect "prop1" to be erased. + + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "prop1IsNull", []) + + @jsii.member(jsii_name="prop2IsUndefined") + @builtins.classmethod + def prop2_is_undefined(cls) -> typing.Mapping[str,typing.Any]: + """We expect "prop2" to be erased. + + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "prop2IsUndefined", []) + + +@jsii.data_type(jsii_type="jsii-calc.EraseUndefinedHashValuesOptions", jsii_struct_bases=[], name_mapping={'option1': 'option1', 'option2': 'option2'}) +class EraseUndefinedHashValuesOptions(): + def __init__(self, *, option1: typing.Optional[str]=None, option2: typing.Optional[str]=None): + """ + :param option1: + :param option2: + + stability + :stability: experimental + """ + self._values = { + } + if option1 is not None: self._values["option1"] = option1 + if option2 is not None: self._values["option2"] = option2 + + @builtins.property + def option1(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + return self._values.get('option1') + + @builtins.property + def option2(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + return self._values.get('option2') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'EraseUndefinedHashValuesOptions(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +class ExperimentalClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ExperimentalClass"): + """ + stability + :stability: experimental + """ + def __init__(self, readonly_string: str, mutable_number: typing.Optional[jsii.Number]=None) -> None: + """ + :param readonly_string: - + :param mutable_number: - + + stability + :stability: experimental + """ + jsii.create(ExperimentalClass, self, [readonly_string, mutable_number]) + + @jsii.member(jsii_name="method") + def method(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "method", []) + + @builtins.property + @jsii.member(jsii_name="readonlyProperty") + def readonly_property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "readonlyProperty") + + @builtins.property + @jsii.member(jsii_name="mutableProperty") + def mutable_property(self) -> typing.Optional[jsii.Number]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "mutableProperty") + + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]): + jsii.set(self, "mutableProperty", value) + + +@jsii.enum(jsii_type="jsii-calc.ExperimentalEnum") +class ExperimentalEnum(enum.Enum): + """ + stability + :stability: experimental + """ + OPTION_A = "OPTION_A" + """ + stability + :stability: experimental + """ + OPTION_B = "OPTION_B" + """ + stability + :stability: experimental + """ + +@jsii.data_type(jsii_type="jsii-calc.ExperimentalStruct", jsii_struct_bases=[], name_mapping={'readonly_property': 'readonlyProperty'}) +class ExperimentalStruct(): + def __init__(self, *, readonly_property: str): + """ + :param readonly_property: + + stability + :stability: experimental + """ + self._values = { + 'readonly_property': readonly_property, + } + + @builtins.property + def readonly_property(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('readonly_property') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'ExperimentalStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +class ExportedBaseClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ExportedBaseClass"): + """ + stability + :stability: experimental + """ + def __init__(self, success: bool) -> None: + """ + :param success: - + + stability + :stability: experimental + """ + jsii.create(ExportedBaseClass, self, [success]) + + @builtins.property + @jsii.member(jsii_name="success") + def success(self) -> bool: + """ + stability + :stability: experimental + """ + return jsii.get(self, "success") + + +@jsii.data_type(jsii_type="jsii-calc.ExtendsInternalInterface", jsii_struct_bases=[], name_mapping={'boom': 'boom', 'prop': 'prop'}) +class ExtendsInternalInterface(): + def __init__(self, *, boom: bool, prop: str): + """ + :param boom: + :param prop: + + stability + :stability: experimental + """ + self._values = { + 'boom': boom, + 'prop': prop, + } + + @builtins.property + def boom(self) -> bool: + """ + stability + :stability: experimental + """ + return self._values.get('boom') + + @builtins.property + def prop(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('prop') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'ExtendsInternalInterface(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +class GiveMeStructs(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.GiveMeStructs"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(GiveMeStructs, self, []) + + @jsii.member(jsii_name="derivedToFirst") + def derived_to_first(self, *, another_required: datetime.datetime, bool: bool, non_primitive: "DoubleTrouble", another_optional: typing.Optional[typing.Mapping[str,scope.jsii_calc_lib.Value]]=None, optional_any: typing.Any=None, optional_array: typing.Optional[typing.List[str]]=None, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None) -> scope.jsii_calc_lib.MyFirstStruct: + """Accepts a struct of type DerivedStruct and returns a struct of type FirstStruct. + + :param another_required: + :param bool: + :param non_primitive: An example of a non primitive property. + :param another_optional: This is optional. + :param optional_any: + :param optional_array: + :param anumber: An awesome number value. + :param astring: A string value. + :param first_optional: + + stability + :stability: experimental + """ + derived = DerivedStruct(another_required=another_required, bool=bool, non_primitive=non_primitive, another_optional=another_optional, optional_any=optional_any, optional_array=optional_array, anumber=anumber, astring=astring, first_optional=first_optional) + + return jsii.invoke(self, "derivedToFirst", [derived]) + + @jsii.member(jsii_name="readDerivedNonPrimitive") + def read_derived_non_primitive(self, *, another_required: datetime.datetime, bool: bool, non_primitive: "DoubleTrouble", another_optional: typing.Optional[typing.Mapping[str,scope.jsii_calc_lib.Value]]=None, optional_any: typing.Any=None, optional_array: typing.Optional[typing.List[str]]=None, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None) -> "DoubleTrouble": + """Returns the boolean from a DerivedStruct struct. + + :param another_required: + :param bool: + :param non_primitive: An example of a non primitive property. + :param another_optional: This is optional. + :param optional_any: + :param optional_array: + :param anumber: An awesome number value. + :param astring: A string value. + :param first_optional: + + stability + :stability: experimental + """ + derived = DerivedStruct(another_required=another_required, bool=bool, non_primitive=non_primitive, another_optional=another_optional, optional_any=optional_any, optional_array=optional_array, anumber=anumber, astring=astring, first_optional=first_optional) + + return jsii.invoke(self, "readDerivedNonPrimitive", [derived]) + + @jsii.member(jsii_name="readFirstNumber") + def read_first_number(self, *, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None) -> jsii.Number: + """Returns the "anumber" from a MyFirstStruct struct; + + :param anumber: An awesome number value. + :param astring: A string value. + :param first_optional: + + stability + :stability: experimental + """ + first = scope.jsii_calc_lib.MyFirstStruct(anumber=anumber, astring=astring, first_optional=first_optional) + + return jsii.invoke(self, "readFirstNumber", [first]) + + @builtins.property + @jsii.member(jsii_name="structLiteral") + def struct_literal(self) -> scope.jsii_calc_lib.StructWithOnlyOptionals: + """ + stability + :stability: experimental + """ + return jsii.get(self, "structLiteral") + + +@jsii.data_type(jsii_type="jsii-calc.Greetee", jsii_struct_bases=[], name_mapping={'name': 'name'}) +class Greetee(): + def __init__(self, *, name: typing.Optional[str]=None): + """These are some arguments you can pass to a method. + + :param name: The name of the greetee. Default: world + + stability + :stability: experimental + """ + self._values = { + } + if name is not None: self._values["name"] = name + + @builtins.property + def name(self) -> typing.Optional[str]: + """The name of the greetee. + + default + :default: world + + stability + :stability: experimental + """ + return self._values.get('name') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'Greetee(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +class GreetingAugmenter(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.GreetingAugmenter"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(GreetingAugmenter, self, []) + + @jsii.member(jsii_name="betterGreeting") + def better_greeting(self, friendly: scope.jsii_calc_lib.IFriendly) -> str: + """ + :param friendly: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "betterGreeting", [friendly]) + + +@jsii.interface(jsii_type="jsii-calc.IAnonymousImplementationProvider") +class IAnonymousImplementationProvider(jsii.compat.Protocol): + """We can return an anonymous interface implementation from an override without losing the interface declarations. + + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IAnonymousImplementationProviderProxy + + @jsii.member(jsii_name="provideAsClass") + def provide_as_class(self) -> "Implementation": + """ + stability + :stability: experimental + """ + ... + + @jsii.member(jsii_name="provideAsInterface") + def provide_as_interface(self) -> "IAnonymouslyImplementMe": + """ + stability + :stability: experimental + """ + ... + + +class _IAnonymousImplementationProviderProxy(): + """We can return an anonymous interface implementation from an override without losing the interface declarations. + + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.IAnonymousImplementationProvider" + @jsii.member(jsii_name="provideAsClass") + def provide_as_class(self) -> "Implementation": + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "provideAsClass", []) + + @jsii.member(jsii_name="provideAsInterface") + def provide_as_interface(self) -> "IAnonymouslyImplementMe": + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "provideAsInterface", []) + + +@jsii.interface(jsii_type="jsii-calc.IAnonymouslyImplementMe") +class IAnonymouslyImplementMe(jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IAnonymouslyImplementMeProxy + + @builtins.property + @jsii.member(jsii_name="value") + def value(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + ... + + @jsii.member(jsii_name="verb") + def verb(self) -> str: + """ + stability + :stability: experimental + """ + ... + + +class _IAnonymouslyImplementMeProxy(): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.IAnonymouslyImplementMe" + @builtins.property + @jsii.member(jsii_name="value") + def value(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.get(self, "value") + + @jsii.member(jsii_name="verb") + def verb(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "verb", []) + + +@jsii.interface(jsii_type="jsii-calc.IAnotherPublicInterface") +class IAnotherPublicInterface(jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IAnotherPublicInterfaceProxy + + @builtins.property + @jsii.member(jsii_name="a") + def a(self) -> str: + """ + stability + :stability: experimental + """ + ... + + @a.setter + def a(self, value: str): + ... + + +class _IAnotherPublicInterfaceProxy(): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.IAnotherPublicInterface" + @builtins.property + @jsii.member(jsii_name="a") + def a(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "a") + + @a.setter + def a(self, value: str): + jsii.set(self, "a", value) + + +@jsii.interface(jsii_type="jsii-calc.IBell") +class IBell(jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IBellProxy + + @jsii.member(jsii_name="ring") + def ring(self) -> None: + """ + stability + :stability: experimental + """ + ... + + +class _IBellProxy(): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.IBell" + @jsii.member(jsii_name="ring") + def ring(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "ring", []) + + +@jsii.interface(jsii_type="jsii-calc.IBellRinger") +class IBellRinger(jsii.compat.Protocol): + """Takes the object parameter as an interface. + + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IBellRingerProxy + + @jsii.member(jsii_name="yourTurn") + def your_turn(self, bell: "IBell") -> None: + """ + :param bell: - + + stability + :stability: experimental + """ + ... + + +class _IBellRingerProxy(): + """Takes the object parameter as an interface. + + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.IBellRinger" + @jsii.member(jsii_name="yourTurn") + def your_turn(self, bell: "IBell") -> None: + """ + :param bell: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "yourTurn", [bell]) + + +@jsii.interface(jsii_type="jsii-calc.IConcreteBellRinger") +class IConcreteBellRinger(jsii.compat.Protocol): + """Takes the object parameter as a calss. + + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IConcreteBellRingerProxy + + @jsii.member(jsii_name="yourTurn") + def your_turn(self, bell: "Bell") -> None: + """ + :param bell: - + + stability + :stability: experimental + """ + ... + + +class _IConcreteBellRingerProxy(): + """Takes the object parameter as a calss. + + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.IConcreteBellRinger" + @jsii.member(jsii_name="yourTurn") + def your_turn(self, bell: "Bell") -> None: + """ + :param bell: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "yourTurn", [bell]) + + +@jsii.interface(jsii_type="jsii-calc.IDeprecatedInterface") +class IDeprecatedInterface(jsii.compat.Protocol): + """ + deprecated + :deprecated: useless interface + + stability + :stability: deprecated + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IDeprecatedInterfaceProxy + + @builtins.property + @jsii.member(jsii_name="mutableProperty") + def mutable_property(self) -> typing.Optional[jsii.Number]: + """ + deprecated + :deprecated: could be better + + stability + :stability: deprecated + """ + ... + + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]): + ... + + @jsii.member(jsii_name="method") + def method(self) -> None: + """ + deprecated + :deprecated: services no purpose + + stability + :stability: deprecated + """ + ... + + +class _IDeprecatedInterfaceProxy(): + """ + deprecated + :deprecated: useless interface + + stability + :stability: deprecated + """ + __jsii_type__ = "jsii-calc.IDeprecatedInterface" + @builtins.property + @jsii.member(jsii_name="mutableProperty") + def mutable_property(self) -> typing.Optional[jsii.Number]: + """ + deprecated + :deprecated: could be better + + stability + :stability: deprecated + """ + return jsii.get(self, "mutableProperty") + + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]): + jsii.set(self, "mutableProperty", value) + + @jsii.member(jsii_name="method") + def method(self) -> None: + """ + deprecated + :deprecated: services no purpose + + stability + :stability: deprecated + """ + return jsii.invoke(self, "method", []) + + +@jsii.interface(jsii_type="jsii-calc.IExperimentalInterface") +class IExperimentalInterface(jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IExperimentalInterfaceProxy + + @builtins.property + @jsii.member(jsii_name="mutableProperty") + def mutable_property(self) -> typing.Optional[jsii.Number]: + """ + stability + :stability: experimental + """ + ... + + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]): + ... + + @jsii.member(jsii_name="method") + def method(self) -> None: + """ + stability + :stability: experimental + """ + ... + + +class _IExperimentalInterfaceProxy(): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.IExperimentalInterface" + @builtins.property + @jsii.member(jsii_name="mutableProperty") + def mutable_property(self) -> typing.Optional[jsii.Number]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "mutableProperty") + + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]): + jsii.set(self, "mutableProperty", value) + + @jsii.member(jsii_name="method") + def method(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "method", []) + + +@jsii.interface(jsii_type="jsii-calc.IExtendsPrivateInterface") +class IExtendsPrivateInterface(jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IExtendsPrivateInterfaceProxy + + @builtins.property + @jsii.member(jsii_name="moreThings") + def more_things(self) -> typing.List[str]: + """ + stability + :stability: experimental + """ + ... + + @builtins.property + @jsii.member(jsii_name="private") + def private(self) -> str: + """ + stability + :stability: experimental + """ + ... + + @private.setter + def private(self, value: str): + ... + + +class _IExtendsPrivateInterfaceProxy(): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.IExtendsPrivateInterface" + @builtins.property + @jsii.member(jsii_name="moreThings") + def more_things(self) -> typing.List[str]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "moreThings") + + @builtins.property + @jsii.member(jsii_name="private") + def private(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "private") + + @private.setter + def private(self, value: str): + jsii.set(self, "private", value) + + +@jsii.interface(jsii_type="jsii-calc.IFriendlier") +class IFriendlier(scope.jsii_calc_lib.IFriendly, jsii.compat.Protocol): + """Even friendlier classes can implement this interface. + + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IFriendlierProxy + + @jsii.member(jsii_name="farewell") + def farewell(self) -> str: + """Say farewell. + + stability + :stability: experimental + """ + ... + + @jsii.member(jsii_name="goodbye") + def goodbye(self) -> str: + """Say goodbye. + + return + :return: A goodbye blessing. + + stability + :stability: experimental + """ + ... + + +class _IFriendlierProxy(jsii.proxy_for(scope.jsii_calc_lib.IFriendly)): + """Even friendlier classes can implement this interface. + + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.IFriendlier" + @jsii.member(jsii_name="farewell") + def farewell(self) -> str: + """Say farewell. + + stability + :stability: experimental + """ + return jsii.invoke(self, "farewell", []) + + @jsii.member(jsii_name="goodbye") + def goodbye(self) -> str: + """Say goodbye. + + return + :return: A goodbye blessing. + + stability + :stability: experimental + """ + return jsii.invoke(self, "goodbye", []) + + +@jsii.interface(jsii_type="jsii-calc.IInterfaceImplementedByAbstractClass") +class IInterfaceImplementedByAbstractClass(jsii.compat.Protocol): + """awslabs/jsii#220 Abstract return type. + + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IInterfaceImplementedByAbstractClassProxy + + @builtins.property + @jsii.member(jsii_name="propFromInterface") + def prop_from_interface(self) -> str: + """ + stability + :stability: experimental + """ + ... + + +class _IInterfaceImplementedByAbstractClassProxy(): + """awslabs/jsii#220 Abstract return type. + + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.IInterfaceImplementedByAbstractClass" + @builtins.property + @jsii.member(jsii_name="propFromInterface") + def prop_from_interface(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "propFromInterface") + + +@jsii.interface(jsii_type="jsii-calc.IInterfaceWithInternal") +class IInterfaceWithInternal(jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IInterfaceWithInternalProxy + + @jsii.member(jsii_name="visible") + def visible(self) -> None: + """ + stability + :stability: experimental + """ + ... + + +class _IInterfaceWithInternalProxy(): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.IInterfaceWithInternal" + @jsii.member(jsii_name="visible") + def visible(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "visible", []) + + +@jsii.interface(jsii_type="jsii-calc.IInterfaceWithMethods") +class IInterfaceWithMethods(jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IInterfaceWithMethodsProxy + + @builtins.property + @jsii.member(jsii_name="value") + def value(self) -> str: + """ + stability + :stability: experimental + """ + ... + + @jsii.member(jsii_name="doThings") + def do_things(self) -> None: + """ + stability + :stability: experimental + """ + ... + + +class _IInterfaceWithMethodsProxy(): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.IInterfaceWithMethods" + @builtins.property + @jsii.member(jsii_name="value") + def value(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "value") + + @jsii.member(jsii_name="doThings") + def do_things(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "doThings", []) + + +@jsii.interface(jsii_type="jsii-calc.IInterfaceWithOptionalMethodArguments") +class IInterfaceWithOptionalMethodArguments(jsii.compat.Protocol): + """awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods. + + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IInterfaceWithOptionalMethodArgumentsProxy + + @jsii.member(jsii_name="hello") + def hello(self, arg1: str, arg2: typing.Optional[jsii.Number]=None) -> None: + """ + :param arg1: - + :param arg2: - + + stability + :stability: experimental + """ + ... + + +class _IInterfaceWithOptionalMethodArgumentsProxy(): + """awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods. + + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.IInterfaceWithOptionalMethodArguments" + @jsii.member(jsii_name="hello") + def hello(self, arg1: str, arg2: typing.Optional[jsii.Number]=None) -> None: + """ + :param arg1: - + :param arg2: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "hello", [arg1, arg2]) + + +@jsii.interface(jsii_type="jsii-calc.IInterfaceWithProperties") +class IInterfaceWithProperties(jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IInterfaceWithPropertiesProxy + + @builtins.property + @jsii.member(jsii_name="readOnlyString") + def read_only_string(self) -> str: + """ + stability + :stability: experimental + """ + ... + + @builtins.property + @jsii.member(jsii_name="readWriteString") + def read_write_string(self) -> str: + """ + stability + :stability: experimental + """ + ... + + @read_write_string.setter + def read_write_string(self, value: str): + ... + + +class _IInterfaceWithPropertiesProxy(): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.IInterfaceWithProperties" + @builtins.property + @jsii.member(jsii_name="readOnlyString") + def read_only_string(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "readOnlyString") + + @builtins.property + @jsii.member(jsii_name="readWriteString") + def read_write_string(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "readWriteString") + + @read_write_string.setter + def read_write_string(self, value: str): + jsii.set(self, "readWriteString", value) + + +@jsii.interface(jsii_type="jsii-calc.IInterfaceWithPropertiesExtension") +class IInterfaceWithPropertiesExtension(IInterfaceWithProperties, jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IInterfaceWithPropertiesExtensionProxy + + @builtins.property + @jsii.member(jsii_name="foo") + def foo(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + ... + + @foo.setter + def foo(self, value: jsii.Number): + ... + + +class _IInterfaceWithPropertiesExtensionProxy(jsii.proxy_for(IInterfaceWithProperties)): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.IInterfaceWithPropertiesExtension" + @builtins.property + @jsii.member(jsii_name="foo") + def foo(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.get(self, "foo") + + @foo.setter + def foo(self, value: jsii.Number): + jsii.set(self, "foo", value) + + +@jsii.interface(jsii_type="jsii-calc.IJSII417PublicBaseOfBase") +class IJSII417PublicBaseOfBase(jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IJSII417PublicBaseOfBaseProxy + + @builtins.property + @jsii.member(jsii_name="hasRoot") + def has_root(self) -> bool: + """ + stability + :stability: experimental + """ + ... + + @jsii.member(jsii_name="foo") + def foo(self) -> None: + """ + stability + :stability: experimental + """ + ... + + +class _IJSII417PublicBaseOfBaseProxy(): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.IJSII417PublicBaseOfBase" + @builtins.property + @jsii.member(jsii_name="hasRoot") + def has_root(self) -> bool: + """ + stability + :stability: experimental + """ + return jsii.get(self, "hasRoot") + + @jsii.member(jsii_name="foo") + def foo(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "foo", []) + + +@jsii.interface(jsii_type="jsii-calc.IJsii487External") +class IJsii487External(jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IJsii487ExternalProxy + + pass + +class _IJsii487ExternalProxy(): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.IJsii487External" + pass + +@jsii.interface(jsii_type="jsii-calc.IJsii487External2") +class IJsii487External2(jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IJsii487External2Proxy + + pass + +class _IJsii487External2Proxy(): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.IJsii487External2" + pass + +@jsii.interface(jsii_type="jsii-calc.IJsii496") +class IJsii496(jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IJsii496Proxy + + pass + +class _IJsii496Proxy(): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.IJsii496" + pass + +@jsii.interface(jsii_type="jsii-calc.IMutableObjectLiteral") +class IMutableObjectLiteral(jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IMutableObjectLiteralProxy + + @builtins.property + @jsii.member(jsii_name="value") + def value(self) -> str: + """ + stability + :stability: experimental + """ + ... + + @value.setter + def value(self, value: str): + ... + + +class _IMutableObjectLiteralProxy(): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.IMutableObjectLiteral" + @builtins.property + @jsii.member(jsii_name="value") + def value(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "value") + + @value.setter + def value(self, value: str): + jsii.set(self, "value", value) + + +@jsii.interface(jsii_type="jsii-calc.INonInternalInterface") +class INonInternalInterface(IAnotherPublicInterface, jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _INonInternalInterfaceProxy + + @builtins.property + @jsii.member(jsii_name="b") + def b(self) -> str: + """ + stability + :stability: experimental + """ + ... + + @b.setter + def b(self, value: str): + ... + + @builtins.property + @jsii.member(jsii_name="c") + def c(self) -> str: + """ + stability + :stability: experimental + """ + ... + + @c.setter + def c(self, value: str): + ... + + +class _INonInternalInterfaceProxy(jsii.proxy_for(IAnotherPublicInterface)): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.INonInternalInterface" + @builtins.property + @jsii.member(jsii_name="b") + def b(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "b") + + @b.setter + def b(self, value: str): + jsii.set(self, "b", value) + + @builtins.property + @jsii.member(jsii_name="c") + def c(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "c") + + @c.setter + def c(self, value: str): + jsii.set(self, "c", value) + + +@jsii.interface(jsii_type="jsii-calc.IObjectWithProperty") +class IObjectWithProperty(jsii.compat.Protocol): + """Make sure that setters are properly called on objects with interfaces. + + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IObjectWithPropertyProxy + + @builtins.property + @jsii.member(jsii_name="property") + def property(self) -> str: + """ + stability + :stability: experimental + """ + ... + + @property.setter + def property(self, value: str): + ... + + @jsii.member(jsii_name="wasSet") + def was_set(self) -> bool: + """ + stability + :stability: experimental + """ + ... + + +class _IObjectWithPropertyProxy(): + """Make sure that setters are properly called on objects with interfaces. + + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.IObjectWithProperty" + @builtins.property + @jsii.member(jsii_name="property") + def property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "property") + + @property.setter + def property(self, value: str): + jsii.set(self, "property", value) + + @jsii.member(jsii_name="wasSet") + def was_set(self) -> bool: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "wasSet", []) + + +@jsii.interface(jsii_type="jsii-calc.IOptionalMethod") +class IOptionalMethod(jsii.compat.Protocol): + """Checks that optional result from interface method code generates correctly. + + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IOptionalMethodProxy + + @jsii.member(jsii_name="optional") + def optional(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + ... + + +class _IOptionalMethodProxy(): + """Checks that optional result from interface method code generates correctly. + + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.IOptionalMethod" + @jsii.member(jsii_name="optional") + def optional(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "optional", []) + + +@jsii.interface(jsii_type="jsii-calc.IPrivatelyImplemented") +class IPrivatelyImplemented(jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IPrivatelyImplementedProxy + + @builtins.property + @jsii.member(jsii_name="success") + def success(self) -> bool: + """ + stability + :stability: experimental + """ + ... + + +class _IPrivatelyImplementedProxy(): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.IPrivatelyImplemented" + @builtins.property + @jsii.member(jsii_name="success") + def success(self) -> bool: + """ + stability + :stability: experimental + """ + return jsii.get(self, "success") + + +@jsii.interface(jsii_type="jsii-calc.IPublicInterface") +class IPublicInterface(jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IPublicInterfaceProxy + + @jsii.member(jsii_name="bye") + def bye(self) -> str: + """ + stability + :stability: experimental + """ + ... + + +class _IPublicInterfaceProxy(): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.IPublicInterface" + @jsii.member(jsii_name="bye") + def bye(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "bye", []) + + +@jsii.interface(jsii_type="jsii-calc.IPublicInterface2") +class IPublicInterface2(jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IPublicInterface2Proxy + + @jsii.member(jsii_name="ciao") + def ciao(self) -> str: + """ + stability + :stability: experimental + """ + ... + + +class _IPublicInterface2Proxy(): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.IPublicInterface2" + @jsii.member(jsii_name="ciao") + def ciao(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "ciao", []) + + +@jsii.interface(jsii_type="jsii-calc.IRandomNumberGenerator") +class IRandomNumberGenerator(jsii.compat.Protocol): + """Generates random numbers. + + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IRandomNumberGeneratorProxy + + @jsii.member(jsii_name="next") + def next(self) -> jsii.Number: + """Returns another random number. + + return + :return: A random number. + + stability + :stability: experimental + """ + ... + + +class _IRandomNumberGeneratorProxy(): + """Generates random numbers. + + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.IRandomNumberGenerator" + @jsii.member(jsii_name="next") + def next(self) -> jsii.Number: + """Returns another random number. + + return + :return: A random number. + + stability + :stability: experimental + """ + return jsii.invoke(self, "next", []) + + +@jsii.interface(jsii_type="jsii-calc.IReturnJsii976") +class IReturnJsii976(jsii.compat.Protocol): + """Returns a subclass of a known class which implements an interface. + + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IReturnJsii976Proxy + + @builtins.property + @jsii.member(jsii_name="foo") + def foo(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + ... + + +class _IReturnJsii976Proxy(): + """Returns a subclass of a known class which implements an interface. + + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.IReturnJsii976" + @builtins.property + @jsii.member(jsii_name="foo") + def foo(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.get(self, "foo") + + +@jsii.interface(jsii_type="jsii-calc.IReturnsNumber") +class IReturnsNumber(jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IReturnsNumberProxy + + @builtins.property + @jsii.member(jsii_name="numberProp") + def number_prop(self) -> scope.jsii_calc_lib.Number: + """ + stability + :stability: experimental + """ + ... + + @jsii.member(jsii_name="obtainNumber") + def obtain_number(self) -> scope.jsii_calc_lib.IDoublable: + """ + stability + :stability: experimental + """ + ... + + +class _IReturnsNumberProxy(): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.IReturnsNumber" + @builtins.property + @jsii.member(jsii_name="numberProp") + def number_prop(self) -> scope.jsii_calc_lib.Number: + """ + stability + :stability: experimental + """ + return jsii.get(self, "numberProp") + + @jsii.member(jsii_name="obtainNumber") + def obtain_number(self) -> scope.jsii_calc_lib.IDoublable: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "obtainNumber", []) + + +@jsii.interface(jsii_type="jsii-calc.IStableInterface") +class IStableInterface(jsii.compat.Protocol): + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IStableInterfaceProxy + + @builtins.property + @jsii.member(jsii_name="mutableProperty") + def mutable_property(self) -> typing.Optional[jsii.Number]: + ... + + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]): + ... + + @jsii.member(jsii_name="method") + def method(self) -> None: + ... + + +class _IStableInterfaceProxy(): + __jsii_type__ = "jsii-calc.IStableInterface" + @builtins.property + @jsii.member(jsii_name="mutableProperty") + def mutable_property(self) -> typing.Optional[jsii.Number]: + return jsii.get(self, "mutableProperty") + + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]): + jsii.set(self, "mutableProperty", value) + + @jsii.member(jsii_name="method") + def method(self) -> None: + return jsii.invoke(self, "method", []) + + +@jsii.interface(jsii_type="jsii-calc.IStructReturningDelegate") +class IStructReturningDelegate(jsii.compat.Protocol): + """Verifies that a "pure" implementation of an interface works correctly. + + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IStructReturningDelegateProxy + + @jsii.member(jsii_name="returnStruct") + def return_struct(self) -> "StructB": + """ + stability + :stability: experimental + """ + ... + + +class _IStructReturningDelegateProxy(): + """Verifies that a "pure" implementation of an interface works correctly. + + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.IStructReturningDelegate" + @jsii.member(jsii_name="returnStruct") + def return_struct(self) -> "StructB": + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "returnStruct", []) + + +class ImplementInternalInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ImplementInternalInterface"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(ImplementInternalInterface, self, []) + + @builtins.property + @jsii.member(jsii_name="prop") + def prop(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "prop") + + @prop.setter + def prop(self, value: str): + jsii.set(self, "prop", value) + + +class Implementation(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Implementation"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(Implementation, self, []) + + @builtins.property + @jsii.member(jsii_name="value") + def value(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.get(self, "value") + + +@jsii.implements(IInterfaceWithInternal) +class ImplementsInterfaceWithInternal(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ImplementsInterfaceWithInternal"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(ImplementsInterfaceWithInternal, self, []) + + @jsii.member(jsii_name="visible") + def visible(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "visible", []) + + +class ImplementsInterfaceWithInternalSubclass(ImplementsInterfaceWithInternal, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ImplementsInterfaceWithInternalSubclass"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(ImplementsInterfaceWithInternalSubclass, self, []) + + +class ImplementsPrivateInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ImplementsPrivateInterface"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(ImplementsPrivateInterface, self, []) + + @builtins.property + @jsii.member(jsii_name="private") + def private(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "private") + + @private.setter + def private(self, value: str): + jsii.set(self, "private", value) + + +@jsii.data_type(jsii_type="jsii-calc.ImplictBaseOfBase", jsii_struct_bases=[scope.jsii_calc_base.BaseProps], name_mapping={'foo': 'foo', 'bar': 'bar', 'goo': 'goo'}) +class ImplictBaseOfBase(scope.jsii_calc_base.BaseProps): + def __init__(self, *, foo: scope.jsii_calc_base_of_base.Very, bar: str, goo: datetime.datetime): + """ + :param foo: - + :param bar: - + :param goo: + + stability + :stability: experimental + """ + self._values = { + 'foo': foo, + 'bar': bar, + 'goo': goo, + } + + @builtins.property + def foo(self) -> scope.jsii_calc_base_of_base.Very: + return self._values.get('foo') + + @builtins.property + def bar(self) -> str: + return self._values.get('bar') + + @builtins.property + def goo(self) -> datetime.datetime: + """ + stability + :stability: experimental + """ + return self._values.get('goo') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'ImplictBaseOfBase(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +class InterfaceCollections(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.InterfaceCollections"): + """Verifies that collections of interfaces or structs are correctly handled. + + See: https://github.com/aws/jsii/issues/1196 + + stability + :stability: experimental + """ + @jsii.member(jsii_name="listOfInterfaces") + @builtins.classmethod + def list_of_interfaces(cls) -> typing.List["IBell"]: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "listOfInterfaces", []) + + @jsii.member(jsii_name="listOfStructs") + @builtins.classmethod + def list_of_structs(cls) -> typing.List["StructA"]: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "listOfStructs", []) + + @jsii.member(jsii_name="mapOfInterfaces") + @builtins.classmethod + def map_of_interfaces(cls) -> typing.Mapping[str,"IBell"]: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "mapOfInterfaces", []) + + @jsii.member(jsii_name="mapOfStructs") + @builtins.classmethod + def map_of_structs(cls) -> typing.Mapping[str,"StructA"]: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "mapOfStructs", []) + + +class InterfacesMaker(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.InterfacesMaker"): + """We can return arrays of interfaces See aws/aws-cdk#2362. + + stability + :stability: experimental + """ + @jsii.member(jsii_name="makeInterfaces") + @builtins.classmethod + def make_interfaces(cls, count: jsii.Number) -> typing.List[scope.jsii_calc_lib.IDoublable]: + """ + :param count: - + + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "makeInterfaces", [count]) + + +class JSII417PublicBaseOfBase(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JSII417PublicBaseOfBase"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(JSII417PublicBaseOfBase, self, []) + + @jsii.member(jsii_name="makeInstance") + @builtins.classmethod + def make_instance(cls) -> "JSII417PublicBaseOfBase": + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "makeInstance", []) + + @jsii.member(jsii_name="foo") + def foo(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "foo", []) + + @builtins.property + @jsii.member(jsii_name="hasRoot") + def has_root(self) -> bool: + """ + stability + :stability: experimental + """ + return jsii.get(self, "hasRoot") + + +class JSObjectLiteralForInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JSObjectLiteralForInterface"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(JSObjectLiteralForInterface, self, []) + + @jsii.member(jsii_name="giveMeFriendly") + def give_me_friendly(self) -> scope.jsii_calc_lib.IFriendly: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "giveMeFriendly", []) + + @jsii.member(jsii_name="giveMeFriendlyGenerator") + def give_me_friendly_generator(self) -> "IFriendlyRandomGenerator": + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "giveMeFriendlyGenerator", []) + + +class JSObjectLiteralToNative(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JSObjectLiteralToNative"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(JSObjectLiteralToNative, self, []) + + @jsii.member(jsii_name="returnLiteral") + def return_literal(self) -> "JSObjectLiteralToNativeClass": + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "returnLiteral", []) + + +class JSObjectLiteralToNativeClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JSObjectLiteralToNativeClass"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(JSObjectLiteralToNativeClass, self, []) + + @builtins.property + @jsii.member(jsii_name="propA") + def prop_a(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "propA") + + @prop_a.setter + def prop_a(self, value: str): + jsii.set(self, "propA", value) + + @builtins.property + @jsii.member(jsii_name="propB") + def prop_b(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.get(self, "propB") + + @prop_b.setter + def prop_b(self, value: jsii.Number): + jsii.set(self, "propB", value) + + +class JavaReservedWords(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JavaReservedWords"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(JavaReservedWords, self, []) + + @jsii.member(jsii_name="abstract") + def abstract(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "abstract", []) + + @jsii.member(jsii_name="assert") + def assert_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "assert", []) + + @jsii.member(jsii_name="boolean") + def boolean(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "boolean", []) + + @jsii.member(jsii_name="break") + def break_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "break", []) + + @jsii.member(jsii_name="byte") + def byte(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "byte", []) + + @jsii.member(jsii_name="case") + def case(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "case", []) + + @jsii.member(jsii_name="catch") + def catch(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "catch", []) + + @jsii.member(jsii_name="char") + def char(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "char", []) + + @jsii.member(jsii_name="class") + def class_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "class", []) + + @jsii.member(jsii_name="const") + def const(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "const", []) + + @jsii.member(jsii_name="continue") + def continue_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "continue", []) + + @jsii.member(jsii_name="default") + def default(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "default", []) + + @jsii.member(jsii_name="do") + def do(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "do", []) + + @jsii.member(jsii_name="double") + def double(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "double", []) + + @jsii.member(jsii_name="else") + def else_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "else", []) + + @jsii.member(jsii_name="enum") + def enum(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "enum", []) + + @jsii.member(jsii_name="extends") + def extends(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "extends", []) + + @jsii.member(jsii_name="false") + def false(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "false", []) + + @jsii.member(jsii_name="final") + def final(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "final", []) + + @jsii.member(jsii_name="finally") + def finally_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "finally", []) + + @jsii.member(jsii_name="float") + def float(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "float", []) + + @jsii.member(jsii_name="for") + def for_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "for", []) + + @jsii.member(jsii_name="goto") + def goto(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "goto", []) + + @jsii.member(jsii_name="if") + def if_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "if", []) + + @jsii.member(jsii_name="implements") + def implements(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "implements", []) + + @jsii.member(jsii_name="import") + def import_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "import", []) + + @jsii.member(jsii_name="instanceof") + def instanceof(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "instanceof", []) + + @jsii.member(jsii_name="int") + def int(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "int", []) + + @jsii.member(jsii_name="interface") + def interface(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "interface", []) + + @jsii.member(jsii_name="long") + def long(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "long", []) + + @jsii.member(jsii_name="native") + def native(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "native", []) + + @jsii.member(jsii_name="new") + def new(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "new", []) + + @jsii.member(jsii_name="null") + def null(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "null", []) + + @jsii.member(jsii_name="package") + def package(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "package", []) + + @jsii.member(jsii_name="private") + def private(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "private", []) + + @jsii.member(jsii_name="protected") + def protected(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "protected", []) + + @jsii.member(jsii_name="public") + def public(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "public", []) + + @jsii.member(jsii_name="return") + def return_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "return", []) + + @jsii.member(jsii_name="short") + def short(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "short", []) + + @jsii.member(jsii_name="static") + def static(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "static", []) + + @jsii.member(jsii_name="strictfp") + def strictfp(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "strictfp", []) + + @jsii.member(jsii_name="super") + def super(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "super", []) + + @jsii.member(jsii_name="switch") + def switch(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "switch", []) + + @jsii.member(jsii_name="synchronized") + def synchronized(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "synchronized", []) + + @jsii.member(jsii_name="this") + def this(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "this", []) + + @jsii.member(jsii_name="throw") + def throw(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "throw", []) + + @jsii.member(jsii_name="throws") + def throws(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "throws", []) + + @jsii.member(jsii_name="transient") + def transient(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "transient", []) + + @jsii.member(jsii_name="true") + def true(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "true", []) + + @jsii.member(jsii_name="try") + def try_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "try", []) + + @jsii.member(jsii_name="void") + def void(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "void", []) + + @jsii.member(jsii_name="volatile") + def volatile(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "volatile", []) + + @builtins.property + @jsii.member(jsii_name="while") + def while_(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "while") + + @while_.setter + def while_(self, value: str): + jsii.set(self, "while", value) + + +@jsii.implements(IJsii487External2, IJsii487External) +class Jsii487Derived(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Jsii487Derived"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(Jsii487Derived, self, []) + + +@jsii.implements(IJsii496) +class Jsii496Derived(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Jsii496Derived"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(Jsii496Derived, self, []) + + +class JsiiAgent(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JsiiAgent"): + """Host runtime version should be set via JSII_AGENT. + + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(JsiiAgent, self, []) + + @jsii.python.classproperty + @jsii.member(jsii_name="jsiiAgent") + def jsii_agent(cls) -> typing.Optional[str]: + """Returns the value of the JSII_AGENT environment variable. + + stability + :stability: experimental + """ + return jsii.sget(cls, "jsiiAgent") + + +class JsonFormatter(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JsonFormatter"): + """Make sure structs are un-decorated on the way in. + + see + :see: https://github.com/aws/aws-cdk/issues/5066 + stability + :stability: experimental + """ + @jsii.member(jsii_name="anyArray") + @builtins.classmethod + def any_array(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyArray", []) + + @jsii.member(jsii_name="anyBooleanFalse") + @builtins.classmethod + def any_boolean_false(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyBooleanFalse", []) + + @jsii.member(jsii_name="anyBooleanTrue") + @builtins.classmethod + def any_boolean_true(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyBooleanTrue", []) + + @jsii.member(jsii_name="anyDate") + @builtins.classmethod + def any_date(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyDate", []) + + @jsii.member(jsii_name="anyEmptyString") + @builtins.classmethod + def any_empty_string(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyEmptyString", []) + + @jsii.member(jsii_name="anyFunction") + @builtins.classmethod + def any_function(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyFunction", []) + + @jsii.member(jsii_name="anyHash") + @builtins.classmethod + def any_hash(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyHash", []) + + @jsii.member(jsii_name="anyNull") + @builtins.classmethod + def any_null(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyNull", []) + + @jsii.member(jsii_name="anyNumber") + @builtins.classmethod + def any_number(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyNumber", []) + + @jsii.member(jsii_name="anyRef") + @builtins.classmethod + def any_ref(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyRef", []) + + @jsii.member(jsii_name="anyString") + @builtins.classmethod + def any_string(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyString", []) + + @jsii.member(jsii_name="anyUndefined") + @builtins.classmethod + def any_undefined(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyUndefined", []) + + @jsii.member(jsii_name="anyZero") + @builtins.classmethod + def any_zero(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "anyZero", []) + + @jsii.member(jsii_name="stringify") + @builtins.classmethod + def stringify(cls, value: typing.Any=None) -> typing.Optional[str]: + """ + :param value: - + + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "stringify", [value]) + + +@jsii.data_type(jsii_type="jsii-calc.LoadBalancedFargateServiceProps", jsii_struct_bases=[], name_mapping={'container_port': 'containerPort', 'cpu': 'cpu', 'memory_mib': 'memoryMiB', 'public_load_balancer': 'publicLoadBalancer', 'public_tasks': 'publicTasks'}) +class LoadBalancedFargateServiceProps(): + def __init__(self, *, container_port: typing.Optional[jsii.Number]=None, cpu: typing.Optional[str]=None, memory_mib: typing.Optional[str]=None, public_load_balancer: typing.Optional[bool]=None, public_tasks: typing.Optional[bool]=None): + """jsii#298: show default values in sphinx documentation, and respect newlines. + + :param container_port: The container port of the application load balancer attached to your Fargate service. Corresponds to container port mapping. Default: 80 + :param cpu: The number of cpu units used by the task. Valid values, which determines your range of valid values for the memory parameter: 256 (.25 vCPU) - Available memory values: 0.5GB, 1GB, 2GB 512 (.5 vCPU) - Available memory values: 1GB, 2GB, 3GB, 4GB 1024 (1 vCPU) - Available memory values: 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB 2048 (2 vCPU) - Available memory values: Between 4GB and 16GB in 1GB increments 4096 (4 vCPU) - Available memory values: Between 8GB and 30GB in 1GB increments This default is set in the underlying FargateTaskDefinition construct. Default: 256 + :param memory_mib: The amount (in MiB) of memory used by the task. This field is required and you must use one of the following values, which determines your range of valid values for the cpu parameter: 0.5GB, 1GB, 2GB - Available cpu values: 256 (.25 vCPU) 1GB, 2GB, 3GB, 4GB - Available cpu values: 512 (.5 vCPU) 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - Available cpu values: 1024 (1 vCPU) Between 4GB and 16GB in 1GB increments - Available cpu values: 2048 (2 vCPU) Between 8GB and 30GB in 1GB increments - Available cpu values: 4096 (4 vCPU) This default is set in the underlying FargateTaskDefinition construct. Default: 512 + :param public_load_balancer: Determines whether the Application Load Balancer will be internet-facing. Default: true + :param public_tasks: Determines whether your Fargate Service will be assigned a public IP address. Default: false + + stability + :stability: experimental + """ + self._values = { + } + if container_port is not None: self._values["container_port"] = container_port + if cpu is not None: self._values["cpu"] = cpu + if memory_mib is not None: self._values["memory_mib"] = memory_mib + if public_load_balancer is not None: self._values["public_load_balancer"] = public_load_balancer + if public_tasks is not None: self._values["public_tasks"] = public_tasks + + @builtins.property + def container_port(self) -> typing.Optional[jsii.Number]: + """The container port of the application load balancer attached to your Fargate service. + + Corresponds to container port mapping. + + default + :default: 80 + + stability + :stability: experimental + """ + return self._values.get('container_port') + + @builtins.property + def cpu(self) -> typing.Optional[str]: + """The number of cpu units used by the task. + + Valid values, which determines your range of valid values for the memory parameter: + 256 (.25 vCPU) - Available memory values: 0.5GB, 1GB, 2GB + 512 (.5 vCPU) - Available memory values: 1GB, 2GB, 3GB, 4GB + 1024 (1 vCPU) - Available memory values: 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB + 2048 (2 vCPU) - Available memory values: Between 4GB and 16GB in 1GB increments + 4096 (4 vCPU) - Available memory values: Between 8GB and 30GB in 1GB increments + + This default is set in the underlying FargateTaskDefinition construct. + + default + :default: 256 + + stability + :stability: experimental + """ + return self._values.get('cpu') + + @builtins.property + def memory_mib(self) -> typing.Optional[str]: + """The amount (in MiB) of memory used by the task. + + This field is required and you must use one of the following values, which determines your range of valid values + for the cpu parameter: + + 0.5GB, 1GB, 2GB - Available cpu values: 256 (.25 vCPU) + + 1GB, 2GB, 3GB, 4GB - Available cpu values: 512 (.5 vCPU) + + 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - Available cpu values: 1024 (1 vCPU) + + Between 4GB and 16GB in 1GB increments - Available cpu values: 2048 (2 vCPU) + + Between 8GB and 30GB in 1GB increments - Available cpu values: 4096 (4 vCPU) + + This default is set in the underlying FargateTaskDefinition construct. + + default + :default: 512 + + stability + :stability: experimental + """ + return self._values.get('memory_mib') + + @builtins.property + def public_load_balancer(self) -> typing.Optional[bool]: + """Determines whether the Application Load Balancer will be internet-facing. + + default + :default: true + + stability + :stability: experimental + """ + return self._values.get('public_load_balancer') + + @builtins.property + def public_tasks(self) -> typing.Optional[bool]: + """Determines whether your Fargate Service will be assigned a public IP address. + + default + :default: false + + stability + :stability: experimental + """ + return self._values.get('public_tasks') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'LoadBalancedFargateServiceProps(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +class MethodNamedProperty(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.MethodNamedProperty"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(MethodNamedProperty, self, []) + + @jsii.member(jsii_name="property") + def property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "property", []) + + @builtins.property + @jsii.member(jsii_name="elite") + def elite(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.get(self, "elite") + + +@jsii.implements(IFriendlier, IRandomNumberGenerator) +class Multiply(BinaryOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Multiply"): + """The "*" binary operation. + + stability + :stability: experimental + """ + def __init__(self, lhs: scope.jsii_calc_lib.Value, rhs: scope.jsii_calc_lib.Value) -> None: + """Creates a BinaryOperation. + + :param lhs: Left-hand side operand. + :param rhs: Right-hand side operand. + + stability + :stability: experimental + """ + jsii.create(Multiply, self, [lhs, rhs]) + + @jsii.member(jsii_name="farewell") + def farewell(self) -> str: + """Say farewell. + + stability + :stability: experimental + """ + return jsii.invoke(self, "farewell", []) + + @jsii.member(jsii_name="goodbye") + def goodbye(self) -> str: + """Say goodbye. + + stability + :stability: experimental + """ + return jsii.invoke(self, "goodbye", []) + + @jsii.member(jsii_name="next") + def next(self) -> jsii.Number: + """Returns another random number. + + stability + :stability: experimental + """ + return jsii.invoke(self, "next", []) + + @jsii.member(jsii_name="toString") + def to_string(self) -> str: + """String representation of the value. + + stability + :stability: experimental + """ + return jsii.invoke(self, "toString", []) + + @builtins.property + @jsii.member(jsii_name="value") + def value(self) -> jsii.Number: + """The value. + + stability + :stability: experimental + """ + return jsii.get(self, "value") + + +@jsii.data_type(jsii_type="jsii-calc.NestedStruct", jsii_struct_bases=[], name_mapping={'number_prop': 'numberProp'}) +class NestedStruct(): + def __init__(self, *, number_prop: jsii.Number): + """ + :param number_prop: When provided, must be > 0. + + stability + :stability: experimental + """ + self._values = { + 'number_prop': number_prop, + } + + @builtins.property + def number_prop(self) -> jsii.Number: + """When provided, must be > 0. + + stability + :stability: experimental + """ + return self._values.get('number_prop') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'NestedStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +class NodeStandardLibrary(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.NodeStandardLibrary"): + """Test fixture to verify that jsii modules can use the node standard library. + + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(NodeStandardLibrary, self, []) + + @jsii.member(jsii_name="cryptoSha256") + def crypto_sha256(self) -> str: + """Uses node.js "crypto" module to calculate sha256 of a string. + + return + :return: "6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50" + + stability + :stability: experimental + """ + return jsii.invoke(self, "cryptoSha256", []) + + @jsii.member(jsii_name="fsReadFile") + def fs_read_file(self) -> str: + """Reads a local resource file (resource.txt) asynchronously. + + return + :return: "Hello, resource!" + + stability + :stability: experimental + """ + return jsii.ainvoke(self, "fsReadFile", []) + + @jsii.member(jsii_name="fsReadFileSync") + def fs_read_file_sync(self) -> str: + """Sync version of fsReadFile. + + return + :return: "Hello, resource! SYNC!" + + stability + :stability: experimental + """ + return jsii.invoke(self, "fsReadFileSync", []) + + @builtins.property + @jsii.member(jsii_name="osPlatform") + def os_platform(self) -> str: + """Returns the current os.platform() from the "os" node module. + + stability + :stability: experimental + """ + return jsii.get(self, "osPlatform") + + +class NullShouldBeTreatedAsUndefined(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.NullShouldBeTreatedAsUndefined"): + """jsii#282, aws-cdk#157: null should be treated as "undefined". + + stability + :stability: experimental + """ + def __init__(self, _param1: str, optional: typing.Any=None) -> None: + """ + :param _param1: - + :param optional: - + + stability + :stability: experimental + """ + jsii.create(NullShouldBeTreatedAsUndefined, self, [_param1, optional]) + + @jsii.member(jsii_name="giveMeUndefined") + def give_me_undefined(self, value: typing.Any=None) -> None: + """ + :param value: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "giveMeUndefined", [value]) + + @jsii.member(jsii_name="giveMeUndefinedInsideAnObject") + def give_me_undefined_inside_an_object(self, *, array_with_three_elements_and_undefined_as_second_argument: typing.List[typing.Any], this_should_be_undefined: typing.Any=None) -> None: + """ + :param array_with_three_elements_and_undefined_as_second_argument: + :param this_should_be_undefined: + + stability + :stability: experimental + """ + input = NullShouldBeTreatedAsUndefinedData(array_with_three_elements_and_undefined_as_second_argument=array_with_three_elements_and_undefined_as_second_argument, this_should_be_undefined=this_should_be_undefined) + + return jsii.invoke(self, "giveMeUndefinedInsideAnObject", [input]) + + @jsii.member(jsii_name="verifyPropertyIsUndefined") + def verify_property_is_undefined(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "verifyPropertyIsUndefined", []) + + @builtins.property + @jsii.member(jsii_name="changeMeToUndefined") + def change_me_to_undefined(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "changeMeToUndefined") + + @change_me_to_undefined.setter + def change_me_to_undefined(self, value: typing.Optional[str]): + jsii.set(self, "changeMeToUndefined", value) + + +@jsii.data_type(jsii_type="jsii-calc.NullShouldBeTreatedAsUndefinedData", jsii_struct_bases=[], name_mapping={'array_with_three_elements_and_undefined_as_second_argument': 'arrayWithThreeElementsAndUndefinedAsSecondArgument', 'this_should_be_undefined': 'thisShouldBeUndefined'}) +class NullShouldBeTreatedAsUndefinedData(): + def __init__(self, *, array_with_three_elements_and_undefined_as_second_argument: typing.List[typing.Any], this_should_be_undefined: typing.Any=None): + """ + :param array_with_three_elements_and_undefined_as_second_argument: + :param this_should_be_undefined: + + stability + :stability: experimental + """ + self._values = { + 'array_with_three_elements_and_undefined_as_second_argument': array_with_three_elements_and_undefined_as_second_argument, + } + if this_should_be_undefined is not None: self._values["this_should_be_undefined"] = this_should_be_undefined + + @builtins.property + def array_with_three_elements_and_undefined_as_second_argument(self) -> typing.List[typing.Any]: + """ + stability + :stability: experimental + """ + return self._values.get('array_with_three_elements_and_undefined_as_second_argument') + + @builtins.property + def this_should_be_undefined(self) -> typing.Any: + """ + stability + :stability: experimental + """ + return self._values.get('this_should_be_undefined') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'NullShouldBeTreatedAsUndefinedData(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +class NumberGenerator(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.NumberGenerator"): + """This allows us to test that a reference can be stored for objects that implement interfaces. + + stability + :stability: experimental + """ + def __init__(self, generator: "IRandomNumberGenerator") -> None: + """ + :param generator: - + + stability + :stability: experimental + """ + jsii.create(NumberGenerator, self, [generator]) + + @jsii.member(jsii_name="isSameGenerator") + def is_same_generator(self, gen: "IRandomNumberGenerator") -> bool: + """ + :param gen: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "isSameGenerator", [gen]) + + @jsii.member(jsii_name="nextTimes100") + def next_times100(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "nextTimes100", []) + + @builtins.property + @jsii.member(jsii_name="generator") + def generator(self) -> "IRandomNumberGenerator": + """ + stability + :stability: experimental + """ + return jsii.get(self, "generator") + + @generator.setter + def generator(self, value: "IRandomNumberGenerator"): + jsii.set(self, "generator", value) + + +class ObjectRefsInCollections(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ObjectRefsInCollections"): + """Verify that object references can be passed inside collections. + + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(ObjectRefsInCollections, self, []) + + @jsii.member(jsii_name="sumFromArray") + def sum_from_array(self, values: typing.List[scope.jsii_calc_lib.Value]) -> jsii.Number: + """Returns the sum of all values. + + :param values: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "sumFromArray", [values]) + + @jsii.member(jsii_name="sumFromMap") + def sum_from_map(self, values: typing.Mapping[str,scope.jsii_calc_lib.Value]) -> jsii.Number: + """Returns the sum of all values in a map. + + :param values: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "sumFromMap", [values]) + + +class ObjectWithPropertyProvider(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ObjectWithPropertyProvider"): + """ + stability + :stability: experimental + """ + @jsii.member(jsii_name="provide") + @builtins.classmethod + def provide(cls) -> "IObjectWithProperty": + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "provide", []) + + +class Old(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Old"): + """Old class. + + deprecated + :deprecated: Use the new class + + stability + :stability: deprecated + """ + def __init__(self) -> None: + jsii.create(Old, self, []) + + @jsii.member(jsii_name="doAThing") + def do_a_thing(self) -> None: + """Doo wop that thing. + + stability + :stability: deprecated + """ + return jsii.invoke(self, "doAThing", []) + + +class OptionalArgumentInvoker(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OptionalArgumentInvoker"): + """ + stability + :stability: experimental + """ + def __init__(self, delegate: "IInterfaceWithOptionalMethodArguments") -> None: + """ + :param delegate: - + + stability + :stability: experimental + """ + jsii.create(OptionalArgumentInvoker, self, [delegate]) + + @jsii.member(jsii_name="invokeWithOptional") + def invoke_with_optional(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "invokeWithOptional", []) + + @jsii.member(jsii_name="invokeWithoutOptional") + def invoke_without_optional(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "invokeWithoutOptional", []) + + +class OptionalConstructorArgument(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OptionalConstructorArgument"): + """ + stability + :stability: experimental + """ + def __init__(self, arg1: jsii.Number, arg2: str, arg3: typing.Optional[datetime.datetime]=None) -> None: + """ + :param arg1: - + :param arg2: - + :param arg3: - + + stability + :stability: experimental + """ + jsii.create(OptionalConstructorArgument, self, [arg1, arg2, arg3]) + + @builtins.property + @jsii.member(jsii_name="arg1") + def arg1(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.get(self, "arg1") + + @builtins.property + @jsii.member(jsii_name="arg2") + def arg2(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "arg2") + + @builtins.property + @jsii.member(jsii_name="arg3") + def arg3(self) -> typing.Optional[datetime.datetime]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "arg3") + + +@jsii.data_type(jsii_type="jsii-calc.OptionalStruct", jsii_struct_bases=[], name_mapping={'field': 'field'}) +class OptionalStruct(): + def __init__(self, *, field: typing.Optional[str]=None): + """ + :param field: + + stability + :stability: experimental + """ + self._values = { + } + if field is not None: self._values["field"] = field + + @builtins.property + def field(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + return self._values.get('field') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'OptionalStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +class OptionalStructConsumer(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OptionalStructConsumer"): + """ + stability + :stability: experimental + """ + def __init__(self, *, field: typing.Optional[str]=None) -> None: + """ + :param field: + + stability + :stability: experimental + """ + optional_struct = OptionalStruct(field=field) + + jsii.create(OptionalStructConsumer, self, [optional_struct]) + + @builtins.property + @jsii.member(jsii_name="parameterWasUndefined") + def parameter_was_undefined(self) -> bool: + """ + stability + :stability: experimental + """ + return jsii.get(self, "parameterWasUndefined") + + @builtins.property + @jsii.member(jsii_name="fieldValue") + def field_value(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "fieldValue") + + +class OverridableProtectedMember(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OverridableProtectedMember"): + """ + see + :see: https://github.com/aws/jsii/issues/903 + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(OverridableProtectedMember, self, []) + + @jsii.member(jsii_name="overrideMe") + def _override_me(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "overrideMe", []) + + @jsii.member(jsii_name="switchModes") + def switch_modes(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "switchModes", []) + + @jsii.member(jsii_name="valueFromProtected") + def value_from_protected(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "valueFromProtected", []) + + @builtins.property + @jsii.member(jsii_name="overrideReadOnly") + def _override_read_only(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "overrideReadOnly") + + @builtins.property + @jsii.member(jsii_name="overrideReadWrite") + def _override_read_write(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "overrideReadWrite") + + @_override_read_write.setter + def _override_read_write(self, value: str): + jsii.set(self, "overrideReadWrite", value) + + +class OverrideReturnsObject(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OverrideReturnsObject"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(OverrideReturnsObject, self, []) + + @jsii.member(jsii_name="test") + def test(self, obj: "IReturnsNumber") -> jsii.Number: + """ + :param obj: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "test", [obj]) + + +@jsii.data_type(jsii_type="jsii-calc.ParentStruct982", jsii_struct_bases=[], name_mapping={'foo': 'foo'}) +class ParentStruct982(): + def __init__(self, *, foo: str): + """https://github.com/aws/jsii/issues/982. + + :param foo: + + stability + :stability: experimental + """ + self._values = { + 'foo': foo, + } + + @builtins.property + def foo(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('foo') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'ParentStruct982(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +class PartiallyInitializedThisConsumer(metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.PartiallyInitializedThisConsumer"): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _PartiallyInitializedThisConsumerProxy + + def __init__(self) -> None: + jsii.create(PartiallyInitializedThisConsumer, self, []) + + @jsii.member(jsii_name="consumePartiallyInitializedThis") + @abc.abstractmethod + def consume_partially_initialized_this(self, obj: "ConstructorPassesThisOut", dt: datetime.datetime, ev: "AllTypesEnum") -> str: + """ + :param obj: - + :param dt: - + :param ev: - + + stability + :stability: experimental + """ + ... + + +class _PartiallyInitializedThisConsumerProxy(PartiallyInitializedThisConsumer): + @jsii.member(jsii_name="consumePartiallyInitializedThis") + def consume_partially_initialized_this(self, obj: "ConstructorPassesThisOut", dt: datetime.datetime, ev: "AllTypesEnum") -> str: + """ + :param obj: - + :param dt: - + :param ev: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "consumePartiallyInitializedThis", [obj, dt, ev]) + + +class Polymorphism(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Polymorphism"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(Polymorphism, self, []) + + @jsii.member(jsii_name="sayHello") + def say_hello(self, friendly: scope.jsii_calc_lib.IFriendly) -> str: + """ + :param friendly: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "sayHello", [friendly]) + + +class Power(composition.CompositeOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Power"): + """The power operation. + + stability + :stability: experimental + """ + def __init__(self, base: scope.jsii_calc_lib.Value, pow: scope.jsii_calc_lib.Value) -> None: + """Creates a Power operation. + + :param base: The base of the power. + :param pow: The number of times to multiply. + + stability + :stability: experimental + """ + jsii.create(Power, self, [base, pow]) + + @builtins.property + @jsii.member(jsii_name="base") + def base(self) -> scope.jsii_calc_lib.Value: + """The base of the power. + + stability + :stability: experimental + """ + return jsii.get(self, "base") + + @builtins.property + @jsii.member(jsii_name="expression") + def expression(self) -> scope.jsii_calc_lib.Value: + """The expression that this operation consists of. + + Must be implemented by derived classes. + + stability + :stability: experimental + """ + return jsii.get(self, "expression") + + @builtins.property + @jsii.member(jsii_name="pow") + def pow(self) -> scope.jsii_calc_lib.Value: + """The number of times to multiply. + + stability + :stability: experimental + """ + return jsii.get(self, "pow") + + +class PropertyNamedProperty(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.PropertyNamedProperty"): + """Reproduction for https://github.com/aws/jsii/issues/1113 Where a method or property named "property" would result in impossible to load Python code. + + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(PropertyNamedProperty, self, []) + + @builtins.property + @jsii.member(jsii_name="property") + def property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "property") + + @builtins.property + @jsii.member(jsii_name="yetAnoterOne") + def yet_anoter_one(self) -> bool: + """ + stability + :stability: experimental + """ + return jsii.get(self, "yetAnoterOne") + + +class PublicClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.PublicClass"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(PublicClass, self, []) + + @jsii.member(jsii_name="hello") + def hello(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "hello", []) + + +class PythonReservedWords(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.PythonReservedWords"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(PythonReservedWords, self, []) + + @jsii.member(jsii_name="and") + def and_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "and", []) + + @jsii.member(jsii_name="as") + def as_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "as", []) + + @jsii.member(jsii_name="assert") + def assert_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "assert", []) + + @jsii.member(jsii_name="async") + def async_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "async", []) + + @jsii.member(jsii_name="await") + def await_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "await", []) + + @jsii.member(jsii_name="break") + def break_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "break", []) + + @jsii.member(jsii_name="class") + def class_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "class", []) + + @jsii.member(jsii_name="continue") + def continue_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "continue", []) + + @jsii.member(jsii_name="def") + def def_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "def", []) + + @jsii.member(jsii_name="del") + def del_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "del", []) + + @jsii.member(jsii_name="elif") + def elif_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "elif", []) + + @jsii.member(jsii_name="else") + def else_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "else", []) + + @jsii.member(jsii_name="except") + def except_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "except", []) + + @jsii.member(jsii_name="finally") + def finally_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "finally", []) + + @jsii.member(jsii_name="for") + def for_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "for", []) + + @jsii.member(jsii_name="from") + def from_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "from", []) + + @jsii.member(jsii_name="global") + def global_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "global", []) + + @jsii.member(jsii_name="if") + def if_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "if", []) + + @jsii.member(jsii_name="import") + def import_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "import", []) + + @jsii.member(jsii_name="in") + def in_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "in", []) + + @jsii.member(jsii_name="is") + def is_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "is", []) + + @jsii.member(jsii_name="lambda") + def lambda_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "lambda", []) + + @jsii.member(jsii_name="nonlocal") + def nonlocal_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "nonlocal", []) + + @jsii.member(jsii_name="not") + def not_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "not", []) + + @jsii.member(jsii_name="or") + def or_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "or", []) + + @jsii.member(jsii_name="pass") + def pass_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "pass", []) + + @jsii.member(jsii_name="raise") + def raise_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "raise", []) + + @jsii.member(jsii_name="return") + def return_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "return", []) + + @jsii.member(jsii_name="try") + def try_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "try", []) + + @jsii.member(jsii_name="while") + def while_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "while", []) + + @jsii.member(jsii_name="with") + def with_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "with", []) + + @jsii.member(jsii_name="yield") + def yield_(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "yield", []) + + +class ReferenceEnumFromScopedPackage(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ReferenceEnumFromScopedPackage"): + """See awslabs/jsii#138. + + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(ReferenceEnumFromScopedPackage, self, []) + + @jsii.member(jsii_name="loadFoo") + def load_foo(self) -> typing.Optional[scope.jsii_calc_lib.EnumFromScopedModule]: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "loadFoo", []) + + @jsii.member(jsii_name="saveFoo") + def save_foo(self, value: scope.jsii_calc_lib.EnumFromScopedModule) -> None: + """ + :param value: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "saveFoo", [value]) + + @builtins.property + @jsii.member(jsii_name="foo") + def foo(self) -> typing.Optional[scope.jsii_calc_lib.EnumFromScopedModule]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "foo") + + @foo.setter + def foo(self, value: typing.Optional[scope.jsii_calc_lib.EnumFromScopedModule]): + jsii.set(self, "foo", value) + + +class ReturnsPrivateImplementationOfInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ReturnsPrivateImplementationOfInterface"): + """Helps ensure the JSII kernel & runtime cooperate correctly when an un-exported instance of a class is returned with a declared type that is an exported interface, and the instance inherits from an exported class. + + return + :return: an instance of an un-exported class that extends ``ExportedBaseClass``, declared as ``IPrivatelyImplemented``. + + see + :see: https://github.com/aws/jsii/issues/320 + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(ReturnsPrivateImplementationOfInterface, self, []) + + @builtins.property + @jsii.member(jsii_name="privateImplementation") + def private_implementation(self) -> "IPrivatelyImplemented": + """ + stability + :stability: experimental + """ + return jsii.get(self, "privateImplementation") + + +@jsii.data_type(jsii_type="jsii-calc.RootStruct", jsii_struct_bases=[], name_mapping={'string_prop': 'stringProp', 'nested_struct': 'nestedStruct'}) +class RootStruct(): + def __init__(self, *, string_prop: str, nested_struct: typing.Optional["NestedStruct"]=None): + """This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary. + + This is cheating with the (current) declared types, but this is the "more + idiomatic" way for Pythonists. + + :param string_prop: May not be empty. + :param nested_struct: + + stability + :stability: experimental + """ + if isinstance(nested_struct, dict): nested_struct = NestedStruct(**nested_struct) + self._values = { + 'string_prop': string_prop, + } + if nested_struct is not None: self._values["nested_struct"] = nested_struct + + @builtins.property + def string_prop(self) -> str: + """May not be empty. + + stability + :stability: experimental + """ + return self._values.get('string_prop') + + @builtins.property + def nested_struct(self) -> typing.Optional["NestedStruct"]: + """ + stability + :stability: experimental + """ + return self._values.get('nested_struct') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'RootStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +class RootStructValidator(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.RootStructValidator"): + """ + stability + :stability: experimental + """ + @jsii.member(jsii_name="validate") + @builtins.classmethod + def validate(cls, *, string_prop: str, nested_struct: typing.Optional["NestedStruct"]=None) -> None: + """ + :param string_prop: May not be empty. + :param nested_struct: + + stability + :stability: experimental + """ + struct = RootStruct(string_prop=string_prop, nested_struct=nested_struct) + + return jsii.sinvoke(cls, "validate", [struct]) + + +class RuntimeTypeChecking(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.RuntimeTypeChecking"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(RuntimeTypeChecking, self, []) + + @jsii.member(jsii_name="methodWithDefaultedArguments") + def method_with_defaulted_arguments(self, arg1: typing.Optional[jsii.Number]=None, arg2: typing.Optional[str]=None, arg3: typing.Optional[datetime.datetime]=None) -> None: + """ + :param arg1: - + :param arg2: - + :param arg3: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "methodWithDefaultedArguments", [arg1, arg2, arg3]) + + @jsii.member(jsii_name="methodWithOptionalAnyArgument") + def method_with_optional_any_argument(self, arg: typing.Any=None) -> None: + """ + :param arg: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "methodWithOptionalAnyArgument", [arg]) + + @jsii.member(jsii_name="methodWithOptionalArguments") + def method_with_optional_arguments(self, arg1: jsii.Number, arg2: str, arg3: typing.Optional[datetime.datetime]=None) -> None: + """Used to verify verification of number of method arguments. + + :param arg1: - + :param arg2: - + :param arg3: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "methodWithOptionalArguments", [arg1, arg2, arg3]) + + +@jsii.data_type(jsii_type="jsii-calc.SecondLevelStruct", jsii_struct_bases=[], name_mapping={'deeper_required_prop': 'deeperRequiredProp', 'deeper_optional_prop': 'deeperOptionalProp'}) +class SecondLevelStruct(): + def __init__(self, *, deeper_required_prop: str, deeper_optional_prop: typing.Optional[str]=None): + """ + :param deeper_required_prop: It's long and required. + :param deeper_optional_prop: It's long, but you'll almost never pass it. + + stability + :stability: experimental + """ + self._values = { + 'deeper_required_prop': deeper_required_prop, + } + if deeper_optional_prop is not None: self._values["deeper_optional_prop"] = deeper_optional_prop + + @builtins.property + def deeper_required_prop(self) -> str: + """It's long and required. + + stability + :stability: experimental + """ + return self._values.get('deeper_required_prop') + + @builtins.property + def deeper_optional_prop(self) -> typing.Optional[str]: + """It's long, but you'll almost never pass it. + + stability + :stability: experimental + """ + return self._values.get('deeper_optional_prop') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'SecondLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +class SingleInstanceTwoTypes(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SingleInstanceTwoTypes"): + """Test that a single instance can be returned under two different FQNs. + + JSII clients can instantiate 2 different strongly-typed wrappers for the same + object. Unfortunately, this will break object equality, but if we didn't do + this it would break runtime type checks in the JVM or CLR. + + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(SingleInstanceTwoTypes, self, []) + + @jsii.member(jsii_name="interface1") + def interface1(self) -> "InbetweenClass": + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "interface1", []) + + @jsii.member(jsii_name="interface2") + def interface2(self) -> "IPublicInterface": + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "interface2", []) + + +class SingletonInt(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SingletonInt"): + """Verifies that singleton enums are handled correctly. + + https://github.com/aws/jsii/issues/231 + + stability + :stability: experimental + """ + @jsii.member(jsii_name="isSingletonInt") + def is_singleton_int(self, value: jsii.Number) -> bool: + """ + :param value: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "isSingletonInt", [value]) + + +@jsii.enum(jsii_type="jsii-calc.SingletonIntEnum") +class SingletonIntEnum(enum.Enum): + """A singleton integer. + + stability + :stability: experimental + """ + SINGLETON_INT = "SINGLETON_INT" + """Elite! + + stability + :stability: experimental + """ + +class SingletonString(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SingletonString"): + """Verifies that singleton enums are handled correctly. + + https://github.com/aws/jsii/issues/231 + + stability + :stability: experimental + """ + @jsii.member(jsii_name="isSingletonString") + def is_singleton_string(self, value: str) -> bool: + """ + :param value: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "isSingletonString", [value]) + + +@jsii.enum(jsii_type="jsii-calc.SingletonStringEnum") +class SingletonStringEnum(enum.Enum): + """A singleton string. + + stability + :stability: experimental + """ + SINGLETON_STRING = "SINGLETON_STRING" + """1337. + + stability + :stability: experimental + """ + +@jsii.data_type(jsii_type="jsii-calc.SmellyStruct", jsii_struct_bases=[], name_mapping={'property': 'property', 'yet_anoter_one': 'yetAnoterOne'}) +class SmellyStruct(): + def __init__(self, *, property: str, yet_anoter_one: bool): + """ + :param property: + :param yet_anoter_one: + + stability + :stability: experimental + """ + self._values = { + 'property': property, + 'yet_anoter_one': yet_anoter_one, + } + + @builtins.property + def property(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('property') + + @builtins.property + def yet_anoter_one(self) -> bool: + """ + stability + :stability: experimental + """ + return self._values.get('yet_anoter_one') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'SmellyStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +class SomeTypeJsii976(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SomeTypeJsii976"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(SomeTypeJsii976, self, []) + + @jsii.member(jsii_name="returnAnonymous") + @builtins.classmethod + def return_anonymous(cls) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "returnAnonymous", []) + + @jsii.member(jsii_name="returnReturn") + @builtins.classmethod + def return_return(cls) -> "IReturnJsii976": + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "returnReturn", []) + + +class StableClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.StableClass"): + def __init__(self, readonly_string: str, mutable_number: typing.Optional[jsii.Number]=None) -> None: + """ + :param readonly_string: - + :param mutable_number: - + """ + jsii.create(StableClass, self, [readonly_string, mutable_number]) + + @jsii.member(jsii_name="method") + def method(self) -> None: + return jsii.invoke(self, "method", []) + + @builtins.property + @jsii.member(jsii_name="readonlyProperty") + def readonly_property(self) -> str: + return jsii.get(self, "readonlyProperty") + + @builtins.property + @jsii.member(jsii_name="mutableProperty") + def mutable_property(self) -> typing.Optional[jsii.Number]: + return jsii.get(self, "mutableProperty") + + @mutable_property.setter + def mutable_property(self, value: typing.Optional[jsii.Number]): + jsii.set(self, "mutableProperty", value) + + +@jsii.enum(jsii_type="jsii-calc.StableEnum") +class StableEnum(enum.Enum): + OPTION_A = "OPTION_A" + OPTION_B = "OPTION_B" + +@jsii.data_type(jsii_type="jsii-calc.StableStruct", jsii_struct_bases=[], name_mapping={'readonly_property': 'readonlyProperty'}) +class StableStruct(): + def __init__(self, *, readonly_property: str): + """ + :param readonly_property: + """ + self._values = { + 'readonly_property': readonly_property, + } + + @builtins.property + def readonly_property(self) -> str: + return self._values.get('readonly_property') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'StableStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +class StaticContext(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.StaticContext"): + """This is used to validate the ability to use ``this`` from within a static context. + + https://github.com/awslabs/aws-cdk/issues/2304 + + stability + :stability: experimental + """ + @jsii.member(jsii_name="canAccessStaticContext") + @builtins.classmethod + def can_access_static_context(cls) -> bool: + """ + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "canAccessStaticContext", []) + + @jsii.python.classproperty + @jsii.member(jsii_name="staticVariable") + def static_variable(cls) -> bool: + """ + stability + :stability: experimental + """ + return jsii.sget(cls, "staticVariable") + + @static_variable.setter + def static_variable(cls, value: bool): + jsii.sset(cls, "staticVariable", value) + + +class Statics(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Statics"): + """ + stability + :stability: experimental + """ + def __init__(self, value: str) -> None: + """ + :param value: - + + stability + :stability: experimental + """ + jsii.create(Statics, self, [value]) + + @jsii.member(jsii_name="staticMethod") + @builtins.classmethod + def static_method(cls, name: str) -> str: + """Jsdocs for static method. + + :param name: The name of the person to say hello to. + + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "staticMethod", [name]) + + @jsii.member(jsii_name="justMethod") + def just_method(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "justMethod", []) + + @jsii.python.classproperty + @jsii.member(jsii_name="BAR") + def BAR(cls) -> jsii.Number: + """Constants may also use all-caps. + + stability + :stability: experimental + """ + return jsii.sget(cls, "BAR") + + @jsii.python.classproperty + @jsii.member(jsii_name="ConstObj") + def CONST_OBJ(cls) -> "DoubleTrouble": + """ + stability + :stability: experimental + """ + return jsii.sget(cls, "ConstObj") + + @jsii.python.classproperty + @jsii.member(jsii_name="Foo") + def FOO(cls) -> str: + """Jsdocs for static property. + + stability + :stability: experimental + """ + return jsii.sget(cls, "Foo") + + @jsii.python.classproperty + @jsii.member(jsii_name="zooBar") + def ZOO_BAR(cls) -> typing.Mapping[str,str]: + """Constants can also use camelCase. + + stability + :stability: experimental + """ + return jsii.sget(cls, "zooBar") + + @jsii.python.classproperty + @jsii.member(jsii_name="instance") + def instance(cls) -> "Statics": + """Jsdocs for static getter. + + Jsdocs for static setter. + + stability + :stability: experimental + """ + return jsii.sget(cls, "instance") + + @instance.setter + def instance(cls, value: "Statics"): + jsii.sset(cls, "instance", value) + + @jsii.python.classproperty + @jsii.member(jsii_name="nonConstStatic") + def non_const_static(cls) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.sget(cls, "nonConstStatic") + + @non_const_static.setter + def non_const_static(cls, value: jsii.Number): + jsii.sset(cls, "nonConstStatic", value) + + @builtins.property + @jsii.member(jsii_name="value") + def value(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "value") + + +@jsii.enum(jsii_type="jsii-calc.StringEnum") +class StringEnum(enum.Enum): + """ + stability + :stability: experimental + """ + A = "A" + """ + stability + :stability: experimental + """ + B = "B" + """ + stability + :stability: experimental + """ + C = "C" + """ + stability + :stability: experimental + """ + +class StripInternal(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.StripInternal"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(StripInternal, self, []) + + @builtins.property + @jsii.member(jsii_name="youSeeMe") + def you_see_me(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "youSeeMe") + + @you_see_me.setter + def you_see_me(self, value: str): + jsii.set(self, "youSeeMe", value) + + +@jsii.data_type(jsii_type="jsii-calc.StructA", jsii_struct_bases=[], name_mapping={'required_string': 'requiredString', 'optional_number': 'optionalNumber', 'optional_string': 'optionalString'}) +class StructA(): + def __init__(self, *, required_string: str, optional_number: typing.Optional[jsii.Number]=None, optional_string: typing.Optional[str]=None): + """We can serialize and deserialize structs without silently ignoring optional fields. + + :param required_string: + :param optional_number: + :param optional_string: + + stability + :stability: experimental + """ + self._values = { + 'required_string': required_string, + } + if optional_number is not None: self._values["optional_number"] = optional_number + if optional_string is not None: self._values["optional_string"] = optional_string + + @builtins.property + def required_string(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('required_string') + + @builtins.property + def optional_number(self) -> typing.Optional[jsii.Number]: + """ + stability + :stability: experimental + """ + return self._values.get('optional_number') + + @builtins.property + def optional_string(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + return self._values.get('optional_string') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'StructA(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +@jsii.data_type(jsii_type="jsii-calc.StructB", jsii_struct_bases=[], name_mapping={'required_string': 'requiredString', 'optional_boolean': 'optionalBoolean', 'optional_struct_a': 'optionalStructA'}) +class StructB(): + def __init__(self, *, required_string: str, optional_boolean: typing.Optional[bool]=None, optional_struct_a: typing.Optional["StructA"]=None): + """This intentionally overlaps with StructA (where only requiredString is provided) to test htat the kernel properly disambiguates those. + + :param required_string: + :param optional_boolean: + :param optional_struct_a: + + stability + :stability: experimental + """ + if isinstance(optional_struct_a, dict): optional_struct_a = StructA(**optional_struct_a) + self._values = { + 'required_string': required_string, + } + if optional_boolean is not None: self._values["optional_boolean"] = optional_boolean + if optional_struct_a is not None: self._values["optional_struct_a"] = optional_struct_a + + @builtins.property + def required_string(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('required_string') + + @builtins.property + def optional_boolean(self) -> typing.Optional[bool]: + """ + stability + :stability: experimental + """ + return self._values.get('optional_boolean') + + @builtins.property + def optional_struct_a(self) -> typing.Optional["StructA"]: + """ + stability + :stability: experimental + """ + return self._values.get('optional_struct_a') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'StructB(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +@jsii.data_type(jsii_type="jsii-calc.StructParameterType", jsii_struct_bases=[], name_mapping={'scope': 'scope', 'props': 'props'}) +class StructParameterType(): + def __init__(self, *, scope: str, props: typing.Optional[bool]=None): + """Verifies that, in languages that do keyword lifting (e.g: Python), having a struct member with the same name as a positional parameter results in the correct code being emitted. + + See: https://github.com/aws/aws-cdk/issues/4302 + + :param scope: + :param props: + + stability + :stability: experimental + """ + self._values = { + 'scope': scope, + } + if props is not None: self._values["props"] = props + + @builtins.property + def scope(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('scope') + + @builtins.property + def props(self) -> typing.Optional[bool]: + """ + stability + :stability: experimental + """ + return self._values.get('props') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'StructParameterType(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +class StructPassing(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.StructPassing"): + """Just because we can.""" + def __init__(self) -> None: + jsii.create(StructPassing, self, []) + + @jsii.member(jsii_name="howManyVarArgsDidIPass") + @builtins.classmethod + def how_many_var_args_did_i_pass(cls, _positional: jsii.Number, *inputs: "TopLevelStruct") -> jsii.Number: + """ + :param _positional: - + :param inputs: - + """ + return jsii.sinvoke(cls, "howManyVarArgsDidIPass", [_positional, *inputs]) + + @jsii.member(jsii_name="roundTrip") + @builtins.classmethod + def round_trip(cls, _positional: jsii.Number, *, required: str, second_level: typing.Union[jsii.Number, "SecondLevelStruct"], optional: typing.Optional[str]=None) -> "TopLevelStruct": + """ + :param _positional: - + :param required: This is a required field. + :param second_level: A union to really stress test our serialization. + :param optional: You don't have to pass this. + """ + input = TopLevelStruct(required=required, second_level=second_level, optional=optional) + + return jsii.sinvoke(cls, "roundTrip", [_positional, input]) + + +class StructUnionConsumer(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.StructUnionConsumer"): + """ + stability + :stability: experimental + """ + @jsii.member(jsii_name="isStructA") + @builtins.classmethod + def is_struct_a(cls, struct: typing.Union["StructA", "StructB"]) -> bool: + """ + :param struct: - + + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "isStructA", [struct]) + + @jsii.member(jsii_name="isStructB") + @builtins.classmethod + def is_struct_b(cls, struct: typing.Union["StructA", "StructB"]) -> bool: + """ + :param struct: - + + stability + :stability: experimental + """ + return jsii.sinvoke(cls, "isStructB", [struct]) + + +@jsii.data_type(jsii_type="jsii-calc.StructWithJavaReservedWords", jsii_struct_bases=[], name_mapping={'default': 'default', 'assert_': 'assert', 'result': 'result', 'that': 'that'}) +class StructWithJavaReservedWords(): + def __init__(self, *, default: str, assert_: typing.Optional[str]=None, result: typing.Optional[str]=None, that: typing.Optional[str]=None): + """ + :param default: + :param assert_: + :param result: + :param that: + + stability + :stability: experimental + """ + self._values = { + 'default': default, + } + if assert_ is not None: self._values["assert_"] = assert_ + if result is not None: self._values["result"] = result + if that is not None: self._values["that"] = that + + @builtins.property + def default(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('default') + + @builtins.property + def assert_(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + return self._values.get('assert_') + + @builtins.property + def result(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + return self._values.get('result') + + @builtins.property + def that(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + return self._values.get('that') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'StructWithJavaReservedWords(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +class Sum(composition.CompositeOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Sum"): + """An operation that sums multiple values. + + stability + :stability: experimental + """ + def __init__(self) -> None: + """ + stability + :stability: experimental + """ + jsii.create(Sum, self, []) + + @builtins.property + @jsii.member(jsii_name="expression") + def expression(self) -> scope.jsii_calc_lib.Value: + """The expression that this operation consists of. + + Must be implemented by derived classes. + + stability + :stability: experimental + """ + return jsii.get(self, "expression") + + @builtins.property + @jsii.member(jsii_name="parts") + def parts(self) -> typing.List[scope.jsii_calc_lib.Value]: + """The parts to sum. + + stability + :stability: experimental + """ + return jsii.get(self, "parts") + + @parts.setter + def parts(self, value: typing.List[scope.jsii_calc_lib.Value]): + jsii.set(self, "parts", value) + + +@jsii.data_type(jsii_type="jsii-calc.SupportsNiceJavaBuilderProps", jsii_struct_bases=[], name_mapping={'bar': 'bar', 'id': 'id'}) +class SupportsNiceJavaBuilderProps(): + def __init__(self, *, bar: jsii.Number, id: typing.Optional[str]=None): + """ + :param bar: Some number, like 42. + :param id: An ``id`` field here is terrible API design, because the constructor of ``SupportsNiceJavaBuilder`` already has a parameter named ``id``. But here we are, doing it like we didn't care. + + stability + :stability: experimental + """ + self._values = { + 'bar': bar, + } + if id is not None: self._values["id"] = id + + @builtins.property + def bar(self) -> jsii.Number: + """Some number, like 42. + + stability + :stability: experimental + """ + return self._values.get('bar') + + @builtins.property + def id(self) -> typing.Optional[str]: + """An ``id`` field here is terrible API design, because the constructor of ``SupportsNiceJavaBuilder`` already has a parameter named ``id``. + + But here we are, doing it like we didn't care. + + stability + :stability: experimental + """ + return self._values.get('id') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'SupportsNiceJavaBuilderProps(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +class SupportsNiceJavaBuilderWithRequiredProps(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SupportsNiceJavaBuilderWithRequiredProps"): + """We can generate fancy builders in Java for classes which take a mix of positional & struct parameters. + + stability + :stability: experimental + """ + def __init__(self, id_: jsii.Number, *, bar: jsii.Number, id: typing.Optional[str]=None) -> None: + """ + :param id_: some identifier of your choice. + :param bar: Some number, like 42. + :param id: An ``id`` field here is terrible API design, because the constructor of ``SupportsNiceJavaBuilder`` already has a parameter named ``id``. But here we are, doing it like we didn't care. + + stability + :stability: experimental + """ + props = SupportsNiceJavaBuilderProps(bar=bar, id=id) + + jsii.create(SupportsNiceJavaBuilderWithRequiredProps, self, [id_, props]) + + @builtins.property + @jsii.member(jsii_name="bar") + def bar(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.get(self, "bar") + + @builtins.property + @jsii.member(jsii_name="id") + def id(self) -> jsii.Number: + """some identifier of your choice. + + stability + :stability: experimental + """ + return jsii.get(self, "id") + + @builtins.property + @jsii.member(jsii_name="propId") + def prop_id(self) -> typing.Optional[str]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "propId") + + +class SyncVirtualMethods(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SyncVirtualMethods"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(SyncVirtualMethods, self, []) + + @jsii.member(jsii_name="callerIsAsync") + def caller_is_async(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.ainvoke(self, "callerIsAsync", []) + + @jsii.member(jsii_name="callerIsMethod") + def caller_is_method(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "callerIsMethod", []) + + @jsii.member(jsii_name="modifyOtherProperty") + def modify_other_property(self, value: str) -> None: + """ + :param value: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "modifyOtherProperty", [value]) + + @jsii.member(jsii_name="modifyValueOfTheProperty") + def modify_value_of_the_property(self, value: str) -> None: + """ + :param value: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "modifyValueOfTheProperty", [value]) + + @jsii.member(jsii_name="readA") + def read_a(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "readA", []) + + @jsii.member(jsii_name="retrieveOtherProperty") + def retrieve_other_property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "retrieveOtherProperty", []) + + @jsii.member(jsii_name="retrieveReadOnlyProperty") + def retrieve_read_only_property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "retrieveReadOnlyProperty", []) + + @jsii.member(jsii_name="retrieveValueOfTheProperty") + def retrieve_value_of_the_property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "retrieveValueOfTheProperty", []) + + @jsii.member(jsii_name="virtualMethod") + def virtual_method(self, n: jsii.Number) -> jsii.Number: + """ + :param n: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "virtualMethod", [n]) + + @jsii.member(jsii_name="writeA") + def write_a(self, value: jsii.Number) -> None: + """ + :param value: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "writeA", [value]) + + @builtins.property + @jsii.member(jsii_name="readonlyProperty") + def readonly_property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "readonlyProperty") + + @builtins.property + @jsii.member(jsii_name="a") + def a(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.get(self, "a") + + @a.setter + def a(self, value: jsii.Number): + jsii.set(self, "a", value) + + @builtins.property + @jsii.member(jsii_name="callerIsProperty") + def caller_is_property(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.get(self, "callerIsProperty") + + @caller_is_property.setter + def caller_is_property(self, value: jsii.Number): + jsii.set(self, "callerIsProperty", value) + + @builtins.property + @jsii.member(jsii_name="otherProperty") + def other_property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "otherProperty") + + @other_property.setter + def other_property(self, value: str): + jsii.set(self, "otherProperty", value) + + @builtins.property + @jsii.member(jsii_name="theProperty") + def the_property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "theProperty") + + @the_property.setter + def the_property(self, value: str): + jsii.set(self, "theProperty", value) + + @builtins.property + @jsii.member(jsii_name="valueOfOtherProperty") + def value_of_other_property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "valueOfOtherProperty") + + @value_of_other_property.setter + def value_of_other_property(self, value: str): + jsii.set(self, "valueOfOtherProperty", value) + + +class Thrower(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Thrower"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(Thrower, self, []) + + @jsii.member(jsii_name="throwError") + def throw_error(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "throwError", []) + + +@jsii.data_type(jsii_type="jsii-calc.TopLevelStruct", jsii_struct_bases=[], name_mapping={'required': 'required', 'second_level': 'secondLevel', 'optional': 'optional'}) +class TopLevelStruct(): + def __init__(self, *, required: str, second_level: typing.Union[jsii.Number, "SecondLevelStruct"], optional: typing.Optional[str]=None): + """ + :param required: This is a required field. + :param second_level: A union to really stress test our serialization. + :param optional: You don't have to pass this. + + stability + :stability: experimental + """ + self._values = { + 'required': required, + 'second_level': second_level, + } + if optional is not None: self._values["optional"] = optional + + @builtins.property + def required(self) -> str: + """This is a required field. + + stability + :stability: experimental + """ + return self._values.get('required') + + @builtins.property + def second_level(self) -> typing.Union[jsii.Number, "SecondLevelStruct"]: + """A union to really stress test our serialization. + + stability + :stability: experimental + """ + return self._values.get('second_level') + + @builtins.property + def optional(self) -> typing.Optional[str]: + """You don't have to pass this. + + stability + :stability: experimental + """ + return self._values.get('optional') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'TopLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +class UnaryOperation(scope.jsii_calc_lib.Operation, metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.UnaryOperation"): + """An operation on a single operand. + + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _UnaryOperationProxy + + def __init__(self, operand: scope.jsii_calc_lib.Value) -> None: + """ + :param operand: - + + stability + :stability: experimental + """ + jsii.create(UnaryOperation, self, [operand]) + + @builtins.property + @jsii.member(jsii_name="operand") + def operand(self) -> scope.jsii_calc_lib.Value: + """ + stability + :stability: experimental + """ + return jsii.get(self, "operand") + + +class _UnaryOperationProxy(UnaryOperation, jsii.proxy_for(scope.jsii_calc_lib.Operation)): + pass + +@jsii.data_type(jsii_type="jsii-calc.UnionProperties", jsii_struct_bases=[], name_mapping={'bar': 'bar', 'foo': 'foo'}) +class UnionProperties(): + def __init__(self, *, bar: typing.Union[str, jsii.Number, "AllTypes"], foo: typing.Optional[typing.Union[typing.Optional[str], typing.Optional[jsii.Number]]]=None): + """ + :param bar: + :param foo: + + stability + :stability: experimental + """ + self._values = { + 'bar': bar, + } + if foo is not None: self._values["foo"] = foo + + @builtins.property + def bar(self) -> typing.Union[str, jsii.Number, "AllTypes"]: + """ + stability + :stability: experimental + """ + return self._values.get('bar') + + @builtins.property + def foo(self) -> typing.Optional[typing.Union[typing.Optional[str], typing.Optional[jsii.Number]]]: + """ + stability + :stability: experimental + """ + return self._values.get('foo') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'UnionProperties(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +class UseBundledDependency(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.UseBundledDependency"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(UseBundledDependency, self, []) + + @jsii.member(jsii_name="value") + def value(self) -> typing.Any: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "value", []) + + +class UseCalcBase(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.UseCalcBase"): + """Depend on a type from jsii-calc-base as a test for awslabs/jsii#128. + + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(UseCalcBase, self, []) + + @jsii.member(jsii_name="hello") + def hello(self) -> scope.jsii_calc_base.Base: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "hello", []) + + +class UsesInterfaceWithProperties(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.UsesInterfaceWithProperties"): + """ + stability + :stability: experimental + """ + def __init__(self, obj: "IInterfaceWithProperties") -> None: + """ + :param obj: - + + stability + :stability: experimental + """ + jsii.create(UsesInterfaceWithProperties, self, [obj]) + + @jsii.member(jsii_name="justRead") + def just_read(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "justRead", []) + + @jsii.member(jsii_name="readStringAndNumber") + def read_string_and_number(self, ext: "IInterfaceWithPropertiesExtension") -> str: + """ + :param ext: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "readStringAndNumber", [ext]) + + @jsii.member(jsii_name="writeAndRead") + def write_and_read(self, value: str) -> str: + """ + :param value: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "writeAndRead", [value]) + + @builtins.property + @jsii.member(jsii_name="obj") + def obj(self) -> "IInterfaceWithProperties": + """ + stability + :stability: experimental + """ + return jsii.get(self, "obj") + + +class VariadicInvoker(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.VariadicInvoker"): + """ stability :stability: experimental """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IFriendlierProxy + def __init__(self, method: "VariadicMethod") -> None: + """ + :param method: - - @jsii.member(jsii_name="farewell") - def farewell(self) -> str: - """Say farewell. + stability + :stability: experimental + """ + jsii.create(VariadicInvoker, self, [method]) + + @jsii.member(jsii_name="asArray") + def as_array(self, *values: jsii.Number) -> typing.List[jsii.Number]: + """ + :param values: - stability :stability: experimental """ - ... + return jsii.invoke(self, "asArray", [*values]) - @jsii.member(jsii_name="goodbye") - def goodbye(self) -> str: - """Say goodbye. - return - :return: A goodbye blessing. +class VariadicMethod(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.VariadicMethod"): + """ + stability + :stability: experimental + """ + def __init__(self, *prefix: jsii.Number) -> None: + """ + :param prefix: a prefix that will be use for all values returned by ``#asArray``. stability :stability: experimental """ - ... + jsii.create(VariadicMethod, self, [*prefix]) + @jsii.member(jsii_name="asArray") + def as_array(self, first: jsii.Number, *others: jsii.Number) -> typing.List[jsii.Number]: + """ + :param first: the first element of the array to be returned (after the ``prefix`` provided at construction time). + :param others: other elements to be included in the array. -class _IFriendlierProxy(jsii.proxy_for(scope.jsii_calc_lib.IFriendly)): - """Even friendlier classes can implement this interface. + stability + :stability: experimental + """ + return jsii.invoke(self, "asArray", [first, *others]) + +class VirtualMethodPlayground(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.VirtualMethodPlayground"): + """ stability :stability: experimental """ - __jsii_type__ = "jsii-calc.IFriendlier" - @jsii.member(jsii_name="farewell") - def farewell(self) -> str: - """Say farewell. + def __init__(self) -> None: + jsii.create(VirtualMethodPlayground, self, []) + + @jsii.member(jsii_name="overrideMeAsync") + def override_me_async(self, index: jsii.Number) -> jsii.Number: + """ + :param index: - stability :stability: experimental """ - return jsii.invoke(self, "farewell", []) + return jsii.ainvoke(self, "overrideMeAsync", [index]) - @jsii.member(jsii_name="goodbye") - def goodbye(self) -> str: - """Say goodbye. + @jsii.member(jsii_name="overrideMeSync") + def override_me_sync(self, index: jsii.Number) -> jsii.Number: + """ + :param index: - - return - :return: A goodbye blessing. + stability + :stability: experimental + """ + return jsii.invoke(self, "overrideMeSync", [index]) + + @jsii.member(jsii_name="parallelSumAsync") + def parallel_sum_async(self, count: jsii.Number) -> jsii.Number: + """ + :param count: - stability :stability: experimental """ - return jsii.invoke(self, "goodbye", []) + return jsii.ainvoke(self, "parallelSumAsync", [count]) + @jsii.member(jsii_name="serialSumAsync") + def serial_sum_async(self, count: jsii.Number) -> jsii.Number: + """ + :param count: - -@jsii.interface(jsii_type="jsii-calc.IRandomNumberGenerator") -class IRandomNumberGenerator(jsii.compat.Protocol): - """Generates random numbers. + stability + :stability: experimental + """ + return jsii.ainvoke(self, "serialSumAsync", [count]) + + @jsii.member(jsii_name="sumSync") + def sum_sync(self, count: jsii.Number) -> jsii.Number: + """ + :param count: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "sumSync", [count]) + + +class VoidCallback(metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.VoidCallback"): + """This test is used to validate the runtimes can return correctly from a void callback. + + - Implement ``overrideMe`` (method does not have to do anything). + - Invoke ``callMe`` + - Verify that ``methodWasCalled`` is ``true``. stability :stability: experimental """ @builtins.staticmethod def __jsii_proxy_class__(): - return _IRandomNumberGeneratorProxy + return _VoidCallbackProxy - @jsii.member(jsii_name="next") - def next(self) -> jsii.Number: - """Returns another random number. + def __init__(self) -> None: + jsii.create(VoidCallback, self, []) - return - :return: A random number. + @jsii.member(jsii_name="callMe") + def call_me(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "callMe", []) + @jsii.member(jsii_name="overrideMe") + @abc.abstractmethod + def _override_me(self) -> None: + """ stability :stability: experimental """ ... + @builtins.property + @jsii.member(jsii_name="methodWasCalled") + def method_was_called(self) -> bool: + """ + stability + :stability: experimental + """ + return jsii.get(self, "methodWasCalled") + + +class _VoidCallbackProxy(VoidCallback): + @jsii.member(jsii_name="overrideMe") + def _override_me(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "overrideMe", []) -class _IRandomNumberGeneratorProxy(): - """Generates random numbers. + +class WithPrivatePropertyInConstructor(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.WithPrivatePropertyInConstructor"): + """Verifies that private property declarations in constructor arguments are hidden. stability :stability: experimental """ - __jsii_type__ = "jsii-calc.IRandomNumberGenerator" - @jsii.member(jsii_name="next") - def next(self) -> jsii.Number: - """Returns another random number. + def __init__(self, private_field: typing.Optional[str]=None) -> None: + """ + :param private_field: - - return - :return: A random number. + stability + :stability: experimental + """ + jsii.create(WithPrivatePropertyInConstructor, self, [private_field]) + @builtins.property + @jsii.member(jsii_name="success") + def success(self) -> bool: + """ stability :stability: experimental """ - return jsii.invoke(self, "next", []) + return jsii.get(self, "success") -class MethodNamedProperty(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.MethodNamedProperty"): +@jsii.implements(IInterfaceImplementedByAbstractClass) +class AbstractClass(AbstractClassBase, metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.AbstractClass"): """ stability :stability: experimental """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _AbstractClassProxy + def __init__(self) -> None: - jsii.create(MethodNamedProperty, self, []) + jsii.create(AbstractClass, self, []) - @jsii.member(jsii_name="property") - def property(self) -> str: + @jsii.member(jsii_name="abstractMethod") + @abc.abstractmethod + def abstract_method(self, name: str) -> str: """ + :param name: - + stability :stability: experimental """ - return jsii.invoke(self, "property", []) + ... + + @jsii.member(jsii_name="nonAbstractMethod") + def non_abstract_method(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "nonAbstractMethod", []) @builtins.property - @jsii.member(jsii_name="elite") - def elite(self) -> jsii.Number: + @jsii.member(jsii_name="propFromInterface") + def prop_from_interface(self) -> str: """ stability :stability: experimental """ - return jsii.get(self, "elite") + return jsii.get(self, "propFromInterface") -@jsii.implements(IFriendlier, IRandomNumberGenerator) -class Multiply(BinaryOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Multiply"): - """The "*" binary operation. +class _AbstractClassProxy(AbstractClass, jsii.proxy_for(AbstractClassBase)): + @jsii.member(jsii_name="abstractMethod") + def abstract_method(self, name: str) -> str: + """ + :param name: - + + stability + :stability: experimental + """ + return jsii.invoke(self, "abstractMethod", [name]) + + +class Add(BinaryOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Add"): + """The "+" binary operation. stability :stability: experimental @@ -537,302 +7756,475 @@ def __init__(self, lhs: scope.jsii_calc_lib.Value, rhs: scope.jsii_calc_lib.Valu stability :stability: experimental """ - jsii.create(Multiply, self, [lhs, rhs]) + jsii.create(Add, self, [lhs, rhs]) - @jsii.member(jsii_name="farewell") - def farewell(self) -> str: - """Say farewell. + @jsii.member(jsii_name="toString") + def to_string(self) -> str: + """String representation of the value. stability :stability: experimental """ - return jsii.invoke(self, "farewell", []) + return jsii.invoke(self, "toString", []) - @jsii.member(jsii_name="goodbye") - def goodbye(self) -> str: - """Say goodbye. + @builtins.property + @jsii.member(jsii_name="value") + def value(self) -> jsii.Number: + """The value. stability :stability: experimental """ - return jsii.invoke(self, "goodbye", []) + return jsii.get(self, "value") - @jsii.member(jsii_name="next") - def next(self) -> jsii.Number: - """Returns another random number. +@jsii.implements(IAnonymousImplementationProvider) +class AnonymousImplementationProvider(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AnonymousImplementationProvider"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(AnonymousImplementationProvider, self, []) + + @jsii.member(jsii_name="provideAsClass") + def provide_as_class(self) -> "Implementation": + """ stability :stability: experimental """ - return jsii.invoke(self, "next", []) + return jsii.invoke(self, "provideAsClass", []) - @jsii.member(jsii_name="toString") - def to_string(self) -> str: - """String representation of the value. + @jsii.member(jsii_name="provideAsInterface") + def provide_as_interface(self) -> "IAnonymouslyImplementMe": + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "provideAsInterface", []) + + +@jsii.implements(IBell) +class Bell(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Bell"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(Bell, self, []) + @jsii.member(jsii_name="ring") + def ring(self) -> None: + """ stability :stability: experimental """ - return jsii.invoke(self, "toString", []) + return jsii.invoke(self, "ring", []) @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> jsii.Number: - """The value. + @jsii.member(jsii_name="rung") + def rung(self) -> bool: + """ + stability + :stability: experimental + """ + return jsii.get(self, "rung") + + @rung.setter + def rung(self, value: bool): + jsii.set(self, "rung", value) + + +@jsii.data_type(jsii_type="jsii-calc.ChildStruct982", jsii_struct_bases=[ParentStruct982], name_mapping={'foo': 'foo', 'bar': 'bar'}) +class ChildStruct982(ParentStruct982): + def __init__(self, *, foo: str, bar: jsii.Number): + """ + :param foo: + :param bar: stability :stability: experimental """ - return jsii.get(self, "value") + self._values = { + 'foo': foo, + 'bar': bar, + } + + @builtins.property + def foo(self) -> str: + """ + stability + :stability: experimental + """ + return self._values.get('foo') + @builtins.property + def bar(self) -> jsii.Number: + """ + stability + :stability: experimental + """ + return self._values.get('bar') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'ChildStruct982(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) -class Power(composition.CompositeOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Power"): - """The power operation. +@jsii.implements(INonInternalInterface) +class ClassThatImplementsTheInternalInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassThatImplementsTheInternalInterface"): + """ stability :stability: experimental """ - def __init__(self, base: scope.jsii_calc_lib.Value, pow: scope.jsii_calc_lib.Value) -> None: - """Creates a Power operation. - - :param base: The base of the power. - :param pow: The number of times to multiply. + def __init__(self) -> None: + jsii.create(ClassThatImplementsTheInternalInterface, self, []) + @builtins.property + @jsii.member(jsii_name="a") + def a(self) -> str: + """ stability :stability: experimental """ - jsii.create(Power, self, [base, pow]) + return jsii.get(self, "a") - @builtins.property - @jsii.member(jsii_name="base") - def base(self) -> scope.jsii_calc_lib.Value: - """The base of the power. + @a.setter + def a(self, value: str): + jsii.set(self, "a", value) + @builtins.property + @jsii.member(jsii_name="b") + def b(self) -> str: + """ stability :stability: experimental """ - return jsii.get(self, "base") - - @builtins.property - @jsii.member(jsii_name="expression") - def expression(self) -> scope.jsii_calc_lib.Value: - """The expression that this operation consists of. + return jsii.get(self, "b") - Must be implemented by derived classes. + @b.setter + def b(self, value: str): + jsii.set(self, "b", value) + @builtins.property + @jsii.member(jsii_name="c") + def c(self) -> str: + """ stability :stability: experimental """ - return jsii.get(self, "expression") + return jsii.get(self, "c") - @builtins.property - @jsii.member(jsii_name="pow") - def pow(self) -> scope.jsii_calc_lib.Value: - """The number of times to multiply. + @c.setter + def c(self, value: str): + jsii.set(self, "c", value) + @builtins.property + @jsii.member(jsii_name="d") + def d(self) -> str: + """ stability :stability: experimental """ - return jsii.get(self, "pow") + return jsii.get(self, "d") + @d.setter + def d(self, value: str): + jsii.set(self, "d", value) -class PropertyNamedProperty(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.PropertyNamedProperty"): - """Reproduction for https://github.com/aws/jsii/issues/1113 Where a method or property named "property" would result in impossible to load Python code. +@jsii.implements(INonInternalInterface) +class ClassThatImplementsThePrivateInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassThatImplementsThePrivateInterface"): + """ stability :stability: experimental """ def __init__(self) -> None: - jsii.create(PropertyNamedProperty, self, []) + jsii.create(ClassThatImplementsThePrivateInterface, self, []) @builtins.property - @jsii.member(jsii_name="property") - def property(self) -> str: + @jsii.member(jsii_name="a") + def a(self) -> str: """ stability :stability: experimental """ - return jsii.get(self, "property") + return jsii.get(self, "a") + + @a.setter + def a(self, value: str): + jsii.set(self, "a", value) @builtins.property - @jsii.member(jsii_name="yetAnoterOne") - def yet_anoter_one(self) -> bool: + @jsii.member(jsii_name="b") + def b(self) -> str: """ stability :stability: experimental """ - return jsii.get(self, "yetAnoterOne") - - -@jsii.data_type(jsii_type="jsii-calc.SmellyStruct", jsii_struct_bases=[], name_mapping={'property': 'property', 'yet_anoter_one': 'yetAnoterOne'}) -class SmellyStruct(): - def __init__(self, *, property: str, yet_anoter_one: bool): - """ - :param property: - :param yet_anoter_one: + return jsii.get(self, "b") - stability - :stability: experimental - """ - self._values = { - 'property': property, - 'yet_anoter_one': yet_anoter_one, - } + @b.setter + def b(self, value: str): + jsii.set(self, "b", value) @builtins.property - def property(self) -> str: + @jsii.member(jsii_name="c") + def c(self) -> str: """ stability :stability: experimental """ - return self._values.get('property') + return jsii.get(self, "c") + + @c.setter + def c(self, value: str): + jsii.set(self, "c", value) @builtins.property - def yet_anoter_one(self) -> bool: + @jsii.member(jsii_name="e") + def e(self) -> str: """ stability :stability: experimental """ - return self._values.get('yet_anoter_one') + return jsii.get(self, "e") - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'SmellyStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + @e.setter + def e(self, value: str): + jsii.set(self, "e", value) -class Sum(composition.CompositeOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Sum"): - """An operation that sums multiple values. +@jsii.implements(IInterfaceWithProperties) +class ClassWithPrivateConstructorAndAutomaticProperties(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties"): + """Class that implements interface properties automatically, but using a private constructor. stability :stability: experimental """ - def __init__(self) -> None: + @jsii.member(jsii_name="create") + @builtins.classmethod + def create(cls, read_only_string: str, read_write_string: str) -> "ClassWithPrivateConstructorAndAutomaticProperties": """ + :param read_only_string: - + :param read_write_string: - + stability :stability: experimental """ - jsii.create(Sum, self, []) + return jsii.sinvoke(cls, "create", [read_only_string, read_write_string]) @builtins.property - @jsii.member(jsii_name="expression") - def expression(self) -> scope.jsii_calc_lib.Value: - """The expression that this operation consists of. - - Must be implemented by derived classes. - + @jsii.member(jsii_name="readOnlyString") + def read_only_string(self) -> str: + """ stability :stability: experimental """ - return jsii.get(self, "expression") + return jsii.get(self, "readOnlyString") @builtins.property - @jsii.member(jsii_name="parts") - def parts(self) -> typing.List[scope.jsii_calc_lib.Value]: - """The parts to sum. - + @jsii.member(jsii_name="readWriteString") + def read_write_string(self) -> str: + """ stability :stability: experimental """ - return jsii.get(self, "parts") + return jsii.get(self, "readWriteString") - @parts.setter - def parts(self, value: typing.List[scope.jsii_calc_lib.Value]): - jsii.set(self, "parts", value) + @read_write_string.setter + def read_write_string(self, value: str): + jsii.set(self, "readWriteString", value) -class UnaryOperation(scope.jsii_calc_lib.Operation, metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.UnaryOperation"): - """An operation on a single operand. +@jsii.interface(jsii_type="jsii-calc.IFriendlyRandomGenerator") +class IFriendlyRandomGenerator(IRandomNumberGenerator, scope.jsii_calc_lib.IFriendly, jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IFriendlyRandomGeneratorProxy + + pass + +class _IFriendlyRandomGeneratorProxy(jsii.proxy_for(IRandomNumberGenerator), jsii.proxy_for(scope.jsii_calc_lib.IFriendly)): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.IFriendlyRandomGenerator" + pass + +@jsii.interface(jsii_type="jsii-calc.IInterfaceThatShouldNotBeADataType") +class IInterfaceThatShouldNotBeADataType(IInterfaceWithMethods, jsii.compat.Protocol): + """Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype. stability :stability: experimental """ @builtins.staticmethod def __jsii_proxy_class__(): - return _UnaryOperationProxy + return _IInterfaceThatShouldNotBeADataTypeProxy - def __init__(self, operand: scope.jsii_calc_lib.Value) -> None: + @builtins.property + @jsii.member(jsii_name="otherValue") + def other_value(self) -> str: """ - :param operand: - - stability :stability: experimental """ - jsii.create(UnaryOperation, self, [operand]) + ... + +class _IInterfaceThatShouldNotBeADataTypeProxy(jsii.proxy_for(IInterfaceWithMethods)): + """Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype. + + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.IInterfaceThatShouldNotBeADataType" @builtins.property - @jsii.member(jsii_name="operand") - def operand(self) -> scope.jsii_calc_lib.Value: + @jsii.member(jsii_name="otherValue") + def other_value(self) -> str: """ stability :stability: experimental """ - return jsii.get(self, "operand") - + return jsii.get(self, "otherValue") -class _UnaryOperationProxy(UnaryOperation, jsii.proxy_for(scope.jsii_calc_lib.Operation)): - pass - -class Add(BinaryOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Add"): - """The "+" binary operation. +@jsii.interface(jsii_type="jsii-calc.IJSII417Derived") +class IJSII417Derived(IJSII417PublicBaseOfBase, jsii.compat.Protocol): + """ stability :stability: experimental """ - def __init__(self, lhs: scope.jsii_calc_lib.Value, rhs: scope.jsii_calc_lib.Value) -> None: - """Creates a BinaryOperation. - - :param lhs: Left-hand side operand. - :param rhs: Right-hand side operand. + @builtins.staticmethod + def __jsii_proxy_class__(): + return _IJSII417DerivedProxy + @builtins.property + @jsii.member(jsii_name="property") + def property(self) -> str: + """ stability :stability: experimental """ - jsii.create(Add, self, [lhs, rhs]) + ... - @jsii.member(jsii_name="toString") - def to_string(self) -> str: - """String representation of the value. + @jsii.member(jsii_name="bar") + def bar(self) -> None: + """ + stability + :stability: experimental + """ + ... + @jsii.member(jsii_name="baz") + def baz(self) -> None: + """ stability :stability: experimental """ - return jsii.invoke(self, "toString", []) + ... + +class _IJSII417DerivedProxy(jsii.proxy_for(IJSII417PublicBaseOfBase)): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.IJSII417Derived" @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> jsii.Number: - """The value. + @jsii.member(jsii_name="property") + def property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "property") + @jsii.member(jsii_name="bar") + def bar(self) -> None: + """ stability :stability: experimental """ - return jsii.get(self, "value") + return jsii.invoke(self, "bar", []) + @jsii.member(jsii_name="baz") + def baz(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "baz", []) -@jsii.interface(jsii_type="jsii-calc.IFriendlyRandomGenerator") -class IFriendlyRandomGenerator(IRandomNumberGenerator, scope.jsii_calc_lib.IFriendly, jsii.compat.Protocol): + +@jsii.implements(IPublicInterface2) +class InbetweenClass(PublicClass, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.InbetweenClass"): """ stability :stability: experimental """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IFriendlyRandomGeneratorProxy + def __init__(self) -> None: + jsii.create(InbetweenClass, self, []) - pass + @jsii.member(jsii_name="ciao") + def ciao(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "ciao", []) -class _IFriendlyRandomGeneratorProxy(jsii.proxy_for(IRandomNumberGenerator), jsii.proxy_for(scope.jsii_calc_lib.IFriendly)): + +class JSII417Derived(JSII417PublicBaseOfBase, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JSII417Derived"): """ stability :stability: experimental """ - __jsii_type__ = "jsii-calc.IFriendlyRandomGenerator" - pass + def __init__(self, property: str) -> None: + """ + :param property: - + + stability + :stability: experimental + """ + jsii.create(JSII417Derived, self, [property]) + + @jsii.member(jsii_name="bar") + def bar(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "bar", []) + + @jsii.member(jsii_name="baz") + def baz(self) -> None: + """ + stability + :stability: experimental + """ + return jsii.invoke(self, "baz", []) + + @builtins.property + @jsii.member(jsii_name="property") + def _property(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "property") + @jsii.implements(IFriendlier) class Negate(UnaryOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Negate"): @@ -897,6 +8289,71 @@ def value(self) -> jsii.Number: return jsii.get(self, "value") -__all__ = ["AbstractSuite", "Add", "BinaryOperation", "Calculator", "CalculatorProps", "IFriendlier", "IFriendlyRandomGenerator", "IRandomNumberGenerator", "MethodNamedProperty", "Multiply", "Negate", "Power", "PropertyNamedProperty", "SmellyStruct", "Sum", "UnaryOperation", "__jsii_assembly__"] +class SupportsNiceJavaBuilder(SupportsNiceJavaBuilderWithRequiredProps, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SupportsNiceJavaBuilder"): + """ + stability + :stability: experimental + """ + def __init__(self, id: jsii.Number, default_bar: typing.Optional[jsii.Number]=None, props: typing.Optional["SupportsNiceJavaBuilderProps"]=None, *rest: str) -> None: + """ + :param id: some identifier. + :param default_bar: the default value of ``bar``. + :param props: some props once can provide. + :param rest: a variadic continuation. + + stability + :stability: experimental + """ + jsii.create(SupportsNiceJavaBuilder, self, [id, default_bar, props, *rest]) + + @builtins.property + @jsii.member(jsii_name="id") + def id(self) -> jsii.Number: + """some identifier. + + stability + :stability: experimental + """ + return jsii.get(self, "id") + + @builtins.property + @jsii.member(jsii_name="rest") + def rest(self) -> typing.List[str]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "rest") + + +@jsii.implements(IFriendlyRandomGenerator) +class DoubleTrouble(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DoubleTrouble"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + jsii.create(DoubleTrouble, self, []) + + @jsii.member(jsii_name="hello") + def hello(self) -> str: + """Say hello! + + stability + :stability: experimental + """ + return jsii.invoke(self, "hello", []) + + @jsii.member(jsii_name="next") + def next(self) -> jsii.Number: + """Returns another random number. + + stability + :stability: experimental + """ + return jsii.invoke(self, "next", []) + + +__all__ = ["AbstractClass", "AbstractClassBase", "AbstractClassReturner", "AbstractSuite", "Add", "AllTypes", "AllTypesEnum", "AllowedMethodNames", "AmbiguousParameters", "AnonymousImplementationProvider", "AsyncVirtualMethods", "AugmentableClass", "BaseJsii976", "Bell", "BinaryOperation", "Calculator", "CalculatorProps", "ChildStruct982", "ClassThatImplementsTheInternalInterface", "ClassThatImplementsThePrivateInterface", "ClassWithCollections", "ClassWithDocs", "ClassWithJavaReservedWords", "ClassWithMutableObjectLiteralProperty", "ClassWithPrivateConstructorAndAutomaticProperties", "ConfusingToJackson", "ConfusingToJacksonStruct", "ConstructorPassesThisOut", "Constructors", "ConsumePureInterface", "ConsumerCanRingBell", "ConsumersOfThisCrazyTypeSystem", "DataRenderer", "DefaultedConstructorArgument", "Demonstrate982", "DeprecatedClass", "DeprecatedEnum", "DeprecatedStruct", "DerivedStruct", "DiamondInheritanceBaseLevelStruct", "DiamondInheritanceFirstMidLevelStruct", "DiamondInheritanceSecondMidLevelStruct", "DiamondInheritanceTopLevelStruct", "DisappointingCollectionSource", "DoNotOverridePrivates", "DoNotRecognizeAnyAsOptional", "DocumentedClass", "DontComplainAboutVariadicAfterOptional", "DoubleTrouble", "EnumDispenser", "EraseUndefinedHashValues", "EraseUndefinedHashValuesOptions", "ExperimentalClass", "ExperimentalEnum", "ExperimentalStruct", "ExportedBaseClass", "ExtendsInternalInterface", "GiveMeStructs", "Greetee", "GreetingAugmenter", "IAnonymousImplementationProvider", "IAnonymouslyImplementMe", "IAnotherPublicInterface", "IBell", "IBellRinger", "IConcreteBellRinger", "IDeprecatedInterface", "IExperimentalInterface", "IExtendsPrivateInterface", "IFriendlier", "IFriendlyRandomGenerator", "IInterfaceImplementedByAbstractClass", "IInterfaceThatShouldNotBeADataType", "IInterfaceWithInternal", "IInterfaceWithMethods", "IInterfaceWithOptionalMethodArguments", "IInterfaceWithProperties", "IInterfaceWithPropertiesExtension", "IJSII417Derived", "IJSII417PublicBaseOfBase", "IJsii487External", "IJsii487External2", "IJsii496", "IMutableObjectLiteral", "INonInternalInterface", "IObjectWithProperty", "IOptionalMethod", "IPrivatelyImplemented", "IPublicInterface", "IPublicInterface2", "IRandomNumberGenerator", "IReturnJsii976", "IReturnsNumber", "IStableInterface", "IStructReturningDelegate", "ImplementInternalInterface", "Implementation", "ImplementsInterfaceWithInternal", "ImplementsInterfaceWithInternalSubclass", "ImplementsPrivateInterface", "ImplictBaseOfBase", "InbetweenClass", "InterfaceCollections", "InterfacesMaker", "JSII417Derived", "JSII417PublicBaseOfBase", "JSObjectLiteralForInterface", "JSObjectLiteralToNative", "JSObjectLiteralToNativeClass", "JavaReservedWords", "Jsii487Derived", "Jsii496Derived", "JsiiAgent", "JsonFormatter", "LoadBalancedFargateServiceProps", "MethodNamedProperty", "Multiply", "Negate", "NestedStruct", "NodeStandardLibrary", "NullShouldBeTreatedAsUndefined", "NullShouldBeTreatedAsUndefinedData", "NumberGenerator", "ObjectRefsInCollections", "ObjectWithPropertyProvider", "Old", "OptionalArgumentInvoker", "OptionalConstructorArgument", "OptionalStruct", "OptionalStructConsumer", "OverridableProtectedMember", "OverrideReturnsObject", "ParentStruct982", "PartiallyInitializedThisConsumer", "Polymorphism", "Power", "PropertyNamedProperty", "PublicClass", "PythonReservedWords", "ReferenceEnumFromScopedPackage", "ReturnsPrivateImplementationOfInterface", "RootStruct", "RootStructValidator", "RuntimeTypeChecking", "SecondLevelStruct", "SingleInstanceTwoTypes", "SingletonInt", "SingletonIntEnum", "SingletonString", "SingletonStringEnum", "SmellyStruct", "SomeTypeJsii976", "StableClass", "StableEnum", "StableStruct", "StaticContext", "Statics", "StringEnum", "StripInternal", "StructA", "StructB", "StructParameterType", "StructPassing", "StructUnionConsumer", "StructWithJavaReservedWords", "Sum", "SupportsNiceJavaBuilder", "SupportsNiceJavaBuilderProps", "SupportsNiceJavaBuilderWithRequiredProps", "SyncVirtualMethods", "Thrower", "TopLevelStruct", "UnaryOperation", "UnionProperties", "UseBundledDependency", "UseCalcBase", "UsesInterfaceWithProperties", "VariadicInvoker", "VariadicMethod", "VirtualMethodPlayground", "VoidCallback", "WithPrivatePropertyInConstructor", "__jsii_assembly__"] publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/compliance/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/compliance/__init__.py deleted file mode 100644 index 4ca2cc97f1..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/compliance/__init__.py +++ /dev/null @@ -1,6660 +0,0 @@ -import abc -import builtins -import datetime -import enum -import publication -import typing - -import jsii -import jsii.compat - -import jsii_calc -import scope.jsii_calc_base -import scope.jsii_calc_base_of_base -import scope.jsii_calc_lib - -__jsii_assembly__ = jsii.JSIIAssembly.load("jsii-calc", "1.1.0", "jsii_calc", "jsii-calc@1.1.0.jsii.tgz") - - -class AbstractClassBase(metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.compliance.AbstractClassBase"): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _AbstractClassBaseProxy - - def __init__(self) -> None: - jsii.create(AbstractClassBase, self, []) - - @builtins.property - @jsii.member(jsii_name="abstractProperty") - @abc.abstractmethod - def abstract_property(self) -> str: - """ - stability - :stability: experimental - """ - ... - - -class _AbstractClassBaseProxy(AbstractClassBase): - @builtins.property - @jsii.member(jsii_name="abstractProperty") - def abstract_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "abstractProperty") - - -class AbstractClassReturner(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.AbstractClassReturner"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(AbstractClassReturner, self, []) - - @jsii.member(jsii_name="giveMeAbstract") - def give_me_abstract(self) -> "AbstractClass": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "giveMeAbstract", []) - - @jsii.member(jsii_name="giveMeInterface") - def give_me_interface(self) -> "IInterfaceImplementedByAbstractClass": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "giveMeInterface", []) - - @builtins.property - @jsii.member(jsii_name="returnAbstractFromProperty") - def return_abstract_from_property(self) -> "AbstractClassBase": - """ - stability - :stability: experimental - """ - return jsii.get(self, "returnAbstractFromProperty") - - -class AllTypes(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.AllTypes"): - """This class includes property for all types supported by jsii. - - The setters will validate - that the value set is of the expected type and throw otherwise. - - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(AllTypes, self, []) - - @jsii.member(jsii_name="anyIn") - def any_in(self, inp: typing.Any) -> None: - """ - :param inp: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "anyIn", [inp]) - - @jsii.member(jsii_name="anyOut") - def any_out(self) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "anyOut", []) - - @jsii.member(jsii_name="enumMethod") - def enum_method(self, value: "StringEnum") -> "StringEnum": - """ - :param value: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "enumMethod", [value]) - - @builtins.property - @jsii.member(jsii_name="enumPropertyValue") - def enum_property_value(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "enumPropertyValue") - - @builtins.property - @jsii.member(jsii_name="anyArrayProperty") - def any_array_property(self) -> typing.List[typing.Any]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "anyArrayProperty") - - @any_array_property.setter - def any_array_property(self, value: typing.List[typing.Any]): - jsii.set(self, "anyArrayProperty", value) - - @builtins.property - @jsii.member(jsii_name="anyMapProperty") - def any_map_property(self) -> typing.Mapping[str,typing.Any]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "anyMapProperty") - - @any_map_property.setter - def any_map_property(self, value: typing.Mapping[str,typing.Any]): - jsii.set(self, "anyMapProperty", value) - - @builtins.property - @jsii.member(jsii_name="anyProperty") - def any_property(self) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.get(self, "anyProperty") - - @any_property.setter - def any_property(self, value: typing.Any): - jsii.set(self, "anyProperty", value) - - @builtins.property - @jsii.member(jsii_name="arrayProperty") - def array_property(self) -> typing.List[str]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "arrayProperty") - - @array_property.setter - def array_property(self, value: typing.List[str]): - jsii.set(self, "arrayProperty", value) - - @builtins.property - @jsii.member(jsii_name="booleanProperty") - def boolean_property(self) -> bool: - """ - stability - :stability: experimental - """ - return jsii.get(self, "booleanProperty") - - @boolean_property.setter - def boolean_property(self, value: bool): - jsii.set(self, "booleanProperty", value) - - @builtins.property - @jsii.member(jsii_name="dateProperty") - def date_property(self) -> datetime.datetime: - """ - stability - :stability: experimental - """ - return jsii.get(self, "dateProperty") - - @date_property.setter - def date_property(self, value: datetime.datetime): - jsii.set(self, "dateProperty", value) - - @builtins.property - @jsii.member(jsii_name="enumProperty") - def enum_property(self) -> "AllTypesEnum": - """ - stability - :stability: experimental - """ - return jsii.get(self, "enumProperty") - - @enum_property.setter - def enum_property(self, value: "AllTypesEnum"): - jsii.set(self, "enumProperty", value) - - @builtins.property - @jsii.member(jsii_name="jsonProperty") - def json_property(self) -> typing.Mapping[typing.Any, typing.Any]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "jsonProperty") - - @json_property.setter - def json_property(self, value: typing.Mapping[typing.Any, typing.Any]): - jsii.set(self, "jsonProperty", value) - - @builtins.property - @jsii.member(jsii_name="mapProperty") - def map_property(self) -> typing.Mapping[str,scope.jsii_calc_lib.Number]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "mapProperty") - - @map_property.setter - def map_property(self, value: typing.Mapping[str,scope.jsii_calc_lib.Number]): - jsii.set(self, "mapProperty", value) - - @builtins.property - @jsii.member(jsii_name="numberProperty") - def number_property(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "numberProperty") - - @number_property.setter - def number_property(self, value: jsii.Number): - jsii.set(self, "numberProperty", value) - - @builtins.property - @jsii.member(jsii_name="stringProperty") - def string_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "stringProperty") - - @string_property.setter - def string_property(self, value: str): - jsii.set(self, "stringProperty", value) - - @builtins.property - @jsii.member(jsii_name="unionArrayProperty") - def union_array_property(self) -> typing.List[typing.Union[jsii.Number, scope.jsii_calc_lib.Value]]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "unionArrayProperty") - - @union_array_property.setter - def union_array_property(self, value: typing.List[typing.Union[jsii.Number, scope.jsii_calc_lib.Value]]): - jsii.set(self, "unionArrayProperty", value) - - @builtins.property - @jsii.member(jsii_name="unionMapProperty") - def union_map_property(self) -> typing.Mapping[str,typing.Union[str, jsii.Number, scope.jsii_calc_lib.Number]]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "unionMapProperty") - - @union_map_property.setter - def union_map_property(self, value: typing.Mapping[str,typing.Union[str, jsii.Number, scope.jsii_calc_lib.Number]]): - jsii.set(self, "unionMapProperty", value) - - @builtins.property - @jsii.member(jsii_name="unionProperty") - def union_property(self) -> typing.Union[str, jsii.Number, jsii_calc.Multiply, scope.jsii_calc_lib.Number]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "unionProperty") - - @union_property.setter - def union_property(self, value: typing.Union[str, jsii.Number, jsii_calc.Multiply, scope.jsii_calc_lib.Number]): - jsii.set(self, "unionProperty", value) - - @builtins.property - @jsii.member(jsii_name="unknownArrayProperty") - def unknown_array_property(self) -> typing.List[typing.Any]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "unknownArrayProperty") - - @unknown_array_property.setter - def unknown_array_property(self, value: typing.List[typing.Any]): - jsii.set(self, "unknownArrayProperty", value) - - @builtins.property - @jsii.member(jsii_name="unknownMapProperty") - def unknown_map_property(self) -> typing.Mapping[str,typing.Any]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "unknownMapProperty") - - @unknown_map_property.setter - def unknown_map_property(self, value: typing.Mapping[str,typing.Any]): - jsii.set(self, "unknownMapProperty", value) - - @builtins.property - @jsii.member(jsii_name="unknownProperty") - def unknown_property(self) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.get(self, "unknownProperty") - - @unknown_property.setter - def unknown_property(self, value: typing.Any): - jsii.set(self, "unknownProperty", value) - - @builtins.property - @jsii.member(jsii_name="optionalEnumValue") - def optional_enum_value(self) -> typing.Optional["StringEnum"]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "optionalEnumValue") - - @optional_enum_value.setter - def optional_enum_value(self, value: typing.Optional["StringEnum"]): - jsii.set(self, "optionalEnumValue", value) - - -@jsii.enum(jsii_type="jsii-calc.compliance.AllTypesEnum") -class AllTypesEnum(enum.Enum): - """ - stability - :stability: experimental - """ - MY_ENUM_VALUE = "MY_ENUM_VALUE" - """ - stability - :stability: experimental - """ - YOUR_ENUM_VALUE = "YOUR_ENUM_VALUE" - """ - stability - :stability: experimental - """ - THIS_IS_GREAT = "THIS_IS_GREAT" - """ - stability - :stability: experimental - """ - -class AllowedMethodNames(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.AllowedMethodNames"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(AllowedMethodNames, self, []) - - @jsii.member(jsii_name="getBar") - def get_bar(self, _p1: str, _p2: jsii.Number) -> None: - """ - :param _p1: - - :param _p2: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "getBar", [_p1, _p2]) - - @jsii.member(jsii_name="getFoo") - def get_foo(self, with_param: str) -> str: - """getXxx() is not allowed (see negatives), but getXxx(a, ...) is okay. - - :param with_param: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "getFoo", [with_param]) - - @jsii.member(jsii_name="setBar") - def set_bar(self, _x: str, _y: jsii.Number, _z: bool) -> None: - """ - :param _x: - - :param _y: - - :param _z: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "setBar", [_x, _y, _z]) - - @jsii.member(jsii_name="setFoo") - def set_foo(self, _x: str, _y: jsii.Number) -> None: - """setFoo(x) is not allowed (see negatives), but setXxx(a, b, ...) is okay. - - :param _x: - - :param _y: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "setFoo", [_x, _y]) - - -class AmbiguousParameters(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.AmbiguousParameters"): - """ - stability - :stability: experimental - """ - def __init__(self, scope_: "Bell", *, scope: str, props: typing.Optional[bool]=None) -> None: - """ - :param scope_: - - :param scope: - :param props: - - stability - :stability: experimental - """ - props_ = StructParameterType(scope=scope, props=props) - - jsii.create(AmbiguousParameters, self, [scope_, props_]) - - @builtins.property - @jsii.member(jsii_name="props") - def props(self) -> "StructParameterType": - """ - stability - :stability: experimental - """ - return jsii.get(self, "props") - - @builtins.property - @jsii.member(jsii_name="scope") - def scope(self) -> "Bell": - """ - stability - :stability: experimental - """ - return jsii.get(self, "scope") - - -class AsyncVirtualMethods(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.AsyncVirtualMethods"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(AsyncVirtualMethods, self, []) - - @jsii.member(jsii_name="callMe") - def call_me(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.ainvoke(self, "callMe", []) - - @jsii.member(jsii_name="callMe2") - def call_me2(self) -> jsii.Number: - """Just calls "overrideMeToo". - - stability - :stability: experimental - """ - return jsii.ainvoke(self, "callMe2", []) - - @jsii.member(jsii_name="callMeDoublePromise") - def call_me_double_promise(self) -> jsii.Number: - """This method calls the "callMe" async method indirectly, which will then invoke a virtual method. - - This is a "double promise" situation, which - means that callbacks are not going to be available immediate, but only - after an "immediates" cycle. - - stability - :stability: experimental - """ - return jsii.ainvoke(self, "callMeDoublePromise", []) - - @jsii.member(jsii_name="dontOverrideMe") - def dont_override_me(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "dontOverrideMe", []) - - @jsii.member(jsii_name="overrideMe") - def override_me(self, mult: jsii.Number) -> jsii.Number: - """ - :param mult: - - - stability - :stability: experimental - """ - return jsii.ainvoke(self, "overrideMe", [mult]) - - @jsii.member(jsii_name="overrideMeToo") - def override_me_too(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.ainvoke(self, "overrideMeToo", []) - - -class AugmentableClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.AugmentableClass"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(AugmentableClass, self, []) - - @jsii.member(jsii_name="methodOne") - def method_one(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "methodOne", []) - - @jsii.member(jsii_name="methodTwo") - def method_two(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "methodTwo", []) - - -class BaseJsii976(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.BaseJsii976"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(BaseJsii976, self, []) - - -class ClassWithCollections(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ClassWithCollections"): - """ - stability - :stability: experimental - """ - def __init__(self, map: typing.Mapping[str,str], array: typing.List[str]) -> None: - """ - :param map: - - :param array: - - - stability - :stability: experimental - """ - jsii.create(ClassWithCollections, self, [map, array]) - - @jsii.member(jsii_name="createAList") - @builtins.classmethod - def create_a_list(cls) -> typing.List[str]: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "createAList", []) - - @jsii.member(jsii_name="createAMap") - @builtins.classmethod - def create_a_map(cls) -> typing.Mapping[str,str]: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "createAMap", []) - - @jsii.python.classproperty - @jsii.member(jsii_name="staticArray") - def static_array(cls) -> typing.List[str]: - """ - stability - :stability: experimental - """ - return jsii.sget(cls, "staticArray") - - @static_array.setter - def static_array(cls, value: typing.List[str]): - jsii.sset(cls, "staticArray", value) - - @jsii.python.classproperty - @jsii.member(jsii_name="staticMap") - def static_map(cls) -> typing.Mapping[str,str]: - """ - stability - :stability: experimental - """ - return jsii.sget(cls, "staticMap") - - @static_map.setter - def static_map(cls, value: typing.Mapping[str,str]): - jsii.sset(cls, "staticMap", value) - - @builtins.property - @jsii.member(jsii_name="array") - def array(self) -> typing.List[str]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "array") - - @array.setter - def array(self, value: typing.List[str]): - jsii.set(self, "array", value) - - @builtins.property - @jsii.member(jsii_name="map") - def map(self) -> typing.Mapping[str,str]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "map") - - @map.setter - def map(self, value: typing.Mapping[str,str]): - jsii.set(self, "map", value) - - -class ClassWithDocs(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ClassWithDocs"): - """This class has docs. - - The docs are great. They're a bunch of tags. - - see - :see: https://aws.amazon.com/ - customAttribute: - :customAttribute:: hasAValue - - Example:: - - # Example automatically generated. See https://github.com/aws/jsii/issues/826 - def an_example(): - pass - """ - def __init__(self) -> None: - jsii.create(ClassWithDocs, self, []) - - -class ClassWithJavaReservedWords(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ClassWithJavaReservedWords"): - """ - stability - :stability: experimental - """ - def __init__(self, int: str) -> None: - """ - :param int: - - - stability - :stability: experimental - """ - jsii.create(ClassWithJavaReservedWords, self, [int]) - - @jsii.member(jsii_name="import") - def import_(self, assert_: str) -> str: - """ - :param assert_: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "import", [assert_]) - - @builtins.property - @jsii.member(jsii_name="int") - def int(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "int") - - -class ClassWithMutableObjectLiteralProperty(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ClassWithMutableObjectLiteralProperty"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(ClassWithMutableObjectLiteralProperty, self, []) - - @builtins.property - @jsii.member(jsii_name="mutableObject") - def mutable_object(self) -> "IMutableObjectLiteral": - """ - stability - :stability: experimental - """ - return jsii.get(self, "mutableObject") - - @mutable_object.setter - def mutable_object(self, value: "IMutableObjectLiteral"): - jsii.set(self, "mutableObject", value) - - -class ConfusingToJackson(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ConfusingToJackson"): - """This tries to confuse Jackson by having overloaded property setters. - - see - :see: https://github.com/aws/aws-cdk/issues/4080 - stability - :stability: experimental - """ - @jsii.member(jsii_name="makeInstance") - @builtins.classmethod - def make_instance(cls) -> "ConfusingToJackson": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "makeInstance", []) - - @jsii.member(jsii_name="makeStructInstance") - @builtins.classmethod - def make_struct_instance(cls) -> "ConfusingToJacksonStruct": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "makeStructInstance", []) - - @builtins.property - @jsii.member(jsii_name="unionProperty") - def union_property(self) -> typing.Optional[typing.Union[typing.Optional[scope.jsii_calc_lib.IFriendly], typing.Optional[typing.List[typing.Union["AbstractClass", scope.jsii_calc_lib.IFriendly]]]]]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "unionProperty") - - @union_property.setter - def union_property(self, value: typing.Optional[typing.Union[typing.Optional[scope.jsii_calc_lib.IFriendly], typing.Optional[typing.List[typing.Union["AbstractClass", scope.jsii_calc_lib.IFriendly]]]]]): - jsii.set(self, "unionProperty", value) - - -@jsii.data_type(jsii_type="jsii-calc.compliance.ConfusingToJacksonStruct", jsii_struct_bases=[], name_mapping={'union_property': 'unionProperty'}) -class ConfusingToJacksonStruct(): - def __init__(self, *, union_property: typing.Optional[typing.Union[typing.Optional[scope.jsii_calc_lib.IFriendly], typing.Optional[typing.List[typing.Union["AbstractClass", scope.jsii_calc_lib.IFriendly]]]]]=None): - """ - :param union_property: - - stability - :stability: experimental - """ - self._values = { - } - if union_property is not None: self._values["union_property"] = union_property - - @builtins.property - def union_property(self) -> typing.Optional[typing.Union[typing.Optional[scope.jsii_calc_lib.IFriendly], typing.Optional[typing.List[typing.Union["AbstractClass", scope.jsii_calc_lib.IFriendly]]]]]: - """ - stability - :stability: experimental - """ - return self._values.get('union_property') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'ConfusingToJacksonStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - -class ConstructorPassesThisOut(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ConstructorPassesThisOut"): - """ - stability - :stability: experimental - """ - def __init__(self, consumer: "PartiallyInitializedThisConsumer") -> None: - """ - :param consumer: - - - stability - :stability: experimental - """ - jsii.create(ConstructorPassesThisOut, self, [consumer]) - - -class Constructors(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.Constructors"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(Constructors, self, []) - - @jsii.member(jsii_name="hiddenInterface") - @builtins.classmethod - def hidden_interface(cls) -> "IPublicInterface": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "hiddenInterface", []) - - @jsii.member(jsii_name="hiddenInterfaces") - @builtins.classmethod - def hidden_interfaces(cls) -> typing.List["IPublicInterface"]: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "hiddenInterfaces", []) - - @jsii.member(jsii_name="hiddenSubInterfaces") - @builtins.classmethod - def hidden_sub_interfaces(cls) -> typing.List["IPublicInterface"]: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "hiddenSubInterfaces", []) - - @jsii.member(jsii_name="makeClass") - @builtins.classmethod - def make_class(cls) -> "PublicClass": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "makeClass", []) - - @jsii.member(jsii_name="makeInterface") - @builtins.classmethod - def make_interface(cls) -> "IPublicInterface": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "makeInterface", []) - - @jsii.member(jsii_name="makeInterface2") - @builtins.classmethod - def make_interface2(cls) -> "IPublicInterface2": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "makeInterface2", []) - - @jsii.member(jsii_name="makeInterfaces") - @builtins.classmethod - def make_interfaces(cls) -> typing.List["IPublicInterface"]: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "makeInterfaces", []) - - -class ConsumePureInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ConsumePureInterface"): - """ - stability - :stability: experimental - """ - def __init__(self, delegate: "IStructReturningDelegate") -> None: - """ - :param delegate: - - - stability - :stability: experimental - """ - jsii.create(ConsumePureInterface, self, [delegate]) - - @jsii.member(jsii_name="workItBaby") - def work_it_baby(self) -> "StructB": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "workItBaby", []) - - -class ConsumerCanRingBell(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ConsumerCanRingBell"): - """Test calling back to consumers that implement interfaces. - - Check that if a JSII consumer implements IConsumerWithInterfaceParam, they can call - the method on the argument that they're passed... - - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(ConsumerCanRingBell, self, []) - - @jsii.member(jsii_name="staticImplementedByObjectLiteral") - @builtins.classmethod - def static_implemented_by_object_literal(cls, ringer: "IBellRinger") -> bool: - """...if the interface is implemented using an object literal. - - Returns whether the bell was rung. - - :param ringer: - - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "staticImplementedByObjectLiteral", [ringer]) - - @jsii.member(jsii_name="staticImplementedByPrivateClass") - @builtins.classmethod - def static_implemented_by_private_class(cls, ringer: "IBellRinger") -> bool: - """...if the interface is implemented using a private class. - - Return whether the bell was rung. - - :param ringer: - - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "staticImplementedByPrivateClass", [ringer]) - - @jsii.member(jsii_name="staticImplementedByPublicClass") - @builtins.classmethod - def static_implemented_by_public_class(cls, ringer: "IBellRinger") -> bool: - """...if the interface is implemented using a public class. - - Return whether the bell was rung. - - :param ringer: - - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "staticImplementedByPublicClass", [ringer]) - - @jsii.member(jsii_name="staticWhenTypedAsClass") - @builtins.classmethod - def static_when_typed_as_class(cls, ringer: "IConcreteBellRinger") -> bool: - """If the parameter is a concrete class instead of an interface. - - Return whether the bell was rung. - - :param ringer: - - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "staticWhenTypedAsClass", [ringer]) - - @jsii.member(jsii_name="implementedByObjectLiteral") - def implemented_by_object_literal(self, ringer: "IBellRinger") -> bool: - """...if the interface is implemented using an object literal. - - Returns whether the bell was rung. - - :param ringer: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "implementedByObjectLiteral", [ringer]) - - @jsii.member(jsii_name="implementedByPrivateClass") - def implemented_by_private_class(self, ringer: "IBellRinger") -> bool: - """...if the interface is implemented using a private class. - - Return whether the bell was rung. - - :param ringer: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "implementedByPrivateClass", [ringer]) - - @jsii.member(jsii_name="implementedByPublicClass") - def implemented_by_public_class(self, ringer: "IBellRinger") -> bool: - """...if the interface is implemented using a public class. - - Return whether the bell was rung. - - :param ringer: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "implementedByPublicClass", [ringer]) - - @jsii.member(jsii_name="whenTypedAsClass") - def when_typed_as_class(self, ringer: "IConcreteBellRinger") -> bool: - """If the parameter is a concrete class instead of an interface. - - Return whether the bell was rung. - - :param ringer: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "whenTypedAsClass", [ringer]) - - -class ConsumersOfThisCrazyTypeSystem(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ConsumersOfThisCrazyTypeSystem"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(ConsumersOfThisCrazyTypeSystem, self, []) - - @jsii.member(jsii_name="consumeAnotherPublicInterface") - def consume_another_public_interface(self, obj: "IAnotherPublicInterface") -> str: - """ - :param obj: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "consumeAnotherPublicInterface", [obj]) - - @jsii.member(jsii_name="consumeNonInternalInterface") - def consume_non_internal_interface(self, obj: "INonInternalInterface") -> typing.Any: - """ - :param obj: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "consumeNonInternalInterface", [obj]) - - -class DataRenderer(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.DataRenderer"): - """Verifies proper type handling through dynamic overrides. - - stability - :stability: experimental - """ - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(DataRenderer, self, []) - - @jsii.member(jsii_name="render") - def render(self, *, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None) -> str: - """ - :param anumber: An awesome number value. - :param astring: A string value. - :param first_optional: - - stability - :stability: experimental - """ - data = scope.jsii_calc_lib.MyFirstStruct(anumber=anumber, astring=astring, first_optional=first_optional) - - return jsii.invoke(self, "render", [data]) - - @jsii.member(jsii_name="renderArbitrary") - def render_arbitrary(self, data: typing.Mapping[str,typing.Any]) -> str: - """ - :param data: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "renderArbitrary", [data]) - - @jsii.member(jsii_name="renderMap") - def render_map(self, map: typing.Mapping[str,typing.Any]) -> str: - """ - :param map: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "renderMap", [map]) - - -class DefaultedConstructorArgument(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.DefaultedConstructorArgument"): - """ - stability - :stability: experimental - """ - def __init__(self, arg1: typing.Optional[jsii.Number]=None, arg2: typing.Optional[str]=None, arg3: typing.Optional[datetime.datetime]=None) -> None: - """ - :param arg1: - - :param arg2: - - :param arg3: - - - stability - :stability: experimental - """ - jsii.create(DefaultedConstructorArgument, self, [arg1, arg2, arg3]) - - @builtins.property - @jsii.member(jsii_name="arg1") - def arg1(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "arg1") - - @builtins.property - @jsii.member(jsii_name="arg3") - def arg3(self) -> datetime.datetime: - """ - stability - :stability: experimental - """ - return jsii.get(self, "arg3") - - @builtins.property - @jsii.member(jsii_name="arg2") - def arg2(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "arg2") - - -class Demonstrate982(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.Demonstrate982"): - """1. - - call #takeThis() -> An ObjectRef will be provisioned for the value (it'll be re-used!) - 2. call #takeThisToo() -> The ObjectRef from before will need to be down-cased to the ParentStruct982 type - - stability - :stability: experimental - """ - def __init__(self) -> None: - """ - stability - :stability: experimental - """ - jsii.create(Demonstrate982, self, []) - - @jsii.member(jsii_name="takeThis") - @builtins.classmethod - def take_this(cls) -> "ChildStruct982": - """It's dangerous to go alone! - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "takeThis", []) - - @jsii.member(jsii_name="takeThisToo") - @builtins.classmethod - def take_this_too(cls) -> "ParentStruct982": - """It's dangerous to go alone! - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "takeThisToo", []) - - -@jsii.data_type(jsii_type="jsii-calc.compliance.DerivedStruct", jsii_struct_bases=[scope.jsii_calc_lib.MyFirstStruct], name_mapping={'anumber': 'anumber', 'astring': 'astring', 'first_optional': 'firstOptional', 'another_required': 'anotherRequired', 'bool': 'bool', 'non_primitive': 'nonPrimitive', 'another_optional': 'anotherOptional', 'optional_any': 'optionalAny', 'optional_array': 'optionalArray'}) -class DerivedStruct(scope.jsii_calc_lib.MyFirstStruct): - def __init__(self, *, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None, another_required: datetime.datetime, bool: bool, non_primitive: "DoubleTrouble", another_optional: typing.Optional[typing.Mapping[str,scope.jsii_calc_lib.Value]]=None, optional_any: typing.Any=None, optional_array: typing.Optional[typing.List[str]]=None): - """A struct which derives from another struct. - - :param anumber: An awesome number value. - :param astring: A string value. - :param first_optional: - :param another_required: - :param bool: - :param non_primitive: An example of a non primitive property. - :param another_optional: This is optional. - :param optional_any: - :param optional_array: - - stability - :stability: experimental - """ - self._values = { - 'anumber': anumber, - 'astring': astring, - 'another_required': another_required, - 'bool': bool, - 'non_primitive': non_primitive, - } - if first_optional is not None: self._values["first_optional"] = first_optional - if another_optional is not None: self._values["another_optional"] = another_optional - if optional_any is not None: self._values["optional_any"] = optional_any - if optional_array is not None: self._values["optional_array"] = optional_array - - @builtins.property - def anumber(self) -> jsii.Number: - """An awesome number value. - - stability - :stability: deprecated - """ - return self._values.get('anumber') - - @builtins.property - def astring(self) -> str: - """A string value. - - stability - :stability: deprecated - """ - return self._values.get('astring') - - @builtins.property - def first_optional(self) -> typing.Optional[typing.List[str]]: - """ - stability - :stability: deprecated - """ - return self._values.get('first_optional') - - @builtins.property - def another_required(self) -> datetime.datetime: - """ - stability - :stability: experimental - """ - return self._values.get('another_required') - - @builtins.property - def bool(self) -> bool: - """ - stability - :stability: experimental - """ - return self._values.get('bool') - - @builtins.property - def non_primitive(self) -> "DoubleTrouble": - """An example of a non primitive property. - - stability - :stability: experimental - """ - return self._values.get('non_primitive') - - @builtins.property - def another_optional(self) -> typing.Optional[typing.Mapping[str,scope.jsii_calc_lib.Value]]: - """This is optional. - - stability - :stability: experimental - """ - return self._values.get('another_optional') - - @builtins.property - def optional_any(self) -> typing.Any: - """ - stability - :stability: experimental - """ - return self._values.get('optional_any') - - @builtins.property - def optional_array(self) -> typing.Optional[typing.List[str]]: - """ - stability - :stability: experimental - """ - return self._values.get('optional_array') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'DerivedStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - -@jsii.data_type(jsii_type="jsii-calc.compliance.DiamondInheritanceBaseLevelStruct", jsii_struct_bases=[], name_mapping={'base_level_property': 'baseLevelProperty'}) -class DiamondInheritanceBaseLevelStruct(): - def __init__(self, *, base_level_property: str): - """ - :param base_level_property: - - stability - :stability: experimental - """ - self._values = { - 'base_level_property': base_level_property, - } - - @builtins.property - def base_level_property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('base_level_property') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'DiamondInheritanceBaseLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - -@jsii.data_type(jsii_type="jsii-calc.compliance.DiamondInheritanceFirstMidLevelStruct", jsii_struct_bases=[DiamondInheritanceBaseLevelStruct], name_mapping={'base_level_property': 'baseLevelProperty', 'first_mid_level_property': 'firstMidLevelProperty'}) -class DiamondInheritanceFirstMidLevelStruct(DiamondInheritanceBaseLevelStruct): - def __init__(self, *, base_level_property: str, first_mid_level_property: str): - """ - :param base_level_property: - :param first_mid_level_property: - - stability - :stability: experimental - """ - self._values = { - 'base_level_property': base_level_property, - 'first_mid_level_property': first_mid_level_property, - } - - @builtins.property - def base_level_property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('base_level_property') - - @builtins.property - def first_mid_level_property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('first_mid_level_property') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'DiamondInheritanceFirstMidLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - -@jsii.data_type(jsii_type="jsii-calc.compliance.DiamondInheritanceSecondMidLevelStruct", jsii_struct_bases=[DiamondInheritanceBaseLevelStruct], name_mapping={'base_level_property': 'baseLevelProperty', 'second_mid_level_property': 'secondMidLevelProperty'}) -class DiamondInheritanceSecondMidLevelStruct(DiamondInheritanceBaseLevelStruct): - def __init__(self, *, base_level_property: str, second_mid_level_property: str): - """ - :param base_level_property: - :param second_mid_level_property: - - stability - :stability: experimental - """ - self._values = { - 'base_level_property': base_level_property, - 'second_mid_level_property': second_mid_level_property, - } - - @builtins.property - def base_level_property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('base_level_property') - - @builtins.property - def second_mid_level_property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('second_mid_level_property') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'DiamondInheritanceSecondMidLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - -@jsii.data_type(jsii_type="jsii-calc.compliance.DiamondInheritanceTopLevelStruct", jsii_struct_bases=[DiamondInheritanceFirstMidLevelStruct, DiamondInheritanceSecondMidLevelStruct], name_mapping={'base_level_property': 'baseLevelProperty', 'first_mid_level_property': 'firstMidLevelProperty', 'second_mid_level_property': 'secondMidLevelProperty', 'top_level_property': 'topLevelProperty'}) -class DiamondInheritanceTopLevelStruct(DiamondInheritanceFirstMidLevelStruct, DiamondInheritanceSecondMidLevelStruct): - def __init__(self, *, base_level_property: str, first_mid_level_property: str, second_mid_level_property: str, top_level_property: str): - """ - :param base_level_property: - :param first_mid_level_property: - :param second_mid_level_property: - :param top_level_property: - - stability - :stability: experimental - """ - self._values = { - 'base_level_property': base_level_property, - 'first_mid_level_property': first_mid_level_property, - 'second_mid_level_property': second_mid_level_property, - 'top_level_property': top_level_property, - } - - @builtins.property - def base_level_property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('base_level_property') - - @builtins.property - def first_mid_level_property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('first_mid_level_property') - - @builtins.property - def second_mid_level_property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('second_mid_level_property') - - @builtins.property - def top_level_property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('top_level_property') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'DiamondInheritanceTopLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - -class DisappointingCollectionSource(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.DisappointingCollectionSource"): - """Verifies that null/undefined can be returned for optional collections. - - This source of collections is disappointing - it'll always give you nothing :( - - stability - :stability: experimental - """ - @jsii.python.classproperty - @jsii.member(jsii_name="maybeList") - def MAYBE_LIST(cls) -> typing.Optional[typing.List[str]]: - """Some List of strings, maybe? - - (Nah, just a billion dollars mistake!) - - stability - :stability: experimental - """ - return jsii.sget(cls, "maybeList") - - @jsii.python.classproperty - @jsii.member(jsii_name="maybeMap") - def MAYBE_MAP(cls) -> typing.Optional[typing.Mapping[str,jsii.Number]]: - """Some Map of strings to numbers, maybe? - - (Nah, just a billion dollars mistake!) - - stability - :stability: experimental - """ - return jsii.sget(cls, "maybeMap") - - -class DoNotOverridePrivates(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.DoNotOverridePrivates"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(DoNotOverridePrivates, self, []) - - @jsii.member(jsii_name="changePrivatePropertyValue") - def change_private_property_value(self, new_value: str) -> None: - """ - :param new_value: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "changePrivatePropertyValue", [new_value]) - - @jsii.member(jsii_name="privateMethodValue") - def private_method_value(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "privateMethodValue", []) - - @jsii.member(jsii_name="privatePropertyValue") - def private_property_value(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "privatePropertyValue", []) - - -class DoNotRecognizeAnyAsOptional(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.DoNotRecognizeAnyAsOptional"): - """jsii#284: do not recognize "any" as an optional argument. - - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(DoNotRecognizeAnyAsOptional, self, []) - - @jsii.member(jsii_name="method") - def method(self, _required_any: typing.Any, _optional_any: typing.Any=None, _optional_string: typing.Optional[str]=None) -> None: - """ - :param _required_any: - - :param _optional_any: - - :param _optional_string: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "method", [_required_any, _optional_any, _optional_string]) - - -class DontComplainAboutVariadicAfterOptional(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.DontComplainAboutVariadicAfterOptional"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(DontComplainAboutVariadicAfterOptional, self, []) - - @jsii.member(jsii_name="optionalAndVariadic") - def optional_and_variadic(self, optional: typing.Optional[str]=None, *things: str) -> str: - """ - :param optional: - - :param things: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "optionalAndVariadic", [optional, *things]) - - -@jsii.implements(jsii_calc.IFriendlyRandomGenerator) -class DoubleTrouble(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.DoubleTrouble"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(DoubleTrouble, self, []) - - @jsii.member(jsii_name="hello") - def hello(self) -> str: - """Say hello! - - stability - :stability: experimental - """ - return jsii.invoke(self, "hello", []) - - @jsii.member(jsii_name="next") - def next(self) -> jsii.Number: - """Returns another random number. - - stability - :stability: experimental - """ - return jsii.invoke(self, "next", []) - - -class EnumDispenser(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.EnumDispenser"): - """ - stability - :stability: experimental - """ - @jsii.member(jsii_name="randomIntegerLikeEnum") - @builtins.classmethod - def random_integer_like_enum(cls) -> "AllTypesEnum": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "randomIntegerLikeEnum", []) - - @jsii.member(jsii_name="randomStringLikeEnum") - @builtins.classmethod - def random_string_like_enum(cls) -> "StringEnum": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "randomStringLikeEnum", []) - - -class EraseUndefinedHashValues(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.EraseUndefinedHashValues"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(EraseUndefinedHashValues, self, []) - - @jsii.member(jsii_name="doesKeyExist") - @builtins.classmethod - def does_key_exist(cls, opts: "EraseUndefinedHashValuesOptions", key: str) -> bool: - """Returns ``true`` if ``key`` is defined in ``opts``. - - Used to check that undefined/null hash values - are being erased when sending values from native code to JS. - - :param opts: - - :param key: - - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "doesKeyExist", [opts, key]) - - @jsii.member(jsii_name="prop1IsNull") - @builtins.classmethod - def prop1_is_null(cls) -> typing.Mapping[str,typing.Any]: - """We expect "prop1" to be erased. - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "prop1IsNull", []) - - @jsii.member(jsii_name="prop2IsUndefined") - @builtins.classmethod - def prop2_is_undefined(cls) -> typing.Mapping[str,typing.Any]: - """We expect "prop2" to be erased. - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "prop2IsUndefined", []) - - -@jsii.data_type(jsii_type="jsii-calc.compliance.EraseUndefinedHashValuesOptions", jsii_struct_bases=[], name_mapping={'option1': 'option1', 'option2': 'option2'}) -class EraseUndefinedHashValuesOptions(): - def __init__(self, *, option1: typing.Optional[str]=None, option2: typing.Optional[str]=None): - """ - :param option1: - :param option2: - - stability - :stability: experimental - """ - self._values = { - } - if option1 is not None: self._values["option1"] = option1 - if option2 is not None: self._values["option2"] = option2 - - @builtins.property - def option1(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return self._values.get('option1') - - @builtins.property - def option2(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return self._values.get('option2') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'EraseUndefinedHashValuesOptions(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - -class ExportedBaseClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ExportedBaseClass"): - """ - stability - :stability: experimental - """ - def __init__(self, success: bool) -> None: - """ - :param success: - - - stability - :stability: experimental - """ - jsii.create(ExportedBaseClass, self, [success]) - - @builtins.property - @jsii.member(jsii_name="success") - def success(self) -> bool: - """ - stability - :stability: experimental - """ - return jsii.get(self, "success") - - -@jsii.data_type(jsii_type="jsii-calc.compliance.ExtendsInternalInterface", jsii_struct_bases=[], name_mapping={'boom': 'boom', 'prop': 'prop'}) -class ExtendsInternalInterface(): - def __init__(self, *, boom: bool, prop: str): - """ - :param boom: - :param prop: - - stability - :stability: experimental - """ - self._values = { - 'boom': boom, - 'prop': prop, - } - - @builtins.property - def boom(self) -> bool: - """ - stability - :stability: experimental - """ - return self._values.get('boom') - - @builtins.property - def prop(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('prop') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'ExtendsInternalInterface(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - -class GiveMeStructs(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.GiveMeStructs"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(GiveMeStructs, self, []) - - @jsii.member(jsii_name="derivedToFirst") - def derived_to_first(self, *, another_required: datetime.datetime, bool: bool, non_primitive: "DoubleTrouble", another_optional: typing.Optional[typing.Mapping[str,scope.jsii_calc_lib.Value]]=None, optional_any: typing.Any=None, optional_array: typing.Optional[typing.List[str]]=None, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None) -> scope.jsii_calc_lib.MyFirstStruct: - """Accepts a struct of type DerivedStruct and returns a struct of type FirstStruct. - - :param another_required: - :param bool: - :param non_primitive: An example of a non primitive property. - :param another_optional: This is optional. - :param optional_any: - :param optional_array: - :param anumber: An awesome number value. - :param astring: A string value. - :param first_optional: - - stability - :stability: experimental - """ - derived = DerivedStruct(another_required=another_required, bool=bool, non_primitive=non_primitive, another_optional=another_optional, optional_any=optional_any, optional_array=optional_array, anumber=anumber, astring=astring, first_optional=first_optional) - - return jsii.invoke(self, "derivedToFirst", [derived]) - - @jsii.member(jsii_name="readDerivedNonPrimitive") - def read_derived_non_primitive(self, *, another_required: datetime.datetime, bool: bool, non_primitive: "DoubleTrouble", another_optional: typing.Optional[typing.Mapping[str,scope.jsii_calc_lib.Value]]=None, optional_any: typing.Any=None, optional_array: typing.Optional[typing.List[str]]=None, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None) -> "DoubleTrouble": - """Returns the boolean from a DerivedStruct struct. - - :param another_required: - :param bool: - :param non_primitive: An example of a non primitive property. - :param another_optional: This is optional. - :param optional_any: - :param optional_array: - :param anumber: An awesome number value. - :param astring: A string value. - :param first_optional: - - stability - :stability: experimental - """ - derived = DerivedStruct(another_required=another_required, bool=bool, non_primitive=non_primitive, another_optional=another_optional, optional_any=optional_any, optional_array=optional_array, anumber=anumber, astring=astring, first_optional=first_optional) - - return jsii.invoke(self, "readDerivedNonPrimitive", [derived]) - - @jsii.member(jsii_name="readFirstNumber") - def read_first_number(self, *, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None) -> jsii.Number: - """Returns the "anumber" from a MyFirstStruct struct; - - :param anumber: An awesome number value. - :param astring: A string value. - :param first_optional: - - stability - :stability: experimental - """ - first = scope.jsii_calc_lib.MyFirstStruct(anumber=anumber, astring=astring, first_optional=first_optional) - - return jsii.invoke(self, "readFirstNumber", [first]) - - @builtins.property - @jsii.member(jsii_name="structLiteral") - def struct_literal(self) -> scope.jsii_calc_lib.StructWithOnlyOptionals: - """ - stability - :stability: experimental - """ - return jsii.get(self, "structLiteral") - - -class GreetingAugmenter(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.GreetingAugmenter"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(GreetingAugmenter, self, []) - - @jsii.member(jsii_name="betterGreeting") - def better_greeting(self, friendly: scope.jsii_calc_lib.IFriendly) -> str: - """ - :param friendly: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "betterGreeting", [friendly]) - - -@jsii.interface(jsii_type="jsii-calc.compliance.IAnonymousImplementationProvider") -class IAnonymousImplementationProvider(jsii.compat.Protocol): - """We can return an anonymous interface implementation from an override without losing the interface declarations. - - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IAnonymousImplementationProviderProxy - - @jsii.member(jsii_name="provideAsClass") - def provide_as_class(self) -> "Implementation": - """ - stability - :stability: experimental - """ - ... - - @jsii.member(jsii_name="provideAsInterface") - def provide_as_interface(self) -> "IAnonymouslyImplementMe": - """ - stability - :stability: experimental - """ - ... - - -class _IAnonymousImplementationProviderProxy(): - """We can return an anonymous interface implementation from an override without losing the interface declarations. - - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IAnonymousImplementationProvider" - @jsii.member(jsii_name="provideAsClass") - def provide_as_class(self) -> "Implementation": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "provideAsClass", []) - - @jsii.member(jsii_name="provideAsInterface") - def provide_as_interface(self) -> "IAnonymouslyImplementMe": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "provideAsInterface", []) - - -@jsii.interface(jsii_type="jsii-calc.compliance.IAnonymouslyImplementMe") -class IAnonymouslyImplementMe(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IAnonymouslyImplementMeProxy - - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - ... - - @jsii.member(jsii_name="verb") - def verb(self) -> str: - """ - stability - :stability: experimental - """ - ... - - -class _IAnonymouslyImplementMeProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IAnonymouslyImplementMe" - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "value") - - @jsii.member(jsii_name="verb") - def verb(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "verb", []) - - -@jsii.interface(jsii_type="jsii-calc.compliance.IAnotherPublicInterface") -class IAnotherPublicInterface(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IAnotherPublicInterfaceProxy - - @builtins.property - @jsii.member(jsii_name="a") - def a(self) -> str: - """ - stability - :stability: experimental - """ - ... - - @a.setter - def a(self, value: str): - ... - - -class _IAnotherPublicInterfaceProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IAnotherPublicInterface" - @builtins.property - @jsii.member(jsii_name="a") - def a(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "a") - - @a.setter - def a(self, value: str): - jsii.set(self, "a", value) - - -@jsii.interface(jsii_type="jsii-calc.compliance.IBell") -class IBell(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IBellProxy - - @jsii.member(jsii_name="ring") - def ring(self) -> None: - """ - stability - :stability: experimental - """ - ... - - -class _IBellProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IBell" - @jsii.member(jsii_name="ring") - def ring(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "ring", []) - - -@jsii.interface(jsii_type="jsii-calc.compliance.IBellRinger") -class IBellRinger(jsii.compat.Protocol): - """Takes the object parameter as an interface. - - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IBellRingerProxy - - @jsii.member(jsii_name="yourTurn") - def your_turn(self, bell: "IBell") -> None: - """ - :param bell: - - - stability - :stability: experimental - """ - ... - - -class _IBellRingerProxy(): - """Takes the object parameter as an interface. - - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IBellRinger" - @jsii.member(jsii_name="yourTurn") - def your_turn(self, bell: "IBell") -> None: - """ - :param bell: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "yourTurn", [bell]) - - -@jsii.interface(jsii_type="jsii-calc.compliance.IConcreteBellRinger") -class IConcreteBellRinger(jsii.compat.Protocol): - """Takes the object parameter as a calss. - - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IConcreteBellRingerProxy - - @jsii.member(jsii_name="yourTurn") - def your_turn(self, bell: "Bell") -> None: - """ - :param bell: - - - stability - :stability: experimental - """ - ... - - -class _IConcreteBellRingerProxy(): - """Takes the object parameter as a calss. - - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IConcreteBellRinger" - @jsii.member(jsii_name="yourTurn") - def your_turn(self, bell: "Bell") -> None: - """ - :param bell: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "yourTurn", [bell]) - - -@jsii.interface(jsii_type="jsii-calc.compliance.IExtendsPrivateInterface") -class IExtendsPrivateInterface(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IExtendsPrivateInterfaceProxy - - @builtins.property - @jsii.member(jsii_name="moreThings") - def more_things(self) -> typing.List[str]: - """ - stability - :stability: experimental - """ - ... - - @builtins.property - @jsii.member(jsii_name="private") - def private(self) -> str: - """ - stability - :stability: experimental - """ - ... - - @private.setter - def private(self, value: str): - ... - - -class _IExtendsPrivateInterfaceProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IExtendsPrivateInterface" - @builtins.property - @jsii.member(jsii_name="moreThings") - def more_things(self) -> typing.List[str]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "moreThings") - - @builtins.property - @jsii.member(jsii_name="private") - def private(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "private") - - @private.setter - def private(self, value: str): - jsii.set(self, "private", value) - - -@jsii.interface(jsii_type="jsii-calc.compliance.IInterfaceImplementedByAbstractClass") -class IInterfaceImplementedByAbstractClass(jsii.compat.Protocol): - """awslabs/jsii#220 Abstract return type. - - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IInterfaceImplementedByAbstractClassProxy - - @builtins.property - @jsii.member(jsii_name="propFromInterface") - def prop_from_interface(self) -> str: - """ - stability - :stability: experimental - """ - ... - - -class _IInterfaceImplementedByAbstractClassProxy(): - """awslabs/jsii#220 Abstract return type. - - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IInterfaceImplementedByAbstractClass" - @builtins.property - @jsii.member(jsii_name="propFromInterface") - def prop_from_interface(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "propFromInterface") - - -@jsii.interface(jsii_type="jsii-calc.compliance.IInterfaceWithInternal") -class IInterfaceWithInternal(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IInterfaceWithInternalProxy - - @jsii.member(jsii_name="visible") - def visible(self) -> None: - """ - stability - :stability: experimental - """ - ... - - -class _IInterfaceWithInternalProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IInterfaceWithInternal" - @jsii.member(jsii_name="visible") - def visible(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "visible", []) - - -@jsii.interface(jsii_type="jsii-calc.compliance.IInterfaceWithMethods") -class IInterfaceWithMethods(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IInterfaceWithMethodsProxy - - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> str: - """ - stability - :stability: experimental - """ - ... - - @jsii.member(jsii_name="doThings") - def do_things(self) -> None: - """ - stability - :stability: experimental - """ - ... - - -class _IInterfaceWithMethodsProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IInterfaceWithMethods" - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "value") - - @jsii.member(jsii_name="doThings") - def do_things(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "doThings", []) - - -@jsii.interface(jsii_type="jsii-calc.compliance.IInterfaceWithOptionalMethodArguments") -class IInterfaceWithOptionalMethodArguments(jsii.compat.Protocol): - """awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods. - - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IInterfaceWithOptionalMethodArgumentsProxy - - @jsii.member(jsii_name="hello") - def hello(self, arg1: str, arg2: typing.Optional[jsii.Number]=None) -> None: - """ - :param arg1: - - :param arg2: - - - stability - :stability: experimental - """ - ... - - -class _IInterfaceWithOptionalMethodArgumentsProxy(): - """awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods. - - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IInterfaceWithOptionalMethodArguments" - @jsii.member(jsii_name="hello") - def hello(self, arg1: str, arg2: typing.Optional[jsii.Number]=None) -> None: - """ - :param arg1: - - :param arg2: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "hello", [arg1, arg2]) - - -@jsii.interface(jsii_type="jsii-calc.compliance.IInterfaceWithProperties") -class IInterfaceWithProperties(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IInterfaceWithPropertiesProxy - - @builtins.property - @jsii.member(jsii_name="readOnlyString") - def read_only_string(self) -> str: - """ - stability - :stability: experimental - """ - ... - - @builtins.property - @jsii.member(jsii_name="readWriteString") - def read_write_string(self) -> str: - """ - stability - :stability: experimental - """ - ... - - @read_write_string.setter - def read_write_string(self, value: str): - ... - - -class _IInterfaceWithPropertiesProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IInterfaceWithProperties" - @builtins.property - @jsii.member(jsii_name="readOnlyString") - def read_only_string(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "readOnlyString") - - @builtins.property - @jsii.member(jsii_name="readWriteString") - def read_write_string(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "readWriteString") - - @read_write_string.setter - def read_write_string(self, value: str): - jsii.set(self, "readWriteString", value) - - -@jsii.interface(jsii_type="jsii-calc.compliance.IInterfaceWithPropertiesExtension") -class IInterfaceWithPropertiesExtension(IInterfaceWithProperties, jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IInterfaceWithPropertiesExtensionProxy - - @builtins.property - @jsii.member(jsii_name="foo") - def foo(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - ... - - @foo.setter - def foo(self, value: jsii.Number): - ... - - -class _IInterfaceWithPropertiesExtensionProxy(jsii.proxy_for(IInterfaceWithProperties)): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IInterfaceWithPropertiesExtension" - @builtins.property - @jsii.member(jsii_name="foo") - def foo(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "foo") - - @foo.setter - def foo(self, value: jsii.Number): - jsii.set(self, "foo", value) - - -@jsii.interface(jsii_type="jsii-calc.compliance.IMutableObjectLiteral") -class IMutableObjectLiteral(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IMutableObjectLiteralProxy - - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> str: - """ - stability - :stability: experimental - """ - ... - - @value.setter - def value(self, value: str): - ... - - -class _IMutableObjectLiteralProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IMutableObjectLiteral" - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "value") - - @value.setter - def value(self, value: str): - jsii.set(self, "value", value) - - -@jsii.interface(jsii_type="jsii-calc.compliance.INonInternalInterface") -class INonInternalInterface(IAnotherPublicInterface, jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _INonInternalInterfaceProxy - - @builtins.property - @jsii.member(jsii_name="b") - def b(self) -> str: - """ - stability - :stability: experimental - """ - ... - - @b.setter - def b(self, value: str): - ... - - @builtins.property - @jsii.member(jsii_name="c") - def c(self) -> str: - """ - stability - :stability: experimental - """ - ... - - @c.setter - def c(self, value: str): - ... - - -class _INonInternalInterfaceProxy(jsii.proxy_for(IAnotherPublicInterface)): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.INonInternalInterface" - @builtins.property - @jsii.member(jsii_name="b") - def b(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "b") - - @b.setter - def b(self, value: str): - jsii.set(self, "b", value) - - @builtins.property - @jsii.member(jsii_name="c") - def c(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "c") - - @c.setter - def c(self, value: str): - jsii.set(self, "c", value) - - -@jsii.interface(jsii_type="jsii-calc.compliance.IObjectWithProperty") -class IObjectWithProperty(jsii.compat.Protocol): - """Make sure that setters are properly called on objects with interfaces. - - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IObjectWithPropertyProxy - - @builtins.property - @jsii.member(jsii_name="property") - def property(self) -> str: - """ - stability - :stability: experimental - """ - ... - - @property.setter - def property(self, value: str): - ... - - @jsii.member(jsii_name="wasSet") - def was_set(self) -> bool: - """ - stability - :stability: experimental - """ - ... - - -class _IObjectWithPropertyProxy(): - """Make sure that setters are properly called on objects with interfaces. - - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IObjectWithProperty" - @builtins.property - @jsii.member(jsii_name="property") - def property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "property") - - @property.setter - def property(self, value: str): - jsii.set(self, "property", value) - - @jsii.member(jsii_name="wasSet") - def was_set(self) -> bool: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "wasSet", []) - - -@jsii.interface(jsii_type="jsii-calc.compliance.IOptionalMethod") -class IOptionalMethod(jsii.compat.Protocol): - """Checks that optional result from interface method code generates correctly. - - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IOptionalMethodProxy - - @jsii.member(jsii_name="optional") - def optional(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - ... - - -class _IOptionalMethodProxy(): - """Checks that optional result from interface method code generates correctly. - - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IOptionalMethod" - @jsii.member(jsii_name="optional") - def optional(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "optional", []) - - -@jsii.interface(jsii_type="jsii-calc.compliance.IPrivatelyImplemented") -class IPrivatelyImplemented(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IPrivatelyImplementedProxy - - @builtins.property - @jsii.member(jsii_name="success") - def success(self) -> bool: - """ - stability - :stability: experimental - """ - ... - - -class _IPrivatelyImplementedProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IPrivatelyImplemented" - @builtins.property - @jsii.member(jsii_name="success") - def success(self) -> bool: - """ - stability - :stability: experimental - """ - return jsii.get(self, "success") - - -@jsii.interface(jsii_type="jsii-calc.compliance.IPublicInterface") -class IPublicInterface(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IPublicInterfaceProxy - - @jsii.member(jsii_name="bye") - def bye(self) -> str: - """ - stability - :stability: experimental - """ - ... - - -class _IPublicInterfaceProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IPublicInterface" - @jsii.member(jsii_name="bye") - def bye(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "bye", []) - - -@jsii.interface(jsii_type="jsii-calc.compliance.IPublicInterface2") -class IPublicInterface2(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IPublicInterface2Proxy - - @jsii.member(jsii_name="ciao") - def ciao(self) -> str: - """ - stability - :stability: experimental - """ - ... - - -class _IPublicInterface2Proxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IPublicInterface2" - @jsii.member(jsii_name="ciao") - def ciao(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "ciao", []) - - -@jsii.interface(jsii_type="jsii-calc.compliance.IReturnJsii976") -class IReturnJsii976(jsii.compat.Protocol): - """Returns a subclass of a known class which implements an interface. - - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IReturnJsii976Proxy - - @builtins.property - @jsii.member(jsii_name="foo") - def foo(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - ... - - -class _IReturnJsii976Proxy(): - """Returns a subclass of a known class which implements an interface. - - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IReturnJsii976" - @builtins.property - @jsii.member(jsii_name="foo") - def foo(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "foo") - - -@jsii.interface(jsii_type="jsii-calc.compliance.IReturnsNumber") -class IReturnsNumber(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IReturnsNumberProxy - - @builtins.property - @jsii.member(jsii_name="numberProp") - def number_prop(self) -> scope.jsii_calc_lib.Number: - """ - stability - :stability: experimental - """ - ... - - @jsii.member(jsii_name="obtainNumber") - def obtain_number(self) -> scope.jsii_calc_lib.IDoublable: - """ - stability - :stability: experimental - """ - ... - - -class _IReturnsNumberProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IReturnsNumber" - @builtins.property - @jsii.member(jsii_name="numberProp") - def number_prop(self) -> scope.jsii_calc_lib.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "numberProp") - - @jsii.member(jsii_name="obtainNumber") - def obtain_number(self) -> scope.jsii_calc_lib.IDoublable: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "obtainNumber", []) - - -@jsii.interface(jsii_type="jsii-calc.compliance.IStructReturningDelegate") -class IStructReturningDelegate(jsii.compat.Protocol): - """Verifies that a "pure" implementation of an interface works correctly. - - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IStructReturningDelegateProxy - - @jsii.member(jsii_name="returnStruct") - def return_struct(self) -> "StructB": - """ - stability - :stability: experimental - """ - ... - - -class _IStructReturningDelegateProxy(): - """Verifies that a "pure" implementation of an interface works correctly. - - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IStructReturningDelegate" - @jsii.member(jsii_name="returnStruct") - def return_struct(self) -> "StructB": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "returnStruct", []) - - -class ImplementInternalInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ImplementInternalInterface"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(ImplementInternalInterface, self, []) - - @builtins.property - @jsii.member(jsii_name="prop") - def prop(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "prop") - - @prop.setter - def prop(self, value: str): - jsii.set(self, "prop", value) - - -class Implementation(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.Implementation"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(Implementation, self, []) - - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "value") - - -@jsii.implements(IInterfaceWithInternal) -class ImplementsInterfaceWithInternal(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ImplementsInterfaceWithInternal"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(ImplementsInterfaceWithInternal, self, []) - - @jsii.member(jsii_name="visible") - def visible(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "visible", []) - - -class ImplementsInterfaceWithInternalSubclass(ImplementsInterfaceWithInternal, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ImplementsInterfaceWithInternalSubclass"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(ImplementsInterfaceWithInternalSubclass, self, []) - - -class ImplementsPrivateInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ImplementsPrivateInterface"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(ImplementsPrivateInterface, self, []) - - @builtins.property - @jsii.member(jsii_name="private") - def private(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "private") - - @private.setter - def private(self, value: str): - jsii.set(self, "private", value) - - -@jsii.data_type(jsii_type="jsii-calc.compliance.ImplictBaseOfBase", jsii_struct_bases=[scope.jsii_calc_base.BaseProps], name_mapping={'foo': 'foo', 'bar': 'bar', 'goo': 'goo'}) -class ImplictBaseOfBase(scope.jsii_calc_base.BaseProps): - def __init__(self, *, foo: scope.jsii_calc_base_of_base.Very, bar: str, goo: datetime.datetime): - """ - :param foo: - - :param bar: - - :param goo: - - stability - :stability: experimental - """ - self._values = { - 'foo': foo, - 'bar': bar, - 'goo': goo, - } - - @builtins.property - def foo(self) -> scope.jsii_calc_base_of_base.Very: - return self._values.get('foo') - - @builtins.property - def bar(self) -> str: - return self._values.get('bar') - - @builtins.property - def goo(self) -> datetime.datetime: - """ - stability - :stability: experimental - """ - return self._values.get('goo') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'ImplictBaseOfBase(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - -class InterfaceCollections(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.InterfaceCollections"): - """Verifies that collections of interfaces or structs are correctly handled. - - See: https://github.com/aws/jsii/issues/1196 - - stability - :stability: experimental - """ - @jsii.member(jsii_name="listOfInterfaces") - @builtins.classmethod - def list_of_interfaces(cls) -> typing.List["IBell"]: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "listOfInterfaces", []) - - @jsii.member(jsii_name="listOfStructs") - @builtins.classmethod - def list_of_structs(cls) -> typing.List["StructA"]: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "listOfStructs", []) - - @jsii.member(jsii_name="mapOfInterfaces") - @builtins.classmethod - def map_of_interfaces(cls) -> typing.Mapping[str,"IBell"]: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "mapOfInterfaces", []) - - @jsii.member(jsii_name="mapOfStructs") - @builtins.classmethod - def map_of_structs(cls) -> typing.Mapping[str,"StructA"]: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "mapOfStructs", []) - - -class InterfacesMaker(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.InterfacesMaker"): - """We can return arrays of interfaces See aws/aws-cdk#2362. - - stability - :stability: experimental - """ - @jsii.member(jsii_name="makeInterfaces") - @builtins.classmethod - def make_interfaces(cls, count: jsii.Number) -> typing.List[scope.jsii_calc_lib.IDoublable]: - """ - :param count: - - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "makeInterfaces", [count]) - - -class JSObjectLiteralForInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.JSObjectLiteralForInterface"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(JSObjectLiteralForInterface, self, []) - - @jsii.member(jsii_name="giveMeFriendly") - def give_me_friendly(self) -> scope.jsii_calc_lib.IFriendly: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "giveMeFriendly", []) - - @jsii.member(jsii_name="giveMeFriendlyGenerator") - def give_me_friendly_generator(self) -> jsii_calc.IFriendlyRandomGenerator: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "giveMeFriendlyGenerator", []) - - -class JSObjectLiteralToNative(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.JSObjectLiteralToNative"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(JSObjectLiteralToNative, self, []) - - @jsii.member(jsii_name="returnLiteral") - def return_literal(self) -> "JSObjectLiteralToNativeClass": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "returnLiteral", []) - - -class JSObjectLiteralToNativeClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.JSObjectLiteralToNativeClass"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(JSObjectLiteralToNativeClass, self, []) - - @builtins.property - @jsii.member(jsii_name="propA") - def prop_a(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "propA") - - @prop_a.setter - def prop_a(self, value: str): - jsii.set(self, "propA", value) - - @builtins.property - @jsii.member(jsii_name="propB") - def prop_b(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "propB") - - @prop_b.setter - def prop_b(self, value: jsii.Number): - jsii.set(self, "propB", value) - - -class JavaReservedWords(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.JavaReservedWords"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(JavaReservedWords, self, []) - - @jsii.member(jsii_name="abstract") - def abstract(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "abstract", []) - - @jsii.member(jsii_name="assert") - def assert_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "assert", []) - - @jsii.member(jsii_name="boolean") - def boolean(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "boolean", []) - - @jsii.member(jsii_name="break") - def break_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "break", []) - - @jsii.member(jsii_name="byte") - def byte(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "byte", []) - - @jsii.member(jsii_name="case") - def case(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "case", []) - - @jsii.member(jsii_name="catch") - def catch(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "catch", []) - - @jsii.member(jsii_name="char") - def char(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "char", []) - - @jsii.member(jsii_name="class") - def class_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "class", []) - - @jsii.member(jsii_name="const") - def const(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "const", []) - - @jsii.member(jsii_name="continue") - def continue_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "continue", []) - - @jsii.member(jsii_name="default") - def default(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "default", []) - - @jsii.member(jsii_name="do") - def do(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "do", []) - - @jsii.member(jsii_name="double") - def double(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "double", []) - - @jsii.member(jsii_name="else") - def else_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "else", []) - - @jsii.member(jsii_name="enum") - def enum(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "enum", []) - - @jsii.member(jsii_name="extends") - def extends(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "extends", []) - - @jsii.member(jsii_name="false") - def false(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "false", []) - - @jsii.member(jsii_name="final") - def final(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "final", []) - - @jsii.member(jsii_name="finally") - def finally_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "finally", []) - - @jsii.member(jsii_name="float") - def float(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "float", []) - - @jsii.member(jsii_name="for") - def for_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "for", []) - - @jsii.member(jsii_name="goto") - def goto(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "goto", []) - - @jsii.member(jsii_name="if") - def if_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "if", []) - - @jsii.member(jsii_name="implements") - def implements(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "implements", []) - - @jsii.member(jsii_name="import") - def import_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "import", []) - - @jsii.member(jsii_name="instanceof") - def instanceof(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "instanceof", []) - - @jsii.member(jsii_name="int") - def int(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "int", []) - - @jsii.member(jsii_name="interface") - def interface(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "interface", []) - - @jsii.member(jsii_name="long") - def long(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "long", []) - - @jsii.member(jsii_name="native") - def native(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "native", []) - - @jsii.member(jsii_name="new") - def new(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "new", []) - - @jsii.member(jsii_name="null") - def null(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "null", []) - - @jsii.member(jsii_name="package") - def package(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "package", []) - - @jsii.member(jsii_name="private") - def private(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "private", []) - - @jsii.member(jsii_name="protected") - def protected(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "protected", []) - - @jsii.member(jsii_name="public") - def public(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "public", []) - - @jsii.member(jsii_name="return") - def return_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "return", []) - - @jsii.member(jsii_name="short") - def short(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "short", []) - - @jsii.member(jsii_name="static") - def static(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "static", []) - - @jsii.member(jsii_name="strictfp") - def strictfp(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "strictfp", []) - - @jsii.member(jsii_name="super") - def super(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "super", []) - - @jsii.member(jsii_name="switch") - def switch(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "switch", []) - - @jsii.member(jsii_name="synchronized") - def synchronized(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "synchronized", []) - - @jsii.member(jsii_name="this") - def this(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "this", []) - - @jsii.member(jsii_name="throw") - def throw(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "throw", []) - - @jsii.member(jsii_name="throws") - def throws(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "throws", []) - - @jsii.member(jsii_name="transient") - def transient(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "transient", []) - - @jsii.member(jsii_name="true") - def true(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "true", []) - - @jsii.member(jsii_name="try") - def try_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "try", []) - - @jsii.member(jsii_name="void") - def void(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "void", []) - - @jsii.member(jsii_name="volatile") - def volatile(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "volatile", []) - - @builtins.property - @jsii.member(jsii_name="while") - def while_(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "while") - - @while_.setter - def while_(self, value: str): - jsii.set(self, "while", value) - - -class JsiiAgent(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.JsiiAgent"): - """Host runtime version should be set via JSII_AGENT. - - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(JsiiAgent, self, []) - - @jsii.python.classproperty - @jsii.member(jsii_name="jsiiAgent") - def jsii_agent(cls) -> typing.Optional[str]: - """Returns the value of the JSII_AGENT environment variable. - - stability - :stability: experimental - """ - return jsii.sget(cls, "jsiiAgent") - - -class JsonFormatter(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.JsonFormatter"): - """Make sure structs are un-decorated on the way in. - - see - :see: https://github.com/aws/aws-cdk/issues/5066 - stability - :stability: experimental - """ - @jsii.member(jsii_name="anyArray") - @builtins.classmethod - def any_array(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyArray", []) - - @jsii.member(jsii_name="anyBooleanFalse") - @builtins.classmethod - def any_boolean_false(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyBooleanFalse", []) - - @jsii.member(jsii_name="anyBooleanTrue") - @builtins.classmethod - def any_boolean_true(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyBooleanTrue", []) - - @jsii.member(jsii_name="anyDate") - @builtins.classmethod - def any_date(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyDate", []) - - @jsii.member(jsii_name="anyEmptyString") - @builtins.classmethod - def any_empty_string(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyEmptyString", []) - - @jsii.member(jsii_name="anyFunction") - @builtins.classmethod - def any_function(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyFunction", []) - - @jsii.member(jsii_name="anyHash") - @builtins.classmethod - def any_hash(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyHash", []) - - @jsii.member(jsii_name="anyNull") - @builtins.classmethod - def any_null(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyNull", []) - - @jsii.member(jsii_name="anyNumber") - @builtins.classmethod - def any_number(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyNumber", []) - - @jsii.member(jsii_name="anyRef") - @builtins.classmethod - def any_ref(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyRef", []) - - @jsii.member(jsii_name="anyString") - @builtins.classmethod - def any_string(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyString", []) - - @jsii.member(jsii_name="anyUndefined") - @builtins.classmethod - def any_undefined(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyUndefined", []) - - @jsii.member(jsii_name="anyZero") - @builtins.classmethod - def any_zero(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "anyZero", []) - - @jsii.member(jsii_name="stringify") - @builtins.classmethod - def stringify(cls, value: typing.Any=None) -> typing.Optional[str]: - """ - :param value: - - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "stringify", [value]) - - -@jsii.data_type(jsii_type="jsii-calc.compliance.LoadBalancedFargateServiceProps", jsii_struct_bases=[], name_mapping={'container_port': 'containerPort', 'cpu': 'cpu', 'memory_mib': 'memoryMiB', 'public_load_balancer': 'publicLoadBalancer', 'public_tasks': 'publicTasks'}) -class LoadBalancedFargateServiceProps(): - def __init__(self, *, container_port: typing.Optional[jsii.Number]=None, cpu: typing.Optional[str]=None, memory_mib: typing.Optional[str]=None, public_load_balancer: typing.Optional[bool]=None, public_tasks: typing.Optional[bool]=None): - """jsii#298: show default values in sphinx documentation, and respect newlines. - - :param container_port: The container port of the application load balancer attached to your Fargate service. Corresponds to container port mapping. Default: 80 - :param cpu: The number of cpu units used by the task. Valid values, which determines your range of valid values for the memory parameter: 256 (.25 vCPU) - Available memory values: 0.5GB, 1GB, 2GB 512 (.5 vCPU) - Available memory values: 1GB, 2GB, 3GB, 4GB 1024 (1 vCPU) - Available memory values: 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB 2048 (2 vCPU) - Available memory values: Between 4GB and 16GB in 1GB increments 4096 (4 vCPU) - Available memory values: Between 8GB and 30GB in 1GB increments This default is set in the underlying FargateTaskDefinition construct. Default: 256 - :param memory_mib: The amount (in MiB) of memory used by the task. This field is required and you must use one of the following values, which determines your range of valid values for the cpu parameter: 0.5GB, 1GB, 2GB - Available cpu values: 256 (.25 vCPU) 1GB, 2GB, 3GB, 4GB - Available cpu values: 512 (.5 vCPU) 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - Available cpu values: 1024 (1 vCPU) Between 4GB and 16GB in 1GB increments - Available cpu values: 2048 (2 vCPU) Between 8GB and 30GB in 1GB increments - Available cpu values: 4096 (4 vCPU) This default is set in the underlying FargateTaskDefinition construct. Default: 512 - :param public_load_balancer: Determines whether the Application Load Balancer will be internet-facing. Default: true - :param public_tasks: Determines whether your Fargate Service will be assigned a public IP address. Default: false - - stability - :stability: experimental - """ - self._values = { - } - if container_port is not None: self._values["container_port"] = container_port - if cpu is not None: self._values["cpu"] = cpu - if memory_mib is not None: self._values["memory_mib"] = memory_mib - if public_load_balancer is not None: self._values["public_load_balancer"] = public_load_balancer - if public_tasks is not None: self._values["public_tasks"] = public_tasks - - @builtins.property - def container_port(self) -> typing.Optional[jsii.Number]: - """The container port of the application load balancer attached to your Fargate service. - - Corresponds to container port mapping. - - default - :default: 80 - - stability - :stability: experimental - """ - return self._values.get('container_port') - - @builtins.property - def cpu(self) -> typing.Optional[str]: - """The number of cpu units used by the task. - - Valid values, which determines your range of valid values for the memory parameter: - 256 (.25 vCPU) - Available memory values: 0.5GB, 1GB, 2GB - 512 (.5 vCPU) - Available memory values: 1GB, 2GB, 3GB, 4GB - 1024 (1 vCPU) - Available memory values: 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - 2048 (2 vCPU) - Available memory values: Between 4GB and 16GB in 1GB increments - 4096 (4 vCPU) - Available memory values: Between 8GB and 30GB in 1GB increments - - This default is set in the underlying FargateTaskDefinition construct. - - default - :default: 256 - - stability - :stability: experimental - """ - return self._values.get('cpu') - - @builtins.property - def memory_mib(self) -> typing.Optional[str]: - """The amount (in MiB) of memory used by the task. - - This field is required and you must use one of the following values, which determines your range of valid values - for the cpu parameter: - - 0.5GB, 1GB, 2GB - Available cpu values: 256 (.25 vCPU) - - 1GB, 2GB, 3GB, 4GB - Available cpu values: 512 (.5 vCPU) - - 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - Available cpu values: 1024 (1 vCPU) - - Between 4GB and 16GB in 1GB increments - Available cpu values: 2048 (2 vCPU) - - Between 8GB and 30GB in 1GB increments - Available cpu values: 4096 (4 vCPU) - - This default is set in the underlying FargateTaskDefinition construct. - - default - :default: 512 - - stability - :stability: experimental - """ - return self._values.get('memory_mib') - - @builtins.property - def public_load_balancer(self) -> typing.Optional[bool]: - """Determines whether the Application Load Balancer will be internet-facing. - - default - :default: true - - stability - :stability: experimental - """ - return self._values.get('public_load_balancer') - - @builtins.property - def public_tasks(self) -> typing.Optional[bool]: - """Determines whether your Fargate Service will be assigned a public IP address. - - default - :default: false - - stability - :stability: experimental - """ - return self._values.get('public_tasks') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'LoadBalancedFargateServiceProps(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - -@jsii.data_type(jsii_type="jsii-calc.compliance.NestedStruct", jsii_struct_bases=[], name_mapping={'number_prop': 'numberProp'}) -class NestedStruct(): - def __init__(self, *, number_prop: jsii.Number): - """ - :param number_prop: When provided, must be > 0. - - stability - :stability: experimental - """ - self._values = { - 'number_prop': number_prop, - } - - @builtins.property - def number_prop(self) -> jsii.Number: - """When provided, must be > 0. - - stability - :stability: experimental - """ - return self._values.get('number_prop') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'NestedStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - -class NodeStandardLibrary(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.NodeStandardLibrary"): - """Test fixture to verify that jsii modules can use the node standard library. - - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(NodeStandardLibrary, self, []) - - @jsii.member(jsii_name="cryptoSha256") - def crypto_sha256(self) -> str: - """Uses node.js "crypto" module to calculate sha256 of a string. - - return - :return: "6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50" - - stability - :stability: experimental - """ - return jsii.invoke(self, "cryptoSha256", []) - - @jsii.member(jsii_name="fsReadFile") - def fs_read_file(self) -> str: - """Reads a local resource file (resource.txt) asynchronously. - - return - :return: "Hello, resource!" - - stability - :stability: experimental - """ - return jsii.ainvoke(self, "fsReadFile", []) - - @jsii.member(jsii_name="fsReadFileSync") - def fs_read_file_sync(self) -> str: - """Sync version of fsReadFile. - - return - :return: "Hello, resource! SYNC!" - - stability - :stability: experimental - """ - return jsii.invoke(self, "fsReadFileSync", []) - - @builtins.property - @jsii.member(jsii_name="osPlatform") - def os_platform(self) -> str: - """Returns the current os.platform() from the "os" node module. - - stability - :stability: experimental - """ - return jsii.get(self, "osPlatform") - - -class NullShouldBeTreatedAsUndefined(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.NullShouldBeTreatedAsUndefined"): - """jsii#282, aws-cdk#157: null should be treated as "undefined". - - stability - :stability: experimental - """ - def __init__(self, _param1: str, optional: typing.Any=None) -> None: - """ - :param _param1: - - :param optional: - - - stability - :stability: experimental - """ - jsii.create(NullShouldBeTreatedAsUndefined, self, [_param1, optional]) - - @jsii.member(jsii_name="giveMeUndefined") - def give_me_undefined(self, value: typing.Any=None) -> None: - """ - :param value: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "giveMeUndefined", [value]) - - @jsii.member(jsii_name="giveMeUndefinedInsideAnObject") - def give_me_undefined_inside_an_object(self, *, array_with_three_elements_and_undefined_as_second_argument: typing.List[typing.Any], this_should_be_undefined: typing.Any=None) -> None: - """ - :param array_with_three_elements_and_undefined_as_second_argument: - :param this_should_be_undefined: - - stability - :stability: experimental - """ - input = NullShouldBeTreatedAsUndefinedData(array_with_three_elements_and_undefined_as_second_argument=array_with_three_elements_and_undefined_as_second_argument, this_should_be_undefined=this_should_be_undefined) - - return jsii.invoke(self, "giveMeUndefinedInsideAnObject", [input]) - - @jsii.member(jsii_name="verifyPropertyIsUndefined") - def verify_property_is_undefined(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "verifyPropertyIsUndefined", []) - - @builtins.property - @jsii.member(jsii_name="changeMeToUndefined") - def change_me_to_undefined(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "changeMeToUndefined") - - @change_me_to_undefined.setter - def change_me_to_undefined(self, value: typing.Optional[str]): - jsii.set(self, "changeMeToUndefined", value) - - -@jsii.data_type(jsii_type="jsii-calc.compliance.NullShouldBeTreatedAsUndefinedData", jsii_struct_bases=[], name_mapping={'array_with_three_elements_and_undefined_as_second_argument': 'arrayWithThreeElementsAndUndefinedAsSecondArgument', 'this_should_be_undefined': 'thisShouldBeUndefined'}) -class NullShouldBeTreatedAsUndefinedData(): - def __init__(self, *, array_with_three_elements_and_undefined_as_second_argument: typing.List[typing.Any], this_should_be_undefined: typing.Any=None): - """ - :param array_with_three_elements_and_undefined_as_second_argument: - :param this_should_be_undefined: - - stability - :stability: experimental - """ - self._values = { - 'array_with_three_elements_and_undefined_as_second_argument': array_with_three_elements_and_undefined_as_second_argument, - } - if this_should_be_undefined is not None: self._values["this_should_be_undefined"] = this_should_be_undefined - - @builtins.property - def array_with_three_elements_and_undefined_as_second_argument(self) -> typing.List[typing.Any]: - """ - stability - :stability: experimental - """ - return self._values.get('array_with_three_elements_and_undefined_as_second_argument') - - @builtins.property - def this_should_be_undefined(self) -> typing.Any: - """ - stability - :stability: experimental - """ - return self._values.get('this_should_be_undefined') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'NullShouldBeTreatedAsUndefinedData(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - -class NumberGenerator(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.NumberGenerator"): - """This allows us to test that a reference can be stored for objects that implement interfaces. - - stability - :stability: experimental - """ - def __init__(self, generator: jsii_calc.IRandomNumberGenerator) -> None: - """ - :param generator: - - - stability - :stability: experimental - """ - jsii.create(NumberGenerator, self, [generator]) - - @jsii.member(jsii_name="isSameGenerator") - def is_same_generator(self, gen: jsii_calc.IRandomNumberGenerator) -> bool: - """ - :param gen: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "isSameGenerator", [gen]) - - @jsii.member(jsii_name="nextTimes100") - def next_times100(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "nextTimes100", []) - - @builtins.property - @jsii.member(jsii_name="generator") - def generator(self) -> jsii_calc.IRandomNumberGenerator: - """ - stability - :stability: experimental - """ - return jsii.get(self, "generator") - - @generator.setter - def generator(self, value: jsii_calc.IRandomNumberGenerator): - jsii.set(self, "generator", value) - - -class ObjectRefsInCollections(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ObjectRefsInCollections"): - """Verify that object references can be passed inside collections. - - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(ObjectRefsInCollections, self, []) - - @jsii.member(jsii_name="sumFromArray") - def sum_from_array(self, values: typing.List[scope.jsii_calc_lib.Value]) -> jsii.Number: - """Returns the sum of all values. - - :param values: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "sumFromArray", [values]) - - @jsii.member(jsii_name="sumFromMap") - def sum_from_map(self, values: typing.Mapping[str,scope.jsii_calc_lib.Value]) -> jsii.Number: - """Returns the sum of all values in a map. - - :param values: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "sumFromMap", [values]) - - -class ObjectWithPropertyProvider(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ObjectWithPropertyProvider"): - """ - stability - :stability: experimental - """ - @jsii.member(jsii_name="provide") - @builtins.classmethod - def provide(cls) -> "IObjectWithProperty": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "provide", []) - - -class OptionalArgumentInvoker(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.OptionalArgumentInvoker"): - """ - stability - :stability: experimental - """ - def __init__(self, delegate: "IInterfaceWithOptionalMethodArguments") -> None: - """ - :param delegate: - - - stability - :stability: experimental - """ - jsii.create(OptionalArgumentInvoker, self, [delegate]) - - @jsii.member(jsii_name="invokeWithOptional") - def invoke_with_optional(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "invokeWithOptional", []) - - @jsii.member(jsii_name="invokeWithoutOptional") - def invoke_without_optional(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "invokeWithoutOptional", []) - - -class OptionalConstructorArgument(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.OptionalConstructorArgument"): - """ - stability - :stability: experimental - """ - def __init__(self, arg1: jsii.Number, arg2: str, arg3: typing.Optional[datetime.datetime]=None) -> None: - """ - :param arg1: - - :param arg2: - - :param arg3: - - - stability - :stability: experimental - """ - jsii.create(OptionalConstructorArgument, self, [arg1, arg2, arg3]) - - @builtins.property - @jsii.member(jsii_name="arg1") - def arg1(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "arg1") - - @builtins.property - @jsii.member(jsii_name="arg2") - def arg2(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "arg2") - - @builtins.property - @jsii.member(jsii_name="arg3") - def arg3(self) -> typing.Optional[datetime.datetime]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "arg3") - - -@jsii.data_type(jsii_type="jsii-calc.compliance.OptionalStruct", jsii_struct_bases=[], name_mapping={'field': 'field'}) -class OptionalStruct(): - def __init__(self, *, field: typing.Optional[str]=None): - """ - :param field: - - stability - :stability: experimental - """ - self._values = { - } - if field is not None: self._values["field"] = field - - @builtins.property - def field(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return self._values.get('field') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'OptionalStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - -class OptionalStructConsumer(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.OptionalStructConsumer"): - """ - stability - :stability: experimental - """ - def __init__(self, *, field: typing.Optional[str]=None) -> None: - """ - :param field: - - stability - :stability: experimental - """ - optional_struct = OptionalStruct(field=field) - - jsii.create(OptionalStructConsumer, self, [optional_struct]) - - @builtins.property - @jsii.member(jsii_name="parameterWasUndefined") - def parameter_was_undefined(self) -> bool: - """ - stability - :stability: experimental - """ - return jsii.get(self, "parameterWasUndefined") - - @builtins.property - @jsii.member(jsii_name="fieldValue") - def field_value(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "fieldValue") - - -class OverridableProtectedMember(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.OverridableProtectedMember"): - """ - see - :see: https://github.com/aws/jsii/issues/903 - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(OverridableProtectedMember, self, []) - - @jsii.member(jsii_name="overrideMe") - def _override_me(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "overrideMe", []) - - @jsii.member(jsii_name="switchModes") - def switch_modes(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "switchModes", []) - - @jsii.member(jsii_name="valueFromProtected") - def value_from_protected(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "valueFromProtected", []) - - @builtins.property - @jsii.member(jsii_name="overrideReadOnly") - def _override_read_only(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "overrideReadOnly") - - @builtins.property - @jsii.member(jsii_name="overrideReadWrite") - def _override_read_write(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "overrideReadWrite") - - @_override_read_write.setter - def _override_read_write(self, value: str): - jsii.set(self, "overrideReadWrite", value) - - -class OverrideReturnsObject(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.OverrideReturnsObject"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(OverrideReturnsObject, self, []) - - @jsii.member(jsii_name="test") - def test(self, obj: "IReturnsNumber") -> jsii.Number: - """ - :param obj: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "test", [obj]) - - -@jsii.data_type(jsii_type="jsii-calc.compliance.ParentStruct982", jsii_struct_bases=[], name_mapping={'foo': 'foo'}) -class ParentStruct982(): - def __init__(self, *, foo: str): - """https://github.com/aws/jsii/issues/982. - - :param foo: - - stability - :stability: experimental - """ - self._values = { - 'foo': foo, - } - - @builtins.property - def foo(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('foo') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'ParentStruct982(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - -class PartiallyInitializedThisConsumer(metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.compliance.PartiallyInitializedThisConsumer"): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _PartiallyInitializedThisConsumerProxy - - def __init__(self) -> None: - jsii.create(PartiallyInitializedThisConsumer, self, []) - - @jsii.member(jsii_name="consumePartiallyInitializedThis") - @abc.abstractmethod - def consume_partially_initialized_this(self, obj: "ConstructorPassesThisOut", dt: datetime.datetime, ev: "AllTypesEnum") -> str: - """ - :param obj: - - :param dt: - - :param ev: - - - stability - :stability: experimental - """ - ... - - -class _PartiallyInitializedThisConsumerProxy(PartiallyInitializedThisConsumer): - @jsii.member(jsii_name="consumePartiallyInitializedThis") - def consume_partially_initialized_this(self, obj: "ConstructorPassesThisOut", dt: datetime.datetime, ev: "AllTypesEnum") -> str: - """ - :param obj: - - :param dt: - - :param ev: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "consumePartiallyInitializedThis", [obj, dt, ev]) - - -class Polymorphism(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.Polymorphism"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(Polymorphism, self, []) - - @jsii.member(jsii_name="sayHello") - def say_hello(self, friendly: scope.jsii_calc_lib.IFriendly) -> str: - """ - :param friendly: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "sayHello", [friendly]) - - -class PublicClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.PublicClass"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(PublicClass, self, []) - - @jsii.member(jsii_name="hello") - def hello(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "hello", []) - - -class PythonReservedWords(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.PythonReservedWords"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(PythonReservedWords, self, []) - - @jsii.member(jsii_name="and") - def and_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "and", []) - - @jsii.member(jsii_name="as") - def as_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "as", []) - - @jsii.member(jsii_name="assert") - def assert_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "assert", []) - - @jsii.member(jsii_name="async") - def async_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "async", []) - - @jsii.member(jsii_name="await") - def await_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "await", []) - - @jsii.member(jsii_name="break") - def break_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "break", []) - - @jsii.member(jsii_name="class") - def class_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "class", []) - - @jsii.member(jsii_name="continue") - def continue_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "continue", []) - - @jsii.member(jsii_name="def") - def def_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "def", []) - - @jsii.member(jsii_name="del") - def del_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "del", []) - - @jsii.member(jsii_name="elif") - def elif_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "elif", []) - - @jsii.member(jsii_name="else") - def else_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "else", []) - - @jsii.member(jsii_name="except") - def except_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "except", []) - - @jsii.member(jsii_name="finally") - def finally_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "finally", []) - - @jsii.member(jsii_name="for") - def for_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "for", []) - - @jsii.member(jsii_name="from") - def from_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "from", []) - - @jsii.member(jsii_name="global") - def global_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "global", []) - - @jsii.member(jsii_name="if") - def if_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "if", []) - - @jsii.member(jsii_name="import") - def import_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "import", []) - - @jsii.member(jsii_name="in") - def in_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "in", []) - - @jsii.member(jsii_name="is") - def is_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "is", []) - - @jsii.member(jsii_name="lambda") - def lambda_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "lambda", []) - - @jsii.member(jsii_name="nonlocal") - def nonlocal_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "nonlocal", []) - - @jsii.member(jsii_name="not") - def not_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "not", []) - - @jsii.member(jsii_name="or") - def or_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "or", []) - - @jsii.member(jsii_name="pass") - def pass_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "pass", []) - - @jsii.member(jsii_name="raise") - def raise_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "raise", []) - - @jsii.member(jsii_name="return") - def return_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "return", []) - - @jsii.member(jsii_name="try") - def try_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "try", []) - - @jsii.member(jsii_name="while") - def while_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "while", []) - - @jsii.member(jsii_name="with") - def with_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "with", []) - - @jsii.member(jsii_name="yield") - def yield_(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "yield", []) - - -class ReferenceEnumFromScopedPackage(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ReferenceEnumFromScopedPackage"): - """See awslabs/jsii#138. - - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(ReferenceEnumFromScopedPackage, self, []) - - @jsii.member(jsii_name="loadFoo") - def load_foo(self) -> typing.Optional[scope.jsii_calc_lib.EnumFromScopedModule]: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "loadFoo", []) - - @jsii.member(jsii_name="saveFoo") - def save_foo(self, value: scope.jsii_calc_lib.EnumFromScopedModule) -> None: - """ - :param value: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "saveFoo", [value]) - - @builtins.property - @jsii.member(jsii_name="foo") - def foo(self) -> typing.Optional[scope.jsii_calc_lib.EnumFromScopedModule]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "foo") - - @foo.setter - def foo(self, value: typing.Optional[scope.jsii_calc_lib.EnumFromScopedModule]): - jsii.set(self, "foo", value) - - -class ReturnsPrivateImplementationOfInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ReturnsPrivateImplementationOfInterface"): - """Helps ensure the JSII kernel & runtime cooperate correctly when an un-exported instance of a class is returned with a declared type that is an exported interface, and the instance inherits from an exported class. - - return - :return: an instance of an un-exported class that extends ``ExportedBaseClass``, declared as ``IPrivatelyImplemented``. - - see - :see: https://github.com/aws/jsii/issues/320 - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(ReturnsPrivateImplementationOfInterface, self, []) - - @builtins.property - @jsii.member(jsii_name="privateImplementation") - def private_implementation(self) -> "IPrivatelyImplemented": - """ - stability - :stability: experimental - """ - return jsii.get(self, "privateImplementation") - - -@jsii.data_type(jsii_type="jsii-calc.compliance.RootStruct", jsii_struct_bases=[], name_mapping={'string_prop': 'stringProp', 'nested_struct': 'nestedStruct'}) -class RootStruct(): - def __init__(self, *, string_prop: str, nested_struct: typing.Optional["NestedStruct"]=None): - """This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary. - - This is cheating with the (current) declared types, but this is the "more - idiomatic" way for Pythonists. - - :param string_prop: May not be empty. - :param nested_struct: - - stability - :stability: experimental - """ - if isinstance(nested_struct, dict): nested_struct = NestedStruct(**nested_struct) - self._values = { - 'string_prop': string_prop, - } - if nested_struct is not None: self._values["nested_struct"] = nested_struct - - @builtins.property - def string_prop(self) -> str: - """May not be empty. - - stability - :stability: experimental - """ - return self._values.get('string_prop') - - @builtins.property - def nested_struct(self) -> typing.Optional["NestedStruct"]: - """ - stability - :stability: experimental - """ - return self._values.get('nested_struct') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'RootStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - -class RootStructValidator(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.RootStructValidator"): - """ - stability - :stability: experimental - """ - @jsii.member(jsii_name="validate") - @builtins.classmethod - def validate(cls, *, string_prop: str, nested_struct: typing.Optional["NestedStruct"]=None) -> None: - """ - :param string_prop: May not be empty. - :param nested_struct: - - stability - :stability: experimental - """ - struct = RootStruct(string_prop=string_prop, nested_struct=nested_struct) - - return jsii.sinvoke(cls, "validate", [struct]) - - -class RuntimeTypeChecking(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.RuntimeTypeChecking"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(RuntimeTypeChecking, self, []) - - @jsii.member(jsii_name="methodWithDefaultedArguments") - def method_with_defaulted_arguments(self, arg1: typing.Optional[jsii.Number]=None, arg2: typing.Optional[str]=None, arg3: typing.Optional[datetime.datetime]=None) -> None: - """ - :param arg1: - - :param arg2: - - :param arg3: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "methodWithDefaultedArguments", [arg1, arg2, arg3]) - - @jsii.member(jsii_name="methodWithOptionalAnyArgument") - def method_with_optional_any_argument(self, arg: typing.Any=None) -> None: - """ - :param arg: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "methodWithOptionalAnyArgument", [arg]) - - @jsii.member(jsii_name="methodWithOptionalArguments") - def method_with_optional_arguments(self, arg1: jsii.Number, arg2: str, arg3: typing.Optional[datetime.datetime]=None) -> None: - """Used to verify verification of number of method arguments. - - :param arg1: - - :param arg2: - - :param arg3: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "methodWithOptionalArguments", [arg1, arg2, arg3]) - - -@jsii.data_type(jsii_type="jsii-calc.compliance.SecondLevelStruct", jsii_struct_bases=[], name_mapping={'deeper_required_prop': 'deeperRequiredProp', 'deeper_optional_prop': 'deeperOptionalProp'}) -class SecondLevelStruct(): - def __init__(self, *, deeper_required_prop: str, deeper_optional_prop: typing.Optional[str]=None): - """ - :param deeper_required_prop: It's long and required. - :param deeper_optional_prop: It's long, but you'll almost never pass it. - - stability - :stability: experimental - """ - self._values = { - 'deeper_required_prop': deeper_required_prop, - } - if deeper_optional_prop is not None: self._values["deeper_optional_prop"] = deeper_optional_prop - - @builtins.property - def deeper_required_prop(self) -> str: - """It's long and required. - - stability - :stability: experimental - """ - return self._values.get('deeper_required_prop') - - @builtins.property - def deeper_optional_prop(self) -> typing.Optional[str]: - """It's long, but you'll almost never pass it. - - stability - :stability: experimental - """ - return self._values.get('deeper_optional_prop') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'SecondLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - -class SingleInstanceTwoTypes(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.SingleInstanceTwoTypes"): - """Test that a single instance can be returned under two different FQNs. - - JSII clients can instantiate 2 different strongly-typed wrappers for the same - object. Unfortunately, this will break object equality, but if we didn't do - this it would break runtime type checks in the JVM or CLR. - - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(SingleInstanceTwoTypes, self, []) - - @jsii.member(jsii_name="interface1") - def interface1(self) -> "InbetweenClass": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "interface1", []) - - @jsii.member(jsii_name="interface2") - def interface2(self) -> "IPublicInterface": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "interface2", []) - - -class SingletonInt(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.SingletonInt"): - """Verifies that singleton enums are handled correctly. - - https://github.com/aws/jsii/issues/231 - - stability - :stability: experimental - """ - @jsii.member(jsii_name="isSingletonInt") - def is_singleton_int(self, value: jsii.Number) -> bool: - """ - :param value: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "isSingletonInt", [value]) - - -@jsii.enum(jsii_type="jsii-calc.compliance.SingletonIntEnum") -class SingletonIntEnum(enum.Enum): - """A singleton integer. - - stability - :stability: experimental - """ - SINGLETON_INT = "SINGLETON_INT" - """Elite! - - stability - :stability: experimental - """ - -class SingletonString(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.SingletonString"): - """Verifies that singleton enums are handled correctly. - - https://github.com/aws/jsii/issues/231 - - stability - :stability: experimental - """ - @jsii.member(jsii_name="isSingletonString") - def is_singleton_string(self, value: str) -> bool: - """ - :param value: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "isSingletonString", [value]) - - -@jsii.enum(jsii_type="jsii-calc.compliance.SingletonStringEnum") -class SingletonStringEnum(enum.Enum): - """A singleton string. - - stability - :stability: experimental - """ - SINGLETON_STRING = "SINGLETON_STRING" - """1337. - - stability - :stability: experimental - """ - -class SomeTypeJsii976(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.SomeTypeJsii976"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(SomeTypeJsii976, self, []) - - @jsii.member(jsii_name="returnAnonymous") - @builtins.classmethod - def return_anonymous(cls) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "returnAnonymous", []) - - @jsii.member(jsii_name="returnReturn") - @builtins.classmethod - def return_return(cls) -> "IReturnJsii976": - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "returnReturn", []) - - -class StaticContext(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.StaticContext"): - """This is used to validate the ability to use ``this`` from within a static context. - - https://github.com/awslabs/aws-cdk/issues/2304 - - stability - :stability: experimental - """ - @jsii.member(jsii_name="canAccessStaticContext") - @builtins.classmethod - def can_access_static_context(cls) -> bool: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "canAccessStaticContext", []) - - @jsii.python.classproperty - @jsii.member(jsii_name="staticVariable") - def static_variable(cls) -> bool: - """ - stability - :stability: experimental - """ - return jsii.sget(cls, "staticVariable") - - @static_variable.setter - def static_variable(cls, value: bool): - jsii.sset(cls, "staticVariable", value) - - -class Statics(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.Statics"): - """ - stability - :stability: experimental - """ - def __init__(self, value: str) -> None: - """ - :param value: - - - stability - :stability: experimental - """ - jsii.create(Statics, self, [value]) - - @jsii.member(jsii_name="staticMethod") - @builtins.classmethod - def static_method(cls, name: str) -> str: - """Jsdocs for static method. - - :param name: The name of the person to say hello to. - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "staticMethod", [name]) - - @jsii.member(jsii_name="justMethod") - def just_method(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "justMethod", []) - - @jsii.python.classproperty - @jsii.member(jsii_name="BAR") - def BAR(cls) -> jsii.Number: - """Constants may also use all-caps. - - stability - :stability: experimental - """ - return jsii.sget(cls, "BAR") - - @jsii.python.classproperty - @jsii.member(jsii_name="ConstObj") - def CONST_OBJ(cls) -> "DoubleTrouble": - """ - stability - :stability: experimental - """ - return jsii.sget(cls, "ConstObj") - - @jsii.python.classproperty - @jsii.member(jsii_name="Foo") - def FOO(cls) -> str: - """Jsdocs for static property. - - stability - :stability: experimental - """ - return jsii.sget(cls, "Foo") - - @jsii.python.classproperty - @jsii.member(jsii_name="zooBar") - def ZOO_BAR(cls) -> typing.Mapping[str,str]: - """Constants can also use camelCase. - - stability - :stability: experimental - """ - return jsii.sget(cls, "zooBar") - - @jsii.python.classproperty - @jsii.member(jsii_name="instance") - def instance(cls) -> "Statics": - """Jsdocs for static getter. - - Jsdocs for static setter. - - stability - :stability: experimental - """ - return jsii.sget(cls, "instance") - - @instance.setter - def instance(cls, value: "Statics"): - jsii.sset(cls, "instance", value) - - @jsii.python.classproperty - @jsii.member(jsii_name="nonConstStatic") - def non_const_static(cls) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.sget(cls, "nonConstStatic") - - @non_const_static.setter - def non_const_static(cls, value: jsii.Number): - jsii.sset(cls, "nonConstStatic", value) - - @builtins.property - @jsii.member(jsii_name="value") - def value(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "value") - - -@jsii.enum(jsii_type="jsii-calc.compliance.StringEnum") -class StringEnum(enum.Enum): - """ - stability - :stability: experimental - """ - A = "A" - """ - stability - :stability: experimental - """ - B = "B" - """ - stability - :stability: experimental - """ - C = "C" - """ - stability - :stability: experimental - """ - -class StripInternal(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.StripInternal"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(StripInternal, self, []) - - @builtins.property - @jsii.member(jsii_name="youSeeMe") - def you_see_me(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "youSeeMe") - - @you_see_me.setter - def you_see_me(self, value: str): - jsii.set(self, "youSeeMe", value) - - -@jsii.data_type(jsii_type="jsii-calc.compliance.StructA", jsii_struct_bases=[], name_mapping={'required_string': 'requiredString', 'optional_number': 'optionalNumber', 'optional_string': 'optionalString'}) -class StructA(): - def __init__(self, *, required_string: str, optional_number: typing.Optional[jsii.Number]=None, optional_string: typing.Optional[str]=None): - """We can serialize and deserialize structs without silently ignoring optional fields. - - :param required_string: - :param optional_number: - :param optional_string: - - stability - :stability: experimental - """ - self._values = { - 'required_string': required_string, - } - if optional_number is not None: self._values["optional_number"] = optional_number - if optional_string is not None: self._values["optional_string"] = optional_string - - @builtins.property - def required_string(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('required_string') - - @builtins.property - def optional_number(self) -> typing.Optional[jsii.Number]: - """ - stability - :stability: experimental - """ - return self._values.get('optional_number') - - @builtins.property - def optional_string(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return self._values.get('optional_string') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'StructA(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - -@jsii.data_type(jsii_type="jsii-calc.compliance.StructB", jsii_struct_bases=[], name_mapping={'required_string': 'requiredString', 'optional_boolean': 'optionalBoolean', 'optional_struct_a': 'optionalStructA'}) -class StructB(): - def __init__(self, *, required_string: str, optional_boolean: typing.Optional[bool]=None, optional_struct_a: typing.Optional["StructA"]=None): - """This intentionally overlaps with StructA (where only requiredString is provided) to test htat the kernel properly disambiguates those. - - :param required_string: - :param optional_boolean: - :param optional_struct_a: - - stability - :stability: experimental - """ - if isinstance(optional_struct_a, dict): optional_struct_a = StructA(**optional_struct_a) - self._values = { - 'required_string': required_string, - } - if optional_boolean is not None: self._values["optional_boolean"] = optional_boolean - if optional_struct_a is not None: self._values["optional_struct_a"] = optional_struct_a - - @builtins.property - def required_string(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('required_string') - - @builtins.property - def optional_boolean(self) -> typing.Optional[bool]: - """ - stability - :stability: experimental - """ - return self._values.get('optional_boolean') - - @builtins.property - def optional_struct_a(self) -> typing.Optional["StructA"]: - """ - stability - :stability: experimental - """ - return self._values.get('optional_struct_a') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'StructB(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - -@jsii.data_type(jsii_type="jsii-calc.compliance.StructParameterType", jsii_struct_bases=[], name_mapping={'scope': 'scope', 'props': 'props'}) -class StructParameterType(): - def __init__(self, *, scope: str, props: typing.Optional[bool]=None): - """Verifies that, in languages that do keyword lifting (e.g: Python), having a struct member with the same name as a positional parameter results in the correct code being emitted. - - See: https://github.com/aws/aws-cdk/issues/4302 - - :param scope: - :param props: - - stability - :stability: experimental - """ - self._values = { - 'scope': scope, - } - if props is not None: self._values["props"] = props - - @builtins.property - def scope(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('scope') - - @builtins.property - def props(self) -> typing.Optional[bool]: - """ - stability - :stability: experimental - """ - return self._values.get('props') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'StructParameterType(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - -class StructPassing(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.StructPassing"): - """Just because we can.""" - def __init__(self) -> None: - jsii.create(StructPassing, self, []) - - @jsii.member(jsii_name="howManyVarArgsDidIPass") - @builtins.classmethod - def how_many_var_args_did_i_pass(cls, _positional: jsii.Number, *inputs: "TopLevelStruct") -> jsii.Number: - """ - :param _positional: - - :param inputs: - - """ - return jsii.sinvoke(cls, "howManyVarArgsDidIPass", [_positional, *inputs]) - - @jsii.member(jsii_name="roundTrip") - @builtins.classmethod - def round_trip(cls, _positional: jsii.Number, *, required: str, second_level: typing.Union[jsii.Number, "SecondLevelStruct"], optional: typing.Optional[str]=None) -> "TopLevelStruct": - """ - :param _positional: - - :param required: This is a required field. - :param second_level: A union to really stress test our serialization. - :param optional: You don't have to pass this. - """ - input = TopLevelStruct(required=required, second_level=second_level, optional=optional) - - return jsii.sinvoke(cls, "roundTrip", [_positional, input]) - - -class StructUnionConsumer(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.StructUnionConsumer"): - """ - stability - :stability: experimental - """ - @jsii.member(jsii_name="isStructA") - @builtins.classmethod - def is_struct_a(cls, struct: typing.Union["StructA", "StructB"]) -> bool: - """ - :param struct: - - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "isStructA", [struct]) - - @jsii.member(jsii_name="isStructB") - @builtins.classmethod - def is_struct_b(cls, struct: typing.Union["StructA", "StructB"]) -> bool: - """ - :param struct: - - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "isStructB", [struct]) - - -@jsii.data_type(jsii_type="jsii-calc.compliance.StructWithJavaReservedWords", jsii_struct_bases=[], name_mapping={'default': 'default', 'assert_': 'assert', 'result': 'result', 'that': 'that'}) -class StructWithJavaReservedWords(): - def __init__(self, *, default: str, assert_: typing.Optional[str]=None, result: typing.Optional[str]=None, that: typing.Optional[str]=None): - """ - :param default: - :param assert_: - :param result: - :param that: - - stability - :stability: experimental - """ - self._values = { - 'default': default, - } - if assert_ is not None: self._values["assert_"] = assert_ - if result is not None: self._values["result"] = result - if that is not None: self._values["that"] = that - - @builtins.property - def default(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('default') - - @builtins.property - def assert_(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return self._values.get('assert_') - - @builtins.property - def result(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return self._values.get('result') - - @builtins.property - def that(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return self._values.get('that') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'StructWithJavaReservedWords(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - -@jsii.data_type(jsii_type="jsii-calc.compliance.SupportsNiceJavaBuilderProps", jsii_struct_bases=[], name_mapping={'bar': 'bar', 'id': 'id'}) -class SupportsNiceJavaBuilderProps(): - def __init__(self, *, bar: jsii.Number, id: typing.Optional[str]=None): - """ - :param bar: Some number, like 42. - :param id: An ``id`` field here is terrible API design, because the constructor of ``SupportsNiceJavaBuilder`` already has a parameter named ``id``. But here we are, doing it like we didn't care. - - stability - :stability: experimental - """ - self._values = { - 'bar': bar, - } - if id is not None: self._values["id"] = id - - @builtins.property - def bar(self) -> jsii.Number: - """Some number, like 42. - - stability - :stability: experimental - """ - return self._values.get('bar') - - @builtins.property - def id(self) -> typing.Optional[str]: - """An ``id`` field here is terrible API design, because the constructor of ``SupportsNiceJavaBuilder`` already has a parameter named ``id``. - - But here we are, doing it like we didn't care. - - stability - :stability: experimental - """ - return self._values.get('id') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'SupportsNiceJavaBuilderProps(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - -class SupportsNiceJavaBuilderWithRequiredProps(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.SupportsNiceJavaBuilderWithRequiredProps"): - """We can generate fancy builders in Java for classes which take a mix of positional & struct parameters. - - stability - :stability: experimental - """ - def __init__(self, id_: jsii.Number, *, bar: jsii.Number, id: typing.Optional[str]=None) -> None: - """ - :param id_: some identifier of your choice. - :param bar: Some number, like 42. - :param id: An ``id`` field here is terrible API design, because the constructor of ``SupportsNiceJavaBuilder`` already has a parameter named ``id``. But here we are, doing it like we didn't care. - - stability - :stability: experimental - """ - props = SupportsNiceJavaBuilderProps(bar=bar, id=id) - - jsii.create(SupportsNiceJavaBuilderWithRequiredProps, self, [id_, props]) - - @builtins.property - @jsii.member(jsii_name="bar") - def bar(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "bar") - - @builtins.property - @jsii.member(jsii_name="id") - def id(self) -> jsii.Number: - """some identifier of your choice. - - stability - :stability: experimental - """ - return jsii.get(self, "id") - - @builtins.property - @jsii.member(jsii_name="propId") - def prop_id(self) -> typing.Optional[str]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "propId") - - -class SyncVirtualMethods(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.SyncVirtualMethods"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(SyncVirtualMethods, self, []) - - @jsii.member(jsii_name="callerIsAsync") - def caller_is_async(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.ainvoke(self, "callerIsAsync", []) - - @jsii.member(jsii_name="callerIsMethod") - def caller_is_method(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "callerIsMethod", []) - - @jsii.member(jsii_name="modifyOtherProperty") - def modify_other_property(self, value: str) -> None: - """ - :param value: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "modifyOtherProperty", [value]) - - @jsii.member(jsii_name="modifyValueOfTheProperty") - def modify_value_of_the_property(self, value: str) -> None: - """ - :param value: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "modifyValueOfTheProperty", [value]) - - @jsii.member(jsii_name="readA") - def read_a(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "readA", []) - - @jsii.member(jsii_name="retrieveOtherProperty") - def retrieve_other_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "retrieveOtherProperty", []) - - @jsii.member(jsii_name="retrieveReadOnlyProperty") - def retrieve_read_only_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "retrieveReadOnlyProperty", []) - - @jsii.member(jsii_name="retrieveValueOfTheProperty") - def retrieve_value_of_the_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "retrieveValueOfTheProperty", []) - - @jsii.member(jsii_name="virtualMethod") - def virtual_method(self, n: jsii.Number) -> jsii.Number: - """ - :param n: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "virtualMethod", [n]) - - @jsii.member(jsii_name="writeA") - def write_a(self, value: jsii.Number) -> None: - """ - :param value: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "writeA", [value]) - - @builtins.property - @jsii.member(jsii_name="readonlyProperty") - def readonly_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "readonlyProperty") - - @builtins.property - @jsii.member(jsii_name="a") - def a(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "a") - - @a.setter - def a(self, value: jsii.Number): - jsii.set(self, "a", value) - - @builtins.property - @jsii.member(jsii_name="callerIsProperty") - def caller_is_property(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.get(self, "callerIsProperty") - - @caller_is_property.setter - def caller_is_property(self, value: jsii.Number): - jsii.set(self, "callerIsProperty", value) - - @builtins.property - @jsii.member(jsii_name="otherProperty") - def other_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "otherProperty") - - @other_property.setter - def other_property(self, value: str): - jsii.set(self, "otherProperty", value) - - @builtins.property - @jsii.member(jsii_name="theProperty") - def the_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "theProperty") - - @the_property.setter - def the_property(self, value: str): - jsii.set(self, "theProperty", value) - - @builtins.property - @jsii.member(jsii_name="valueOfOtherProperty") - def value_of_other_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "valueOfOtherProperty") - - @value_of_other_property.setter - def value_of_other_property(self, value: str): - jsii.set(self, "valueOfOtherProperty", value) - - -class Thrower(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.Thrower"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(Thrower, self, []) - - @jsii.member(jsii_name="throwError") - def throw_error(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "throwError", []) - - -@jsii.data_type(jsii_type="jsii-calc.compliance.TopLevelStruct", jsii_struct_bases=[], name_mapping={'required': 'required', 'second_level': 'secondLevel', 'optional': 'optional'}) -class TopLevelStruct(): - def __init__(self, *, required: str, second_level: typing.Union[jsii.Number, "SecondLevelStruct"], optional: typing.Optional[str]=None): - """ - :param required: This is a required field. - :param second_level: A union to really stress test our serialization. - :param optional: You don't have to pass this. - - stability - :stability: experimental - """ - self._values = { - 'required': required, - 'second_level': second_level, - } - if optional is not None: self._values["optional"] = optional - - @builtins.property - def required(self) -> str: - """This is a required field. - - stability - :stability: experimental - """ - return self._values.get('required') - - @builtins.property - def second_level(self) -> typing.Union[jsii.Number, "SecondLevelStruct"]: - """A union to really stress test our serialization. - - stability - :stability: experimental - """ - return self._values.get('second_level') - - @builtins.property - def optional(self) -> typing.Optional[str]: - """You don't have to pass this. - - stability - :stability: experimental - """ - return self._values.get('optional') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'TopLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - -@jsii.data_type(jsii_type="jsii-calc.compliance.UnionProperties", jsii_struct_bases=[], name_mapping={'bar': 'bar', 'foo': 'foo'}) -class UnionProperties(): - def __init__(self, *, bar: typing.Union[str, jsii.Number, "AllTypes"], foo: typing.Optional[typing.Union[typing.Optional[str], typing.Optional[jsii.Number]]]=None): - """ - :param bar: - :param foo: - - stability - :stability: experimental - """ - self._values = { - 'bar': bar, - } - if foo is not None: self._values["foo"] = foo - - @builtins.property - def bar(self) -> typing.Union[str, jsii.Number, "AllTypes"]: - """ - stability - :stability: experimental - """ - return self._values.get('bar') - - @builtins.property - def foo(self) -> typing.Optional[typing.Union[typing.Optional[str], typing.Optional[jsii.Number]]]: - """ - stability - :stability: experimental - """ - return self._values.get('foo') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'UnionProperties(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - -class UseBundledDependency(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.UseBundledDependency"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(UseBundledDependency, self, []) - - @jsii.member(jsii_name="value") - def value(self) -> typing.Any: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "value", []) - - -class UseCalcBase(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.UseCalcBase"): - """Depend on a type from jsii-calc-base as a test for awslabs/jsii#128. - - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(UseCalcBase, self, []) - - @jsii.member(jsii_name="hello") - def hello(self) -> scope.jsii_calc_base.Base: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "hello", []) - - -class UsesInterfaceWithProperties(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.UsesInterfaceWithProperties"): - """ - stability - :stability: experimental - """ - def __init__(self, obj: "IInterfaceWithProperties") -> None: - """ - :param obj: - - - stability - :stability: experimental - """ - jsii.create(UsesInterfaceWithProperties, self, [obj]) - - @jsii.member(jsii_name="justRead") - def just_read(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "justRead", []) - - @jsii.member(jsii_name="readStringAndNumber") - def read_string_and_number(self, ext: "IInterfaceWithPropertiesExtension") -> str: - """ - :param ext: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "readStringAndNumber", [ext]) - - @jsii.member(jsii_name="writeAndRead") - def write_and_read(self, value: str) -> str: - """ - :param value: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "writeAndRead", [value]) - - @builtins.property - @jsii.member(jsii_name="obj") - def obj(self) -> "IInterfaceWithProperties": - """ - stability - :stability: experimental - """ - return jsii.get(self, "obj") - - -class VariadicInvoker(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.VariadicInvoker"): - """ - stability - :stability: experimental - """ - def __init__(self, method: "VariadicMethod") -> None: - """ - :param method: - - - stability - :stability: experimental - """ - jsii.create(VariadicInvoker, self, [method]) - - @jsii.member(jsii_name="asArray") - def as_array(self, *values: jsii.Number) -> typing.List[jsii.Number]: - """ - :param values: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "asArray", [*values]) - - -class VariadicMethod(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.VariadicMethod"): - """ - stability - :stability: experimental - """ - def __init__(self, *prefix: jsii.Number) -> None: - """ - :param prefix: a prefix that will be use for all values returned by ``#asArray``. - - stability - :stability: experimental - """ - jsii.create(VariadicMethod, self, [*prefix]) - - @jsii.member(jsii_name="asArray") - def as_array(self, first: jsii.Number, *others: jsii.Number) -> typing.List[jsii.Number]: - """ - :param first: the first element of the array to be returned (after the ``prefix`` provided at construction time). - :param others: other elements to be included in the array. - - stability - :stability: experimental - """ - return jsii.invoke(self, "asArray", [first, *others]) - - -class VirtualMethodPlayground(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.VirtualMethodPlayground"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(VirtualMethodPlayground, self, []) - - @jsii.member(jsii_name="overrideMeAsync") - def override_me_async(self, index: jsii.Number) -> jsii.Number: - """ - :param index: - - - stability - :stability: experimental - """ - return jsii.ainvoke(self, "overrideMeAsync", [index]) - - @jsii.member(jsii_name="overrideMeSync") - def override_me_sync(self, index: jsii.Number) -> jsii.Number: - """ - :param index: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "overrideMeSync", [index]) - - @jsii.member(jsii_name="parallelSumAsync") - def parallel_sum_async(self, count: jsii.Number) -> jsii.Number: - """ - :param count: - - - stability - :stability: experimental - """ - return jsii.ainvoke(self, "parallelSumAsync", [count]) - - @jsii.member(jsii_name="serialSumAsync") - def serial_sum_async(self, count: jsii.Number) -> jsii.Number: - """ - :param count: - - - stability - :stability: experimental - """ - return jsii.ainvoke(self, "serialSumAsync", [count]) - - @jsii.member(jsii_name="sumSync") - def sum_sync(self, count: jsii.Number) -> jsii.Number: - """ - :param count: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "sumSync", [count]) - - -class VoidCallback(metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.compliance.VoidCallback"): - """This test is used to validate the runtimes can return correctly from a void callback. - - - Implement ``overrideMe`` (method does not have to do anything). - - Invoke ``callMe`` - - Verify that ``methodWasCalled`` is ``true``. - - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _VoidCallbackProxy - - def __init__(self) -> None: - jsii.create(VoidCallback, self, []) - - @jsii.member(jsii_name="callMe") - def call_me(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "callMe", []) - - @jsii.member(jsii_name="overrideMe") - @abc.abstractmethod - def _override_me(self) -> None: - """ - stability - :stability: experimental - """ - ... - - @builtins.property - @jsii.member(jsii_name="methodWasCalled") - def method_was_called(self) -> bool: - """ - stability - :stability: experimental - """ - return jsii.get(self, "methodWasCalled") - - -class _VoidCallbackProxy(VoidCallback): - @jsii.member(jsii_name="overrideMe") - def _override_me(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "overrideMe", []) - - -class WithPrivatePropertyInConstructor(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.WithPrivatePropertyInConstructor"): - """Verifies that private property declarations in constructor arguments are hidden. - - stability - :stability: experimental - """ - def __init__(self, private_field: typing.Optional[str]=None) -> None: - """ - :param private_field: - - - stability - :stability: experimental - """ - jsii.create(WithPrivatePropertyInConstructor, self, [private_field]) - - @builtins.property - @jsii.member(jsii_name="success") - def success(self) -> bool: - """ - stability - :stability: experimental - """ - return jsii.get(self, "success") - - -@jsii.implements(IInterfaceImplementedByAbstractClass) -class AbstractClass(AbstractClassBase, metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.compliance.AbstractClass"): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _AbstractClassProxy - - def __init__(self) -> None: - jsii.create(AbstractClass, self, []) - - @jsii.member(jsii_name="abstractMethod") - @abc.abstractmethod - def abstract_method(self, name: str) -> str: - """ - :param name: - - - stability - :stability: experimental - """ - ... - - @jsii.member(jsii_name="nonAbstractMethod") - def non_abstract_method(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "nonAbstractMethod", []) - - @builtins.property - @jsii.member(jsii_name="propFromInterface") - def prop_from_interface(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "propFromInterface") - - -class _AbstractClassProxy(AbstractClass, jsii.proxy_for(AbstractClassBase)): - @jsii.member(jsii_name="abstractMethod") - def abstract_method(self, name: str) -> str: - """ - :param name: - - - stability - :stability: experimental - """ - return jsii.invoke(self, "abstractMethod", [name]) - - -@jsii.implements(IAnonymousImplementationProvider) -class AnonymousImplementationProvider(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.AnonymousImplementationProvider"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(AnonymousImplementationProvider, self, []) - - @jsii.member(jsii_name="provideAsClass") - def provide_as_class(self) -> "Implementation": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "provideAsClass", []) - - @jsii.member(jsii_name="provideAsInterface") - def provide_as_interface(self) -> "IAnonymouslyImplementMe": - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "provideAsInterface", []) - - -@jsii.implements(IBell) -class Bell(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.Bell"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(Bell, self, []) - - @jsii.member(jsii_name="ring") - def ring(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "ring", []) - - @builtins.property - @jsii.member(jsii_name="rung") - def rung(self) -> bool: - """ - stability - :stability: experimental - """ - return jsii.get(self, "rung") - - @rung.setter - def rung(self, value: bool): - jsii.set(self, "rung", value) - - -@jsii.data_type(jsii_type="jsii-calc.compliance.ChildStruct982", jsii_struct_bases=[ParentStruct982], name_mapping={'foo': 'foo', 'bar': 'bar'}) -class ChildStruct982(ParentStruct982): - def __init__(self, *, foo: str, bar: jsii.Number): - """ - :param foo: - :param bar: - - stability - :stability: experimental - """ - self._values = { - 'foo': foo, - 'bar': bar, - } - - @builtins.property - def foo(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('foo') - - @builtins.property - def bar(self) -> jsii.Number: - """ - stability - :stability: experimental - """ - return self._values.get('bar') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'ChildStruct982(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - -@jsii.implements(INonInternalInterface) -class ClassThatImplementsTheInternalInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ClassThatImplementsTheInternalInterface"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(ClassThatImplementsTheInternalInterface, self, []) - - @builtins.property - @jsii.member(jsii_name="a") - def a(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "a") - - @a.setter - def a(self, value: str): - jsii.set(self, "a", value) - - @builtins.property - @jsii.member(jsii_name="b") - def b(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "b") - - @b.setter - def b(self, value: str): - jsii.set(self, "b", value) - - @builtins.property - @jsii.member(jsii_name="c") - def c(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "c") - - @c.setter - def c(self, value: str): - jsii.set(self, "c", value) - - @builtins.property - @jsii.member(jsii_name="d") - def d(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "d") - - @d.setter - def d(self, value: str): - jsii.set(self, "d", value) - - -@jsii.implements(INonInternalInterface) -class ClassThatImplementsThePrivateInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ClassThatImplementsThePrivateInterface"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(ClassThatImplementsThePrivateInterface, self, []) - - @builtins.property - @jsii.member(jsii_name="a") - def a(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "a") - - @a.setter - def a(self, value: str): - jsii.set(self, "a", value) - - @builtins.property - @jsii.member(jsii_name="b") - def b(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "b") - - @b.setter - def b(self, value: str): - jsii.set(self, "b", value) - - @builtins.property - @jsii.member(jsii_name="c") - def c(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "c") - - @c.setter - def c(self, value: str): - jsii.set(self, "c", value) - - @builtins.property - @jsii.member(jsii_name="e") - def e(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "e") - - @e.setter - def e(self, value: str): - jsii.set(self, "e", value) - - -@jsii.implements(IInterfaceWithProperties) -class ClassWithPrivateConstructorAndAutomaticProperties(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.ClassWithPrivateConstructorAndAutomaticProperties"): - """Class that implements interface properties automatically, but using a private constructor. - - stability - :stability: experimental - """ - @jsii.member(jsii_name="create") - @builtins.classmethod - def create(cls, read_only_string: str, read_write_string: str) -> "ClassWithPrivateConstructorAndAutomaticProperties": - """ - :param read_only_string: - - :param read_write_string: - - - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "create", [read_only_string, read_write_string]) - - @builtins.property - @jsii.member(jsii_name="readOnlyString") - def read_only_string(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "readOnlyString") - - @builtins.property - @jsii.member(jsii_name="readWriteString") - def read_write_string(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "readWriteString") - - @read_write_string.setter - def read_write_string(self, value: str): - jsii.set(self, "readWriteString", value) - - -@jsii.interface(jsii_type="jsii-calc.compliance.IInterfaceThatShouldNotBeADataType") -class IInterfaceThatShouldNotBeADataType(IInterfaceWithMethods, jsii.compat.Protocol): - """Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype. - - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IInterfaceThatShouldNotBeADataTypeProxy - - @builtins.property - @jsii.member(jsii_name="otherValue") - def other_value(self) -> str: - """ - stability - :stability: experimental - """ - ... - - -class _IInterfaceThatShouldNotBeADataTypeProxy(jsii.proxy_for(IInterfaceWithMethods)): - """Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype. - - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.compliance.IInterfaceThatShouldNotBeADataType" - @builtins.property - @jsii.member(jsii_name="otherValue") - def other_value(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "otherValue") - - -@jsii.implements(IPublicInterface2) -class InbetweenClass(PublicClass, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.InbetweenClass"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(InbetweenClass, self, []) - - @jsii.member(jsii_name="ciao") - def ciao(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "ciao", []) - - -class SupportsNiceJavaBuilder(SupportsNiceJavaBuilderWithRequiredProps, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.SupportsNiceJavaBuilder"): - """ - stability - :stability: experimental - """ - def __init__(self, id: jsii.Number, default_bar: typing.Optional[jsii.Number]=None, props: typing.Optional["SupportsNiceJavaBuilderProps"]=None, *rest: str) -> None: - """ - :param id: some identifier. - :param default_bar: the default value of ``bar``. - :param props: some props once can provide. - :param rest: a variadic continuation. - - stability - :stability: experimental - """ - jsii.create(SupportsNiceJavaBuilder, self, [id, default_bar, props, *rest]) - - @builtins.property - @jsii.member(jsii_name="id") - def id(self) -> jsii.Number: - """some identifier. - - stability - :stability: experimental - """ - return jsii.get(self, "id") - - @builtins.property - @jsii.member(jsii_name="rest") - def rest(self) -> typing.List[str]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "rest") - - -__all__ = ["AbstractClass", "AbstractClassBase", "AbstractClassReturner", "AllTypes", "AllTypesEnum", "AllowedMethodNames", "AmbiguousParameters", "AnonymousImplementationProvider", "AsyncVirtualMethods", "AugmentableClass", "BaseJsii976", "Bell", "ChildStruct982", "ClassThatImplementsTheInternalInterface", "ClassThatImplementsThePrivateInterface", "ClassWithCollections", "ClassWithDocs", "ClassWithJavaReservedWords", "ClassWithMutableObjectLiteralProperty", "ClassWithPrivateConstructorAndAutomaticProperties", "ConfusingToJackson", "ConfusingToJacksonStruct", "ConstructorPassesThisOut", "Constructors", "ConsumePureInterface", "ConsumerCanRingBell", "ConsumersOfThisCrazyTypeSystem", "DataRenderer", "DefaultedConstructorArgument", "Demonstrate982", "DerivedStruct", "DiamondInheritanceBaseLevelStruct", "DiamondInheritanceFirstMidLevelStruct", "DiamondInheritanceSecondMidLevelStruct", "DiamondInheritanceTopLevelStruct", "DisappointingCollectionSource", "DoNotOverridePrivates", "DoNotRecognizeAnyAsOptional", "DontComplainAboutVariadicAfterOptional", "DoubleTrouble", "EnumDispenser", "EraseUndefinedHashValues", "EraseUndefinedHashValuesOptions", "ExportedBaseClass", "ExtendsInternalInterface", "GiveMeStructs", "GreetingAugmenter", "IAnonymousImplementationProvider", "IAnonymouslyImplementMe", "IAnotherPublicInterface", "IBell", "IBellRinger", "IConcreteBellRinger", "IExtendsPrivateInterface", "IInterfaceImplementedByAbstractClass", "IInterfaceThatShouldNotBeADataType", "IInterfaceWithInternal", "IInterfaceWithMethods", "IInterfaceWithOptionalMethodArguments", "IInterfaceWithProperties", "IInterfaceWithPropertiesExtension", "IMutableObjectLiteral", "INonInternalInterface", "IObjectWithProperty", "IOptionalMethod", "IPrivatelyImplemented", "IPublicInterface", "IPublicInterface2", "IReturnJsii976", "IReturnsNumber", "IStructReturningDelegate", "ImplementInternalInterface", "Implementation", "ImplementsInterfaceWithInternal", "ImplementsInterfaceWithInternalSubclass", "ImplementsPrivateInterface", "ImplictBaseOfBase", "InbetweenClass", "InterfaceCollections", "InterfacesMaker", "JSObjectLiteralForInterface", "JSObjectLiteralToNative", "JSObjectLiteralToNativeClass", "JavaReservedWords", "JsiiAgent", "JsonFormatter", "LoadBalancedFargateServiceProps", "NestedStruct", "NodeStandardLibrary", "NullShouldBeTreatedAsUndefined", "NullShouldBeTreatedAsUndefinedData", "NumberGenerator", "ObjectRefsInCollections", "ObjectWithPropertyProvider", "OptionalArgumentInvoker", "OptionalConstructorArgument", "OptionalStruct", "OptionalStructConsumer", "OverridableProtectedMember", "OverrideReturnsObject", "ParentStruct982", "PartiallyInitializedThisConsumer", "Polymorphism", "PublicClass", "PythonReservedWords", "ReferenceEnumFromScopedPackage", "ReturnsPrivateImplementationOfInterface", "RootStruct", "RootStructValidator", "RuntimeTypeChecking", "SecondLevelStruct", "SingleInstanceTwoTypes", "SingletonInt", "SingletonIntEnum", "SingletonString", "SingletonStringEnum", "SomeTypeJsii976", "StaticContext", "Statics", "StringEnum", "StripInternal", "StructA", "StructB", "StructParameterType", "StructPassing", "StructUnionConsumer", "StructWithJavaReservedWords", "SupportsNiceJavaBuilder", "SupportsNiceJavaBuilderProps", "SupportsNiceJavaBuilderWithRequiredProps", "SyncVirtualMethods", "Thrower", "TopLevelStruct", "UnionProperties", "UseBundledDependency", "UseCalcBase", "UsesInterfaceWithProperties", "VariadicInvoker", "VariadicMethod", "VirtualMethodPlayground", "VoidCallback", "WithPrivatePropertyInConstructor", "__jsii_assembly__"] - -publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/compliance/derived_class_has_no_properties/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/derived_class_has_no_properties/__init__.py similarity index 66% rename from packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/compliance/derived_class_has_no_properties/__init__.py rename to packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/derived_class_has_no_properties/__init__.py index dbc561b9c0..77f962b8d8 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/compliance/derived_class_has_no_properties/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/derived_class_has_no_properties/__init__.py @@ -15,13 +15,13 @@ __jsii_assembly__ = jsii.JSIIAssembly.load("jsii-calc", "1.1.0", "jsii_calc", "jsii-calc@1.1.0.jsii.tgz") -class Base(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.DerivedClassHasNoProperties.Base"): +class Base(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DerivedClassHasNoProperties.Base"): """ stability :stability: experimental """ def __init__(self) -> None: - jsii.create(jsii_calc.compliance.DerivedClassHasNoProperties.Base, self, []) + jsii.create(jsii_calc.DerivedClassHasNoProperties.Base, self, []) @builtins.property @jsii.member(jsii_name="prop") @@ -37,13 +37,13 @@ def prop(self, value: str): jsii.set(self, "prop", value) -class Derived(jsii_calc.compliance.DerivedClassHasNoProperties.Base, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.DerivedClassHasNoProperties.Derived"): +class Derived(jsii_calc.DerivedClassHasNoProperties.Base, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DerivedClassHasNoProperties.Derived"): """ stability :stability: experimental """ def __init__(self) -> None: - jsii.create(jsii_calc.compliance.DerivedClassHasNoProperties.Derived, self, []) + jsii.create(jsii_calc.DerivedClassHasNoProperties.Derived, self, []) __all__ = ["Base", "Derived", "__jsii_assembly__"] diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/documented/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/documented/__init__.py deleted file mode 100644 index 0766213daa..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/documented/__init__.py +++ /dev/null @@ -1,115 +0,0 @@ -import abc -import builtins -import datetime -import enum -import publication -import typing - -import jsii -import jsii.compat - -import scope.jsii_calc_base -import scope.jsii_calc_base_of_base -import scope.jsii_calc_lib - -__jsii_assembly__ = jsii.JSIIAssembly.load("jsii-calc", "1.1.0", "jsii_calc", "jsii-calc@1.1.0.jsii.tgz") - - -class DocumentedClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.documented.DocumentedClass"): - """Here's the first line of the TSDoc comment. - - This is the meat of the TSDoc comment. It may contain - multiple lines and multiple paragraphs. - - Multiple paragraphs are separated by an empty line. - """ - def __init__(self) -> None: - jsii.create(DocumentedClass, self, []) - - @jsii.member(jsii_name="greet") - def greet(self, *, name: typing.Optional[str]=None) -> jsii.Number: - """Greet the indicated person. - - This will print out a friendly greeting intended for - the indicated person. - - :param name: The name of the greetee. Default: world - - return - :return: A number that everyone knows very well - """ - greetee = Greetee(name=name) - - return jsii.invoke(self, "greet", [greetee]) - - @jsii.member(jsii_name="hola") - def hola(self) -> None: - """Say ¡Hola! - - stability - :stability: experimental - """ - return jsii.invoke(self, "hola", []) - - -@jsii.data_type(jsii_type="jsii-calc.documented.Greetee", jsii_struct_bases=[], name_mapping={'name': 'name'}) -class Greetee(): - def __init__(self, *, name: typing.Optional[str]=None): - """These are some arguments you can pass to a method. - - :param name: The name of the greetee. Default: world - - stability - :stability: experimental - """ - self._values = { - } - if name is not None: self._values["name"] = name - - @builtins.property - def name(self) -> typing.Optional[str]: - """The name of the greetee. - - default - :default: world - - stability - :stability: experimental - """ - return self._values.get('name') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'Greetee(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - -class Old(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.documented.Old"): - """Old class. - - deprecated - :deprecated: Use the new class - - stability - :stability: deprecated - """ - def __init__(self) -> None: - jsii.create(Old, self, []) - - @jsii.member(jsii_name="doAThing") - def do_a_thing(self) -> None: - """Doo wop that thing. - - stability - :stability: deprecated - """ - return jsii.invoke(self, "doAThing", []) - - -__all__ = ["DocumentedClass", "Greetee", "Old", "__jsii_assembly__"] - -publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/erasure_tests/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/erasure_tests/__init__.py deleted file mode 100644 index eac998e190..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/erasure_tests/__init__.py +++ /dev/null @@ -1,295 +0,0 @@ -import abc -import builtins -import datetime -import enum -import publication -import typing - -import jsii -import jsii.compat - -import scope.jsii_calc_base -import scope.jsii_calc_base_of_base -import scope.jsii_calc_lib - -__jsii_assembly__ = jsii.JSIIAssembly.load("jsii-calc", "1.1.0", "jsii_calc", "jsii-calc@1.1.0.jsii.tgz") - - -@jsii.interface(jsii_type="jsii-calc.erasureTests.IJSII417Derived") -class IJSII417Derived(jsii_calc.erasureTests.IJSII417PublicBaseOfBase, jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IJSII417DerivedProxy - - @builtins.property - @jsii.member(jsii_name="property") - def property(self) -> str: - """ - stability - :stability: experimental - """ - ... - - @jsii.member(jsii_name="bar") - def bar(self) -> None: - """ - stability - :stability: experimental - """ - ... - - @jsii.member(jsii_name="baz") - def baz(self) -> None: - """ - stability - :stability: experimental - """ - ... - - -class _IJSII417DerivedProxy(jsii.proxy_for(jsii_calc.erasureTests.IJSII417PublicBaseOfBase)): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.erasureTests.IJSII417Derived" - @builtins.property - @jsii.member(jsii_name="property") - def property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "property") - - @jsii.member(jsii_name="bar") - def bar(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "bar", []) - - @jsii.member(jsii_name="baz") - def baz(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "baz", []) - - -@jsii.interface(jsii_type="jsii-calc.erasureTests.IJSII417PublicBaseOfBase") -class IJSII417PublicBaseOfBase(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IJSII417PublicBaseOfBaseProxy - - @builtins.property - @jsii.member(jsii_name="hasRoot") - def has_root(self) -> bool: - """ - stability - :stability: experimental - """ - ... - - @jsii.member(jsii_name="foo") - def foo(self) -> None: - """ - stability - :stability: experimental - """ - ... - - -class _IJSII417PublicBaseOfBaseProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.erasureTests.IJSII417PublicBaseOfBase" - @builtins.property - @jsii.member(jsii_name="hasRoot") - def has_root(self) -> bool: - """ - stability - :stability: experimental - """ - return jsii.get(self, "hasRoot") - - @jsii.member(jsii_name="foo") - def foo(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "foo", []) - - -@jsii.interface(jsii_type="jsii-calc.erasureTests.IJsii487External") -class IJsii487External(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IJsii487ExternalProxy - - pass - -class _IJsii487ExternalProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.erasureTests.IJsii487External" - pass - -@jsii.interface(jsii_type="jsii-calc.erasureTests.IJsii487External2") -class IJsii487External2(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IJsii487External2Proxy - - pass - -class _IJsii487External2Proxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.erasureTests.IJsii487External2" - pass - -@jsii.interface(jsii_type="jsii-calc.erasureTests.IJsii496") -class IJsii496(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IJsii496Proxy - - pass - -class _IJsii496Proxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.erasureTests.IJsii496" - pass - -class JSII417Derived(jsii_calc.erasureTests.JSII417PublicBaseOfBase, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.erasureTests.JSII417Derived"): - """ - stability - :stability: experimental - """ - def __init__(self, property: str) -> None: - """ - :param property: - - - stability - :stability: experimental - """ - jsii.create(jsii_calc.erasureTests.JSII417Derived, self, [property]) - - @jsii.member(jsii_name="bar") - def bar(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "bar", []) - - @jsii.member(jsii_name="baz") - def baz(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "baz", []) - - @builtins.property - @jsii.member(jsii_name="property") - def _property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "property") - - -class JSII417PublicBaseOfBase(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.erasureTests.JSII417PublicBaseOfBase"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(jsii_calc.erasureTests.JSII417PublicBaseOfBase, self, []) - - @jsii.member(jsii_name="makeInstance") - @builtins.classmethod - def make_instance(cls) -> jsii_calc.erasureTests.JSII417PublicBaseOfBase: - """ - stability - :stability: experimental - """ - return jsii.sinvoke(cls, "makeInstance", []) - - @jsii.member(jsii_name="foo") - def foo(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "foo", []) - - @builtins.property - @jsii.member(jsii_name="hasRoot") - def has_root(self) -> bool: - """ - stability - :stability: experimental - """ - return jsii.get(self, "hasRoot") - - -@jsii.implements(jsii_calc.erasureTests.IJsii487External2, jsii_calc.erasureTests.IJsii487External) -class Jsii487Derived(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.erasureTests.Jsii487Derived"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(jsii_calc.erasureTests.Jsii487Derived, self, []) - - -@jsii.implements(jsii_calc.erasureTests.IJsii496) -class Jsii496Derived(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.erasureTests.Jsii496Derived"): - """ - stability - :stability: experimental - """ - def __init__(self) -> None: - jsii.create(jsii_calc.erasureTests.Jsii496Derived, self, []) - - -__all__ = ["IJSII417Derived", "IJSII417PublicBaseOfBase", "IJsii487External", "IJsii487External2", "IJsii496", "JSII417Derived", "JSII417PublicBaseOfBase", "Jsii487Derived", "Jsii496Derived", "__jsii_assembly__"] - -publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/compliance/interface_in_namespace_includes_classes/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/interface_in_namespace_includes_classes/__init__.py similarity index 81% rename from packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/compliance/interface_in_namespace_includes_classes/__init__.py rename to packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/interface_in_namespace_includes_classes/__init__.py index 6d1803a7be..53eb20328b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/compliance/interface_in_namespace_includes_classes/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/interface_in_namespace_includes_classes/__init__.py @@ -15,13 +15,13 @@ __jsii_assembly__ = jsii.JSIIAssembly.load("jsii-calc", "1.1.0", "jsii_calc", "jsii-calc@1.1.0.jsii.tgz") -class Foo(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Foo"): +class Foo(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.InterfaceInNamespaceIncludesClasses.Foo"): """ stability :stability: experimental """ def __init__(self) -> None: - jsii.create(jsii_calc.compliance.InterfaceInNamespaceIncludesClasses.Foo, self, []) + jsii.create(jsii_calc.InterfaceInNamespaceIncludesClasses.Foo, self, []) @builtins.property @jsii.member(jsii_name="bar") @@ -37,7 +37,7 @@ def bar(self, value: typing.Optional[str]): jsii.set(self, "bar", value) -@jsii.data_type(jsii_type="jsii-calc.compliance.InterfaceInNamespaceIncludesClasses.Hello", jsii_struct_bases=[], name_mapping={'foo': 'foo'}) +@jsii.data_type(jsii_type="jsii-calc.InterfaceInNamespaceIncludesClasses.Hello", jsii_struct_bases=[], name_mapping={'foo': 'foo'}) class Hello(): def __init__(self, *, foo: jsii.Number): """ diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/compliance/interface_in_namespace_only_interface/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/interface_in_namespace_only_interface/__init__.py similarity index 88% rename from packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/compliance/interface_in_namespace_only_interface/__init__.py rename to packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/interface_in_namespace_only_interface/__init__.py index 6a956fade0..a937a96276 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/compliance/interface_in_namespace_only_interface/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/interface_in_namespace_only_interface/__init__.py @@ -15,7 +15,7 @@ __jsii_assembly__ = jsii.JSIIAssembly.load("jsii-calc", "1.1.0", "jsii_calc", "jsii-calc@1.1.0.jsii.tgz") -@jsii.data_type(jsii_type="jsii-calc.compliance.InterfaceInNamespaceOnlyInterface.Hello", jsii_struct_bases=[], name_mapping={'foo': 'foo'}) +@jsii.data_type(jsii_type="jsii-calc.InterfaceInNamespaceOnlyInterface.Hello", jsii_struct_bases=[], name_mapping={'foo': 'foo'}) class Hello(): def __init__(self, *, foo: jsii.Number): """ diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/stability_annotations/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/stability_annotations/__init__.py deleted file mode 100644 index 986db90e06..0000000000 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/stability_annotations/__init__.py +++ /dev/null @@ -1,468 +0,0 @@ -import abc -import builtins -import datetime -import enum -import publication -import typing - -import jsii -import jsii.compat - -import scope.jsii_calc_base -import scope.jsii_calc_base_of_base -import scope.jsii_calc_lib - -__jsii_assembly__ = jsii.JSIIAssembly.load("jsii-calc", "1.1.0", "jsii_calc", "jsii-calc@1.1.0.jsii.tgz") - - -class DeprecatedClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.stability_annotations.DeprecatedClass"): - """ - deprecated - :deprecated: a pretty boring class - - stability - :stability: deprecated - """ - def __init__(self, readonly_string: str, mutable_number: typing.Optional[jsii.Number]=None) -> None: - """ - :param readonly_string: - - :param mutable_number: - - - deprecated - :deprecated: this constructor is "just" okay - - stability - :stability: deprecated - """ - jsii.create(DeprecatedClass, self, [readonly_string, mutable_number]) - - @jsii.member(jsii_name="method") - def method(self) -> None: - """ - deprecated - :deprecated: it was a bad idea - - stability - :stability: deprecated - """ - return jsii.invoke(self, "method", []) - - @builtins.property - @jsii.member(jsii_name="readonlyProperty") - def readonly_property(self) -> str: - """ - deprecated - :deprecated: this is not always "wazoo", be ready to be disappointed - - stability - :stability: deprecated - """ - return jsii.get(self, "readonlyProperty") - - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: - """ - deprecated - :deprecated: shouldn't have been mutable - - stability - :stability: deprecated - """ - return jsii.get(self, "mutableProperty") - - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]): - jsii.set(self, "mutableProperty", value) - - -@jsii.enum(jsii_type="jsii-calc.stability_annotations.DeprecatedEnum") -class DeprecatedEnum(enum.Enum): - """ - deprecated - :deprecated: your deprecated selection of bad options - - stability - :stability: deprecated - """ - OPTION_A = "OPTION_A" - """ - deprecated - :deprecated: option A is not great - - stability - :stability: deprecated - """ - OPTION_B = "OPTION_B" - """ - deprecated - :deprecated: option B is kinda bad, too - - stability - :stability: deprecated - """ - -@jsii.data_type(jsii_type="jsii-calc.stability_annotations.DeprecatedStruct", jsii_struct_bases=[], name_mapping={'readonly_property': 'readonlyProperty'}) -class DeprecatedStruct(): - def __init__(self, *, readonly_property: str): - """ - :param readonly_property: - - deprecated - :deprecated: it just wraps a string - - stability - :stability: deprecated - """ - self._values = { - 'readonly_property': readonly_property, - } - - @builtins.property - def readonly_property(self) -> str: - """ - deprecated - :deprecated: well, yeah - - stability - :stability: deprecated - """ - return self._values.get('readonly_property') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'DeprecatedStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - -class ExperimentalClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.stability_annotations.ExperimentalClass"): - """ - stability - :stability: experimental - """ - def __init__(self, readonly_string: str, mutable_number: typing.Optional[jsii.Number]=None) -> None: - """ - :param readonly_string: - - :param mutable_number: - - - stability - :stability: experimental - """ - jsii.create(ExperimentalClass, self, [readonly_string, mutable_number]) - - @jsii.member(jsii_name="method") - def method(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "method", []) - - @builtins.property - @jsii.member(jsii_name="readonlyProperty") - def readonly_property(self) -> str: - """ - stability - :stability: experimental - """ - return jsii.get(self, "readonlyProperty") - - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "mutableProperty") - - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]): - jsii.set(self, "mutableProperty", value) - - -@jsii.enum(jsii_type="jsii-calc.stability_annotations.ExperimentalEnum") -class ExperimentalEnum(enum.Enum): - """ - stability - :stability: experimental - """ - OPTION_A = "OPTION_A" - """ - stability - :stability: experimental - """ - OPTION_B = "OPTION_B" - """ - stability - :stability: experimental - """ - -@jsii.data_type(jsii_type="jsii-calc.stability_annotations.ExperimentalStruct", jsii_struct_bases=[], name_mapping={'readonly_property': 'readonlyProperty'}) -class ExperimentalStruct(): - def __init__(self, *, readonly_property: str): - """ - :param readonly_property: - - stability - :stability: experimental - """ - self._values = { - 'readonly_property': readonly_property, - } - - @builtins.property - def readonly_property(self) -> str: - """ - stability - :stability: experimental - """ - return self._values.get('readonly_property') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'ExperimentalStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - -@jsii.interface(jsii_type="jsii-calc.stability_annotations.IDeprecatedInterface") -class IDeprecatedInterface(jsii.compat.Protocol): - """ - deprecated - :deprecated: useless interface - - stability - :stability: deprecated - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IDeprecatedInterfaceProxy - - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: - """ - deprecated - :deprecated: could be better - - stability - :stability: deprecated - """ - ... - - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]): - ... - - @jsii.member(jsii_name="method") - def method(self) -> None: - """ - deprecated - :deprecated: services no purpose - - stability - :stability: deprecated - """ - ... - - -class _IDeprecatedInterfaceProxy(): - """ - deprecated - :deprecated: useless interface - - stability - :stability: deprecated - """ - __jsii_type__ = "jsii-calc.stability_annotations.IDeprecatedInterface" - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: - """ - deprecated - :deprecated: could be better - - stability - :stability: deprecated - """ - return jsii.get(self, "mutableProperty") - - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]): - jsii.set(self, "mutableProperty", value) - - @jsii.member(jsii_name="method") - def method(self) -> None: - """ - deprecated - :deprecated: services no purpose - - stability - :stability: deprecated - """ - return jsii.invoke(self, "method", []) - - -@jsii.interface(jsii_type="jsii-calc.stability_annotations.IExperimentalInterface") -class IExperimentalInterface(jsii.compat.Protocol): - """ - stability - :stability: experimental - """ - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IExperimentalInterfaceProxy - - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: - """ - stability - :stability: experimental - """ - ... - - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]): - ... - - @jsii.member(jsii_name="method") - def method(self) -> None: - """ - stability - :stability: experimental - """ - ... - - -class _IExperimentalInterfaceProxy(): - """ - stability - :stability: experimental - """ - __jsii_type__ = "jsii-calc.stability_annotations.IExperimentalInterface" - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: - """ - stability - :stability: experimental - """ - return jsii.get(self, "mutableProperty") - - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]): - jsii.set(self, "mutableProperty", value) - - @jsii.member(jsii_name="method") - def method(self) -> None: - """ - stability - :stability: experimental - """ - return jsii.invoke(self, "method", []) - - -@jsii.interface(jsii_type="jsii-calc.stability_annotations.IStableInterface") -class IStableInterface(jsii.compat.Protocol): - @builtins.staticmethod - def __jsii_proxy_class__(): - return _IStableInterfaceProxy - - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: - ... - - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]): - ... - - @jsii.member(jsii_name="method") - def method(self) -> None: - ... - - -class _IStableInterfaceProxy(): - __jsii_type__ = "jsii-calc.stability_annotations.IStableInterface" - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: - return jsii.get(self, "mutableProperty") - - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]): - jsii.set(self, "mutableProperty", value) - - @jsii.member(jsii_name="method") - def method(self) -> None: - return jsii.invoke(self, "method", []) - - -class StableClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.stability_annotations.StableClass"): - def __init__(self, readonly_string: str, mutable_number: typing.Optional[jsii.Number]=None) -> None: - """ - :param readonly_string: - - :param mutable_number: - - """ - jsii.create(StableClass, self, [readonly_string, mutable_number]) - - @jsii.member(jsii_name="method") - def method(self) -> None: - return jsii.invoke(self, "method", []) - - @builtins.property - @jsii.member(jsii_name="readonlyProperty") - def readonly_property(self) -> str: - return jsii.get(self, "readonlyProperty") - - @builtins.property - @jsii.member(jsii_name="mutableProperty") - def mutable_property(self) -> typing.Optional[jsii.Number]: - return jsii.get(self, "mutableProperty") - - @mutable_property.setter - def mutable_property(self, value: typing.Optional[jsii.Number]): - jsii.set(self, "mutableProperty", value) - - -@jsii.enum(jsii_type="jsii-calc.stability_annotations.StableEnum") -class StableEnum(enum.Enum): - OPTION_A = "OPTION_A" - OPTION_B = "OPTION_B" - -@jsii.data_type(jsii_type="jsii-calc.stability_annotations.StableStruct", jsii_struct_bases=[], name_mapping={'readonly_property': 'readonlyProperty'}) -class StableStruct(): - def __init__(self, *, readonly_property: str): - """ - :param readonly_property: - """ - self._values = { - 'readonly_property': readonly_property, - } - - @builtins.property - def readonly_property(self) -> str: - return self._values.get('readonly_property') - - def __eq__(self, rhs) -> bool: - return isinstance(rhs, self.__class__) and rhs._values == self._values - - def __ne__(self, rhs) -> bool: - return not (rhs == self) - - def __repr__(self) -> str: - return 'StableStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) - - -__all__ = ["DeprecatedClass", "DeprecatedEnum", "DeprecatedStruct", "ExperimentalClass", "ExperimentalEnum", "ExperimentalStruct", "IDeprecatedInterface", "IExperimentalInterface", "IStableInterface", "StableClass", "StableEnum", "StableStruct", "__jsii_assembly__"] - -publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/__init__.py new file mode 100644 index 0000000000..4a188b3b2c --- /dev/null +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/__init__.py @@ -0,0 +1,19 @@ +import abc +import builtins +import datetime +import enum +import publication +import typing + +import jsii +import jsii.compat + +import scope.jsii_calc_base +import scope.jsii_calc_base_of_base +import scope.jsii_calc_lib + +__jsii_assembly__ = jsii.JSIIAssembly.load("jsii-calc", "1.1.0", "jsii_calc", "jsii-calc@1.1.0.jsii.tgz") + +__all__ = ["__jsii_assembly__"] + +publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/child/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/child/__init__.py new file mode 100644 index 0000000000..7016fdbfb2 --- /dev/null +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/child/__init__.py @@ -0,0 +1,51 @@ +import abc +import builtins +import datetime +import enum +import publication +import typing + +import jsii +import jsii.compat + +import scope.jsii_calc_base +import scope.jsii_calc_base_of_base +import scope.jsii_calc_lib + +__jsii_assembly__ = jsii.JSIIAssembly.load("jsii-calc", "1.1.0", "jsii_calc", "jsii-calc@1.1.0.jsii.tgz") + + +@jsii.data_type(jsii_type="jsii-calc.submodule.child.Structure", jsii_struct_bases=[], name_mapping={'bool': 'bool'}) +class Structure(): + def __init__(self, *, bool: bool): + """ + :param bool: + + stability + :stability: experimental + """ + self._values = { + 'bool': bool, + } + + @builtins.property + def bool(self) -> bool: + """ + stability + :stability: experimental + """ + return self._values.get('bool') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'Structure(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +__all__ = ["Structure", "__jsii_assembly__"] + +publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/__init__.py new file mode 100644 index 0000000000..737de7e241 --- /dev/null +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/__init__.py @@ -0,0 +1,36 @@ +import abc +import builtins +import datetime +import enum +import publication +import typing + +import jsii +import jsii.compat + +import scope.jsii_calc_base +import scope.jsii_calc_base_of_base +import scope.jsii_calc_lib + +__jsii_assembly__ = jsii.JSIIAssembly.load("jsii-calc", "1.1.0", "jsii_calc", "jsii-calc@1.1.0.jsii.tgz") + + +@jsii.implements(deeplyNested.INamespaced) +class Namespaced(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.submodule.nested_submodule.Namespaced"): + """ + stability + :stability: experimental + """ + @builtins.property + @jsii.member(jsii_name="definedAt") + def defined_at(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "definedAt") + + +__all__ = ["Namespaced", "__jsii_assembly__"] + +publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/deeply_nested/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/deeply_nested/__init__.py new file mode 100644 index 0000000000..b266b3ba62 --- /dev/null +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/deeply_nested/__init__.py @@ -0,0 +1,56 @@ +import abc +import builtins +import datetime +import enum +import publication +import typing + +import jsii +import jsii.compat + +import scope.jsii_calc_base +import scope.jsii_calc_base_of_base +import scope.jsii_calc_lib + +__jsii_assembly__ = jsii.JSIIAssembly.load("jsii-calc", "1.1.0", "jsii_calc", "jsii-calc@1.1.0.jsii.tgz") + + +@jsii.interface(jsii_type="jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced") +class INamespaced(jsii.compat.Protocol): + """ + stability + :stability: experimental + """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _INamespacedProxy + + @builtins.property + @jsii.member(jsii_name="definedAt") + def defined_at(self) -> str: + """ + stability + :stability: experimental + """ + ... + + +class _INamespacedProxy(): + """ + stability + :stability: experimental + """ + __jsii_type__ = "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced" + @builtins.property + @jsii.member(jsii_name="definedAt") + def defined_at(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "definedAt") + + +__all__ = ["INamespaced", "__jsii_assembly__"] + +publication.publish() From d46f8ac208e1622f27b857b28ee8598388d799b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=91=A8=F0=9F=8F=BC=E2=80=8D=F0=9F=92=BB=20Romain=20M?= =?UTF-8?q?arcadier-Muller?= Date: Mon, 16 Mar 2020 14:12:08 +0100 Subject: [PATCH 11/18] undo import move in Python CodeGen --- packages/jsii-pacmak/lib/targets/python.ts | 2 +- .../python/src/scope/jsii_calc_base_of_base/__init__.py | 2 +- .../python/src/scope/jsii_calc_base_of_base/_jsii/__init__.py | 2 +- .../python/src/scope/jsii_calc_base/__init__.py | 2 +- .../python/src/scope/jsii_calc_base/_jsii/__init__.py | 2 +- .../python/src/scope/jsii_calc_lib/__init__.py | 2 +- .../python/src/scope/jsii_calc_lib/_jsii/__init__.py | 2 +- .../test/expected.jsii-calc/python/src/jsii_calc/__init__.py | 2 +- .../expected.jsii-calc/python/src/jsii_calc/_jsii/__init__.py | 2 +- .../python/src/jsii_calc/composition/__init__.py | 2 +- .../src/jsii_calc/derived_class_has_no_properties/__init__.py | 2 +- .../interface_in_namespace_includes_classes/__init__.py | 2 +- .../jsii_calc/interface_in_namespace_only_interface/__init__.py | 2 +- .../python/src/jsii_calc/submodule/__init__.py | 2 +- .../python/src/jsii_calc/submodule/child/__init__.py | 2 +- .../python/src/jsii_calc/submodule/nested_submodule/__init__.py | 2 +- .../submodule/nested_submodule/deeply_nested/__init__.py | 2 +- 17 files changed, 17 insertions(+), 17 deletions(-) diff --git a/packages/jsii-pacmak/lib/targets/python.ts b/packages/jsii-pacmak/lib/targets/python.ts index 7121164c17..2e616be024 100644 --- a/packages/jsii-pacmak/lib/targets/python.ts +++ b/packages/jsii-pacmak/lib/targets/python.ts @@ -1133,11 +1133,11 @@ class PythonModule implements PythonType { code.line('import builtins'); code.line('import datetime'); code.line('import enum'); - code.line('import publication'); code.line('import typing'); code.line(); code.line('import jsii'); code.line('import jsii.compat'); + code.line('import publication'); // Go over all of the modules that we need to import, and import them. this.emitDependencyImports(code, resolver); diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/__init__.py index a017a2d690..fd9d308181 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/__init__.py @@ -2,11 +2,11 @@ import builtins import datetime import enum -import publication import typing import jsii import jsii.compat +import publication __jsii_assembly__ = jsii.JSIIAssembly.load("@scope/jsii-calc-base-of-base", "1.1.0", "scope.jsii_calc_base_of_base", "jsii-calc-base-of-base@1.1.0.jsii.tgz") diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/_jsii/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/_jsii/__init__.py index 3ae1af9285..8286c95df3 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/_jsii/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc-base-of-base/python/src/scope/jsii_calc_base_of_base/_jsii/__init__.py @@ -2,11 +2,11 @@ import builtins import datetime import enum -import publication import typing import jsii import jsii.compat +import publication __all__ = [] diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/__init__.py index 8cee737d6b..6338fc2be9 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/__init__.py @@ -2,11 +2,11 @@ import builtins import datetime import enum -import publication import typing import jsii import jsii.compat +import publication import scope.jsii_calc_base_of_base diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/_jsii/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/_jsii/__init__.py index ab82290fe0..2b6e82f761 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/_jsii/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc-base/python/src/scope/jsii_calc_base/_jsii/__init__.py @@ -2,11 +2,11 @@ import builtins import datetime import enum -import publication import typing import jsii import jsii.compat +import publication import scope.jsii_calc_base_of_base diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/__init__.py index 24460b35f2..352b1cb261 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/__init__.py @@ -2,11 +2,11 @@ import builtins import datetime import enum -import publication import typing import jsii import jsii.compat +import publication import scope.jsii_calc_base diff --git a/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/_jsii/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/_jsii/__init__.py index 653d0f7947..3e3a2f96e4 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/_jsii/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc-lib/python/src/scope/jsii_calc_lib/_jsii/__init__.py @@ -2,11 +2,11 @@ import builtins import datetime import enum -import publication import typing import jsii import jsii.compat +import publication import scope.jsii_calc_base diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/__init__.py index f264743a2a..fff94152a9 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/__init__.py @@ -31,11 +31,11 @@ import builtins import datetime import enum -import publication import typing import jsii import jsii.compat +import publication import jsii_calc.composition import scope.jsii_calc_base diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/_jsii/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/_jsii/__init__.py index 3f9a9aa3f4..6e6b14b45b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/_jsii/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/_jsii/__init__.py @@ -2,11 +2,11 @@ import builtins import datetime import enum -import publication import typing import jsii import jsii.compat +import publication import scope.jsii_calc_base import scope.jsii_calc_base_of_base diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/composition/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/composition/__init__.py index bf6d4cbc64..c55d2a0f43 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/composition/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/composition/__init__.py @@ -2,11 +2,11 @@ import builtins import datetime import enum -import publication import typing import jsii import jsii.compat +import publication import scope.jsii_calc_base import scope.jsii_calc_base_of_base diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/derived_class_has_no_properties/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/derived_class_has_no_properties/__init__.py index 77f962b8d8..add1f8fbb4 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/derived_class_has_no_properties/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/derived_class_has_no_properties/__init__.py @@ -2,11 +2,11 @@ import builtins import datetime import enum -import publication import typing import jsii import jsii.compat +import publication import scope.jsii_calc_base import scope.jsii_calc_base_of_base diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/interface_in_namespace_includes_classes/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/interface_in_namespace_includes_classes/__init__.py index 53eb20328b..7569b9fd1f 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/interface_in_namespace_includes_classes/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/interface_in_namespace_includes_classes/__init__.py @@ -2,11 +2,11 @@ import builtins import datetime import enum -import publication import typing import jsii import jsii.compat +import publication import scope.jsii_calc_base import scope.jsii_calc_base_of_base diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/interface_in_namespace_only_interface/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/interface_in_namespace_only_interface/__init__.py index a937a96276..9ad121c642 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/interface_in_namespace_only_interface/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/interface_in_namespace_only_interface/__init__.py @@ -2,11 +2,11 @@ import builtins import datetime import enum -import publication import typing import jsii import jsii.compat +import publication import scope.jsii_calc_base import scope.jsii_calc_base_of_base diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/__init__.py index 4a188b3b2c..dfcdb5bfb0 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/__init__.py @@ -2,11 +2,11 @@ import builtins import datetime import enum -import publication import typing import jsii import jsii.compat +import publication import scope.jsii_calc_base import scope.jsii_calc_base_of_base diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/child/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/child/__init__.py index 7016fdbfb2..0fa3120e52 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/child/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/child/__init__.py @@ -2,11 +2,11 @@ import builtins import datetime import enum -import publication import typing import jsii import jsii.compat +import publication import scope.jsii_calc_base import scope.jsii_calc_base_of_base diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/__init__.py index 737de7e241..592a2f6a8b 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/__init__.py @@ -2,11 +2,11 @@ import builtins import datetime import enum -import publication import typing import jsii import jsii.compat +import publication import scope.jsii_calc_base import scope.jsii_calc_base_of_base diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/deeply_nested/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/deeply_nested/__init__.py index b266b3ba62..147de6591a 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/deeply_nested/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/deeply_nested/__init__.py @@ -2,11 +2,11 @@ import builtins import datetime import enum -import publication import typing import jsii import jsii.compat +import publication import scope.jsii_calc_base import scope.jsii_calc_base_of_base From 570540ffc80d7469042a82fe3b4d4128ef38da18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=91=A8=F0=9F=8F=BC=E2=80=8D=F0=9F=92=BB=20Romain=20M?= =?UTF-8?q?arcadier-Muller?= Date: Mon, 16 Mar 2020 14:18:20 +0100 Subject: [PATCH 12/18] undo namespacing changes in kernel tests, too. --- packages/@jsii/kernel/test/kernel.test.ts | 256 +++++++++++----------- 1 file changed, 128 insertions(+), 128 deletions(-) diff --git a/packages/@jsii/kernel/test/kernel.test.ts b/packages/@jsii/kernel/test/kernel.test.ts index 5bfe7608e0..a4acba6beb 100644 --- a/packages/@jsii/kernel/test/kernel.test.ts +++ b/packages/@jsii/kernel/test/kernel.test.ts @@ -79,7 +79,7 @@ defineTest('deleteObject will remove the reference', (sandbox) => { }); defineTest('in/out primitive types', (sandbox) => { - const alltypes = sandbox.create({ fqn: 'jsii-calc.compliance.AllTypes', args: [] }); + const alltypes = sandbox.create({ fqn: 'jsii-calc.AllTypes', args: [] }); sandbox.set({ objref: alltypes, property: 'booleanProperty', value: true }); expect(sandbox.get({ objref: alltypes, property: 'booleanProperty' }).value).toBe(true); @@ -104,7 +104,7 @@ defineTest('in/out primitive types', (sandbox) => { }); defineTest('in/out objects', (sandbox) => { - const alltypes = sandbox.create({ fqn: 'jsii-calc.compliance.AllTypes' }); + const alltypes = sandbox.create({ fqn: 'jsii-calc.AllTypes' }); const num = sandbox.create({ fqn: '@scope/jsii-calc-lib.Number', args: [444] }); sandbox.set({ objref: alltypes, property: 'anyProperty', value: num }); @@ -112,7 +112,7 @@ defineTest('in/out objects', (sandbox) => { }); defineTest('in/out collections', (sandbox) => { - const alltypes = sandbox.create({ fqn: 'jsii-calc.compliance.AllTypes', args: [] }); + const alltypes = sandbox.create({ fqn: 'jsii-calc.AllTypes', args: [] }); const array = ['1', '2', '3', '4']; sandbox.set({ objref: alltypes, property: 'arrayProperty', value: array }); @@ -132,7 +132,7 @@ defineTest('in/out collections', (sandbox) => { }); defineTest('in/out date values', (sandbox) => { - const alltypes = sandbox.create({ fqn: 'jsii-calc.compliance.AllTypes' }); + const alltypes = sandbox.create({ fqn: 'jsii-calc.AllTypes' }); const date = new Date('2018-01-18T00:00:32.347Z'); sandbox.set({ objref: alltypes, property: 'dateProperty', value: { [api.TOKEN_DATE]: date.toISOString() } }); @@ -140,37 +140,37 @@ defineTest('in/out date values', (sandbox) => { }); defineTest('in/out enum values', (sandbox) => { - const alltypes = sandbox.create({ fqn: 'jsii-calc.compliance.AllTypes' }); + const alltypes = sandbox.create({ fqn: 'jsii-calc.AllTypes' }); - sandbox.set({ objref: alltypes, property: 'enumProperty', value: { [api.TOKEN_ENUM]: 'jsii-calc.compliance.AllTypesEnum/MY_ENUM_VALUE' } }); + sandbox.set({ objref: alltypes, property: 'enumProperty', value: { [api.TOKEN_ENUM]: 'jsii-calc.AllTypesEnum/MY_ENUM_VALUE' } }); expect(sandbox.get({ objref: alltypes, property: 'enumPropertyValue' }).value).toBe(0); - sandbox.set({ objref: alltypes, property: 'enumProperty', value: { [api.TOKEN_ENUM]: 'jsii-calc.compliance.AllTypesEnum/YOUR_ENUM_VALUE' } }); + sandbox.set({ objref: alltypes, property: 'enumProperty', value: { [api.TOKEN_ENUM]: 'jsii-calc.AllTypesEnum/YOUR_ENUM_VALUE' } }); expect(sandbox.get({ objref: alltypes, property: 'enumPropertyValue' }).value).toBe(100); - sandbox.set({ objref: alltypes, property: 'enumProperty', value: { [api.TOKEN_ENUM]: 'jsii-calc.compliance.AllTypesEnum/THIS_IS_GREAT' } }); + sandbox.set({ objref: alltypes, property: 'enumProperty', value: { [api.TOKEN_ENUM]: 'jsii-calc.AllTypesEnum/THIS_IS_GREAT' } }); expect(sandbox.get({ objref: alltypes, property: 'enumPropertyValue' }).value).toBe(101); - expect(sandbox.get({ objref: alltypes, property: 'enumProperty' }).value).toEqual({ '$jsii.enum': 'jsii-calc.compliance.AllTypesEnum/THIS_IS_GREAT' }); + expect(sandbox.get({ objref: alltypes, property: 'enumProperty' }).value).toEqual({ '$jsii.enum': 'jsii-calc.AllTypesEnum/THIS_IS_GREAT' }); }); describe('in/out json values', () => { defineTest('with a plain object', (sandbox) => { - const allTypes = sandbox.create({ fqn: 'jsii-calc.compliance.AllTypes' }); + const allTypes = sandbox.create({ fqn: 'jsii-calc.AllTypes' }); sandbox.set({ objref: allTypes, property: 'jsonProperty', value: { foo: 'bar', baz: 1337 } }); expect(sandbox.get({ objref: allTypes, property: 'jsonProperty' }).value).toEqual({ foo: 'bar', baz: 1337 }); }); defineTest('with a simple mapping', (sandbox) => { - const allTypes = sandbox.create({ fqn: 'jsii-calc.compliance.AllTypes' }); + const allTypes = sandbox.create({ fqn: 'jsii-calc.AllTypes' }); sandbox.set({ objref: allTypes, property: 'jsonProperty', value: { [api.TOKEN_MAP]: { foo: 'bar', baz: 1337 } } }); expect(sandbox.get({ objref: allTypes, property: 'jsonProperty' }).value).toEqual({ foo: 'bar', baz: 1337 }); }); defineTest('with a nested mapping', (sandbox) => { - const allTypes = sandbox.create({ fqn: 'jsii-calc.compliance.AllTypes' }); + const allTypes = sandbox.create({ fqn: 'jsii-calc.AllTypes' }); sandbox.set({ objref: allTypes, property: 'jsonProperty', value: { [api.TOKEN_MAP]: { foo: 'bar', baz: { [api.TOKEN_MAP]: { bazinga: [null, 'Pickle Rick'] } } } } }); expect(sandbox.get({ objref: allTypes, property: 'jsonProperty' }).value).toEqual({ foo: 'bar', baz: { bazinga: [null, 'Pickle Rick'] } }); }); }); defineTest('enum values from @scoped packages awslabs/jsii#138', (sandbox) => { - const objref = sandbox.create({ fqn: 'jsii-calc.compliance.ReferenceEnumFromScopedPackage' }); + const objref = sandbox.create({ fqn: 'jsii-calc.ReferenceEnumFromScopedPackage' }); const value = sandbox.get({ objref, property: 'foo' }); expect(value).toEqual({ value: { '$jsii.enum': '@scope/jsii-calc-lib.EnumFromScopedModule/VALUE2' } }); @@ -185,7 +185,7 @@ defineTest('enum values from @scoped packages awslabs/jsii#138', (sandbox) => { }); defineTest('fails for invalid enum member name', (sandbox) => { - const objref = sandbox.create({ fqn: 'jsii-calc.compliance.ReferenceEnumFromScopedPackage' }); + const objref = sandbox.create({ fqn: 'jsii-calc.ReferenceEnumFromScopedPackage' }); expect(() => { sandbox.set({ objref, property: 'foo', value: { '$jsii.enum': '@scope/jsii-calc-lib.EnumFromScopedModule/ValueX' } }); @@ -193,12 +193,12 @@ defineTest('fails for invalid enum member name', (sandbox) => { }); defineTest('set for a non existing property', (sandbox) => { - const obj = sandbox.create({ fqn: 'jsii-calc.compliance.SyncVirtualMethods' }); + const obj = sandbox.create({ fqn: 'jsii-calc.SyncVirtualMethods' }); expect(() => sandbox.set({ objref: obj, property: 'idontexist', value: 'Foo' })).toThrow(); }); defineTest('set for a readonly property', (sandbox) => { - const obj = sandbox.create({ fqn: 'jsii-calc.compliance.SyncVirtualMethods' }); + const obj = sandbox.create({ fqn: 'jsii-calc.SyncVirtualMethods' }); expect(() => sandbox.set({ objref: obj, property: 'readonlyProperty', value: 'Foo' })).toThrow(); }); @@ -290,7 +290,7 @@ defineTest('type-checking: type not found', (sandbox) => { }); defineTest('type-checking: try to create an object from a non-class type', (sandbox) => { - expect(() => sandbox.create({ fqn: 'jsii-calc.compliance.AllTypesEnum' })).toThrow(/Unexpected FQN kind/); + expect(() => sandbox.create({ fqn: 'jsii-calc.AllTypesEnum' })).toThrow(/Unexpected FQN kind/); }); defineTest('type-checking: argument count in methods and initializers', (sandbox) => { @@ -305,7 +305,7 @@ defineTest('type-checking: argument count in methods and initializers', (sandbox expect(() => sandbox.create({ fqn: 'jsii-calc.Add', args: [] })).toThrow(/Not enough arguments/); expect(() => sandbox.create({ fqn: 'jsii-calc.Add', args: [1] })).toThrow(/Not enough arguments/); - const obj = sandbox.create({ fqn: 'jsii-calc.compliance.RuntimeTypeChecking' }); + const obj = sandbox.create({ fqn: 'jsii-calc.RuntimeTypeChecking' }); expect(() => sandbox.invoke({ objref: obj, method: 'methodWithOptionalArguments', args: [] })).toThrow(/Not enough arguments/); expect(() => sandbox.invoke({ objref: obj, method: 'methodWithOptionalArguments', args: [1] })).toThrow(/Not enough arguments/); sandbox.invoke({ objref: obj, method: 'methodWithOptionalArguments', args: [1, 'hello'] }); @@ -314,29 +314,29 @@ defineTest('type-checking: argument count in methods and initializers', (sandbox }); defineTest('verify object literals are converted to real classes', (sandbox) => { - const obj = sandbox.create({ fqn: 'jsii-calc.compliance.JSObjectLiteralToNative' }); + const obj = sandbox.create({ fqn: 'jsii-calc.JSObjectLiteralToNative' }); const obj2 = sandbox.invoke({ objref: obj, method: 'returnLiteral' }).result; expect(obj2[api.TOKEN_REF]).toBeTruthy(); // verify that we received a ref as a result; const objid: string = obj2[api.TOKEN_REF]; - expect(objid.startsWith('jsii-calc.compliance.JSObjectLiteralToNativeClass@'), `${objid} does not have the intended prefix`).toBeTruthy(); // verify the type of the returned object' + expect(objid.startsWith('jsii-calc.JSObjectLiteralToNativeClass@'), `${objid} does not have the intended prefix`).toBeTruthy(); // verify the type of the returned object' }); defineTest('get a property from an type that only has base class properties', (sandbox) => { - const obj = sandbox.create({ fqn: 'jsii-calc.compliance.DerivedClassHasNoProperties.Derived' }); + const obj = sandbox.create({ fqn: 'jsii-calc.DerivedClassHasNoProperties.Derived' }); sandbox.set({ objref: obj, property: 'prop', value: 'hi' }); expect(sandbox.get({ objref: obj, property: 'prop' }).value).toBe('hi'); }); defineTest('async overrides: ignores overrides for unknown methods (to allow derived class to just pass all local method names)', (sandbox) => { - sandbox.create({ fqn: 'jsii-calc.compliance.AsyncVirtualMethods', overrides: [{ method: 'notFound' }] }); + sandbox.create({ fqn: 'jsii-calc.AsyncVirtualMethods', overrides: [{ method: 'notFound' }] }); }); defineTest('async overrides: override a method', async (sandbox) => { // first call without an override and expect pendingCallbacks to return // an empty array. - const obj1 = sandbox.create({ fqn: 'jsii-calc.compliance.AsyncVirtualMethods' }); + const obj1 = sandbox.create({ fqn: 'jsii-calc.AsyncVirtualMethods' }); async function callWithOverride(overrideCallback: (x: number) => number) { const promise1 = sandbox.begin({ objref: obj1, method: 'callMe' }); @@ -345,7 +345,7 @@ defineTest('async overrides: override a method', async (sandbox) => { expect(result1).toBe(128); // now add an override and complete it with a some value. - const obj = sandbox.create({ fqn: 'jsii-calc.compliance.AsyncVirtualMethods', overrides: [{ method: 'overrideMe', cookie: 'myCookie' }] }); + const obj = sandbox.create({ fqn: 'jsii-calc.AsyncVirtualMethods', overrides: [{ method: 'overrideMe', cookie: 'myCookie' }] }); const promise2 = sandbox.begin({ objref: obj, method: 'callMe' }); const callbacks = sandbox.callbacks().callbacks; expect(callbacks.length).toBe(1); @@ -385,7 +385,7 @@ defineTest('async overrides: override a method', async (sandbox) => { }); defineTest('async overrides: directly call a method with an override from native code should invoke the "super.method" since it can only be done by the derived class', async (sandbox) => { - const obj = sandbox.create({ fqn: 'jsii-calc.compliance.AsyncVirtualMethods', overrides: [{ method: 'overrideMe', cookie: 'myCookie' }] }); + const obj = sandbox.create({ fqn: 'jsii-calc.AsyncVirtualMethods', overrides: [{ method: 'overrideMe', cookie: 'myCookie' }] }); const promise = sandbox.begin({ objref: obj, method: 'overrideMe', args: [12] }); // no callbacks should be pending, since this should invoke "super" @@ -394,7 +394,7 @@ defineTest('async overrides: directly call a method with an override from native }); defineTest('async overrides: two overrides', async (sandbox) => { - const obj = sandbox.create({ fqn: 'jsii-calc.compliance.AsyncVirtualMethods', overrides: [ + const obj = sandbox.create({ fqn: 'jsii-calc.AsyncVirtualMethods', overrides: [ { method: 'overrideMeToo', cookie: 'cookie1' }, { method: 'overrideMe', cookie: 'cookie2' } ] }); @@ -434,7 +434,7 @@ defineTest('async overrides: two overrides', async (sandbox) => { */ defineTest('async overrides - process promises after "begin"', async (sandbox) => { - const obj = sandbox.create({ fqn: 'jsii-calc.compliance.AsyncVirtualMethods', overrides: [ + const obj = sandbox.create({ fqn: 'jsii-calc.AsyncVirtualMethods', overrides: [ { method: 'overrideMe', cookie: 'cookie2' }, { method: 'overrideMeToo' } ] }); @@ -504,7 +504,7 @@ function processPendingPromises(sandbox: Kernel) { } defineTest('sync overrides', async (sandbox) => { - const pre = sandbox.create({ fqn: 'jsii-calc.compliance.SyncVirtualMethods' }); + const pre = sandbox.create({ fqn: 'jsii-calc.SyncVirtualMethods' }); // without override expect(sandbox.invoke({ objref: pre, method: 'callerIsMethod' }).result).toBe(20); @@ -514,7 +514,7 @@ defineTest('sync overrides', async (sandbox) => { sandbox.callbackHandler = makeSyncCallbackHandler(callback => { expect(callback.cookie).toBe('myCookie'); - expect(callback.invoke!.objref[TOKEN_REF]).toMatch(/^jsii-calc\.compliance\.SyncVirtualMethods@/); + expect(callback.invoke!.objref[TOKEN_REF]).toMatch(/jsii-calc\.SyncVirtualMethods/); expect(callback.invoke!.method).toBe('virtualMethod'); expect(callback.invoke!.args![0]).toBe(10); @@ -527,7 +527,7 @@ defineTest('sync overrides', async (sandbox) => { }); // now make the same set of calls, and you will notice that the results are affected by the override. - const obj = sandbox.create({ fqn: 'jsii-calc.compliance.SyncVirtualMethods', overrides: [{ method: 'virtualMethod', cookie: 'myCookie' }] }); + const obj = sandbox.create({ fqn: 'jsii-calc.SyncVirtualMethods', overrides: [{ method: 'virtualMethod', cookie: 'myCookie' }] }); expect(sandbox.invoke({ objref: obj, method: 'callerIsMethod' }).result).toBe(22); expect(sandbox.get({ objref: obj, property: 'callerIsProperty' }).value).toBe(22); @@ -546,7 +546,7 @@ defineTest('sync overrides', async (sandbox) => { defineTest('sync overrides with async caller', async (sandbox) => { sandbox.callbackHandler = makeSyncCallbackHandler(callback => { expect(callback.cookie).toBe('myCookie'); - expect(callback.invoke!.objref[TOKEN_REF]).toMatch(/^jsii-calc\.compliance\.SyncVirtualMethods@/); + expect(callback.invoke!.objref[TOKEN_REF]).toMatch(/jsii-calc\.SyncVirtualMethods/); expect(callback.invoke!.method).toBe('virtualMethod'); expect(callback.invoke!.args![0]).toBe(10); @@ -558,13 +558,13 @@ defineTest('sync overrides with async caller', async (sandbox) => { return sandbox.get({ objref: add, property: 'value' }).value; }); - const obj = sandbox.create({ fqn: 'jsii-calc.compliance.SyncVirtualMethods', overrides: [{ method: 'virtualMethod', cookie: 'myCookie' }] }); + const obj = sandbox.create({ fqn: 'jsii-calc.SyncVirtualMethods', overrides: [{ method: 'virtualMethod', cookie: 'myCookie' }] }); const p2 = sandbox.begin({ objref: obj, method: 'callerIsAsync' }); expect((await sandbox.end({ promiseid: p2.promiseid })).result).toBe(22); }); defineTest('sync overrides: properties - readwrite', (sandbox) => { - const obj = sandbox.create({ fqn: 'jsii-calc.compliance.SyncVirtualMethods', overrides: [{ property: 'theProperty', cookie: 'myCookie1234' }] }); + const obj = sandbox.create({ fqn: 'jsii-calc.SyncVirtualMethods', overrides: [{ property: 'theProperty', cookie: 'myCookie1234' }] }); let setValue; sandbox.callbackHandler = makeSyncCallbackHandler(callback => { @@ -591,7 +591,7 @@ defineTest('sync overrides: properties - readwrite', (sandbox) => { defineTest('sync overrides: properties - readwrite (backed by functions)', (sandbox) => { const obj = sandbox.create({ - fqn: 'jsii-calc.compliance.SyncVirtualMethods', + fqn: 'jsii-calc.SyncVirtualMethods', overrides: [{ property: 'otherProperty', cookie: 'myCookie1234' }] }); @@ -620,7 +620,7 @@ defineTest('sync overrides: properties - readwrite (backed by functions)', (sand defineTest('sync overrides: duplicate overrides for the same property', (sandbox) => { expect(() => sandbox.create({ - fqn: 'jsii-calc.compliance.SyncVirtualMethods', + fqn: 'jsii-calc.SyncVirtualMethods', overrides: [ { property: 'otherProperty', cookie: 'myCookie1234' }, { property: 'otherProperty', cookie: 'yourCookie' } @@ -629,7 +629,7 @@ defineTest('sync overrides: duplicate overrides for the same property', (sandbox }); defineTest('sync overrides: properties - readonly', (sandbox) => { - const obj = sandbox.create({ fqn: 'jsii-calc.compliance.SyncVirtualMethods', overrides: [{ property: 'readonlyProperty', cookie: 'myCookie1234' }] }); + const obj = sandbox.create({ fqn: 'jsii-calc.SyncVirtualMethods', overrides: [{ property: 'readonlyProperty', cookie: 'myCookie1234' }] }); sandbox.callbackHandler = makeSyncCallbackHandler(callback => { expect(callback.cookie).toBe('myCookie1234'); @@ -646,7 +646,7 @@ defineTest('sync overrides: properties - readonly', (sandbox) => { }); defineTest('sync overrides: properties - get calls super', (sandbox) => { - const obj = sandbox.create({ fqn: 'jsii-calc.compliance.SyncVirtualMethods', overrides: [{ property: 'theProperty' }] }); + const obj = sandbox.create({ fqn: 'jsii-calc.SyncVirtualMethods', overrides: [{ property: 'theProperty' }] }); sandbox.callbackHandler = makeSyncCallbackHandler(callback => { expect(callback.get!.property).toBe('theProperty'); @@ -659,7 +659,7 @@ defineTest('sync overrides: properties - get calls super', (sandbox) => { }); defineTest('sync overrides: properties - set calls super', (sandbox) => { - const obj = sandbox.create({ fqn: 'jsii-calc.compliance.SyncVirtualMethods', overrides: [{ property: 'theProperty' }] }); + const obj = sandbox.create({ fqn: 'jsii-calc.SyncVirtualMethods', overrides: [{ property: 'theProperty' }] }); sandbox.callbackHandler = makeSyncCallbackHandler(callback => { if (callback.get) { @@ -680,7 +680,7 @@ defineTest('sync overrides: properties - set calls super', (sandbox) => { defineTest('sync overrides: properties - verify keys are enumerable', (sandbox) => { const obj = sandbox.create({ fqn: 'Object', overrides: [{ property: 'foo' }, { property: 'readOnlyString' }] }); - const reader = sandbox.create({ fqn: 'jsii-calc.compliance.UsesInterfaceWithProperties', args: [obj] }); + const reader = sandbox.create({ fqn: 'jsii-calc.UsesInterfaceWithProperties', args: [obj] }); sandbox.callbackHandler = makeSyncCallbackHandler(callback => { if (callback.get?.property === 'foo') { @@ -702,7 +702,7 @@ defineTest('sync overrides: returns an object', (sandbox) => { const returnsNumber = sandbox.create({ fqn: 'Object', overrides: [{ method: 'obtainNumber' }, { property: 'numberProp' }] }); - const obj = sandbox.create({ fqn: 'jsii-calc.compliance.OverrideReturnsObject' }); + const obj = sandbox.create({ fqn: 'jsii-calc.OverrideReturnsObject' }); const number100 = sandbox.create({ fqn: '@scope/jsii-calc-lib.Number', args: [100] }); const number500 = sandbox.create({ fqn: '@scope/jsii-calc-lib.Number', args: [500] }); @@ -723,12 +723,12 @@ defineTest('sync overrides: returns an object', (sandbox) => { }); defineTest('fail to begin async from sync - method', (sandbox) => { - const obj = sandbox.create({ fqn: 'jsii-calc.compliance.SyncVirtualMethods', overrides: [{ method: 'virtualMethod', cookie: 'myCookie' }] }); + const obj = sandbox.create({ fqn: 'jsii-calc.SyncVirtualMethods', overrides: [{ method: 'virtualMethod', cookie: 'myCookie' }] }); let called = 0; sandbox.callbackHandler = makeSyncCallbackHandler(_ => { - const innerObj = sandbox.create({ fqn: 'jsii-calc.compliance.AsyncVirtualMethods' }); + const innerObj = sandbox.create({ fqn: 'jsii-calc.AsyncVirtualMethods' }); expect(() => sandbox.begin({ objref: innerObj, method: 'callMe' })).toThrow(); called++; @@ -746,7 +746,7 @@ defineTest('fail to begin async from sync - method', (sandbox) => { }); defineTest('the "Object" FQN can be used to allow creating empty objects with overrides which comply with an interface', (sandbox) => { - const obj = sandbox.create({ fqn: 'jsii-calc.compliance.Polymorphism' }); + const obj = sandbox.create({ fqn: 'jsii-calc.Polymorphism' }); const friendly = sandbox.create({ fqn: 'Object', overrides: [{ method: 'hello' }] }); sandbox.callbackHandler = makeSyncCallbackHandler(_ => 'oh, hello'); const ret = sandbox.invoke({ objref: obj, method: 'sayHello', args: [friendly] }); @@ -754,7 +754,7 @@ defineTest('the "Object" FQN can be used to allow creating empty objects with ov }); defineTest('literal objects can be returned when an interface is expected, and they will be adorned with jsii metadata so they can be interacted with', (sandbox) => { - const obj = sandbox.create({ fqn: 'jsii-calc.compliance.JSObjectLiteralForInterface' }); + const obj = sandbox.create({ fqn: 'jsii-calc.JSObjectLiteralForInterface' }); const ret = sandbox.invoke({ objref: obj, method: 'giveMeFriendly' }); expect(sandbox.invoke({ objref: ret.result, method: 'hello' })).toEqual({ result: 'I am literally friendly!' }); @@ -765,7 +765,7 @@ defineTest('literal objects can be returned when an interface is expected, and t }); defineTest('exceptions include a stack trace into the original source code', (sandbox) => { - const obj = sandbox.create({ fqn: 'jsii-calc.compliance.Thrower' }); + const obj = sandbox.create({ fqn: 'jsii-calc.Thrower' }); expect(() => { try { sandbox.invoke({ objref: obj, method: 'throwError' }); @@ -778,59 +778,59 @@ defineTest('exceptions include a stack trace into the original source code', (sa }); defineTest('variadic methods can be called', (sandbox) => { - const obj = sandbox.create({ fqn: 'jsii-calc.compliance.VariadicMethod' }); + const obj = sandbox.create({ fqn: 'jsii-calc.VariadicMethod' }); expect(sandbox.invoke({ objref: obj, method: 'asArray', args: [1, 2, 3, 4] }).result) .toEqual([1, 2, 3, 4]); }); defineTest('variadic methods can be called without any vararg', (sandbox) => { - const obj = sandbox.create({ fqn: 'jsii-calc.compliance.VariadicMethod', args: [1, 2, 3] }); + const obj = sandbox.create({ fqn: 'jsii-calc.VariadicMethod', args: [1, 2, 3] }); expect(sandbox.invoke({ objref: obj, method: 'asArray', args: [4] }).result) .toEqual([1, 2, 3, 4]); }); defineTest('static properties - get', (sandbox) => { - const value = sandbox.sget({ fqn: 'jsii-calc.compliance.Statics', property: 'Foo' }); + const value = sandbox.sget({ fqn: 'jsii-calc.Statics', property: 'Foo' }); expect(value).toEqual({ value: 'hello' }); }); defineTest('fails: static properties - set readonly', (sandbox) => { - expect(() => sandbox.sset({ fqn: 'jsii-calc.compliance.Statics', property: 'Foo', value: 123 })).toThrow(); + expect(() => sandbox.sset({ fqn: 'jsii-calc.Statics', property: 'Foo', value: 123 })).toThrow(); }); defineTest('static properties - set', (sandbox) => { - const defaultInstance = sandbox.sget({ fqn: 'jsii-calc.compliance.Statics', property: 'instance' }); + const defaultInstance = sandbox.sget({ fqn: 'jsii-calc.Statics', property: 'instance' }); expect(sandbox.get({ objref: defaultInstance.value, property: 'value' })).toEqual({ value: 'default' }); - const obj = sandbox.create({ fqn: 'jsii-calc.compliance.Statics', args: ['MyInstance'] }); - sandbox.sset({ fqn: 'jsii-calc.compliance.Statics', property: 'instance', value: obj }); + const obj = sandbox.create({ fqn: 'jsii-calc.Statics', args: ['MyInstance'] }); + sandbox.sset({ fqn: 'jsii-calc.Statics', property: 'instance', value: obj }); - const updatedInstance = sandbox.sget({ fqn: 'jsii-calc.compliance.Statics', property: 'instance' }); + const updatedInstance = sandbox.sget({ fqn: 'jsii-calc.Statics', property: 'instance' }); expect(sandbox.get({ objref: updatedInstance.value, property: 'value' })).toEqual({ value: 'MyInstance' }); }); defineTest('fails: static properties - get/set non-static', (sandbox) => { - expect(() => sandbox.sget({ fqn: 'jsii-calc.compliance.Statics', property: 'value' })).toThrow(/is not static/); - expect(() => sandbox.sset({ fqn: 'jsii-calc.compliance.Statics', property: 'value', value: 123 })).toThrow(/is not static/); + expect(() => sandbox.sget({ fqn: 'jsii-calc.Statics', property: 'value' })).toThrow(/is not static/); + expect(() => sandbox.sset({ fqn: 'jsii-calc.Statics', property: 'value', value: 123 })).toThrow(/is not static/); }); defineTest('fails: static properties - get/set not found', (sandbox) => { - expect(() => sandbox.sget({ fqn: 'jsii-calc.compliance.Statics', property: 'zoo' })).toThrow(/doesn't have a property/); - expect(() => sandbox.sset({ fqn: 'jsii-calc.compliance.Statics', property: 'bar', value: 123 })).toThrow(/doesn't have a property/); + expect(() => sandbox.sget({ fqn: 'jsii-calc.Statics', property: 'zoo' })).toThrow(/doesn't have a property/); + expect(() => sandbox.sset({ fqn: 'jsii-calc.Statics', property: 'bar', value: 123 })).toThrow(/doesn't have a property/); }); defineTest('static methods', (sandbox) => { - const result = sandbox.sinvoke({ fqn: 'jsii-calc.compliance.Statics', method: 'staticMethod', args: ['Jsii'] }); + const result = sandbox.sinvoke({ fqn: 'jsii-calc.Statics', method: 'staticMethod', args: ['Jsii'] }); expect(result).toEqual({ result: 'hello ,Jsii!' }); }); defineTest('fails: static methods - not found', (sandbox) => { - expect(() => sandbox.sinvoke({ fqn: 'jsii-calc.compliance.Statics', method: 'staticMethodNotFound', args: ['Jsii'] })) + expect(() => sandbox.sinvoke({ fqn: 'jsii-calc.Statics', method: 'staticMethodNotFound', args: ['Jsii'] })) .toThrow(/doesn't have a method/); }); defineTest('fails: static methods - not static', (sandbox) => { - expect(() => sandbox.sinvoke({ fqn: 'jsii-calc.compliance.Statics', method: 'justMethod', args: ['Jsii'] })) + expect(() => sandbox.sinvoke({ fqn: 'jsii-calc.Statics', method: 'justMethod', args: ['Jsii'] })) .toThrow(/is not a static method/); }); @@ -849,7 +849,7 @@ defineTest('fails if trying to load two different versions of the same module', }); defineTest('node.js standard library', async (sandbox) => { - const objref = sandbox.create({ fqn: 'jsii-calc.compliance.NodeStandardLibrary' }); + const objref = sandbox.create({ fqn: 'jsii-calc.NodeStandardLibrary' }); const promise = sandbox.begin({ objref, method: 'fsReadFile' }); await processPendingPromises(sandbox); @@ -867,7 +867,7 @@ defineTest('node.js standard library', async (sandbox) => { // @see awslabs/jsii#248 defineTest('object literals are returned by reference', (sandbox) => { - const objref = sandbox.create({ fqn: 'jsii-calc.compliance.ClassWithMutableObjectLiteralProperty' }); + const objref = sandbox.create({ fqn: 'jsii-calc.ClassWithMutableObjectLiteralProperty' }); const property = sandbox.get({ objref, property: 'mutableObject' }).value; const newValue = 'Bazinga!1!'; @@ -883,7 +883,7 @@ defineTest('object literals are returned by reference', (sandbox) => { defineTest('overrides: method instead of property with the same name', (sandbox) => { expect(() => { - sandbox.create({ fqn: 'jsii-calc.compliance.SyncVirtualMethods', overrides: [ + sandbox.create({ fqn: 'jsii-calc.SyncVirtualMethods', overrides: [ { method: 'theProperty' } ] }); }).toThrow(/Trying to override property/); @@ -891,14 +891,14 @@ defineTest('overrides: method instead of property with the same name', (sandbox) defineTest('overrides: property instead of method with the same name', (sandbox) => { expect(() => { - sandbox.create({ fqn: 'jsii-calc.compliance.SyncVirtualMethods', overrides: [ + sandbox.create({ fqn: 'jsii-calc.SyncVirtualMethods', overrides: [ { property: 'virtualMethod' } ] }); }).toThrow(/Trying to override method/); }); defineTest('overrides: skip overrides of private methods', (sandbox) => { - const objref = sandbox.create({ fqn: 'jsii-calc.compliance.DoNotOverridePrivates', overrides: [ + const objref = sandbox.create({ fqn: 'jsii-calc.DoNotOverridePrivates', overrides: [ { method: 'privateMethod' } ] }); @@ -911,7 +911,7 @@ defineTest('overrides: skip overrides of private methods', (sandbox) => { }); defineTest('overrides: skip overrides of private properties', (sandbox) => { - const objref = sandbox.create({ fqn: 'jsii-calc.compliance.DoNotOverridePrivates', overrides: [ + const objref = sandbox.create({ fqn: 'jsii-calc.DoNotOverridePrivates', overrides: [ { property: 'privateProperty' } ] }); @@ -924,16 +924,16 @@ defineTest('overrides: skip overrides of private properties', (sandbox) => { }); defineTest('nulls are converted to undefined - ctor', (sandbox) => { - sandbox.create({ fqn: 'jsii-calc.compliance.NullShouldBeTreatedAsUndefined', args: ['foo', null] }); + sandbox.create({ fqn: 'jsii-calc.NullShouldBeTreatedAsUndefined', args: ['foo', null] }); }); defineTest('nulls are converted to undefined - method arguments', (sandbox) => { - const objref = sandbox.create({ fqn: 'jsii-calc.compliance.NullShouldBeTreatedAsUndefined', args: ['foo'] }); + const objref = sandbox.create({ fqn: 'jsii-calc.NullShouldBeTreatedAsUndefined', args: ['foo'] }); sandbox.invoke({ objref, method: 'giveMeUndefined', args: [null] }); }); defineTest('nulls are converted to undefined - inside objects', (sandbox) => { - const objref = sandbox.create({ fqn: 'jsii-calc.compliance.NullShouldBeTreatedAsUndefined', args: ['foo'] }); + const objref = sandbox.create({ fqn: 'jsii-calc.NullShouldBeTreatedAsUndefined', args: ['foo'] }); sandbox.invoke({ objref, method: 'giveMeUndefinedInsideAnObject', args: [{ thisShouldBeUndefined: null, arrayWithThreeElementsAndUndefinedAsSecondArgument: ['one', null, 'two'] @@ -941,26 +941,26 @@ defineTest('nulls are converted to undefined - inside objects', (sandbox) => { }); defineTest('nulls are converted to undefined - properties', (sandbox) => { - const objref = sandbox.create({ fqn: 'jsii-calc.compliance.NullShouldBeTreatedAsUndefined', args: ['foo'] }); + const objref = sandbox.create({ fqn: 'jsii-calc.NullShouldBeTreatedAsUndefined', args: ['foo'] }); sandbox.set({ objref, property: 'changeMeToUndefined', value: null }); sandbox.invoke({ objref, method: 'verifyPropertyIsUndefined' }); }); defineTest('JSII_AGENT is undefined in node.js', (sandbox) => { - expect(sandbox.sget({ fqn: 'jsii-calc.compliance.JsiiAgent', property: 'jsiiAgent' }).value).toBe(undefined); + expect(sandbox.sget({ fqn: 'jsii-calc.JsiiAgent', property: 'jsiiAgent' }).value).toBe(undefined); }); defineTest('ObjRefs are labeled with the "most correct" type', (sandbox) => { - typeMatches('makeClass', { [TOKEN_REF]: /^jsii-calc.compliance.InbetweenClass@/ }); - typeMatches('makeInterface', { [TOKEN_REF]: /^jsii-calc.compliance.InbetweenClass@/, [TOKEN_INTERFACES]: ['jsii-calc.compliance.IPublicInterface'] }); - typeMatches('makeInterface2', { [TOKEN_REF]: /^jsii-calc.compliance.InbetweenClass@/ }); - typeMatches('makeInterfaces', [{ [TOKEN_REF]: /^jsii-calc.compliance.InbetweenClass@/, [TOKEN_INTERFACES]: ['jsii-calc.compliance.IPublicInterface'] }]); - typeMatches('hiddenInterface', { [TOKEN_REF]: /^Object@/, [TOKEN_INTERFACES]: ['jsii-calc.compliance.IPublicInterface'] }); - typeMatches('hiddenInterfaces', [{ [TOKEN_REF]: /^Object@/, [TOKEN_INTERFACES]: ['jsii-calc.compliance.IPublicInterface'] }]); - typeMatches('hiddenSubInterfaces', [{ [TOKEN_REF]: /^Object@/, [TOKEN_INTERFACES]: ['jsii-calc.compliance.IPublicInterface'] }]); + typeMatches('makeClass', { [TOKEN_REF]: /^jsii-calc.InbetweenClass@/ }); + typeMatches('makeInterface', { [TOKEN_REF]: /^jsii-calc.InbetweenClass@/, [TOKEN_INTERFACES]: ['jsii-calc.IPublicInterface'] }); + typeMatches('makeInterface2', { [TOKEN_REF]: /^jsii-calc.InbetweenClass@/ }); + typeMatches('makeInterfaces', [{ [TOKEN_REF]: /^jsii-calc.InbetweenClass@/, [TOKEN_INTERFACES]: ['jsii-calc.IPublicInterface'] }]); + typeMatches('hiddenInterface', { [TOKEN_REF]: /^Object@/, [TOKEN_INTERFACES]: ['jsii-calc.IPublicInterface'] }); + typeMatches('hiddenInterfaces', [{ [TOKEN_REF]: /^Object@/, [TOKEN_INTERFACES]: ['jsii-calc.IPublicInterface'] }]); + typeMatches('hiddenSubInterfaces', [{ [TOKEN_REF]: /^Object@/, [TOKEN_INTERFACES]: ['jsii-calc.IPublicInterface'] }]); function typeMatches(staticMethod: string, typeSpec: any) { - const ret = sandbox.sinvoke({ fqn: 'jsii-calc.compliance.Constructors', method: staticMethod }).result as api.ObjRef; + const ret = sandbox.sinvoke({ fqn: 'jsii-calc.Constructors', method: staticMethod }).result as api.ObjRef; expect(deepEqualWithRegex(ret, typeSpec), `Constructors.${staticMethod}() => ${JSON.stringify(ret)}, does not match ${JSON.stringify(typeSpec)}`).toBeTruthy(); } @@ -972,16 +972,16 @@ defineTest('ObjRefs are labeled with the "most correct" type', (sandbox) => { * https://github.com/awslabs/aws-cdk/issues/2304 */ defineTest('sinvoke allows access to the static context', (sandbox) => { - const response = sandbox.sinvoke({ fqn: 'jsii-calc.compliance.StaticContext', method: 'canAccessStaticContext' }); + const response = sandbox.sinvoke({ fqn: 'jsii-calc.StaticContext', method: 'canAccessStaticContext' }); expect(response.result).toBe(true); }); defineTest('sget allows access to the static context', (sandbox) => { - const response = sandbox.sget({ fqn: 'jsii-calc.compliance.StaticContext', property: 'staticVariable' }); + const response = sandbox.sget({ fqn: 'jsii-calc.StaticContext', property: 'staticVariable' }); expect(response.value).toBe(true); }); defineTest('sset allows access to the static context', (sandbox) => { - sandbox.sset({ fqn: 'jsii-calc.compliance.StaticContext', property: 'staticVariable', value: false }); - const response = sandbox.sget({ fqn: 'jsii-calc.compliance.StaticContext', property: 'staticVariable' }); + sandbox.sset({ fqn: 'jsii-calc.StaticContext', property: 'staticVariable', value: false }); + const response = sandbox.sget({ fqn: 'jsii-calc.StaticContext', property: 'staticVariable' }); expect(response.value).toBe(false); }); @@ -991,10 +991,10 @@ Test currently disabled because we don't have the infrastructure to make it pass https://github.com/aws/jsii/issues/399 defineTest('A single instance can be returned under two types', (sandbox) => { - const singleInstanceTwoTypes = create(sandbox, 'jsii-calc.compliance.SingleInstanceTwoTypes')(); + const singleInstanceTwoTypes = create(sandbox, 'jsii-calc.SingleInstanceTwoTypes')(); - typeMatches('interface1', { [TOKEN_REF]: /^jsii-calc.compliance.InbetweenClass@/ }); - typeMatches('interface2', { [TOKEN_REF]: /^jsii-calc.compliance.IPublicInterface@/ }); + typeMatches('interface1', { [TOKEN_REF]: /^jsii-calc.InbetweenClass@/ }); + typeMatches('interface2', { [TOKEN_REF]: /^jsii-calc.IPublicInterface@/ }); function typeMatches(method: string, typeSpec: any) { const ret = sandbox.invoke({ objref: singleInstanceTwoTypes, method }).result as api.ObjRef; @@ -1007,18 +1007,18 @@ defineTest('A single instance can be returned under two types', (sandbox) => { defineTest('toSandbox: "null" in hash values send to JS should be treated as non-existing key', (sandbox) => { const input = { option1: null, option2: 'hello' }; - const option1Exists = sandbox.sinvoke({ fqn: 'jsii-calc.compliance.EraseUndefinedHashValues', method: 'doesKeyExist', args: [input, 'option1'] }); + const option1Exists = sandbox.sinvoke({ fqn: 'jsii-calc.EraseUndefinedHashValues', method: 'doesKeyExist', args: [input, 'option1'] }); expect(option1Exists.result).toBe(false); - const option2Exists = sandbox.sinvoke({ fqn: 'jsii-calc.compliance.EraseUndefinedHashValues', method: 'doesKeyExist', args: [input, 'option2'] }); + const option2Exists = sandbox.sinvoke({ fqn: 'jsii-calc.EraseUndefinedHashValues', method: 'doesKeyExist', args: [input, 'option2'] }); expect(option2Exists.result).toBe(true); }); defineTest('toSandbox: "undefined" in hash values sent to JS should be treated as non-existing key', (sandbox) => { const input = { option1: undefined, option2: 'hello' }; - const option1Exists = sandbox.sinvoke({ fqn: 'jsii-calc.compliance.EraseUndefinedHashValues', method: 'doesKeyExist', args: [input, 'option1'] }); + const option1Exists = sandbox.sinvoke({ fqn: 'jsii-calc.EraseUndefinedHashValues', method: 'doesKeyExist', args: [input, 'option1'] }); expect(option1Exists.result).toBe(false); - const option2Exists = sandbox.sinvoke({ fqn: 'jsii-calc.compliance.EraseUndefinedHashValues', method: 'doesKeyExist', args: [input, 'option2'] }); + const option2Exists = sandbox.sinvoke({ fqn: 'jsii-calc.EraseUndefinedHashValues', method: 'doesKeyExist', args: [input, 'option2'] }); expect(option2Exists.result).toBe(true); }); @@ -1038,7 +1038,7 @@ defineTest('calculator can set and retrieve union properties', (sandbox) => { }); defineTest('can set and retrieve union properties', (sandbox) => { - const types = create(sandbox, 'jsii-calc.compliance.AllTypes')(); + const types = create(sandbox, 'jsii-calc.AllTypes')(); const typesSet = set(sandbox, types); const typesGet = get(sandbox, types); const mul = create(sandbox, 'jsii-calc.Multiply'); @@ -1070,64 +1070,64 @@ defineTest('can set and retrieve union properties', (sandbox) => { defineTest('require presence of required properties -- top level', (sandbox) => { expect(() => { - sandbox.sinvoke({ fqn: 'jsii-calc.compliance.StructPassing', method: 'roundTrip', args: [ + sandbox.sinvoke({ fqn: 'jsii-calc.StructPassing', method: 'roundTrip', args: [ 123, { incomplete: true } ] }); - }).toThrow(/Missing required properties for jsii-calc.compliance.TopLevelStruct: required,secondLevel/); + }).toThrow(/Missing required properties for jsii-calc.TopLevelStruct: required,secondLevel/); }); defineTest('require presence of required properties -- deeper level', (sandbox) => { expect(() => { - sandbox.sinvoke({ fqn: 'jsii-calc.compliance.StructPassing', method: 'roundTrip', args: [ + sandbox.sinvoke({ fqn: 'jsii-calc.StructPassing', method: 'roundTrip', args: [ 123, { required: 'abc', secondLevel: { alsoIncomplete: true, } } ] }); - }).toThrow(/Missing required properties for jsii-calc.compliance.SecondLevelStruct: deeperRequiredProp/); + }).toThrow(/Missing required properties for jsii-calc.SecondLevelStruct: deeperRequiredProp/); }); defineTest('notice when an array is passed instead of varargs', (sandbox) => { expect(() => { - sandbox.sinvoke({ fqn: 'jsii-calc.compliance.StructPassing', method: 'howManyVarArgsDidIPass', args: [ + sandbox.sinvoke({ fqn: 'jsii-calc.StructPassing', method: 'howManyVarArgsDidIPass', args: [ 123, [{ required: 'abc', secondLevel: 6 }] ] }); - }).toThrow(/Got an array where a jsii-calc.compliance.TopLevelStruct was expected/); + }).toThrow(/Got an array where a jsii-calc.TopLevelStruct was expected/); }); defineTest('Object ID does not get re-allocated when the constructor passes "this" out', (sandbox) => { sandbox.callbackHandler = makeSyncCallbackHandler((callback) => { expect(callback.invoke?.method).toBe('consumePartiallyInitializedThis'); expect(callback.invoke?.args).toEqual([{ - [api.TOKEN_REF]: 'jsii-calc.compliance.ConstructorPassesThisOut@10001' + [api.TOKEN_REF]: 'jsii-calc.ConstructorPassesThisOut@10001' }, { [api.TOKEN_DATE]: '1970-01-01T00:00:00.000Z' }, { - [api.TOKEN_ENUM]: 'jsii-calc.compliance.AllTypesEnum/THIS_IS_GREAT' + [api.TOKEN_ENUM]: 'jsii-calc.AllTypesEnum/THIS_IS_GREAT' }]); return 'OK'; }); const reflector = sandbox.create({ - fqn: 'jsii-calc.compliance.PartiallyInitializedThisConsumer', + fqn: 'jsii-calc.PartiallyInitializedThisConsumer', overrides: [{ method: 'consumePartiallyInitializedThis' }] }); - expect(reflector[api.TOKEN_REF]).toBe('jsii-calc.compliance.PartiallyInitializedThisConsumer@10000'); + expect(reflector[api.TOKEN_REF]).toBe('jsii-calc.PartiallyInitializedThisConsumer@10000'); - const classRef = sandbox.create({ fqn: 'jsii-calc.compliance.ConstructorPassesThisOut', args: [reflector] }); - expect(classRef[api.TOKEN_REF]).toBe('jsii-calc.compliance.ConstructorPassesThisOut@10001'); + const classRef = sandbox.create({ fqn: 'jsii-calc.ConstructorPassesThisOut', args: [reflector] }); + expect(classRef[api.TOKEN_REF]).toBe('jsii-calc.ConstructorPassesThisOut@10001'); }); defineTest('struct: empty object is turned to undefined by deserialization', (sandbox) => { - const object = sandbox.create({ fqn: 'jsii-calc.compliance.OptionalStructConsumer', args: [{}] }); + const object = sandbox.create({ fqn: 'jsii-calc.OptionalStructConsumer', args: [{}] }); const result = sandbox.get({ objref: object, property: 'parameterWasUndefined' }); expect(result.value).toBeTruthy(); // The parameter was undefined within the constructor' }); defineTest('struct: non-empty object deserializes properly', (sandbox) => { - const objref = sandbox.create({ fqn: 'jsii-calc.compliance.OptionalStructConsumer', args: [{ field: 'foo' }] }); + const objref = sandbox.create({ fqn: 'jsii-calc.OptionalStructConsumer', args: [{ field: 'foo' }] }); const result = sandbox.get({ objref, property: 'parameterWasUndefined' }); expect(result.value).toBeFalsy(); // The parameter was not undefined within the constructor' const field = sandbox.get({ objref, property: 'fieldValue' }); @@ -1135,28 +1135,28 @@ defineTest('struct: non-empty object deserializes properly', (sandbox) => { }); defineTest('erased base: can receive an instance of private type', (sandbox) => { - const objref = sandbox.sinvoke({ fqn: 'jsii-calc.erasureTests.JSII417PublicBaseOfBase', method: 'makeInstance' }); - expect(objref.result).toEqual({ [api.TOKEN_REF]: 'jsii-calc.erasureTests.JSII417PublicBaseOfBase@10000' }); + const objref = sandbox.sinvoke({ fqn: 'jsii-calc.JSII417PublicBaseOfBase', method: 'makeInstance' }); + expect(objref.result).toEqual({ [api.TOKEN_REF]: 'jsii-calc.JSII417PublicBaseOfBase@10000' }); }); defineTest('deserialize a struct by reference', (sandbox) => { sandbox.callbackHandler = makeSyncCallbackHandler(() => 'xoxoxox'); const objref = sandbox.create({ fqn: 'Object', overrides: [{ property: 'field' }] }); - const consumer = sandbox.create({ fqn: 'jsii-calc.compliance.OptionalStructConsumer', args: [objref] }); + const consumer = sandbox.create({ fqn: 'jsii-calc.OptionalStructConsumer', args: [objref] }); const value = sandbox.get({ objref: consumer, property: 'fieldValue' }); expect(value).toEqual({ value: 'xoxoxox' }); }); defineTest('correctly passes enum values across', (sandbox) => { - const stringLike = sandbox.sinvoke({ fqn: 'jsii-calc.compliance.EnumDispenser', method: 'randomStringLikeEnum' }); - expect(stringLike.result).toEqual({ '$jsii.enum': 'jsii-calc.compliance.StringEnum/B' }); + const stringLike = sandbox.sinvoke({ fqn: 'jsii-calc.EnumDispenser', method: 'randomStringLikeEnum' }); + expect(stringLike.result).toEqual({ '$jsii.enum': 'jsii-calc.StringEnum/B' }); - const integerLike = sandbox.sinvoke({ fqn: 'jsii-calc.compliance.EnumDispenser', method: 'randomIntegerLikeEnum' }); - expect(integerLike.result).toEqual({ '$jsii.enum': 'jsii-calc.compliance.AllTypesEnum/YOUR_ENUM_VALUE' }); + const integerLike = sandbox.sinvoke({ fqn: 'jsii-calc.EnumDispenser', method: 'randomIntegerLikeEnum' }); + expect(integerLike.result).toEqual({ '$jsii.enum': 'jsii-calc.AllTypesEnum/YOUR_ENUM_VALUE' }); }); defineTest('registers interfaces requested', (sandbox) => { - const interfaces = ['jsii-calc.compliance.IReturnsNumber', 'jsii-calc.compliance.IInterfaceWithOptionalMethodArguments']; + const interfaces = ['jsii-calc.IReturnsNumber', 'jsii-calc.IInterfaceWithOptionalMethodArguments']; const objref = sandbox.create({ fqn: 'Object', interfaces }); expect(objref).toEqual({ [TOKEN_REF]: 'Object@10000', [TOKEN_INTERFACES]: interfaces.sort() }); }); @@ -1165,7 +1165,7 @@ defineTest('retains the type of object literals', (sandbox) => { sandbox.callbackHandler = makeSyncCallbackHandler((cb) => { expect(cb.invoke?.method).toBe('provideAsInterface'); expect(cb.invoke?.objref).toMatchObject({ [TOKEN_REF]: 'Object@10000' }); - const realObject = sandbox.create({ fqn: 'jsii-calc.compliance.AnonymousImplementationProvider' }); + const realObject = sandbox.create({ fqn: 'jsii-calc.AnonymousImplementationProvider' }); const { result } = sandbox.invoke({ objref: realObject, method: 'provideAsInterface' }); sandbox.del({ objref: realObject }); return result; @@ -1173,36 +1173,36 @@ defineTest('retains the type of object literals', (sandbox) => { const objref = sandbox.create({ fqn: 'Object', - interfaces: ['jsii-calc.compliance.IAnonymousImplementationProvider'], + interfaces: ['jsii-calc.IAnonymousImplementationProvider'], overrides: [{ method: 'provideAsInterface' }], }); const result = sandbox.invoke({ objref, method: 'provideAsInterface' }); - expect(result).toEqual({ result: { [TOKEN_REF]: 'jsii-calc.compliance.Implementation@10002', [TOKEN_INTERFACES]: ['jsii-calc.compliance.IAnonymouslyImplementMe'] } }); + expect(result).toEqual({ result: { [TOKEN_REF]: 'jsii-calc.Implementation@10002', [TOKEN_INTERFACES]: ['jsii-calc.IAnonymouslyImplementMe'] } }); }); defineTest('correctly deserializes struct unions', (sandbox) => { - const unionConsumer = 'jsii-calc.compliance.StructUnionConsumer'; + const unionConsumer = 'jsii-calc.StructUnionConsumer'; const structA0: WireStruct = { [TOKEN_STRUCT]: { - fqn: 'jsii-calc.compliance.StructA', + fqn: 'jsii-calc.StructA', data: { requiredString: 'Present!', optionalString: 'Bazinga!' } } }; const structA1: WireStruct = { [TOKEN_STRUCT]: { - fqn: 'jsii-calc.compliance.StructA', + fqn: 'jsii-calc.StructA', data: { requiredString: 'Present!', optionalNumber: 1337 } } }; const structB0: WireStruct = { [TOKEN_STRUCT]: { - fqn: 'jsii-calc.compliance.StructB', + fqn: 'jsii-calc.StructB', data: { requiredString: 'Present!', optionalBoolean: true } } }; const structB1: WireStruct = { [TOKEN_STRUCT]: { - fqn: 'jsii-calc.compliance.StructB', + fqn: 'jsii-calc.StructB', data: { requiredString: 'Present!', optionalStructA: structA1 } } }; @@ -1219,7 +1219,7 @@ defineTest('correctly deserializes struct unions', (sandbox) => { }); defineTest('ANY deserializer: decorated structs', sandbox => { - const input = { '$jsii.struct': { 'fqn': 'jsii-calc.compliance.StructB', 'data': { 'requiredString': 'Bazinga!', 'optionalBoolean': false } } }; + const input = { '$jsii.struct': { 'fqn': 'jsii-calc.StructB', 'data': { 'requiredString': 'Bazinga!', 'optionalBoolean': false } } }; expect(deserializeAny(sandbox, input)).toStrictEqual({ 'requiredString': 'Bazinga!', 'optionalBoolean': false }); }); @@ -1247,11 +1247,11 @@ defineTest('ANY deserializer: wire date', sandbox => { }); defineTest('ANY deserializer: enum', sandbox => { - expect(deserializeAny(sandbox, { '$jsii.enum': 'jsii-calc.compliance.AllTypesEnum/YOUR_ENUM_VALUE' })).toStrictEqual(100); + expect(deserializeAny(sandbox, { '$jsii.enum': 'jsii-calc.AllTypesEnum/YOUR_ENUM_VALUE' })).toStrictEqual(100); }); defineTest('ANY deserializer: wire map', sandbox => { - const input = { '$jsii.map': { foo: 123, bar: { '$jsii.enum': 'jsii-calc.compliance.AllTypesEnum/YOUR_ENUM_VALUE' } } }; + const input = { '$jsii.map': { foo: 123, bar: { '$jsii.enum': 'jsii-calc.AllTypesEnum/YOUR_ENUM_VALUE' } } }; expect(deserializeAny(sandbox, input)).toStrictEqual({ foo: 123, bar: 100 @@ -1263,8 +1263,8 @@ defineTest('ANY deserializer: by value', sandbox => { const input = { foo: 123, - bar: { '$jsii.enum': 'jsii-calc.compliance.AllTypesEnum/YOUR_ENUM_VALUE' }, - struct: { '$jsii.struct': { 'fqn': 'jsii-calc.compliance.StructB', 'data': { 'requiredString': 'Bazinga!', 'optionalBoolean': false } } }, + bar: { '$jsii.enum': 'jsii-calc.AllTypesEnum/YOUR_ENUM_VALUE' }, + struct: { '$jsii.struct': { 'fqn': 'jsii-calc.StructB', 'data': { 'requiredString': 'Bazinga!', 'optionalBoolean': false } } }, ref }; @@ -1469,12 +1469,12 @@ function get(kernel: Kernel, objref: ObjRef) { * stringified version that the JavaScript code saw. */ function deserializeAny(sandbox: Kernel, input: any) { - const ret = sandbox.sinvoke({ fqn: 'jsii-calc.compliance.JsonFormatter', method: 'stringify', args: [input] }); + const ret = sandbox.sinvoke({ fqn: 'jsii-calc.JsonFormatter', method: 'stringify', args: [input] }); if (ret.result === undefined) { return undefined; } const json = JSON.parse(ret.result); return json; } function serializeAny(sandbox: Kernel, method: string): any { - return sandbox.sinvoke({ fqn: 'jsii-calc.compliance.JsonFormatter', method }).result; + return sandbox.sinvoke({ fqn: 'jsii-calc.JsonFormatter', method }).result; } From 2d4aa0f436cc5dca21c67504aca2e166ea8c39cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=91=A8=F0=9F=8F=BC=E2=80=8D=F0=9F=92=BB=20Romain=20M?= =?UTF-8?q?arcadier-Muller?= Date: Mon, 16 Mar 2020 14:36:00 +0100 Subject: [PATCH 13/18] minor fixes --- packages/jsii-diff/lib/index.ts | 6 +++++- tsconfig.json | 21 +++++++++++++-------- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/packages/jsii-diff/lib/index.ts b/packages/jsii-diff/lib/index.ts index 50928d65fc..18e6c1b335 100644 --- a/packages/jsii-diff/lib/index.ts +++ b/packages/jsii-diff/lib/index.ts @@ -59,7 +59,11 @@ export function compareEnums(original: reflect.Assembly, updated: reflect.Assemb } } -function* typePairs(xs: T[], updatedAssembly: reflect.Assembly, context: ComparisonContext): IterableIterator<[T, T]> { +function* typePairs( + xs: readonly T[], + updatedAssembly: reflect.Assembly, + context: ComparisonContext +): IterableIterator<[T, T]> { for (const origType of xs) { LOG.trace(origType.fqn); diff --git a/tsconfig.json b/tsconfig.json index 5e07b4a860..8b462437c8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,15 +2,8 @@ "files": [], "include": [], "references": [ - { "path": "packages/@jsii/dotnet-analyzers" }, - { "path": "packages/@jsii/dotnet-jsonmodel" }, - { "path": "packages/@jsii/dotnet-runtime" }, - { "path": "packages/@jsii/dotnet-runtime-test" }, - { "path": "packages/@jsii/java-runtime" }, - { "path": "packages/@jsii/kernel" }, - { "path": "packages/@jsii/runtime" }, - { "path": "packages/@jsii/spec" }, { "path": "packages/codemaker" }, + { "path": "packages/jsii-calc" }, { "path": "packages/jsii-config" }, { "path": "packages/jsii-diff" }, { "path": "packages/jsii-pacmak" }, @@ -18,5 +11,17 @@ { "path": "packages/jsii-rosetta" }, { "path": "packages/jsii" }, { "path": "packages/oo-ascii-tree" }, + { "path": "packages/@jsii/dotnet-analyzers" }, + { "path": "packages/@jsii/dotnet-jsonmodel" }, + { "path": "packages/@jsii/dotnet-runtime-test" }, + { "path": "packages/@jsii/dotnet-runtime" }, + { "path": "packages/@jsii/integ-test" }, + { "path": "packages/@jsii/java-runtime" }, + { "path": "packages/@jsii/kernel" }, + { "path": "packages/@jsii/runtime" }, + { "path": "packages/@jsii/spec" }, + { "path": "packages/@scope/jsii-calc-base-of-base" }, + { "path": "packages/@scope/jsii-calc-base" }, + { "path": "packages/@scope/jsii-calc-lib" } ] } From eec62fb988985a5223c15bced818a76fa9e50d9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=91=A8=F0=9F=8F=BC=E2=80=8D=F0=9F=92=BB=20Romain=20M?= =?UTF-8?q?arcadier-Muller?= Date: Mon, 16 Mar 2020 15:42:46 +0100 Subject: [PATCH 14/18] Fix bugs in compiler --- packages/jsii-calc/lib/submodule/child/index.ts | 9 +++++++++ packages/jsii-calc/lib/submodule/index.ts | 17 +++-------------- packages/jsii-calc/lib/submodule/my-class.ts | 10 ++++++++++ .../jsii-calc/lib/submodule/nested_submodule.ts | 16 ++++++++++++++++ .../lib/submodule/refers-to-parent/index.ts | 5 +++++ packages/jsii/lib/assembler.ts | 3 +++ 6 files changed, 46 insertions(+), 14 deletions(-) create mode 100644 packages/jsii-calc/lib/submodule/my-class.ts create mode 100644 packages/jsii-calc/lib/submodule/nested_submodule.ts create mode 100644 packages/jsii-calc/lib/submodule/refers-to-parent/index.ts diff --git a/packages/jsii-calc/lib/submodule/child/index.ts b/packages/jsii-calc/lib/submodule/child/index.ts index 84c4f1882e..57dd858234 100644 --- a/packages/jsii-calc/lib/submodule/child/index.ts +++ b/packages/jsii-calc/lib/submodule/child/index.ts @@ -1,3 +1,12 @@ export interface Structure { readonly bool: boolean; } + +export enum Goodness { + /** It's pretty good */ + PRETTY_GOOD, + /** It's really good */ + REALLY_GOOD, + /** It's amazingly good */ + AMAZINGLY_GOOD +} diff --git a/packages/jsii-calc/lib/submodule/index.ts b/packages/jsii-calc/lib/submodule/index.ts index df93b01d0d..e316cdc703 100644 --- a/packages/jsii-calc/lib/submodule/index.ts +++ b/packages/jsii-calc/lib/submodule/index.ts @@ -1,15 +1,4 @@ -export namespace nested_submodule { - export namespace deeplyNested { - export interface INamespaced { - readonly definedAt: string; - } - } - - export class Namespaced implements deeplyNested.INamespaced { - public readonly definedAt = __filename; - - private constructor() { } - } -} - export * as child from './child'; +export * from './my-class'; +export * from './nested_submodule'; +export * as back_references from './refers-to-parent'; diff --git a/packages/jsii-calc/lib/submodule/my-class.ts b/packages/jsii-calc/lib/submodule/my-class.ts new file mode 100644 index 0000000000..494e4ac6af --- /dev/null +++ b/packages/jsii-calc/lib/submodule/my-class.ts @@ -0,0 +1,10 @@ +import { nested_submodule } from './nested_submodule'; +import { Goodness } from './child'; + +export class MyClass implements nested_submodule.deeplyNested.INamespaced { + public readonly definedAt = __filename; + + public readonly goodness = Goodness.AMAZINGLY_GOOD; + + public constructor() { } +} diff --git a/packages/jsii-calc/lib/submodule/nested_submodule.ts b/packages/jsii-calc/lib/submodule/nested_submodule.ts new file mode 100644 index 0000000000..144e62e904 --- /dev/null +++ b/packages/jsii-calc/lib/submodule/nested_submodule.ts @@ -0,0 +1,16 @@ +import { Goodness } from './child'; + +export namespace nested_submodule { + export namespace deeplyNested { + export interface INamespaced { + readonly definedAt: string; + } + } + + export abstract class Namespaced implements deeplyNested.INamespaced { + public readonly definedAt = __filename; + public abstract readonly goodness: Goodness; + + private constructor() { } + } +} diff --git a/packages/jsii-calc/lib/submodule/refers-to-parent/index.ts b/packages/jsii-calc/lib/submodule/refers-to-parent/index.ts new file mode 100644 index 0000000000..4c4f5b11db --- /dev/null +++ b/packages/jsii-calc/lib/submodule/refers-to-parent/index.ts @@ -0,0 +1,5 @@ +import { MyClass } from '..'; + +export interface MyClassReference { + readonly reference: MyClass; +} diff --git a/packages/jsii/lib/assembler.ts b/packages/jsii/lib/assembler.ts index 6229581a88..562c42410f 100644 --- a/packages/jsii/lib/assembler.ts +++ b/packages/jsii/lib/assembler.ts @@ -429,6 +429,9 @@ export class Assembler implements Emitter { } } else if (ts.isModuleDeclaration(decl)) { this._addToSubmodule(ns, symbol); + } else if (ts.isNamespaceExport(decl)) { + this._addToSubmodule(ns, symbol); + this._registerNamespaces(symbol); } } } From 318c67e3146ef3d1526c9abf21cd799901f271c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=91=A8=F0=9F=8F=BC=E2=80=8D=F0=9F=92=BB=20Romain=20M?= =?UTF-8?q?arcadier-Muller?= Date: Mon, 16 Mar 2020 16:14:52 +0100 Subject: [PATCH 15/18] Fixing stuff in the submodules --- packages/jsii-calc/lib/submodule/my-class.ts | 3 +- packages/jsii-calc/test/assembly.jsii | 170 +++++++++++++++++- .../.jsii | 170 +++++++++++++++++- .../BackReferences/IMyClassReference.cs | 22 +++ .../BackReferences/MyClassReference.cs | 25 +++ .../BackReferences/MyClassReferenceProxy.cs | 26 +++ .../Submodule/Child/Goodness.cs | 33 ++++ .../CalculatorNamespace/Submodule/MyClass.cs | 63 +++++++ .../Submodule/NestedSubmodule/Namespaced.cs | 11 +- .../NestedSubmodule/NamespacedProxy.cs | 26 +++ .../amazon/jsii/tests/calculator/$Module.java | 3 + .../tests/calculator/submodule/MyClass.java | 60 +++++++ .../back_references/MyClassReference.java | 116 ++++++++++++ .../calculator/submodule/child/Goodness.java | 31 ++++ .../nested_submodule/Namespaced.java | 35 +++- .../test/expected.jsii-calc/python/setup.py | 1 + .../src/jsii_calc/submodule/__init__.py | 50 +++++- .../submodule/back_references/__init__.py | 51 ++++++ .../src/jsii_calc/submodule/child/__init__.py | 27 ++- .../submodule/nested_submodule/__init__.py | 28 ++- packages/jsii/lib/assembler.ts | 12 +- 21 files changed, 937 insertions(+), 26 deletions(-) create mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/BackReferences/IMyClassReference.cs create mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/BackReferences/MyClassReference.cs create mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/BackReferences/MyClassReferenceProxy.cs create mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/Goodness.cs create mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/MyClass.cs create mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/NamespacedProxy.cs create mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/MyClass.java create mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/back_references/MyClassReference.java create mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/Goodness.java create mode 100644 packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/back_references/__init__.py diff --git a/packages/jsii-calc/lib/submodule/my-class.ts b/packages/jsii-calc/lib/submodule/my-class.ts index 494e4ac6af..991f55679d 100644 --- a/packages/jsii-calc/lib/submodule/my-class.ts +++ b/packages/jsii-calc/lib/submodule/my-class.ts @@ -1,10 +1,11 @@ import { nested_submodule } from './nested_submodule'; import { Goodness } from './child'; +import { AllTypes } from '..'; export class MyClass implements nested_submodule.deeplyNested.INamespaced { public readonly definedAt = __filename; - public readonly goodness = Goodness.AMAZINGLY_GOOD; + public allTypes?: AllTypes; public constructor() { } } diff --git a/packages/jsii-calc/test/assembly.jsii b/packages/jsii-calc/test/assembly.jsii index 9e62f807b4..0db4ab2889 100644 --- a/packages/jsii-calc/test/assembly.jsii +++ b/packages/jsii-calc/test/assembly.jsii @@ -12154,6 +12154,142 @@ "name": "CompositionStringStyle", "namespace": "composition.CompositeOperation" }, + "jsii-calc.submodule.MyClass": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.submodule.MyClass", + "initializer": { + "docs": { + "stability": "experimental" + } + }, + "interfaces": [ + "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced" + ], + "kind": "class", + "locationInModule": { + "filename": "lib/submodule/my-class.ts", + "line": 5 + }, + "name": "MyClass", + "namespace": "submodule", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/submodule/my-class.ts", + "line": 6 + }, + "name": "definedAt", + "overrides": "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced", + "type": { + "primitive": "string" + } + }, + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/submodule/my-class.ts", + "line": 7 + }, + "name": "goodness", + "type": { + "fqn": "jsii-calc.submodule.child.Goodness" + } + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/submodule/my-class.ts", + "line": 8 + }, + "name": "allTypes", + "optional": true, + "type": { + "fqn": "jsii-calc.AllTypes" + } + } + ] + }, + "jsii-calc.submodule.back_references.MyClassReference": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.submodule.back_references.MyClassReference", + "kind": "interface", + "locationInModule": { + "filename": "lib/submodule/refers-to-parent/index.ts", + "line": 3 + }, + "name": "MyClassReference", + "namespace": "submodule.back_references", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/submodule/refers-to-parent/index.ts", + "line": 4 + }, + "name": "reference", + "type": { + "fqn": "jsii-calc.submodule.MyClass" + } + } + ] + }, + "jsii-calc.submodule.child.Goodness": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.submodule.child.Goodness", + "kind": "enum", + "locationInModule": { + "filename": "lib/submodule/child/index.ts", + "line": 5 + }, + "members": [ + { + "docs": { + "stability": "experimental", + "summary": "It's pretty good." + }, + "name": "PRETTY_GOOD" + }, + { + "docs": { + "stability": "experimental", + "summary": "It's really good." + }, + "name": "REALLY_GOOD" + }, + { + "docs": { + "stability": "experimental", + "summary": "It's amazingly good." + }, + "name": "AMAZINGLY_GOOD" + } + ], + "name": "Goodness", + "namespace": "submodule.child" + }, "jsii-calc.submodule.child.Structure": { "assembly": "jsii-calc", "datatype": true, @@ -12187,6 +12323,7 @@ ] }, "jsii-calc.submodule.nested_submodule.Namespaced": { + "abstract": true, "assembly": "jsii-calc", "docs": { "stability": "experimental" @@ -12197,8 +12334,8 @@ ], "kind": "class", "locationInModule": { - "filename": "lib/submodule/index.ts", - "line": 8 + "filename": "lib/submodule/nested_submodule.ts", + "line": 10 }, "name": "Namespaced", "namespace": "submodule.nested_submodule", @@ -12209,14 +12346,29 @@ }, "immutable": true, "locationInModule": { - "filename": "lib/submodule/index.ts", - "line": 9 + "filename": "lib/submodule/nested_submodule.ts", + "line": 11 }, "name": "definedAt", "overrides": "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced", "type": { "primitive": "string" } + }, + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/submodule/nested_submodule.ts", + "line": 12 + }, + "name": "goodness", + "type": { + "fqn": "jsii-calc.submodule.child.Goodness" + } } ] }, @@ -12228,8 +12380,8 @@ "fqn": "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced", "kind": "interface", "locationInModule": { - "filename": "lib/submodule/index.ts", - "line": 3 + "filename": "lib/submodule/nested_submodule.ts", + "line": 5 }, "name": "INamespaced", "namespace": "submodule.nested_submodule.deeplyNested", @@ -12241,8 +12393,8 @@ }, "immutable": true, "locationInModule": { - "filename": "lib/submodule/index.ts", - "line": 4 + "filename": "lib/submodule/nested_submodule.ts", + "line": 6 }, "name": "definedAt", "type": { @@ -12253,5 +12405,5 @@ } }, "version": "1.1.0", - "fingerprint": "q2bAmQlqnFhbni6+NVgvKc4llulsPPEXGKkQvoTi1jo=" + "fingerprint": "vtobmk8xL6Ke30Blb4NyDZ1X7T7J8lcKbbrmZtMtcpU=" } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/.jsii b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/.jsii index 9e62f807b4..0db4ab2889 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/.jsii +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/.jsii @@ -12154,6 +12154,142 @@ "name": "CompositionStringStyle", "namespace": "composition.CompositeOperation" }, + "jsii-calc.submodule.MyClass": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.submodule.MyClass", + "initializer": { + "docs": { + "stability": "experimental" + } + }, + "interfaces": [ + "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced" + ], + "kind": "class", + "locationInModule": { + "filename": "lib/submodule/my-class.ts", + "line": 5 + }, + "name": "MyClass", + "namespace": "submodule", + "properties": [ + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/submodule/my-class.ts", + "line": 6 + }, + "name": "definedAt", + "overrides": "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced", + "type": { + "primitive": "string" + } + }, + { + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/submodule/my-class.ts", + "line": 7 + }, + "name": "goodness", + "type": { + "fqn": "jsii-calc.submodule.child.Goodness" + } + }, + { + "docs": { + "stability": "experimental" + }, + "locationInModule": { + "filename": "lib/submodule/my-class.ts", + "line": 8 + }, + "name": "allTypes", + "optional": true, + "type": { + "fqn": "jsii-calc.AllTypes" + } + } + ] + }, + "jsii-calc.submodule.back_references.MyClassReference": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.submodule.back_references.MyClassReference", + "kind": "interface", + "locationInModule": { + "filename": "lib/submodule/refers-to-parent/index.ts", + "line": 3 + }, + "name": "MyClassReference", + "namespace": "submodule.back_references", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/submodule/refers-to-parent/index.ts", + "line": 4 + }, + "name": "reference", + "type": { + "fqn": "jsii-calc.submodule.MyClass" + } + } + ] + }, + "jsii-calc.submodule.child.Goodness": { + "assembly": "jsii-calc", + "docs": { + "stability": "experimental" + }, + "fqn": "jsii-calc.submodule.child.Goodness", + "kind": "enum", + "locationInModule": { + "filename": "lib/submodule/child/index.ts", + "line": 5 + }, + "members": [ + { + "docs": { + "stability": "experimental", + "summary": "It's pretty good." + }, + "name": "PRETTY_GOOD" + }, + { + "docs": { + "stability": "experimental", + "summary": "It's really good." + }, + "name": "REALLY_GOOD" + }, + { + "docs": { + "stability": "experimental", + "summary": "It's amazingly good." + }, + "name": "AMAZINGLY_GOOD" + } + ], + "name": "Goodness", + "namespace": "submodule.child" + }, "jsii-calc.submodule.child.Structure": { "assembly": "jsii-calc", "datatype": true, @@ -12187,6 +12323,7 @@ ] }, "jsii-calc.submodule.nested_submodule.Namespaced": { + "abstract": true, "assembly": "jsii-calc", "docs": { "stability": "experimental" @@ -12197,8 +12334,8 @@ ], "kind": "class", "locationInModule": { - "filename": "lib/submodule/index.ts", - "line": 8 + "filename": "lib/submodule/nested_submodule.ts", + "line": 10 }, "name": "Namespaced", "namespace": "submodule.nested_submodule", @@ -12209,14 +12346,29 @@ }, "immutable": true, "locationInModule": { - "filename": "lib/submodule/index.ts", - "line": 9 + "filename": "lib/submodule/nested_submodule.ts", + "line": 11 }, "name": "definedAt", "overrides": "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced", "type": { "primitive": "string" } + }, + { + "abstract": true, + "docs": { + "stability": "experimental" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/submodule/nested_submodule.ts", + "line": 12 + }, + "name": "goodness", + "type": { + "fqn": "jsii-calc.submodule.child.Goodness" + } } ] }, @@ -12228,8 +12380,8 @@ "fqn": "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced", "kind": "interface", "locationInModule": { - "filename": "lib/submodule/index.ts", - "line": 3 + "filename": "lib/submodule/nested_submodule.ts", + "line": 5 }, "name": "INamespaced", "namespace": "submodule.nested_submodule.deeplyNested", @@ -12241,8 +12393,8 @@ }, "immutable": true, "locationInModule": { - "filename": "lib/submodule/index.ts", - "line": 4 + "filename": "lib/submodule/nested_submodule.ts", + "line": 6 }, "name": "definedAt", "type": { @@ -12253,5 +12405,5 @@ } }, "version": "1.1.0", - "fingerprint": "q2bAmQlqnFhbni6+NVgvKc4llulsPPEXGKkQvoTi1jo=" + "fingerprint": "vtobmk8xL6Ke30Blb4NyDZ1X7T7J8lcKbbrmZtMtcpU=" } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/BackReferences/IMyClassReference.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/BackReferences/IMyClassReference.cs new file mode 100644 index 0000000000..d0bba143dc --- /dev/null +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/BackReferences/IMyClassReference.cs @@ -0,0 +1,22 @@ +using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.BackReferences +{ + /// + /// Stability: Experimental + /// + [JsiiInterface(nativeType: typeof(IMyClassReference), fullyQualifiedName: "jsii-calc.submodule.back_references.MyClassReference")] + public interface IMyClassReference + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: "reference", typeJson: "{\"fqn\":\"jsii-calc.submodule.MyClass\"}")] + Amazon.JSII.Tests.CalculatorNamespace.Submodule.MyClass Reference + { + get; + } + } +} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/BackReferences/MyClassReference.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/BackReferences/MyClassReference.cs new file mode 100644 index 0000000000..3abbb5b89f --- /dev/null +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/BackReferences/MyClassReference.cs @@ -0,0 +1,25 @@ +using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.BackReferences +{ + #pragma warning disable CS8618 + + /// + /// Stability: Experimental + /// + [JsiiByValue(fqn: "jsii-calc.submodule.back_references.MyClassReference")] + public class MyClassReference : Amazon.JSII.Tests.CalculatorNamespace.Submodule.BackReferences.IMyClassReference + { + /// + /// Stability: Experimental + /// + [JsiiProperty(name: "reference", typeJson: "{\"fqn\":\"jsii-calc.submodule.MyClass\"}", isOverride: true)] + public Amazon.JSII.Tests.CalculatorNamespace.Submodule.MyClass Reference + { + get; + set; + } + } +} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/BackReferences/MyClassReferenceProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/BackReferences/MyClassReferenceProxy.cs new file mode 100644 index 0000000000..e2c5c7874a --- /dev/null +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/BackReferences/MyClassReferenceProxy.cs @@ -0,0 +1,26 @@ +using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.BackReferences +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(IMyClassReference), fullyQualifiedName: "jsii-calc.submodule.back_references.MyClassReference")] + internal sealed class MyClassReferenceProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Submodule.BackReferences.IMyClassReference + { + private MyClassReferenceProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: "reference", typeJson: "{\"fqn\":\"jsii-calc.submodule.MyClass\"}")] + public Amazon.JSII.Tests.CalculatorNamespace.Submodule.MyClass Reference + { + get => GetInstanceProperty(); + } + } +} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/Goodness.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/Goodness.cs new file mode 100644 index 0000000000..d479b90294 --- /dev/null +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Child/Goodness.cs @@ -0,0 +1,33 @@ +using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child +{ + + /// + /// Stability: Experimental + /// + [JsiiEnum(nativeType: typeof(Goodness), fullyQualifiedName: "jsii-calc.submodule.child.Goodness")] + public enum Goodness + { + /// It's pretty good. + /// + /// Stability: Experimental + /// + [JsiiEnumMember(name: "PRETTY_GOOD")] + PRETTY_GOOD, + /// It's really good. + /// + /// Stability: Experimental + /// + [JsiiEnumMember(name: "REALLY_GOOD")] + REALLY_GOOD, + /// It's amazingly good. + /// + /// Stability: Experimental + /// + [JsiiEnumMember(name: "AMAZINGLY_GOOD")] + AMAZINGLY_GOOD + } +} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/MyClass.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/MyClass.cs new file mode 100644 index 0000000000..4d3fc83144 --- /dev/null +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/MyClass.cs @@ -0,0 +1,63 @@ +using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule +{ + /// + /// Stability: Experimental + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.MyClass), fullyQualifiedName: "jsii-calc.submodule.MyClass")] + public class MyClass : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.DeeplyNested.INamespaced + { + /// + /// Stability: Experimental + /// + public MyClass(): base(new DeputyProps(new object[]{})) + { + } + + /// Used by jsii to construct an instance of this class from a Javascript-owned object reference + /// The Javascript-owned object reference + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected MyClass(ByRefValue reference): base(reference) + { + } + + /// Used by jsii to construct an instance of this class from DeputyProps + /// The deputy props + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + protected MyClass(DeputyProps props): base(props) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: "definedAt", typeJson: "{\"primitive\":\"string\"}")] + public virtual string DefinedAt + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: "goodness", typeJson: "{\"fqn\":\"jsii-calc.submodule.child.Goodness\"}")] + public virtual Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.Goodness Goodness + { + get => GetInstanceProperty(); + } + + /// + /// Stability: Experimental + /// + [JsiiOptional] + [JsiiProperty(name: "allTypes", typeJson: "{\"fqn\":\"jsii-calc.AllTypes\"}", isOptional: true)] + public virtual Amazon.JSII.Tests.CalculatorNamespace.AllTypes? AllTypes + { + get => GetInstanceProperty(); + set => SetInstanceProperty(value); + } + } +} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/Namespaced.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/Namespaced.cs index a5d1fa2f8a..665a692841 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/Namespaced.cs +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/Namespaced.cs @@ -8,7 +8,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule /// Stability: Experimental /// [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.Namespaced), fullyQualifiedName: "jsii-calc.submodule.nested_submodule.Namespaced")] - public class Namespaced : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.DeeplyNested.INamespaced + public abstract class Namespaced : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.DeeplyNested.INamespaced { /// Used by jsii to construct an instance of this class from a Javascript-owned object reference /// The Javascript-owned object reference @@ -32,5 +32,14 @@ public virtual string DefinedAt { get => GetInstanceProperty(); } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: "goodness", typeJson: "{\"fqn\":\"jsii-calc.submodule.child.Goodness\"}")] + public abstract Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.Goodness Goodness + { + get; + } } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/NamespacedProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/NamespacedProxy.cs new file mode 100644 index 0000000000..8ba980f079 --- /dev/null +++ b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/NestedSubmodule/NamespacedProxy.cs @@ -0,0 +1,26 @@ +using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule +{ + /// + /// Stability: Experimental + /// + [JsiiTypeProxy(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.Namespaced), fullyQualifiedName: "jsii-calc.submodule.nested_submodule.Namespaced")] + internal sealed class NamespacedProxy : Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.Namespaced + { + private NamespacedProxy(ByRefValue reference): base(reference) + { + } + + /// + /// Stability: Experimental + /// + [JsiiProperty(name: "goodness", typeJson: "{\"fqn\":\"jsii-calc.submodule.child.Goodness\"}")] + public override Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.Goodness Goodness + { + get => GetInstanceProperty(); + } + } +} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/$Module.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/$Module.java index 90301d7615..3c583fc74c 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/$Module.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/$Module.java @@ -207,6 +207,9 @@ protected Class resolveClass(final String fqn) throws ClassNotFoundException case "jsii-calc.WithPrivatePropertyInConstructor": return software.amazon.jsii.tests.calculator.WithPrivatePropertyInConstructor.class; case "jsii-calc.composition.CompositeOperation": return software.amazon.jsii.tests.calculator.composition.CompositeOperation.class; case "jsii-calc.composition.CompositeOperation.CompositionStringStyle": return software.amazon.jsii.tests.calculator.composition.CompositeOperation.CompositionStringStyle.class; + case "jsii-calc.submodule.MyClass": return software.amazon.jsii.tests.calculator.submodule.MyClass.class; + case "jsii-calc.submodule.back_references.MyClassReference": return software.amazon.jsii.tests.calculator.submodule.back_references.MyClassReference.class; + case "jsii-calc.submodule.child.Goodness": return software.amazon.jsii.tests.calculator.submodule.child.Goodness.class; case "jsii-calc.submodule.child.Structure": return software.amazon.jsii.tests.calculator.submodule.child.Structure.class; case "jsii-calc.submodule.nested_submodule.Namespaced": return software.amazon.jsii.tests.calculator.submodule.nested_submodule.Namespaced.class; case "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced": return software.amazon.jsii.tests.calculator.submodule.nested_submodule.deeply_nested.INamespaced.class; diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/MyClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/MyClass.java new file mode 100644 index 0000000000..3c7642e65c --- /dev/null +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/MyClass.java @@ -0,0 +1,60 @@ +package software.amazon.jsii.tests.calculator.submodule; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.submodule.MyClass") +public class MyClass extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.submodule.nested_submodule.deeply_nested.INamespaced { + + protected MyClass(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected MyClass(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public MyClass() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getDefinedAt() { + return this.jsiiGet("definedAt", java.lang.String.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.submodule.child.Goodness getGoodness() { + return this.jsiiGet("goodness", software.amazon.jsii.tests.calculator.submodule.child.Goodness.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.AllTypes getAllTypes() { + return this.jsiiGet("allTypes", software.amazon.jsii.tests.calculator.AllTypes.class); + } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public void setAllTypes(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.AllTypes value) { + this.jsiiSet("allTypes", value); + } +} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/back_references/MyClassReference.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/back_references/MyClassReference.java new file mode 100644 index 0000000000..da53a9f033 --- /dev/null +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/back_references/MyClassReference.java @@ -0,0 +1,116 @@ +package software.amazon.jsii.tests.calculator.submodule.back_references; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.submodule.back_references.MyClassReference") +@software.amazon.jsii.Jsii.Proxy(MyClassReference.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +public interface MyClassReference extends software.amazon.jsii.JsiiSerializable { + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.submodule.MyClass getReference(); + + /** + * @return a {@link Builder} of {@link MyClassReference} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link MyClassReference} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static final class Builder { + private software.amazon.jsii.tests.calculator.submodule.MyClass reference; + + /** + * Sets the value of {@link MyClassReference#getReference} + * @param reference the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public Builder reference(software.amazon.jsii.tests.calculator.submodule.MyClass reference) { + this.reference = reference; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link MyClassReference} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public MyClassReference build() { + return new Jsii$Proxy(reference); + } + } + + /** + * An implementation for {@link MyClassReference} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements MyClassReference { + private final software.amazon.jsii.tests.calculator.submodule.MyClass reference; + + /** + * Constructor that initializes the object based on values retrieved from the JsiiObject. + * @param objRef Reference to the JSII managed object. + */ + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + this.reference = this.jsiiGet("reference", software.amazon.jsii.tests.calculator.submodule.MyClass.class); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + private Jsii$Proxy(final software.amazon.jsii.tests.calculator.submodule.MyClass reference) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.reference = java.util.Objects.requireNonNull(reference, "reference is required"); + } + + @Override + public software.amazon.jsii.tests.calculator.submodule.MyClass getReference() { + return this.reference; + } + + @Override + public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { + final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; + final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + + data.set("reference", om.valueToTree(this.getReference())); + + final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + struct.set("fqn", om.valueToTree("jsii-calc.submodule.back_references.MyClassReference")); + struct.set("data", data); + + final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); + obj.set("$jsii.struct", struct); + + return obj; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + MyClassReference.Jsii$Proxy that = (MyClassReference.Jsii$Proxy) o; + + return this.reference.equals(that.reference); + } + + @Override + public int hashCode() { + int result = this.reference.hashCode(); + return result; + } + } +} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/Goodness.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/Goodness.java new file mode 100644 index 0000000000..7adb4c2f2c --- /dev/null +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/child/Goodness.java @@ -0,0 +1,31 @@ +package software.amazon.jsii.tests.calculator.submodule.child; + +/** + * EXPERIMENTAL + */ +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.submodule.child.Goodness") +public enum Goodness { + /** + * It's pretty good. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + PRETTY_GOOD, + /** + * It's really good. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + REALLY_GOOD, + /** + * It's amazingly good. + *

+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + AMAZINGLY_GOOD, +} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/nested_submodule/Namespaced.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/nested_submodule/Namespaced.java index 15c5655731..55c46c15f1 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/nested_submodule/Namespaced.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/nested_submodule/Namespaced.java @@ -6,7 +6,7 @@ @javax.annotation.Generated(value = "jsii-pacmak") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.submodule.nested_submodule.Namespaced") -public class Namespaced extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.submodule.nested_submodule.deeply_nested.INamespaced { +public abstract class Namespaced extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.submodule.nested_submodule.deeply_nested.INamespaced { protected Namespaced(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); @@ -24,4 +24,37 @@ protected Namespaced(final software.amazon.jsii.JsiiObject.InitializationMode in public @org.jetbrains.annotations.NotNull java.lang.String getDefinedAt() { return this.jsiiGet("definedAt", java.lang.String.class); } + + /** + * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public abstract @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.submodule.child.Goodness getGoodness(); + + /** + * A proxy class which represents a concrete javascript instance of this type. + */ + final static class Jsii$Proxy extends software.amazon.jsii.tests.calculator.submodule.nested_submodule.Namespaced { + protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.submodule.child.Goodness getGoodness() { + return this.jsiiGet("goodness", software.amazon.jsii.tests.calculator.submodule.child.Goodness.class); + } + + /** + * EXPERIMENTAL + */ + @Override + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public @org.jetbrains.annotations.NotNull java.lang.String getDefinedAt() { + return this.jsiiGet("definedAt", java.lang.String.class); + } + } } diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/setup.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/setup.py index cc1ddfb9d1..8ec5e190db 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/setup.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/setup.py @@ -24,6 +24,7 @@ "jsii_calc.interface_in_namespace_includes_classes", "jsii_calc.interface_in_namespace_only_interface", "jsii_calc.submodule", + "jsii_calc.submodule.back_references", "jsii_calc.submodule.child", "jsii_calc.submodule.nested_submodule", "jsii_calc.submodule.nested_submodule.deeply_nested" diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/__init__.py index dfcdb5bfb0..6f220a897d 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/__init__.py @@ -8,12 +8,60 @@ import jsii.compat import publication +import jsii_calc +import jsii_calc.submodule.child import scope.jsii_calc_base import scope.jsii_calc_base_of_base import scope.jsii_calc_lib __jsii_assembly__ = jsii.JSIIAssembly.load("jsii-calc", "1.1.0", "jsii_calc", "jsii-calc@1.1.0.jsii.tgz") -__all__ = ["__jsii_assembly__"] + +@jsii.implements(nested_submodule.deeplyNested.INamespaced) +class MyClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.submodule.MyClass"): + """ + stability + :stability: experimental + """ + def __init__(self) -> None: + """ + stability + :stability: experimental + """ + jsii.create(MyClass, self, []) + + @builtins.property + @jsii.member(jsii_name="definedAt") + def defined_at(self) -> str: + """ + stability + :stability: experimental + """ + return jsii.get(self, "definedAt") + + @builtins.property + @jsii.member(jsii_name="goodness") + def goodness(self) -> "child.Goodness": + """ + stability + :stability: experimental + """ + return jsii.get(self, "goodness") + + @builtins.property + @jsii.member(jsii_name="allTypes") + def all_types(self) -> typing.Optional[jsii_calc.AllTypes]: + """ + stability + :stability: experimental + """ + return jsii.get(self, "allTypes") + + @all_types.setter + def all_types(self, value: typing.Optional[jsii_calc.AllTypes]): + jsii.set(self, "allTypes", value) + + +__all__ = ["MyClass", "__jsii_assembly__"] publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/back_references/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/back_references/__init__.py new file mode 100644 index 0000000000..7d061d3c1b --- /dev/null +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/back_references/__init__.py @@ -0,0 +1,51 @@ +import abc +import builtins +import datetime +import enum +import typing + +import jsii +import jsii.compat +import publication + +import scope.jsii_calc_base +import scope.jsii_calc_base_of_base +import scope.jsii_calc_lib + +__jsii_assembly__ = jsii.JSIIAssembly.load("jsii-calc", "1.1.0", "jsii_calc", "jsii-calc@1.1.0.jsii.tgz") + + +@jsii.data_type(jsii_type="jsii-calc.submodule.back_references.MyClassReference", jsii_struct_bases=[], name_mapping={'reference': 'reference'}) +class MyClassReference(): + def __init__(self, *, reference: jsii_calc.submodule.MyClass): + """ + :param reference: + + stability + :stability: experimental + """ + self._values = { + 'reference': reference, + } + + @builtins.property + def reference(self) -> jsii_calc.submodule.MyClass: + """ + stability + :stability: experimental + """ + return self._values.get('reference') + + def __eq__(self, rhs) -> bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs) -> bool: + return not (rhs == self) + + def __repr__(self) -> str: + return 'MyClassReference(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) + + +__all__ = ["MyClassReference", "__jsii_assembly__"] + +publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/child/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/child/__init__.py index 0fa3120e52..e322ab6c71 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/child/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/child/__init__.py @@ -15,6 +15,31 @@ __jsii_assembly__ = jsii.JSIIAssembly.load("jsii-calc", "1.1.0", "jsii_calc", "jsii-calc@1.1.0.jsii.tgz") +@jsii.enum(jsii_type="jsii-calc.submodule.child.Goodness") +class Goodness(enum.Enum): + """ + stability + :stability: experimental + """ + PRETTY_GOOD = "PRETTY_GOOD" + """It's pretty good. + + stability + :stability: experimental + """ + REALLY_GOOD = "REALLY_GOOD" + """It's really good. + + stability + :stability: experimental + """ + AMAZINGLY_GOOD = "AMAZINGLY_GOOD" + """It's amazingly good. + + stability + :stability: experimental + """ + @jsii.data_type(jsii_type="jsii-calc.submodule.child.Structure", jsii_struct_bases=[], name_mapping={'bool': 'bool'}) class Structure(): def __init__(self, *, bool: bool): @@ -46,6 +71,6 @@ def __repr__(self) -> str: return 'Structure(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items()) -__all__ = ["Structure", "__jsii_assembly__"] +__all__ = ["Goodness", "Structure", "__jsii_assembly__"] publication.publish() diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/__init__.py index 592a2f6a8b..1381d80e61 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/__init__.py +++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/__init__.py @@ -8,6 +8,7 @@ import jsii.compat import publication +import jsii_calc.submodule.child import scope.jsii_calc_base import scope.jsii_calc_base_of_base import scope.jsii_calc_lib @@ -16,11 +17,15 @@ @jsii.implements(deeplyNested.INamespaced) -class Namespaced(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.submodule.nested_submodule.Namespaced"): +class Namespaced(metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.submodule.nested_submodule.Namespaced"): """ stability :stability: experimental """ + @builtins.staticmethod + def __jsii_proxy_class__(): + return _NamespacedProxy + @builtins.property @jsii.member(jsii_name="definedAt") def defined_at(self) -> str: @@ -30,6 +35,27 @@ def defined_at(self) -> str: """ return jsii.get(self, "definedAt") + @builtins.property + @jsii.member(jsii_name="goodness") + @abc.abstractmethod + def goodness(self) -> jsii_calc.submodule.child.Goodness: + """ + stability + :stability: experimental + """ + ... + + +class _NamespacedProxy(Namespaced): + @builtins.property + @jsii.member(jsii_name="goodness") + def goodness(self) -> jsii_calc.submodule.child.Goodness: + """ + stability + :stability: experimental + """ + return jsii.get(self, "goodness") + __all__ = ["Namespaced", "__jsii_assembly__"] diff --git a/packages/jsii/lib/assembler.ts b/packages/jsii/lib/assembler.ts index 562c42410f..c6382a2d93 100644 --- a/packages/jsii/lib/assembler.ts +++ b/packages/jsii/lib/assembler.ts @@ -307,7 +307,15 @@ export class Assembler implements Emitter { this._diagnostic(node, ts.DiagnosticCategory.Error, `Could not find module for ${modulePath}`); return `unknown.${typeName}`; } - const submoduleNs = this._submoduleMap.get(type.symbol)?.name; + + let submodule = this._submoduleMap.get(type.symbol); + let submoduleNs = submodule?.name; + // Submodules can be in submodules themselves, so we crawl up the tree... + while (submodule != null && this._submoduleMap.has(submodule)) { + submodule = this._submoduleMap.get(submodule)!; + submoduleNs = `${submodule.name}.${submoduleNs}`; + } + const fqn = submoduleNs != null ? `${pkg.name}.${submoduleNs}.${typeName}` : `${pkg.name}.${typeName}`; @@ -430,7 +438,7 @@ export class Assembler implements Emitter { } else if (ts.isModuleDeclaration(decl)) { this._addToSubmodule(ns, symbol); } else if (ts.isNamespaceExport(decl)) { - this._addToSubmodule(ns, symbol); + this._submoduleMap.set(symbol, ns); this._registerNamespaces(symbol); } } From 9c7fe0954fd15a799f748ab18b067bfe8b0fffc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=91=A8=F0=9F=8F=BC=E2=80=8D=F0=9F=92=BB=20Romain=20M?= =?UTF-8?q?arcadier-Muller?= Date: Mon, 16 Mar 2020 16:24:45 +0100 Subject: [PATCH 16/18] Fixup test --- .../ComplianceTests.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/@jsii/dotnet-runtime-test/test/Amazon.JSII.Runtime.IntegrationTests/ComplianceTests.cs b/packages/@jsii/dotnet-runtime-test/test/Amazon.JSII.Runtime.IntegrationTests/ComplianceTests.cs index 49d8f1fbc2..0efed214b6 100644 --- a/packages/@jsii/dotnet-runtime-test/test/Amazon.JSII.Runtime.IntegrationTests/ComplianceTests.cs +++ b/packages/@jsii/dotnet-runtime-test/test/Amazon.JSII.Runtime.IntegrationTests/ComplianceTests.cs @@ -3,7 +3,7 @@ using System.Linq; using Amazon.JSII.Runtime.Deputy; using Amazon.JSII.Tests.CalculatorNamespace; -using CompositeOperation = Amazon.JSII.Tests.CalculatorNamespace.composition.CompositeOperation; +using CompositeOperation = Amazon.JSII.Tests.CalculatorNamespace.Composition.CompositeOperation; using Amazon.JSII.Tests.CalculatorNamespace.LibNamespace; using Newtonsoft.Json.Linq; using Xunit; @@ -1413,11 +1413,11 @@ public void AbstractMembersAreCorrectlyHandled() var abstractSuite = new AbstractSuiteImpl(); Assert.Equal("Wrapped>", abstractSuite.WorkItAll("Oomf!")); } - + private sealed class AbstractSuiteImpl : AbstractSuite { private string _property = ""; - + public AbstractSuiteImpl() {} protected override string SomeMethod(string str) @@ -1440,7 +1440,7 @@ public void CollectionOfInterfaces_ListOfStructs() Assert.IsAssignableFrom(elt); } } - + [Fact(DisplayName = Prefix + nameof(CollectionOfInterfaces_ListOfInterfaces))] public void CollectionOfInterfaces_ListOfInterfaces() { @@ -1449,7 +1449,7 @@ public void CollectionOfInterfaces_ListOfInterfaces() Assert.IsAssignableFrom(elt); } } - + [Fact(DisplayName = Prefix + nameof(CollectionOfInterfaces_MapOfStructs))] public void CollectionOfInterfaces_MapOfStructs() { @@ -1458,7 +1458,7 @@ public void CollectionOfInterfaces_MapOfStructs() Assert.IsAssignableFrom(elt); } } - + [Fact(DisplayName = Prefix + nameof(CollectionOfInterfaces_MapOfInterfaces))] public void CollectionOfInterfaces_MapOfInterfaces() { From fd2d41a3915f9230fa93b01036f1a85b9c91e64c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=91=A8=F0=9F=8F=BC=E2=80=8D=F0=9F=92=BB=20Romain=20M?= =?UTF-8?q?arcadier-Muller?= Date: Mon, 16 Mar 2020 16:49:18 +0100 Subject: [PATCH 17/18] fix test expectations --- .../test/__snapshots__/jsii-tree.test.js.snap | 89 +++++++++++++++---- .../__snapshots__/type-system.test.js.snap | 1 + 2 files changed, 74 insertions(+), 16 deletions(-) diff --git a/packages/jsii-reflect/test/__snapshots__/jsii-tree.test.js.snap b/packages/jsii-reflect/test/__snapshots__/jsii-tree.test.js.snap index 0b7fd39dcf..3bb819e968 100644 --- a/packages/jsii-reflect/test/__snapshots__/jsii-tree.test.js.snap +++ b/packages/jsii-reflect/test/__snapshots__/jsii-tree.test.js.snap @@ -66,14 +66,26 @@ exports[`jsii-tree --all 1`] = ` │ │ │ └── DECORATED (experimental) │ │ └─┬ submodule │ │ ├─┬ submodules - │ │ │ ├─┬ child + │ │ │ ├─┬ back_references │ │ │ │ └─┬ types - │ │ │ │ └─┬ interface Structure (experimental) + │ │ │ │ └─┬ interface MyClassReference (experimental) │ │ │ │ └─┬ members - │ │ │ │ └─┬ bool property (experimental) + │ │ │ │ └─┬ reference property (experimental) │ │ │ │ ├── abstract │ │ │ │ ├── immutable - │ │ │ │ └── type: boolean + │ │ │ │ └── type: jsii-calc.submodule.MyClass + │ │ │ ├─┬ child + │ │ │ │ └─┬ types + │ │ │ │ ├─┬ interface Structure (experimental) + │ │ │ │ │ └─┬ members + │ │ │ │ │ └─┬ bool property (experimental) + │ │ │ │ │ ├── abstract + │ │ │ │ │ ├── immutable + │ │ │ │ │ └── type: boolean + │ │ │ │ └─┬ enum Goodness (experimental) + │ │ │ │ ├── PRETTY_GOOD (experimental) + │ │ │ │ ├── REALLY_GOOD (experimental) + │ │ │ │ └── AMAZINGLY_GOOD (experimental) │ │ │ └─┬ nested_submodule │ │ │ ├─┬ submodules │ │ │ │ └─┬ deeplyNested @@ -88,10 +100,26 @@ exports[`jsii-tree --all 1`] = ` │ │ │ └─┬ class Namespaced (experimental) │ │ │ ├── interfaces: INamespaced │ │ │ └─┬ members - │ │ │ └─┬ definedAt property (experimental) + │ │ │ ├─┬ definedAt property (experimental) + │ │ │ │ ├── immutable + │ │ │ │ └── type: string + │ │ │ └─┬ goodness property (experimental) + │ │ │ ├── abstract │ │ │ ├── immutable - │ │ │ └── type: string - │ │ └── types + │ │ │ └── type: jsii-calc.submodule.child.Goodness + │ │ └─┬ types + │ │ └─┬ class MyClass (experimental) + │ │ ├── interfaces: INamespaced + │ │ └─┬ members + │ │ ├── () initializer (experimental) + │ │ ├─┬ definedAt property (experimental) + │ │ │ ├── immutable + │ │ │ └── type: string + │ │ ├─┬ goodness property (experimental) + │ │ │ ├── immutable + │ │ │ └── type: jsii-calc.submodule.child.Goodness + │ │ └─┬ allTypes property (experimental) + │ │ └── type: Optional │ └─┬ types │ ├─┬ class AbstractClass (experimental) │ │ ├── base: AbstractClassBase @@ -2466,9 +2494,13 @@ exports[`jsii-tree --inheritance 1`] = ` │ │ │ └── enum CompositionStringStyle │ │ └─┬ submodule │ │ ├─┬ submodules + │ │ │ ├─┬ back_references + │ │ │ │ └─┬ types + │ │ │ │ └── interface MyClassReference │ │ │ ├─┬ child │ │ │ │ └─┬ types - │ │ │ │ └── interface Structure + │ │ │ │ ├── interface Structure + │ │ │ │ └── enum Goodness │ │ │ └─┬ nested_submodule │ │ │ ├─┬ submodules │ │ │ │ └─┬ deeplyNested @@ -2477,7 +2509,9 @@ exports[`jsii-tree --inheritance 1`] = ` │ │ │ └─┬ types │ │ │ └─┬ class Namespaced │ │ │ └── interfaces: INamespaced - │ │ └── types + │ │ └─┬ types + │ │ └─┬ class MyClass + │ │ └── interfaces: INamespaced │ └─┬ types │ ├─┬ class AbstractClass │ │ ├── base: AbstractClassBase @@ -2791,11 +2825,20 @@ exports[`jsii-tree --members 1`] = ` │ │ │ └── DECORATED │ │ └─┬ submodule │ │ ├─┬ submodules - │ │ │ ├─┬ child + │ │ │ ├─┬ back_references │ │ │ │ └─┬ types - │ │ │ │ └─┬ interface Structure + │ │ │ │ └─┬ interface MyClassReference │ │ │ │ └─┬ members - │ │ │ │ └── bool property + │ │ │ │ └── reference property + │ │ │ ├─┬ child + │ │ │ │ └─┬ types + │ │ │ │ ├─┬ interface Structure + │ │ │ │ │ └─┬ members + │ │ │ │ │ └── bool property + │ │ │ │ └─┬ enum Goodness + │ │ │ │ ├── PRETTY_GOOD + │ │ │ │ ├── REALLY_GOOD + │ │ │ │ └── AMAZINGLY_GOOD │ │ │ └─┬ nested_submodule │ │ │ ├─┬ submodules │ │ │ │ └─┬ deeplyNested @@ -2806,8 +2849,15 @@ exports[`jsii-tree --members 1`] = ` │ │ │ └─┬ types │ │ │ └─┬ class Namespaced │ │ │ └─┬ members - │ │ │ └── definedAt property - │ │ └── types + │ │ │ ├── definedAt property + │ │ │ └── goodness property + │ │ └─┬ types + │ │ └─┬ class MyClass + │ │ └─┬ members + │ │ ├── () initializer + │ │ ├── definedAt property + │ │ ├── goodness property + │ │ └── allTypes property │ └─┬ types │ ├─┬ class AbstractClass │ │ └─┬ members @@ -3843,6 +3893,7 @@ exports[`jsii-tree --signatures 1`] = ` │ ├── composition │ └─┬ submodule │ └─┬ submodules + │ ├── back_references │ ├── child │ └─┬ nested_submodule │ └─┬ submodules @@ -3874,9 +3925,13 @@ exports[`jsii-tree --types 1`] = ` │ │ │ └── enum CompositionStringStyle │ │ └─┬ submodule │ │ ├─┬ submodules + │ │ │ ├─┬ back_references + │ │ │ │ └─┬ types + │ │ │ │ └── interface MyClassReference │ │ │ ├─┬ child │ │ │ │ └─┬ types - │ │ │ │ └── interface Structure + │ │ │ │ ├── interface Structure + │ │ │ │ └── enum Goodness │ │ │ └─┬ nested_submodule │ │ │ ├─┬ submodules │ │ │ │ └─┬ deeplyNested @@ -3884,7 +3939,8 @@ exports[`jsii-tree --types 1`] = ` │ │ │ │ └── interface INamespaced │ │ │ └─┬ types │ │ │ └── class Namespaced - │ │ └── types + │ │ └─┬ types + │ │ └── class MyClass │ └─┬ types │ ├── class AbstractClass │ ├── class AbstractClassBase @@ -4102,6 +4158,7 @@ exports[`jsii-tree 1`] = ` │ ├── composition │ └─┬ submodule │ └─┬ submodules + │ ├── back_references │ ├── child │ └─┬ nested_submodule │ └─┬ submodules diff --git a/packages/jsii-reflect/test/__snapshots__/type-system.test.js.snap b/packages/jsii-reflect/test/__snapshots__/type-system.test.js.snap index 789457d589..c039455160 100644 --- a/packages/jsii-reflect/test/__snapshots__/type-system.test.js.snap +++ b/packages/jsii-reflect/test/__snapshots__/type-system.test.js.snap @@ -130,6 +130,7 @@ Array [ "jsii-calc.VoidCallback", "jsii-calc.WithPrivatePropertyInConstructor", "jsii-calc.composition.CompositeOperation", + "jsii-calc.submodule.MyClass", "jsii-calc.submodule.nested_submodule.Namespaced", ] `; From 72877ca8e805ebddd442fbf1dc79f8f5e4677995 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=91=A8=F0=9F=8F=BC=E2=80=8D=F0=9F=92=BB=20Romain=20M?= =?UTF-8?q?arcadier-Muller?= Date: Mon, 16 Mar 2020 17:31:43 +0100 Subject: [PATCH 18/18] Fix path capitalization (MacOS case-insentive FS made this... tough) --- .../{composition => Composition}/CompositeOperation.cs | 0 .../{composition => Composition}/CompositeOperationProxy.cs | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{composition => Composition}/CompositeOperation.cs (100%) rename packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/{composition => Composition}/CompositeOperationProxy.cs (100%) diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/composition/CompositeOperation.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Composition/CompositeOperation.cs similarity index 100% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/composition/CompositeOperation.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Composition/CompositeOperation.cs diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/composition/CompositeOperationProxy.cs b/packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Composition/CompositeOperationProxy.cs similarity index 100% rename from packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/composition/CompositeOperationProxy.cs rename to packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Composition/CompositeOperationProxy.cs