From e5fcedff9cafdbe67d3a1da12803607a45efd919 Mon Sep 17 00:00:00 2001 From: Elad Ben-Israel Date: Wed, 3 Mar 2021 11:19:10 +0200 Subject: [PATCH 1/2] fix(go): invalid generated output for a class with a keyword name Since these structs are all private, simply add a `_jsiiClass` postfix to the name. Fixes #2637 --- packages/jsii-calc/lib/compliance.ts | 30 + packages/jsii-calc/lib/submodule/index.ts | 1 + packages/jsii-calc/lib/submodule/issue2637.ts | 8 + packages/jsii-calc/test/assembly.jsii | 116 +- .../lib/targets/go/types/go-type.ts | 4 +- .../__snapshots__/target-dotnet.test.ts.snap | 188 ++ .../__snapshots__/target-go.test.ts.snap | 2325 +++++++++-------- .../__snapshots__/target-java.test.ts.snap | 235 ++ .../__snapshots__/target-python.test.ts.snap | 72 + .../test/__snapshots__/jsii-tree.test.ts.snap | 110 +- .../test/__snapshots__/tree.test.ts.snap | 73 +- .../__snapshots__/type-system.test.ts.snap | 3 + 12 files changed, 2002 insertions(+), 1163 deletions(-) create mode 100644 packages/jsii-calc/lib/submodule/issue2637.ts diff --git a/packages/jsii-calc/lib/compliance.ts b/packages/jsii-calc/lib/compliance.ts index 70cca534b1..add3569240 100644 --- a/packages/jsii-calc/lib/compliance.ts +++ b/packages/jsii-calc/lib/compliance.ts @@ -2925,3 +2925,33 @@ export class TestStructWithEnum { }; } } + +/** + * Docstrings with period + * @see https://github.com/aws/jsii/issues/2638 + */ +export class Issue2638 { + /** + * First sentence. Second sentence. Third sentence. + */ + public constructor() { + return; + } +} + +export class Issue2638B { + public constructor() { + return; // no docs + } +} + +/** + * A class named "Default" + * + * @see https://github.com/aws/jsii/issues/2637 + */ +export class Default { + public pleaseCompile() { + return; + } +} diff --git a/packages/jsii-calc/lib/submodule/index.ts b/packages/jsii-calc/lib/submodule/index.ts index 3bba85f95e..09938c1642 100644 --- a/packages/jsii-calc/lib/submodule/index.ts +++ b/packages/jsii-calc/lib/submodule/index.ts @@ -5,3 +5,4 @@ export * as returnsparam from './returns-param'; export * from './my-class'; export * from './nested_submodule'; export * as back_references from './refers-to-parent'; +export * from './issue2637'; diff --git a/packages/jsii-calc/lib/submodule/issue2637.ts b/packages/jsii-calc/lib/submodule/issue2637.ts new file mode 100644 index 0000000000..40bf19fd3c --- /dev/null +++ b/packages/jsii-calc/lib/submodule/issue2637.ts @@ -0,0 +1,8 @@ +/** + * A struct named "Default" + * + * @see https://github.com/aws/jsii/issues/2637 + */ +export interface Default { + readonly foo: number; +} diff --git a/packages/jsii-calc/test/assembly.jsii b/packages/jsii-calc/test/assembly.jsii index 133b042915..6a03cc06a9 100644 --- a/packages/jsii-calc/test/assembly.jsii +++ b/packages/jsii-calc/test/assembly.jsii @@ -3373,6 +3373,38 @@ ], "name": "DataRenderer" }, + "jsii-calc.Default": { + "assembly": "jsii-calc", + "docs": { + "see": "https://github.com/aws/jsii/issues/2637", + "stability": "stable", + "summary": "A class named \"Default\"." + }, + "fqn": "jsii-calc.Default", + "initializer": { + "docs": { + "stability": "stable" + } + }, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2953 + }, + "methods": [ + { + "docs": { + "stability": "stable" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2954 + }, + "name": "pleaseCompile" + } + ], + "name": "Default" + }, "jsii-calc.DefaultedConstructorArgument": { "assembly": "jsii-calc", "docs": { @@ -7219,6 +7251,54 @@ ], "name": "Isomorphism" }, + "jsii-calc.Issue2638": { + "assembly": "jsii-calc", + "docs": { + "see": "https://github.com/aws/jsii/issues/2638", + "stability": "stable", + "summary": "Docstrings with period." + }, + "fqn": "jsii-calc.Issue2638", + "initializer": { + "docs": { + "remarks": "Second sentence. Third sentence.", + "stability": "stable", + "summary": "First sentence." + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2937 + } + }, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2933 + }, + "name": "Issue2638" + }, + "jsii-calc.Issue2638B": { + "assembly": "jsii-calc", + "docs": { + "stability": "stable" + }, + "fqn": "jsii-calc.Issue2638B", + "initializer": { + "docs": { + "stability": "stable" + }, + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2943 + } + }, + "kind": "class", + "locationInModule": { + "filename": "lib/compliance.ts", + "line": 2942 + }, + "name": "Issue2638B" + }, "jsii-calc.JSII417Derived": { "assembly": "jsii-calc", "base": "jsii-calc.JSII417PublicBaseOfBase", @@ -14139,6 +14219,40 @@ "name": "OnlyStaticMethods", "namespace": "onlystatic" }, + "jsii-calc.submodule.Default": { + "assembly": "jsii-calc", + "datatype": true, + "docs": { + "see": "https://github.com/aws/jsii/issues/2637", + "stability": "stable", + "summary": "A struct named \"Default\"." + }, + "fqn": "jsii-calc.submodule.Default", + "kind": "interface", + "locationInModule": { + "filename": "lib/submodule/issue2637.ts", + "line": 6 + }, + "name": "Default", + "namespace": "submodule", + "properties": [ + { + "abstract": true, + "docs": { + "stability": "stable" + }, + "immutable": true, + "locationInModule": { + "filename": "lib/submodule/issue2637.ts", + "line": 7 + }, + "name": "foo", + "type": { + "primitive": "number" + } + } + ] + }, "jsii-calc.submodule.MyClass": { "assembly": "jsii-calc", "docs": { @@ -14756,5 +14870,5 @@ } }, "version": "3.20.120", - "fingerprint": "GfueSeyZdyEIZp4V4lbddw+TnoCel74KSDMPxp2phmw=" + "fingerprint": "rH6rK3iHNatb4ojll7sd8rvJ4k/89Kybg89FRd96Hno=" } diff --git a/packages/jsii-pacmak/lib/targets/go/types/go-type.ts b/packages/jsii-pacmak/lib/targets/go/types/go-type.ts index ceadf081bc..c7dd0a5c91 100644 --- a/packages/jsii-pacmak/lib/targets/go/types/go-type.ts +++ b/packages/jsii-pacmak/lib/targets/go/types/go-type.ts @@ -14,7 +14,9 @@ export abstract class GoType { public constructor(public pkg: Package, public type: Type) { this.name = toPascalCase(type.name); - this.proxyName = toCamelCase(type.name); + // add "_jsiiClass" postfix to private struct name to avoid keyword + // conflicts such as "default". see https://github.com/aws/jsii/issues/2637 + this.proxyName = `${toCamelCase(type.name)}_jsiiClass`; this.fqn = type.fqn; } diff --git a/packages/jsii-pacmak/test/generated-code/__snapshots__/target-dotnet.test.ts.snap b/packages/jsii-pacmak/test/generated-code/__snapshots__/target-dotnet.test.ts.snap index a09e5303eb..57e34d287b 100644 --- a/packages/jsii-pacmak/test/generated-code/__snapshots__/target-dotnet.test.ts.snap +++ b/packages/jsii-pacmak/test/generated-code/__snapshots__/target-dotnet.test.ts.snap @@ -2688,6 +2688,7 @@ exports[`Generated code for "jsii-calc": / 1`] = ` ┃ ┣━ 📄 ConsumerCanRingBell.cs ┃ ┣━ 📄 ConsumersOfThisCrazyTypeSystem.cs ┃ ┣━ 📄 DataRenderer.cs + ┃ ┣━ 📄 Default.cs ┃ ┣━ 📄 DefaultedConstructorArgument.cs ┃ ┣━ 📄 Demonstrate982.cs ┃ ┣━ 📄 DeprecatedClass.cs @@ -2804,6 +2805,8 @@ exports[`Generated code for "jsii-calc": / 1`] = ` ┃ ┣━ 📄 ISecondLevelStruct.cs ┃ ┣━ 📄 ISmellyStruct.cs ┃ ┣━ 📄 Isomorphism.cs + ┃ ┣━ 📄 Issue2638.cs + ┃ ┣━ 📄 Issue2638B.cs ┃ ┣━ 📄 IStableInterface.cs ┃ ┣━ 📄 IStableStruct.cs ┃ ┣━ 📄 IStructA.cs @@ -2913,6 +2916,8 @@ exports[`Generated code for "jsii-calc": / 1`] = ` ┃ ┃ ┃ ┣━ 📄 SomeEnum.cs ┃ ┃ ┃ ┣━ 📄 SomeStruct.cs ┃ ┃ ┃ ┗━ 📄 Structure.cs + ┃ ┃ ┣━ 📄 Default.cs + ┃ ┃ ┣━ 📄 IDefault.cs ┃ ┃ ┣━ 📁 Isolated ┃ ┃ ┃ ┗━ 📄 Kwargs.cs ┃ ┃ ┣━ 📄 MyClass.cs @@ -5114,6 +5119,48 @@ namespace Amazon.JSII.Tests.CalculatorNamespace `; +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Default.cs 1`] = ` +using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// A class named "Default". + /// + /// See: https://github.com/aws/jsii/issues/2637 + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Default), fullyQualifiedName: "jsii-calc.Default")] + public class Default : DeputyBase + { + public Default(): base(new DeputyProps(System.Array.Empty())) + { + } + + /// 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 Default(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 Default(DeputyProps props): base(props) + { + } + + [JsiiMethod(name: "pleaseCompile")] + public virtual void PleaseCompile() + { + InvokeInstanceVoidMethod(new System.Type[]{}, new object[]{}); + } + } +} + +`; + exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/DefaultedConstructorArgument.cs 1`] = ` using Amazon.JSII.Runtime.Deputy; @@ -10863,6 +10910,78 @@ namespace Amazon.JSII.Tests.CalculatorNamespace `; +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Issue2638.cs 1`] = ` +using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + /// Docstrings with period. + /// + /// See: https://github.com/aws/jsii/issues/2638 + /// + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Issue2638), fullyQualifiedName: "jsii-calc.Issue2638")] + public class Issue2638 : DeputyBase + { + /// First sentence. + /// + /// Second sentence. Third sentence. + /// + public Issue2638(): base(new DeputyProps(System.Array.Empty())) + { + } + + /// 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 Issue2638(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 Issue2638(DeputyProps props): base(props) + { + } + } +} + +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Issue2638B.cs 1`] = ` +using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace +{ + [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Issue2638B), fullyQualifiedName: "jsii-calc.Issue2638B")] + public class Issue2638B : DeputyBase + { + public Issue2638B(): base(new DeputyProps(System.Array.Empty())) + { + } + + /// 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 Issue2638B(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 Issue2638B(DeputyProps props): base(props) + { + } + } +} + +`; + exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/JSII417Derived.cs 1`] = ` using Amazon.JSII.Runtime.Deputy; @@ -15094,6 +15213,75 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child `; +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Default.cs 1`] = ` +using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule +{ + #pragma warning disable CS8618 + + /// A struct named "Default". + /// + /// See: https://github.com/aws/jsii/issues/2637 + /// + [JsiiByValue(fqn: "jsii-calc.submodule.Default")] + public class Default : Amazon.JSII.Tests.CalculatorNamespace.Submodule.IDefault + { + [JsiiProperty(name: "foo", typeJson: "{\\"primitive\\":\\"number\\"}", isOverride: true)] + public double Foo + { + get; + set; + } + } +} + +`; + +exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/IDefault.cs 1`] = ` +using Amazon.JSII.Runtime.Deputy; + +#pragma warning disable CS0672,CS0809,CS1591 + +namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule +{ + /// A struct named "Default". + /// + /// See: https://github.com/aws/jsii/issues/2637 + /// + [JsiiInterface(nativeType: typeof(IDefault), fullyQualifiedName: "jsii-calc.submodule.Default")] + public interface IDefault + { + [JsiiProperty(name: "foo", typeJson: "{\\"primitive\\":\\"number\\"}")] + double Foo + { + get; + } + + /// A struct named "Default". + /// + /// See: https://github.com/aws/jsii/issues/2637 + /// + [JsiiTypeProxy(nativeType: typeof(IDefault), fullyQualifiedName: "jsii-calc.submodule.Default")] + internal sealed class _Proxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Submodule.IDefault + { + private _Proxy(ByRefValue reference): base(reference) + { + } + + [JsiiProperty(name: "foo", typeJson: "{\\"primitive\\":\\"number\\"}")] + public double Foo + { + get => GetInstanceProperty()!; + } + } + } +} + +`; + exports[`Generated code for "jsii-calc": /dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/Submodule/Isolated/Kwargs.cs 1`] = ` using Amazon.JSII.Runtime.Deputy; diff --git a/packages/jsii-pacmak/test/generated-code/__snapshots__/target-go.test.ts.snap b/packages/jsii-pacmak/test/generated-code/__snapshots__/target-go.test.ts.snap index 4ee4e17ee9..7ec01a267c 100644 --- a/packages/jsii-pacmak/test/generated-code/__snapshots__/target-go.test.ts.snap +++ b/packages/jsii-pacmak/test/generated-code/__snapshots__/target-go.test.ts.snap @@ -287,14 +287,14 @@ type Base interface { } // The jsii proxy struct for Base -type base struct { +type base_jsiiClass struct { _ byte // padding } func NewBase() Base { _init_.Initialize() - b := base{} + b := base_jsiiClass{} _jsii_.Create( "@scope/jsii-calc-base.Base", @@ -308,7 +308,7 @@ func NewBase() Base { } // Returns: the name of the class (to verify native type names are created for derived classes). -func (b *base) TypeName() interface{} { +func (b *base_jsiiClass) TypeName() interface{} { var returns interface{} _jsii_.Invoke( @@ -339,11 +339,11 @@ type IBaseInterface interface { } // The jsii proxy for IBaseInterface -type iBaseInterface struct { +type iBaseInterface_jsiiClass struct { scopejsiicalcbaseofbase.IVeryBaseInterface // extends @scope/jsii-calc-base-of-base.IVeryBaseInterface } -func (i *iBaseInterface) Bar() { +func (i *iBaseInterface_jsiiClass) Bar() { _jsii_.InvokeVoid( i, "bar", @@ -356,14 +356,14 @@ type StaticConsumer interface { } // The jsii proxy struct for StaticConsumer -type staticConsumer struct { +type staticConsumer_jsiiClass struct { _ byte // padding } func NewStaticConsumer() StaticConsumer { _init_.Initialize() - s := staticConsumer{} + s := staticConsumer_jsiiClass{} _jsii_.Create( "@scope/jsii-calc-base.StaticConsumer", @@ -406,7 +406,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "typeName", GoMethod: "TypeName"}, }, func() interface{} { - return &base{} + return &base_jsiiClass{} }, ) _jsii_.RegisterStruct( @@ -421,7 +421,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "foo", GoMethod: "Foo"}, }, func() interface{} { - i := iBaseInterface{} + i := iBaseInterface_jsiiClass{} _jsii_.InitJsiiProxy(&i.IVeryBaseInterface) return &i }, @@ -431,7 +431,7 @@ func init() { reflect.TypeOf((*StaticConsumer)(nil)).Elem(), nil, // no members func() interface{} { - return &staticConsumer{} + return &staticConsumer_jsiiClass{} }, ) } @@ -721,11 +721,11 @@ type IVeryBaseInterface interface { } // The jsii proxy for IVeryBaseInterface -type iVeryBaseInterface struct { +type iVeryBaseInterface_jsiiClass struct { _ byte // padding } -func (i *iVeryBaseInterface) Foo() { +func (i *iVeryBaseInterface_jsiiClass) Foo() { _jsii_.InvokeVoid( i, "foo", @@ -737,7 +737,7 @@ type StaticConsumer interface { } // The jsii proxy struct for StaticConsumer -type staticConsumer struct { +type staticConsumer_jsiiClass struct { _ byte // padding } @@ -758,14 +758,14 @@ type Very interface { } // The jsii proxy struct for Very -type very struct { +type very_jsiiClass struct { _ byte // padding } func NewVery() Very { _init_.Initialize() - v := very{} + v := very_jsiiClass{} _jsii_.Create( "@scope/jsii-calc-base-of-base.Very", @@ -779,7 +779,7 @@ func NewVery() Very { } // Experimental. -func (v *very) Hey() float64 { +func (v *very_jsiiClass) Hey() float64 { var returns float64 _jsii_.Invoke( @@ -816,7 +816,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "foo", GoMethod: "Foo"}, }, func() interface{} { - return &iVeryBaseInterface{} + return &iVeryBaseInterface_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -824,7 +824,7 @@ func init() { reflect.TypeOf((*StaticConsumer)(nil)).Elem(), nil, // no members func() interface{} { - return &staticConsumer{} + return &staticConsumer_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -834,7 +834,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "hey", GoMethod: "Hey"}, }, func() interface{} { - return &very{} + return &very_jsiiClass{} }, ) _jsii_.RegisterStruct( @@ -1172,11 +1172,11 @@ type IDoublable interface { } // The jsii proxy for IDoublable -type iDoublable struct { +type iDoublable_jsiiClass struct { _ byte // padding } -func (i *iDoublable) DoubleValue() float64 { +func (i *iDoublable_jsiiClass) DoubleValue() float64 { var returns float64 _jsii_.Get( i, @@ -1198,11 +1198,11 @@ type IFriendly interface { } // The jsii proxy for IFriendly -type iFriendly struct { +type iFriendly_jsiiClass struct { _ byte // padding } -func (i *iFriendly) Hello() string { +func (i *iFriendly_jsiiClass) Hello() string { var returns string _jsii_.Invoke( @@ -1227,11 +1227,11 @@ type IThreeLevelsInterface interface { } // The jsii proxy for IThreeLevelsInterface -type iThreeLevelsInterface struct { +type iThreeLevelsInterface_jsiiClass struct { scopejsiicalcbase.IBaseInterface // extends @scope/jsii-calc-base.IBaseInterface } -func (i *iThreeLevelsInterface) Baz() { +func (i *iThreeLevelsInterface_jsiiClass) Baz() { _jsii_.InvokeVoid( i, "baz", @@ -1262,12 +1262,12 @@ type Number interface { } // The jsii proxy struct for Number -type number struct { - numericValue // extends @scope/jsii-calc-lib.NumericValue - iDoublable // implements @scope/jsii-calc-lib.IDoublable +type number_jsiiClass struct { + numericValue_jsiiClass // extends @scope/jsii-calc-lib.NumericValue + iDoublable_jsiiClass // implements @scope/jsii-calc-lib.IDoublable } -func (n *number) DoubleValue() float64 { +func (n *number_jsiiClass) DoubleValue() float64 { var returns float64 _jsii_.Get( n, @@ -1277,7 +1277,7 @@ func (n *number) DoubleValue() float64 { return returns } -func (n *number) Value() float64 { +func (n *number_jsiiClass) Value() float64 { var returns float64 _jsii_.Get( n, @@ -1292,7 +1292,7 @@ func (n *number) Value() float64 { func NewNumber(value float64) Number { _init_.Initialize() - n := number{} + n := number_jsiiClass{} _jsii_.Create( "@scope/jsii-calc-lib.Number", @@ -1307,7 +1307,7 @@ func NewNumber(value float64) Number { // String representation of the value. // Deprecated. -func (n *number) ToString() string { +func (n *number_jsiiClass) ToString() string { var returns string _jsii_.Invoke( @@ -1322,7 +1322,7 @@ func (n *number) ToString() string { // Returns: the name of the class (to verify native type names are created for derived classes). // Deprecated. -func (n *number) TypeName() interface{} { +func (n *number_jsiiClass) TypeName() interface{} { var returns interface{} _jsii_.Invoke( @@ -1344,11 +1344,11 @@ type NumericValue interface { } // The jsii proxy struct for NumericValue -type numericValue struct { +type numericValue_jsiiClass struct { scopejsiicalcbase.Base // extends @scope/jsii-calc-base.Base } -func (n *numericValue) Value() float64 { +func (n *numericValue_jsiiClass) Value() float64 { var returns float64 _jsii_.Get( n, @@ -1362,7 +1362,7 @@ func (n *numericValue) Value() float64 { func NewNumericValue() NumericValue { _init_.Initialize() - n := numericValue{} + n := numericValue_jsiiClass{} _jsii_.Create( "@scope/jsii-calc-lib.NumericValue", @@ -1377,7 +1377,7 @@ func NewNumericValue() NumericValue { // String representation of the value. // Deprecated. -func (n *numericValue) ToString() string { +func (n *numericValue_jsiiClass) ToString() string { var returns string _jsii_.Invoke( @@ -1398,14 +1398,14 @@ type Operation interface { } // The jsii proxy struct for Operation -type operation struct { - numericValue // extends @scope/jsii-calc-lib.NumericValue +type operation_jsiiClass struct { + numericValue_jsiiClass // extends @scope/jsii-calc-lib.NumericValue } func NewOperation() Operation { _init_.Initialize() - o := operation{} + o := operation_jsiiClass{} _jsii_.Create( "@scope/jsii-calc-lib.Operation", @@ -1420,7 +1420,7 @@ func NewOperation() Operation { // String representation of the value. // Deprecated. -func (o *operation) ToString() string { +func (o *operation_jsiiClass) ToString() string { var returns string _jsii_.Invoke( @@ -1481,7 +1481,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "doubleValue", GoGetter: "DoubleValue"}, }, func() interface{} { - return &iDoublable{} + return &iDoublable_jsiiClass{} }, ) _jsii_.RegisterInterface( @@ -1491,7 +1491,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "hello", GoMethod: "Hello"}, }, func() interface{} { - return &iFriendly{} + return &iFriendly_jsiiClass{} }, ) _jsii_.RegisterInterface( @@ -1503,7 +1503,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "foo", GoMethod: "Foo"}, }, func() interface{} { - i := iThreeLevelsInterface{} + i := iThreeLevelsInterface_jsiiClass{} _jsii_.InitJsiiProxy(&i.IBaseInterface) return &i }, @@ -1522,9 +1522,9 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "value", GoGetter: "Value"}, }, func() interface{} { - n := number{} - _jsii_.InitJsiiProxy(&n.numericValue) - _jsii_.InitJsiiProxy(&n.iDoublable) + n := number_jsiiClass{} + _jsii_.InitJsiiProxy(&n.numericValue_jsiiClass) + _jsii_.InitJsiiProxy(&n.iDoublable_jsiiClass) return &n }, ) @@ -1537,7 +1537,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "value", GoGetter: "Value"}, }, func() interface{} { - n := numericValue{} + n := numericValue_jsiiClass{} _jsii_.InitJsiiProxy(&n.Base) return &n }, @@ -1551,8 +1551,8 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "value", GoGetter: "Value"}, }, func() interface{} { - o := operation{} - _jsii_.InitJsiiProxy(&o.numericValue) + o := operation_jsiiClass{} + _jsii_.InitJsiiProxy(&o.numericValue_jsiiClass) return &o }, ) @@ -1579,11 +1579,11 @@ type IReflectable interface { } // The jsii proxy for IReflectable -type iReflectable struct { +type iReflectable_jsiiClass struct { _ byte // padding } -func (i *iReflectable) Entries() []ReflectableEntry { +func (i *iReflectable_jsiiClass) Entries() []ReflectableEntry { var returns []ReflectableEntry _jsii_.Get( i, @@ -1599,7 +1599,7 @@ type NestingClass interface { } // The jsii proxy struct for NestingClass -type nestingClass struct { +type nestingClass_jsiiClass struct { _ byte // padding } @@ -1610,11 +1610,11 @@ type NestedClass interface { } // The jsii proxy struct for NestedClass -type nestedClass struct { +type nestedClass_jsiiClass struct { _ byte // padding } -func (n *nestedClass) Property() string { +func (n *nestedClass_jsiiClass) Property() string { var returns string _jsii_.Get( n, @@ -1628,7 +1628,7 @@ func (n *nestedClass) Property() string { func NewNestedClass() NestedClass { _init_.Initialize() - n := nestedClass{} + n := nestedClass_jsiiClass{} _jsii_.Create( "@scope/jsii-calc-lib.submodule.NestingClass.NestedClass", @@ -1664,14 +1664,14 @@ type Reflector interface { } // The jsii proxy struct for Reflector -type reflector struct { +type reflector_jsiiClass struct { _ byte // padding } func NewReflector() Reflector { _init_.Initialize() - r := reflector{} + r := reflector_jsiiClass{} _jsii_.Create( "@scope/jsii-calc-lib.submodule.Reflector", @@ -1685,7 +1685,7 @@ func NewReflector() Reflector { } // Deprecated. -func (r *reflector) AsMap(reflectable IReflectable) map[string]interface{} { +func (r *reflector_jsiiClass) AsMap(reflectable IReflectable) map[string]interface{} { var returns map[string]interface{} _jsii_.Invoke( @@ -1718,7 +1718,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "entries", GoGetter: "Entries"}, }, func() interface{} { - return &iReflectable{} + return &iReflectable_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -1726,7 +1726,7 @@ func init() { reflect.TypeOf((*NestingClass)(nil)).Elem(), nil, // no members func() interface{} { - return &nestingClass{} + return &nestingClass_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -1736,7 +1736,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "property", GoGetter: "Property"}, }, func() interface{} { - return &nestedClass{} + return &nestedClass_jsiiClass{} }, ) _jsii_.RegisterStruct( @@ -1754,7 +1754,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "asMap", GoMethod: "AsMap"}, }, func() interface{} { - return &reflector{} + return &reflector_jsiiClass{} }, ) } @@ -2098,11 +2098,11 @@ type CompositeOperation interface { } // The jsii proxy struct for CompositeOperation -type compositeOperation struct { +type compositeOperation_jsiiClass struct { scopejsiicalclib.Operation // extends @scope/jsii-calc-lib.Operation } -func (c *compositeOperation) DecorationPostfixes() []string { +func (c *compositeOperation_jsiiClass) DecorationPostfixes() []string { var returns []string _jsii_.Get( c, @@ -2112,7 +2112,7 @@ func (c *compositeOperation) DecorationPostfixes() []string { return returns } -func (c *compositeOperation) DecorationPrefixes() []string { +func (c *compositeOperation_jsiiClass) DecorationPrefixes() []string { var returns []string _jsii_.Get( c, @@ -2122,7 +2122,7 @@ func (c *compositeOperation) DecorationPrefixes() []string { return returns } -func (c *compositeOperation) Expression() scopejsiicalclib.NumericValue { +func (c *compositeOperation_jsiiClass) Expression() scopejsiicalclib.NumericValue { var returns scopejsiicalclib.NumericValue _jsii_.Get( c, @@ -2132,7 +2132,7 @@ func (c *compositeOperation) Expression() scopejsiicalclib.NumericValue { return returns } -func (c *compositeOperation) StringStyle() CompositionStringStyle { +func (c *compositeOperation_jsiiClass) StringStyle() CompositionStringStyle { var returns CompositionStringStyle _jsii_.Get( c, @@ -2142,7 +2142,7 @@ func (c *compositeOperation) StringStyle() CompositionStringStyle { return returns } -func (c *compositeOperation) Value() float64 { +func (c *compositeOperation_jsiiClass) Value() float64 { var returns float64 _jsii_.Get( c, @@ -2156,7 +2156,7 @@ func (c *compositeOperation) Value() float64 { func NewCompositeOperation() CompositeOperation { _init_.Initialize() - c := compositeOperation{} + c := compositeOperation_jsiiClass{} _jsii_.Create( "jsii-calc.composition.CompositeOperation", @@ -2169,7 +2169,7 @@ func NewCompositeOperation() CompositeOperation { return &c } -func (c *compositeOperation) SetDecorationPostfixes(val []string) { +func (c *compositeOperation_jsiiClass) SetDecorationPostfixes(val []string) { _jsii_.Set( c, "decorationPostfixes", @@ -2177,7 +2177,7 @@ func (c *compositeOperation) SetDecorationPostfixes(val []string) { ) } -func (c *compositeOperation) SetDecorationPrefixes(val []string) { +func (c *compositeOperation_jsiiClass) SetDecorationPrefixes(val []string) { _jsii_.Set( c, "decorationPrefixes", @@ -2185,7 +2185,7 @@ func (c *compositeOperation) SetDecorationPrefixes(val []string) { ) } -func (c *compositeOperation) SetStringStyle(val CompositionStringStyle) { +func (c *compositeOperation_jsiiClass) SetStringStyle(val CompositionStringStyle) { _jsii_.Set( c, "stringStyle", @@ -2194,7 +2194,7 @@ func (c *compositeOperation) SetStringStyle(val CompositionStringStyle) { } // (deprecated) String representation of the value. -func (c *compositeOperation) ToString() string { +func (c *compositeOperation_jsiiClass) ToString() string { var returns string _jsii_.Invoke( @@ -2241,7 +2241,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "value", GoGetter: "Value"}, }, func() interface{} { - c := compositeOperation{} + c := compositeOperation_jsiiClass{} _jsii_.InitJsiiProxy(&c.Operation) return &c }, @@ -2272,11 +2272,11 @@ type Base interface { } // The jsii proxy struct for Base -type base struct { +type base_jsiiClass struct { _ byte // padding } -func (b *base) Prop() string { +func (b *base_jsiiClass) Prop() string { var returns string _jsii_.Get( b, @@ -2290,7 +2290,7 @@ func (b *base) Prop() string { func NewBase() Base { _init_.Initialize() - b := base{} + b := base_jsiiClass{} _jsii_.Create( "jsii-calc.DerivedClassHasNoProperties.Base", @@ -2303,7 +2303,7 @@ func NewBase() Base { return &b } -func (b *base) SetProp(val string) { +func (b *base_jsiiClass) SetProp(val string) { _jsii_.Set( b, "prop", @@ -2316,14 +2316,14 @@ type Derived interface { } // The jsii proxy struct for Derived -type derived struct { - base // extends jsii-calc.DerivedClassHasNoProperties.Base +type derived_jsiiClass struct { + base_jsiiClass // extends jsii-calc.DerivedClassHasNoProperties.Base } func NewDerived() Derived { _init_.Initialize() - d := derived{} + d := derived_jsiiClass{} _jsii_.Create( "jsii-calc.DerivedClassHasNoProperties.Derived", @@ -2356,7 +2356,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "prop", GoGetter: "Prop"}, }, func() interface{} { - return &base{} + return &base_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -2366,8 +2366,8 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "prop", GoGetter: "Prop"}, }, func() interface{} { - d := derived{} - _jsii_.InitJsiiProxy(&d.base) + d := derived_jsiiClass{} + _jsii_.InitJsiiProxy(&d.base_jsiiClass) return &d }, ) @@ -2403,11 +2403,11 @@ type Foo interface { } // The jsii proxy struct for Foo -type foo struct { +type foo_jsiiClass struct { _ byte // padding } -func (f *foo) Bar() string { +func (f *foo_jsiiClass) Bar() string { var returns string _jsii_.Get( f, @@ -2421,7 +2421,7 @@ func (f *foo) Bar() string { func NewFoo() Foo { _init_.Initialize() - f := foo{} + f := foo_jsiiClass{} _jsii_.Create( "jsii-calc.InterfaceInNamespaceIncludesClasses.Foo", @@ -2434,7 +2434,7 @@ func NewFoo() Foo { return &f } -func (f *foo) SetBar(val string) { +func (f *foo_jsiiClass) SetBar(val string) { _jsii_.Set( f, "bar", @@ -2466,7 +2466,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "bar", GoGetter: "Bar"}, }, func() interface{} { - return &foo{} + return &foo_jsiiClass{} }, ) _jsii_.RegisterStruct( @@ -2564,12 +2564,12 @@ type AbstractClass interface { } // The jsii proxy struct for AbstractClass -type abstractClass struct { - abstractClassBase // extends jsii-calc.AbstractClassBase - iInterfaceImplementedByAbstractClass // implements jsii-calc.IInterfaceImplementedByAbstractClass +type abstractClass_jsiiClass struct { + abstractClassBase_jsiiClass // extends jsii-calc.AbstractClassBase + iInterfaceImplementedByAbstractClass_jsiiClass // implements jsii-calc.IInterfaceImplementedByAbstractClass } -func (a *abstractClass) PropFromInterface() string { +func (a *abstractClass_jsiiClass) PropFromInterface() string { var returns string _jsii_.Get( a, @@ -2583,7 +2583,7 @@ func (a *abstractClass) PropFromInterface() string { func NewAbstractClass() AbstractClass { _init_.Initialize() - a := abstractClass{} + a := abstractClass_jsiiClass{} _jsii_.Create( "jsii-calc.AbstractClass", @@ -2596,7 +2596,7 @@ func NewAbstractClass() AbstractClass { return &a } -func (a *abstractClass) AbstractMethod(name string) string { +func (a *abstractClass_jsiiClass) AbstractMethod(name string) string { var returns string _jsii_.Invoke( @@ -2609,7 +2609,7 @@ func (a *abstractClass) AbstractMethod(name string) string { return returns } -func (a *abstractClass) NonAbstractMethod() float64 { +func (a *abstractClass_jsiiClass) NonAbstractMethod() float64 { var returns float64 _jsii_.Invoke( @@ -2627,11 +2627,11 @@ type AbstractClassBase interface { } // The jsii proxy struct for AbstractClassBase -type abstractClassBase struct { +type abstractClassBase_jsiiClass struct { _ byte // padding } -func (a *abstractClassBase) AbstractProperty() string { +func (a *abstractClassBase_jsiiClass) AbstractProperty() string { var returns string _jsii_.Get( a, @@ -2645,7 +2645,7 @@ func (a *abstractClassBase) AbstractProperty() string { func NewAbstractClassBase() AbstractClassBase { _init_.Initialize() - a := abstractClassBase{} + a := abstractClassBase_jsiiClass{} _jsii_.Create( "jsii-calc.AbstractClassBase", @@ -2665,11 +2665,11 @@ type AbstractClassReturner interface { } // The jsii proxy struct for AbstractClassReturner -type abstractClassReturner struct { +type abstractClassReturner_jsiiClass struct { _ byte // padding } -func (a *abstractClassReturner) ReturnAbstractFromProperty() AbstractClassBase { +func (a *abstractClassReturner_jsiiClass) ReturnAbstractFromProperty() AbstractClassBase { var returns AbstractClassBase _jsii_.Get( a, @@ -2683,7 +2683,7 @@ func (a *abstractClassReturner) ReturnAbstractFromProperty() AbstractClassBase { func NewAbstractClassReturner() AbstractClassReturner { _init_.Initialize() - a := abstractClassReturner{} + a := abstractClassReturner_jsiiClass{} _jsii_.Create( "jsii-calc.AbstractClassReturner", @@ -2696,7 +2696,7 @@ func NewAbstractClassReturner() AbstractClassReturner { return &a } -func (a *abstractClassReturner) GiveMeAbstract() AbstractClass { +func (a *abstractClassReturner_jsiiClass) GiveMeAbstract() AbstractClass { var returns AbstractClass _jsii_.Invoke( @@ -2709,7 +2709,7 @@ func (a *abstractClassReturner) GiveMeAbstract() AbstractClass { return returns } -func (a *abstractClassReturner) GiveMeInterface() IInterfaceImplementedByAbstractClass { +func (a *abstractClassReturner_jsiiClass) GiveMeInterface() IInterfaceImplementedByAbstractClass { var returns IInterfaceImplementedByAbstractClass _jsii_.Invoke( @@ -2730,11 +2730,11 @@ type AbstractSuite interface { } // The jsii proxy struct for AbstractSuite -type abstractSuite struct { +type abstractSuite_jsiiClass struct { _ byte // padding } -func (a *abstractSuite) Property() string { +func (a *abstractSuite_jsiiClass) Property() string { var returns string _jsii_.Get( a, @@ -2748,7 +2748,7 @@ func (a *abstractSuite) Property() string { func NewAbstractSuite() AbstractSuite { _init_.Initialize() - a := abstractSuite{} + a := abstractSuite_jsiiClass{} _jsii_.Create( "jsii-calc.AbstractSuite", @@ -2761,7 +2761,7 @@ func NewAbstractSuite() AbstractSuite { return &a } -func (a *abstractSuite) SetProperty(val string) { +func (a *abstractSuite_jsiiClass) SetProperty(val string) { _jsii_.Set( a, "property", @@ -2769,7 +2769,7 @@ func (a *abstractSuite) SetProperty(val string) { ) } -func (a *abstractSuite) SomeMethod(str string) string { +func (a *abstractSuite_jsiiClass) SomeMethod(str string) string { var returns string _jsii_.Invoke( @@ -2783,7 +2783,7 @@ func (a *abstractSuite) SomeMethod(str string) string { } // Sets \`seed\` to \`this.property\`, then calls \`someMethod\` with \`this.property\` and returns the result. -func (a *abstractSuite) WorkItAll(seed string) string { +func (a *abstractSuite_jsiiClass) WorkItAll(seed string) string { var returns string _jsii_.Invoke( @@ -2804,11 +2804,11 @@ type Add interface { } // The jsii proxy struct for Add -type add struct { - binaryOperation // extends jsii-calc.BinaryOperation +type add_jsiiClass struct { + binaryOperation_jsiiClass // extends jsii-calc.BinaryOperation } -func (a *add) Value() float64 { +func (a *add_jsiiClass) Value() float64 { var returns float64 _jsii_.Get( a, @@ -2823,7 +2823,7 @@ func (a *add) Value() float64 { func NewAdd(lhs scopejsiicalclib.NumericValue, rhs scopejsiicalclib.NumericValue) Add { _init_.Initialize() - a := add{} + a := add_jsiiClass{} _jsii_.Create( "jsii-calc.Add", @@ -2837,7 +2837,7 @@ func NewAdd(lhs scopejsiicalclib.NumericValue, rhs scopejsiicalclib.NumericValue } // (deprecated) String representation of the value. -func (a *add) ToString() string { +func (a *add_jsiiClass) ToString() string { var returns string _jsii_.Invoke( @@ -2898,11 +2898,11 @@ type AllTypes interface { } // The jsii proxy struct for AllTypes -type allTypes struct { +type allTypes_jsiiClass struct { _ byte // padding } -func (a *allTypes) AnyArrayProperty() []interface{} { +func (a *allTypes_jsiiClass) AnyArrayProperty() []interface{} { var returns []interface{} _jsii_.Get( a, @@ -2912,7 +2912,7 @@ func (a *allTypes) AnyArrayProperty() []interface{} { return returns } -func (a *allTypes) AnyMapProperty() map[string]interface{} { +func (a *allTypes_jsiiClass) AnyMapProperty() map[string]interface{} { var returns map[string]interface{} _jsii_.Get( a, @@ -2922,7 +2922,7 @@ func (a *allTypes) AnyMapProperty() map[string]interface{} { return returns } -func (a *allTypes) AnyProperty() interface{} { +func (a *allTypes_jsiiClass) AnyProperty() interface{} { var returns interface{} _jsii_.Get( a, @@ -2932,7 +2932,7 @@ func (a *allTypes) AnyProperty() interface{} { return returns } -func (a *allTypes) ArrayProperty() []string { +func (a *allTypes_jsiiClass) ArrayProperty() []string { var returns []string _jsii_.Get( a, @@ -2942,7 +2942,7 @@ func (a *allTypes) ArrayProperty() []string { return returns } -func (a *allTypes) BooleanProperty() bool { +func (a *allTypes_jsiiClass) BooleanProperty() bool { var returns bool _jsii_.Get( a, @@ -2952,7 +2952,7 @@ func (a *allTypes) BooleanProperty() bool { return returns } -func (a *allTypes) DateProperty() string { +func (a *allTypes_jsiiClass) DateProperty() string { var returns string _jsii_.Get( a, @@ -2962,7 +2962,7 @@ func (a *allTypes) DateProperty() string { return returns } -func (a *allTypes) EnumProperty() AllTypesEnum { +func (a *allTypes_jsiiClass) EnumProperty() AllTypesEnum { var returns AllTypesEnum _jsii_.Get( a, @@ -2972,7 +2972,7 @@ func (a *allTypes) EnumProperty() AllTypesEnum { return returns } -func (a *allTypes) EnumPropertyValue() float64 { +func (a *allTypes_jsiiClass) EnumPropertyValue() float64 { var returns float64 _jsii_.Get( a, @@ -2982,7 +2982,7 @@ func (a *allTypes) EnumPropertyValue() float64 { return returns } -func (a *allTypes) JsonProperty() map[string]interface{} { +func (a *allTypes_jsiiClass) JsonProperty() map[string]interface{} { var returns map[string]interface{} _jsii_.Get( a, @@ -2992,7 +2992,7 @@ func (a *allTypes) JsonProperty() map[string]interface{} { return returns } -func (a *allTypes) MapProperty() map[string]scopejsiicalclib.Number { +func (a *allTypes_jsiiClass) MapProperty() map[string]scopejsiicalclib.Number { var returns map[string]scopejsiicalclib.Number _jsii_.Get( a, @@ -3002,7 +3002,7 @@ func (a *allTypes) MapProperty() map[string]scopejsiicalclib.Number { return returns } -func (a *allTypes) NumberProperty() float64 { +func (a *allTypes_jsiiClass) NumberProperty() float64 { var returns float64 _jsii_.Get( a, @@ -3012,7 +3012,7 @@ func (a *allTypes) NumberProperty() float64 { return returns } -func (a *allTypes) OptionalEnumValue() StringEnum { +func (a *allTypes_jsiiClass) OptionalEnumValue() StringEnum { var returns StringEnum _jsii_.Get( a, @@ -3022,7 +3022,7 @@ func (a *allTypes) OptionalEnumValue() StringEnum { return returns } -func (a *allTypes) StringProperty() string { +func (a *allTypes_jsiiClass) StringProperty() string { var returns string _jsii_.Get( a, @@ -3032,7 +3032,7 @@ func (a *allTypes) StringProperty() string { return returns } -func (a *allTypes) UnionArrayProperty() []interface{} { +func (a *allTypes_jsiiClass) UnionArrayProperty() []interface{} { var returns []interface{} _jsii_.Get( a, @@ -3042,7 +3042,7 @@ func (a *allTypes) UnionArrayProperty() []interface{} { return returns } -func (a *allTypes) UnionMapProperty() map[string]interface{} { +func (a *allTypes_jsiiClass) UnionMapProperty() map[string]interface{} { var returns map[string]interface{} _jsii_.Get( a, @@ -3052,7 +3052,7 @@ func (a *allTypes) UnionMapProperty() map[string]interface{} { return returns } -func (a *allTypes) UnionProperty() interface{} { +func (a *allTypes_jsiiClass) UnionProperty() interface{} { var returns interface{} _jsii_.Get( a, @@ -3062,7 +3062,7 @@ func (a *allTypes) UnionProperty() interface{} { return returns } -func (a *allTypes) UnknownArrayProperty() []interface{} { +func (a *allTypes_jsiiClass) UnknownArrayProperty() []interface{} { var returns []interface{} _jsii_.Get( a, @@ -3072,7 +3072,7 @@ func (a *allTypes) UnknownArrayProperty() []interface{} { return returns } -func (a *allTypes) UnknownMapProperty() map[string]interface{} { +func (a *allTypes_jsiiClass) UnknownMapProperty() map[string]interface{} { var returns map[string]interface{} _jsii_.Get( a, @@ -3082,7 +3082,7 @@ func (a *allTypes) UnknownMapProperty() map[string]interface{} { return returns } -func (a *allTypes) UnknownProperty() interface{} { +func (a *allTypes_jsiiClass) UnknownProperty() interface{} { var returns interface{} _jsii_.Get( a, @@ -3096,7 +3096,7 @@ func (a *allTypes) UnknownProperty() interface{} { func NewAllTypes() AllTypes { _init_.Initialize() - a := allTypes{} + a := allTypes_jsiiClass{} _jsii_.Create( "jsii-calc.AllTypes", @@ -3109,7 +3109,7 @@ func NewAllTypes() AllTypes { return &a } -func (a *allTypes) SetAnyArrayProperty(val []interface{}) { +func (a *allTypes_jsiiClass) SetAnyArrayProperty(val []interface{}) { _jsii_.Set( a, "anyArrayProperty", @@ -3117,7 +3117,7 @@ func (a *allTypes) SetAnyArrayProperty(val []interface{}) { ) } -func (a *allTypes) SetAnyMapProperty(val map[string]interface{}) { +func (a *allTypes_jsiiClass) SetAnyMapProperty(val map[string]interface{}) { _jsii_.Set( a, "anyMapProperty", @@ -3125,7 +3125,7 @@ func (a *allTypes) SetAnyMapProperty(val map[string]interface{}) { ) } -func (a *allTypes) SetAnyProperty(val interface{}) { +func (a *allTypes_jsiiClass) SetAnyProperty(val interface{}) { _jsii_.Set( a, "anyProperty", @@ -3133,7 +3133,7 @@ func (a *allTypes) SetAnyProperty(val interface{}) { ) } -func (a *allTypes) SetArrayProperty(val []string) { +func (a *allTypes_jsiiClass) SetArrayProperty(val []string) { _jsii_.Set( a, "arrayProperty", @@ -3141,7 +3141,7 @@ func (a *allTypes) SetArrayProperty(val []string) { ) } -func (a *allTypes) SetBooleanProperty(val bool) { +func (a *allTypes_jsiiClass) SetBooleanProperty(val bool) { _jsii_.Set( a, "booleanProperty", @@ -3149,7 +3149,7 @@ func (a *allTypes) SetBooleanProperty(val bool) { ) } -func (a *allTypes) SetDateProperty(val string) { +func (a *allTypes_jsiiClass) SetDateProperty(val string) { _jsii_.Set( a, "dateProperty", @@ -3157,7 +3157,7 @@ func (a *allTypes) SetDateProperty(val string) { ) } -func (a *allTypes) SetEnumProperty(val AllTypesEnum) { +func (a *allTypes_jsiiClass) SetEnumProperty(val AllTypesEnum) { _jsii_.Set( a, "enumProperty", @@ -3165,7 +3165,7 @@ func (a *allTypes) SetEnumProperty(val AllTypesEnum) { ) } -func (a *allTypes) SetJsonProperty(val map[string]interface{}) { +func (a *allTypes_jsiiClass) SetJsonProperty(val map[string]interface{}) { _jsii_.Set( a, "jsonProperty", @@ -3173,7 +3173,7 @@ func (a *allTypes) SetJsonProperty(val map[string]interface{}) { ) } -func (a *allTypes) SetMapProperty(val map[string]scopejsiicalclib.Number) { +func (a *allTypes_jsiiClass) SetMapProperty(val map[string]scopejsiicalclib.Number) { _jsii_.Set( a, "mapProperty", @@ -3181,7 +3181,7 @@ func (a *allTypes) SetMapProperty(val map[string]scopejsiicalclib.Number) { ) } -func (a *allTypes) SetNumberProperty(val float64) { +func (a *allTypes_jsiiClass) SetNumberProperty(val float64) { _jsii_.Set( a, "numberProperty", @@ -3189,7 +3189,7 @@ func (a *allTypes) SetNumberProperty(val float64) { ) } -func (a *allTypes) SetOptionalEnumValue(val StringEnum) { +func (a *allTypes_jsiiClass) SetOptionalEnumValue(val StringEnum) { _jsii_.Set( a, "optionalEnumValue", @@ -3197,7 +3197,7 @@ func (a *allTypes) SetOptionalEnumValue(val StringEnum) { ) } -func (a *allTypes) SetStringProperty(val string) { +func (a *allTypes_jsiiClass) SetStringProperty(val string) { _jsii_.Set( a, "stringProperty", @@ -3205,7 +3205,7 @@ func (a *allTypes) SetStringProperty(val string) { ) } -func (a *allTypes) SetUnionArrayProperty(val []interface{}) { +func (a *allTypes_jsiiClass) SetUnionArrayProperty(val []interface{}) { _jsii_.Set( a, "unionArrayProperty", @@ -3213,7 +3213,7 @@ func (a *allTypes) SetUnionArrayProperty(val []interface{}) { ) } -func (a *allTypes) SetUnionMapProperty(val map[string]interface{}) { +func (a *allTypes_jsiiClass) SetUnionMapProperty(val map[string]interface{}) { _jsii_.Set( a, "unionMapProperty", @@ -3221,7 +3221,7 @@ func (a *allTypes) SetUnionMapProperty(val map[string]interface{}) { ) } -func (a *allTypes) SetUnionProperty(val interface{}) { +func (a *allTypes_jsiiClass) SetUnionProperty(val interface{}) { _jsii_.Set( a, "unionProperty", @@ -3229,7 +3229,7 @@ func (a *allTypes) SetUnionProperty(val interface{}) { ) } -func (a *allTypes) SetUnknownArrayProperty(val []interface{}) { +func (a *allTypes_jsiiClass) SetUnknownArrayProperty(val []interface{}) { _jsii_.Set( a, "unknownArrayProperty", @@ -3237,7 +3237,7 @@ func (a *allTypes) SetUnknownArrayProperty(val []interface{}) { ) } -func (a *allTypes) SetUnknownMapProperty(val map[string]interface{}) { +func (a *allTypes_jsiiClass) SetUnknownMapProperty(val map[string]interface{}) { _jsii_.Set( a, "unknownMapProperty", @@ -3245,7 +3245,7 @@ func (a *allTypes) SetUnknownMapProperty(val map[string]interface{}) { ) } -func (a *allTypes) SetUnknownProperty(val interface{}) { +func (a *allTypes_jsiiClass) SetUnknownProperty(val interface{}) { _jsii_.Set( a, "unknownProperty", @@ -3253,7 +3253,7 @@ func (a *allTypes) SetUnknownProperty(val interface{}) { ) } -func (a *allTypes) AnyIn(inp interface{}) { +func (a *allTypes_jsiiClass) AnyIn(inp interface{}) { _jsii_.InvokeVoid( a, "anyIn", @@ -3261,7 +3261,7 @@ func (a *allTypes) AnyIn(inp interface{}) { ) } -func (a *allTypes) AnyOut() interface{} { +func (a *allTypes_jsiiClass) AnyOut() interface{} { var returns interface{} _jsii_.Invoke( @@ -3274,7 +3274,7 @@ func (a *allTypes) AnyOut() interface{} { return returns } -func (a *allTypes) EnumMethod(value StringEnum) StringEnum { +func (a *allTypes_jsiiClass) EnumMethod(value StringEnum) StringEnum { var returns StringEnum _jsii_.Invoke( @@ -3303,14 +3303,14 @@ type AllowedMethodNames interface { } // The jsii proxy struct for AllowedMethodNames -type allowedMethodNames struct { +type allowedMethodNames_jsiiClass struct { _ byte // padding } func NewAllowedMethodNames() AllowedMethodNames { _init_.Initialize() - a := allowedMethodNames{} + a := allowedMethodNames_jsiiClass{} _jsii_.Create( "jsii-calc.AllowedMethodNames", @@ -3323,7 +3323,7 @@ func NewAllowedMethodNames() AllowedMethodNames { return &a } -func (a *allowedMethodNames) GetBar(_p1 string, _p2 float64) { +func (a *allowedMethodNames_jsiiClass) GetBar(_p1 string, _p2 float64) { _jsii_.InvokeVoid( a, "getBar", @@ -3332,7 +3332,7 @@ func (a *allowedMethodNames) GetBar(_p1 string, _p2 float64) { } // getXxx() is not allowed (see negatives), but getXxx(a, ...) is okay. -func (a *allowedMethodNames) GetFoo(withParam string) string { +func (a *allowedMethodNames_jsiiClass) GetFoo(withParam string) string { var returns string _jsii_.Invoke( @@ -3345,7 +3345,7 @@ func (a *allowedMethodNames) GetFoo(withParam string) string { return returns } -func (a *allowedMethodNames) SetBar(_x string, _y float64, _z bool) { +func (a *allowedMethodNames_jsiiClass) SetBar(_x string, _y float64, _z bool) { _jsii_.InvokeVoid( a, "setBar", @@ -3354,7 +3354,7 @@ func (a *allowedMethodNames) SetBar(_x string, _y float64, _z bool) { } // setFoo(x) is not allowed (see negatives), but setXxx(a, b, ...) is okay. -func (a *allowedMethodNames) SetFoo(_x string, _y float64) { +func (a *allowedMethodNames_jsiiClass) SetFoo(_x string, _y float64) { _jsii_.InvokeVoid( a, "setFoo", @@ -3368,11 +3368,11 @@ type AmbiguousParameters interface { } // The jsii proxy struct for AmbiguousParameters -type ambiguousParameters struct { +type ambiguousParameters_jsiiClass struct { _ byte // padding } -func (a *ambiguousParameters) Props() StructParameterType { +func (a *ambiguousParameters_jsiiClass) Props() StructParameterType { var returns StructParameterType _jsii_.Get( a, @@ -3382,7 +3382,7 @@ func (a *ambiguousParameters) Props() StructParameterType { return returns } -func (a *ambiguousParameters) Scope() Bell { +func (a *ambiguousParameters_jsiiClass) Scope() Bell { var returns Bell _jsii_.Get( a, @@ -3396,7 +3396,7 @@ func (a *ambiguousParameters) Scope() Bell { func NewAmbiguousParameters(scope Bell, props StructParameterType) AmbiguousParameters { _init_.Initialize() - a := ambiguousParameters{} + a := ambiguousParameters_jsiiClass{} _jsii_.Create( "jsii-calc.AmbiguousParameters", @@ -3416,14 +3416,14 @@ type AnonymousImplementationProvider interface { } // The jsii proxy struct for AnonymousImplementationProvider -type anonymousImplementationProvider struct { - iAnonymousImplementationProvider // implements jsii-calc.IAnonymousImplementationProvider +type anonymousImplementationProvider_jsiiClass struct { + iAnonymousImplementationProvider_jsiiClass // implements jsii-calc.IAnonymousImplementationProvider } func NewAnonymousImplementationProvider() AnonymousImplementationProvider { _init_.Initialize() - a := anonymousImplementationProvider{} + a := anonymousImplementationProvider_jsiiClass{} _jsii_.Create( "jsii-calc.AnonymousImplementationProvider", @@ -3436,7 +3436,7 @@ func NewAnonymousImplementationProvider() AnonymousImplementationProvider { return &a } -func (a *anonymousImplementationProvider) ProvideAsClass() Implementation { +func (a *anonymousImplementationProvider_jsiiClass) ProvideAsClass() Implementation { var returns Implementation _jsii_.Invoke( @@ -3449,7 +3449,7 @@ func (a *anonymousImplementationProvider) ProvideAsClass() Implementation { return returns } -func (a *anonymousImplementationProvider) ProvideAsInterface() IAnonymouslyImplementMe { +func (a *anonymousImplementationProvider_jsiiClass) ProvideAsInterface() IAnonymouslyImplementMe { var returns IAnonymouslyImplementMe _jsii_.Invoke( @@ -3472,14 +3472,14 @@ type AsyncVirtualMethods interface { } // The jsii proxy struct for AsyncVirtualMethods -type asyncVirtualMethods struct { +type asyncVirtualMethods_jsiiClass struct { _ byte // padding } func NewAsyncVirtualMethods() AsyncVirtualMethods { _init_.Initialize() - a := asyncVirtualMethods{} + a := asyncVirtualMethods_jsiiClass{} _jsii_.Create( "jsii-calc.AsyncVirtualMethods", @@ -3492,7 +3492,7 @@ func NewAsyncVirtualMethods() AsyncVirtualMethods { return &a } -func (a *asyncVirtualMethods) CallMe() float64 { +func (a *asyncVirtualMethods_jsiiClass) CallMe() float64 { var returns float64 _jsii_.Invoke( @@ -3506,7 +3506,7 @@ func (a *asyncVirtualMethods) CallMe() float64 { } // Just calls "overrideMeToo". -func (a *asyncVirtualMethods) CallMe2() float64 { +func (a *asyncVirtualMethods_jsiiClass) CallMe2() float64 { var returns float64 _jsii_.Invoke( @@ -3524,7 +3524,7 @@ func (a *asyncVirtualMethods) CallMe2() float64 { // This is a "double promise" situation, which // means that callbacks are not going to be available immediate, but only // after an "immediates" cycle. -func (a *asyncVirtualMethods) CallMeDoublePromise() float64 { +func (a *asyncVirtualMethods_jsiiClass) CallMeDoublePromise() float64 { var returns float64 _jsii_.Invoke( @@ -3537,7 +3537,7 @@ func (a *asyncVirtualMethods) CallMeDoublePromise() float64 { return returns } -func (a *asyncVirtualMethods) DontOverrideMe() float64 { +func (a *asyncVirtualMethods_jsiiClass) DontOverrideMe() float64 { var returns float64 _jsii_.Invoke( @@ -3550,7 +3550,7 @@ func (a *asyncVirtualMethods) DontOverrideMe() float64 { return returns } -func (a *asyncVirtualMethods) OverrideMe(mult float64) float64 { +func (a *asyncVirtualMethods_jsiiClass) OverrideMe(mult float64) float64 { var returns float64 _jsii_.Invoke( @@ -3563,7 +3563,7 @@ func (a *asyncVirtualMethods) OverrideMe(mult float64) float64 { return returns } -func (a *asyncVirtualMethods) OverrideMeToo() float64 { +func (a *asyncVirtualMethods_jsiiClass) OverrideMeToo() float64 { var returns float64 _jsii_.Invoke( @@ -3582,14 +3582,14 @@ type AugmentableClass interface { } // The jsii proxy struct for AugmentableClass -type augmentableClass struct { +type augmentableClass_jsiiClass struct { _ byte // padding } func NewAugmentableClass() AugmentableClass { _init_.Initialize() - a := augmentableClass{} + a := augmentableClass_jsiiClass{} _jsii_.Create( "jsii-calc.AugmentableClass", @@ -3602,7 +3602,7 @@ func NewAugmentableClass() AugmentableClass { return &a } -func (a *augmentableClass) MethodOne() { +func (a *augmentableClass_jsiiClass) MethodOne() { _jsii_.InvokeVoid( a, "methodOne", @@ -3610,7 +3610,7 @@ func (a *augmentableClass) MethodOne() { ) } -func (a *augmentableClass) MethodTwo() { +func (a *augmentableClass_jsiiClass) MethodTwo() { _jsii_.InvokeVoid( a, "methodTwo", @@ -3622,14 +3622,14 @@ type BaseJsii976 interface { } // The jsii proxy struct for BaseJsii976 -type baseJsii976 struct { +type baseJsii976_jsiiClass struct { _ byte // padding } func NewBaseJsii976() BaseJsii976 { _init_.Initialize() - b := baseJsii976{} + b := baseJsii976_jsiiClass{} _jsii_.Create( "jsii-calc.BaseJsii976", @@ -3650,11 +3650,11 @@ type Bell interface { } // The jsii proxy struct for Bell -type bell struct { - iBell // implements jsii-calc.IBell +type bell_jsiiClass struct { + iBell_jsiiClass // implements jsii-calc.IBell } -func (b *bell) Rung() bool { +func (b *bell_jsiiClass) Rung() bool { var returns bool _jsii_.Get( b, @@ -3668,7 +3668,7 @@ func (b *bell) Rung() bool { func NewBell() Bell { _init_.Initialize() - b := bell{} + b := bell_jsiiClass{} _jsii_.Create( "jsii-calc.Bell", @@ -3681,7 +3681,7 @@ func NewBell() Bell { return &b } -func (b *bell) SetRung(val bool) { +func (b *bell_jsiiClass) SetRung(val bool) { _jsii_.Set( b, "rung", @@ -3689,7 +3689,7 @@ func (b *bell) SetRung(val bool) { ) } -func (b *bell) Ring() { +func (b *bell_jsiiClass) Ring() { _jsii_.InvokeVoid( b, "ring", @@ -3707,12 +3707,12 @@ type BinaryOperation interface { } // The jsii proxy struct for BinaryOperation -type binaryOperation struct { +type binaryOperation_jsiiClass struct { scopejsiicalclib.Operation // extends @scope/jsii-calc-lib.Operation scopejsiicalclib.IFriendly // implements @scope/jsii-calc-lib.IFriendly } -func (b *binaryOperation) Lhs() scopejsiicalclib.NumericValue { +func (b *binaryOperation_jsiiClass) Lhs() scopejsiicalclib.NumericValue { var returns scopejsiicalclib.NumericValue _jsii_.Get( b, @@ -3722,7 +3722,7 @@ func (b *binaryOperation) Lhs() scopejsiicalclib.NumericValue { return returns } -func (b *binaryOperation) Rhs() scopejsiicalclib.NumericValue { +func (b *binaryOperation_jsiiClass) Rhs() scopejsiicalclib.NumericValue { var returns scopejsiicalclib.NumericValue _jsii_.Get( b, @@ -3732,7 +3732,7 @@ func (b *binaryOperation) Rhs() scopejsiicalclib.NumericValue { return returns } -func (b *binaryOperation) Value() float64 { +func (b *binaryOperation_jsiiClass) Value() float64 { var returns float64 _jsii_.Get( b, @@ -3747,7 +3747,7 @@ func (b *binaryOperation) Value() float64 { func NewBinaryOperation(lhs scopejsiicalclib.NumericValue, rhs scopejsiicalclib.NumericValue) BinaryOperation { _init_.Initialize() - b := binaryOperation{} + b := binaryOperation_jsiiClass{} _jsii_.Create( "jsii-calc.BinaryOperation", @@ -3761,7 +3761,7 @@ func NewBinaryOperation(lhs scopejsiicalclib.NumericValue, rhs scopejsiicalclib. } // (deprecated) Say hello! -func (b *binaryOperation) Hello() string { +func (b *binaryOperation_jsiiClass) Hello() string { var returns string _jsii_.Invoke( @@ -3776,7 +3776,7 @@ func (b *binaryOperation) Hello() string { // String representation of the value. // Deprecated. -func (b *binaryOperation) ToString() string { +func (b *binaryOperation_jsiiClass) ToString() string { var returns string _jsii_.Invoke( @@ -3790,7 +3790,7 @@ func (b *binaryOperation) ToString() string { } // Returns: the name of the class (to verify native type names are created for derived classes). -func (b *binaryOperation) TypeName() interface{} { +func (b *binaryOperation_jsiiClass) TypeName() interface{} { var returns interface{} _jsii_.Invoke( @@ -3810,14 +3810,14 @@ type BurriedAnonymousObject interface { } // The jsii proxy struct for BurriedAnonymousObject -type burriedAnonymousObject struct { +type burriedAnonymousObject_jsiiClass struct { _ byte // padding } func NewBurriedAnonymousObject() BurriedAnonymousObject { _init_.Initialize() - b := burriedAnonymousObject{} + b := burriedAnonymousObject_jsiiClass{} _jsii_.Create( "jsii-calc.BurriedAnonymousObject", @@ -3830,7 +3830,7 @@ func NewBurriedAnonymousObject() BurriedAnonymousObject { return &b } -func (b *burriedAnonymousObject) Check() bool { +func (b *burriedAnonymousObject_jsiiClass) Check() bool { var returns bool _jsii_.Invoke( @@ -3846,7 +3846,7 @@ func (b *burriedAnonymousObject) Check() bool { // Implement this method and have it return it's parameter. // // Returns: \`value\` -func (b *burriedAnonymousObject) GiveItBack(value interface{}) interface{} { +func (b *burriedAnonymousObject_jsiiClass) GiveItBack(value interface{}) interface{} { var returns interface{} _jsii_.Invoke( @@ -3893,11 +3893,11 @@ type Calculator interface { } // The jsii proxy struct for Calculator -type calculator struct { +type calculator_jsiiClass struct { composition.CompositeOperation // extends jsii-calc.composition.CompositeOperation } -func (c *calculator) Curr() scopejsiicalclib.NumericValue { +func (c *calculator_jsiiClass) Curr() scopejsiicalclib.NumericValue { var returns scopejsiicalclib.NumericValue _jsii_.Get( c, @@ -3907,7 +3907,7 @@ func (c *calculator) Curr() scopejsiicalclib.NumericValue { return returns } -func (c *calculator) Expression() scopejsiicalclib.NumericValue { +func (c *calculator_jsiiClass) Expression() scopejsiicalclib.NumericValue { var returns scopejsiicalclib.NumericValue _jsii_.Get( c, @@ -3917,7 +3917,7 @@ func (c *calculator) Expression() scopejsiicalclib.NumericValue { return returns } -func (c *calculator) MaxValue() float64 { +func (c *calculator_jsiiClass) MaxValue() float64 { var returns float64 _jsii_.Get( c, @@ -3927,7 +3927,7 @@ func (c *calculator) MaxValue() float64 { return returns } -func (c *calculator) OperationsLog() []scopejsiicalclib.NumericValue { +func (c *calculator_jsiiClass) OperationsLog() []scopejsiicalclib.NumericValue { var returns []scopejsiicalclib.NumericValue _jsii_.Get( c, @@ -3937,7 +3937,7 @@ func (c *calculator) OperationsLog() []scopejsiicalclib.NumericValue { return returns } -func (c *calculator) OperationsMap() map[string][]scopejsiicalclib.NumericValue { +func (c *calculator_jsiiClass) OperationsMap() map[string][]scopejsiicalclib.NumericValue { var returns map[string][]scopejsiicalclib.NumericValue _jsii_.Get( c, @@ -3947,7 +3947,7 @@ func (c *calculator) OperationsMap() map[string][]scopejsiicalclib.NumericValue return returns } -func (c *calculator) UnionProperty() interface{} { +func (c *calculator_jsiiClass) UnionProperty() interface{} { var returns interface{} _jsii_.Get( c, @@ -3962,7 +3962,7 @@ func (c *calculator) UnionProperty() interface{} { func NewCalculator(props CalculatorProps) Calculator { _init_.Initialize() - c := calculator{} + c := calculator_jsiiClass{} _jsii_.Create( "jsii-calc.Calculator", @@ -3975,7 +3975,7 @@ func NewCalculator(props CalculatorProps) Calculator { return &c } -func (c *calculator) SetCurr(val scopejsiicalclib.NumericValue) { +func (c *calculator_jsiiClass) SetCurr(val scopejsiicalclib.NumericValue) { _jsii_.Set( c, "curr", @@ -3983,7 +3983,7 @@ func (c *calculator) SetCurr(val scopejsiicalclib.NumericValue) { ) } -func (c *calculator) SetMaxValue(val float64) { +func (c *calculator_jsiiClass) SetMaxValue(val float64) { _jsii_.Set( c, "maxValue", @@ -3991,7 +3991,7 @@ func (c *calculator) SetMaxValue(val float64) { ) } -func (c *calculator) SetUnionProperty(val interface{}) { +func (c *calculator_jsiiClass) SetUnionProperty(val interface{}) { _jsii_.Set( c, "unionProperty", @@ -4000,7 +4000,7 @@ func (c *calculator) SetUnionProperty(val interface{}) { } // Adds a number to the current value. -func (c *calculator) Add(value float64) { +func (c *calculator_jsiiClass) Add(value float64) { _jsii_.InvokeVoid( c, "add", @@ -4009,7 +4009,7 @@ func (c *calculator) Add(value float64) { } // Multiplies the current value by a number. -func (c *calculator) Mul(value float64) { +func (c *calculator_jsiiClass) Mul(value float64) { _jsii_.InvokeVoid( c, "mul", @@ -4018,7 +4018,7 @@ func (c *calculator) Mul(value float64) { } // Negates the current value. -func (c *calculator) Neg() { +func (c *calculator_jsiiClass) Neg() { _jsii_.InvokeVoid( c, "neg", @@ -4027,7 +4027,7 @@ func (c *calculator) Neg() { } // Raises the current value by a power. -func (c *calculator) Pow(value float64) { +func (c *calculator_jsiiClass) Pow(value float64) { _jsii_.InvokeVoid( c, "pow", @@ -4036,7 +4036,7 @@ func (c *calculator) Pow(value float64) { } // Returns teh value of the union property (if defined). -func (c *calculator) ReadUnionValue() float64 { +func (c *calculator_jsiiClass) ReadUnionValue() float64 { var returns float64 _jsii_.Invoke( @@ -4084,11 +4084,11 @@ type ClassThatImplementsTheInternalInterface interface { } // The jsii proxy struct for ClassThatImplementsTheInternalInterface -type classThatImplementsTheInternalInterface struct { - iNonInternalInterface // implements jsii-calc.INonInternalInterface +type classThatImplementsTheInternalInterface_jsiiClass struct { + iNonInternalInterface_jsiiClass // implements jsii-calc.INonInternalInterface } -func (c *classThatImplementsTheInternalInterface) A() string { +func (c *classThatImplementsTheInternalInterface_jsiiClass) A() string { var returns string _jsii_.Get( c, @@ -4098,7 +4098,7 @@ func (c *classThatImplementsTheInternalInterface) A() string { return returns } -func (c *classThatImplementsTheInternalInterface) B() string { +func (c *classThatImplementsTheInternalInterface_jsiiClass) B() string { var returns string _jsii_.Get( c, @@ -4108,7 +4108,7 @@ func (c *classThatImplementsTheInternalInterface) B() string { return returns } -func (c *classThatImplementsTheInternalInterface) C() string { +func (c *classThatImplementsTheInternalInterface_jsiiClass) C() string { var returns string _jsii_.Get( c, @@ -4118,7 +4118,7 @@ func (c *classThatImplementsTheInternalInterface) C() string { return returns } -func (c *classThatImplementsTheInternalInterface) D() string { +func (c *classThatImplementsTheInternalInterface_jsiiClass) D() string { var returns string _jsii_.Get( c, @@ -4132,7 +4132,7 @@ func (c *classThatImplementsTheInternalInterface) D() string { func NewClassThatImplementsTheInternalInterface() ClassThatImplementsTheInternalInterface { _init_.Initialize() - c := classThatImplementsTheInternalInterface{} + c := classThatImplementsTheInternalInterface_jsiiClass{} _jsii_.Create( "jsii-calc.ClassThatImplementsTheInternalInterface", @@ -4145,7 +4145,7 @@ func NewClassThatImplementsTheInternalInterface() ClassThatImplementsTheInternal return &c } -func (c *classThatImplementsTheInternalInterface) SetA(val string) { +func (c *classThatImplementsTheInternalInterface_jsiiClass) SetA(val string) { _jsii_.Set( c, "a", @@ -4153,7 +4153,7 @@ func (c *classThatImplementsTheInternalInterface) SetA(val string) { ) } -func (c *classThatImplementsTheInternalInterface) SetB(val string) { +func (c *classThatImplementsTheInternalInterface_jsiiClass) SetB(val string) { _jsii_.Set( c, "b", @@ -4161,7 +4161,7 @@ func (c *classThatImplementsTheInternalInterface) SetB(val string) { ) } -func (c *classThatImplementsTheInternalInterface) SetC(val string) { +func (c *classThatImplementsTheInternalInterface_jsiiClass) SetC(val string) { _jsii_.Set( c, "c", @@ -4169,7 +4169,7 @@ func (c *classThatImplementsTheInternalInterface) SetC(val string) { ) } -func (c *classThatImplementsTheInternalInterface) SetD(val string) { +func (c *classThatImplementsTheInternalInterface_jsiiClass) SetD(val string) { _jsii_.Set( c, "d", @@ -4190,11 +4190,11 @@ type ClassThatImplementsThePrivateInterface interface { } // The jsii proxy struct for ClassThatImplementsThePrivateInterface -type classThatImplementsThePrivateInterface struct { - iNonInternalInterface // implements jsii-calc.INonInternalInterface +type classThatImplementsThePrivateInterface_jsiiClass struct { + iNonInternalInterface_jsiiClass // implements jsii-calc.INonInternalInterface } -func (c *classThatImplementsThePrivateInterface) A() string { +func (c *classThatImplementsThePrivateInterface_jsiiClass) A() string { var returns string _jsii_.Get( c, @@ -4204,7 +4204,7 @@ func (c *classThatImplementsThePrivateInterface) A() string { return returns } -func (c *classThatImplementsThePrivateInterface) B() string { +func (c *classThatImplementsThePrivateInterface_jsiiClass) B() string { var returns string _jsii_.Get( c, @@ -4214,7 +4214,7 @@ func (c *classThatImplementsThePrivateInterface) B() string { return returns } -func (c *classThatImplementsThePrivateInterface) C() string { +func (c *classThatImplementsThePrivateInterface_jsiiClass) C() string { var returns string _jsii_.Get( c, @@ -4224,7 +4224,7 @@ func (c *classThatImplementsThePrivateInterface) C() string { return returns } -func (c *classThatImplementsThePrivateInterface) E() string { +func (c *classThatImplementsThePrivateInterface_jsiiClass) E() string { var returns string _jsii_.Get( c, @@ -4238,7 +4238,7 @@ func (c *classThatImplementsThePrivateInterface) E() string { func NewClassThatImplementsThePrivateInterface() ClassThatImplementsThePrivateInterface { _init_.Initialize() - c := classThatImplementsThePrivateInterface{} + c := classThatImplementsThePrivateInterface_jsiiClass{} _jsii_.Create( "jsii-calc.ClassThatImplementsThePrivateInterface", @@ -4251,7 +4251,7 @@ func NewClassThatImplementsThePrivateInterface() ClassThatImplementsThePrivateIn return &c } -func (c *classThatImplementsThePrivateInterface) SetA(val string) { +func (c *classThatImplementsThePrivateInterface_jsiiClass) SetA(val string) { _jsii_.Set( c, "a", @@ -4259,7 +4259,7 @@ func (c *classThatImplementsThePrivateInterface) SetA(val string) { ) } -func (c *classThatImplementsThePrivateInterface) SetB(val string) { +func (c *classThatImplementsThePrivateInterface_jsiiClass) SetB(val string) { _jsii_.Set( c, "b", @@ -4267,7 +4267,7 @@ func (c *classThatImplementsThePrivateInterface) SetB(val string) { ) } -func (c *classThatImplementsThePrivateInterface) SetC(val string) { +func (c *classThatImplementsThePrivateInterface_jsiiClass) SetC(val string) { _jsii_.Set( c, "c", @@ -4275,7 +4275,7 @@ func (c *classThatImplementsThePrivateInterface) SetC(val string) { ) } -func (c *classThatImplementsThePrivateInterface) SetE(val string) { +func (c *classThatImplementsThePrivateInterface_jsiiClass) SetE(val string) { _jsii_.Set( c, "e", @@ -4291,11 +4291,11 @@ type ClassWithCollections interface { } // The jsii proxy struct for ClassWithCollections -type classWithCollections struct { +type classWithCollections_jsiiClass struct { _ byte // padding } -func (c *classWithCollections) Array() []string { +func (c *classWithCollections_jsiiClass) Array() []string { var returns []string _jsii_.Get( c, @@ -4305,7 +4305,7 @@ func (c *classWithCollections) Array() []string { return returns } -func (c *classWithCollections) Map() map[string]string { +func (c *classWithCollections_jsiiClass) Map() map[string]string { var returns map[string]string _jsii_.Get( c, @@ -4319,7 +4319,7 @@ func (c *classWithCollections) Map() map[string]string { func NewClassWithCollections(map_ map[string]string, array []string) ClassWithCollections { _init_.Initialize() - c := classWithCollections{} + c := classWithCollections_jsiiClass{} _jsii_.Create( "jsii-calc.ClassWithCollections", @@ -4332,7 +4332,7 @@ func NewClassWithCollections(map_ map[string]string, array []string) ClassWithCo return &c } -func (c *classWithCollections) SetArray(val []string) { +func (c *classWithCollections_jsiiClass) SetArray(val []string) { _jsii_.Set( c, "array", @@ -4340,7 +4340,7 @@ func (c *classWithCollections) SetArray(val []string) { ) } -func (c *classWithCollections) SetMap(val map[string]string) { +func (c *classWithCollections_jsiiClass) SetMap(val map[string]string) { _jsii_.Set( c, "map", @@ -4430,14 +4430,14 @@ type ClassWithDocs interface { } // The jsii proxy struct for ClassWithDocs -type classWithDocs struct { +type classWithDocs_jsiiClass struct { _ byte // padding } func NewClassWithDocs() ClassWithDocs { _init_.Initialize() - c := classWithDocs{} + c := classWithDocs_jsiiClass{} _jsii_.Create( "jsii-calc.ClassWithDocs", @@ -4456,11 +4456,11 @@ type ClassWithJavaReservedWords interface { } // The jsii proxy struct for ClassWithJavaReservedWords -type classWithJavaReservedWords struct { +type classWithJavaReservedWords_jsiiClass struct { _ byte // padding } -func (c *classWithJavaReservedWords) Int() string { +func (c *classWithJavaReservedWords_jsiiClass) Int() string { var returns string _jsii_.Get( c, @@ -4474,7 +4474,7 @@ func (c *classWithJavaReservedWords) Int() string { func NewClassWithJavaReservedWords(int string) ClassWithJavaReservedWords { _init_.Initialize() - c := classWithJavaReservedWords{} + c := classWithJavaReservedWords_jsiiClass{} _jsii_.Create( "jsii-calc.ClassWithJavaReservedWords", @@ -4487,7 +4487,7 @@ func NewClassWithJavaReservedWords(int string) ClassWithJavaReservedWords { return &c } -func (c *classWithJavaReservedWords) Import(assert string) string { +func (c *classWithJavaReservedWords_jsiiClass) Import(assert string) string { var returns string _jsii_.Invoke( @@ -4506,11 +4506,11 @@ type ClassWithMutableObjectLiteralProperty interface { } // The jsii proxy struct for ClassWithMutableObjectLiteralProperty -type classWithMutableObjectLiteralProperty struct { +type classWithMutableObjectLiteralProperty_jsiiClass struct { _ byte // padding } -func (c *classWithMutableObjectLiteralProperty) MutableObject() IMutableObjectLiteral { +func (c *classWithMutableObjectLiteralProperty_jsiiClass) MutableObject() IMutableObjectLiteral { var returns IMutableObjectLiteral _jsii_.Get( c, @@ -4524,7 +4524,7 @@ func (c *classWithMutableObjectLiteralProperty) MutableObject() IMutableObjectLi func NewClassWithMutableObjectLiteralProperty() ClassWithMutableObjectLiteralProperty { _init_.Initialize() - c := classWithMutableObjectLiteralProperty{} + c := classWithMutableObjectLiteralProperty_jsiiClass{} _jsii_.Create( "jsii-calc.ClassWithMutableObjectLiteralProperty", @@ -4537,7 +4537,7 @@ func NewClassWithMutableObjectLiteralProperty() ClassWithMutableObjectLiteralPro return &c } -func (c *classWithMutableObjectLiteralProperty) SetMutableObject(val IMutableObjectLiteral) { +func (c *classWithMutableObjectLiteralProperty_jsiiClass) SetMutableObject(val IMutableObjectLiteral) { _jsii_.Set( c, "mutableObject", @@ -4554,11 +4554,11 @@ type ClassWithPrivateConstructorAndAutomaticProperties interface { } // The jsii proxy struct for ClassWithPrivateConstructorAndAutomaticProperties -type classWithPrivateConstructorAndAutomaticProperties struct { - iInterfaceWithProperties // implements jsii-calc.IInterfaceWithProperties +type classWithPrivateConstructorAndAutomaticProperties_jsiiClass struct { + iInterfaceWithProperties_jsiiClass // implements jsii-calc.IInterfaceWithProperties } -func (c *classWithPrivateConstructorAndAutomaticProperties) ReadOnlyString() string { +func (c *classWithPrivateConstructorAndAutomaticProperties_jsiiClass) ReadOnlyString() string { var returns string _jsii_.Get( c, @@ -4568,7 +4568,7 @@ func (c *classWithPrivateConstructorAndAutomaticProperties) ReadOnlyString() str return returns } -func (c *classWithPrivateConstructorAndAutomaticProperties) ReadWriteString() string { +func (c *classWithPrivateConstructorAndAutomaticProperties_jsiiClass) ReadWriteString() string { var returns string _jsii_.Get( c, @@ -4579,7 +4579,7 @@ func (c *classWithPrivateConstructorAndAutomaticProperties) ReadWriteString() st } -func (c *classWithPrivateConstructorAndAutomaticProperties) SetReadWriteString(val string) { +func (c *classWithPrivateConstructorAndAutomaticProperties_jsiiClass) SetReadWriteString(val string) { _jsii_.Set( c, "readWriteString", @@ -4611,11 +4611,11 @@ type ConfusingToJackson interface { } // The jsii proxy struct for ConfusingToJackson -type confusingToJackson struct { +type confusingToJackson_jsiiClass struct { _ byte // padding } -func (c *confusingToJackson) UnionProperty() interface{} { +func (c *confusingToJackson_jsiiClass) UnionProperty() interface{} { var returns interface{} _jsii_.Get( c, @@ -4626,7 +4626,7 @@ func (c *confusingToJackson) UnionProperty() interface{} { } -func (c *confusingToJackson) SetUnionProperty(val interface{}) { +func (c *confusingToJackson_jsiiClass) SetUnionProperty(val interface{}) { _jsii_.Set( c, "unionProperty", @@ -4672,14 +4672,14 @@ type ConstructorPassesThisOut interface { } // The jsii proxy struct for ConstructorPassesThisOut -type constructorPassesThisOut struct { +type constructorPassesThisOut_jsiiClass struct { _ byte // padding } func NewConstructorPassesThisOut(consumer PartiallyInitializedThisConsumer) ConstructorPassesThisOut { _init_.Initialize() - c := constructorPassesThisOut{} + c := constructorPassesThisOut_jsiiClass{} _jsii_.Create( "jsii-calc.ConstructorPassesThisOut", @@ -4696,14 +4696,14 @@ type Constructors interface { } // The jsii proxy struct for Constructors -type constructors struct { +type constructors_jsiiClass struct { _ byte // padding } func NewConstructors() Constructors { _init_.Initialize() - c := constructors{} + c := constructors_jsiiClass{} _jsii_.Create( "jsii-calc.Constructors", @@ -4826,14 +4826,14 @@ type ConsumePureInterface interface { } // The jsii proxy struct for ConsumePureInterface -type consumePureInterface struct { +type consumePureInterface_jsiiClass struct { _ byte // padding } func NewConsumePureInterface(delegate IStructReturningDelegate) ConsumePureInterface { _init_.Initialize() - c := consumePureInterface{} + c := consumePureInterface_jsiiClass{} _jsii_.Create( "jsii-calc.ConsumePureInterface", @@ -4846,7 +4846,7 @@ func NewConsumePureInterface(delegate IStructReturningDelegate) ConsumePureInter return &c } -func (c *consumePureInterface) WorkItBaby() StructB { +func (c *consumePureInterface_jsiiClass) WorkItBaby() StructB { var returns StructB _jsii_.Invoke( @@ -4871,14 +4871,14 @@ type ConsumerCanRingBell interface { } // The jsii proxy struct for ConsumerCanRingBell -type consumerCanRingBell struct { +type consumerCanRingBell_jsiiClass struct { _ byte // padding } func NewConsumerCanRingBell() ConsumerCanRingBell { _init_.Initialize() - c := consumerCanRingBell{} + c := consumerCanRingBell_jsiiClass{} _jsii_.Create( "jsii-calc.ConsumerCanRingBell", @@ -4966,7 +4966,7 @@ func ConsumerCanRingBell_StaticWhenTypedAsClass(ringer IConcreteBellRinger) bool // ...if the interface is implemented using an object literal. // // Returns whether the bell was rung. -func (c *consumerCanRingBell) ImplementedByObjectLiteral(ringer IBellRinger) bool { +func (c *consumerCanRingBell_jsiiClass) ImplementedByObjectLiteral(ringer IBellRinger) bool { var returns bool _jsii_.Invoke( @@ -4982,7 +4982,7 @@ func (c *consumerCanRingBell) ImplementedByObjectLiteral(ringer IBellRinger) boo // ...if the interface is implemented using a private class. // // Return whether the bell was rung. -func (c *consumerCanRingBell) ImplementedByPrivateClass(ringer IBellRinger) bool { +func (c *consumerCanRingBell_jsiiClass) ImplementedByPrivateClass(ringer IBellRinger) bool { var returns bool _jsii_.Invoke( @@ -4998,7 +4998,7 @@ func (c *consumerCanRingBell) ImplementedByPrivateClass(ringer IBellRinger) bool // ...if the interface is implemented using a public class. // // Return whether the bell was rung. -func (c *consumerCanRingBell) ImplementedByPublicClass(ringer IBellRinger) bool { +func (c *consumerCanRingBell_jsiiClass) ImplementedByPublicClass(ringer IBellRinger) bool { var returns bool _jsii_.Invoke( @@ -5014,7 +5014,7 @@ func (c *consumerCanRingBell) ImplementedByPublicClass(ringer IBellRinger) bool // If the parameter is a concrete class instead of an interface. // // Return whether the bell was rung. -func (c *consumerCanRingBell) WhenTypedAsClass(ringer IConcreteBellRinger) bool { +func (c *consumerCanRingBell_jsiiClass) WhenTypedAsClass(ringer IConcreteBellRinger) bool { var returns bool _jsii_.Invoke( @@ -5033,14 +5033,14 @@ type ConsumersOfThisCrazyTypeSystem interface { } // The jsii proxy struct for ConsumersOfThisCrazyTypeSystem -type consumersOfThisCrazyTypeSystem struct { +type consumersOfThisCrazyTypeSystem_jsiiClass struct { _ byte // padding } func NewConsumersOfThisCrazyTypeSystem() ConsumersOfThisCrazyTypeSystem { _init_.Initialize() - c := consumersOfThisCrazyTypeSystem{} + c := consumersOfThisCrazyTypeSystem_jsiiClass{} _jsii_.Create( "jsii-calc.ConsumersOfThisCrazyTypeSystem", @@ -5053,7 +5053,7 @@ func NewConsumersOfThisCrazyTypeSystem() ConsumersOfThisCrazyTypeSystem { return &c } -func (c *consumersOfThisCrazyTypeSystem) ConsumeAnotherPublicInterface(obj IAnotherPublicInterface) string { +func (c *consumersOfThisCrazyTypeSystem_jsiiClass) ConsumeAnotherPublicInterface(obj IAnotherPublicInterface) string { var returns string _jsii_.Invoke( @@ -5066,7 +5066,7 @@ func (c *consumersOfThisCrazyTypeSystem) ConsumeAnotherPublicInterface(obj IAnot return returns } -func (c *consumersOfThisCrazyTypeSystem) ConsumeNonInternalInterface(obj INonInternalInterface) interface{} { +func (c *consumersOfThisCrazyTypeSystem_jsiiClass) ConsumeNonInternalInterface(obj INonInternalInterface) interface{} { var returns interface{} _jsii_.Invoke( @@ -5087,14 +5087,14 @@ type DataRenderer interface { } // The jsii proxy struct for DataRenderer -type dataRenderer struct { +type dataRenderer_jsiiClass struct { _ byte // padding } func NewDataRenderer() DataRenderer { _init_.Initialize() - d := dataRenderer{} + d := dataRenderer_jsiiClass{} _jsii_.Create( "jsii-calc.DataRenderer", @@ -5107,7 +5107,7 @@ func NewDataRenderer() DataRenderer { return &d } -func (d *dataRenderer) Render(data scopejsiicalclib.MyFirstStruct) string { +func (d *dataRenderer_jsiiClass) Render(data scopejsiicalclib.MyFirstStruct) string { var returns string _jsii_.Invoke( @@ -5120,7 +5120,7 @@ func (d *dataRenderer) Render(data scopejsiicalclib.MyFirstStruct) string { return returns } -func (d *dataRenderer) RenderArbitrary(data map[string]interface{}) string { +func (d *dataRenderer_jsiiClass) RenderArbitrary(data map[string]interface{}) string { var returns string _jsii_.Invoke( @@ -5133,7 +5133,7 @@ func (d *dataRenderer) RenderArbitrary(data map[string]interface{}) string { return returns } -func (d *dataRenderer) RenderMap(map_ map[string]interface{}) string { +func (d *dataRenderer_jsiiClass) RenderMap(map_ map[string]interface{}) string { var returns string _jsii_.Invoke( @@ -5146,6 +5146,42 @@ func (d *dataRenderer) RenderMap(map_ map[string]interface{}) string { return returns } +// A class named "Default". +// See: https://github.com/aws/jsii/issues/2637 +// +type Default interface { + PleaseCompile() +} + +// The jsii proxy struct for Default +type default_jsiiClass struct { + _ byte // padding +} + +func NewDefault() Default { + _init_.Initialize() + + d := default_jsiiClass{} + + _jsii_.Create( + "jsii-calc.Default", + nil /* no parameters */, + []_jsii_.FQN{}, + nil, // no overrides + &d, + ) + + return &d +} + +func (d *default_jsiiClass) PleaseCompile() { + _jsii_.InvokeVoid( + d, + "pleaseCompile", + nil /* no parameters */, + ) +} + type DefaultedConstructorArgument interface { Arg1() float64 Arg2() string @@ -5153,11 +5189,11 @@ type DefaultedConstructorArgument interface { } // The jsii proxy struct for DefaultedConstructorArgument -type defaultedConstructorArgument struct { +type defaultedConstructorArgument_jsiiClass struct { _ byte // padding } -func (d *defaultedConstructorArgument) Arg1() float64 { +func (d *defaultedConstructorArgument_jsiiClass) Arg1() float64 { var returns float64 _jsii_.Get( d, @@ -5167,7 +5203,7 @@ func (d *defaultedConstructorArgument) Arg1() float64 { return returns } -func (d *defaultedConstructorArgument) Arg2() string { +func (d *defaultedConstructorArgument_jsiiClass) Arg2() string { var returns string _jsii_.Get( d, @@ -5177,7 +5213,7 @@ func (d *defaultedConstructorArgument) Arg2() string { return returns } -func (d *defaultedConstructorArgument) Arg3() string { +func (d *defaultedConstructorArgument_jsiiClass) Arg3() string { var returns string _jsii_.Get( d, @@ -5191,7 +5227,7 @@ func (d *defaultedConstructorArgument) Arg3() string { func NewDefaultedConstructorArgument(arg1 float64, arg2 string, arg3 string) DefaultedConstructorArgument { _init_.Initialize() - d := defaultedConstructorArgument{} + d := defaultedConstructorArgument_jsiiClass{} _jsii_.Create( "jsii-calc.DefaultedConstructorArgument", @@ -5212,14 +5248,14 @@ type Demonstrate982 interface { } // The jsii proxy struct for Demonstrate982 -type demonstrate982 struct { +type demonstrate982_jsiiClass struct { _ byte // padding } func NewDemonstrate982() Demonstrate982 { _init_.Initialize() - d := demonstrate982{} + d := demonstrate982_jsiiClass{} _jsii_.Create( "jsii-calc.Demonstrate982", @@ -5273,11 +5309,11 @@ type DeprecatedClass interface { } // The jsii proxy struct for DeprecatedClass -type deprecatedClass struct { +type deprecatedClass_jsiiClass struct { _ byte // padding } -func (d *deprecatedClass) MutableProperty() float64 { +func (d *deprecatedClass_jsiiClass) MutableProperty() float64 { var returns float64 _jsii_.Get( d, @@ -5287,7 +5323,7 @@ func (d *deprecatedClass) MutableProperty() float64 { return returns } -func (d *deprecatedClass) ReadonlyProperty() string { +func (d *deprecatedClass_jsiiClass) ReadonlyProperty() string { var returns string _jsii_.Get( d, @@ -5301,7 +5337,7 @@ func (d *deprecatedClass) ReadonlyProperty() string { func NewDeprecatedClass(readonlyString string, mutableNumber float64) DeprecatedClass { _init_.Initialize() - d := deprecatedClass{} + d := deprecatedClass_jsiiClass{} _jsii_.Create( "jsii-calc.DeprecatedClass", @@ -5314,7 +5350,7 @@ func NewDeprecatedClass(readonlyString string, mutableNumber float64) Deprecated return &d } -func (d *deprecatedClass) SetMutableProperty(val float64) { +func (d *deprecatedClass_jsiiClass) SetMutableProperty(val float64) { _jsii_.Set( d, "mutableProperty", @@ -5323,7 +5359,7 @@ func (d *deprecatedClass) SetMutableProperty(val float64) { } // Deprecated: it was a bad idea -func (d *deprecatedClass) Method() { +func (d *deprecatedClass_jsiiClass) Method() { _jsii_.InvokeVoid( d, "method", @@ -5465,7 +5501,7 @@ type DisappointingCollectionSource interface { } // The jsii proxy struct for DisappointingCollectionSource -type disappointingCollectionSource struct { +type disappointingCollectionSource_jsiiClass struct { _ byte // padding } @@ -5498,14 +5534,14 @@ type DoNotOverridePrivates interface { } // The jsii proxy struct for DoNotOverridePrivates -type doNotOverridePrivates struct { +type doNotOverridePrivates_jsiiClass struct { _ byte // padding } func NewDoNotOverridePrivates() DoNotOverridePrivates { _init_.Initialize() - d := doNotOverridePrivates{} + d := doNotOverridePrivates_jsiiClass{} _jsii_.Create( "jsii-calc.DoNotOverridePrivates", @@ -5518,7 +5554,7 @@ func NewDoNotOverridePrivates() DoNotOverridePrivates { return &d } -func (d *doNotOverridePrivates) ChangePrivatePropertyValue(newValue string) { +func (d *doNotOverridePrivates_jsiiClass) ChangePrivatePropertyValue(newValue string) { _jsii_.InvokeVoid( d, "changePrivatePropertyValue", @@ -5526,7 +5562,7 @@ func (d *doNotOverridePrivates) ChangePrivatePropertyValue(newValue string) { ) } -func (d *doNotOverridePrivates) PrivateMethodValue() string { +func (d *doNotOverridePrivates_jsiiClass) PrivateMethodValue() string { var returns string _jsii_.Invoke( @@ -5539,7 +5575,7 @@ func (d *doNotOverridePrivates) PrivateMethodValue() string { return returns } -func (d *doNotOverridePrivates) PrivatePropertyValue() string { +func (d *doNotOverridePrivates_jsiiClass) PrivatePropertyValue() string { var returns string _jsii_.Invoke( @@ -5558,14 +5594,14 @@ type DoNotRecognizeAnyAsOptional interface { } // The jsii proxy struct for DoNotRecognizeAnyAsOptional -type doNotRecognizeAnyAsOptional struct { +type doNotRecognizeAnyAsOptional_jsiiClass struct { _ byte // padding } func NewDoNotRecognizeAnyAsOptional() DoNotRecognizeAnyAsOptional { _init_.Initialize() - d := doNotRecognizeAnyAsOptional{} + d := doNotRecognizeAnyAsOptional_jsiiClass{} _jsii_.Create( "jsii-calc.DoNotRecognizeAnyAsOptional", @@ -5578,7 +5614,7 @@ func NewDoNotRecognizeAnyAsOptional() DoNotRecognizeAnyAsOptional { return &d } -func (d *doNotRecognizeAnyAsOptional) Method(_requiredAny interface{}, _optionalAny interface{}, _optionalString string) { +func (d *doNotRecognizeAnyAsOptional_jsiiClass) Method(_requiredAny interface{}, _optionalAny interface{}, _optionalString string) { _jsii_.InvokeVoid( d, "method", @@ -5601,14 +5637,14 @@ type DocumentedClass interface { } // The jsii proxy struct for DocumentedClass -type documentedClass struct { +type documentedClass_jsiiClass struct { _ byte // padding } func NewDocumentedClass() DocumentedClass { _init_.Initialize() - d := documentedClass{} + d := documentedClass_jsiiClass{} _jsii_.Create( "jsii-calc.DocumentedClass", @@ -5627,7 +5663,7 @@ func NewDocumentedClass() DocumentedClass { // // Returns: A number that everyone knows very well and represents the answer // to the ultimate question -func (d *documentedClass) Greet(greetee Greetee) float64 { +func (d *documentedClass_jsiiClass) Greet(greetee Greetee) float64 { var returns float64 _jsii_.Invoke( @@ -5642,7 +5678,7 @@ func (d *documentedClass) Greet(greetee Greetee) float64 { // Say ¡Hola! // Experimental. -func (d *documentedClass) Hola() { +func (d *documentedClass_jsiiClass) Hola() { _jsii_.InvokeVoid( d, "hola", @@ -5655,14 +5691,14 @@ type DontComplainAboutVariadicAfterOptional interface { } // The jsii proxy struct for DontComplainAboutVariadicAfterOptional -type dontComplainAboutVariadicAfterOptional struct { +type dontComplainAboutVariadicAfterOptional_jsiiClass struct { _ byte // padding } func NewDontComplainAboutVariadicAfterOptional() DontComplainAboutVariadicAfterOptional { _init_.Initialize() - d := dontComplainAboutVariadicAfterOptional{} + d := dontComplainAboutVariadicAfterOptional_jsiiClass{} _jsii_.Create( "jsii-calc.DontComplainAboutVariadicAfterOptional", @@ -5675,7 +5711,7 @@ func NewDontComplainAboutVariadicAfterOptional() DontComplainAboutVariadicAfterO return &d } -func (d *dontComplainAboutVariadicAfterOptional) OptionalAndVariadic(optional string, things string) string { +func (d *dontComplainAboutVariadicAfterOptional_jsiiClass) OptionalAndVariadic(optional string, things string) string { var returns string _jsii_.Invoke( @@ -5695,14 +5731,14 @@ type DoubleTrouble interface { } // The jsii proxy struct for DoubleTrouble -type doubleTrouble struct { - iFriendlyRandomGenerator // implements jsii-calc.IFriendlyRandomGenerator +type doubleTrouble_jsiiClass struct { + iFriendlyRandomGenerator_jsiiClass // implements jsii-calc.IFriendlyRandomGenerator } func NewDoubleTrouble() DoubleTrouble { _init_.Initialize() - d := doubleTrouble{} + d := doubleTrouble_jsiiClass{} _jsii_.Create( "jsii-calc.DoubleTrouble", @@ -5716,7 +5752,7 @@ func NewDoubleTrouble() DoubleTrouble { } // (deprecated) Say hello! -func (d *doubleTrouble) Hello() string { +func (d *doubleTrouble_jsiiClass) Hello() string { var returns string _jsii_.Invoke( @@ -5730,7 +5766,7 @@ func (d *doubleTrouble) Hello() string { } // Returns another random number. -func (d *doubleTrouble) Next() float64 { +func (d *doubleTrouble_jsiiClass) Next() float64 { var returns float64 _jsii_.Invoke( @@ -5752,11 +5788,11 @@ type DynamicPropertyBearer interface { } // The jsii proxy struct for DynamicPropertyBearer -type dynamicPropertyBearer struct { +type dynamicPropertyBearer_jsiiClass struct { _ byte // padding } -func (d *dynamicPropertyBearer) DynamicProperty() string { +func (d *dynamicPropertyBearer_jsiiClass) DynamicProperty() string { var returns string _jsii_.Get( d, @@ -5766,7 +5802,7 @@ func (d *dynamicPropertyBearer) DynamicProperty() string { return returns } -func (d *dynamicPropertyBearer) ValueStore() string { +func (d *dynamicPropertyBearer_jsiiClass) ValueStore() string { var returns string _jsii_.Get( d, @@ -5780,7 +5816,7 @@ func (d *dynamicPropertyBearer) ValueStore() string { func NewDynamicPropertyBearer(valueStore string) DynamicPropertyBearer { _init_.Initialize() - d := dynamicPropertyBearer{} + d := dynamicPropertyBearer_jsiiClass{} _jsii_.Create( "jsii-calc.DynamicPropertyBearer", @@ -5793,7 +5829,7 @@ func NewDynamicPropertyBearer(valueStore string) DynamicPropertyBearer { return &d } -func (d *dynamicPropertyBearer) SetDynamicProperty(val string) { +func (d *dynamicPropertyBearer_jsiiClass) SetDynamicProperty(val string) { _jsii_.Set( d, "dynamicProperty", @@ -5801,7 +5837,7 @@ func (d *dynamicPropertyBearer) SetDynamicProperty(val string) { ) } -func (d *dynamicPropertyBearer) SetValueStore(val string) { +func (d *dynamicPropertyBearer_jsiiClass) SetValueStore(val string) { _jsii_.Set( d, "valueStore", @@ -5816,11 +5852,11 @@ type DynamicPropertyBearerChild interface { } // The jsii proxy struct for DynamicPropertyBearerChild -type dynamicPropertyBearerChild struct { - dynamicPropertyBearer // extends jsii-calc.DynamicPropertyBearer +type dynamicPropertyBearerChild_jsiiClass struct { + dynamicPropertyBearer_jsiiClass // extends jsii-calc.DynamicPropertyBearer } -func (d *dynamicPropertyBearerChild) OriginalValue() string { +func (d *dynamicPropertyBearerChild_jsiiClass) OriginalValue() string { var returns string _jsii_.Get( d, @@ -5834,7 +5870,7 @@ func (d *dynamicPropertyBearerChild) OriginalValue() string { func NewDynamicPropertyBearerChild(originalValue string) DynamicPropertyBearerChild { _init_.Initialize() - d := dynamicPropertyBearerChild{} + d := dynamicPropertyBearerChild_jsiiClass{} _jsii_.Create( "jsii-calc.DynamicPropertyBearerChild", @@ -5850,7 +5886,7 @@ func NewDynamicPropertyBearerChild(originalValue string) DynamicPropertyBearerCh // Sets \`this.dynamicProperty\` to the new value, and returns the old value. // // Returns: the old value that was set. -func (d *dynamicPropertyBearerChild) OverrideValue(newValue string) string { +func (d *dynamicPropertyBearerChild_jsiiClass) OverrideValue(newValue string) string { var returns string _jsii_.Invoke( @@ -5870,7 +5906,7 @@ type Entropy interface { } // The jsii proxy struct for Entropy -type entropy struct { +type entropy_jsiiClass struct { _ byte // padding } @@ -5878,7 +5914,7 @@ type entropy struct { func NewEntropy(clock IWallClock) Entropy { _init_.Initialize() - e := entropy{} + e := entropy_jsiiClass{} _jsii_.Create( "jsii-calc.Entropy", @@ -5894,7 +5930,7 @@ func NewEntropy(clock IWallClock) Entropy { // Increases entropy by consuming time from the clock (yes, this is a long shot, please don't judge). // // Returns: the time from the \`WallClock\`. -func (e *entropy) Increase() string { +func (e *entropy_jsiiClass) Increase() string { var returns string _jsii_.Invoke( @@ -5910,7 +5946,7 @@ func (e *entropy) Increase() string { // Implement this method such that it returns \`word\`. // // Returns: \`word\`. -func (e *entropy) Repeat(word string) string { +func (e *entropy_jsiiClass) Repeat(word string) string { var returns string _jsii_.Invoke( @@ -5927,7 +5963,7 @@ type EnumDispenser interface { } // The jsii proxy struct for EnumDispenser -type enumDispenser struct { +type enumDispenser_jsiiClass struct { _ byte // padding } @@ -5965,14 +6001,14 @@ type EraseUndefinedHashValues interface { } // The jsii proxy struct for EraseUndefinedHashValues -type eraseUndefinedHashValues struct { +type eraseUndefinedHashValues_jsiiClass struct { _ byte // padding } func NewEraseUndefinedHashValues() EraseUndefinedHashValues { _init_.Initialize() - e := eraseUndefinedHashValues{} + e := eraseUndefinedHashValues_jsiiClass{} _jsii_.Create( "jsii-calc.EraseUndefinedHashValues", @@ -6050,11 +6086,11 @@ type ExperimentalClass interface { } // The jsii proxy struct for ExperimentalClass -type experimentalClass struct { +type experimentalClass_jsiiClass struct { _ byte // padding } -func (e *experimentalClass) MutableProperty() float64 { +func (e *experimentalClass_jsiiClass) MutableProperty() float64 { var returns float64 _jsii_.Get( e, @@ -6064,7 +6100,7 @@ func (e *experimentalClass) MutableProperty() float64 { return returns } -func (e *experimentalClass) ReadonlyProperty() string { +func (e *experimentalClass_jsiiClass) ReadonlyProperty() string { var returns string _jsii_.Get( e, @@ -6078,7 +6114,7 @@ func (e *experimentalClass) ReadonlyProperty() string { func NewExperimentalClass(readonlyString string, mutableNumber float64) ExperimentalClass { _init_.Initialize() - e := experimentalClass{} + e := experimentalClass_jsiiClass{} _jsii_.Create( "jsii-calc.ExperimentalClass", @@ -6091,7 +6127,7 @@ func NewExperimentalClass(readonlyString string, mutableNumber float64) Experime return &e } -func (e *experimentalClass) SetMutableProperty(val float64) { +func (e *experimentalClass_jsiiClass) SetMutableProperty(val float64) { _jsii_.Set( e, "mutableProperty", @@ -6100,7 +6136,7 @@ func (e *experimentalClass) SetMutableProperty(val float64) { } // Experimental. -func (e *experimentalClass) Method() { +func (e *experimentalClass_jsiiClass) Method() { _jsii_.InvokeVoid( e, "method", @@ -6127,11 +6163,11 @@ type ExportedBaseClass interface { } // The jsii proxy struct for ExportedBaseClass -type exportedBaseClass struct { +type exportedBaseClass_jsiiClass struct { _ byte // padding } -func (e *exportedBaseClass) Success() bool { +func (e *exportedBaseClass_jsiiClass) Success() bool { var returns bool _jsii_.Get( e, @@ -6145,7 +6181,7 @@ func (e *exportedBaseClass) Success() bool { func NewExportedBaseClass(success bool) ExportedBaseClass { _init_.Initialize() - e := exportedBaseClass{} + e := exportedBaseClass_jsiiClass{} _jsii_.Create( "jsii-calc.ExportedBaseClass", @@ -6171,11 +6207,11 @@ type ExternalClass interface { } // The jsii proxy struct for ExternalClass -type externalClass struct { +type externalClass_jsiiClass struct { _ byte // padding } -func (e *externalClass) MutableProperty() float64 { +func (e *externalClass_jsiiClass) MutableProperty() float64 { var returns float64 _jsii_.Get( e, @@ -6185,7 +6221,7 @@ func (e *externalClass) MutableProperty() float64 { return returns } -func (e *externalClass) ReadonlyProperty() string { +func (e *externalClass_jsiiClass) ReadonlyProperty() string { var returns string _jsii_.Get( e, @@ -6199,7 +6235,7 @@ func (e *externalClass) ReadonlyProperty() string { func NewExternalClass(readonlyString string, mutableNumber float64) ExternalClass { _init_.Initialize() - e := externalClass{} + e := externalClass_jsiiClass{} _jsii_.Create( "jsii-calc.ExternalClass", @@ -6212,7 +6248,7 @@ func NewExternalClass(readonlyString string, mutableNumber float64) ExternalClas return &e } -func (e *externalClass) SetMutableProperty(val float64) { +func (e *externalClass_jsiiClass) SetMutableProperty(val float64) { _jsii_.Set( e, "mutableProperty", @@ -6220,7 +6256,7 @@ func (e *externalClass) SetMutableProperty(val float64) { ) } -func (e *externalClass) Method() { +func (e *externalClass_jsiiClass) Method() { _jsii_.InvokeVoid( e, "method", @@ -6247,11 +6283,11 @@ type GiveMeStructs interface { } // The jsii proxy struct for GiveMeStructs -type giveMeStructs struct { +type giveMeStructs_jsiiClass struct { _ byte // padding } -func (g *giveMeStructs) StructLiteral() scopejsiicalclib.StructWithOnlyOptionals { +func (g *giveMeStructs_jsiiClass) StructLiteral() scopejsiicalclib.StructWithOnlyOptionals { var returns scopejsiicalclib.StructWithOnlyOptionals _jsii_.Get( g, @@ -6265,7 +6301,7 @@ func (g *giveMeStructs) StructLiteral() scopejsiicalclib.StructWithOnlyOptionals func NewGiveMeStructs() GiveMeStructs { _init_.Initialize() - g := giveMeStructs{} + g := giveMeStructs_jsiiClass{} _jsii_.Create( "jsii-calc.GiveMeStructs", @@ -6279,7 +6315,7 @@ func NewGiveMeStructs() GiveMeStructs { } // Accepts a struct of type DerivedStruct and returns a struct of type FirstStruct. -func (g *giveMeStructs) DerivedToFirst(derived DerivedStruct) scopejsiicalclib.MyFirstStruct { +func (g *giveMeStructs_jsiiClass) DerivedToFirst(derived DerivedStruct) scopejsiicalclib.MyFirstStruct { var returns scopejsiicalclib.MyFirstStruct _jsii_.Invoke( @@ -6293,7 +6329,7 @@ func (g *giveMeStructs) DerivedToFirst(derived DerivedStruct) scopejsiicalclib.M } // Returns the boolean from a DerivedStruct struct. -func (g *giveMeStructs) ReadDerivedNonPrimitive(derived DerivedStruct) DoubleTrouble { +func (g *giveMeStructs_jsiiClass) ReadDerivedNonPrimitive(derived DerivedStruct) DoubleTrouble { var returns DoubleTrouble _jsii_.Invoke( @@ -6307,7 +6343,7 @@ func (g *giveMeStructs) ReadDerivedNonPrimitive(derived DerivedStruct) DoubleTro } // Returns the "anumber" from a MyFirstStruct struct; -func (g *giveMeStructs) ReadFirstNumber(first scopejsiicalclib.MyFirstStruct) float64 { +func (g *giveMeStructs_jsiiClass) ReadFirstNumber(first scopejsiicalclib.MyFirstStruct) float64 { var returns float64 _jsii_.Invoke( @@ -6331,14 +6367,14 @@ type GreetingAugmenter interface { } // The jsii proxy struct for GreetingAugmenter -type greetingAugmenter struct { +type greetingAugmenter_jsiiClass struct { _ byte // padding } func NewGreetingAugmenter() GreetingAugmenter { _init_.Initialize() - g := greetingAugmenter{} + g := greetingAugmenter_jsiiClass{} _jsii_.Create( "jsii-calc.GreetingAugmenter", @@ -6351,7 +6387,7 @@ func NewGreetingAugmenter() GreetingAugmenter { return &g } -func (g *greetingAugmenter) BetterGreeting(friendly scopejsiicalclib.IFriendly) string { +func (g *greetingAugmenter_jsiiClass) BetterGreeting(friendly scopejsiicalclib.IFriendly) string { var returns string _jsii_.Invoke( @@ -6371,11 +6407,11 @@ type IAnonymousImplementationProvider interface { } // The jsii proxy for IAnonymousImplementationProvider -type iAnonymousImplementationProvider struct { +type iAnonymousImplementationProvider_jsiiClass struct { _ byte // padding } -func (i *iAnonymousImplementationProvider) ProvideAsClass() Implementation { +func (i *iAnonymousImplementationProvider_jsiiClass) ProvideAsClass() Implementation { var returns Implementation _jsii_.Invoke( @@ -6388,7 +6424,7 @@ func (i *iAnonymousImplementationProvider) ProvideAsClass() Implementation { return returns } -func (i *iAnonymousImplementationProvider) ProvideAsInterface() IAnonymouslyImplementMe { +func (i *iAnonymousImplementationProvider_jsiiClass) ProvideAsInterface() IAnonymouslyImplementMe { var returns IAnonymouslyImplementMe _jsii_.Invoke( @@ -6407,11 +6443,11 @@ type IAnonymouslyImplementMe interface { } // The jsii proxy for IAnonymouslyImplementMe -type iAnonymouslyImplementMe struct { +type iAnonymouslyImplementMe_jsiiClass struct { _ byte // padding } -func (i *iAnonymouslyImplementMe) Verb() string { +func (i *iAnonymouslyImplementMe_jsiiClass) Verb() string { var returns string _jsii_.Invoke( @@ -6424,7 +6460,7 @@ func (i *iAnonymouslyImplementMe) Verb() string { return returns } -func (i *iAnonymouslyImplementMe) Value() float64 { +func (i *iAnonymouslyImplementMe_jsiiClass) Value() float64 { var returns float64 _jsii_.Get( i, @@ -6439,11 +6475,11 @@ type IAnotherPublicInterface interface { } // The jsii proxy for IAnotherPublicInterface -type iAnotherPublicInterface struct { +type iAnotherPublicInterface_jsiiClass struct { _ byte // padding } -func (i *iAnotherPublicInterface) A() string { +func (i *iAnotherPublicInterface_jsiiClass) A() string { var returns string _jsii_.Get( i, @@ -6453,7 +6489,7 @@ func (i *iAnotherPublicInterface) A() string { return returns } -func (i *iAnotherPublicInterface) SetA(val string) { +func (i *iAnotherPublicInterface_jsiiClass) SetA(val string) { _jsii_.Set( i, "a", @@ -6466,11 +6502,11 @@ type IBell interface { } // The jsii proxy for IBell -type iBell struct { +type iBell_jsiiClass struct { _ byte // padding } -func (i *iBell) Ring() { +func (i *iBell_jsiiClass) Ring() { _jsii_.InvokeVoid( i, "ring", @@ -6484,11 +6520,11 @@ type IBellRinger interface { } // The jsii proxy for IBellRinger -type iBellRinger struct { +type iBellRinger_jsiiClass struct { _ byte // padding } -func (i *iBellRinger) YourTurn(bell IBell) { +func (i *iBellRinger_jsiiClass) YourTurn(bell IBell) { _jsii_.InvokeVoid( i, "yourTurn", @@ -6502,11 +6538,11 @@ type IConcreteBellRinger interface { } // The jsii proxy for IConcreteBellRinger -type iConcreteBellRinger struct { +type iConcreteBellRinger_jsiiClass struct { _ byte // padding } -func (i *iConcreteBellRinger) YourTurn(bell Bell) { +func (i *iConcreteBellRinger_jsiiClass) YourTurn(bell Bell) { _jsii_.InvokeVoid( i, "yourTurn", @@ -6523,11 +6559,11 @@ type IDeprecatedInterface interface { } // The jsii proxy for IDeprecatedInterface -type iDeprecatedInterface struct { +type iDeprecatedInterface_jsiiClass struct { _ byte // padding } -func (i *iDeprecatedInterface) Method() { +func (i *iDeprecatedInterface_jsiiClass) Method() { _jsii_.InvokeVoid( i, "method", @@ -6535,7 +6571,7 @@ func (i *iDeprecatedInterface) Method() { ) } -func (i *iDeprecatedInterface) MutableProperty() float64 { +func (i *iDeprecatedInterface_jsiiClass) MutableProperty() float64 { var returns float64 _jsii_.Get( i, @@ -6545,7 +6581,7 @@ func (i *iDeprecatedInterface) MutableProperty() float64 { return returns } -func (i *iDeprecatedInterface) SetMutableProperty(val float64) { +func (i *iDeprecatedInterface_jsiiClass) SetMutableProperty(val float64) { _jsii_.Set( i, "mutableProperty", @@ -6562,11 +6598,11 @@ type IExperimentalInterface interface { } // The jsii proxy for IExperimentalInterface -type iExperimentalInterface struct { +type iExperimentalInterface_jsiiClass struct { _ byte // padding } -func (i *iExperimentalInterface) Method() { +func (i *iExperimentalInterface_jsiiClass) Method() { _jsii_.InvokeVoid( i, "method", @@ -6574,7 +6610,7 @@ func (i *iExperimentalInterface) Method() { ) } -func (i *iExperimentalInterface) MutableProperty() float64 { +func (i *iExperimentalInterface_jsiiClass) MutableProperty() float64 { var returns float64 _jsii_.Get( i, @@ -6584,7 +6620,7 @@ func (i *iExperimentalInterface) MutableProperty() float64 { return returns } -func (i *iExperimentalInterface) SetMutableProperty(val float64) { +func (i *iExperimentalInterface_jsiiClass) SetMutableProperty(val float64) { _jsii_.Set( i, "mutableProperty", @@ -6598,11 +6634,11 @@ type IExtendsPrivateInterface interface { } // The jsii proxy for IExtendsPrivateInterface -type iExtendsPrivateInterface struct { +type iExtendsPrivateInterface_jsiiClass struct { _ byte // padding } -func (i *iExtendsPrivateInterface) MoreThings() []string { +func (i *iExtendsPrivateInterface_jsiiClass) MoreThings() []string { var returns []string _jsii_.Get( i, @@ -6612,7 +6648,7 @@ func (i *iExtendsPrivateInterface) MoreThings() []string { return returns } -func (i *iExtendsPrivateInterface) Private() string { +func (i *iExtendsPrivateInterface_jsiiClass) Private() string { var returns string _jsii_.Get( i, @@ -6622,7 +6658,7 @@ func (i *iExtendsPrivateInterface) Private() string { return returns } -func (i *iExtendsPrivateInterface) SetPrivate(val string) { +func (i *iExtendsPrivateInterface_jsiiClass) SetPrivate(val string) { _jsii_.Set( i, "private", @@ -6636,11 +6672,11 @@ type IExternalInterface interface { } // The jsii proxy for IExternalInterface -type iExternalInterface struct { +type iExternalInterface_jsiiClass struct { _ byte // padding } -func (i *iExternalInterface) Method() { +func (i *iExternalInterface_jsiiClass) Method() { _jsii_.InvokeVoid( i, "method", @@ -6648,7 +6684,7 @@ func (i *iExternalInterface) Method() { ) } -func (i *iExternalInterface) MutableProperty() float64 { +func (i *iExternalInterface_jsiiClass) MutableProperty() float64 { var returns float64 _jsii_.Get( i, @@ -6658,7 +6694,7 @@ func (i *iExternalInterface) MutableProperty() float64 { return returns } -func (i *iExternalInterface) SetMutableProperty(val float64) { +func (i *iExternalInterface_jsiiClass) SetMutableProperty(val float64) { _jsii_.Set( i, "mutableProperty", @@ -6678,11 +6714,11 @@ type IFriendlier interface { } // The jsii proxy for IFriendlier -type iFriendlier struct { +type iFriendlier_jsiiClass struct { scopejsiicalclib.IFriendly // extends @scope/jsii-calc-lib.IFriendly } -func (i *iFriendlier) Farewell() string { +func (i *iFriendlier_jsiiClass) Farewell() string { var returns string _jsii_.Invoke( @@ -6695,7 +6731,7 @@ func (i *iFriendlier) Farewell() string { return returns } -func (i *iFriendlier) Goodbye() string { +func (i *iFriendlier_jsiiClass) Goodbye() string { var returns string _jsii_.Invoke( @@ -6714,12 +6750,12 @@ type IFriendlyRandomGenerator interface { } // The jsii proxy for IFriendlyRandomGenerator -type iFriendlyRandomGenerator struct { +type iFriendlyRandomGenerator_jsiiClass struct { scopejsiicalclib.IFriendly // extends @scope/jsii-calc-lib.IFriendly - iRandomNumberGenerator // extends jsii-calc.IRandomNumberGenerator + iRandomNumberGenerator_jsiiClass // extends jsii-calc.IRandomNumberGenerator } -func (i *iFriendlyRandomGenerator) Hello() string { +func (i *iFriendlyRandomGenerator_jsiiClass) Hello() string { var returns string _jsii_.Invoke( @@ -6732,7 +6768,7 @@ func (i *iFriendlyRandomGenerator) Hello() string { return returns } -func (i *iFriendlyRandomGenerator) Next() float64 { +func (i *iFriendlyRandomGenerator_jsiiClass) Next() float64 { var returns float64 _jsii_.Invoke( @@ -6751,11 +6787,11 @@ type IInterfaceImplementedByAbstractClass interface { } // The jsii proxy for IInterfaceImplementedByAbstractClass -type iInterfaceImplementedByAbstractClass struct { +type iInterfaceImplementedByAbstractClass_jsiiClass struct { _ byte // padding } -func (i *iInterfaceImplementedByAbstractClass) PropFromInterface() string { +func (i *iInterfaceImplementedByAbstractClass_jsiiClass) PropFromInterface() string { var returns string _jsii_.Get( i, @@ -6772,11 +6808,11 @@ type IInterfaceThatShouldNotBeADataType interface { } // The jsii proxy for IInterfaceThatShouldNotBeADataType -type iInterfaceThatShouldNotBeADataType struct { - iInterfaceWithMethods // extends jsii-calc.IInterfaceWithMethods +type iInterfaceThatShouldNotBeADataType_jsiiClass struct { + iInterfaceWithMethods_jsiiClass // extends jsii-calc.IInterfaceWithMethods } -func (i *iInterfaceThatShouldNotBeADataType) OtherValue() string { +func (i *iInterfaceThatShouldNotBeADataType_jsiiClass) OtherValue() string { var returns string _jsii_.Get( i, @@ -6791,11 +6827,11 @@ type IInterfaceWithInternal interface { } // The jsii proxy for IInterfaceWithInternal -type iInterfaceWithInternal struct { +type iInterfaceWithInternal_jsiiClass struct { _ byte // padding } -func (i *iInterfaceWithInternal) Visible() { +func (i *iInterfaceWithInternal_jsiiClass) Visible() { _jsii_.InvokeVoid( i, "visible", @@ -6809,11 +6845,11 @@ type IInterfaceWithMethods interface { } // The jsii proxy for IInterfaceWithMethods -type iInterfaceWithMethods struct { +type iInterfaceWithMethods_jsiiClass struct { _ byte // padding } -func (i *iInterfaceWithMethods) DoThings() { +func (i *iInterfaceWithMethods_jsiiClass) DoThings() { _jsii_.InvokeVoid( i, "doThings", @@ -6821,7 +6857,7 @@ func (i *iInterfaceWithMethods) DoThings() { ) } -func (i *iInterfaceWithMethods) Value() string { +func (i *iInterfaceWithMethods_jsiiClass) Value() string { var returns string _jsii_.Get( i, @@ -6837,11 +6873,11 @@ type IInterfaceWithOptionalMethodArguments interface { } // The jsii proxy for IInterfaceWithOptionalMethodArguments -type iInterfaceWithOptionalMethodArguments struct { +type iInterfaceWithOptionalMethodArguments_jsiiClass struct { _ byte // padding } -func (i *iInterfaceWithOptionalMethodArguments) Hello(arg1 string, arg2 float64) { +func (i *iInterfaceWithOptionalMethodArguments_jsiiClass) Hello(arg1 string, arg2 float64) { _jsii_.InvokeVoid( i, "hello", @@ -6855,11 +6891,11 @@ type IInterfaceWithProperties interface { } // The jsii proxy for IInterfaceWithProperties -type iInterfaceWithProperties struct { +type iInterfaceWithProperties_jsiiClass struct { _ byte // padding } -func (i *iInterfaceWithProperties) ReadOnlyString() string { +func (i *iInterfaceWithProperties_jsiiClass) ReadOnlyString() string { var returns string _jsii_.Get( i, @@ -6869,7 +6905,7 @@ func (i *iInterfaceWithProperties) ReadOnlyString() string { return returns } -func (i *iInterfaceWithProperties) ReadWriteString() string { +func (i *iInterfaceWithProperties_jsiiClass) ReadWriteString() string { var returns string _jsii_.Get( i, @@ -6879,7 +6915,7 @@ func (i *iInterfaceWithProperties) ReadWriteString() string { return returns } -func (i *iInterfaceWithProperties) SetReadWriteString(val string) { +func (i *iInterfaceWithProperties_jsiiClass) SetReadWriteString(val string) { _jsii_.Set( i, "readWriteString", @@ -6893,11 +6929,11 @@ type IInterfaceWithPropertiesExtension interface { } // The jsii proxy for IInterfaceWithPropertiesExtension -type iInterfaceWithPropertiesExtension struct { - iInterfaceWithProperties // extends jsii-calc.IInterfaceWithProperties +type iInterfaceWithPropertiesExtension_jsiiClass struct { + iInterfaceWithProperties_jsiiClass // extends jsii-calc.IInterfaceWithProperties } -func (i *iInterfaceWithPropertiesExtension) Foo() float64 { +func (i *iInterfaceWithPropertiesExtension_jsiiClass) Foo() float64 { var returns float64 _jsii_.Get( i, @@ -6907,7 +6943,7 @@ func (i *iInterfaceWithPropertiesExtension) Foo() float64 { return returns } -func (i *iInterfaceWithPropertiesExtension) SetFoo(val float64) { +func (i *iInterfaceWithPropertiesExtension_jsiiClass) SetFoo(val float64) { _jsii_.Set( i, "foo", @@ -6923,11 +6959,11 @@ type Ijsii417Derived interface { } // The jsii proxy for Ijsii417Derived -type ijsii417Derived struct { - ijsii417PublicBaseOfBase // extends jsii-calc.IJSII417PublicBaseOfBase +type ijsii417Derived_jsiiClass struct { + ijsii417PublicBaseOfBase_jsiiClass // extends jsii-calc.IJSII417PublicBaseOfBase } -func (i *ijsii417Derived) Bar() { +func (i *ijsii417Derived_jsiiClass) Bar() { _jsii_.InvokeVoid( i, "bar", @@ -6935,7 +6971,7 @@ func (i *ijsii417Derived) Bar() { ) } -func (i *ijsii417Derived) Baz() { +func (i *ijsii417Derived_jsiiClass) Baz() { _jsii_.InvokeVoid( i, "baz", @@ -6943,7 +6979,7 @@ func (i *ijsii417Derived) Baz() { ) } -func (i *ijsii417Derived) Property() string { +func (i *ijsii417Derived_jsiiClass) Property() string { var returns string _jsii_.Get( i, @@ -6959,11 +6995,11 @@ type Ijsii417PublicBaseOfBase interface { } // The jsii proxy for Ijsii417PublicBaseOfBase -type ijsii417PublicBaseOfBase struct { +type ijsii417PublicBaseOfBase_jsiiClass struct { _ byte // padding } -func (i *ijsii417PublicBaseOfBase) Foo() { +func (i *ijsii417PublicBaseOfBase_jsiiClass) Foo() { _jsii_.InvokeVoid( i, "foo", @@ -6971,7 +7007,7 @@ func (i *ijsii417PublicBaseOfBase) Foo() { ) } -func (i *ijsii417PublicBaseOfBase) HasRoot() bool { +func (i *ijsii417PublicBaseOfBase_jsiiClass) HasRoot() bool { var returns bool _jsii_.Get( i, @@ -6985,7 +7021,7 @@ type IJsii487External interface { } // The jsii proxy for IJsii487External -type iJsii487External struct { +type iJsii487External_jsiiClass struct { _ byte // padding } @@ -6993,7 +7029,7 @@ type IJsii487External2 interface { } // The jsii proxy for IJsii487External2 -type iJsii487External2 struct { +type iJsii487External2_jsiiClass struct { _ byte // padding } @@ -7001,7 +7037,7 @@ type IJsii496 interface { } // The jsii proxy for IJsii496 -type iJsii496 struct { +type iJsii496_jsiiClass struct { _ byte // padding } @@ -7010,11 +7046,11 @@ type IMutableObjectLiteral interface { } // The jsii proxy for IMutableObjectLiteral -type iMutableObjectLiteral struct { +type iMutableObjectLiteral_jsiiClass struct { _ byte // padding } -func (i *iMutableObjectLiteral) Value() string { +func (i *iMutableObjectLiteral_jsiiClass) Value() string { var returns string _jsii_.Get( i, @@ -7024,7 +7060,7 @@ func (i *iMutableObjectLiteral) Value() string { return returns } -func (i *iMutableObjectLiteral) SetValue(val string) { +func (i *iMutableObjectLiteral_jsiiClass) SetValue(val string) { _jsii_.Set( i, "value", @@ -7039,11 +7075,11 @@ type INonInternalInterface interface { } // The jsii proxy for INonInternalInterface -type iNonInternalInterface struct { - iAnotherPublicInterface // extends jsii-calc.IAnotherPublicInterface +type iNonInternalInterface_jsiiClass struct { + iAnotherPublicInterface_jsiiClass // extends jsii-calc.IAnotherPublicInterface } -func (i *iNonInternalInterface) B() string { +func (i *iNonInternalInterface_jsiiClass) B() string { var returns string _jsii_.Get( i, @@ -7053,7 +7089,7 @@ func (i *iNonInternalInterface) B() string { return returns } -func (i *iNonInternalInterface) SetB(val string) { +func (i *iNonInternalInterface_jsiiClass) SetB(val string) { _jsii_.Set( i, "b", @@ -7061,7 +7097,7 @@ func (i *iNonInternalInterface) SetB(val string) { ) } -func (i *iNonInternalInterface) C() string { +func (i *iNonInternalInterface_jsiiClass) C() string { var returns string _jsii_.Get( i, @@ -7071,7 +7107,7 @@ func (i *iNonInternalInterface) C() string { return returns } -func (i *iNonInternalInterface) SetC(val string) { +func (i *iNonInternalInterface_jsiiClass) SetC(val string) { _jsii_.Set( i, "c", @@ -7086,11 +7122,11 @@ type IObjectWithProperty interface { } // The jsii proxy for IObjectWithProperty -type iObjectWithProperty struct { +type iObjectWithProperty_jsiiClass struct { _ byte // padding } -func (i *iObjectWithProperty) WasSet() bool { +func (i *iObjectWithProperty_jsiiClass) WasSet() bool { var returns bool _jsii_.Invoke( @@ -7103,7 +7139,7 @@ func (i *iObjectWithProperty) WasSet() bool { return returns } -func (i *iObjectWithProperty) Property() string { +func (i *iObjectWithProperty_jsiiClass) Property() string { var returns string _jsii_.Get( i, @@ -7113,7 +7149,7 @@ func (i *iObjectWithProperty) Property() string { return returns } -func (i *iObjectWithProperty) SetProperty(val string) { +func (i *iObjectWithProperty_jsiiClass) SetProperty(val string) { _jsii_.Set( i, "property", @@ -7127,11 +7163,11 @@ type IOptionalMethod interface { } // The jsii proxy for IOptionalMethod -type iOptionalMethod struct { +type iOptionalMethod_jsiiClass struct { _ byte // padding } -func (i *iOptionalMethod) Optional() string { +func (i *iOptionalMethod_jsiiClass) Optional() string { var returns string _jsii_.Invoke( @@ -7149,11 +7185,11 @@ type IPrivatelyImplemented interface { } // The jsii proxy for IPrivatelyImplemented -type iPrivatelyImplemented struct { +type iPrivatelyImplemented_jsiiClass struct { _ byte // padding } -func (i *iPrivatelyImplemented) Success() bool { +func (i *iPrivatelyImplemented_jsiiClass) Success() bool { var returns bool _jsii_.Get( i, @@ -7168,11 +7204,11 @@ type IPublicInterface interface { } // The jsii proxy for IPublicInterface -type iPublicInterface struct { +type iPublicInterface_jsiiClass struct { _ byte // padding } -func (i *iPublicInterface) Bye() string { +func (i *iPublicInterface_jsiiClass) Bye() string { var returns string _jsii_.Invoke( @@ -7190,11 +7226,11 @@ type IPublicInterface2 interface { } // The jsii proxy for IPublicInterface2 -type iPublicInterface2 struct { +type iPublicInterface2_jsiiClass struct { _ byte // padding } -func (i *iPublicInterface2) Ciao() string { +func (i *iPublicInterface2_jsiiClass) Ciao() string { var returns string _jsii_.Invoke( @@ -7216,11 +7252,11 @@ type IRandomNumberGenerator interface { } // The jsii proxy for IRandomNumberGenerator -type iRandomNumberGenerator struct { +type iRandomNumberGenerator_jsiiClass struct { _ byte // padding } -func (i *iRandomNumberGenerator) Next() float64 { +func (i *iRandomNumberGenerator_jsiiClass) Next() float64 { var returns float64 _jsii_.Invoke( @@ -7239,11 +7275,11 @@ type IReturnJsii976 interface { } // The jsii proxy for IReturnJsii976 -type iReturnJsii976 struct { +type iReturnJsii976_jsiiClass struct { _ byte // padding } -func (i *iReturnJsii976) Foo() float64 { +func (i *iReturnJsii976_jsiiClass) Foo() float64 { var returns float64 _jsii_.Get( i, @@ -7259,11 +7295,11 @@ type IReturnsNumber interface { } // The jsii proxy for IReturnsNumber -type iReturnsNumber struct { +type iReturnsNumber_jsiiClass struct { _ byte // padding } -func (i *iReturnsNumber) ObtainNumber() scopejsiicalclib.IDoublable { +func (i *iReturnsNumber_jsiiClass) ObtainNumber() scopejsiicalclib.IDoublable { var returns scopejsiicalclib.IDoublable _jsii_.Invoke( @@ -7276,7 +7312,7 @@ func (i *iReturnsNumber) ObtainNumber() scopejsiicalclib.IDoublable { return returns } -func (i *iReturnsNumber) NumberProp() scopejsiicalclib.Number { +func (i *iReturnsNumber_jsiiClass) NumberProp() scopejsiicalclib.Number { var returns scopejsiicalclib.Number _jsii_.Get( i, @@ -7292,11 +7328,11 @@ type IStableInterface interface { } // The jsii proxy for IStableInterface -type iStableInterface struct { +type iStableInterface_jsiiClass struct { _ byte // padding } -func (i *iStableInterface) Method() { +func (i *iStableInterface_jsiiClass) Method() { _jsii_.InvokeVoid( i, "method", @@ -7304,7 +7340,7 @@ func (i *iStableInterface) Method() { ) } -func (i *iStableInterface) MutableProperty() float64 { +func (i *iStableInterface_jsiiClass) MutableProperty() float64 { var returns float64 _jsii_.Get( i, @@ -7314,7 +7350,7 @@ func (i *iStableInterface) MutableProperty() float64 { return returns } -func (i *iStableInterface) SetMutableProperty(val float64) { +func (i *iStableInterface_jsiiClass) SetMutableProperty(val float64) { _jsii_.Set( i, "mutableProperty", @@ -7328,11 +7364,11 @@ type IStructReturningDelegate interface { } // The jsii proxy for IStructReturningDelegate -type iStructReturningDelegate struct { +type iStructReturningDelegate_jsiiClass struct { _ byte // padding } -func (i *iStructReturningDelegate) ReturnStruct() StructB { +func (i *iStructReturningDelegate_jsiiClass) ReturnStruct() StructB { var returns StructB _jsii_.Invoke( @@ -7352,11 +7388,11 @@ type IWallClock interface { } // The jsii proxy for IWallClock -type iWallClock struct { +type iWallClock_jsiiClass struct { _ byte // padding } -func (i *iWallClock) Iso8601Now() string { +func (i *iWallClock_jsiiClass) Iso8601Now() string { var returns string _jsii_.Invoke( @@ -7375,11 +7411,11 @@ type ImplementInternalInterface interface { } // The jsii proxy struct for ImplementInternalInterface -type implementInternalInterface struct { +type implementInternalInterface_jsiiClass struct { _ byte // padding } -func (i *implementInternalInterface) Prop() string { +func (i *implementInternalInterface_jsiiClass) Prop() string { var returns string _jsii_.Get( i, @@ -7393,7 +7429,7 @@ func (i *implementInternalInterface) Prop() string { func NewImplementInternalInterface() ImplementInternalInterface { _init_.Initialize() - i := implementInternalInterface{} + i := implementInternalInterface_jsiiClass{} _jsii_.Create( "jsii-calc.ImplementInternalInterface", @@ -7406,7 +7442,7 @@ func NewImplementInternalInterface() ImplementInternalInterface { return &i } -func (i *implementInternalInterface) SetProp(val string) { +func (i *implementInternalInterface_jsiiClass) SetProp(val string) { _jsii_.Set( i, "prop", @@ -7419,11 +7455,11 @@ type Implementation interface { } // The jsii proxy struct for Implementation -type implementation struct { +type implementation_jsiiClass struct { _ byte // padding } -func (i *implementation) Value() float64 { +func (i *implementation_jsiiClass) Value() float64 { var returns float64 _jsii_.Get( i, @@ -7437,7 +7473,7 @@ func (i *implementation) Value() float64 { func NewImplementation() Implementation { _init_.Initialize() - i := implementation{} + i := implementation_jsiiClass{} _jsii_.Create( "jsii-calc.Implementation", @@ -7456,14 +7492,14 @@ type ImplementsInterfaceWithInternal interface { } // The jsii proxy struct for ImplementsInterfaceWithInternal -type implementsInterfaceWithInternal struct { - iInterfaceWithInternal // implements jsii-calc.IInterfaceWithInternal +type implementsInterfaceWithInternal_jsiiClass struct { + iInterfaceWithInternal_jsiiClass // implements jsii-calc.IInterfaceWithInternal } func NewImplementsInterfaceWithInternal() ImplementsInterfaceWithInternal { _init_.Initialize() - i := implementsInterfaceWithInternal{} + i := implementsInterfaceWithInternal_jsiiClass{} _jsii_.Create( "jsii-calc.ImplementsInterfaceWithInternal", @@ -7476,7 +7512,7 @@ func NewImplementsInterfaceWithInternal() ImplementsInterfaceWithInternal { return &i } -func (i *implementsInterfaceWithInternal) Visible() { +func (i *implementsInterfaceWithInternal_jsiiClass) Visible() { _jsii_.InvokeVoid( i, "visible", @@ -7489,14 +7525,14 @@ type ImplementsInterfaceWithInternalSubclass interface { } // The jsii proxy struct for ImplementsInterfaceWithInternalSubclass -type implementsInterfaceWithInternalSubclass struct { - implementsInterfaceWithInternal // extends jsii-calc.ImplementsInterfaceWithInternal +type implementsInterfaceWithInternalSubclass_jsiiClass struct { + implementsInterfaceWithInternal_jsiiClass // extends jsii-calc.ImplementsInterfaceWithInternal } func NewImplementsInterfaceWithInternalSubclass() ImplementsInterfaceWithInternalSubclass { _init_.Initialize() - i := implementsInterfaceWithInternalSubclass{} + i := implementsInterfaceWithInternalSubclass_jsiiClass{} _jsii_.Create( "jsii-calc.ImplementsInterfaceWithInternalSubclass", @@ -7515,11 +7551,11 @@ type ImplementsPrivateInterface interface { } // The jsii proxy struct for ImplementsPrivateInterface -type implementsPrivateInterface struct { +type implementsPrivateInterface_jsiiClass struct { _ byte // padding } -func (i *implementsPrivateInterface) Private() string { +func (i *implementsPrivateInterface_jsiiClass) Private() string { var returns string _jsii_.Get( i, @@ -7533,7 +7569,7 @@ func (i *implementsPrivateInterface) Private() string { func NewImplementsPrivateInterface() ImplementsPrivateInterface { _init_.Initialize() - i := implementsPrivateInterface{} + i := implementsPrivateInterface_jsiiClass{} _jsii_.Create( "jsii-calc.ImplementsPrivateInterface", @@ -7546,7 +7582,7 @@ func NewImplementsPrivateInterface() ImplementsPrivateInterface { return &i } -func (i *implementsPrivateInterface) SetPrivate(val string) { +func (i *implementsPrivateInterface_jsiiClass) SetPrivate(val string) { _jsii_.Set( i, "private", @@ -7582,15 +7618,15 @@ type InbetweenClass interface { } // The jsii proxy struct for InbetweenClass -type inbetweenClass struct { - publicClass // extends jsii-calc.PublicClass - iPublicInterface2 // implements jsii-calc.IPublicInterface2 +type inbetweenClass_jsiiClass struct { + publicClass_jsiiClass // extends jsii-calc.PublicClass + iPublicInterface2_jsiiClass // implements jsii-calc.IPublicInterface2 } func NewInbetweenClass() InbetweenClass { _init_.Initialize() - i := inbetweenClass{} + i := inbetweenClass_jsiiClass{} _jsii_.Create( "jsii-calc.InbetweenClass", @@ -7603,7 +7639,7 @@ func NewInbetweenClass() InbetweenClass { return &i } -func (i *inbetweenClass) Ciao() string { +func (i *inbetweenClass_jsiiClass) Ciao() string { var returns string _jsii_.Invoke( @@ -7623,7 +7659,7 @@ type InterfaceCollections interface { } // The jsii proxy struct for InterfaceCollections -type interfaceCollections struct { +type interfaceCollections_jsiiClass struct { _ byte // padding } @@ -7692,7 +7728,7 @@ type InterfacesMaker interface { } // The jsii proxy struct for InterfacesMaker -type interfacesMaker struct { +type interfacesMaker_jsiiClass struct { _ byte // padding } @@ -7720,14 +7756,14 @@ type Isomorphism interface { } // The jsii proxy struct for Isomorphism -type isomorphism struct { +type isomorphism_jsiiClass struct { _ byte // padding } func NewIsomorphism() Isomorphism { _init_.Initialize() - i := isomorphism{} + i := isomorphism_jsiiClass{} _jsii_.Create( "jsii-calc.Isomorphism", @@ -7740,7 +7776,7 @@ func NewIsomorphism() Isomorphism { return &i } -func (i *isomorphism) Myself() Isomorphism { +func (i *isomorphism_jsiiClass) Myself() Isomorphism { var returns Isomorphism _jsii_.Invoke( @@ -7753,6 +7789,60 @@ func (i *isomorphism) Myself() Isomorphism { return returns } +// Docstrings with period. +// See: https://github.com/aws/jsii/issues/2638 +// +type Issue2638 interface { +} + +// The jsii proxy struct for Issue2638 +type issue2638_jsiiClass struct { + _ byte // padding +} + +// First sentence. + +Second sentence. Third sentence. +func NewIssue2638() Issue2638 { + _init_.Initialize() + + i := issue2638_jsiiClass{} + + _jsii_.Create( + "jsii-calc.Issue2638", + nil /* no parameters */, + []_jsii_.FQN{}, + nil, // no overrides + &i, + ) + + return &i +} + +type Issue2638B interface { +} + +// The jsii proxy struct for Issue2638B +type issue2638B_jsiiClass struct { + _ byte // padding +} + +func NewIssue2638B() Issue2638B { + _init_.Initialize() + + i := issue2638B_jsiiClass{} + + _jsii_.Create( + "jsii-calc.Issue2638B", + nil /* no parameters */, + []_jsii_.FQN{}, + nil, // no overrides + &i, + ) + + return &i +} + type Jsii417Derived interface { Jsii417PublicBaseOfBase Property() string @@ -7761,11 +7851,11 @@ type Jsii417Derived interface { } // The jsii proxy struct for Jsii417Derived -type jsii417Derived struct { - jsii417PublicBaseOfBase // extends jsii-calc.JSII417PublicBaseOfBase +type jsii417Derived_jsiiClass struct { + jsii417PublicBaseOfBase_jsiiClass // extends jsii-calc.JSII417PublicBaseOfBase } -func (j *jsii417Derived) Property() string { +func (j *jsii417Derived_jsiiClass) Property() string { var returns string _jsii_.Get( j, @@ -7779,7 +7869,7 @@ func (j *jsii417Derived) Property() string { func NewJsii417Derived(property string) Jsii417Derived { _init_.Initialize() - j := jsii417Derived{} + j := jsii417Derived_jsiiClass{} _jsii_.Create( "jsii-calc.JSII417Derived", @@ -7792,7 +7882,7 @@ func NewJsii417Derived(property string) Jsii417Derived { return &j } -func (j *jsii417Derived) Bar() { +func (j *jsii417Derived_jsiiClass) Bar() { _jsii_.InvokeVoid( j, "bar", @@ -7800,7 +7890,7 @@ func (j *jsii417Derived) Bar() { ) } -func (j *jsii417Derived) Baz() { +func (j *jsii417Derived_jsiiClass) Baz() { _jsii_.InvokeVoid( j, "baz", @@ -7814,11 +7904,11 @@ type Jsii417PublicBaseOfBase interface { } // The jsii proxy struct for Jsii417PublicBaseOfBase -type jsii417PublicBaseOfBase struct { +type jsii417PublicBaseOfBase_jsiiClass struct { _ byte // padding } -func (j *jsii417PublicBaseOfBase) HasRoot() bool { +func (j *jsii417PublicBaseOfBase_jsiiClass) HasRoot() bool { var returns bool _jsii_.Get( j, @@ -7832,7 +7922,7 @@ func (j *jsii417PublicBaseOfBase) HasRoot() bool { func NewJsii417PublicBaseOfBase() Jsii417PublicBaseOfBase { _init_.Initialize() - j := jsii417PublicBaseOfBase{} + j := jsii417PublicBaseOfBase_jsiiClass{} _jsii_.Create( "jsii-calc.JSII417PublicBaseOfBase", @@ -7860,7 +7950,7 @@ func Jsii417PublicBaseOfBase_MakeInstance() Jsii417PublicBaseOfBase { return returns } -func (j *jsii417PublicBaseOfBase) Foo() { +func (j *jsii417PublicBaseOfBase_jsiiClass) Foo() { _jsii_.InvokeVoid( j, "foo", @@ -7874,14 +7964,14 @@ type JsObjectLiteralForInterface interface { } // The jsii proxy struct for JsObjectLiteralForInterface -type jsObjectLiteralForInterface struct { +type jsObjectLiteralForInterface_jsiiClass struct { _ byte // padding } func NewJsObjectLiteralForInterface() JsObjectLiteralForInterface { _init_.Initialize() - j := jsObjectLiteralForInterface{} + j := jsObjectLiteralForInterface_jsiiClass{} _jsii_.Create( "jsii-calc.JSObjectLiteralForInterface", @@ -7894,7 +7984,7 @@ func NewJsObjectLiteralForInterface() JsObjectLiteralForInterface { return &j } -func (j *jsObjectLiteralForInterface) GiveMeFriendly() scopejsiicalclib.IFriendly { +func (j *jsObjectLiteralForInterface_jsiiClass) GiveMeFriendly() scopejsiicalclib.IFriendly { var returns scopejsiicalclib.IFriendly _jsii_.Invoke( @@ -7907,7 +7997,7 @@ func (j *jsObjectLiteralForInterface) GiveMeFriendly() scopejsiicalclib.IFriendl return returns } -func (j *jsObjectLiteralForInterface) GiveMeFriendlyGenerator() IFriendlyRandomGenerator { +func (j *jsObjectLiteralForInterface_jsiiClass) GiveMeFriendlyGenerator() IFriendlyRandomGenerator { var returns IFriendlyRandomGenerator _jsii_.Invoke( @@ -7925,14 +8015,14 @@ type JsObjectLiteralToNative interface { } // The jsii proxy struct for JsObjectLiteralToNative -type jsObjectLiteralToNative struct { +type jsObjectLiteralToNative_jsiiClass struct { _ byte // padding } func NewJsObjectLiteralToNative() JsObjectLiteralToNative { _init_.Initialize() - j := jsObjectLiteralToNative{} + j := jsObjectLiteralToNative_jsiiClass{} _jsii_.Create( "jsii-calc.JSObjectLiteralToNative", @@ -7945,7 +8035,7 @@ func NewJsObjectLiteralToNative() JsObjectLiteralToNative { return &j } -func (j *jsObjectLiteralToNative) ReturnLiteral() JsObjectLiteralToNativeClass { +func (j *jsObjectLiteralToNative_jsiiClass) ReturnLiteral() JsObjectLiteralToNativeClass { var returns JsObjectLiteralToNativeClass _jsii_.Invoke( @@ -7966,11 +8056,11 @@ type JsObjectLiteralToNativeClass interface { } // The jsii proxy struct for JsObjectLiteralToNativeClass -type jsObjectLiteralToNativeClass struct { +type jsObjectLiteralToNativeClass_jsiiClass struct { _ byte // padding } -func (j *jsObjectLiteralToNativeClass) PropA() string { +func (j *jsObjectLiteralToNativeClass_jsiiClass) PropA() string { var returns string _jsii_.Get( j, @@ -7980,7 +8070,7 @@ func (j *jsObjectLiteralToNativeClass) PropA() string { return returns } -func (j *jsObjectLiteralToNativeClass) PropB() float64 { +func (j *jsObjectLiteralToNativeClass_jsiiClass) PropB() float64 { var returns float64 _jsii_.Get( j, @@ -7994,7 +8084,7 @@ func (j *jsObjectLiteralToNativeClass) PropB() float64 { func NewJsObjectLiteralToNativeClass() JsObjectLiteralToNativeClass { _init_.Initialize() - j := jsObjectLiteralToNativeClass{} + j := jsObjectLiteralToNativeClass_jsiiClass{} _jsii_.Create( "jsii-calc.JSObjectLiteralToNativeClass", @@ -8007,7 +8097,7 @@ func NewJsObjectLiteralToNativeClass() JsObjectLiteralToNativeClass { return &j } -func (j *jsObjectLiteralToNativeClass) SetPropA(val string) { +func (j *jsObjectLiteralToNativeClass_jsiiClass) SetPropA(val string) { _jsii_.Set( j, "propA", @@ -8015,7 +8105,7 @@ func (j *jsObjectLiteralToNativeClass) SetPropA(val string) { ) } -func (j *jsObjectLiteralToNativeClass) SetPropB(val float64) { +func (j *jsObjectLiteralToNativeClass_jsiiClass) SetPropB(val float64) { _jsii_.Set( j, "propB", @@ -8081,11 +8171,11 @@ type JavaReservedWords interface { } // The jsii proxy struct for JavaReservedWords -type javaReservedWords struct { +type javaReservedWords_jsiiClass struct { _ byte // padding } -func (j *javaReservedWords) While() string { +func (j *javaReservedWords_jsiiClass) While() string { var returns string _jsii_.Get( j, @@ -8099,7 +8189,7 @@ func (j *javaReservedWords) While() string { func NewJavaReservedWords() JavaReservedWords { _init_.Initialize() - j := javaReservedWords{} + j := javaReservedWords_jsiiClass{} _jsii_.Create( "jsii-calc.JavaReservedWords", @@ -8112,7 +8202,7 @@ func NewJavaReservedWords() JavaReservedWords { return &j } -func (j *javaReservedWords) SetWhile(val string) { +func (j *javaReservedWords_jsiiClass) SetWhile(val string) { _jsii_.Set( j, "while", @@ -8120,7 +8210,7 @@ func (j *javaReservedWords) SetWhile(val string) { ) } -func (j *javaReservedWords) Abstract() { +func (j *javaReservedWords_jsiiClass) Abstract() { _jsii_.InvokeVoid( j, "abstract", @@ -8128,7 +8218,7 @@ func (j *javaReservedWords) Abstract() { ) } -func (j *javaReservedWords) Assert() { +func (j *javaReservedWords_jsiiClass) Assert() { _jsii_.InvokeVoid( j, "assert", @@ -8136,7 +8226,7 @@ func (j *javaReservedWords) Assert() { ) } -func (j *javaReservedWords) Boolean() { +func (j *javaReservedWords_jsiiClass) Boolean() { _jsii_.InvokeVoid( j, "boolean", @@ -8144,7 +8234,7 @@ func (j *javaReservedWords) Boolean() { ) } -func (j *javaReservedWords) Break() { +func (j *javaReservedWords_jsiiClass) Break() { _jsii_.InvokeVoid( j, "break", @@ -8152,7 +8242,7 @@ func (j *javaReservedWords) Break() { ) } -func (j *javaReservedWords) Byte() { +func (j *javaReservedWords_jsiiClass) Byte() { _jsii_.InvokeVoid( j, "byte", @@ -8160,7 +8250,7 @@ func (j *javaReservedWords) Byte() { ) } -func (j *javaReservedWords) Case() { +func (j *javaReservedWords_jsiiClass) Case() { _jsii_.InvokeVoid( j, "case", @@ -8168,7 +8258,7 @@ func (j *javaReservedWords) Case() { ) } -func (j *javaReservedWords) Catch() { +func (j *javaReservedWords_jsiiClass) Catch() { _jsii_.InvokeVoid( j, "catch", @@ -8176,7 +8266,7 @@ func (j *javaReservedWords) Catch() { ) } -func (j *javaReservedWords) Char() { +func (j *javaReservedWords_jsiiClass) Char() { _jsii_.InvokeVoid( j, "char", @@ -8184,7 +8274,7 @@ func (j *javaReservedWords) Char() { ) } -func (j *javaReservedWords) Class() { +func (j *javaReservedWords_jsiiClass) Class() { _jsii_.InvokeVoid( j, "class", @@ -8192,7 +8282,7 @@ func (j *javaReservedWords) Class() { ) } -func (j *javaReservedWords) Const() { +func (j *javaReservedWords_jsiiClass) Const() { _jsii_.InvokeVoid( j, "const", @@ -8200,7 +8290,7 @@ func (j *javaReservedWords) Const() { ) } -func (j *javaReservedWords) Continue() { +func (j *javaReservedWords_jsiiClass) Continue() { _jsii_.InvokeVoid( j, "continue", @@ -8208,7 +8298,7 @@ func (j *javaReservedWords) Continue() { ) } -func (j *javaReservedWords) Default() { +func (j *javaReservedWords_jsiiClass) Default() { _jsii_.InvokeVoid( j, "default", @@ -8216,7 +8306,7 @@ func (j *javaReservedWords) Default() { ) } -func (j *javaReservedWords) Do() { +func (j *javaReservedWords_jsiiClass) Do() { _jsii_.InvokeVoid( j, "do", @@ -8224,7 +8314,7 @@ func (j *javaReservedWords) Do() { ) } -func (j *javaReservedWords) Double() { +func (j *javaReservedWords_jsiiClass) Double() { _jsii_.InvokeVoid( j, "double", @@ -8232,7 +8322,7 @@ func (j *javaReservedWords) Double() { ) } -func (j *javaReservedWords) Else() { +func (j *javaReservedWords_jsiiClass) Else() { _jsii_.InvokeVoid( j, "else", @@ -8240,7 +8330,7 @@ func (j *javaReservedWords) Else() { ) } -func (j *javaReservedWords) Enum() { +func (j *javaReservedWords_jsiiClass) Enum() { _jsii_.InvokeVoid( j, "enum", @@ -8248,7 +8338,7 @@ func (j *javaReservedWords) Enum() { ) } -func (j *javaReservedWords) Extends() { +func (j *javaReservedWords_jsiiClass) Extends() { _jsii_.InvokeVoid( j, "extends", @@ -8256,7 +8346,7 @@ func (j *javaReservedWords) Extends() { ) } -func (j *javaReservedWords) False() { +func (j *javaReservedWords_jsiiClass) False() { _jsii_.InvokeVoid( j, "false", @@ -8264,7 +8354,7 @@ func (j *javaReservedWords) False() { ) } -func (j *javaReservedWords) Final() { +func (j *javaReservedWords_jsiiClass) Final() { _jsii_.InvokeVoid( j, "final", @@ -8272,7 +8362,7 @@ func (j *javaReservedWords) Final() { ) } -func (j *javaReservedWords) Finally() { +func (j *javaReservedWords_jsiiClass) Finally() { _jsii_.InvokeVoid( j, "finally", @@ -8280,7 +8370,7 @@ func (j *javaReservedWords) Finally() { ) } -func (j *javaReservedWords) Float() { +func (j *javaReservedWords_jsiiClass) Float() { _jsii_.InvokeVoid( j, "float", @@ -8288,7 +8378,7 @@ func (j *javaReservedWords) Float() { ) } -func (j *javaReservedWords) For() { +func (j *javaReservedWords_jsiiClass) For() { _jsii_.InvokeVoid( j, "for", @@ -8296,7 +8386,7 @@ func (j *javaReservedWords) For() { ) } -func (j *javaReservedWords) Goto() { +func (j *javaReservedWords_jsiiClass) Goto() { _jsii_.InvokeVoid( j, "goto", @@ -8304,7 +8394,7 @@ func (j *javaReservedWords) Goto() { ) } -func (j *javaReservedWords) If() { +func (j *javaReservedWords_jsiiClass) If() { _jsii_.InvokeVoid( j, "if", @@ -8312,7 +8402,7 @@ func (j *javaReservedWords) If() { ) } -func (j *javaReservedWords) Implements() { +func (j *javaReservedWords_jsiiClass) Implements() { _jsii_.InvokeVoid( j, "implements", @@ -8320,7 +8410,7 @@ func (j *javaReservedWords) Implements() { ) } -func (j *javaReservedWords) Import() { +func (j *javaReservedWords_jsiiClass) Import() { _jsii_.InvokeVoid( j, "import", @@ -8328,7 +8418,7 @@ func (j *javaReservedWords) Import() { ) } -func (j *javaReservedWords) Instanceof() { +func (j *javaReservedWords_jsiiClass) Instanceof() { _jsii_.InvokeVoid( j, "instanceof", @@ -8336,7 +8426,7 @@ func (j *javaReservedWords) Instanceof() { ) } -func (j *javaReservedWords) Int() { +func (j *javaReservedWords_jsiiClass) Int() { _jsii_.InvokeVoid( j, "int", @@ -8344,7 +8434,7 @@ func (j *javaReservedWords) Int() { ) } -func (j *javaReservedWords) Interface() { +func (j *javaReservedWords_jsiiClass) Interface() { _jsii_.InvokeVoid( j, "interface", @@ -8352,7 +8442,7 @@ func (j *javaReservedWords) Interface() { ) } -func (j *javaReservedWords) Long() { +func (j *javaReservedWords_jsiiClass) Long() { _jsii_.InvokeVoid( j, "long", @@ -8360,7 +8450,7 @@ func (j *javaReservedWords) Long() { ) } -func (j *javaReservedWords) Native() { +func (j *javaReservedWords_jsiiClass) Native() { _jsii_.InvokeVoid( j, "native", @@ -8368,7 +8458,7 @@ func (j *javaReservedWords) Native() { ) } -func (j *javaReservedWords) New() { +func (j *javaReservedWords_jsiiClass) New() { _jsii_.InvokeVoid( j, "new", @@ -8376,7 +8466,7 @@ func (j *javaReservedWords) New() { ) } -func (j *javaReservedWords) Null() { +func (j *javaReservedWords_jsiiClass) Null() { _jsii_.InvokeVoid( j, "null", @@ -8384,7 +8474,7 @@ func (j *javaReservedWords) Null() { ) } -func (j *javaReservedWords) Package() { +func (j *javaReservedWords_jsiiClass) Package() { _jsii_.InvokeVoid( j, "package", @@ -8392,7 +8482,7 @@ func (j *javaReservedWords) Package() { ) } -func (j *javaReservedWords) Private() { +func (j *javaReservedWords_jsiiClass) Private() { _jsii_.InvokeVoid( j, "private", @@ -8400,7 +8490,7 @@ func (j *javaReservedWords) Private() { ) } -func (j *javaReservedWords) Protected() { +func (j *javaReservedWords_jsiiClass) Protected() { _jsii_.InvokeVoid( j, "protected", @@ -8408,7 +8498,7 @@ func (j *javaReservedWords) Protected() { ) } -func (j *javaReservedWords) Public() { +func (j *javaReservedWords_jsiiClass) Public() { _jsii_.InvokeVoid( j, "public", @@ -8416,7 +8506,7 @@ func (j *javaReservedWords) Public() { ) } -func (j *javaReservedWords) Return() { +func (j *javaReservedWords_jsiiClass) Return() { _jsii_.InvokeVoid( j, "return", @@ -8424,7 +8514,7 @@ func (j *javaReservedWords) Return() { ) } -func (j *javaReservedWords) Short() { +func (j *javaReservedWords_jsiiClass) Short() { _jsii_.InvokeVoid( j, "short", @@ -8432,7 +8522,7 @@ func (j *javaReservedWords) Short() { ) } -func (j *javaReservedWords) Static() { +func (j *javaReservedWords_jsiiClass) Static() { _jsii_.InvokeVoid( j, "static", @@ -8440,7 +8530,7 @@ func (j *javaReservedWords) Static() { ) } -func (j *javaReservedWords) Strictfp() { +func (j *javaReservedWords_jsiiClass) Strictfp() { _jsii_.InvokeVoid( j, "strictfp", @@ -8448,7 +8538,7 @@ func (j *javaReservedWords) Strictfp() { ) } -func (j *javaReservedWords) Super() { +func (j *javaReservedWords_jsiiClass) Super() { _jsii_.InvokeVoid( j, "super", @@ -8456,7 +8546,7 @@ func (j *javaReservedWords) Super() { ) } -func (j *javaReservedWords) Switch() { +func (j *javaReservedWords_jsiiClass) Switch() { _jsii_.InvokeVoid( j, "switch", @@ -8464,7 +8554,7 @@ func (j *javaReservedWords) Switch() { ) } -func (j *javaReservedWords) Synchronized() { +func (j *javaReservedWords_jsiiClass) Synchronized() { _jsii_.InvokeVoid( j, "synchronized", @@ -8472,7 +8562,7 @@ func (j *javaReservedWords) Synchronized() { ) } -func (j *javaReservedWords) This() { +func (j *javaReservedWords_jsiiClass) This() { _jsii_.InvokeVoid( j, "this", @@ -8480,7 +8570,7 @@ func (j *javaReservedWords) This() { ) } -func (j *javaReservedWords) Throw() { +func (j *javaReservedWords_jsiiClass) Throw() { _jsii_.InvokeVoid( j, "throw", @@ -8488,7 +8578,7 @@ func (j *javaReservedWords) Throw() { ) } -func (j *javaReservedWords) Throws() { +func (j *javaReservedWords_jsiiClass) Throws() { _jsii_.InvokeVoid( j, "throws", @@ -8496,7 +8586,7 @@ func (j *javaReservedWords) Throws() { ) } -func (j *javaReservedWords) Transient() { +func (j *javaReservedWords_jsiiClass) Transient() { _jsii_.InvokeVoid( j, "transient", @@ -8504,7 +8594,7 @@ func (j *javaReservedWords) Transient() { ) } -func (j *javaReservedWords) True() { +func (j *javaReservedWords_jsiiClass) True() { _jsii_.InvokeVoid( j, "true", @@ -8512,7 +8602,7 @@ func (j *javaReservedWords) True() { ) } -func (j *javaReservedWords) Try() { +func (j *javaReservedWords_jsiiClass) Try() { _jsii_.InvokeVoid( j, "try", @@ -8520,7 +8610,7 @@ func (j *javaReservedWords) Try() { ) } -func (j *javaReservedWords) Void() { +func (j *javaReservedWords_jsiiClass) Void() { _jsii_.InvokeVoid( j, "void", @@ -8528,7 +8618,7 @@ func (j *javaReservedWords) Void() { ) } -func (j *javaReservedWords) Volatile() { +func (j *javaReservedWords_jsiiClass) Volatile() { _jsii_.InvokeVoid( j, "volatile", @@ -8542,15 +8632,15 @@ type Jsii487Derived interface { } // The jsii proxy struct for Jsii487Derived -type jsii487Derived struct { - iJsii487External // implements jsii-calc.IJsii487External - iJsii487External2 // implements jsii-calc.IJsii487External2 +type jsii487Derived_jsiiClass struct { + iJsii487External_jsiiClass // implements jsii-calc.IJsii487External + iJsii487External2_jsiiClass // implements jsii-calc.IJsii487External2 } func NewJsii487Derived() Jsii487Derived { _init_.Initialize() - j := jsii487Derived{} + j := jsii487Derived_jsiiClass{} _jsii_.Create( "jsii-calc.Jsii487Derived", @@ -8568,14 +8658,14 @@ type Jsii496Derived interface { } // The jsii proxy struct for Jsii496Derived -type jsii496Derived struct { - iJsii496 // implements jsii-calc.IJsii496 +type jsii496Derived_jsiiClass struct { + iJsii496_jsiiClass // implements jsii-calc.IJsii496 } func NewJsii496Derived() Jsii496Derived { _init_.Initialize() - j := jsii496Derived{} + j := jsii496Derived_jsiiClass{} _jsii_.Create( "jsii-calc.Jsii496Derived", @@ -8593,14 +8683,14 @@ type JsiiAgent interface { } // The jsii proxy struct for JsiiAgent -type jsiiAgent struct { +type jsiiAgent_jsiiClass struct { _ byte // padding } func NewJsiiAgent() JsiiAgent { _init_.Initialize() - j := jsiiAgent{} + j := jsiiAgent_jsiiClass{} _jsii_.Create( "jsii-calc.JsiiAgent", @@ -8631,7 +8721,7 @@ type JsonFormatter interface { } // The jsii proxy struct for JsonFormatter -type jsonFormatter struct { +type jsonFormatter_jsiiClass struct { _ byte // padding } @@ -8851,11 +8941,11 @@ type LevelOne interface { } // The jsii proxy struct for LevelOne -type levelOne struct { +type levelOne_jsiiClass struct { _ byte // padding } -func (l *levelOne) Props() LevelOneProps { +func (l *levelOne_jsiiClass) Props() LevelOneProps { var returns LevelOneProps _jsii_.Get( l, @@ -8869,7 +8959,7 @@ func (l *levelOne) Props() LevelOneProps { func NewLevelOne(props LevelOneProps) LevelOne { _init_.Initialize() - l := levelOne{} + l := levelOne_jsiiClass{} _jsii_.Create( "jsii-calc.LevelOne", @@ -8940,11 +9030,11 @@ type MethodNamedProperty interface { } // The jsii proxy struct for MethodNamedProperty -type methodNamedProperty struct { +type methodNamedProperty_jsiiClass struct { _ byte // padding } -func (m *methodNamedProperty) Elite() float64 { +func (m *methodNamedProperty_jsiiClass) Elite() float64 { var returns float64 _jsii_.Get( m, @@ -8958,7 +9048,7 @@ func (m *methodNamedProperty) Elite() float64 { func NewMethodNamedProperty() MethodNamedProperty { _init_.Initialize() - m := methodNamedProperty{} + m := methodNamedProperty_jsiiClass{} _jsii_.Create( "jsii-calc.MethodNamedProperty", @@ -8971,7 +9061,7 @@ func NewMethodNamedProperty() MethodNamedProperty { return &m } -func (m *methodNamedProperty) Property() string { +func (m *methodNamedProperty_jsiiClass) Property() string { var returns string _jsii_.Invoke( @@ -8997,13 +9087,13 @@ type Multiply interface { } // The jsii proxy struct for Multiply -type multiply struct { - binaryOperation // extends jsii-calc.BinaryOperation - iFriendlier // implements jsii-calc.IFriendlier - iRandomNumberGenerator // implements jsii-calc.IRandomNumberGenerator +type multiply_jsiiClass struct { + binaryOperation_jsiiClass // extends jsii-calc.BinaryOperation + iFriendlier_jsiiClass // implements jsii-calc.IFriendlier + iRandomNumberGenerator_jsiiClass // implements jsii-calc.IRandomNumberGenerator } -func (m *multiply) Value() float64 { +func (m *multiply_jsiiClass) Value() float64 { var returns float64 _jsii_.Get( m, @@ -9013,7 +9103,7 @@ func (m *multiply) Value() float64 { return returns } -func (m *multiply) Lhs() scopejsiicalclib.NumericValue { +func (m *multiply_jsiiClass) Lhs() scopejsiicalclib.NumericValue { var returns scopejsiicalclib.NumericValue _jsii_.Get( m, @@ -9023,7 +9113,7 @@ func (m *multiply) Lhs() scopejsiicalclib.NumericValue { return returns } -func (m *multiply) Rhs() scopejsiicalclib.NumericValue { +func (m *multiply_jsiiClass) Rhs() scopejsiicalclib.NumericValue { var returns scopejsiicalclib.NumericValue _jsii_.Get( m, @@ -9038,7 +9128,7 @@ func (m *multiply) Rhs() scopejsiicalclib.NumericValue { func NewMultiply(lhs scopejsiicalclib.NumericValue, rhs scopejsiicalclib.NumericValue) Multiply { _init_.Initialize() - m := multiply{} + m := multiply_jsiiClass{} _jsii_.Create( "jsii-calc.Multiply", @@ -9052,7 +9142,7 @@ func NewMultiply(lhs scopejsiicalclib.NumericValue, rhs scopejsiicalclib.Numeric } // Say farewell. -func (m *multiply) Farewell() string { +func (m *multiply_jsiiClass) Farewell() string { var returns string _jsii_.Invoke( @@ -9066,7 +9156,7 @@ func (m *multiply) Farewell() string { } // Say goodbye. -func (m *multiply) Goodbye() string { +func (m *multiply_jsiiClass) Goodbye() string { var returns string _jsii_.Invoke( @@ -9080,7 +9170,7 @@ func (m *multiply) Goodbye() string { } // Returns another random number. -func (m *multiply) Next() float64 { +func (m *multiply_jsiiClass) Next() float64 { var returns float64 _jsii_.Invoke( @@ -9094,7 +9184,7 @@ func (m *multiply) Next() float64 { } // (deprecated) String representation of the value. -func (m *multiply) ToString() string { +func (m *multiply_jsiiClass) ToString() string { var returns string _jsii_.Invoke( @@ -9108,7 +9198,7 @@ func (m *multiply) ToString() string { } // (deprecated) Say hello! -func (m *multiply) Hello() string { +func (m *multiply_jsiiClass) Hello() string { var returns string _jsii_.Invoke( @@ -9122,7 +9212,7 @@ func (m *multiply) Hello() string { } // Returns: the name of the class (to verify native type names are created for derived classes). -func (m *multiply) TypeName() interface{} { +func (m *multiply_jsiiClass) TypeName() interface{} { var returns interface{} _jsii_.Invoke( @@ -9147,12 +9237,12 @@ type Negate interface { } // The jsii proxy struct for Negate -type negate struct { - unaryOperation // extends jsii-calc.UnaryOperation - iFriendlier // implements jsii-calc.IFriendlier +type negate_jsiiClass struct { + unaryOperation_jsiiClass // extends jsii-calc.UnaryOperation + iFriendlier_jsiiClass // implements jsii-calc.IFriendlier } -func (n *negate) Value() float64 { +func (n *negate_jsiiClass) Value() float64 { var returns float64 _jsii_.Get( n, @@ -9162,7 +9252,7 @@ func (n *negate) Value() float64 { return returns } -func (n *negate) Operand() scopejsiicalclib.NumericValue { +func (n *negate_jsiiClass) Operand() scopejsiicalclib.NumericValue { var returns scopejsiicalclib.NumericValue _jsii_.Get( n, @@ -9176,7 +9266,7 @@ func (n *negate) Operand() scopejsiicalclib.NumericValue { func NewNegate(operand scopejsiicalclib.NumericValue) Negate { _init_.Initialize() - n := negate{} + n := negate_jsiiClass{} _jsii_.Create( "jsii-calc.Negate", @@ -9190,7 +9280,7 @@ func NewNegate(operand scopejsiicalclib.NumericValue) Negate { } // Say farewell. -func (n *negate) Farewell() string { +func (n *negate_jsiiClass) Farewell() string { var returns string _jsii_.Invoke( @@ -9204,7 +9294,7 @@ func (n *negate) Farewell() string { } // Say goodbye. -func (n *negate) Goodbye() string { +func (n *negate_jsiiClass) Goodbye() string { var returns string _jsii_.Invoke( @@ -9218,7 +9308,7 @@ func (n *negate) Goodbye() string { } // (deprecated) Say hello! -func (n *negate) Hello() string { +func (n *negate_jsiiClass) Hello() string { var returns string _jsii_.Invoke( @@ -9232,7 +9322,7 @@ func (n *negate) Hello() string { } // (deprecated) String representation of the value. -func (n *negate) ToString() string { +func (n *negate_jsiiClass) ToString() string { var returns string _jsii_.Invoke( @@ -9246,7 +9336,7 @@ func (n *negate) ToString() string { } // Returns: the name of the class (to verify native type names are created for derived classes). -func (n *negate) TypeName() interface{} { +func (n *negate_jsiiClass) TypeName() interface{} { var returns interface{} _jsii_.Invoke( @@ -9263,7 +9353,7 @@ type NestedClassInstance interface { } // The jsii proxy struct for NestedClassInstance -type nestedClassInstance struct { +type nestedClassInstance_jsiiClass struct { _ byte // padding } @@ -9296,11 +9386,11 @@ type NodeStandardLibrary interface { } // The jsii proxy struct for NodeStandardLibrary -type nodeStandardLibrary struct { +type nodeStandardLibrary_jsiiClass struct { _ byte // padding } -func (n *nodeStandardLibrary) OsPlatform() string { +func (n *nodeStandardLibrary_jsiiClass) OsPlatform() string { var returns string _jsii_.Get( n, @@ -9314,7 +9404,7 @@ func (n *nodeStandardLibrary) OsPlatform() string { func NewNodeStandardLibrary() NodeStandardLibrary { _init_.Initialize() - n := nodeStandardLibrary{} + n := nodeStandardLibrary_jsiiClass{} _jsii_.Create( "jsii-calc.NodeStandardLibrary", @@ -9330,7 +9420,7 @@ func NewNodeStandardLibrary() NodeStandardLibrary { // Uses node.js "crypto" module to calculate sha256 of a string. // // Returns: "6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50" -func (n *nodeStandardLibrary) CryptoSha256() string { +func (n *nodeStandardLibrary_jsiiClass) CryptoSha256() string { var returns string _jsii_.Invoke( @@ -9346,7 +9436,7 @@ func (n *nodeStandardLibrary) CryptoSha256() string { // Reads a local resource file (resource.txt) asynchronously. // // Returns: "Hello, resource!" -func (n *nodeStandardLibrary) FsReadFile() string { +func (n *nodeStandardLibrary_jsiiClass) FsReadFile() string { var returns string _jsii_.Invoke( @@ -9362,7 +9452,7 @@ func (n *nodeStandardLibrary) FsReadFile() string { // Sync version of fsReadFile. // // Returns: "Hello, resource! SYNC!" -func (n *nodeStandardLibrary) FsReadFileSync() string { +func (n *nodeStandardLibrary_jsiiClass) FsReadFileSync() string { var returns string _jsii_.Invoke( @@ -9385,11 +9475,11 @@ type NullShouldBeTreatedAsUndefined interface { } // The jsii proxy struct for NullShouldBeTreatedAsUndefined -type nullShouldBeTreatedAsUndefined struct { +type nullShouldBeTreatedAsUndefined_jsiiClass struct { _ byte // padding } -func (n *nullShouldBeTreatedAsUndefined) ChangeMeToUndefined() string { +func (n *nullShouldBeTreatedAsUndefined_jsiiClass) ChangeMeToUndefined() string { var returns string _jsii_.Get( n, @@ -9403,7 +9493,7 @@ func (n *nullShouldBeTreatedAsUndefined) ChangeMeToUndefined() string { func NewNullShouldBeTreatedAsUndefined(_param1 string, optional interface{}) NullShouldBeTreatedAsUndefined { _init_.Initialize() - n := nullShouldBeTreatedAsUndefined{} + n := nullShouldBeTreatedAsUndefined_jsiiClass{} _jsii_.Create( "jsii-calc.NullShouldBeTreatedAsUndefined", @@ -9416,7 +9506,7 @@ func NewNullShouldBeTreatedAsUndefined(_param1 string, optional interface{}) Nul return &n } -func (n *nullShouldBeTreatedAsUndefined) SetChangeMeToUndefined(val string) { +func (n *nullShouldBeTreatedAsUndefined_jsiiClass) SetChangeMeToUndefined(val string) { _jsii_.Set( n, "changeMeToUndefined", @@ -9424,7 +9514,7 @@ func (n *nullShouldBeTreatedAsUndefined) SetChangeMeToUndefined(val string) { ) } -func (n *nullShouldBeTreatedAsUndefined) GiveMeUndefined(value interface{}) { +func (n *nullShouldBeTreatedAsUndefined_jsiiClass) GiveMeUndefined(value interface{}) { _jsii_.InvokeVoid( n, "giveMeUndefined", @@ -9432,7 +9522,7 @@ func (n *nullShouldBeTreatedAsUndefined) GiveMeUndefined(value interface{}) { ) } -func (n *nullShouldBeTreatedAsUndefined) GiveMeUndefinedInsideAnObject(input NullShouldBeTreatedAsUndefinedData) { +func (n *nullShouldBeTreatedAsUndefined_jsiiClass) GiveMeUndefinedInsideAnObject(input NullShouldBeTreatedAsUndefinedData) { _jsii_.InvokeVoid( n, "giveMeUndefinedInsideAnObject", @@ -9440,7 +9530,7 @@ func (n *nullShouldBeTreatedAsUndefined) GiveMeUndefinedInsideAnObject(input Nul ) } -func (n *nullShouldBeTreatedAsUndefined) VerifyPropertyIsUndefined() { +func (n *nullShouldBeTreatedAsUndefined_jsiiClass) VerifyPropertyIsUndefined() { _jsii_.InvokeVoid( n, "verifyPropertyIsUndefined", @@ -9462,11 +9552,11 @@ type NumberGenerator interface { } // The jsii proxy struct for NumberGenerator -type numberGenerator struct { +type numberGenerator_jsiiClass struct { _ byte // padding } -func (n *numberGenerator) Generator() IRandomNumberGenerator { +func (n *numberGenerator_jsiiClass) Generator() IRandomNumberGenerator { var returns IRandomNumberGenerator _jsii_.Get( n, @@ -9480,7 +9570,7 @@ func (n *numberGenerator) Generator() IRandomNumberGenerator { func NewNumberGenerator(generator IRandomNumberGenerator) NumberGenerator { _init_.Initialize() - n := numberGenerator{} + n := numberGenerator_jsiiClass{} _jsii_.Create( "jsii-calc.NumberGenerator", @@ -9493,7 +9583,7 @@ func NewNumberGenerator(generator IRandomNumberGenerator) NumberGenerator { return &n } -func (n *numberGenerator) SetGenerator(val IRandomNumberGenerator) { +func (n *numberGenerator_jsiiClass) SetGenerator(val IRandomNumberGenerator) { _jsii_.Set( n, "generator", @@ -9501,7 +9591,7 @@ func (n *numberGenerator) SetGenerator(val IRandomNumberGenerator) { ) } -func (n *numberGenerator) IsSameGenerator(gen IRandomNumberGenerator) bool { +func (n *numberGenerator_jsiiClass) IsSameGenerator(gen IRandomNumberGenerator) bool { var returns bool _jsii_.Invoke( @@ -9514,7 +9604,7 @@ func (n *numberGenerator) IsSameGenerator(gen IRandomNumberGenerator) bool { return returns } -func (n *numberGenerator) NextTimes100() float64 { +func (n *numberGenerator_jsiiClass) NextTimes100() float64 { var returns float64 _jsii_.Invoke( @@ -9534,14 +9624,14 @@ type ObjectRefsInCollections interface { } // The jsii proxy struct for ObjectRefsInCollections -type objectRefsInCollections struct { +type objectRefsInCollections_jsiiClass struct { _ byte // padding } func NewObjectRefsInCollections() ObjectRefsInCollections { _init_.Initialize() - o := objectRefsInCollections{} + o := objectRefsInCollections_jsiiClass{} _jsii_.Create( "jsii-calc.ObjectRefsInCollections", @@ -9555,7 +9645,7 @@ func NewObjectRefsInCollections() ObjectRefsInCollections { } // Returns the sum of all values. -func (o *objectRefsInCollections) SumFromArray(values []scopejsiicalclib.NumericValue) float64 { +func (o *objectRefsInCollections_jsiiClass) SumFromArray(values []scopejsiicalclib.NumericValue) float64 { var returns float64 _jsii_.Invoke( @@ -9569,7 +9659,7 @@ func (o *objectRefsInCollections) SumFromArray(values []scopejsiicalclib.Numeric } // Returns the sum of all values in a map. -func (o *objectRefsInCollections) SumFromMap(values map[string]scopejsiicalclib.NumericValue) float64 { +func (o *objectRefsInCollections_jsiiClass) SumFromMap(values map[string]scopejsiicalclib.NumericValue) float64 { var returns float64 _jsii_.Invoke( @@ -9586,7 +9676,7 @@ type ObjectWithPropertyProvider interface { } // The jsii proxy struct for ObjectWithPropertyProvider -type objectWithPropertyProvider struct { +type objectWithPropertyProvider_jsiiClass struct { _ byte // padding } @@ -9613,14 +9703,14 @@ type Old interface { } // The jsii proxy struct for Old -type old struct { +type old_jsiiClass struct { _ byte // padding } func NewOld() Old { _init_.Initialize() - o := old{} + o := old_jsiiClass{} _jsii_.Create( "jsii-calc.Old", @@ -9636,7 +9726,7 @@ func NewOld() Old { // Doo wop that thing. // Deprecated: Use the new class or the old class whatever you want because // whatever you like is always the best -func (o *old) DoAThing() { +func (o *old_jsiiClass) DoAThing() { _jsii_.InvokeVoid( o, "doAThing", @@ -9650,14 +9740,14 @@ type OptionalArgumentInvoker interface { } // The jsii proxy struct for OptionalArgumentInvoker -type optionalArgumentInvoker struct { +type optionalArgumentInvoker_jsiiClass struct { _ byte // padding } func NewOptionalArgumentInvoker(delegate IInterfaceWithOptionalMethodArguments) OptionalArgumentInvoker { _init_.Initialize() - o := optionalArgumentInvoker{} + o := optionalArgumentInvoker_jsiiClass{} _jsii_.Create( "jsii-calc.OptionalArgumentInvoker", @@ -9670,7 +9760,7 @@ func NewOptionalArgumentInvoker(delegate IInterfaceWithOptionalMethodArguments) return &o } -func (o *optionalArgumentInvoker) InvokeWithOptional() { +func (o *optionalArgumentInvoker_jsiiClass) InvokeWithOptional() { _jsii_.InvokeVoid( o, "invokeWithOptional", @@ -9678,7 +9768,7 @@ func (o *optionalArgumentInvoker) InvokeWithOptional() { ) } -func (o *optionalArgumentInvoker) InvokeWithoutOptional() { +func (o *optionalArgumentInvoker_jsiiClass) InvokeWithoutOptional() { _jsii_.InvokeVoid( o, "invokeWithoutOptional", @@ -9693,11 +9783,11 @@ type OptionalConstructorArgument interface { } // The jsii proxy struct for OptionalConstructorArgument -type optionalConstructorArgument struct { +type optionalConstructorArgument_jsiiClass struct { _ byte // padding } -func (o *optionalConstructorArgument) Arg1() float64 { +func (o *optionalConstructorArgument_jsiiClass) Arg1() float64 { var returns float64 _jsii_.Get( o, @@ -9707,7 +9797,7 @@ func (o *optionalConstructorArgument) Arg1() float64 { return returns } -func (o *optionalConstructorArgument) Arg2() string { +func (o *optionalConstructorArgument_jsiiClass) Arg2() string { var returns string _jsii_.Get( o, @@ -9717,7 +9807,7 @@ func (o *optionalConstructorArgument) Arg2() string { return returns } -func (o *optionalConstructorArgument) Arg3() string { +func (o *optionalConstructorArgument_jsiiClass) Arg3() string { var returns string _jsii_.Get( o, @@ -9731,7 +9821,7 @@ func (o *optionalConstructorArgument) Arg3() string { func NewOptionalConstructorArgument(arg1 float64, arg2 string, arg3 string) OptionalConstructorArgument { _init_.Initialize() - o := optionalConstructorArgument{} + o := optionalConstructorArgument_jsiiClass{} _jsii_.Create( "jsii-calc.OptionalConstructorArgument", @@ -9754,11 +9844,11 @@ type OptionalStructConsumer interface { } // The jsii proxy struct for OptionalStructConsumer -type optionalStructConsumer struct { +type optionalStructConsumer_jsiiClass struct { _ byte // padding } -func (o *optionalStructConsumer) FieldValue() string { +func (o *optionalStructConsumer_jsiiClass) FieldValue() string { var returns string _jsii_.Get( o, @@ -9768,7 +9858,7 @@ func (o *optionalStructConsumer) FieldValue() string { return returns } -func (o *optionalStructConsumer) ParameterWasUndefined() bool { +func (o *optionalStructConsumer_jsiiClass) ParameterWasUndefined() bool { var returns bool _jsii_.Get( o, @@ -9782,7 +9872,7 @@ func (o *optionalStructConsumer) ParameterWasUndefined() bool { func NewOptionalStructConsumer(optionalStruct OptionalStruct) OptionalStructConsumer { _init_.Initialize() - o := optionalStructConsumer{} + o := optionalStructConsumer_jsiiClass{} _jsii_.Create( "jsii-calc.OptionalStructConsumer", @@ -9806,11 +9896,11 @@ type OverridableProtectedMember interface { } // The jsii proxy struct for OverridableProtectedMember -type overridableProtectedMember struct { +type overridableProtectedMember_jsiiClass struct { _ byte // padding } -func (o *overridableProtectedMember) OverrideReadOnly() string { +func (o *overridableProtectedMember_jsiiClass) OverrideReadOnly() string { var returns string _jsii_.Get( o, @@ -9820,7 +9910,7 @@ func (o *overridableProtectedMember) OverrideReadOnly() string { return returns } -func (o *overridableProtectedMember) OverrideReadWrite() string { +func (o *overridableProtectedMember_jsiiClass) OverrideReadWrite() string { var returns string _jsii_.Get( o, @@ -9834,7 +9924,7 @@ func (o *overridableProtectedMember) OverrideReadWrite() string { func NewOverridableProtectedMember() OverridableProtectedMember { _init_.Initialize() - o := overridableProtectedMember{} + o := overridableProtectedMember_jsiiClass{} _jsii_.Create( "jsii-calc.OverridableProtectedMember", @@ -9847,7 +9937,7 @@ func NewOverridableProtectedMember() OverridableProtectedMember { return &o } -func (o *overridableProtectedMember) SetOverrideReadWrite(val string) { +func (o *overridableProtectedMember_jsiiClass) SetOverrideReadWrite(val string) { _jsii_.Set( o, "overrideReadWrite", @@ -9855,7 +9945,7 @@ func (o *overridableProtectedMember) SetOverrideReadWrite(val string) { ) } -func (o *overridableProtectedMember) OverrideMe() string { +func (o *overridableProtectedMember_jsiiClass) OverrideMe() string { var returns string _jsii_.Invoke( @@ -9868,7 +9958,7 @@ func (o *overridableProtectedMember) OverrideMe() string { return returns } -func (o *overridableProtectedMember) SwitchModes() { +func (o *overridableProtectedMember_jsiiClass) SwitchModes() { _jsii_.InvokeVoid( o, "switchModes", @@ -9876,7 +9966,7 @@ func (o *overridableProtectedMember) SwitchModes() { ) } -func (o *overridableProtectedMember) ValueFromProtected() string { +func (o *overridableProtectedMember_jsiiClass) ValueFromProtected() string { var returns string _jsii_.Invoke( @@ -9894,14 +9984,14 @@ type OverrideReturnsObject interface { } // The jsii proxy struct for OverrideReturnsObject -type overrideReturnsObject struct { +type overrideReturnsObject_jsiiClass struct { _ byte // padding } func NewOverrideReturnsObject() OverrideReturnsObject { _init_.Initialize() - o := overrideReturnsObject{} + o := overrideReturnsObject_jsiiClass{} _jsii_.Create( "jsii-calc.OverrideReturnsObject", @@ -9914,7 +10004,7 @@ func NewOverrideReturnsObject() OverrideReturnsObject { return &o } -func (o *overrideReturnsObject) Test(obj IReturnsNumber) float64 { +func (o *overrideReturnsObject_jsiiClass) Test(obj IReturnsNumber) float64 { var returns float64 _jsii_.Invoke( @@ -9937,14 +10027,14 @@ type PartiallyInitializedThisConsumer interface { } // The jsii proxy struct for PartiallyInitializedThisConsumer -type partiallyInitializedThisConsumer struct { +type partiallyInitializedThisConsumer_jsiiClass struct { _ byte // padding } func NewPartiallyInitializedThisConsumer() PartiallyInitializedThisConsumer { _init_.Initialize() - p := partiallyInitializedThisConsumer{} + p := partiallyInitializedThisConsumer_jsiiClass{} _jsii_.Create( "jsii-calc.PartiallyInitializedThisConsumer", @@ -9957,7 +10047,7 @@ func NewPartiallyInitializedThisConsumer() PartiallyInitializedThisConsumer { return &p } -func (p *partiallyInitializedThisConsumer) ConsumePartiallyInitializedThis(obj ConstructorPassesThisOut, dt string, ev AllTypesEnum) string { +func (p *partiallyInitializedThisConsumer_jsiiClass) ConsumePartiallyInitializedThis(obj ConstructorPassesThisOut, dt string, ev AllTypesEnum) string { var returns string _jsii_.Invoke( @@ -9975,14 +10065,14 @@ type Polymorphism interface { } // The jsii proxy struct for Polymorphism -type polymorphism struct { +type polymorphism_jsiiClass struct { _ byte // padding } func NewPolymorphism() Polymorphism { _init_.Initialize() - p := polymorphism{} + p := polymorphism_jsiiClass{} _jsii_.Create( "jsii-calc.Polymorphism", @@ -9995,7 +10085,7 @@ func NewPolymorphism() Polymorphism { return &p } -func (p *polymorphism) SayHello(friendly scopejsiicalclib.IFriendly) string { +func (p *polymorphism_jsiiClass) SayHello(friendly scopejsiicalclib.IFriendly) string { var returns string _jsii_.Invoke( @@ -10017,11 +10107,11 @@ type Power interface { } // The jsii proxy struct for Power -type power struct { +type power_jsiiClass struct { composition.CompositeOperation // extends jsii-calc.composition.CompositeOperation } -func (p *power) Base() scopejsiicalclib.NumericValue { +func (p *power_jsiiClass) Base() scopejsiicalclib.NumericValue { var returns scopejsiicalclib.NumericValue _jsii_.Get( p, @@ -10031,7 +10121,7 @@ func (p *power) Base() scopejsiicalclib.NumericValue { return returns } -func (p *power) Expression() scopejsiicalclib.NumericValue { +func (p *power_jsiiClass) Expression() scopejsiicalclib.NumericValue { var returns scopejsiicalclib.NumericValue _jsii_.Get( p, @@ -10041,7 +10131,7 @@ func (p *power) Expression() scopejsiicalclib.NumericValue { return returns } -func (p *power) Pow() scopejsiicalclib.NumericValue { +func (p *power_jsiiClass) Pow() scopejsiicalclib.NumericValue { var returns scopejsiicalclib.NumericValue _jsii_.Get( p, @@ -10056,7 +10146,7 @@ func (p *power) Pow() scopejsiicalclib.NumericValue { func NewPower(base scopejsiicalclib.NumericValue, pow scopejsiicalclib.NumericValue) Power { _init_.Initialize() - p := power{} + p := power_jsiiClass{} _jsii_.Create( "jsii-calc.Power", @@ -10076,11 +10166,11 @@ type PropertyNamedProperty interface { } // The jsii proxy struct for PropertyNamedProperty -type propertyNamedProperty struct { +type propertyNamedProperty_jsiiClass struct { _ byte // padding } -func (p *propertyNamedProperty) Property() string { +func (p *propertyNamedProperty_jsiiClass) Property() string { var returns string _jsii_.Get( p, @@ -10090,7 +10180,7 @@ func (p *propertyNamedProperty) Property() string { return returns } -func (p *propertyNamedProperty) YetAnoterOne() bool { +func (p *propertyNamedProperty_jsiiClass) YetAnoterOne() bool { var returns bool _jsii_.Get( p, @@ -10104,7 +10194,7 @@ func (p *propertyNamedProperty) YetAnoterOne() bool { func NewPropertyNamedProperty() PropertyNamedProperty { _init_.Initialize() - p := propertyNamedProperty{} + p := propertyNamedProperty_jsiiClass{} _jsii_.Create( "jsii-calc.PropertyNamedProperty", @@ -10122,14 +10212,14 @@ type PublicClass interface { } // The jsii proxy struct for PublicClass -type publicClass struct { +type publicClass_jsiiClass struct { _ byte // padding } func NewPublicClass() PublicClass { _init_.Initialize() - p := publicClass{} + p := publicClass_jsiiClass{} _jsii_.Create( "jsii-calc.PublicClass", @@ -10142,7 +10232,7 @@ func NewPublicClass() PublicClass { return &p } -func (p *publicClass) Hello() { +func (p *publicClass_jsiiClass) Hello() { _jsii_.InvokeVoid( p, "hello", @@ -10186,14 +10276,14 @@ type PythonReservedWords interface { } // The jsii proxy struct for PythonReservedWords -type pythonReservedWords struct { +type pythonReservedWords_jsiiClass struct { _ byte // padding } func NewPythonReservedWords() PythonReservedWords { _init_.Initialize() - p := pythonReservedWords{} + p := pythonReservedWords_jsiiClass{} _jsii_.Create( "jsii-calc.PythonReservedWords", @@ -10206,7 +10296,7 @@ func NewPythonReservedWords() PythonReservedWords { return &p } -func (p *pythonReservedWords) And() { +func (p *pythonReservedWords_jsiiClass) And() { _jsii_.InvokeVoid( p, "and", @@ -10214,7 +10304,7 @@ func (p *pythonReservedWords) And() { ) } -func (p *pythonReservedWords) As() { +func (p *pythonReservedWords_jsiiClass) As() { _jsii_.InvokeVoid( p, "as", @@ -10222,7 +10312,7 @@ func (p *pythonReservedWords) As() { ) } -func (p *pythonReservedWords) Assert() { +func (p *pythonReservedWords_jsiiClass) Assert() { _jsii_.InvokeVoid( p, "assert", @@ -10230,7 +10320,7 @@ func (p *pythonReservedWords) Assert() { ) } -func (p *pythonReservedWords) Async() { +func (p *pythonReservedWords_jsiiClass) Async() { _jsii_.InvokeVoid( p, "async", @@ -10238,7 +10328,7 @@ func (p *pythonReservedWords) Async() { ) } -func (p *pythonReservedWords) Await() { +func (p *pythonReservedWords_jsiiClass) Await() { _jsii_.InvokeVoid( p, "await", @@ -10246,7 +10336,7 @@ func (p *pythonReservedWords) Await() { ) } -func (p *pythonReservedWords) Break() { +func (p *pythonReservedWords_jsiiClass) Break() { _jsii_.InvokeVoid( p, "break", @@ -10254,7 +10344,7 @@ func (p *pythonReservedWords) Break() { ) } -func (p *pythonReservedWords) Class() { +func (p *pythonReservedWords_jsiiClass) Class() { _jsii_.InvokeVoid( p, "class", @@ -10262,7 +10352,7 @@ func (p *pythonReservedWords) Class() { ) } -func (p *pythonReservedWords) Continue() { +func (p *pythonReservedWords_jsiiClass) Continue() { _jsii_.InvokeVoid( p, "continue", @@ -10270,7 +10360,7 @@ func (p *pythonReservedWords) Continue() { ) } -func (p *pythonReservedWords) Def() { +func (p *pythonReservedWords_jsiiClass) Def() { _jsii_.InvokeVoid( p, "def", @@ -10278,7 +10368,7 @@ func (p *pythonReservedWords) Def() { ) } -func (p *pythonReservedWords) Del() { +func (p *pythonReservedWords_jsiiClass) Del() { _jsii_.InvokeVoid( p, "del", @@ -10286,7 +10376,7 @@ func (p *pythonReservedWords) Del() { ) } -func (p *pythonReservedWords) Elif() { +func (p *pythonReservedWords_jsiiClass) Elif() { _jsii_.InvokeVoid( p, "elif", @@ -10294,7 +10384,7 @@ func (p *pythonReservedWords) Elif() { ) } -func (p *pythonReservedWords) Else() { +func (p *pythonReservedWords_jsiiClass) Else() { _jsii_.InvokeVoid( p, "else", @@ -10302,7 +10392,7 @@ func (p *pythonReservedWords) Else() { ) } -func (p *pythonReservedWords) Except() { +func (p *pythonReservedWords_jsiiClass) Except() { _jsii_.InvokeVoid( p, "except", @@ -10310,7 +10400,7 @@ func (p *pythonReservedWords) Except() { ) } -func (p *pythonReservedWords) Finally() { +func (p *pythonReservedWords_jsiiClass) Finally() { _jsii_.InvokeVoid( p, "finally", @@ -10318,7 +10408,7 @@ func (p *pythonReservedWords) Finally() { ) } -func (p *pythonReservedWords) For() { +func (p *pythonReservedWords_jsiiClass) For() { _jsii_.InvokeVoid( p, "for", @@ -10326,7 +10416,7 @@ func (p *pythonReservedWords) For() { ) } -func (p *pythonReservedWords) From() { +func (p *pythonReservedWords_jsiiClass) From() { _jsii_.InvokeVoid( p, "from", @@ -10334,7 +10424,7 @@ func (p *pythonReservedWords) From() { ) } -func (p *pythonReservedWords) Global() { +func (p *pythonReservedWords_jsiiClass) Global() { _jsii_.InvokeVoid( p, "global", @@ -10342,7 +10432,7 @@ func (p *pythonReservedWords) Global() { ) } -func (p *pythonReservedWords) If() { +func (p *pythonReservedWords_jsiiClass) If() { _jsii_.InvokeVoid( p, "if", @@ -10350,7 +10440,7 @@ func (p *pythonReservedWords) If() { ) } -func (p *pythonReservedWords) Import() { +func (p *pythonReservedWords_jsiiClass) Import() { _jsii_.InvokeVoid( p, "import", @@ -10358,7 +10448,7 @@ func (p *pythonReservedWords) Import() { ) } -func (p *pythonReservedWords) In() { +func (p *pythonReservedWords_jsiiClass) In() { _jsii_.InvokeVoid( p, "in", @@ -10366,7 +10456,7 @@ func (p *pythonReservedWords) In() { ) } -func (p *pythonReservedWords) Is() { +func (p *pythonReservedWords_jsiiClass) Is() { _jsii_.InvokeVoid( p, "is", @@ -10374,7 +10464,7 @@ func (p *pythonReservedWords) Is() { ) } -func (p *pythonReservedWords) Lambda() { +func (p *pythonReservedWords_jsiiClass) Lambda() { _jsii_.InvokeVoid( p, "lambda", @@ -10382,7 +10472,7 @@ func (p *pythonReservedWords) Lambda() { ) } -func (p *pythonReservedWords) Nonlocal() { +func (p *pythonReservedWords_jsiiClass) Nonlocal() { _jsii_.InvokeVoid( p, "nonlocal", @@ -10390,7 +10480,7 @@ func (p *pythonReservedWords) Nonlocal() { ) } -func (p *pythonReservedWords) Not() { +func (p *pythonReservedWords_jsiiClass) Not() { _jsii_.InvokeVoid( p, "not", @@ -10398,7 +10488,7 @@ func (p *pythonReservedWords) Not() { ) } -func (p *pythonReservedWords) Or() { +func (p *pythonReservedWords_jsiiClass) Or() { _jsii_.InvokeVoid( p, "or", @@ -10406,7 +10496,7 @@ func (p *pythonReservedWords) Or() { ) } -func (p *pythonReservedWords) Pass() { +func (p *pythonReservedWords_jsiiClass) Pass() { _jsii_.InvokeVoid( p, "pass", @@ -10414,7 +10504,7 @@ func (p *pythonReservedWords) Pass() { ) } -func (p *pythonReservedWords) Raise() { +func (p *pythonReservedWords_jsiiClass) Raise() { _jsii_.InvokeVoid( p, "raise", @@ -10422,7 +10512,7 @@ func (p *pythonReservedWords) Raise() { ) } -func (p *pythonReservedWords) Return() { +func (p *pythonReservedWords_jsiiClass) Return() { _jsii_.InvokeVoid( p, "return", @@ -10430,7 +10520,7 @@ func (p *pythonReservedWords) Return() { ) } -func (p *pythonReservedWords) Try() { +func (p *pythonReservedWords_jsiiClass) Try() { _jsii_.InvokeVoid( p, "try", @@ -10438,7 +10528,7 @@ func (p *pythonReservedWords) Try() { ) } -func (p *pythonReservedWords) While() { +func (p *pythonReservedWords_jsiiClass) While() { _jsii_.InvokeVoid( p, "while", @@ -10446,7 +10536,7 @@ func (p *pythonReservedWords) While() { ) } -func (p *pythonReservedWords) With() { +func (p *pythonReservedWords_jsiiClass) With() { _jsii_.InvokeVoid( p, "with", @@ -10454,7 +10544,7 @@ func (p *pythonReservedWords) With() { ) } -func (p *pythonReservedWords) Yield() { +func (p *pythonReservedWords_jsiiClass) Yield() { _jsii_.InvokeVoid( p, "yield", @@ -10471,11 +10561,11 @@ type ReferenceEnumFromScopedPackage interface { } // The jsii proxy struct for ReferenceEnumFromScopedPackage -type referenceEnumFromScopedPackage struct { +type referenceEnumFromScopedPackage_jsiiClass struct { _ byte // padding } -func (r *referenceEnumFromScopedPackage) Foo() scopejsiicalclib.EnumFromScopedModule { +func (r *referenceEnumFromScopedPackage_jsiiClass) Foo() scopejsiicalclib.EnumFromScopedModule { var returns scopejsiicalclib.EnumFromScopedModule _jsii_.Get( r, @@ -10489,7 +10579,7 @@ func (r *referenceEnumFromScopedPackage) Foo() scopejsiicalclib.EnumFromScopedMo func NewReferenceEnumFromScopedPackage() ReferenceEnumFromScopedPackage { _init_.Initialize() - r := referenceEnumFromScopedPackage{} + r := referenceEnumFromScopedPackage_jsiiClass{} _jsii_.Create( "jsii-calc.ReferenceEnumFromScopedPackage", @@ -10502,7 +10592,7 @@ func NewReferenceEnumFromScopedPackage() ReferenceEnumFromScopedPackage { return &r } -func (r *referenceEnumFromScopedPackage) SetFoo(val scopejsiicalclib.EnumFromScopedModule) { +func (r *referenceEnumFromScopedPackage_jsiiClass) SetFoo(val scopejsiicalclib.EnumFromScopedModule) { _jsii_.Set( r, "foo", @@ -10510,7 +10600,7 @@ func (r *referenceEnumFromScopedPackage) SetFoo(val scopejsiicalclib.EnumFromSco ) } -func (r *referenceEnumFromScopedPackage) LoadFoo() scopejsiicalclib.EnumFromScopedModule { +func (r *referenceEnumFromScopedPackage_jsiiClass) LoadFoo() scopejsiicalclib.EnumFromScopedModule { var returns scopejsiicalclib.EnumFromScopedModule _jsii_.Invoke( @@ -10523,7 +10613,7 @@ func (r *referenceEnumFromScopedPackage) LoadFoo() scopejsiicalclib.EnumFromScop return returns } -func (r *referenceEnumFromScopedPackage) SaveFoo(value scopejsiicalclib.EnumFromScopedModule) { +func (r *referenceEnumFromScopedPackage_jsiiClass) SaveFoo(value scopejsiicalclib.EnumFromScopedModule) { _jsii_.InvokeVoid( r, "saveFoo", @@ -10541,11 +10631,11 @@ type ReturnsPrivateImplementationOfInterface interface { } // The jsii proxy struct for ReturnsPrivateImplementationOfInterface -type returnsPrivateImplementationOfInterface struct { +type returnsPrivateImplementationOfInterface_jsiiClass struct { _ byte // padding } -func (r *returnsPrivateImplementationOfInterface) PrivateImplementation() IPrivatelyImplemented { +func (r *returnsPrivateImplementationOfInterface_jsiiClass) PrivateImplementation() IPrivatelyImplemented { var returns IPrivatelyImplemented _jsii_.Get( r, @@ -10559,7 +10649,7 @@ func (r *returnsPrivateImplementationOfInterface) PrivateImplementation() IPriva func NewReturnsPrivateImplementationOfInterface() ReturnsPrivateImplementationOfInterface { _init_.Initialize() - r := returnsPrivateImplementationOfInterface{} + r := returnsPrivateImplementationOfInterface_jsiiClass{} _jsii_.Create( "jsii-calc.ReturnsPrivateImplementationOfInterface", @@ -10586,7 +10676,7 @@ type RootStructValidator interface { } // The jsii proxy struct for RootStructValidator -type rootStructValidator struct { +type rootStructValidator_jsiiClass struct { _ byte // padding } @@ -10607,14 +10697,14 @@ type RuntimeTypeChecking interface { } // The jsii proxy struct for RuntimeTypeChecking -type runtimeTypeChecking struct { +type runtimeTypeChecking_jsiiClass struct { _ byte // padding } func NewRuntimeTypeChecking() RuntimeTypeChecking { _init_.Initialize() - r := runtimeTypeChecking{} + r := runtimeTypeChecking_jsiiClass{} _jsii_.Create( "jsii-calc.RuntimeTypeChecking", @@ -10627,7 +10717,7 @@ func NewRuntimeTypeChecking() RuntimeTypeChecking { return &r } -func (r *runtimeTypeChecking) MethodWithDefaultedArguments(arg1 float64, arg2 string, arg3 string) { +func (r *runtimeTypeChecking_jsiiClass) MethodWithDefaultedArguments(arg1 float64, arg2 string, arg3 string) { _jsii_.InvokeVoid( r, "methodWithDefaultedArguments", @@ -10635,7 +10725,7 @@ func (r *runtimeTypeChecking) MethodWithDefaultedArguments(arg1 float64, arg2 st ) } -func (r *runtimeTypeChecking) MethodWithOptionalAnyArgument(arg interface{}) { +func (r *runtimeTypeChecking_jsiiClass) MethodWithOptionalAnyArgument(arg interface{}) { _jsii_.InvokeVoid( r, "methodWithOptionalAnyArgument", @@ -10644,7 +10734,7 @@ func (r *runtimeTypeChecking) MethodWithOptionalAnyArgument(arg interface{}) { } // Used to verify verification of number of method arguments. -func (r *runtimeTypeChecking) MethodWithOptionalArguments(arg1 float64, arg2 string, arg3 string) { +func (r *runtimeTypeChecking_jsiiClass) MethodWithOptionalArguments(arg1 float64, arg2 string, arg3 string) { _jsii_.InvokeVoid( r, "methodWithOptionalArguments", @@ -10670,14 +10760,14 @@ type SingleInstanceTwoTypes interface { } // The jsii proxy struct for SingleInstanceTwoTypes -type singleInstanceTwoTypes struct { +type singleInstanceTwoTypes_jsiiClass struct { _ byte // padding } func NewSingleInstanceTwoTypes() SingleInstanceTwoTypes { _init_.Initialize() - s := singleInstanceTwoTypes{} + s := singleInstanceTwoTypes_jsiiClass{} _jsii_.Create( "jsii-calc.SingleInstanceTwoTypes", @@ -10690,7 +10780,7 @@ func NewSingleInstanceTwoTypes() SingleInstanceTwoTypes { return &s } -func (s *singleInstanceTwoTypes) Interface1() InbetweenClass { +func (s *singleInstanceTwoTypes_jsiiClass) Interface1() InbetweenClass { var returns InbetweenClass _jsii_.Invoke( @@ -10703,7 +10793,7 @@ func (s *singleInstanceTwoTypes) Interface1() InbetweenClass { return returns } -func (s *singleInstanceTwoTypes) Interface2() IPublicInterface { +func (s *singleInstanceTwoTypes_jsiiClass) Interface2() IPublicInterface { var returns IPublicInterface _jsii_.Invoke( @@ -10724,11 +10814,11 @@ type SingletonInt interface { } // The jsii proxy struct for SingletonInt -type singletonInt struct { +type singletonInt_jsiiClass struct { _ byte // padding } -func (s *singletonInt) IsSingletonInt(value float64) bool { +func (s *singletonInt_jsiiClass) IsSingletonInt(value float64) bool { var returns bool _jsii_.Invoke( @@ -10756,11 +10846,11 @@ type SingletonString interface { } // The jsii proxy struct for SingletonString -type singletonString struct { +type singletonString_jsiiClass struct { _ byte // padding } -func (s *singletonString) IsSingletonString(value string) bool { +func (s *singletonString_jsiiClass) IsSingletonString(value string) bool { var returns bool _jsii_.Invoke( @@ -10789,14 +10879,14 @@ type SomeTypeJsii976 interface { } // The jsii proxy struct for SomeTypeJsii976 -type someTypeJsii976 struct { +type someTypeJsii976_jsiiClass struct { _ byte // padding } func NewSomeTypeJsii976() SomeTypeJsii976 { _init_.Initialize() - s := someTypeJsii976{} + s := someTypeJsii976_jsiiClass{} _jsii_.Create( "jsii-calc.SomeTypeJsii976", @@ -10847,11 +10937,11 @@ type StableClass interface { } // The jsii proxy struct for StableClass -type stableClass struct { +type stableClass_jsiiClass struct { _ byte // padding } -func (s *stableClass) MutableProperty() float64 { +func (s *stableClass_jsiiClass) MutableProperty() float64 { var returns float64 _jsii_.Get( s, @@ -10861,7 +10951,7 @@ func (s *stableClass) MutableProperty() float64 { return returns } -func (s *stableClass) ReadonlyProperty() string { +func (s *stableClass_jsiiClass) ReadonlyProperty() string { var returns string _jsii_.Get( s, @@ -10875,7 +10965,7 @@ func (s *stableClass) ReadonlyProperty() string { func NewStableClass(readonlyString string, mutableNumber float64) StableClass { _init_.Initialize() - s := stableClass{} + s := stableClass_jsiiClass{} _jsii_.Create( "jsii-calc.StableClass", @@ -10888,7 +10978,7 @@ func NewStableClass(readonlyString string, mutableNumber float64) StableClass { return &s } -func (s *stableClass) SetMutableProperty(val float64) { +func (s *stableClass_jsiiClass) SetMutableProperty(val float64) { _jsii_.Set( s, "mutableProperty", @@ -10896,7 +10986,7 @@ func (s *stableClass) SetMutableProperty(val float64) { ) } -func (s *stableClass) Method() { +func (s *stableClass_jsiiClass) Method() { _jsii_.InvokeVoid( s, "method", @@ -10922,7 +11012,7 @@ type StaticContext interface { } // The jsii proxy struct for StaticContext -type staticContext struct { +type staticContext_jsiiClass struct { _ byte // padding } @@ -10966,8 +11056,8 @@ type StaticHelloChild interface { } // The jsii proxy struct for StaticHelloChild -type staticHelloChild struct { - staticHelloParent // extends jsii-calc.StaticHelloParent +type staticHelloChild_jsiiClass struct { + staticHelloParent_jsiiClass // extends jsii-calc.StaticHelloParent } func StaticHelloChild_Method() { @@ -11000,14 +11090,14 @@ type StaticHelloParent interface { } // The jsii proxy struct for StaticHelloParent -type staticHelloParent struct { +type staticHelloParent_jsiiClass struct { _ byte // padding } func NewStaticHelloParent() StaticHelloParent { _init_.Initialize() - s := staticHelloParent{} + s := staticHelloParent_jsiiClass{} _jsii_.Create( "jsii-calc.StaticHelloParent", @@ -11047,11 +11137,11 @@ type Statics interface { } // The jsii proxy struct for Statics -type statics struct { +type statics_jsiiClass struct { _ byte // padding } -func (s *statics) Value() string { +func (s *statics_jsiiClass) Value() string { var returns string _jsii_.Get( s, @@ -11065,7 +11155,7 @@ func (s *statics) Value() string { func NewStatics(value string) Statics { _init_.Initialize() - s := statics{} + s := statics_jsiiClass{} _jsii_.Create( "jsii-calc.Statics", @@ -11178,7 +11268,7 @@ func Statics_ZooBar() map[string]string { return returns } -func (s *statics) JustMethod() string { +func (s *statics_jsiiClass) JustMethod() string { var returns string _jsii_.Invoke( @@ -11205,11 +11295,11 @@ type StripInternal interface { } // The jsii proxy struct for StripInternal -type stripInternal struct { +type stripInternal_jsiiClass struct { _ byte // padding } -func (s *stripInternal) YouSeeMe() string { +func (s *stripInternal_jsiiClass) YouSeeMe() string { var returns string _jsii_.Get( s, @@ -11223,7 +11313,7 @@ func (s *stripInternal) YouSeeMe() string { func NewStripInternal() StripInternal { _init_.Initialize() - s := stripInternal{} + s := stripInternal_jsiiClass{} _jsii_.Create( "jsii-calc.StripInternal", @@ -11236,7 +11326,7 @@ func NewStripInternal() StripInternal { return &s } -func (s *stripInternal) SetYouSeeMe(val string) { +func (s *stripInternal_jsiiClass) SetYouSeeMe(val string) { _jsii_.Set( s, "youSeeMe", @@ -11271,14 +11361,14 @@ type StructPassing interface { } // The jsii proxy struct for StructPassing -type structPassing struct { +type structPassing_jsiiClass struct { _ byte // padding } func NewStructPassing() StructPassing { _init_.Initialize() - s := structPassing{} + s := structPassing_jsiiClass{} _jsii_.Create( "jsii-calc.StructPassing", @@ -11325,7 +11415,7 @@ type StructUnionConsumer interface { } // The jsii proxy struct for StructUnionConsumer -type structUnionConsumer struct { +type structUnionConsumer_jsiiClass struct { _ byte // padding } @@ -11382,11 +11472,11 @@ type Sum interface { } // The jsii proxy struct for Sum -type sum struct { +type sum_jsiiClass struct { composition.CompositeOperation // extends jsii-calc.composition.CompositeOperation } -func (s *sum) Expression() scopejsiicalclib.NumericValue { +func (s *sum_jsiiClass) Expression() scopejsiicalclib.NumericValue { var returns scopejsiicalclib.NumericValue _jsii_.Get( s, @@ -11396,7 +11486,7 @@ func (s *sum) Expression() scopejsiicalclib.NumericValue { return returns } -func (s *sum) Parts() []scopejsiicalclib.NumericValue { +func (s *sum_jsiiClass) Parts() []scopejsiicalclib.NumericValue { var returns []scopejsiicalclib.NumericValue _jsii_.Get( s, @@ -11410,7 +11500,7 @@ func (s *sum) Parts() []scopejsiicalclib.NumericValue { func NewSum() Sum { _init_.Initialize() - s := sum{} + s := sum_jsiiClass{} _jsii_.Create( "jsii-calc.Sum", @@ -11423,7 +11513,7 @@ func NewSum() Sum { return &s } -func (s *sum) SetParts(val []scopejsiicalclib.NumericValue) { +func (s *sum_jsiiClass) SetParts(val []scopejsiicalclib.NumericValue) { _jsii_.Set( s, "parts", @@ -11438,11 +11528,11 @@ type SupportsNiceJavaBuilder interface { } // The jsii proxy struct for SupportsNiceJavaBuilder -type supportsNiceJavaBuilder struct { - supportsNiceJavaBuilderWithRequiredProps // extends jsii-calc.SupportsNiceJavaBuilderWithRequiredProps +type supportsNiceJavaBuilder_jsiiClass struct { + supportsNiceJavaBuilderWithRequiredProps_jsiiClass // extends jsii-calc.SupportsNiceJavaBuilderWithRequiredProps } -func (s *supportsNiceJavaBuilder) Id() float64 { +func (s *supportsNiceJavaBuilder_jsiiClass) Id() float64 { var returns float64 _jsii_.Get( s, @@ -11452,7 +11542,7 @@ func (s *supportsNiceJavaBuilder) Id() float64 { return returns } -func (s *supportsNiceJavaBuilder) Rest() []string { +func (s *supportsNiceJavaBuilder_jsiiClass) Rest() []string { var returns []string _jsii_.Get( s, @@ -11466,7 +11556,7 @@ func (s *supportsNiceJavaBuilder) Rest() []string { func NewSupportsNiceJavaBuilder(id float64, defaultBar float64, props SupportsNiceJavaBuilderProps, rest string) SupportsNiceJavaBuilder { _init_.Initialize() - s := supportsNiceJavaBuilder{} + s := supportsNiceJavaBuilder_jsiiClass{} _jsii_.Create( "jsii-calc.SupportsNiceJavaBuilder", @@ -11496,11 +11586,11 @@ type SupportsNiceJavaBuilderWithRequiredProps interface { } // The jsii proxy struct for SupportsNiceJavaBuilderWithRequiredProps -type supportsNiceJavaBuilderWithRequiredProps struct { +type supportsNiceJavaBuilderWithRequiredProps_jsiiClass struct { _ byte // padding } -func (s *supportsNiceJavaBuilderWithRequiredProps) Bar() float64 { +func (s *supportsNiceJavaBuilderWithRequiredProps_jsiiClass) Bar() float64 { var returns float64 _jsii_.Get( s, @@ -11510,7 +11600,7 @@ func (s *supportsNiceJavaBuilderWithRequiredProps) Bar() float64 { return returns } -func (s *supportsNiceJavaBuilderWithRequiredProps) Id() float64 { +func (s *supportsNiceJavaBuilderWithRequiredProps_jsiiClass) Id() float64 { var returns float64 _jsii_.Get( s, @@ -11520,7 +11610,7 @@ func (s *supportsNiceJavaBuilderWithRequiredProps) Id() float64 { return returns } -func (s *supportsNiceJavaBuilderWithRequiredProps) PropId() string { +func (s *supportsNiceJavaBuilderWithRequiredProps_jsiiClass) PropId() string { var returns string _jsii_.Get( s, @@ -11534,7 +11624,7 @@ func (s *supportsNiceJavaBuilderWithRequiredProps) PropId() string { func NewSupportsNiceJavaBuilderWithRequiredProps(id float64, props SupportsNiceJavaBuilderProps) SupportsNiceJavaBuilderWithRequiredProps { _init_.Initialize() - s := supportsNiceJavaBuilderWithRequiredProps{} + s := supportsNiceJavaBuilderWithRequiredProps_jsiiClass{} _jsii_.Create( "jsii-calc.SupportsNiceJavaBuilderWithRequiredProps", @@ -11572,11 +11662,11 @@ type SyncVirtualMethods interface { } // The jsii proxy struct for SyncVirtualMethods -type syncVirtualMethods struct { +type syncVirtualMethods_jsiiClass struct { _ byte // padding } -func (s *syncVirtualMethods) A() float64 { +func (s *syncVirtualMethods_jsiiClass) A() float64 { var returns float64 _jsii_.Get( s, @@ -11586,7 +11676,7 @@ func (s *syncVirtualMethods) A() float64 { return returns } -func (s *syncVirtualMethods) CallerIsProperty() float64 { +func (s *syncVirtualMethods_jsiiClass) CallerIsProperty() float64 { var returns float64 _jsii_.Get( s, @@ -11596,7 +11686,7 @@ func (s *syncVirtualMethods) CallerIsProperty() float64 { return returns } -func (s *syncVirtualMethods) OtherProperty() string { +func (s *syncVirtualMethods_jsiiClass) OtherProperty() string { var returns string _jsii_.Get( s, @@ -11606,7 +11696,7 @@ func (s *syncVirtualMethods) OtherProperty() string { return returns } -func (s *syncVirtualMethods) ReadonlyProperty() string { +func (s *syncVirtualMethods_jsiiClass) ReadonlyProperty() string { var returns string _jsii_.Get( s, @@ -11616,7 +11706,7 @@ func (s *syncVirtualMethods) ReadonlyProperty() string { return returns } -func (s *syncVirtualMethods) TheProperty() string { +func (s *syncVirtualMethods_jsiiClass) TheProperty() string { var returns string _jsii_.Get( s, @@ -11626,7 +11716,7 @@ func (s *syncVirtualMethods) TheProperty() string { return returns } -func (s *syncVirtualMethods) ValueOfOtherProperty() string { +func (s *syncVirtualMethods_jsiiClass) ValueOfOtherProperty() string { var returns string _jsii_.Get( s, @@ -11640,7 +11730,7 @@ func (s *syncVirtualMethods) ValueOfOtherProperty() string { func NewSyncVirtualMethods() SyncVirtualMethods { _init_.Initialize() - s := syncVirtualMethods{} + s := syncVirtualMethods_jsiiClass{} _jsii_.Create( "jsii-calc.SyncVirtualMethods", @@ -11653,7 +11743,7 @@ func NewSyncVirtualMethods() SyncVirtualMethods { return &s } -func (s *syncVirtualMethods) SetA(val float64) { +func (s *syncVirtualMethods_jsiiClass) SetA(val float64) { _jsii_.Set( s, "a", @@ -11661,7 +11751,7 @@ func (s *syncVirtualMethods) SetA(val float64) { ) } -func (s *syncVirtualMethods) SetCallerIsProperty(val float64) { +func (s *syncVirtualMethods_jsiiClass) SetCallerIsProperty(val float64) { _jsii_.Set( s, "callerIsProperty", @@ -11669,7 +11759,7 @@ func (s *syncVirtualMethods) SetCallerIsProperty(val float64) { ) } -func (s *syncVirtualMethods) SetOtherProperty(val string) { +func (s *syncVirtualMethods_jsiiClass) SetOtherProperty(val string) { _jsii_.Set( s, "otherProperty", @@ -11677,7 +11767,7 @@ func (s *syncVirtualMethods) SetOtherProperty(val string) { ) } -func (s *syncVirtualMethods) SetTheProperty(val string) { +func (s *syncVirtualMethods_jsiiClass) SetTheProperty(val string) { _jsii_.Set( s, "theProperty", @@ -11685,7 +11775,7 @@ func (s *syncVirtualMethods) SetTheProperty(val string) { ) } -func (s *syncVirtualMethods) SetValueOfOtherProperty(val string) { +func (s *syncVirtualMethods_jsiiClass) SetValueOfOtherProperty(val string) { _jsii_.Set( s, "valueOfOtherProperty", @@ -11693,7 +11783,7 @@ func (s *syncVirtualMethods) SetValueOfOtherProperty(val string) { ) } -func (s *syncVirtualMethods) CallerIsAsync() float64 { +func (s *syncVirtualMethods_jsiiClass) CallerIsAsync() float64 { var returns float64 _jsii_.Invoke( @@ -11706,7 +11796,7 @@ func (s *syncVirtualMethods) CallerIsAsync() float64 { return returns } -func (s *syncVirtualMethods) CallerIsMethod() float64 { +func (s *syncVirtualMethods_jsiiClass) CallerIsMethod() float64 { var returns float64 _jsii_.Invoke( @@ -11719,7 +11809,7 @@ func (s *syncVirtualMethods) CallerIsMethod() float64 { return returns } -func (s *syncVirtualMethods) ModifyOtherProperty(value string) { +func (s *syncVirtualMethods_jsiiClass) ModifyOtherProperty(value string) { _jsii_.InvokeVoid( s, "modifyOtherProperty", @@ -11727,7 +11817,7 @@ func (s *syncVirtualMethods) ModifyOtherProperty(value string) { ) } -func (s *syncVirtualMethods) ModifyValueOfTheProperty(value string) { +func (s *syncVirtualMethods_jsiiClass) ModifyValueOfTheProperty(value string) { _jsii_.InvokeVoid( s, "modifyValueOfTheProperty", @@ -11735,7 +11825,7 @@ func (s *syncVirtualMethods) ModifyValueOfTheProperty(value string) { ) } -func (s *syncVirtualMethods) ReadA() float64 { +func (s *syncVirtualMethods_jsiiClass) ReadA() float64 { var returns float64 _jsii_.Invoke( @@ -11748,7 +11838,7 @@ func (s *syncVirtualMethods) ReadA() float64 { return returns } -func (s *syncVirtualMethods) RetrieveOtherProperty() string { +func (s *syncVirtualMethods_jsiiClass) RetrieveOtherProperty() string { var returns string _jsii_.Invoke( @@ -11761,7 +11851,7 @@ func (s *syncVirtualMethods) RetrieveOtherProperty() string { return returns } -func (s *syncVirtualMethods) RetrieveReadOnlyProperty() string { +func (s *syncVirtualMethods_jsiiClass) RetrieveReadOnlyProperty() string { var returns string _jsii_.Invoke( @@ -11774,7 +11864,7 @@ func (s *syncVirtualMethods) RetrieveReadOnlyProperty() string { return returns } -func (s *syncVirtualMethods) RetrieveValueOfTheProperty() string { +func (s *syncVirtualMethods_jsiiClass) RetrieveValueOfTheProperty() string { var returns string _jsii_.Invoke( @@ -11787,7 +11877,7 @@ func (s *syncVirtualMethods) RetrieveValueOfTheProperty() string { return returns } -func (s *syncVirtualMethods) VirtualMethod(n float64) float64 { +func (s *syncVirtualMethods_jsiiClass) VirtualMethod(n float64) float64 { var returns float64 _jsii_.Invoke( @@ -11800,7 +11890,7 @@ func (s *syncVirtualMethods) VirtualMethod(n float64) float64 { return returns } -func (s *syncVirtualMethods) WriteA(value float64) { +func (s *syncVirtualMethods_jsiiClass) WriteA(value float64) { _jsii_.InvokeVoid( s, "writeA", @@ -11816,11 +11906,11 @@ type TestStructWithEnum interface { } // The jsii proxy struct for TestStructWithEnum -type testStructWithEnum struct { +type testStructWithEnum_jsiiClass struct { _ byte // padding } -func (t *testStructWithEnum) StructWithFoo() StructWithEnum { +func (t *testStructWithEnum_jsiiClass) StructWithFoo() StructWithEnum { var returns StructWithEnum _jsii_.Get( t, @@ -11830,7 +11920,7 @@ func (t *testStructWithEnum) StructWithFoo() StructWithEnum { return returns } -func (t *testStructWithEnum) StructWithFooBar() StructWithEnum { +func (t *testStructWithEnum_jsiiClass) StructWithFooBar() StructWithEnum { var returns StructWithEnum _jsii_.Get( t, @@ -11844,7 +11934,7 @@ func (t *testStructWithEnum) StructWithFooBar() StructWithEnum { func NewTestStructWithEnum() TestStructWithEnum { _init_.Initialize() - t := testStructWithEnum{} + t := testStructWithEnum_jsiiClass{} _jsii_.Create( "jsii-calc.TestStructWithEnum", @@ -11858,7 +11948,7 @@ func NewTestStructWithEnum() TestStructWithEnum { } // Returns true if \`foo\` is \`StringEnum.A\`. -func (t *testStructWithEnum) IsStringEnumA(input StructWithEnum) bool { +func (t *testStructWithEnum_jsiiClass) IsStringEnumA(input StructWithEnum) bool { var returns bool _jsii_.Invoke( @@ -11872,7 +11962,7 @@ func (t *testStructWithEnum) IsStringEnumA(input StructWithEnum) bool { } // Returns true if \`foo\` is \`StringEnum.B\` and \`bar\` is \`AllTypesEnum.THIS_IS_GREAT\`. -func (t *testStructWithEnum) IsStringEnumB(input StructWithEnum) bool { +func (t *testStructWithEnum_jsiiClass) IsStringEnumB(input StructWithEnum) bool { var returns bool _jsii_.Invoke( @@ -11890,14 +11980,14 @@ type Thrower interface { } // The jsii proxy struct for Thrower -type thrower struct { +type thrower_jsiiClass struct { _ byte // padding } func NewThrower() Thrower { _init_.Initialize() - t := thrower{} + t := thrower_jsiiClass{} _jsii_.Create( "jsii-calc.Thrower", @@ -11910,7 +12000,7 @@ func NewThrower() Thrower { return &t } -func (t *thrower) ThrowError() { +func (t *thrower_jsiiClass) ThrowError() { _jsii_.InvokeVoid( t, "throwError", @@ -11934,7 +12024,7 @@ type UmaskCheck interface { } // The jsii proxy struct for UmaskCheck -type umaskCheck struct { +type umaskCheck_jsiiClass struct { _ byte // padding } @@ -11961,11 +12051,11 @@ type UnaryOperation interface { } // The jsii proxy struct for UnaryOperation -type unaryOperation struct { +type unaryOperation_jsiiClass struct { scopejsiicalclib.Operation // extends @scope/jsii-calc-lib.Operation } -func (u *unaryOperation) Operand() scopejsiicalclib.NumericValue { +func (u *unaryOperation_jsiiClass) Operand() scopejsiicalclib.NumericValue { var returns scopejsiicalclib.NumericValue _jsii_.Get( u, @@ -11979,7 +12069,7 @@ func (u *unaryOperation) Operand() scopejsiicalclib.NumericValue { func NewUnaryOperation(operand scopejsiicalclib.NumericValue) UnaryOperation { _init_.Initialize() - u := unaryOperation{} + u := unaryOperation_jsiiClass{} _jsii_.Create( "jsii-calc.UnaryOperation", @@ -12004,11 +12094,11 @@ type UpcasingReflectable interface { } // The jsii proxy struct for UpcasingReflectable -type upcasingReflectable struct { +type upcasingReflectable_jsiiClass struct { submodule.IReflectable // implements @scope/jsii-calc-lib.submodule.IReflectable } -func (u *upcasingReflectable) Entries() []submodule.ReflectableEntry { +func (u *upcasingReflectable_jsiiClass) Entries() []submodule.ReflectableEntry { var returns []submodule.ReflectableEntry _jsii_.Get( u, @@ -12022,7 +12112,7 @@ func (u *upcasingReflectable) Entries() []submodule.ReflectableEntry { func NewUpcasingReflectable(delegate map[string]interface{}) UpcasingReflectable { _init_.Initialize() - u := upcasingReflectable{} + u := upcasingReflectable_jsiiClass{} _jsii_.Create( "jsii-calc.UpcasingReflectable", @@ -12051,14 +12141,14 @@ type UseBundledDependency interface { } // The jsii proxy struct for UseBundledDependency -type useBundledDependency struct { +type useBundledDependency_jsiiClass struct { _ byte // padding } func NewUseBundledDependency() UseBundledDependency { _init_.Initialize() - u := useBundledDependency{} + u := useBundledDependency_jsiiClass{} _jsii_.Create( "jsii-calc.UseBundledDependency", @@ -12071,7 +12161,7 @@ func NewUseBundledDependency() UseBundledDependency { return &u } -func (u *useBundledDependency) Value() interface{} { +func (u *useBundledDependency_jsiiClass) Value() interface{} { var returns interface{} _jsii_.Invoke( @@ -12090,14 +12180,14 @@ type UseCalcBase interface { } // The jsii proxy struct for UseCalcBase -type useCalcBase struct { +type useCalcBase_jsiiClass struct { _ byte // padding } func NewUseCalcBase() UseCalcBase { _init_.Initialize() - u := useCalcBase{} + u := useCalcBase_jsiiClass{} _jsii_.Create( "jsii-calc.UseCalcBase", @@ -12110,7 +12200,7 @@ func NewUseCalcBase() UseCalcBase { return &u } -func (u *useCalcBase) Hello() scopejsiicalcbase.Base { +func (u *useCalcBase_jsiiClass) Hello() scopejsiicalcbase.Base { var returns scopejsiicalcbase.Base _jsii_.Invoke( @@ -12131,11 +12221,11 @@ type UsesInterfaceWithProperties interface { } // The jsii proxy struct for UsesInterfaceWithProperties -type usesInterfaceWithProperties struct { +type usesInterfaceWithProperties_jsiiClass struct { _ byte // padding } -func (u *usesInterfaceWithProperties) Obj() IInterfaceWithProperties { +func (u *usesInterfaceWithProperties_jsiiClass) Obj() IInterfaceWithProperties { var returns IInterfaceWithProperties _jsii_.Get( u, @@ -12149,7 +12239,7 @@ func (u *usesInterfaceWithProperties) Obj() IInterfaceWithProperties { func NewUsesInterfaceWithProperties(obj IInterfaceWithProperties) UsesInterfaceWithProperties { _init_.Initialize() - u := usesInterfaceWithProperties{} + u := usesInterfaceWithProperties_jsiiClass{} _jsii_.Create( "jsii-calc.UsesInterfaceWithProperties", @@ -12162,7 +12252,7 @@ func NewUsesInterfaceWithProperties(obj IInterfaceWithProperties) UsesInterfaceW return &u } -func (u *usesInterfaceWithProperties) JustRead() string { +func (u *usesInterfaceWithProperties_jsiiClass) JustRead() string { var returns string _jsii_.Invoke( @@ -12175,7 +12265,7 @@ func (u *usesInterfaceWithProperties) JustRead() string { return returns } -func (u *usesInterfaceWithProperties) ReadStringAndNumber(ext IInterfaceWithPropertiesExtension) string { +func (u *usesInterfaceWithProperties_jsiiClass) ReadStringAndNumber(ext IInterfaceWithPropertiesExtension) string { var returns string _jsii_.Invoke( @@ -12188,7 +12278,7 @@ func (u *usesInterfaceWithProperties) ReadStringAndNumber(ext IInterfaceWithProp return returns } -func (u *usesInterfaceWithProperties) WriteAndRead(value string) string { +func (u *usesInterfaceWithProperties_jsiiClass) WriteAndRead(value string) string { var returns string _jsii_.Invoke( @@ -12206,14 +12296,14 @@ type VariadicInvoker interface { } // The jsii proxy struct for VariadicInvoker -type variadicInvoker struct { +type variadicInvoker_jsiiClass struct { _ byte // padding } func NewVariadicInvoker(method VariadicMethod) VariadicInvoker { _init_.Initialize() - v := variadicInvoker{} + v := variadicInvoker_jsiiClass{} _jsii_.Create( "jsii-calc.VariadicInvoker", @@ -12226,7 +12316,7 @@ func NewVariadicInvoker(method VariadicMethod) VariadicInvoker { return &v } -func (v *variadicInvoker) AsArray(values float64) []float64 { +func (v *variadicInvoker_jsiiClass) AsArray(values float64) []float64 { var returns []float64 _jsii_.Invoke( @@ -12244,14 +12334,14 @@ type VariadicMethod interface { } // The jsii proxy struct for VariadicMethod -type variadicMethod struct { +type variadicMethod_jsiiClass struct { _ byte // padding } func NewVariadicMethod(prefix float64) VariadicMethod { _init_.Initialize() - v := variadicMethod{} + v := variadicMethod_jsiiClass{} _jsii_.Create( "jsii-calc.VariadicMethod", @@ -12264,7 +12354,7 @@ func NewVariadicMethod(prefix float64) VariadicMethod { return &v } -func (v *variadicMethod) AsArray(first float64, others float64) []float64 { +func (v *variadicMethod_jsiiClass) AsArray(first float64, others float64) []float64 { var returns []float64 _jsii_.Invoke( @@ -12286,14 +12376,14 @@ type VirtualMethodPlayground interface { } // The jsii proxy struct for VirtualMethodPlayground -type virtualMethodPlayground struct { +type virtualMethodPlayground_jsiiClass struct { _ byte // padding } func NewVirtualMethodPlayground() VirtualMethodPlayground { _init_.Initialize() - v := virtualMethodPlayground{} + v := virtualMethodPlayground_jsiiClass{} _jsii_.Create( "jsii-calc.VirtualMethodPlayground", @@ -12306,7 +12396,7 @@ func NewVirtualMethodPlayground() VirtualMethodPlayground { return &v } -func (v *virtualMethodPlayground) OverrideMeAsync(index float64) float64 { +func (v *virtualMethodPlayground_jsiiClass) OverrideMeAsync(index float64) float64 { var returns float64 _jsii_.Invoke( @@ -12319,7 +12409,7 @@ func (v *virtualMethodPlayground) OverrideMeAsync(index float64) float64 { return returns } -func (v *virtualMethodPlayground) OverrideMeSync(index float64) float64 { +func (v *virtualMethodPlayground_jsiiClass) OverrideMeSync(index float64) float64 { var returns float64 _jsii_.Invoke( @@ -12332,7 +12422,7 @@ func (v *virtualMethodPlayground) OverrideMeSync(index float64) float64 { return returns } -func (v *virtualMethodPlayground) ParallelSumAsync(count float64) float64 { +func (v *virtualMethodPlayground_jsiiClass) ParallelSumAsync(count float64) float64 { var returns float64 _jsii_.Invoke( @@ -12345,7 +12435,7 @@ func (v *virtualMethodPlayground) ParallelSumAsync(count float64) float64 { return returns } -func (v *virtualMethodPlayground) SerialSumAsync(count float64) float64 { +func (v *virtualMethodPlayground_jsiiClass) SerialSumAsync(count float64) float64 { var returns float64 _jsii_.Invoke( @@ -12358,7 +12448,7 @@ func (v *virtualMethodPlayground) SerialSumAsync(count float64) float64 { return returns } -func (v *virtualMethodPlayground) SumSync(count float64) float64 { +func (v *virtualMethodPlayground_jsiiClass) SumSync(count float64) float64 { var returns float64 _jsii_.Invoke( @@ -12383,11 +12473,11 @@ type VoidCallback interface { } // The jsii proxy struct for VoidCallback -type voidCallback struct { +type voidCallback_jsiiClass struct { _ byte // padding } -func (v *voidCallback) MethodWasCalled() bool { +func (v *voidCallback_jsiiClass) MethodWasCalled() bool { var returns bool _jsii_.Get( v, @@ -12401,7 +12491,7 @@ func (v *voidCallback) MethodWasCalled() bool { func NewVoidCallback() VoidCallback { _init_.Initialize() - v := voidCallback{} + v := voidCallback_jsiiClass{} _jsii_.Create( "jsii-calc.VoidCallback", @@ -12414,7 +12504,7 @@ func NewVoidCallback() VoidCallback { return &v } -func (v *voidCallback) CallMe() { +func (v *voidCallback_jsiiClass) CallMe() { _jsii_.InvokeVoid( v, "callMe", @@ -12422,7 +12512,7 @@ func (v *voidCallback) CallMe() { ) } -func (v *voidCallback) OverrideMe() { +func (v *voidCallback_jsiiClass) OverrideMe() { _jsii_.InvokeVoid( v, "overrideMe", @@ -12436,11 +12526,11 @@ type WithPrivatePropertyInConstructor interface { } // The jsii proxy struct for WithPrivatePropertyInConstructor -type withPrivatePropertyInConstructor struct { +type withPrivatePropertyInConstructor_jsiiClass struct { _ byte // padding } -func (w *withPrivatePropertyInConstructor) Success() bool { +func (w *withPrivatePropertyInConstructor_jsiiClass) Success() bool { var returns bool _jsii_.Get( w, @@ -12454,7 +12544,7 @@ func (w *withPrivatePropertyInConstructor) Success() bool { func NewWithPrivatePropertyInConstructor(privateField string) WithPrivatePropertyInConstructor { _init_.Initialize() - w := withPrivatePropertyInConstructor{} + w := withPrivatePropertyInConstructor_jsiiClass{} _jsii_.Create( "jsii-calc.WithPrivatePropertyInConstructor", @@ -12490,9 +12580,9 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "propFromInterface", GoGetter: "PropFromInterface"}, }, func() interface{} { - a := abstractClass{} - _jsii_.InitJsiiProxy(&a.abstractClassBase) - _jsii_.InitJsiiProxy(&a.iInterfaceImplementedByAbstractClass) + a := abstractClass_jsiiClass{} + _jsii_.InitJsiiProxy(&a.abstractClassBase_jsiiClass) + _jsii_.InitJsiiProxy(&a.iInterfaceImplementedByAbstractClass_jsiiClass) return &a }, ) @@ -12503,7 +12593,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "abstractProperty", GoGetter: "AbstractProperty"}, }, func() interface{} { - return &abstractClassBase{} + return &abstractClassBase_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -12515,7 +12605,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "returnAbstractFromProperty", GoGetter: "ReturnAbstractFromProperty"}, }, func() interface{} { - return &abstractClassReturner{} + return &abstractClassReturner_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -12527,7 +12617,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "workItAll", GoMethod: "WorkItAll"}, }, func() interface{} { - return &abstractSuite{} + return &abstractSuite_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -12542,8 +12632,8 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "value", GoGetter: "Value"}, }, func() interface{} { - a := add{} - _jsii_.InitJsiiProxy(&a.binaryOperation) + a := add_jsiiClass{} + _jsii_.InitJsiiProxy(&a.binaryOperation_jsiiClass) return &a }, ) @@ -12575,7 +12665,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "unknownProperty", GoGetter: "UnknownProperty"}, }, func() interface{} { - return &allTypes{} + return &allTypes_jsiiClass{} }, ) _jsii_.RegisterEnum( @@ -12597,7 +12687,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "setFoo", GoMethod: "SetFoo"}, }, func() interface{} { - return &allowedMethodNames{} + return &allowedMethodNames_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -12608,7 +12698,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "scope", GoGetter: "Scope"}, }, func() interface{} { - return &ambiguousParameters{} + return &ambiguousParameters_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -12619,8 +12709,8 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "provideAsInterface", GoMethod: "ProvideAsInterface"}, }, func() interface{} { - a := anonymousImplementationProvider{} - _jsii_.InitJsiiProxy(&a.iAnonymousImplementationProvider) + a := anonymousImplementationProvider_jsiiClass{} + _jsii_.InitJsiiProxy(&a.iAnonymousImplementationProvider_jsiiClass) return &a }, ) @@ -12636,7 +12726,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "overrideMeToo", GoMethod: "OverrideMeToo"}, }, func() interface{} { - return &asyncVirtualMethods{} + return &asyncVirtualMethods_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -12647,7 +12737,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "methodTwo", GoMethod: "MethodTwo"}, }, func() interface{} { - return &augmentableClass{} + return &augmentableClass_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -12655,7 +12745,7 @@ func init() { reflect.TypeOf((*BaseJsii976)(nil)).Elem(), nil, // no members func() interface{} { - return &baseJsii976{} + return &baseJsii976_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -12666,8 +12756,8 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "rung", GoGetter: "Rung"}, }, func() interface{} { - b := bell{} - _jsii_.InitJsiiProxy(&b.iBell) + b := bell_jsiiClass{} + _jsii_.InitJsiiProxy(&b.iBell_jsiiClass) return &b }, ) @@ -12683,7 +12773,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "value", GoGetter: "Value"}, }, func() interface{} { - b := binaryOperation{} + b := binaryOperation_jsiiClass{} _jsii_.InitJsiiProxy(&b.Operation) _jsii_.InitJsiiProxy(&b.IFriendly) return &b @@ -12697,7 +12787,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "giveItBack", GoMethod: "GiveItBack"}, }, func() interface{} { - return &burriedAnonymousObject{} + return &burriedAnonymousObject_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -12723,7 +12813,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "value", GoGetter: "Value"}, }, func() interface{} { - c := calculator{} + c := calculator_jsiiClass{} _jsii_.InitJsiiProxy(&c.CompositeOperation) return &c }, @@ -12746,8 +12836,8 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "d", GoGetter: "D"}, }, func() interface{} { - c := classThatImplementsTheInternalInterface{} - _jsii_.InitJsiiProxy(&c.iNonInternalInterface) + c := classThatImplementsTheInternalInterface_jsiiClass{} + _jsii_.InitJsiiProxy(&c.iNonInternalInterface_jsiiClass) return &c }, ) @@ -12761,8 +12851,8 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "e", GoGetter: "E"}, }, func() interface{} { - c := classThatImplementsThePrivateInterface{} - _jsii_.InitJsiiProxy(&c.iNonInternalInterface) + c := classThatImplementsThePrivateInterface_jsiiClass{} + _jsii_.InitJsiiProxy(&c.iNonInternalInterface_jsiiClass) return &c }, ) @@ -12774,7 +12864,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "map", GoGetter: "Map"}, }, func() interface{} { - return &classWithCollections{} + return &classWithCollections_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -12782,7 +12872,7 @@ func init() { reflect.TypeOf((*ClassWithDocs)(nil)).Elem(), nil, // no members func() interface{} { - return &classWithDocs{} + return &classWithDocs_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -12793,7 +12883,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "int", GoGetter: "Int"}, }, func() interface{} { - return &classWithJavaReservedWords{} + return &classWithJavaReservedWords_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -12803,7 +12893,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "mutableObject", GoGetter: "MutableObject"}, }, func() interface{} { - return &classWithMutableObjectLiteralProperty{} + return &classWithMutableObjectLiteralProperty_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -12814,8 +12904,8 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "readWriteString", GoGetter: "ReadWriteString"}, }, func() interface{} { - c := classWithPrivateConstructorAndAutomaticProperties{} - _jsii_.InitJsiiProxy(&c.iInterfaceWithProperties) + c := classWithPrivateConstructorAndAutomaticProperties_jsiiClass{} + _jsii_.InitJsiiProxy(&c.iInterfaceWithProperties_jsiiClass) return &c }, ) @@ -12826,7 +12916,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "unionProperty", GoGetter: "UnionProperty"}, }, func() interface{} { - return &confusingToJackson{} + return &confusingToJackson_jsiiClass{} }, ) _jsii_.RegisterStruct( @@ -12838,7 +12928,7 @@ func init() { reflect.TypeOf((*ConstructorPassesThisOut)(nil)).Elem(), nil, // no members func() interface{} { - return &constructorPassesThisOut{} + return &constructorPassesThisOut_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -12846,7 +12936,7 @@ func init() { reflect.TypeOf((*Constructors)(nil)).Elem(), nil, // no members func() interface{} { - return &constructors{} + return &constructors_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -12856,7 +12946,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "workItBaby", GoMethod: "WorkItBaby"}, }, func() interface{} { - return &consumePureInterface{} + return &consumePureInterface_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -12869,7 +12959,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "whenTypedAsClass", GoMethod: "WhenTypedAsClass"}, }, func() interface{} { - return &consumerCanRingBell{} + return &consumerCanRingBell_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -12880,7 +12970,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "consumeNonInternalInterface", GoMethod: "ConsumeNonInternalInterface"}, }, func() interface{} { - return &consumersOfThisCrazyTypeSystem{} + return &consumersOfThisCrazyTypeSystem_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -12892,7 +12982,17 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "renderMap", GoMethod: "RenderMap"}, }, func() interface{} { - return &dataRenderer{} + return &dataRenderer_jsiiClass{} + }, + ) + _jsii_.RegisterClass( + "jsii-calc.Default", + reflect.TypeOf((*Default)(nil)).Elem(), + []_jsii_.Member{ + _jsii_.MemberMethod{JsiiMethod: "pleaseCompile", GoMethod: "PleaseCompile"}, + }, + func() interface{} { + return &default_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -12904,7 +13004,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "arg3", GoGetter: "Arg3"}, }, func() interface{} { - return &defaultedConstructorArgument{} + return &defaultedConstructorArgument_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -12912,7 +13012,7 @@ func init() { reflect.TypeOf((*Demonstrate982)(nil)).Elem(), nil, // no members func() interface{} { - return &demonstrate982{} + return &demonstrate982_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -12924,7 +13024,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "readonlyProperty", GoGetter: "ReadonlyProperty"}, }, func() interface{} { - return &deprecatedClass{} + return &deprecatedClass_jsiiClass{} }, ) _jsii_.RegisterEnum( @@ -12968,7 +13068,7 @@ func init() { reflect.TypeOf((*DisappointingCollectionSource)(nil)).Elem(), nil, // no members func() interface{} { - return &disappointingCollectionSource{} + return &disappointingCollectionSource_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -12980,7 +13080,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "privatePropertyValue", GoMethod: "PrivatePropertyValue"}, }, func() interface{} { - return &doNotOverridePrivates{} + return &doNotOverridePrivates_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -12990,7 +13090,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "method", GoMethod: "Method"}, }, func() interface{} { - return &doNotRecognizeAnyAsOptional{} + return &doNotRecognizeAnyAsOptional_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -13001,7 +13101,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "hola", GoMethod: "Hola"}, }, func() interface{} { - return &documentedClass{} + return &documentedClass_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -13011,7 +13111,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "optionalAndVariadic", GoMethod: "OptionalAndVariadic"}, }, func() interface{} { - return &dontComplainAboutVariadicAfterOptional{} + return &dontComplainAboutVariadicAfterOptional_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -13022,8 +13122,8 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "next", GoMethod: "Next"}, }, func() interface{} { - d := doubleTrouble{} - _jsii_.InitJsiiProxy(&d.iFriendlyRandomGenerator) + d := doubleTrouble_jsiiClass{} + _jsii_.InitJsiiProxy(&d.iFriendlyRandomGenerator_jsiiClass) return &d }, ) @@ -13035,7 +13135,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "valueStore", GoGetter: "ValueStore"}, }, func() interface{} { - return &dynamicPropertyBearer{} + return &dynamicPropertyBearer_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -13048,8 +13148,8 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "valueStore", GoGetter: "ValueStore"}, }, func() interface{} { - d := dynamicPropertyBearerChild{} - _jsii_.InitJsiiProxy(&d.dynamicPropertyBearer) + d := dynamicPropertyBearerChild_jsiiClass{} + _jsii_.InitJsiiProxy(&d.dynamicPropertyBearer_jsiiClass) return &d }, ) @@ -13061,7 +13161,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "repeat", GoMethod: "Repeat"}, }, func() interface{} { - return &entropy{} + return &entropy_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -13069,7 +13169,7 @@ func init() { reflect.TypeOf((*EnumDispenser)(nil)).Elem(), nil, // no members func() interface{} { - return &enumDispenser{} + return &enumDispenser_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -13077,7 +13177,7 @@ func init() { reflect.TypeOf((*EraseUndefinedHashValues)(nil)).Elem(), nil, // no members func() interface{} { - return &eraseUndefinedHashValues{} + return &eraseUndefinedHashValues_jsiiClass{} }, ) _jsii_.RegisterStruct( @@ -13093,7 +13193,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "readonlyProperty", GoGetter: "ReadonlyProperty"}, }, func() interface{} { - return &experimentalClass{} + return &experimentalClass_jsiiClass{} }, ) _jsii_.RegisterEnum( @@ -13115,7 +13215,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "success", GoGetter: "Success"}, }, func() interface{} { - return &exportedBaseClass{} + return &exportedBaseClass_jsiiClass{} }, ) _jsii_.RegisterStruct( @@ -13131,7 +13231,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "readonlyProperty", GoGetter: "ReadonlyProperty"}, }, func() interface{} { - return &externalClass{} + return &externalClass_jsiiClass{} }, ) _jsii_.RegisterEnum( @@ -13156,7 +13256,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "structLiteral", GoGetter: "StructLiteral"}, }, func() interface{} { - return &giveMeStructs{} + return &giveMeStructs_jsiiClass{} }, ) _jsii_.RegisterStruct( @@ -13170,7 +13270,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "betterGreeting", GoMethod: "BetterGreeting"}, }, func() interface{} { - return &greetingAugmenter{} + return &greetingAugmenter_jsiiClass{} }, ) _jsii_.RegisterInterface( @@ -13181,7 +13281,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "provideAsInterface", GoMethod: "ProvideAsInterface"}, }, func() interface{} { - return &iAnonymousImplementationProvider{} + return &iAnonymousImplementationProvider_jsiiClass{} }, ) _jsii_.RegisterInterface( @@ -13192,7 +13292,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "verb", GoMethod: "Verb"}, }, func() interface{} { - return &iAnonymouslyImplementMe{} + return &iAnonymouslyImplementMe_jsiiClass{} }, ) _jsii_.RegisterInterface( @@ -13202,7 +13302,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "a", GoGetter: "A"}, }, func() interface{} { - return &iAnotherPublicInterface{} + return &iAnotherPublicInterface_jsiiClass{} }, ) _jsii_.RegisterInterface( @@ -13212,7 +13312,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "ring", GoMethod: "Ring"}, }, func() interface{} { - return &iBell{} + return &iBell_jsiiClass{} }, ) _jsii_.RegisterInterface( @@ -13222,7 +13322,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "yourTurn", GoMethod: "YourTurn"}, }, func() interface{} { - return &iBellRinger{} + return &iBellRinger_jsiiClass{} }, ) _jsii_.RegisterInterface( @@ -13232,7 +13332,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "yourTurn", GoMethod: "YourTurn"}, }, func() interface{} { - return &iConcreteBellRinger{} + return &iConcreteBellRinger_jsiiClass{} }, ) _jsii_.RegisterInterface( @@ -13243,7 +13343,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "mutableProperty", GoGetter: "MutableProperty"}, }, func() interface{} { - return &iDeprecatedInterface{} + return &iDeprecatedInterface_jsiiClass{} }, ) _jsii_.RegisterInterface( @@ -13254,7 +13354,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "mutableProperty", GoGetter: "MutableProperty"}, }, func() interface{} { - return &iExperimentalInterface{} + return &iExperimentalInterface_jsiiClass{} }, ) _jsii_.RegisterInterface( @@ -13265,7 +13365,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "private", GoGetter: "Private"}, }, func() interface{} { - return &iExtendsPrivateInterface{} + return &iExtendsPrivateInterface_jsiiClass{} }, ) _jsii_.RegisterInterface( @@ -13276,7 +13376,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "mutableProperty", GoGetter: "MutableProperty"}, }, func() interface{} { - return &iExternalInterface{} + return &iExternalInterface_jsiiClass{} }, ) _jsii_.RegisterInterface( @@ -13288,7 +13388,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "hello", GoMethod: "Hello"}, }, func() interface{} { - i := iFriendlier{} + i := iFriendlier_jsiiClass{} _jsii_.InitJsiiProxy(&i.IFriendly) return &i }, @@ -13301,9 +13401,9 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "next", GoMethod: "Next"}, }, func() interface{} { - i := iFriendlyRandomGenerator{} + i := iFriendlyRandomGenerator_jsiiClass{} _jsii_.InitJsiiProxy(&i.IFriendly) - _jsii_.InitJsiiProxy(&i.iRandomNumberGenerator) + _jsii_.InitJsiiProxy(&i.iRandomNumberGenerator_jsiiClass) return &i }, ) @@ -13314,7 +13414,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "propFromInterface", GoGetter: "PropFromInterface"}, }, func() interface{} { - return &iInterfaceImplementedByAbstractClass{} + return &iInterfaceImplementedByAbstractClass_jsiiClass{} }, ) _jsii_.RegisterInterface( @@ -13326,8 +13426,8 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "value", GoGetter: "Value"}, }, func() interface{} { - i := iInterfaceThatShouldNotBeADataType{} - _jsii_.InitJsiiProxy(&i.iInterfaceWithMethods) + i := iInterfaceThatShouldNotBeADataType_jsiiClass{} + _jsii_.InitJsiiProxy(&i.iInterfaceWithMethods_jsiiClass) return &i }, ) @@ -13338,7 +13438,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "visible", GoMethod: "Visible"}, }, func() interface{} { - return &iInterfaceWithInternal{} + return &iInterfaceWithInternal_jsiiClass{} }, ) _jsii_.RegisterInterface( @@ -13349,7 +13449,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "value", GoGetter: "Value"}, }, func() interface{} { - return &iInterfaceWithMethods{} + return &iInterfaceWithMethods_jsiiClass{} }, ) _jsii_.RegisterInterface( @@ -13359,7 +13459,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "hello", GoMethod: "Hello"}, }, func() interface{} { - return &iInterfaceWithOptionalMethodArguments{} + return &iInterfaceWithOptionalMethodArguments_jsiiClass{} }, ) _jsii_.RegisterInterface( @@ -13370,7 +13470,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "readWriteString", GoGetter: "ReadWriteString"}, }, func() interface{} { - return &iInterfaceWithProperties{} + return &iInterfaceWithProperties_jsiiClass{} }, ) _jsii_.RegisterInterface( @@ -13382,8 +13482,8 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "readWriteString", GoGetter: "ReadWriteString"}, }, func() interface{} { - i := iInterfaceWithPropertiesExtension{} - _jsii_.InitJsiiProxy(&i.iInterfaceWithProperties) + i := iInterfaceWithPropertiesExtension_jsiiClass{} + _jsii_.InitJsiiProxy(&i.iInterfaceWithProperties_jsiiClass) return &i }, ) @@ -13398,8 +13498,8 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "property", GoGetter: "Property"}, }, func() interface{} { - i := ijsii417Derived{} - _jsii_.InitJsiiProxy(&i.ijsii417PublicBaseOfBase) + i := ijsii417Derived_jsiiClass{} + _jsii_.InitJsiiProxy(&i.ijsii417PublicBaseOfBase_jsiiClass) return &i }, ) @@ -13411,7 +13511,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "hasRoot", GoGetter: "HasRoot"}, }, func() interface{} { - return &ijsii417PublicBaseOfBase{} + return &ijsii417PublicBaseOfBase_jsiiClass{} }, ) _jsii_.RegisterInterface( @@ -13419,7 +13519,7 @@ func init() { reflect.TypeOf((*IJsii487External)(nil)).Elem(), nil, // no members func() interface{} { - return &iJsii487External{} + return &iJsii487External_jsiiClass{} }, ) _jsii_.RegisterInterface( @@ -13427,7 +13527,7 @@ func init() { reflect.TypeOf((*IJsii487External2)(nil)).Elem(), nil, // no members func() interface{} { - return &iJsii487External2{} + return &iJsii487External2_jsiiClass{} }, ) _jsii_.RegisterInterface( @@ -13435,7 +13535,7 @@ func init() { reflect.TypeOf((*IJsii496)(nil)).Elem(), nil, // no members func() interface{} { - return &iJsii496{} + return &iJsii496_jsiiClass{} }, ) _jsii_.RegisterInterface( @@ -13445,7 +13545,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "value", GoGetter: "Value"}, }, func() interface{} { - return &iMutableObjectLiteral{} + return &iMutableObjectLiteral_jsiiClass{} }, ) _jsii_.RegisterInterface( @@ -13457,8 +13557,8 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "c", GoGetter: "C"}, }, func() interface{} { - i := iNonInternalInterface{} - _jsii_.InitJsiiProxy(&i.iAnotherPublicInterface) + i := iNonInternalInterface_jsiiClass{} + _jsii_.InitJsiiProxy(&i.iAnotherPublicInterface_jsiiClass) return &i }, ) @@ -13470,7 +13570,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "wasSet", GoMethod: "WasSet"}, }, func() interface{} { - return &iObjectWithProperty{} + return &iObjectWithProperty_jsiiClass{} }, ) _jsii_.RegisterInterface( @@ -13480,7 +13580,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "optional", GoMethod: "Optional"}, }, func() interface{} { - return &iOptionalMethod{} + return &iOptionalMethod_jsiiClass{} }, ) _jsii_.RegisterInterface( @@ -13490,7 +13590,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "success", GoGetter: "Success"}, }, func() interface{} { - return &iPrivatelyImplemented{} + return &iPrivatelyImplemented_jsiiClass{} }, ) _jsii_.RegisterInterface( @@ -13500,7 +13600,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "bye", GoMethod: "Bye"}, }, func() interface{} { - return &iPublicInterface{} + return &iPublicInterface_jsiiClass{} }, ) _jsii_.RegisterInterface( @@ -13510,7 +13610,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "ciao", GoMethod: "Ciao"}, }, func() interface{} { - return &iPublicInterface2{} + return &iPublicInterface2_jsiiClass{} }, ) _jsii_.RegisterInterface( @@ -13520,7 +13620,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "next", GoMethod: "Next"}, }, func() interface{} { - return &iRandomNumberGenerator{} + return &iRandomNumberGenerator_jsiiClass{} }, ) _jsii_.RegisterInterface( @@ -13530,7 +13630,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "foo", GoGetter: "Foo"}, }, func() interface{} { - return &iReturnJsii976{} + return &iReturnJsii976_jsiiClass{} }, ) _jsii_.RegisterInterface( @@ -13541,7 +13641,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "obtainNumber", GoMethod: "ObtainNumber"}, }, func() interface{} { - return &iReturnsNumber{} + return &iReturnsNumber_jsiiClass{} }, ) _jsii_.RegisterInterface( @@ -13552,7 +13652,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "mutableProperty", GoGetter: "MutableProperty"}, }, func() interface{} { - return &iStableInterface{} + return &iStableInterface_jsiiClass{} }, ) _jsii_.RegisterInterface( @@ -13562,7 +13662,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "returnStruct", GoMethod: "ReturnStruct"}, }, func() interface{} { - return &iStructReturningDelegate{} + return &iStructReturningDelegate_jsiiClass{} }, ) _jsii_.RegisterInterface( @@ -13572,7 +13672,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "iso8601Now", GoMethod: "Iso8601Now"}, }, func() interface{} { - return &iWallClock{} + return &iWallClock_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -13582,7 +13682,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "prop", GoGetter: "Prop"}, }, func() interface{} { - return &implementInternalInterface{} + return &implementInternalInterface_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -13592,7 +13692,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "value", GoGetter: "Value"}, }, func() interface{} { - return &implementation{} + return &implementation_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -13602,8 +13702,8 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "visible", GoMethod: "Visible"}, }, func() interface{} { - i := implementsInterfaceWithInternal{} - _jsii_.InitJsiiProxy(&i.iInterfaceWithInternal) + i := implementsInterfaceWithInternal_jsiiClass{} + _jsii_.InitJsiiProxy(&i.iInterfaceWithInternal_jsiiClass) return &i }, ) @@ -13614,8 +13714,8 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "visible", GoMethod: "Visible"}, }, func() interface{} { - i := implementsInterfaceWithInternalSubclass{} - _jsii_.InitJsiiProxy(&i.implementsInterfaceWithInternal) + i := implementsInterfaceWithInternalSubclass_jsiiClass{} + _jsii_.InitJsiiProxy(&i.implementsInterfaceWithInternal_jsiiClass) return &i }, ) @@ -13626,7 +13726,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "private", GoGetter: "Private"}, }, func() interface{} { - return &implementsPrivateInterface{} + return &implementsPrivateInterface_jsiiClass{} }, ) _jsii_.RegisterStruct( @@ -13641,9 +13741,9 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "hello", GoMethod: "Hello"}, }, func() interface{} { - i := inbetweenClass{} - _jsii_.InitJsiiProxy(&i.publicClass) - _jsii_.InitJsiiProxy(&i.iPublicInterface2) + i := inbetweenClass_jsiiClass{} + _jsii_.InitJsiiProxy(&i.publicClass_jsiiClass) + _jsii_.InitJsiiProxy(&i.iPublicInterface2_jsiiClass) return &i }, ) @@ -13652,7 +13752,7 @@ func init() { reflect.TypeOf((*InterfaceCollections)(nil)).Elem(), nil, // no members func() interface{} { - return &interfaceCollections{} + return &interfaceCollections_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -13660,7 +13760,7 @@ func init() { reflect.TypeOf((*InterfacesMaker)(nil)).Elem(), nil, // no members func() interface{} { - return &interfacesMaker{} + return &interfacesMaker_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -13670,7 +13770,23 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "myself", GoMethod: "Myself"}, }, func() interface{} { - return &isomorphism{} + return &isomorphism_jsiiClass{} + }, + ) + _jsii_.RegisterClass( + "jsii-calc.Issue2638", + reflect.TypeOf((*Issue2638)(nil)).Elem(), + nil, // no members + func() interface{} { + return &issue2638_jsiiClass{} + }, + ) + _jsii_.RegisterClass( + "jsii-calc.Issue2638B", + reflect.TypeOf((*Issue2638B)(nil)).Elem(), + nil, // no members + func() interface{} { + return &issue2638B_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -13684,8 +13800,8 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "property", GoGetter: "Property"}, }, func() interface{} { - j := jsii417Derived{} - _jsii_.InitJsiiProxy(&j.jsii417PublicBaseOfBase) + j := jsii417Derived_jsiiClass{} + _jsii_.InitJsiiProxy(&j.jsii417PublicBaseOfBase_jsiiClass) return &j }, ) @@ -13697,7 +13813,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "hasRoot", GoGetter: "HasRoot"}, }, func() interface{} { - return &jsii417PublicBaseOfBase{} + return &jsii417PublicBaseOfBase_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -13708,7 +13824,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "giveMeFriendlyGenerator", GoMethod: "GiveMeFriendlyGenerator"}, }, func() interface{} { - return &jsObjectLiteralForInterface{} + return &jsObjectLiteralForInterface_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -13718,7 +13834,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "returnLiteral", GoMethod: "ReturnLiteral"}, }, func() interface{} { - return &jsObjectLiteralToNative{} + return &jsObjectLiteralToNative_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -13729,7 +13845,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "propB", GoGetter: "PropB"}, }, func() interface{} { - return &jsObjectLiteralToNativeClass{} + return &jsObjectLiteralToNativeClass_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -13791,7 +13907,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "while", GoGetter: "While"}, }, func() interface{} { - return &javaReservedWords{} + return &javaReservedWords_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -13799,9 +13915,9 @@ func init() { reflect.TypeOf((*Jsii487Derived)(nil)).Elem(), nil, // no members func() interface{} { - j := jsii487Derived{} - _jsii_.InitJsiiProxy(&j.iJsii487External) - _jsii_.InitJsiiProxy(&j.iJsii487External2) + j := jsii487Derived_jsiiClass{} + _jsii_.InitJsiiProxy(&j.iJsii487External_jsiiClass) + _jsii_.InitJsiiProxy(&j.iJsii487External2_jsiiClass) return &j }, ) @@ -13810,8 +13926,8 @@ func init() { reflect.TypeOf((*Jsii496Derived)(nil)).Elem(), nil, // no members func() interface{} { - j := jsii496Derived{} - _jsii_.InitJsiiProxy(&j.iJsii496) + j := jsii496Derived_jsiiClass{} + _jsii_.InitJsiiProxy(&j.iJsii496_jsiiClass) return &j }, ) @@ -13820,7 +13936,7 @@ func init() { reflect.TypeOf((*JsiiAgent)(nil)).Elem(), nil, // no members func() interface{} { - return &jsiiAgent{} + return &jsiiAgent_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -13828,7 +13944,7 @@ func init() { reflect.TypeOf((*JsonFormatter)(nil)).Elem(), nil, // no members func() interface{} { - return &jsonFormatter{} + return &jsonFormatter_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -13838,7 +13954,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "props", GoGetter: "Props"}, }, func() interface{} { - return &levelOne{} + return &levelOne_jsiiClass{} }, ) _jsii_.RegisterStruct( @@ -13865,7 +13981,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "property", GoMethod: "Property"}, }, func() interface{} { - return &methodNamedProperty{} + return &methodNamedProperty_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -13883,10 +13999,10 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "value", GoGetter: "Value"}, }, func() interface{} { - m := multiply{} - _jsii_.InitJsiiProxy(&m.binaryOperation) - _jsii_.InitJsiiProxy(&m.iFriendlier) - _jsii_.InitJsiiProxy(&m.iRandomNumberGenerator) + m := multiply_jsiiClass{} + _jsii_.InitJsiiProxy(&m.binaryOperation_jsiiClass) + _jsii_.InitJsiiProxy(&m.iFriendlier_jsiiClass) + _jsii_.InitJsiiProxy(&m.iRandomNumberGenerator_jsiiClass) return &m }, ) @@ -13903,9 +14019,9 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "value", GoGetter: "Value"}, }, func() interface{} { - n := negate{} - _jsii_.InitJsiiProxy(&n.unaryOperation) - _jsii_.InitJsiiProxy(&n.iFriendlier) + n := negate_jsiiClass{} + _jsii_.InitJsiiProxy(&n.unaryOperation_jsiiClass) + _jsii_.InitJsiiProxy(&n.iFriendlier_jsiiClass) return &n }, ) @@ -13914,7 +14030,7 @@ func init() { reflect.TypeOf((*NestedClassInstance)(nil)).Elem(), nil, // no members func() interface{} { - return &nestedClassInstance{} + return &nestedClassInstance_jsiiClass{} }, ) _jsii_.RegisterStruct( @@ -13931,7 +14047,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "osPlatform", GoGetter: "OsPlatform"}, }, func() interface{} { - return &nodeStandardLibrary{} + return &nodeStandardLibrary_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -13944,7 +14060,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "verifyPropertyIsUndefined", GoMethod: "VerifyPropertyIsUndefined"}, }, func() interface{} { - return &nullShouldBeTreatedAsUndefined{} + return &nullShouldBeTreatedAsUndefined_jsiiClass{} }, ) _jsii_.RegisterStruct( @@ -13960,7 +14076,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "nextTimes100", GoMethod: "NextTimes100"}, }, func() interface{} { - return &numberGenerator{} + return &numberGenerator_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -13971,7 +14087,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "sumFromMap", GoMethod: "SumFromMap"}, }, func() interface{} { - return &objectRefsInCollections{} + return &objectRefsInCollections_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -13979,7 +14095,7 @@ func init() { reflect.TypeOf((*ObjectWithPropertyProvider)(nil)).Elem(), nil, // no members func() interface{} { - return &objectWithPropertyProvider{} + return &objectWithPropertyProvider_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -13989,7 +14105,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "doAThing", GoMethod: "DoAThing"}, }, func() interface{} { - return &old{} + return &old_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -14000,7 +14116,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "invokeWithoutOptional", GoMethod: "InvokeWithoutOptional"}, }, func() interface{} { - return &optionalArgumentInvoker{} + return &optionalArgumentInvoker_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -14012,7 +14128,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "arg3", GoGetter: "Arg3"}, }, func() interface{} { - return &optionalConstructorArgument{} + return &optionalConstructorArgument_jsiiClass{} }, ) _jsii_.RegisterStruct( @@ -14027,7 +14143,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "parameterWasUndefined", GoGetter: "ParameterWasUndefined"}, }, func() interface{} { - return &optionalStructConsumer{} + return &optionalStructConsumer_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -14041,7 +14157,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "valueFromProtected", GoMethod: "ValueFromProtected"}, }, func() interface{} { - return &overridableProtectedMember{} + return &overridableProtectedMember_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -14051,7 +14167,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "test", GoMethod: "Test"}, }, func() interface{} { - return &overrideReturnsObject{} + return &overrideReturnsObject_jsiiClass{} }, ) _jsii_.RegisterStruct( @@ -14065,7 +14181,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "consumePartiallyInitializedThis", GoMethod: "ConsumePartiallyInitializedThis"}, }, func() interface{} { - return &partiallyInitializedThisConsumer{} + return &partiallyInitializedThisConsumer_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -14075,7 +14191,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "sayHello", GoMethod: "SayHello"}, }, func() interface{} { - return &polymorphism{} + return &polymorphism_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -14093,7 +14209,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "value", GoGetter: "Value"}, }, func() interface{} { - p := power{} + p := power_jsiiClass{} _jsii_.InitJsiiProxy(&p.CompositeOperation) return &p }, @@ -14106,7 +14222,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "yetAnoterOne", GoGetter: "YetAnoterOne"}, }, func() interface{} { - return &propertyNamedProperty{} + return &propertyNamedProperty_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -14116,7 +14232,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "hello", GoMethod: "Hello"}, }, func() interface{} { - return &publicClass{} + return &publicClass_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -14157,7 +14273,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "yield", GoMethod: "Yield"}, }, func() interface{} { - return &pythonReservedWords{} + return &pythonReservedWords_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -14169,7 +14285,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "saveFoo", GoMethod: "SaveFoo"}, }, func() interface{} { - return &referenceEnumFromScopedPackage{} + return &referenceEnumFromScopedPackage_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -14179,7 +14295,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "privateImplementation", GoGetter: "PrivateImplementation"}, }, func() interface{} { - return &returnsPrivateImplementationOfInterface{} + return &returnsPrivateImplementationOfInterface_jsiiClass{} }, ) _jsii_.RegisterStruct( @@ -14191,7 +14307,7 @@ func init() { reflect.TypeOf((*RootStructValidator)(nil)).Elem(), nil, // no members func() interface{} { - return &rootStructValidator{} + return &rootStructValidator_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -14203,7 +14319,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "methodWithOptionalArguments", GoMethod: "MethodWithOptionalArguments"}, }, func() interface{} { - return &runtimeTypeChecking{} + return &runtimeTypeChecking_jsiiClass{} }, ) _jsii_.RegisterStruct( @@ -14218,7 +14334,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "interface2", GoMethod: "Interface2"}, }, func() interface{} { - return &singleInstanceTwoTypes{} + return &singleInstanceTwoTypes_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -14228,7 +14344,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "isSingletonInt", GoMethod: "IsSingletonInt"}, }, func() interface{} { - return &singletonInt{} + return &singletonInt_jsiiClass{} }, ) _jsii_.RegisterEnum( @@ -14245,7 +14361,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "isSingletonString", GoMethod: "IsSingletonString"}, }, func() interface{} { - return &singletonString{} + return &singletonString_jsiiClass{} }, ) _jsii_.RegisterEnum( @@ -14264,7 +14380,7 @@ func init() { reflect.TypeOf((*SomeTypeJsii976)(nil)).Elem(), nil, // no members func() interface{} { - return &someTypeJsii976{} + return &someTypeJsii976_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -14276,7 +14392,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "readonlyProperty", GoGetter: "ReadonlyProperty"}, }, func() interface{} { - return &stableClass{} + return &stableClass_jsiiClass{} }, ) _jsii_.RegisterEnum( @@ -14296,7 +14412,7 @@ func init() { reflect.TypeOf((*StaticContext)(nil)).Elem(), nil, // no members func() interface{} { - return &staticContext{} + return &staticContext_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -14304,8 +14420,8 @@ func init() { reflect.TypeOf((*StaticHelloChild)(nil)).Elem(), nil, // no members func() interface{} { - s := staticHelloChild{} - _jsii_.InitJsiiProxy(&s.staticHelloParent) + s := staticHelloChild_jsiiClass{} + _jsii_.InitJsiiProxy(&s.staticHelloParent_jsiiClass) return &s }, ) @@ -14314,7 +14430,7 @@ func init() { reflect.TypeOf((*StaticHelloParent)(nil)).Elem(), nil, // no members func() interface{} { - return &staticHelloParent{} + return &staticHelloParent_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -14325,7 +14441,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "value", GoGetter: "Value"}, }, func() interface{} { - return &statics{} + return &statics_jsiiClass{} }, ) _jsii_.RegisterEnum( @@ -14344,7 +14460,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "youSeeMe", GoGetter: "YouSeeMe"}, }, func() interface{} { - return &stripInternal{} + return &stripInternal_jsiiClass{} }, ) _jsii_.RegisterStruct( @@ -14364,7 +14480,7 @@ func init() { reflect.TypeOf((*StructPassing)(nil)).Elem(), nil, // no members func() interface{} { - return &structPassing{} + return &structPassing_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -14372,7 +14488,7 @@ func init() { reflect.TypeOf((*StructUnionConsumer)(nil)).Elem(), nil, // no members func() interface{} { - return &structUnionConsumer{} + return &structUnionConsumer_jsiiClass{} }, ) _jsii_.RegisterStruct( @@ -14397,7 +14513,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "value", GoGetter: "Value"}, }, func() interface{} { - s := sum{} + s := sum_jsiiClass{} _jsii_.InitJsiiProxy(&s.CompositeOperation) return &s }, @@ -14412,8 +14528,8 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "rest", GoGetter: "Rest"}, }, func() interface{} { - s := supportsNiceJavaBuilder{} - _jsii_.InitJsiiProxy(&s.supportsNiceJavaBuilderWithRequiredProps) + s := supportsNiceJavaBuilder_jsiiClass{} + _jsii_.InitJsiiProxy(&s.supportsNiceJavaBuilderWithRequiredProps_jsiiClass) return &s }, ) @@ -14430,7 +14546,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "propId", GoGetter: "PropId"}, }, func() interface{} { - return &supportsNiceJavaBuilderWithRequiredProps{} + return &supportsNiceJavaBuilderWithRequiredProps_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -14455,7 +14571,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "writeA", GoMethod: "WriteA"}, }, func() interface{} { - return &syncVirtualMethods{} + return &syncVirtualMethods_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -14468,7 +14584,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "structWithFooBar", GoGetter: "StructWithFooBar"}, }, func() interface{} { - return &testStructWithEnum{} + return &testStructWithEnum_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -14478,7 +14594,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "throwError", GoMethod: "ThrowError"}, }, func() interface{} { - return &thrower{} + return &thrower_jsiiClass{} }, ) _jsii_.RegisterStruct( @@ -14490,7 +14606,7 @@ func init() { reflect.TypeOf((*UmaskCheck)(nil)).Elem(), nil, // no members func() interface{} { - return &umaskCheck{} + return &umaskCheck_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -14503,7 +14619,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "value", GoGetter: "Value"}, }, func() interface{} { - u := unaryOperation{} + u := unaryOperation_jsiiClass{} _jsii_.InitJsiiProxy(&u.Operation) return &u }, @@ -14519,7 +14635,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "entries", GoGetter: "Entries"}, }, func() interface{} { - u := upcasingReflectable{} + u := upcasingReflectable_jsiiClass{} _jsii_.InitJsiiProxy(&u.IReflectable) return &u }, @@ -14531,7 +14647,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "value", GoMethod: "Value"}, }, func() interface{} { - return &useBundledDependency{} + return &useBundledDependency_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -14541,7 +14657,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "hello", GoMethod: "Hello"}, }, func() interface{} { - return &useCalcBase{} + return &useCalcBase_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -14554,7 +14670,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "writeAndRead", GoMethod: "WriteAndRead"}, }, func() interface{} { - return &usesInterfaceWithProperties{} + return &usesInterfaceWithProperties_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -14564,7 +14680,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "asArray", GoMethod: "AsArray"}, }, func() interface{} { - return &variadicInvoker{} + return &variadicInvoker_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -14574,7 +14690,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "asArray", GoMethod: "AsArray"}, }, func() interface{} { - return &variadicMethod{} + return &variadicMethod_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -14588,7 +14704,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "sumSync", GoMethod: "SumSync"}, }, func() interface{} { - return &virtualMethodPlayground{} + return &virtualMethodPlayground_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -14600,7 +14716,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "overrideMe", GoMethod: "OverrideMe"}, }, func() interface{} { - return &voidCallback{} + return &voidCallback_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -14610,7 +14726,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "success", GoGetter: "Success"}, }, func() interface{} { - return &withPrivatePropertyInConstructor{} + return &withPrivatePropertyInConstructor_jsiiClass{} }, ) } @@ -14637,14 +14753,14 @@ type TypeFromSub1 interface { } // The jsii proxy struct for TypeFromSub1 -type typeFromSub1 struct { +type typeFromSub1_jsiiClass struct { _ byte // padding } func NewTypeFromSub1() TypeFromSub1 { _init_.Initialize() - t := typeFromSub1{} + t := typeFromSub1_jsiiClass{} _jsii_.Create( "jsii-calc.nodirect.sub1.TypeFromSub1", @@ -14657,7 +14773,7 @@ func NewTypeFromSub1() TypeFromSub1 { return &t } -func (t *typeFromSub1) Sub1() string { +func (t *typeFromSub1_jsiiClass) Sub1() string { var returns string _jsii_.Invoke( @@ -14690,7 +14806,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "sub1", GoMethod: "Sub1"}, }, func() interface{} { - return &typeFromSub1{} + return &typeFromSub1_jsiiClass{} }, ) } @@ -14710,14 +14826,14 @@ type TypeFromSub2 interface { } // The jsii proxy struct for TypeFromSub2 -type typeFromSub2 struct { +type typeFromSub2_jsiiClass struct { _ byte // padding } func NewTypeFromSub2() TypeFromSub2 { _init_.Initialize() - t := typeFromSub2{} + t := typeFromSub2_jsiiClass{} _jsii_.Create( "jsii-calc.nodirect.sub2.TypeFromSub2", @@ -14730,7 +14846,7 @@ func NewTypeFromSub2() TypeFromSub2 { return &t } -func (t *typeFromSub2) Sub2() string { +func (t *typeFromSub2_jsiiClass) Sub2() string { var returns string _jsii_.Invoke( @@ -14763,7 +14879,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "sub2", GoMethod: "Sub2"}, }, func() interface{} { - return &typeFromSub2{} + return &typeFromSub2_jsiiClass{} }, ) } @@ -14783,7 +14899,7 @@ type OnlyStaticMethods interface { } // The jsii proxy struct for OnlyStaticMethods -type onlyStaticMethods struct { +type onlyStaticMethods_jsiiClass struct { _ byte // padding } @@ -14820,7 +14936,7 @@ func init() { reflect.TypeOf((*OnlyStaticMethods)(nil)).Elem(), nil, // no members func() interface{} { - return &onlyStaticMethods{} + return &onlyStaticMethods_jsiiClass{} }, ) } @@ -14841,11 +14957,11 @@ type ClassWithSelf interface { } // The jsii proxy struct for ClassWithSelf -type classWithSelf struct { +type classWithSelf_jsiiClass struct { _ byte // padding } -func (c *classWithSelf) Self() string { +func (c *classWithSelf_jsiiClass) Self() string { var returns string _jsii_.Get( c, @@ -14859,7 +14975,7 @@ func (c *classWithSelf) Self() string { func NewClassWithSelf(self string) ClassWithSelf { _init_.Initialize() - c := classWithSelf{} + c := classWithSelf_jsiiClass{} _jsii_.Create( "jsii-calc.PythonSelf.ClassWithSelf", @@ -14872,7 +14988,7 @@ func NewClassWithSelf(self string) ClassWithSelf { return &c } -func (c *classWithSelf) Method(self float64) string { +func (c *classWithSelf_jsiiClass) Method(self float64) string { var returns string _jsii_.Invoke( @@ -14890,11 +15006,11 @@ type ClassWithSelfKwarg interface { } // The jsii proxy struct for ClassWithSelfKwarg -type classWithSelfKwarg struct { +type classWithSelfKwarg_jsiiClass struct { _ byte // padding } -func (c *classWithSelfKwarg) Props() StructWithSelf { +func (c *classWithSelfKwarg_jsiiClass) Props() StructWithSelf { var returns StructWithSelf _jsii_.Get( c, @@ -14908,7 +15024,7 @@ func (c *classWithSelfKwarg) Props() StructWithSelf { func NewClassWithSelfKwarg(props StructWithSelf) ClassWithSelfKwarg { _init_.Initialize() - c := classWithSelfKwarg{} + c := classWithSelfKwarg_jsiiClass{} _jsii_.Create( "jsii-calc.PythonSelf.ClassWithSelfKwarg", @@ -14926,11 +15042,11 @@ type IInterfaceWithSelf interface { } // The jsii proxy for IInterfaceWithSelf -type iInterfaceWithSelf struct { +type iInterfaceWithSelf_jsiiClass struct { _ byte // padding } -func (i *iInterfaceWithSelf) Method(self float64) string { +func (i *iInterfaceWithSelf_jsiiClass) Method(self float64) string { var returns string _jsii_.Invoke( @@ -14968,7 +15084,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "self", GoGetter: "Self"}, }, func() interface{} { - return &classWithSelf{} + return &classWithSelf_jsiiClass{} }, ) _jsii_.RegisterClass( @@ -14978,7 +15094,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "props", GoGetter: "Props"}, }, func() interface{} { - return &classWithSelfKwarg{} + return &classWithSelfKwarg_jsiiClass{} }, ) _jsii_.RegisterInterface( @@ -14988,7 +15104,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "method", GoMethod: "Method"}, }, func() interface{} { - return &iInterfaceWithSelf{} + return &iInterfaceWithSelf_jsiiClass{} }, ) _jsii_.RegisterStruct( @@ -15057,14 +15173,14 @@ type InnerClass interface { } // The jsii proxy struct for InnerClass -type innerClass struct { +type innerClass_jsiiClass struct { _ byte // padding } func NewInnerClass() InnerClass { _init_.Initialize() - i := innerClass{} + i := innerClass_jsiiClass{} _jsii_.Create( "jsii-calc.submodule.child.InnerClass", @@ -15108,11 +15224,11 @@ type OuterClass interface { } // The jsii proxy struct for OuterClass -type outerClass struct { +type outerClass_jsiiClass struct { _ byte // padding } -func (o *outerClass) InnerClass() InnerClass { +func (o *outerClass_jsiiClass) InnerClass() InnerClass { var returns InnerClass _jsii_.Get( o, @@ -15126,7 +15242,7 @@ func (o *outerClass) InnerClass() InnerClass { func NewOuterClass() OuterClass { _init_.Initialize() - o := outerClass{} + o := outerClass_jsiiClass{} _jsii_.Create( "jsii-calc.submodule.child.OuterClass", @@ -15187,7 +15303,7 @@ func init() { reflect.TypeOf((*InnerClass)(nil)).Elem(), nil, // no members func() interface{} { - return &innerClass{} + return &innerClass_jsiiClass{} }, ) _jsii_.RegisterStruct( @@ -15201,7 +15317,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "innerClass", GoGetter: "InnerClass"}, }, func() interface{} { - return &outerClass{} + return &outerClass_jsiiClass{} }, ) _jsii_.RegisterEnum( @@ -15238,7 +15354,7 @@ type Kwargs interface { } // The jsii proxy struct for Kwargs -type kwargs struct { +type kwargs_jsiiClass struct { _ byte // padding } @@ -15275,7 +15391,7 @@ func init() { reflect.TypeOf((*Kwargs)(nil)).Elem(), nil, // no members func() interface{} { - return &kwargs{} + return &kwargs_jsiiClass{} }, ) } @@ -15294,11 +15410,11 @@ type INamespaced interface { } // The jsii proxy for INamespaced -type iNamespaced struct { +type iNamespaced_jsiiClass struct { _ byte // padding } -func (i *iNamespaced) DefinedAt() string { +func (i *iNamespaced_jsiiClass) DefinedAt() string { var returns string _jsii_.Get( i, @@ -15328,7 +15444,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "definedAt", GoGetter: "DefinedAt"}, }, func() interface{} { - return &iNamespaced{} + return &iNamespaced_jsiiClass{} }, ) } @@ -15352,11 +15468,11 @@ type Namespaced interface { } // The jsii proxy struct for Namespaced -type namespaced struct { +type namespaced_jsiiClass struct { deeplynested.INamespaced // implements jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced } -func (n *namespaced) DefinedAt() string { +func (n *namespaced_jsiiClass) DefinedAt() string { var returns string _jsii_.Get( n, @@ -15366,7 +15482,7 @@ func (n *namespaced) DefinedAt() string { return returns } -func (n *namespaced) Goodness() child.Goodness { +func (n *namespaced_jsiiClass) Goodness() child.Goodness { var returns child.Goodness _jsii_.Get( n, @@ -15398,7 +15514,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "goodness", GoGetter: "Goodness"}, }, func() interface{} { - n := namespaced{} + n := namespaced_jsiiClass{} _jsii_.InitJsiiProxy(&n.INamespaced) return &n }, @@ -15451,14 +15567,14 @@ type ReturnsSpecialParameter interface { } // The jsii proxy struct for ReturnsSpecialParameter -type returnsSpecialParameter struct { +type returnsSpecialParameter_jsiiClass struct { _ byte // padding } func NewReturnsSpecialParameter() ReturnsSpecialParameter { _init_.Initialize() - r := returnsSpecialParameter{} + r := returnsSpecialParameter_jsiiClass{} _jsii_.Create( "jsii-calc.submodule.returnsparam.ReturnsSpecialParameter", @@ -15471,7 +15587,7 @@ func NewReturnsSpecialParameter() ReturnsSpecialParameter { return &r } -func (r *returnsSpecialParameter) ReturnsSpecialParam() param.SpecialParameter { +func (r *returnsSpecialParameter_jsiiClass) ReturnsSpecialParam() param.SpecialParameter { var returns param.SpecialParameter _jsii_.Invoke( @@ -15504,7 +15620,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "returnsSpecialParam", GoMethod: "ReturnsSpecialParam"}, }, func() interface{} { - return &returnsSpecialParameter{} + return &returnsSpecialParameter_jsiiClass{} }, ) } @@ -15524,6 +15640,13 @@ import ( "github.com/aws/jsii/jsii-calc/go/jsiicalc/v3/submodule/param" ) +// A struct named "Default". +// See: https://github.com/aws/jsii/issues/2637 +// +type Default struct { + Foo float64 \`json:"foo"\` +} + type MyClass interface { deeplynested.INamespaced AllTypes() jsiicalc.AllTypes @@ -15536,11 +15659,11 @@ type MyClass interface { } // The jsii proxy struct for MyClass -type myClass struct { +type myClass_jsiiClass struct { deeplynested.INamespaced // implements jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced } -func (m *myClass) AllTypes() jsiicalc.AllTypes { +func (m *myClass_jsiiClass) AllTypes() jsiicalc.AllTypes { var returns jsiicalc.AllTypes _jsii_.Get( m, @@ -15550,7 +15673,7 @@ func (m *myClass) AllTypes() jsiicalc.AllTypes { return returns } -func (m *myClass) Awesomeness() child.Awesomeness { +func (m *myClass_jsiiClass) Awesomeness() child.Awesomeness { var returns child.Awesomeness _jsii_.Get( m, @@ -15560,7 +15683,7 @@ func (m *myClass) Awesomeness() child.Awesomeness { return returns } -func (m *myClass) DefinedAt() string { +func (m *myClass_jsiiClass) DefinedAt() string { var returns string _jsii_.Get( m, @@ -15570,7 +15693,7 @@ func (m *myClass) DefinedAt() string { return returns } -func (m *myClass) Goodness() child.Goodness { +func (m *myClass_jsiiClass) Goodness() child.Goodness { var returns child.Goodness _jsii_.Get( m, @@ -15580,7 +15703,7 @@ func (m *myClass) Goodness() child.Goodness { return returns } -func (m *myClass) Props() child.SomeStruct { +func (m *myClass_jsiiClass) Props() child.SomeStruct { var returns child.SomeStruct _jsii_.Get( m, @@ -15594,7 +15717,7 @@ func (m *myClass) Props() child.SomeStruct { func NewMyClass(props child.SomeStruct) MyClass { _init_.Initialize() - m := myClass{} + m := myClass_jsiiClass{} _jsii_.Create( "jsii-calc.submodule.MyClass", @@ -15607,7 +15730,7 @@ func NewMyClass(props child.SomeStruct) MyClass { return &m } -func (m *myClass) SetAllTypes(val jsiicalc.AllTypes) { +func (m *myClass_jsiiClass) SetAllTypes(val jsiicalc.AllTypes) { _jsii_.Set( m, "allTypes", @@ -15615,7 +15738,7 @@ func (m *myClass) SetAllTypes(val jsiicalc.AllTypes) { ) } -func (m *myClass) MethodWithSpecialParam(param param.SpecialParameter) string { +func (m *myClass_jsiiClass) MethodWithSpecialParam(param param.SpecialParameter) string { var returns string _jsii_.Invoke( @@ -15641,6 +15764,10 @@ import ( ) func init() { + _jsii_.RegisterStruct( + "jsii-calc.submodule.Default", + reflect.TypeOf((*Default)(nil)).Elem(), + ) _jsii_.RegisterClass( "jsii-calc.submodule.MyClass", reflect.TypeOf((*MyClass)(nil)).Elem(), @@ -15653,7 +15780,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "props", GoGetter: "Props"}, }, func() interface{} { - m := myClass{} + m := myClass_jsiiClass{} _jsii_.InitJsiiProxy(&m.INamespaced) return &m }, diff --git a/packages/jsii-pacmak/test/generated-code/__snapshots__/target-java.test.ts.snap b/packages/jsii-pacmak/test/generated-code/__snapshots__/target-java.test.ts.snap index a98118ed7b..b734ed9816 100644 --- a/packages/jsii-pacmak/test/generated-code/__snapshots__/target-java.test.ts.snap +++ b/packages/jsii-pacmak/test/generated-code/__snapshots__/target-java.test.ts.snap @@ -3554,6 +3554,7 @@ exports[`Generated code for "jsii-calc": / 1`] = ` ┃ ┣━ 📄 ConsumerCanRingBell.java ┃ ┣━ 📄 ConsumersOfThisCrazyTypeSystem.java ┃ ┣━ 📄 DataRenderer.java + ┃ ┣━ 📄 Default.java ┃ ┣━ 📄 DefaultedConstructorArgument.java ┃ ┣━ 📄 Demonstrate982.java ┃ ┣━ 📄 DeprecatedClass.java @@ -3640,6 +3641,8 @@ exports[`Generated code for "jsii-calc": / 1`] = ` ┃ ┣━ 📄 IReturnJsii976.java ┃ ┣━ 📄 IReturnsNumber.java ┃ ┣━ 📄 Isomorphism.java + ┃ ┣━ 📄 Issue2638.java + ┃ ┣━ 📄 Issue2638B.java ┃ ┣━ 📄 IStableInterface.java ┃ ┣━ 📄 IStructReturningDelegate.java ┃ ┣━ 📄 IWallClock.java @@ -3735,6 +3738,7 @@ exports[`Generated code for "jsii-calc": / 1`] = ` ┃ ┃ ┃ ┣━ 📄 SomeEnum.java ┃ ┃ ┃ ┣━ 📄 SomeStruct.java ┃ ┃ ┃ ┗━ 📄 Structure.java + ┃ ┃ ┣━ 📄 Default.java ┃ ┃ ┣━ 📁 isolated ┃ ┃ ┃ ┗━ 📄 Kwargs.java ┃ ┃ ┣━ 📄 MyClass.java @@ -7119,6 +7123,45 @@ public class DataRenderer extends software.amazon.jsii.JsiiObject { `; +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Default.java 1`] = ` +package software.amazon.jsii.tests.calculator; + +/** + * A class named "Default". + *

+ * @see https://github.com/aws/jsii/issues/2637 + */ +@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.Default") +public class Default extends software.amazon.jsii.JsiiObject { + + protected Default(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected Default(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) + public Default() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } + + /** + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) + public void pleaseCompile() { + software.amazon.jsii.Kernel.call(this, "pleaseCompile", software.amazon.jsii.NativeType.VOID); + } +} + +`; + exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/DefaultedConstructorArgument.java 1`] = ` package software.amazon.jsii.tests.calculator; @@ -13490,6 +13533,70 @@ public abstract class Isomorphism extends software.amazon.jsii.JsiiObject { `; +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Issue2638.java 1`] = ` +package software.amazon.jsii.tests.calculator; + +/** + * Docstrings with period. + *

+ * @see https://github.com/aws/jsii/issues/2638 + */ +@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.Issue2638") +public class Issue2638 extends software.amazon.jsii.JsiiObject { + + protected Issue2638(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected Issue2638(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * First sentence. + *

+ * Second sentence. Third sentence. + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) + public Issue2638() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } +} + +`; + +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/Issue2638B.java 1`] = ` +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.Issue2638B") +public class Issue2638B extends software.amazon.jsii.JsiiObject { + + protected Issue2638B(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected Issue2638B(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) + public Issue2638B() { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); + } +} + +`; + exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/JSII417Derived.java 1`] = ` package software.amazon.jsii.tests.calculator; @@ -21990,6 +22097,130 @@ public interface StructWithSelf extends software.amazon.jsii.JsiiSerializable { `; +exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/submodule/Default.java 1`] = ` +package software.amazon.jsii.tests.calculator.submodule; + +/** + * A struct named "Default". + *

+ * @see https://github.com/aws/jsii/issues/2637 + */ +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.submodule.Default") +@software.amazon.jsii.Jsii.Proxy(Default.Jsii$Proxy.class) +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) +public interface Default extends software.amazon.jsii.JsiiSerializable { + + /** + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) + @org.jetbrains.annotations.NotNull java.lang.Number getFoo(); + + /** + * @return a {@link Builder} of {@link Default} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) + static Builder builder() { + return new Builder(); + } + /** + * A builder for {@link Default} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) + public static final class Builder implements software.amazon.jsii.Builder { + private java.lang.Number foo; + + /** + * Sets the value of {@link Default#getFoo} + * @param foo the value to be set. This parameter is required. + * @return {@code this} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) + public Builder foo(java.lang.Number foo) { + this.foo = foo; + return this; + } + + /** + * Builds the configured instance. + * @return a new instance of {@link Default} + * @throws NullPointerException if any required attribute was not provided + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) + @Override + public Default build() { + return new Jsii$Proxy(foo); + } + } + + /** + * An implementation for {@link Default} + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) + @software.amazon.jsii.Internal + final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements Default { + private final java.lang.Number foo; + + /** + * 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.foo = software.amazon.jsii.Kernel.get(this, "foo", software.amazon.jsii.NativeType.forClass(java.lang.Number.class)); + } + + /** + * Constructor that initializes the object based on literal property values passed by the {@link Builder}. + */ + protected Jsii$Proxy(final java.lang.Number foo) { + super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); + this.foo = java.util.Objects.requireNonNull(foo, "foo is required"); + } + + @Override + public final java.lang.Number getFoo() { + return this.foo; + } + + @Override + @software.amazon.jsii.Internal + 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("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.submodule.Default")); + 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 final boolean equals(final Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + Default.Jsii$Proxy that = (Default.Jsii$Proxy) o; + + return this.foo.equals(that.foo); + } + + @Override + public final int hashCode() { + int result = this.foo.hashCode(); + return result; + } + } +} + +`; + exports[`Generated code for "jsii-calc": /java/src/main/java/software/amazon/jsii/tests/calculator/submodule/MyClass.java 1`] = ` package software.amazon.jsii.tests.calculator.submodule; @@ -23096,6 +23327,7 @@ jsii-calc.ConsumePureInterface=software.amazon.jsii.tests.calculator.ConsumePure jsii-calc.ConsumerCanRingBell=software.amazon.jsii.tests.calculator.ConsumerCanRingBell jsii-calc.ConsumersOfThisCrazyTypeSystem=software.amazon.jsii.tests.calculator.ConsumersOfThisCrazyTypeSystem jsii-calc.DataRenderer=software.amazon.jsii.tests.calculator.DataRenderer +jsii-calc.Default=software.amazon.jsii.tests.calculator.Default jsii-calc.DefaultedConstructorArgument=software.amazon.jsii.tests.calculator.DefaultedConstructorArgument jsii-calc.Demonstrate982=software.amazon.jsii.tests.calculator.Demonstrate982 jsii-calc.DeprecatedClass=software.amazon.jsii.tests.calculator.DeprecatedClass @@ -23182,6 +23414,8 @@ jsii-calc.InterfaceInNamespaceIncludesClasses.Hello=software.amazon.jsii.tests.c jsii-calc.InterfaceInNamespaceOnlyInterface.Hello=software.amazon.jsii.tests.calculator.interface_in_namespace_only_interface.Hello jsii-calc.InterfacesMaker=software.amazon.jsii.tests.calculator.InterfacesMaker jsii-calc.Isomorphism=software.amazon.jsii.tests.calculator.Isomorphism +jsii-calc.Issue2638=software.amazon.jsii.tests.calculator.Issue2638 +jsii-calc.Issue2638B=software.amazon.jsii.tests.calculator.Issue2638B jsii-calc.JSII417Derived=software.amazon.jsii.tests.calculator.JSII417Derived jsii-calc.JSII417PublicBaseOfBase=software.amazon.jsii.tests.calculator.JSII417PublicBaseOfBase jsii-calc.JSObjectLiteralForInterface=software.amazon.jsii.tests.calculator.JSObjectLiteralForInterface @@ -23280,6 +23514,7 @@ jsii-calc.composition.CompositeOperation.CompositionStringStyle=software.amazon. jsii-calc.nodirect.sub1.TypeFromSub1=software.amazon.jsii.tests.calculator.nodirect.sub1.TypeFromSub1 jsii-calc.nodirect.sub2.TypeFromSub2=software.amazon.jsii.tests.calculator.nodirect.sub2.TypeFromSub2 jsii-calc.onlystatic.OnlyStaticMethods=software.amazon.jsii.tests.calculator.onlystatic.OnlyStaticMethods +jsii-calc.submodule.Default=software.amazon.jsii.tests.calculator.submodule.Default jsii-calc.submodule.MyClass=software.amazon.jsii.tests.calculator.submodule.MyClass jsii-calc.submodule.back_references.MyClassReference=software.amazon.jsii.tests.calculator.submodule.back_references.MyClassReference jsii-calc.submodule.child.Awesomeness=software.amazon.jsii.tests.calculator.submodule.child.Awesomeness diff --git a/packages/jsii-pacmak/test/generated-code/__snapshots__/target-python.test.ts.snap b/packages/jsii-pacmak/test/generated-code/__snapshots__/target-python.test.ts.snap index bda56da08c..6f302ae5a9 100644 --- a/packages/jsii-pacmak/test/generated-code/__snapshots__/target-python.test.ts.snap +++ b/packages/jsii-pacmak/test/generated-code/__snapshots__/target-python.test.ts.snap @@ -3659,6 +3659,20 @@ class DataRenderer(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DataRenderer"): return typing.cast(builtins.str, jsii.invoke(self, "renderMap", [map])) +class Default(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Default"): + '''A class named "Default". + + :see: https://github.com/aws/jsii/issues/2637 + ''' + + def __init__(self) -> None: + jsii.create(Default, self, []) + + @jsii.member(jsii_name="pleaseCompile") + def please_compile(self) -> None: + return typing.cast(None, jsii.invoke(self, "pleaseCompile", [])) + + class DefaultedConstructorArgument( metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DefaultedConstructorArgument", @@ -6246,6 +6260,25 @@ class _IsomorphismProxy(Isomorphism): pass +class Issue2638(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Issue2638"): + '''Docstrings with period. + + :see: https://github.com/aws/jsii/issues/2638 + ''' + + def __init__(self) -> None: + '''First sentence. + + Second sentence. Third sentence. + ''' + jsii.create(Issue2638, self, []) + + +class Issue2638B(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Issue2638B"): + def __init__(self) -> None: + jsii.create(Issue2638B, self, []) + + class JSII417PublicBaseOfBase( metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JSII417PublicBaseOfBase", @@ -9785,6 +9818,7 @@ __all__ = [ "ConsumerCanRingBell", "ConsumersOfThisCrazyTypeSystem", "DataRenderer", + "Default", "DefaultedConstructorArgument", "Demonstrate982", "DeprecatedClass", @@ -9866,6 +9900,8 @@ __all__ = [ "InterfaceCollections", "InterfacesMaker", "Isomorphism", + "Issue2638", + "Issue2638B", "JSII417Derived", "JSII417PublicBaseOfBase", "JSObjectLiteralForInterface", @@ -10563,6 +10599,41 @@ from .nested_submodule.deeply_nested import INamespaced as _INamespaced_e2f386ad from .param import SpecialParameter as _SpecialParameter_5bbf34a2 +@jsii.data_type( + jsii_type="jsii-calc.submodule.Default", + jsii_struct_bases=[], + name_mapping={"foo": "foo"}, +) +class Default: + def __init__(self, *, foo: jsii.Number) -> None: + '''A struct named "Default". + + :param foo: + + :see: https://github.com/aws/jsii/issues/2637 + ''' + self._values: typing.Dict[str, typing.Any] = { + "foo": foo, + } + + @builtins.property + def foo(self) -> jsii.Number: + result = self._values.get("foo") + assert result is not None, "Required property 'foo' is missing" + return typing.cast(jsii.Number, result) + + def __eq__(self, rhs: typing.Any) -> builtins.bool: + return isinstance(rhs, self.__class__) and rhs._values == self._values + + def __ne__(self, rhs: typing.Any) -> builtins.bool: + return not (rhs == self) + + def __repr__(self) -> str: + return "Default(%s)" % ", ".join( + k + "=" + repr(v) for k, v in self._values.items() + ) + + @jsii.implements(_INamespaced_e2f386ad) class MyClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.submodule.MyClass"): def __init__(self, *, prop: _SomeEnum_b2e41d92) -> None: @@ -10613,6 +10684,7 @@ class MyClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.submodule.MyClass"): __all__ = [ + "Default", "MyClass", ] diff --git a/packages/jsii-reflect/test/__snapshots__/jsii-tree.test.ts.snap b/packages/jsii-reflect/test/__snapshots__/jsii-tree.test.ts.snap index 70e646aea2..415a3c44c6 100644 --- a/packages/jsii-reflect/test/__snapshots__/jsii-tree.test.ts.snap +++ b/packages/jsii-reflect/test/__snapshots__/jsii-tree.test.ts.snap @@ -227,32 +227,38 @@ exports[`jsii-tree --all 1`] = ` │ │ │ └─┬ returnsSpecialParam() method (stable) │ │ │ └── returns: jsii-calc.submodule.param.SpecialParameter │ │ └─┬ types - │ │ └─┬ class MyClass (stable) - │ │ ├── interfaces: INamespaced + │ │ ├─┬ class MyClass (stable) + │ │ │ ├── interfaces: INamespaced + │ │ │ └─┬ members + │ │ │ ├─┬ (props) initializer (stable) + │ │ │ │ └─┬ parameters + │ │ │ │ └─┬ props + │ │ │ │ └── type: jsii-calc.submodule.child.SomeStruct + │ │ │ ├─┬ methodWithSpecialParam(param) method (stable) + │ │ │ │ ├─┬ parameters + │ │ │ │ │ └─┬ param + │ │ │ │ │ └── type: jsii-calc.submodule.param.SpecialParameter + │ │ │ │ └── returns: string + │ │ │ ├─┬ awesomeness property (stable) + │ │ │ │ ├── immutable + │ │ │ │ └── type: jsii-calc.submodule.child.Awesomeness + │ │ │ ├─┬ definedAt property (stable) + │ │ │ │ ├── immutable + │ │ │ │ └── type: string + │ │ │ ├─┬ goodness property (stable) + │ │ │ │ ├── immutable + │ │ │ │ └── type: jsii-calc.submodule.child.Goodness + │ │ │ ├─┬ props property (stable) + │ │ │ │ ├── immutable + │ │ │ │ └── type: jsii-calc.submodule.child.SomeStruct + │ │ │ └─┬ allTypes property (stable) + │ │ │ └── type: Optional + │ │ └─┬ interface Default (stable) │ │ └─┬ members - │ │ ├─┬ (props) initializer (stable) - │ │ │ └─┬ parameters - │ │ │ └─┬ props - │ │ │ └── type: jsii-calc.submodule.child.SomeStruct - │ │ ├─┬ methodWithSpecialParam(param) method (stable) - │ │ │ ├─┬ parameters - │ │ │ │ └─┬ param - │ │ │ │ └── type: jsii-calc.submodule.param.SpecialParameter - │ │ │ └── returns: string - │ │ ├─┬ awesomeness property (stable) - │ │ │ ├── immutable - │ │ │ └── type: jsii-calc.submodule.child.Awesomeness - │ │ ├─┬ definedAt property (stable) - │ │ │ ├── immutable - │ │ │ └── type: string - │ │ ├─┬ goodness property (stable) - │ │ │ ├── immutable - │ │ │ └── type: jsii-calc.submodule.child.Goodness - │ │ ├─┬ props property (stable) - │ │ │ ├── immutable - │ │ │ └── type: jsii-calc.submodule.child.SomeStruct - │ │ └─┬ allTypes property (stable) - │ │ └── type: Optional + │ │ └─┬ foo property (stable) + │ │ ├── abstract + │ │ ├── immutable + │ │ └── type: number │ └─┬ types │ ├─┬ class AbstractClass (stable) │ │ ├── base: AbstractClassBase @@ -745,6 +751,11 @@ exports[`jsii-tree --all 1`] = ` │ │ │ └─┬ map │ │ │ └── type: Map any> │ │ └── returns: string + │ ├─┬ class Default (stable) + │ │ └─┬ members + │ │ ├── () initializer (stable) + │ │ └─┬ pleaseCompile() method (stable) + │ │ └── returns: void │ ├─┬ class DefaultedConstructorArgument (stable) │ │ └─┬ members │ │ ├─┬ (arg1,arg2,arg3) initializer (stable) @@ -1046,6 +1057,12 @@ exports[`jsii-tree --all 1`] = ` │ │ ├── () initializer (stable) │ │ └─┬ myself() method (stable) │ │ └── returns: jsii-calc.Isomorphism + │ ├─┬ class Issue2638 (stable) + │ │ └─┬ members + │ │ └── () initializer (stable) + │ ├─┬ class Issue2638B (stable) + │ │ └─┬ members + │ │ └── () initializer (stable) │ ├─┬ class JSII417Derived (stable) │ │ ├── base: JSII417PublicBaseOfBase │ │ └─┬ members @@ -2963,8 +2980,9 @@ exports[`jsii-tree --inheritance 1`] = ` │ │ │ └─┬ types │ │ │ └── class ReturnsSpecialParameter │ │ └─┬ types - │ │ └─┬ class MyClass - │ │ └── interfaces: INamespaced + │ │ ├─┬ class MyClass + │ │ │ └── interfaces: INamespaced + │ │ └── interface Default │ └─┬ types │ ├─┬ class AbstractClass │ │ ├── base: AbstractClassBase @@ -3007,6 +3025,7 @@ exports[`jsii-tree --inheritance 1`] = ` │ ├── class ConsumerCanRingBell │ ├── class ConsumersOfThisCrazyTypeSystem │ ├── class DataRenderer + │ ├── class Default │ ├── class DefaultedConstructorArgument │ ├── class Demonstrate982 │ ├── class DeprecatedClass @@ -3041,6 +3060,8 @@ exports[`jsii-tree --inheritance 1`] = ` │ ├── class InterfaceCollections │ ├── class InterfacesMaker │ ├── class Isomorphism + │ ├── class Issue2638 + │ ├── class Issue2638B │ ├─┬ class JSII417Derived │ │ └── base: JSII417PublicBaseOfBase │ ├── class JSII417PublicBaseOfBase @@ -3417,15 +3438,18 @@ exports[`jsii-tree --members 1`] = ` │ │ │ ├── () initializer │ │ │ └── returnsSpecialParam() method │ │ └─┬ types - │ │ └─┬ class MyClass + │ │ ├─┬ class MyClass + │ │ │ └─┬ members + │ │ │ ├── (props) initializer + │ │ │ ├── methodWithSpecialParam(param) method + │ │ │ ├── awesomeness property + │ │ │ ├── definedAt property + │ │ │ ├── goodness property + │ │ │ ├── props property + │ │ │ └── allTypes property + │ │ └─┬ interface Default │ │ └─┬ members - │ │ ├── (props) initializer - │ │ ├── methodWithSpecialParam(param) method - │ │ ├── awesomeness property - │ │ ├── definedAt property - │ │ ├── goodness property - │ │ ├── props property - │ │ └── allTypes property + │ │ └── foo property │ └─┬ types │ ├─┬ class AbstractClass │ │ └─┬ members @@ -3627,6 +3651,10 @@ exports[`jsii-tree --members 1`] = ` │ │ ├── render(data) method │ │ ├── renderArbitrary(data) method │ │ └── renderMap(map) method + │ ├─┬ class Default + │ │ └─┬ members + │ │ ├── () initializer + │ │ └── pleaseCompile() method │ ├─┬ class DefaultedConstructorArgument │ │ └─┬ members │ │ ├── (arg1,arg2,arg3) initializer @@ -3760,6 +3788,12 @@ exports[`jsii-tree --members 1`] = ` │ │ └─┬ members │ │ ├── () initializer │ │ └── myself() method + │ ├─┬ class Issue2638 + │ │ └─┬ members + │ │ └── () initializer + │ ├─┬ class Issue2638B + │ │ └─┬ members + │ │ └── () initializer │ ├─┬ class JSII417Derived │ │ └─┬ members │ │ ├── (property) initializer @@ -4680,7 +4714,8 @@ exports[`jsii-tree --types 1`] = ` │ │ │ └─┬ types │ │ │ └── class ReturnsSpecialParameter │ │ └─┬ types - │ │ └── class MyClass + │ │ ├── class MyClass + │ │ └── interface Default │ └─┬ types │ ├── class AbstractClass │ ├── class AbstractClassBase @@ -4712,6 +4747,7 @@ exports[`jsii-tree --types 1`] = ` │ ├── class ConsumerCanRingBell │ ├── class ConsumersOfThisCrazyTypeSystem │ ├── class DataRenderer + │ ├── class Default │ ├── class DefaultedConstructorArgument │ ├── class Demonstrate982 │ ├── class DeprecatedClass @@ -4740,6 +4776,8 @@ exports[`jsii-tree --types 1`] = ` │ ├── class InterfaceCollections │ ├── class InterfacesMaker │ ├── class Isomorphism + │ ├── class Issue2638 + │ ├── class Issue2638B │ ├── class JSII417Derived │ ├── class JSII417PublicBaseOfBase │ ├── class JSObjectLiteralForInterface diff --git a/packages/jsii-reflect/test/__snapshots__/tree.test.ts.snap b/packages/jsii-reflect/test/__snapshots__/tree.test.ts.snap index 57c7434203..0f057f66c1 100644 --- a/packages/jsii-reflect/test/__snapshots__/tree.test.ts.snap +++ b/packages/jsii-reflect/test/__snapshots__/tree.test.ts.snap @@ -323,32 +323,38 @@ exports[`showAll 1`] = ` │ │ │ └─┬ returnsSpecialParam() method │ │ │ └── returns: jsii-calc.submodule.param.SpecialParameter │ │ └─┬ types - │ │ └─┬ class MyClass - │ │ ├── interfaces: INamespaced + │ │ ├─┬ class MyClass + │ │ │ ├── interfaces: INamespaced + │ │ │ └─┬ members + │ │ │ ├─┬ (props) initializer + │ │ │ │ └─┬ parameters + │ │ │ │ └─┬ props + │ │ │ │ └── type: jsii-calc.submodule.child.SomeStruct + │ │ │ ├─┬ methodWithSpecialParam(param) method + │ │ │ │ ├─┬ parameters + │ │ │ │ │ └─┬ param + │ │ │ │ │ └── type: jsii-calc.submodule.param.SpecialParameter + │ │ │ │ └── returns: string + │ │ │ ├─┬ awesomeness property + │ │ │ │ ├── immutable + │ │ │ │ └── type: jsii-calc.submodule.child.Awesomeness + │ │ │ ├─┬ definedAt property + │ │ │ │ ├── immutable + │ │ │ │ └── type: string + │ │ │ ├─┬ goodness property + │ │ │ │ ├── immutable + │ │ │ │ └── type: jsii-calc.submodule.child.Goodness + │ │ │ ├─┬ props property + │ │ │ │ ├── immutable + │ │ │ │ └── type: jsii-calc.submodule.child.SomeStruct + │ │ │ └─┬ allTypes property + │ │ │ └── type: Optional + │ │ └─┬ interface Default │ │ └─┬ members - │ │ ├─┬ (props) initializer - │ │ │ └─┬ parameters - │ │ │ └─┬ props - │ │ │ └── type: jsii-calc.submodule.child.SomeStruct - │ │ ├─┬ methodWithSpecialParam(param) method - │ │ │ ├─┬ parameters - │ │ │ │ └─┬ param - │ │ │ │ └── type: jsii-calc.submodule.param.SpecialParameter - │ │ │ └── returns: string - │ │ ├─┬ awesomeness property - │ │ │ ├── immutable - │ │ │ └── type: jsii-calc.submodule.child.Awesomeness - │ │ ├─┬ definedAt property - │ │ │ ├── immutable - │ │ │ └── type: string - │ │ ├─┬ goodness property - │ │ │ ├── immutable - │ │ │ └── type: jsii-calc.submodule.child.Goodness - │ │ ├─┬ props property - │ │ │ ├── immutable - │ │ │ └── type: jsii-calc.submodule.child.SomeStruct - │ │ └─┬ allTypes property - │ │ └── type: Optional + │ │ └─┬ foo property + │ │ ├── abstract + │ │ ├── immutable + │ │ └── type: number │ └─┬ types │ ├─┬ class AbstractClass │ │ ├── base: AbstractClassBase @@ -841,6 +847,11 @@ exports[`showAll 1`] = ` │ │ │ └─┬ map │ │ │ └── type: Map any> │ │ └── returns: string + │ ├─┬ class Default + │ │ └─┬ members + │ │ ├── () initializer + │ │ └─┬ pleaseCompile() method + │ │ └── returns: void │ ├─┬ class DefaultedConstructorArgument │ │ └─┬ members │ │ ├─┬ (arg1,arg2,arg3) initializer @@ -1142,6 +1153,12 @@ exports[`showAll 1`] = ` │ │ ├── () initializer │ │ └─┬ myself() method │ │ └── returns: jsii-calc.Isomorphism + │ ├─┬ class Issue2638 + │ │ └─┬ members + │ │ └── () initializer + │ ├─┬ class Issue2638B + │ │ └─┬ members + │ │ └── () initializer │ ├─┬ class JSII417Derived │ │ ├── base: JSII417PublicBaseOfBase │ │ └─┬ members @@ -3086,7 +3103,8 @@ exports[`types 1`] = ` │ │ │ └─┬ types │ │ │ └── class ReturnsSpecialParameter │ │ └─┬ types - │ │ └── class MyClass + │ │ ├── class MyClass + │ │ └── interface Default │ └─┬ types │ ├── class AbstractClass │ ├── class AbstractClassBase @@ -3118,6 +3136,7 @@ exports[`types 1`] = ` │ ├── class ConsumerCanRingBell │ ├── class ConsumersOfThisCrazyTypeSystem │ ├── class DataRenderer + │ ├── class Default │ ├── class DefaultedConstructorArgument │ ├── class Demonstrate982 │ ├── class DeprecatedClass @@ -3146,6 +3165,8 @@ exports[`types 1`] = ` │ ├── class InterfaceCollections │ ├── class InterfacesMaker │ ├── class Isomorphism + │ ├── class Issue2638 + │ ├── class Issue2638B │ ├── class JSII417Derived │ ├── class JSII417PublicBaseOfBase │ ├── class JSObjectLiteralForInterface diff --git a/packages/jsii-reflect/test/__snapshots__/type-system.test.ts.snap b/packages/jsii-reflect/test/__snapshots__/type-system.test.ts.snap index 9881b70cbc..f7ceb755ab 100644 --- a/packages/jsii-reflect/test/__snapshots__/type-system.test.ts.snap +++ b/packages/jsii-reflect/test/__snapshots__/type-system.test.ts.snap @@ -51,6 +51,7 @@ Array [ "jsii-calc.ConsumerCanRingBell", "jsii-calc.ConsumersOfThisCrazyTypeSystem", "jsii-calc.DataRenderer", + "jsii-calc.Default", "jsii-calc.DefaultedConstructorArgument", "jsii-calc.Demonstrate982", "jsii-calc.DeprecatedClass", @@ -82,6 +83,8 @@ Array [ "jsii-calc.InterfaceInNamespaceIncludesClasses.Foo", "jsii-calc.InterfacesMaker", "jsii-calc.Isomorphism", + "jsii-calc.Issue2638", + "jsii-calc.Issue2638B", "jsii-calc.JSII417Derived", "jsii-calc.JSII417PublicBaseOfBase", "jsii-calc.JSObjectLiteralForInterface", From 35667e27ee098a55b843aa05a2e1c8b032c732f7 Mon Sep 17 00:00:00 2001 From: Elad Ben-Israel Date: Wed, 3 Mar 2021 13:38:35 +0200 Subject: [PATCH 2/2] Update packages/jsii-pacmak/lib/targets/go/types/go-type.ts Co-authored-by: Romain Marcadier --- packages/jsii-pacmak/lib/targets/go/types/go-type.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/jsii-pacmak/lib/targets/go/types/go-type.ts b/packages/jsii-pacmak/lib/targets/go/types/go-type.ts index c7dd0a5c91..c90df336f0 100644 --- a/packages/jsii-pacmak/lib/targets/go/types/go-type.ts +++ b/packages/jsii-pacmak/lib/targets/go/types/go-type.ts @@ -14,9 +14,9 @@ export abstract class GoType { public constructor(public pkg: Package, public type: Type) { this.name = toPascalCase(type.name); - // add "_jsiiClass" postfix to private struct name to avoid keyword + // add "_jsiiProxy" postfix to private struct name to avoid keyword // conflicts such as "default". see https://github.com/aws/jsii/issues/2637 - this.proxyName = `${toCamelCase(type.name)}_jsiiClass`; + this.proxyName = `${toCamelCase(type.name)}_jsiiProxy`; this.fqn = type.fqn; }