From 543e6a8cb5b8ff3d41dda071489d15f3022b96d9 Mon Sep 17 00:00:00 2001 From: Romain Marcadier Date: Thu, 1 Oct 2020 20:37:29 +0200 Subject: [PATCH 01/16] chore(pacmak/go): indent using tabs instead of spaces (#2065) Since `gofmt` indents using tabulations, reproduce this behvaior on generated code so it looks more idiomatic. --- By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0 --- packages/codemaker/lib/codemaker.ts | 21 +- packages/jsii-pacmak/lib/targets/go.ts | 5 +- .../__snapshots__/target-go.test.ts.snap | 8346 ++++++++--------- 3 files changed, 4196 insertions(+), 4176 deletions(-) diff --git a/packages/codemaker/lib/codemaker.ts b/packages/codemaker/lib/codemaker.ts index c9d029ee27..aafe39f141 100644 --- a/packages/codemaker/lib/codemaker.ts +++ b/packages/codemaker/lib/codemaker.ts @@ -9,13 +9,30 @@ export class CodeMaker { /** * The indentation level of the file. */ - public indentation = 4; + public indentation: number; + + /** + * The character to use for indentation. When setting this to `\t`, consider + * also setting `indentation` to `1`. + */ + public indentCharacter: ' ' | '\t'; private currIndent = 0; private currentFile?: FileBuffer; private readonly files = new Array(); private readonly excludes = new Array(); + public constructor({ + indentationLevel = 4, + indentCharacter = ' ', + }: { + indentationLevel?: CodeMaker['indentation']; + indentCharacter?: CodeMaker['indentCharacter']; + } = {}) { + this.indentation = indentationLevel; + this.indentCharacter = indentCharacter; + } + public get currentIndentLength(): number { return this.currIndent * this.indentation; } @@ -183,6 +200,6 @@ export class CodeMaker { if (length <= 0) { return ''; } - return ' '.repeat(length); + return this.indentCharacter.repeat(length); } } diff --git a/packages/jsii-pacmak/lib/targets/go.ts b/packages/jsii-pacmak/lib/targets/go.ts index 0aefff87e0..99178d8a4d 100644 --- a/packages/jsii-pacmak/lib/targets/go.ts +++ b/packages/jsii-pacmak/lib/targets/go.ts @@ -31,7 +31,10 @@ export class Golang extends Target { class GoGenerator implements IGenerator { private assembly!: Assembly; - private readonly code = new CodeMaker(); + private readonly code = new CodeMaker({ + indentCharacter: '\t', + indentationLevel: 1, + }); private readonly documenter: Documentation; public constructor(private readonly rosetta: Rosetta) { 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 5681034e1b..a0de5208c6 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 @@ -16,13 +16,13 @@ exports[`Generated code for "@scope/jsii-calc-base": /golang/scopejsiica package scopejsiicalcbase import ( - "github.com/aws-cdk/jsii/jsii-experimental" - "github.com/aws-cdk/jsii/jsii-calc/golang/scopejsiicalcbaseofbase" + "github.com/aws-cdk/jsii/jsii-experimental" + "github.com/aws-cdk/jsii/jsii-calc/golang/scopejsiicalcbaseofbase" ) // Class interface type BaseIface interface { - TypeName() jsii.Any + TypeName() jsii.Any } // A base class. @@ -31,47 +31,47 @@ type Base struct { } func NewBase() BaseIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Base", - Method: "Constructor", - Args: []string{}, - }) - return &Base{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Base", + Method: "Constructor", + Args: []string{}, + }) + return &Base{} } func (b *Base) TypeName() jsii.Any { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Base", - Method: "TypeName", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Base", + Method: "TypeName", + Args: []string{}, + }) + return nil } // BasePropsIface is the public interface for the custom type BaseProps type BasePropsIface interface { - GetFoo() scopejsiicalcbaseofbase.Very - GetBar() string + GetFoo() scopejsiicalcbaseofbase.Very + GetBar() string } // Struct proxy type BaseProps struct { - Foo scopejsiicalcbaseofbase.Very - Bar string + Foo scopejsiicalcbaseofbase.Very + Bar string } func (b *BaseProps) GetFoo() scopejsiicalcbaseofbase.Very { - return b.Foo + return b.Foo } func (b *BaseProps) GetBar() string { - return b.Bar + return b.Bar } type IBaseInterface interface { - scopejsiicalcbaseofbase.IVeryBaseInterface - Bar() + scopejsiicalcbaseofbase.IVeryBaseInterface + Bar() } @@ -93,11 +93,11 @@ exports[`Generated code for "@scope/jsii-calc-base-of-base": /golang/sco package scopejsiicalcbaseofbase import ( - "github.com/aws-cdk/jsii/jsii-experimental" + "github.com/aws-cdk/jsii/jsii-experimental" ) type IVeryBaseInterface interface { - Foo() + Foo() } // Class interface @@ -109,16 +109,16 @@ type StaticConsumer struct { } func StaticConsumer_Consume(_args jsii.Any) { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "StaticConsumer", - Method: "Consume", - Args: []string{"any",}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "StaticConsumer", + Method: "Consume", + Args: []string{"any",}, + }) } // Class interface type VeryIface interface { - Hey() float64 + Hey() float64 } // Something here. @@ -128,35 +128,35 @@ type Very struct { } func NewVery() VeryIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Very", - Method: "Constructor", - Args: []string{}, - }) - return &Very{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Very", + Method: "Constructor", + Args: []string{}, + }) + return &Very{} } func (v *Very) Hey() float64 { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Very", - Method: "Hey", - Args: []string{}, - }) - return 0.0 + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Very", + Method: "Hey", + Args: []string{}, + }) + return 0.0 } // VeryBasePropsIface is the public interface for the custom type VeryBaseProps type VeryBasePropsIface interface { - GetFoo() Very + GetFoo() Very } // Struct proxy type VeryBaseProps struct { - Foo Very + Foo Very } func (v *VeryBaseProps) GetFoo() Very { - return v.Foo + return v.Foo } @@ -181,9 +181,9 @@ exports[`Generated code for "@scope/jsii-calc-lib": /golang/scopejsiical package scopejsiicalclib import ( - "github.com/aws-cdk/jsii/jsii-experimental" - "github.com/aws-cdk/jsii/jsii-calc/golang/scopejsiicalcbaseofbase" - "github.com/aws-cdk/jsii/jsii-calc/golang/scopejsiicalcbase" + "github.com/aws-cdk/jsii/jsii-experimental" + "github.com/aws-cdk/jsii/jsii-calc/golang/scopejsiicalcbaseofbase" + "github.com/aws-cdk/jsii/jsii-calc/golang/scopejsiicalcbase" ) // Check that enums from \\@scoped packages can be references. @@ -193,15 +193,15 @@ import ( type EnumFromScopedModule string const ( - EnumFromScopedModuleValue1 EnumFromScopedModule = "VALUE1" - EnumFromScopedModuleValue2 EnumFromScopedModule = "VALUE2" + EnumFromScopedModuleValue1 EnumFromScopedModule = "VALUE1" + EnumFromScopedModuleValue2 EnumFromScopedModule = "VALUE2" ) // The general contract for a concrete number. // Deprecated. type IDoublable interface { - // Deprecated. - GetDoubleValue() float64 + // Deprecated. + GetDoubleValue() float64 } // Applies to classes that are considered friendly. @@ -210,9 +210,9 @@ type IDoublable interface { // a "hello" or "goodbye" blessing and they will respond back in a fun and friendly manner. // Deprecated. type IFriendly interface { - // Say hello! - // Deprecated. - Hello() string + // Say hello! + // Deprecated. + Hello() string } // Interface that inherits from packages 2 levels up the tree. @@ -221,252 +221,252 @@ type IFriendly interface { // far enough up the tree. // Deprecated. type IThreeLevelsInterface interface { - scopejsiicalcbaseofbase.IVeryBaseInterface - scopejsiicalcbase.IBaseInterface - // Deprecated. - Baz() + scopejsiicalcbaseofbase.IVeryBaseInterface + scopejsiicalcbase.IBaseInterface + // Deprecated. + Baz() } // MyFirstStructIface is the public interface for the custom type MyFirstStruct // Deprecated. type MyFirstStructIface interface { - GetAnumber() float64 - GetAstring() string - GetFirstOptional() []string + GetAnumber() float64 + GetAstring() string + GetFirstOptional() []string } // This is the first struct we have created in jsii. // Deprecated. // Struct proxy type MyFirstStruct struct { - // An awesome number value. - // Deprecated. - Anumber float64 - // A string value. - // Deprecated. - Astring string - // Deprecated. - FirstOptional []string + // An awesome number value. + // Deprecated. + Anumber float64 + // A string value. + // Deprecated. + Astring string + // Deprecated. + FirstOptional []string } func (m *MyFirstStruct) GetAnumber() float64 { - return m.Anumber + return m.Anumber } func (m *MyFirstStruct) GetAstring() string { - return m.Astring + return m.Astring } func (m *MyFirstStruct) GetFirstOptional() []string { - return m.FirstOptional + return m.FirstOptional } // Class interface type NumberIface interface { - IDoublable - GetValue() float64 - SetValue(val float64) - GetDoubleValue() float64 - SetDoubleValue(val float64) - TypeName() jsii.Any - ToString() string + IDoublable + GetValue() float64 + SetValue(val float64) + GetDoubleValue() float64 + SetDoubleValue(val float64) + TypeName() jsii.Any + ToString() string } // Represents a concrete number. // Deprecated. // Struct proxy type Number struct { - // The number. - // Deprecated. - Value float64 - // The number multiplied by 2. - // Deprecated. - DoubleValue float64 + // The number. + // Deprecated. + Value float64 + // The number multiplied by 2. + // Deprecated. + DoubleValue float64 } func (n *Number) GetValue() float64 { - return n.Value + return n.Value } func (n *Number) GetDoubleValue() float64 { - return n.DoubleValue + return n.DoubleValue } // Creates a Number object. func NewNumber(value float64) NumberIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Number", - Method: "Constructor", - Args: []string{"number",}, - }) - return &Number{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Number", + Method: "Constructor", + Args: []string{"number",}, + }) + return &Number{} } func (n *Number) SetValue(val float64) { - n.Value = val + n.Value = val } func (n *Number) SetDoubleValue(val float64) { - n.DoubleValue = val + n.DoubleValue = val } func (n *Number) TypeName() jsii.Any { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Number", - Method: "TypeName", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Number", + Method: "TypeName", + Args: []string{}, + }) + return nil } func (n *Number) ToString() string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Number", - Method: "ToString", - Args: []string{}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Number", + Method: "ToString", + Args: []string{}, + }) + return "NOOP_RETURN_STRING" } // Class interface type NumericValueIface interface { - GetValue() float64 - SetValue(val float64) - TypeName() jsii.Any - ToString() string + GetValue() float64 + SetValue(val float64) + TypeName() jsii.Any + ToString() string } // Abstract class which represents a numeric value. // Deprecated. // Struct proxy type NumericValue struct { - // The value. - // Deprecated. - Value float64 + // The value. + // Deprecated. + Value float64 } func (n *NumericValue) GetValue() float64 { - return n.Value + return n.Value } func NewNumericValue() NumericValueIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "NumericValue", - Method: "Constructor", - Args: []string{}, - }) - return &NumericValue{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "NumericValue", + Method: "Constructor", + Args: []string{}, + }) + return &NumericValue{} } func (n *NumericValue) SetValue(val float64) { - n.Value = val + n.Value = val } func (n *NumericValue) TypeName() jsii.Any { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "NumericValue", - Method: "TypeName", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "NumericValue", + Method: "TypeName", + Args: []string{}, + }) + return nil } func (n *NumericValue) ToString() string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "NumericValue", - Method: "ToString", - Args: []string{}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "NumericValue", + Method: "ToString", + Args: []string{}, + }) + return "NOOP_RETURN_STRING" } // Class interface type OperationIface interface { - GetValue() float64 - SetValue(val float64) - TypeName() jsii.Any - ToString() string + GetValue() float64 + SetValue(val float64) + TypeName() jsii.Any + ToString() string } // Represents an operation on values. // Deprecated. // Struct proxy type Operation struct { - // The value. - // Deprecated. - Value float64 + // The value. + // Deprecated. + Value float64 } func (o *Operation) GetValue() float64 { - return o.Value + return o.Value } func NewOperation() OperationIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Operation", - Method: "Constructor", - Args: []string{}, - }) - return &Operation{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Operation", + Method: "Constructor", + Args: []string{}, + }) + return &Operation{} } func (o *Operation) SetValue(val float64) { - o.Value = val + o.Value = val } func (o *Operation) TypeName() jsii.Any { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Operation", - Method: "TypeName", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Operation", + Method: "TypeName", + Args: []string{}, + }) + return nil } func (o *Operation) ToString() string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Operation", - Method: "ToString", - Args: []string{}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Operation", + Method: "ToString", + Args: []string{}, + }) + return "NOOP_RETURN_STRING" } // StructWithOnlyOptionalsIface is the public interface for the custom type StructWithOnlyOptionals // Deprecated. type StructWithOnlyOptionalsIface interface { - GetOptional1() string - GetOptional2() float64 - GetOptional3() bool + GetOptional1() string + GetOptional2() float64 + GetOptional3() bool } // This is a struct with only optional properties. // Deprecated. // Struct proxy type StructWithOnlyOptionals struct { - // The first optional! - // Deprecated. - Optional1 string - // Deprecated. - Optional2 float64 - // Deprecated. - Optional3 bool + // The first optional! + // Deprecated. + Optional1 string + // Deprecated. + Optional2 float64 + // Deprecated. + Optional3 bool } func (s *StructWithOnlyOptionals) GetOptional1() string { - return s.Optional1 + return s.Optional1 } func (s *StructWithOnlyOptionals) GetOptional2() float64 { - return s.Optional2 + return s.Optional2 } func (s *StructWithOnlyOptionals) GetOptional3() bool { - return s.Optional3 + return s.Optional3 } @@ -477,13 +477,13 @@ exports[`Generated code for "@scope/jsii-calc-lib": /golang/scopejsiical package submodule import ( - "github.com/aws-cdk/jsii/jsii-experimental" + "github.com/aws-cdk/jsii/jsii-experimental" ) // Deprecated. type IReflectable interface { - // Deprecated. - GetEntries() []ReflectableEntry + // Deprecated. + GetEntries() []ReflectableEntry } // Class interface @@ -498,40 +498,40 @@ type NestingClass struct { // Class interface type NestedClassIface interface { - GetProperty() string - SetProperty(val string) + GetProperty() string + SetProperty(val string) } // This class is here to show we can use nested classes across module boundaries. // Deprecated. // Struct proxy type NestedClass struct { - // Deprecated. - Property string + // Deprecated. + Property string } func (n *NestedClass) GetProperty() string { - return n.Property + return n.Property } func NewNestedClass() NestedClassIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "NestedClass", - Method: "Constructor", - Args: []string{}, - }) - return &NestedClass{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "NestedClass", + Method: "Constructor", + Args: []string{}, + }) + return &NestedClass{} } func (n *NestedClass) SetProperty(val string) { - n.Property = val + n.Property = val } // NestedStructIface is the public interface for the custom type NestedStruct // Deprecated. type NestedStructIface interface { - GetName() string + GetName() string } // This is a struct, nested within a class. @@ -540,43 +540,43 @@ type NestedStructIface interface { // Deprecated. // Struct proxy type NestedStruct struct { - // Deprecated. - Name string + // Deprecated. + Name string } func (n *NestedStruct) GetName() string { - return n.Name + return n.Name } // ReflectableEntryIface is the public interface for the custom type ReflectableEntry // Deprecated. type ReflectableEntryIface interface { - GetKey() string - GetValue() jsii.Any + GetKey() string + GetValue() jsii.Any } // Deprecated. // Struct proxy type ReflectableEntry struct { - // Deprecated. - Key string - // Deprecated. - Value jsii.Any + // Deprecated. + Key string + // Deprecated. + Value jsii.Any } func (r *ReflectableEntry) GetKey() string { - return r.Key + return r.Key } func (r *ReflectableEntry) GetValue() jsii.Any { - return r.Value + return r.Value } // Class interface type ReflectorIface interface { - AsMap(reflectable IReflectable) map[string]jsii.Any + AsMap(reflectable IReflectable) map[string]jsii.Any } // Deprecated. @@ -585,21 +585,21 @@ type Reflector struct { } func NewReflector() ReflectorIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Reflector", - Method: "Constructor", - Args: []string{}, - }) - return &Reflector{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Reflector", + Method: "Constructor", + Args: []string{}, + }) + return &Reflector{} } func (r *Reflector) AsMap(reflectable IReflectable) map[string]jsii.Any { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Reflector", - Method: "AsMap", - Args: []string{"@scope/jsii-calc-lib.submodule.IReflectable",}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Reflector", + Method: "AsMap", + Args: []string{"@scope/jsii-calc-lib.submodule.IReflectable",}, + }) + return nil } @@ -668,117 +668,117 @@ exports[`Generated code for "jsii-calc": /golang/jsiicalc/composition/co package composition import ( - "github.com/aws-cdk/jsii/jsii-experimental" - "github.com/aws-cdk/jsii/jsii-calc/golang/scopejsiicalclib" + "github.com/aws-cdk/jsii/jsii-experimental" + "github.com/aws-cdk/jsii/jsii-calc/golang/scopejsiicalclib" ) // Class interface type CompositeOperationIface interface { - GetValue() float64 - SetValue(val float64) - GetExpression() scopejsiicalclib.NumericValue - SetExpression(val scopejsiicalclib.NumericValue) - GetDecorationPostfixes() []string - SetDecorationPostfixes(val []string) - GetDecorationPrefixes() []string - SetDecorationPrefixes(val []string) - GetStringStyle() CompositionStringStyle - SetStringStyle(val CompositionStringStyle) - TypeName() jsii.Any - ToString() string + GetValue() float64 + SetValue(val float64) + GetExpression() scopejsiicalclib.NumericValue + SetExpression(val scopejsiicalclib.NumericValue) + GetDecorationPostfixes() []string + SetDecorationPostfixes(val []string) + GetDecorationPrefixes() []string + SetDecorationPrefixes(val []string) + GetStringStyle() CompositionStringStyle + SetStringStyle(val CompositionStringStyle) + TypeName() jsii.Any + ToString() string } // Abstract operation composed from an expression of other operations. // Struct proxy type CompositeOperation struct { - // (deprecated) The value. - Value float64 - // The expression that this operation consists of. - // - // Must be implemented by derived classes. - Expression scopejsiicalclib.NumericValue - // A set of postfixes to include in a decorated .toString(). - DecorationPostfixes []string - // A set of prefixes to include in a decorated .toString(). - DecorationPrefixes []string - // The .toString() style. - StringStyle CompositionStringStyle + // (deprecated) The value. + Value float64 + // The expression that this operation consists of. + // + // Must be implemented by derived classes. + Expression scopejsiicalclib.NumericValue + // A set of postfixes to include in a decorated .toString(). + DecorationPostfixes []string + // A set of prefixes to include in a decorated .toString(). + DecorationPrefixes []string + // The .toString() style. + StringStyle CompositionStringStyle } func (c *CompositeOperation) GetValue() float64 { - return c.Value + return c.Value } func (c *CompositeOperation) GetExpression() scopejsiicalclib.NumericValue { - return c.Expression + return c.Expression } func (c *CompositeOperation) GetDecorationPostfixes() []string { - return c.DecorationPostfixes + return c.DecorationPostfixes } func (c *CompositeOperation) GetDecorationPrefixes() []string { - return c.DecorationPrefixes + return c.DecorationPrefixes } func (c *CompositeOperation) GetStringStyle() CompositionStringStyle { - return c.StringStyle + return c.StringStyle } func NewCompositeOperation() CompositeOperationIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "CompositeOperation", - Method: "Constructor", - Args: []string{}, - }) - return &CompositeOperation{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "CompositeOperation", + Method: "Constructor", + Args: []string{}, + }) + return &CompositeOperation{} } func (c *CompositeOperation) SetValue(val float64) { - c.Value = val + c.Value = val } func (c *CompositeOperation) SetExpression(val scopejsiicalclib.NumericValue) { - c.Expression = val + c.Expression = val } func (c *CompositeOperation) SetDecorationPostfixes(val []string) { - c.DecorationPostfixes = val + c.DecorationPostfixes = val } func (c *CompositeOperation) SetDecorationPrefixes(val []string) { - c.DecorationPrefixes = val + c.DecorationPrefixes = val } func (c *CompositeOperation) SetStringStyle(val CompositionStringStyle) { - c.StringStyle = val + c.StringStyle = val } func (c *CompositeOperation) TypeName() jsii.Any { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "CompositeOperation", - Method: "TypeName", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "CompositeOperation", + Method: "TypeName", + Args: []string{}, + }) + return nil } func (c *CompositeOperation) ToString() string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "CompositeOperation", - Method: "ToString", - Args: []string{}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "CompositeOperation", + Method: "ToString", + Args: []string{}, + }) + return "NOOP_RETURN_STRING" } // Style of .toString() output for CompositeOperation. type CompositionStringStyle string const ( - CompositionStringStyleNormal CompositionStringStyle = "NORMAL" - CompositionStringStyleDecorated CompositionStringStyle = "DECORATED" + CompositionStringStyleNormal CompositionStringStyle = "NORMAL" + CompositionStringStyleDecorated CompositionStringStyle = "DECORATED" ) @@ -788,65 +788,65 @@ exports[`Generated code for "jsii-calc": /golang/jsiicalc/derivedclassha package derivedclasshasnoproperties import ( - "github.com/aws-cdk/jsii/jsii-experimental" + "github.com/aws-cdk/jsii/jsii-experimental" ) // Class interface type BaseIface interface { - GetProp() string - SetProp(val string) + GetProp() string + SetProp(val string) } // Struct proxy type Base struct { - Prop string + Prop string } func (b *Base) GetProp() string { - return b.Prop + return b.Prop } func NewBase() BaseIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Base", - Method: "Constructor", - Args: []string{}, - }) - return &Base{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Base", + Method: "Constructor", + Args: []string{}, + }) + return &Base{} } func (b *Base) SetProp(val string) { - b.Prop = val + b.Prop = val } // Class interface type DerivedIface interface { - GetProp() string - SetProp(val string) + GetProp() string + SetProp(val string) } // Struct proxy type Derived struct { - Prop string + Prop string } func (d *Derived) GetProp() string { - return d.Prop + return d.Prop } func NewDerived() DerivedIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Derived", - Method: "Constructor", - Args: []string{}, - }) - return &Derived{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Derived", + Method: "Constructor", + Args: []string{}, + }) + return &Derived{} } func (d *Derived) SetProp(val string) { - d.Prop = val + d.Prop = val } @@ -856,50 +856,50 @@ exports[`Generated code for "jsii-calc": /golang/jsiicalc/interfaceinnam package interfaceinnamespaceincludesclasses import ( - "github.com/aws-cdk/jsii/jsii-experimental" + "github.com/aws-cdk/jsii/jsii-experimental" ) // Class interface type FooIface interface { - GetBar() string - SetBar(val string) + GetBar() string + SetBar(val string) } // Struct proxy type Foo struct { - Bar string + Bar string } func (f *Foo) GetBar() string { - return f.Bar + return f.Bar } func NewFoo() FooIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Foo", - Method: "Constructor", - Args: []string{}, - }) - return &Foo{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Foo", + Method: "Constructor", + Args: []string{}, + }) + return &Foo{} } func (f *Foo) SetBar(val string) { - f.Bar = val + f.Bar = val } // HelloIface is the public interface for the custom type Hello type HelloIface interface { - GetFoo() float64 + GetFoo() float64 } // Struct proxy type Hello struct { - Foo float64 + Foo float64 } func (h *Hello) GetFoo() float64 { - return h.Foo + return h.Foo } @@ -910,21 +910,21 @@ exports[`Generated code for "jsii-calc": /golang/jsiicalc/interfaceinnam package interfaceinnamespaceonlyinterface import ( - "github.com/aws-cdk/jsii/jsii-experimental" + "github.com/aws-cdk/jsii/jsii-experimental" ) // HelloIface is the public interface for the custom type Hello type HelloIface interface { - GetFoo() float64 + GetFoo() float64 } // Struct proxy type Hello struct { - Foo float64 + Foo float64 } func (h *Hello) GetFoo() float64 { - return h.Foo + return h.Foo } @@ -936,332 +936,332 @@ exports[`Generated code for "jsii-calc": /golang/jsiicalc/jsiicalc.go 1` package jsiicalc import ( - "github.com/aws-cdk/jsii/jsii-experimental" - "github.com/aws-cdk/jsii/jsii-calc/golang/scopejsiicalclib" - "github.com/aws-cdk/jsii/jsii-calc/golang/jsiicalc/composition" - "github.com/aws-cdk/jsii/jsii-calc/golang/scopejsiicalcbaseofbase" - "github.com/aws-cdk/jsii/jsii-calc/golang/scopejsiicalcbase" - "github.com/aws-cdk/jsii/jsii-calc/golang/scopejsiicalclib/submodule" + "github.com/aws-cdk/jsii/jsii-experimental" + "github.com/aws-cdk/jsii/jsii-calc/golang/scopejsiicalclib" + "github.com/aws-cdk/jsii/jsii-calc/golang/jsiicalc/composition" + "github.com/aws-cdk/jsii/jsii-calc/golang/scopejsiicalcbaseofbase" + "github.com/aws-cdk/jsii/jsii-calc/golang/scopejsiicalcbase" + "github.com/aws-cdk/jsii/jsii-calc/golang/scopejsiicalclib/submodule" ) // Class interface type AbstractClassIface interface { - IInterfaceImplementedByAbstractClass - GetAbstractProperty() string - SetAbstractProperty(val string) - GetPropFromInterface() string - SetPropFromInterface(val string) - AbstractMethod(name string) string - NonAbstractMethod() float64 + IInterfaceImplementedByAbstractClass + GetAbstractProperty() string + SetAbstractProperty(val string) + GetPropFromInterface() string + SetPropFromInterface(val string) + AbstractMethod(name string) string + NonAbstractMethod() float64 } // Struct proxy type AbstractClass struct { - AbstractProperty string - PropFromInterface string + AbstractProperty string + PropFromInterface string } func (a *AbstractClass) GetAbstractProperty() string { - return a.AbstractProperty + return a.AbstractProperty } func (a *AbstractClass) GetPropFromInterface() string { - return a.PropFromInterface + return a.PropFromInterface } func NewAbstractClass() AbstractClassIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "AbstractClass", - Method: "Constructor", - Args: []string{}, - }) - return &AbstractClass{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "AbstractClass", + Method: "Constructor", + Args: []string{}, + }) + return &AbstractClass{} } func (a *AbstractClass) SetAbstractProperty(val string) { - a.AbstractProperty = val + a.AbstractProperty = val } func (a *AbstractClass) SetPropFromInterface(val string) { - a.PropFromInterface = val + a.PropFromInterface = val } func (a *AbstractClass) AbstractMethod(name string) string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "AbstractClass", - Method: "AbstractMethod", - Args: []string{"string",}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "AbstractClass", + Method: "AbstractMethod", + Args: []string{"string",}, + }) + return "NOOP_RETURN_STRING" } func (a *AbstractClass) NonAbstractMethod() float64 { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "AbstractClass", - Method: "NonAbstractMethod", - Args: []string{}, - }) - return 0.0 + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "AbstractClass", + Method: "NonAbstractMethod", + Args: []string{}, + }) + return 0.0 } // Class interface type AbstractClassBaseIface interface { - GetAbstractProperty() string - SetAbstractProperty(val string) + GetAbstractProperty() string + SetAbstractProperty(val string) } // Struct proxy type AbstractClassBase struct { - AbstractProperty string + AbstractProperty string } func (a *AbstractClassBase) GetAbstractProperty() string { - return a.AbstractProperty + return a.AbstractProperty } func NewAbstractClassBase() AbstractClassBaseIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "AbstractClassBase", - Method: "Constructor", - Args: []string{}, - }) - return &AbstractClassBase{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "AbstractClassBase", + Method: "Constructor", + Args: []string{}, + }) + return &AbstractClassBase{} } func (a *AbstractClassBase) SetAbstractProperty(val string) { - a.AbstractProperty = val + a.AbstractProperty = val } // Class interface type AbstractClassReturnerIface interface { - GetReturnAbstractFromProperty() AbstractClassBase - SetReturnAbstractFromProperty(val AbstractClassBase) - GiveMeAbstract() AbstractClass - GiveMeInterface() IInterfaceImplementedByAbstractClass + GetReturnAbstractFromProperty() AbstractClassBase + SetReturnAbstractFromProperty(val AbstractClassBase) + GiveMeAbstract() AbstractClass + GiveMeInterface() IInterfaceImplementedByAbstractClass } // Struct proxy type AbstractClassReturner struct { - ReturnAbstractFromProperty AbstractClassBase + ReturnAbstractFromProperty AbstractClassBase } func (a *AbstractClassReturner) GetReturnAbstractFromProperty() AbstractClassBase { - return a.ReturnAbstractFromProperty + return a.ReturnAbstractFromProperty } func NewAbstractClassReturner() AbstractClassReturnerIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "AbstractClassReturner", - Method: "Constructor", - Args: []string{}, - }) - return &AbstractClassReturner{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "AbstractClassReturner", + Method: "Constructor", + Args: []string{}, + }) + return &AbstractClassReturner{} } func (a *AbstractClassReturner) SetReturnAbstractFromProperty(val AbstractClassBase) { - a.ReturnAbstractFromProperty = val + a.ReturnAbstractFromProperty = val } func (a *AbstractClassReturner) GiveMeAbstract() AbstractClass { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "AbstractClassReturner", - Method: "GiveMeAbstract", - Args: []string{}, - }) - return AbstractClass{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "AbstractClassReturner", + Method: "GiveMeAbstract", + Args: []string{}, + }) + return AbstractClass{} } func (a *AbstractClassReturner) GiveMeInterface() IInterfaceImplementedByAbstractClass { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "AbstractClassReturner", - Method: "GiveMeInterface", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "AbstractClassReturner", + Method: "GiveMeInterface", + Args: []string{}, + }) + return nil } // Class interface type AbstractSuiteIface interface { - GetProperty() string - SomeMethod(str string) string - WorkItAll(seed string) string + GetProperty() string + SomeMethod(str string) string + WorkItAll(seed string) string } // Ensures abstract members implementations correctly register overrides in various languages. // Struct proxy type AbstractSuite struct { - Property string + Property string } func (a *AbstractSuite) GetProperty() string { - return a.Property + return a.Property } func NewAbstractSuite() AbstractSuiteIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "AbstractSuite", - Method: "Constructor", - Args: []string{}, - }) - return &AbstractSuite{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "AbstractSuite", + Method: "Constructor", + Args: []string{}, + }) + return &AbstractSuite{} } func (a *AbstractSuite) SetProperty(val string) { - a.Property = val + a.Property = val } func (a *AbstractSuite) SomeMethod(str string) string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "AbstractSuite", - Method: "SomeMethod", - Args: []string{"string",}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "AbstractSuite", + Method: "SomeMethod", + Args: []string{"string",}, + }) + return "NOOP_RETURN_STRING" } func (a *AbstractSuite) WorkItAll(seed string) string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "AbstractSuite", - Method: "WorkItAll", - Args: []string{"string",}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "AbstractSuite", + Method: "WorkItAll", + Args: []string{"string",}, + }) + return "NOOP_RETURN_STRING" } // Class interface type AddIface interface { - scopejsiicalclib.IFriendly - GetValue() float64 - SetValue(val float64) - GetLhs() scopejsiicalclib.NumericValue - SetLhs(val scopejsiicalclib.NumericValue) - GetRhs() scopejsiicalclib.NumericValue - SetRhs(val scopejsiicalclib.NumericValue) - TypeName() jsii.Any - ToString() string - Hello() string + scopejsiicalclib.IFriendly + GetValue() float64 + SetValue(val float64) + GetLhs() scopejsiicalclib.NumericValue + SetLhs(val scopejsiicalclib.NumericValue) + GetRhs() scopejsiicalclib.NumericValue + SetRhs(val scopejsiicalclib.NumericValue) + TypeName() jsii.Any + ToString() string + Hello() string } // The "+" binary operation. // Struct proxy type Add struct { - // (deprecated) The value. - Value float64 - // Left-hand side operand. - Lhs scopejsiicalclib.NumericValue - // Right-hand side operand. - Rhs scopejsiicalclib.NumericValue + // (deprecated) The value. + Value float64 + // Left-hand side operand. + Lhs scopejsiicalclib.NumericValue + // Right-hand side operand. + Rhs scopejsiicalclib.NumericValue } func (a *Add) GetValue() float64 { - return a.Value + return a.Value } func (a *Add) GetLhs() scopejsiicalclib.NumericValue { - return a.Lhs + return a.Lhs } func (a *Add) GetRhs() scopejsiicalclib.NumericValue { - return a.Rhs + return a.Rhs } // Creates a BinaryOperation. func NewAdd(lhs scopejsiicalclib.NumericValue, rhs scopejsiicalclib.NumericValue) AddIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Add", - Method: "Constructor", - Args: []string{"@scope/jsii-calc-lib.NumericValue", "@scope/jsii-calc-lib.NumericValue",}, - }) - return &Add{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Add", + Method: "Constructor", + Args: []string{"@scope/jsii-calc-lib.NumericValue", "@scope/jsii-calc-lib.NumericValue",}, + }) + return &Add{} } func (a *Add) SetValue(val float64) { - a.Value = val + a.Value = val } func (a *Add) SetLhs(val scopejsiicalclib.NumericValue) { - a.Lhs = val + a.Lhs = val } func (a *Add) SetRhs(val scopejsiicalclib.NumericValue) { - a.Rhs = val + a.Rhs = val } func (a *Add) TypeName() jsii.Any { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Add", - Method: "TypeName", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Add", + Method: "TypeName", + Args: []string{}, + }) + return nil } func (a *Add) ToString() string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Add", - Method: "ToString", - Args: []string{}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Add", + Method: "ToString", + Args: []string{}, + }) + return "NOOP_RETURN_STRING" } func (a *Add) Hello() string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Add", - Method: "Hello", - Args: []string{}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Add", + Method: "Hello", + Args: []string{}, + }) + return "NOOP_RETURN_STRING" } // Class interface type AllTypesIface interface { - GetEnumPropertyValue() float64 - SetEnumPropertyValue(val float64) - GetAnyArrayProperty() []jsii.Any - SetAnyArrayProperty(val []jsii.Any) - GetAnyMapProperty() map[string]jsii.Any - SetAnyMapProperty(val map[string]jsii.Any) - GetAnyProperty() jsii.Any - SetAnyProperty(val jsii.Any) - GetArrayProperty() []string - SetArrayProperty(val []string) - GetBooleanProperty() bool - SetBooleanProperty(val bool) - GetDateProperty() string - SetDateProperty(val string) - GetEnumProperty() AllTypesEnum - SetEnumProperty(val AllTypesEnum) - GetJsonProperty() map[string]jsii.Any - SetJsonProperty(val map[string]jsii.Any) - GetMapProperty() map[string]scopejsiicalclib.Number - SetMapProperty(val map[string]scopejsiicalclib.Number) - GetNumberProperty() float64 - SetNumberProperty(val float64) - GetStringProperty() string - SetStringProperty(val string) - GetUnionArrayProperty() []jsii.Any - SetUnionArrayProperty(val []jsii.Any) - GetUnionMapProperty() map[string]jsii.Any - SetUnionMapProperty(val map[string]jsii.Any) - GetUnionProperty() jsii.Any - SetUnionProperty(val jsii.Any) - GetUnknownArrayProperty() []jsii.Any - SetUnknownArrayProperty(val []jsii.Any) - GetUnknownMapProperty() map[string]jsii.Any - SetUnknownMapProperty(val map[string]jsii.Any) - GetUnknownProperty() jsii.Any - SetUnknownProperty(val jsii.Any) - GetOptionalEnumValue() StringEnum - SetOptionalEnumValue(val StringEnum) - AnyIn(inp jsii.Any) - AnyOut() jsii.Any - EnumMethod(value StringEnum) StringEnum + GetEnumPropertyValue() float64 + SetEnumPropertyValue(val float64) + GetAnyArrayProperty() []jsii.Any + SetAnyArrayProperty(val []jsii.Any) + GetAnyMapProperty() map[string]jsii.Any + SetAnyMapProperty(val map[string]jsii.Any) + GetAnyProperty() jsii.Any + SetAnyProperty(val jsii.Any) + GetArrayProperty() []string + SetArrayProperty(val []string) + GetBooleanProperty() bool + SetBooleanProperty(val bool) + GetDateProperty() string + SetDateProperty(val string) + GetEnumProperty() AllTypesEnum + SetEnumProperty(val AllTypesEnum) + GetJsonProperty() map[string]jsii.Any + SetJsonProperty(val map[string]jsii.Any) + GetMapProperty() map[string]scopejsiicalclib.Number + SetMapProperty(val map[string]scopejsiicalclib.Number) + GetNumberProperty() float64 + SetNumberProperty(val float64) + GetStringProperty() string + SetStringProperty(val string) + GetUnionArrayProperty() []jsii.Any + SetUnionArrayProperty(val []jsii.Any) + GetUnionMapProperty() map[string]jsii.Any + SetUnionMapProperty(val map[string]jsii.Any) + GetUnionProperty() jsii.Any + SetUnionProperty(val jsii.Any) + GetUnknownArrayProperty() []jsii.Any + SetUnknownArrayProperty(val []jsii.Any) + GetUnknownMapProperty() map[string]jsii.Any + SetUnknownMapProperty(val map[string]jsii.Any) + GetUnknownProperty() jsii.Any + SetUnknownProperty(val jsii.Any) + GetOptionalEnumValue() StringEnum + SetOptionalEnumValue(val StringEnum) + AnyIn(inp jsii.Any) + AnyOut() jsii.Any + EnumMethod(value StringEnum) StringEnum } // This class includes property for all types supported by jsii. @@ -1270,229 +1270,229 @@ type AllTypesIface interface { // that the value set is of the expected type and throw otherwise. // Struct proxy type AllTypes struct { - EnumPropertyValue float64 - AnyArrayProperty []jsii.Any - AnyMapProperty map[string]jsii.Any - AnyProperty jsii.Any - ArrayProperty []string - BooleanProperty bool - DateProperty string - EnumProperty AllTypesEnum - JsonProperty map[string]jsii.Any - MapProperty map[string]scopejsiicalclib.Number - NumberProperty float64 - StringProperty string - UnionArrayProperty []jsii.Any - UnionMapProperty map[string]jsii.Any - UnionProperty jsii.Any - UnknownArrayProperty []jsii.Any - UnknownMapProperty map[string]jsii.Any - UnknownProperty jsii.Any - OptionalEnumValue StringEnum + EnumPropertyValue float64 + AnyArrayProperty []jsii.Any + AnyMapProperty map[string]jsii.Any + AnyProperty jsii.Any + ArrayProperty []string + BooleanProperty bool + DateProperty string + EnumProperty AllTypesEnum + JsonProperty map[string]jsii.Any + MapProperty map[string]scopejsiicalclib.Number + NumberProperty float64 + StringProperty string + UnionArrayProperty []jsii.Any + UnionMapProperty map[string]jsii.Any + UnionProperty jsii.Any + UnknownArrayProperty []jsii.Any + UnknownMapProperty map[string]jsii.Any + UnknownProperty jsii.Any + OptionalEnumValue StringEnum } func (a *AllTypes) GetEnumPropertyValue() float64 { - return a.EnumPropertyValue + return a.EnumPropertyValue } func (a *AllTypes) GetAnyArrayProperty() []jsii.Any { - return a.AnyArrayProperty + return a.AnyArrayProperty } func (a *AllTypes) GetAnyMapProperty() map[string]jsii.Any { - return a.AnyMapProperty + return a.AnyMapProperty } func (a *AllTypes) GetAnyProperty() jsii.Any { - return a.AnyProperty + return a.AnyProperty } func (a *AllTypes) GetArrayProperty() []string { - return a.ArrayProperty + return a.ArrayProperty } func (a *AllTypes) GetBooleanProperty() bool { - return a.BooleanProperty + return a.BooleanProperty } func (a *AllTypes) GetDateProperty() string { - return a.DateProperty + return a.DateProperty } func (a *AllTypes) GetEnumProperty() AllTypesEnum { - return a.EnumProperty + return a.EnumProperty } func (a *AllTypes) GetJsonProperty() map[string]jsii.Any { - return a.JsonProperty + return a.JsonProperty } func (a *AllTypes) GetMapProperty() map[string]scopejsiicalclib.Number { - return a.MapProperty + return a.MapProperty } func (a *AllTypes) GetNumberProperty() float64 { - return a.NumberProperty + return a.NumberProperty } func (a *AllTypes) GetStringProperty() string { - return a.StringProperty + return a.StringProperty } func (a *AllTypes) GetUnionArrayProperty() []jsii.Any { - return a.UnionArrayProperty + return a.UnionArrayProperty } func (a *AllTypes) GetUnionMapProperty() map[string]jsii.Any { - return a.UnionMapProperty + return a.UnionMapProperty } func (a *AllTypes) GetUnionProperty() jsii.Any { - return a.UnionProperty + return a.UnionProperty } func (a *AllTypes) GetUnknownArrayProperty() []jsii.Any { - return a.UnknownArrayProperty + return a.UnknownArrayProperty } func (a *AllTypes) GetUnknownMapProperty() map[string]jsii.Any { - return a.UnknownMapProperty + return a.UnknownMapProperty } func (a *AllTypes) GetUnknownProperty() jsii.Any { - return a.UnknownProperty + return a.UnknownProperty } func (a *AllTypes) GetOptionalEnumValue() StringEnum { - return a.OptionalEnumValue + return a.OptionalEnumValue } func NewAllTypes() AllTypesIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "AllTypes", - Method: "Constructor", - Args: []string{}, - }) - return &AllTypes{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "AllTypes", + Method: "Constructor", + Args: []string{}, + }) + return &AllTypes{} } func (a *AllTypes) SetEnumPropertyValue(val float64) { - a.EnumPropertyValue = val + a.EnumPropertyValue = val } func (a *AllTypes) SetAnyArrayProperty(val []jsii.Any) { - a.AnyArrayProperty = val + a.AnyArrayProperty = val } func (a *AllTypes) SetAnyMapProperty(val map[string]jsii.Any) { - a.AnyMapProperty = val + a.AnyMapProperty = val } func (a *AllTypes) SetAnyProperty(val jsii.Any) { - a.AnyProperty = val + a.AnyProperty = val } func (a *AllTypes) SetArrayProperty(val []string) { - a.ArrayProperty = val + a.ArrayProperty = val } func (a *AllTypes) SetBooleanProperty(val bool) { - a.BooleanProperty = val + a.BooleanProperty = val } func (a *AllTypes) SetDateProperty(val string) { - a.DateProperty = val + a.DateProperty = val } func (a *AllTypes) SetEnumProperty(val AllTypesEnum) { - a.EnumProperty = val + a.EnumProperty = val } func (a *AllTypes) SetJsonProperty(val map[string]jsii.Any) { - a.JsonProperty = val + a.JsonProperty = val } func (a *AllTypes) SetMapProperty(val map[string]scopejsiicalclib.Number) { - a.MapProperty = val + a.MapProperty = val } func (a *AllTypes) SetNumberProperty(val float64) { - a.NumberProperty = val + a.NumberProperty = val } func (a *AllTypes) SetStringProperty(val string) { - a.StringProperty = val + a.StringProperty = val } func (a *AllTypes) SetUnionArrayProperty(val []jsii.Any) { - a.UnionArrayProperty = val + a.UnionArrayProperty = val } func (a *AllTypes) SetUnionMapProperty(val map[string]jsii.Any) { - a.UnionMapProperty = val + a.UnionMapProperty = val } func (a *AllTypes) SetUnionProperty(val jsii.Any) { - a.UnionProperty = val + a.UnionProperty = val } func (a *AllTypes) SetUnknownArrayProperty(val []jsii.Any) { - a.UnknownArrayProperty = val + a.UnknownArrayProperty = val } func (a *AllTypes) SetUnknownMapProperty(val map[string]jsii.Any) { - a.UnknownMapProperty = val + a.UnknownMapProperty = val } func (a *AllTypes) SetUnknownProperty(val jsii.Any) { - a.UnknownProperty = val + a.UnknownProperty = val } func (a *AllTypes) SetOptionalEnumValue(val StringEnum) { - a.OptionalEnumValue = val + a.OptionalEnumValue = val } func (a *AllTypes) AnyIn(inp jsii.Any) { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "AllTypes", - Method: "AnyIn", - Args: []string{"any",}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "AllTypes", + Method: "AnyIn", + Args: []string{"any",}, + }) } func (a *AllTypes) AnyOut() jsii.Any { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "AllTypes", - Method: "AnyOut", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "AllTypes", + Method: "AnyOut", + Args: []string{}, + }) + return nil } func (a *AllTypes) EnumMethod(value StringEnum) StringEnum { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "AllTypes", - Method: "EnumMethod", - Args: []string{"jsii-calc.StringEnum",}, - }) - return "ENUM_DUMMY" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "AllTypes", + Method: "EnumMethod", + Args: []string{"jsii-calc.StringEnum",}, + }) + return "ENUM_DUMMY" } type AllTypesEnum string const ( - AllTypesEnumMyEnumValue AllTypesEnum = "MY_ENUM_VALUE" - AllTypesEnumYourEnumValue AllTypesEnum = "YOUR_ENUM_VALUE" - AllTypesEnumThisIsGreat AllTypesEnum = "THIS_IS_GREAT" + AllTypesEnumMyEnumValue AllTypesEnum = "MY_ENUM_VALUE" + AllTypesEnumYourEnumValue AllTypesEnum = "YOUR_ENUM_VALUE" + AllTypesEnumThisIsGreat AllTypesEnum = "THIS_IS_GREAT" ) // Class interface type AllowedMethodNamesIface interface { - GetBar(_p1 string, _p2 float64) - GetFoo(withParam string) string - SetBar(_x string, _y float64, _z bool) - SetFoo(_x string, _y float64) + GetBar(_p1 string, _p2 float64) + GetFoo(withParam string) string + SetBar(_x string, _y float64, _z bool) + SetFoo(_x string, _y float64) } // Struct proxy @@ -1500,92 +1500,92 @@ type AllowedMethodNames struct { } func NewAllowedMethodNames() AllowedMethodNamesIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "AllowedMethodNames", - Method: "Constructor", - Args: []string{}, - }) - return &AllowedMethodNames{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "AllowedMethodNames", + Method: "Constructor", + Args: []string{}, + }) + return &AllowedMethodNames{} } func (a *AllowedMethodNames) GetBar(_p1 string, _p2 float64) { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "AllowedMethodNames", - Method: "GetBar", - Args: []string{"string", "number",}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "AllowedMethodNames", + Method: "GetBar", + Args: []string{"string", "number",}, + }) } func (a *AllowedMethodNames) GetFoo(withParam string) string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "AllowedMethodNames", - Method: "GetFoo", - Args: []string{"string",}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "AllowedMethodNames", + Method: "GetFoo", + Args: []string{"string",}, + }) + return "NOOP_RETURN_STRING" } func (a *AllowedMethodNames) SetBar(_x string, _y float64, _z bool) { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "AllowedMethodNames", - Method: "SetBar", - Args: []string{"string", "number", "boolean",}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "AllowedMethodNames", + Method: "SetBar", + Args: []string{"string", "number", "boolean",}, + }) } func (a *AllowedMethodNames) SetFoo(_x string, _y float64) { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "AllowedMethodNames", - Method: "SetFoo", - Args: []string{"string", "number",}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "AllowedMethodNames", + Method: "SetFoo", + Args: []string{"string", "number",}, + }) } // Class interface type AmbiguousParametersIface interface { - GetProps() StructParameterType - SetProps(val StructParameterType) - GetScope() Bell - SetScope(val Bell) + GetProps() StructParameterType + SetProps(val StructParameterType) + GetScope() Bell + SetScope(val Bell) } // Struct proxy type AmbiguousParameters struct { - Props StructParameterType - Scope Bell + Props StructParameterType + Scope Bell } func (a *AmbiguousParameters) GetProps() StructParameterType { - return a.Props + return a.Props } func (a *AmbiguousParameters) GetScope() Bell { - return a.Scope + return a.Scope } func NewAmbiguousParameters(scope Bell, props StructParameterType) AmbiguousParametersIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "AmbiguousParameters", - Method: "Constructor", - Args: []string{"jsii-calc.Bell", "jsii-calc.StructParameterType",}, - }) - return &AmbiguousParameters{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "AmbiguousParameters", + Method: "Constructor", + Args: []string{"jsii-calc.Bell", "jsii-calc.StructParameterType",}, + }) + return &AmbiguousParameters{} } func (a *AmbiguousParameters) SetProps(val StructParameterType) { - a.Props = val + a.Props = val } func (a *AmbiguousParameters) SetScope(val Bell) { - a.Scope = val + a.Scope = val } // Class interface type AnonymousImplementationProviderIface interface { - IAnonymousImplementationProvider - ProvideAsClass() Implementation - ProvideAsInterface() IAnonymouslyImplementMe + IAnonymousImplementationProvider + ProvideAsClass() Implementation + ProvideAsInterface() IAnonymouslyImplementMe } // Struct proxy @@ -1593,40 +1593,40 @@ type AnonymousImplementationProvider struct { } func NewAnonymousImplementationProvider() AnonymousImplementationProviderIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "AnonymousImplementationProvider", - Method: "Constructor", - Args: []string{}, - }) - return &AnonymousImplementationProvider{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "AnonymousImplementationProvider", + Method: "Constructor", + Args: []string{}, + }) + return &AnonymousImplementationProvider{} } func (a *AnonymousImplementationProvider) ProvideAsClass() Implementation { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "AnonymousImplementationProvider", - Method: "ProvideAsClass", - Args: []string{}, - }) - return Implementation{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "AnonymousImplementationProvider", + Method: "ProvideAsClass", + Args: []string{}, + }) + return Implementation{} } func (a *AnonymousImplementationProvider) ProvideAsInterface() IAnonymouslyImplementMe { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "AnonymousImplementationProvider", - Method: "ProvideAsInterface", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "AnonymousImplementationProvider", + Method: "ProvideAsInterface", + Args: []string{}, + }) + return nil } // Class interface type AsyncVirtualMethodsIface interface { - CallMe() float64 - CallMe2() float64 - CallMeDoublePromise() float64 - DontOverrideMe() float64 - OverrideMe(mult float64) float64 - OverrideMeToo() float64 + CallMe() float64 + CallMe2() float64 + CallMeDoublePromise() float64 + DontOverrideMe() float64 + OverrideMe(mult float64) float64 + OverrideMeToo() float64 } // Struct proxy @@ -1634,72 +1634,72 @@ type AsyncVirtualMethods struct { } func NewAsyncVirtualMethods() AsyncVirtualMethodsIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "AsyncVirtualMethods", - Method: "Constructor", - Args: []string{}, - }) - return &AsyncVirtualMethods{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "AsyncVirtualMethods", + Method: "Constructor", + Args: []string{}, + }) + return &AsyncVirtualMethods{} } func (a *AsyncVirtualMethods) CallMe() float64 { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "AsyncVirtualMethods", - Method: "CallMe", - Args: []string{}, - }) - return 0.0 + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "AsyncVirtualMethods", + Method: "CallMe", + Args: []string{}, + }) + return 0.0 } func (a *AsyncVirtualMethods) CallMe2() float64 { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "AsyncVirtualMethods", - Method: "CallMe2", - Args: []string{}, - }) - return 0.0 + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "AsyncVirtualMethods", + Method: "CallMe2", + Args: []string{}, + }) + return 0.0 } func (a *AsyncVirtualMethods) CallMeDoublePromise() float64 { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "AsyncVirtualMethods", - Method: "CallMeDoublePromise", - Args: []string{}, - }) - return 0.0 + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "AsyncVirtualMethods", + Method: "CallMeDoublePromise", + Args: []string{}, + }) + return 0.0 } func (a *AsyncVirtualMethods) DontOverrideMe() float64 { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "AsyncVirtualMethods", - Method: "DontOverrideMe", - Args: []string{}, - }) - return 0.0 + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "AsyncVirtualMethods", + Method: "DontOverrideMe", + Args: []string{}, + }) + return 0.0 } func (a *AsyncVirtualMethods) OverrideMe(mult float64) float64 { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "AsyncVirtualMethods", - Method: "OverrideMe", - Args: []string{"number",}, - }) - return 0.0 + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "AsyncVirtualMethods", + Method: "OverrideMe", + Args: []string{"number",}, + }) + return 0.0 } func (a *AsyncVirtualMethods) OverrideMeToo() float64 { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "AsyncVirtualMethods", - Method: "OverrideMeToo", - Args: []string{}, - }) - return 0.0 + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "AsyncVirtualMethods", + Method: "OverrideMeToo", + Args: []string{}, + }) + return 0.0 } // Class interface type AugmentableClassIface interface { - MethodOne() - MethodTwo() + MethodOne() + MethodTwo() } // Struct proxy @@ -1707,28 +1707,28 @@ type AugmentableClass struct { } func NewAugmentableClass() AugmentableClassIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "AugmentableClass", - Method: "Constructor", - Args: []string{}, - }) - return &AugmentableClass{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "AugmentableClass", + Method: "Constructor", + Args: []string{}, + }) + return &AugmentableClass{} } func (a *AugmentableClass) MethodOne() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "AugmentableClass", - Method: "MethodOne", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "AugmentableClass", + Method: "MethodOne", + Args: []string{}, + }) } func (a *AugmentableClass) MethodTwo() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "AugmentableClass", - Method: "MethodTwo", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "AugmentableClass", + Method: "MethodTwo", + Args: []string{}, + }) } // Class interface @@ -1740,145 +1740,145 @@ type BaseJsii976 struct { } func NewBaseJsii976() BaseJsii976Iface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "BaseJsii976", - Method: "Constructor", - Args: []string{}, - }) - return &BaseJsii976{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "BaseJsii976", + Method: "Constructor", + Args: []string{}, + }) + return &BaseJsii976{} } // Class interface type BellIface interface { - IBell - GetRung() bool - SetRung(val bool) - Ring() + IBell + GetRung() bool + SetRung(val bool) + Ring() } // Struct proxy type Bell struct { - Rung bool + Rung bool } func (b *Bell) GetRung() bool { - return b.Rung + return b.Rung } func NewBell() BellIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Bell", - Method: "Constructor", - Args: []string{}, - }) - return &Bell{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Bell", + Method: "Constructor", + Args: []string{}, + }) + return &Bell{} } func (b *Bell) SetRung(val bool) { - b.Rung = val + b.Rung = val } func (b *Bell) Ring() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Bell", - Method: "Ring", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Bell", + Method: "Ring", + Args: []string{}, + }) } // Class interface type BinaryOperationIface interface { - scopejsiicalclib.IFriendly - GetValue() float64 - SetValue(val float64) - GetLhs() scopejsiicalclib.NumericValue - SetLhs(val scopejsiicalclib.NumericValue) - GetRhs() scopejsiicalclib.NumericValue - SetRhs(val scopejsiicalclib.NumericValue) - TypeName() jsii.Any - ToString() string - Hello() string + scopejsiicalclib.IFriendly + GetValue() float64 + SetValue(val float64) + GetLhs() scopejsiicalclib.NumericValue + SetLhs(val scopejsiicalclib.NumericValue) + GetRhs() scopejsiicalclib.NumericValue + SetRhs(val scopejsiicalclib.NumericValue) + TypeName() jsii.Any + ToString() string + Hello() string } // Represents an operation with two operands. // Struct proxy type BinaryOperation struct { - // The value. - // Deprecated. - Value float64 - // Left-hand side operand. - Lhs scopejsiicalclib.NumericValue - // Right-hand side operand. - Rhs scopejsiicalclib.NumericValue + // The value. + // Deprecated. + Value float64 + // Left-hand side operand. + Lhs scopejsiicalclib.NumericValue + // Right-hand side operand. + Rhs scopejsiicalclib.NumericValue } func (b *BinaryOperation) GetValue() float64 { - return b.Value + return b.Value } func (b *BinaryOperation) GetLhs() scopejsiicalclib.NumericValue { - return b.Lhs + return b.Lhs } func (b *BinaryOperation) GetRhs() scopejsiicalclib.NumericValue { - return b.Rhs + return b.Rhs } // Creates a BinaryOperation. func NewBinaryOperation(lhs scopejsiicalclib.NumericValue, rhs scopejsiicalclib.NumericValue) BinaryOperationIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "BinaryOperation", - Method: "Constructor", - Args: []string{"@scope/jsii-calc-lib.NumericValue", "@scope/jsii-calc-lib.NumericValue",}, - }) - return &BinaryOperation{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "BinaryOperation", + Method: "Constructor", + Args: []string{"@scope/jsii-calc-lib.NumericValue", "@scope/jsii-calc-lib.NumericValue",}, + }) + return &BinaryOperation{} } func (b *BinaryOperation) SetValue(val float64) { - b.Value = val + b.Value = val } func (b *BinaryOperation) SetLhs(val scopejsiicalclib.NumericValue) { - b.Lhs = val + b.Lhs = val } func (b *BinaryOperation) SetRhs(val scopejsiicalclib.NumericValue) { - b.Rhs = val + b.Rhs = val } func (b *BinaryOperation) TypeName() jsii.Any { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "BinaryOperation", - Method: "TypeName", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "BinaryOperation", + Method: "TypeName", + Args: []string{}, + }) + return nil } func (b *BinaryOperation) ToString() string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "BinaryOperation", - Method: "ToString", - Args: []string{}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "BinaryOperation", + Method: "ToString", + Args: []string{}, + }) + return "NOOP_RETURN_STRING" } func (b *BinaryOperation) Hello() string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "BinaryOperation", - Method: "Hello", - Args: []string{}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "BinaryOperation", + Method: "Hello", + Args: []string{}, + }) + return "NOOP_RETURN_STRING" } // Class interface type BurriedAnonymousObjectIface interface { - Check() bool - GiveItBack(value jsii.Any) jsii.Any + Check() bool + GiveItBack(value jsii.Any) jsii.Any } // See https://github.com/aws/aws-cdk/issues/7977. @@ -1887,61 +1887,61 @@ type BurriedAnonymousObject struct { } func NewBurriedAnonymousObject() BurriedAnonymousObjectIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "BurriedAnonymousObject", - Method: "Constructor", - Args: []string{}, - }) - return &BurriedAnonymousObject{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "BurriedAnonymousObject", + Method: "Constructor", + Args: []string{}, + }) + return &BurriedAnonymousObject{} } func (b *BurriedAnonymousObject) Check() bool { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "BurriedAnonymousObject", - Method: "Check", - Args: []string{}, - }) - return true + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "BurriedAnonymousObject", + Method: "Check", + Args: []string{}, + }) + return true } func (b *BurriedAnonymousObject) GiveItBack(value jsii.Any) jsii.Any { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "BurriedAnonymousObject", - Method: "GiveItBack", - Args: []string{"any",}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "BurriedAnonymousObject", + Method: "GiveItBack", + Args: []string{"any",}, + }) + return nil } // Class interface type CalculatorIface interface { - GetValue() float64 - SetValue(val float64) - GetExpression() scopejsiicalclib.NumericValue - SetExpression(val scopejsiicalclib.NumericValue) - GetDecorationPostfixes() []string - SetDecorationPostfixes(val []string) - GetDecorationPrefixes() []string - SetDecorationPrefixes(val []string) - GetStringStyle() composition.CompositionStringStyle - SetStringStyle(val composition.CompositionStringStyle) - GetOperationsLog() []scopejsiicalclib.NumericValue - SetOperationsLog(val []scopejsiicalclib.NumericValue) - GetOperationsMap() map[string][]scopejsiicalclib.NumericValue - SetOperationsMap(val map[string][]scopejsiicalclib.NumericValue) - GetCurr() scopejsiicalclib.NumericValue - SetCurr(val scopejsiicalclib.NumericValue) - GetMaxValue() float64 - SetMaxValue(val float64) - GetUnionProperty() jsii.Any - SetUnionProperty(val jsii.Any) - TypeName() jsii.Any - ToString() string - Add(value float64) - Mul(value float64) - Neg() - Pow(value float64) - ReadUnionValue() float64 + GetValue() float64 + SetValue(val float64) + GetExpression() scopejsiicalclib.NumericValue + SetExpression(val scopejsiicalclib.NumericValue) + GetDecorationPostfixes() []string + SetDecorationPostfixes(val []string) + GetDecorationPrefixes() []string + SetDecorationPrefixes(val []string) + GetStringStyle() composition.CompositionStringStyle + SetStringStyle(val composition.CompositionStringStyle) + GetOperationsLog() []scopejsiicalclib.NumericValue + SetOperationsLog(val []scopejsiicalclib.NumericValue) + GetOperationsMap() map[string][]scopejsiicalclib.NumericValue + SetOperationsMap(val map[string][]scopejsiicalclib.NumericValue) + GetCurr() scopejsiicalclib.NumericValue + SetCurr(val scopejsiicalclib.NumericValue) + GetMaxValue() float64 + SetMaxValue(val float64) + GetUnionProperty() jsii.Any + SetUnionProperty(val jsii.Any) + TypeName() jsii.Any + ToString() string + Add(value float64) + Mul(value float64) + Neg() + Pow(value float64) + ReadUnionValue() float64 } // A calculator which maintains a current value and allows adding operations. @@ -1961,431 +1961,431 @@ type CalculatorIface interface { // // Struct proxy type Calculator struct { - // (deprecated) The value. - Value float64 - // Returns the expression. - Expression scopejsiicalclib.NumericValue - // A set of postfixes to include in a decorated .toString(). - DecorationPostfixes []string - // A set of prefixes to include in a decorated .toString(). - DecorationPrefixes []string - // The .toString() style. - StringStyle composition.CompositionStringStyle - // A log of all operations. - OperationsLog []scopejsiicalclib.NumericValue - // A map of per operation name of all operations performed. - OperationsMap map[string][]scopejsiicalclib.NumericValue - // The current value. - Curr scopejsiicalclib.NumericValue - // The maximum value allows in this calculator. - MaxValue float64 - // Example of a property that accepts a union of types. - UnionProperty jsii.Any + // (deprecated) The value. + Value float64 + // Returns the expression. + Expression scopejsiicalclib.NumericValue + // A set of postfixes to include in a decorated .toString(). + DecorationPostfixes []string + // A set of prefixes to include in a decorated .toString(). + DecorationPrefixes []string + // The .toString() style. + StringStyle composition.CompositionStringStyle + // A log of all operations. + OperationsLog []scopejsiicalclib.NumericValue + // A map of per operation name of all operations performed. + OperationsMap map[string][]scopejsiicalclib.NumericValue + // The current value. + Curr scopejsiicalclib.NumericValue + // The maximum value allows in this calculator. + MaxValue float64 + // Example of a property that accepts a union of types. + UnionProperty jsii.Any } func (c *Calculator) GetValue() float64 { - return c.Value + return c.Value } func (c *Calculator) GetExpression() scopejsiicalclib.NumericValue { - return c.Expression + return c.Expression } func (c *Calculator) GetDecorationPostfixes() []string { - return c.DecorationPostfixes + return c.DecorationPostfixes } func (c *Calculator) GetDecorationPrefixes() []string { - return c.DecorationPrefixes + return c.DecorationPrefixes } func (c *Calculator) GetStringStyle() composition.CompositionStringStyle { - return c.StringStyle + return c.StringStyle } func (c *Calculator) GetOperationsLog() []scopejsiicalclib.NumericValue { - return c.OperationsLog + return c.OperationsLog } func (c *Calculator) GetOperationsMap() map[string][]scopejsiicalclib.NumericValue { - return c.OperationsMap + return c.OperationsMap } func (c *Calculator) GetCurr() scopejsiicalclib.NumericValue { - return c.Curr + return c.Curr } func (c *Calculator) GetMaxValue() float64 { - return c.MaxValue + return c.MaxValue } func (c *Calculator) GetUnionProperty() jsii.Any { - return c.UnionProperty + return c.UnionProperty } // Creates a Calculator object. func NewCalculator(props CalculatorProps) CalculatorIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Calculator", - Method: "Constructor", - Args: []string{"jsii-calc.CalculatorProps",}, - }) - return &Calculator{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Calculator", + Method: "Constructor", + Args: []string{"jsii-calc.CalculatorProps",}, + }) + return &Calculator{} } func (c *Calculator) SetValue(val float64) { - c.Value = val + c.Value = val } func (c *Calculator) SetExpression(val scopejsiicalclib.NumericValue) { - c.Expression = val + c.Expression = val } func (c *Calculator) SetDecorationPostfixes(val []string) { - c.DecorationPostfixes = val + c.DecorationPostfixes = val } func (c *Calculator) SetDecorationPrefixes(val []string) { - c.DecorationPrefixes = val + c.DecorationPrefixes = val } func (c *Calculator) SetStringStyle(val composition.CompositionStringStyle) { - c.StringStyle = val + c.StringStyle = val } func (c *Calculator) SetOperationsLog(val []scopejsiicalclib.NumericValue) { - c.OperationsLog = val + c.OperationsLog = val } func (c *Calculator) SetOperationsMap(val map[string][]scopejsiicalclib.NumericValue) { - c.OperationsMap = val + c.OperationsMap = val } func (c *Calculator) SetCurr(val scopejsiicalclib.NumericValue) { - c.Curr = val + c.Curr = val } func (c *Calculator) SetMaxValue(val float64) { - c.MaxValue = val + c.MaxValue = val } func (c *Calculator) SetUnionProperty(val jsii.Any) { - c.UnionProperty = val + c.UnionProperty = val } func (c *Calculator) TypeName() jsii.Any { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Calculator", - Method: "TypeName", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Calculator", + Method: "TypeName", + Args: []string{}, + }) + return nil } func (c *Calculator) ToString() string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Calculator", - Method: "ToString", - Args: []string{}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Calculator", + Method: "ToString", + Args: []string{}, + }) + return "NOOP_RETURN_STRING" } func (c *Calculator) Add(value float64) { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Calculator", - Method: "Add", - Args: []string{"number",}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Calculator", + Method: "Add", + Args: []string{"number",}, + }) } func (c *Calculator) Mul(value float64) { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Calculator", - Method: "Mul", - Args: []string{"number",}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Calculator", + Method: "Mul", + Args: []string{"number",}, + }) } func (c *Calculator) Neg() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Calculator", - Method: "Neg", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Calculator", + Method: "Neg", + Args: []string{}, + }) } func (c *Calculator) Pow(value float64) { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Calculator", - Method: "Pow", - Args: []string{"number",}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Calculator", + Method: "Pow", + Args: []string{"number",}, + }) } func (c *Calculator) ReadUnionValue() float64 { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Calculator", - Method: "ReadUnionValue", - Args: []string{}, - }) - return 0.0 + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Calculator", + Method: "ReadUnionValue", + Args: []string{}, + }) + return 0.0 } // CalculatorPropsIface is the public interface for the custom type CalculatorProps type CalculatorPropsIface interface { - GetInitialValue() float64 - GetMaximumValue() float64 + GetInitialValue() float64 + GetMaximumValue() float64 } // Properties for Calculator. // Struct proxy type CalculatorProps struct { - // The initial value of the calculator. - // - // NOTE: Any number works here, it's fine. - InitialValue float64 - // The maximum value the calculator can store. - MaximumValue float64 + // The initial value of the calculator. + // + // NOTE: Any number works here, it's fine. + InitialValue float64 + // The maximum value the calculator can store. + MaximumValue float64 } func (c *CalculatorProps) GetInitialValue() float64 { - return c.InitialValue + return c.InitialValue } func (c *CalculatorProps) GetMaximumValue() float64 { - return c.MaximumValue + return c.MaximumValue } // ChildStruct982Iface is the public interface for the custom type ChildStruct982 type ChildStruct982Iface interface { - GetFoo() string - GetBar() float64 + GetFoo() string + GetBar() float64 } // Struct proxy type ChildStruct982 struct { - Foo string - Bar float64 + Foo string + Bar float64 } func (c *ChildStruct982) GetFoo() string { - return c.Foo + return c.Foo } func (c *ChildStruct982) GetBar() float64 { - return c.Bar + return c.Bar } // Class interface type ClassThatImplementsTheInternalInterfaceIface interface { - INonInternalInterface - IAnotherPublicInterface - GetA() string - SetA(val string) - GetB() string - SetB(val string) - GetC() string - SetC(val string) - GetD() string - SetD(val string) + INonInternalInterface + IAnotherPublicInterface + GetA() string + SetA(val string) + GetB() string + SetB(val string) + GetC() string + SetC(val string) + GetD() string + SetD(val string) } // Struct proxy type ClassThatImplementsTheInternalInterface struct { - A string - B string - C string - D string + A string + B string + C string + D string } func (c *ClassThatImplementsTheInternalInterface) GetA() string { - return c.A + return c.A } func (c *ClassThatImplementsTheInternalInterface) GetB() string { - return c.B + return c.B } func (c *ClassThatImplementsTheInternalInterface) GetC() string { - return c.C + return c.C } func (c *ClassThatImplementsTheInternalInterface) GetD() string { - return c.D + return c.D } func NewClassThatImplementsTheInternalInterface() ClassThatImplementsTheInternalInterfaceIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ClassThatImplementsTheInternalInterface", - Method: "Constructor", - Args: []string{}, - }) - return &ClassThatImplementsTheInternalInterface{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ClassThatImplementsTheInternalInterface", + Method: "Constructor", + Args: []string{}, + }) + return &ClassThatImplementsTheInternalInterface{} } func (c *ClassThatImplementsTheInternalInterface) SetA(val string) { - c.A = val + c.A = val } func (c *ClassThatImplementsTheInternalInterface) SetB(val string) { - c.B = val + c.B = val } func (c *ClassThatImplementsTheInternalInterface) SetC(val string) { - c.C = val + c.C = val } func (c *ClassThatImplementsTheInternalInterface) SetD(val string) { - c.D = val + c.D = val } // Class interface type ClassThatImplementsThePrivateInterfaceIface interface { - INonInternalInterface - IAnotherPublicInterface - GetA() string - SetA(val string) - GetB() string - SetB(val string) - GetC() string - SetC(val string) - GetE() string - SetE(val string) + INonInternalInterface + IAnotherPublicInterface + GetA() string + SetA(val string) + GetB() string + SetB(val string) + GetC() string + SetC(val string) + GetE() string + SetE(val string) } // Struct proxy type ClassThatImplementsThePrivateInterface struct { - A string - B string - C string - E string + A string + B string + C string + E string } func (c *ClassThatImplementsThePrivateInterface) GetA() string { - return c.A + return c.A } func (c *ClassThatImplementsThePrivateInterface) GetB() string { - return c.B + return c.B } func (c *ClassThatImplementsThePrivateInterface) GetC() string { - return c.C + return c.C } func (c *ClassThatImplementsThePrivateInterface) GetE() string { - return c.E + return c.E } func NewClassThatImplementsThePrivateInterface() ClassThatImplementsThePrivateInterfaceIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ClassThatImplementsThePrivateInterface", - Method: "Constructor", - Args: []string{}, - }) - return &ClassThatImplementsThePrivateInterface{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ClassThatImplementsThePrivateInterface", + Method: "Constructor", + Args: []string{}, + }) + return &ClassThatImplementsThePrivateInterface{} } func (c *ClassThatImplementsThePrivateInterface) SetA(val string) { - c.A = val + c.A = val } func (c *ClassThatImplementsThePrivateInterface) SetB(val string) { - c.B = val + c.B = val } func (c *ClassThatImplementsThePrivateInterface) SetC(val string) { - c.C = val + c.C = val } func (c *ClassThatImplementsThePrivateInterface) SetE(val string) { - c.E = val + c.E = val } // Class interface type ClassWithCollectionsIface interface { - GetStaticArray() []string - SetStaticArray(val []string) - GetStaticMap() map[string]string - SetStaticMap(val map[string]string) - GetArray() []string - SetArray(val []string) - GetMap() map[string]string - SetMap(val map[string]string) + GetStaticArray() []string + SetStaticArray(val []string) + GetStaticMap() map[string]string + SetStaticMap(val map[string]string) + GetArray() []string + SetArray(val []string) + GetMap() map[string]string + SetMap(val map[string]string) } // Struct proxy type ClassWithCollections struct { - StaticArray []string - StaticMap map[string]string - Array []string - Map map[string]string + StaticArray []string + StaticMap map[string]string + Array []string + Map map[string]string } func (c *ClassWithCollections) GetStaticArray() []string { - return c.StaticArray + return c.StaticArray } func (c *ClassWithCollections) GetStaticMap() map[string]string { - return c.StaticMap + return c.StaticMap } func (c *ClassWithCollections) GetArray() []string { - return c.Array + return c.Array } func (c *ClassWithCollections) GetMap() map[string]string { - return c.Map + return c.Map } func NewClassWithCollections(map_ map[string]string, array []string) ClassWithCollectionsIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ClassWithCollections", - Method: "Constructor", - Args: []string{"Map string>", "Array",}, - }) - return &ClassWithCollections{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ClassWithCollections", + Method: "Constructor", + Args: []string{"Map string>", "Array",}, + }) + return &ClassWithCollections{} } func (c *ClassWithCollections) SetStaticArray(val []string) { - c.StaticArray = val + c.StaticArray = val } func (c *ClassWithCollections) SetStaticMap(val map[string]string) { - c.StaticMap = val + c.StaticMap = val } func (c *ClassWithCollections) SetArray(val []string) { - c.Array = val + c.Array = val } func (c *ClassWithCollections) SetMap(val map[string]string) { - c.Map = val + c.Map = val } func ClassWithCollections_CreateAList() []string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ClassWithCollections", - Method: "CreateAList", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ClassWithCollections", + Method: "CreateAList", + Args: []string{}, + }) + return nil } func ClassWithCollections_CreateAMap() map[string]string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ClassWithCollections", - Method: "CreateAMap", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ClassWithCollections", + Method: "CreateAMap", + Args: []string{}, + }) + return nil } // Class interface @@ -2405,128 +2405,128 @@ type ClassWithDocs struct { } func NewClassWithDocs() ClassWithDocsIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ClassWithDocs", - Method: "Constructor", - Args: []string{}, - }) - return &ClassWithDocs{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ClassWithDocs", + Method: "Constructor", + Args: []string{}, + }) + return &ClassWithDocs{} } // Class interface type ClassWithJavaReservedWordsIface interface { - GetInt() string - SetInt(val string) - Import(assert string) string + GetInt() string + SetInt(val string) + Import(assert string) string } // Struct proxy type ClassWithJavaReservedWords struct { - Int string + Int string } func (c *ClassWithJavaReservedWords) GetInt() string { - return c.Int + return c.Int } func NewClassWithJavaReservedWords(int string) ClassWithJavaReservedWordsIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ClassWithJavaReservedWords", - Method: "Constructor", - Args: []string{"string",}, - }) - return &ClassWithJavaReservedWords{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ClassWithJavaReservedWords", + Method: "Constructor", + Args: []string{"string",}, + }) + return &ClassWithJavaReservedWords{} } func (c *ClassWithJavaReservedWords) SetInt(val string) { - c.Int = val + c.Int = val } func (c *ClassWithJavaReservedWords) Import(assert string) string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ClassWithJavaReservedWords", - Method: "Import", - Args: []string{"string",}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ClassWithJavaReservedWords", + Method: "Import", + Args: []string{"string",}, + }) + return "NOOP_RETURN_STRING" } // Class interface type ClassWithMutableObjectLiteralPropertyIface interface { - GetMutableObject() IMutableObjectLiteral - SetMutableObject(val IMutableObjectLiteral) + GetMutableObject() IMutableObjectLiteral + SetMutableObject(val IMutableObjectLiteral) } // Struct proxy type ClassWithMutableObjectLiteralProperty struct { - MutableObject IMutableObjectLiteral + MutableObject IMutableObjectLiteral } func (c *ClassWithMutableObjectLiteralProperty) GetMutableObject() IMutableObjectLiteral { - return c.MutableObject + return c.MutableObject } func NewClassWithMutableObjectLiteralProperty() ClassWithMutableObjectLiteralPropertyIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ClassWithMutableObjectLiteralProperty", - Method: "Constructor", - Args: []string{}, - }) - return &ClassWithMutableObjectLiteralProperty{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ClassWithMutableObjectLiteralProperty", + Method: "Constructor", + Args: []string{}, + }) + return &ClassWithMutableObjectLiteralProperty{} } func (c *ClassWithMutableObjectLiteralProperty) SetMutableObject(val IMutableObjectLiteral) { - c.MutableObject = val + c.MutableObject = val } // Class interface type ClassWithPrivateConstructorAndAutomaticPropertiesIface interface { - IInterfaceWithProperties - GetReadOnlyString() string - SetReadOnlyString(val string) - GetReadWriteString() string - SetReadWriteString(val string) + IInterfaceWithProperties + GetReadOnlyString() string + SetReadOnlyString(val string) + GetReadWriteString() string + SetReadWriteString(val string) } // Class that implements interface properties automatically, but using a private constructor. // Struct proxy type ClassWithPrivateConstructorAndAutomaticProperties struct { - ReadOnlyString string - ReadWriteString string + ReadOnlyString string + ReadWriteString string } func (c *ClassWithPrivateConstructorAndAutomaticProperties) GetReadOnlyString() string { - return c.ReadOnlyString + return c.ReadOnlyString } func (c *ClassWithPrivateConstructorAndAutomaticProperties) GetReadWriteString() string { - return c.ReadWriteString + return c.ReadWriteString } func (c *ClassWithPrivateConstructorAndAutomaticProperties) SetReadOnlyString(val string) { - c.ReadOnlyString = val + c.ReadOnlyString = val } func (c *ClassWithPrivateConstructorAndAutomaticProperties) SetReadWriteString(val string) { - c.ReadWriteString = val + c.ReadWriteString = val } func ClassWithPrivateConstructorAndAutomaticProperties_Create(readOnlyString string, readWriteString string) ClassWithPrivateConstructorAndAutomaticProperties { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ClassWithPrivateConstructorAndAutomaticProperties", - Method: "Create", - Args: []string{"string", "string",}, - }) - return ClassWithPrivateConstructorAndAutomaticProperties{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ClassWithPrivateConstructorAndAutomaticProperties", + Method: "Create", + Args: []string{"string", "string",}, + }) + return ClassWithPrivateConstructorAndAutomaticProperties{} } // Class interface type ConfusingToJacksonIface interface { - GetUnionProperty() jsii.Any - SetUnionProperty(val jsii.Any) + GetUnionProperty() jsii.Any + SetUnionProperty(val jsii.Any) } // This tries to confuse Jackson by having overloaded property setters. @@ -2534,48 +2534,48 @@ type ConfusingToJacksonIface interface { // // Struct proxy type ConfusingToJackson struct { - UnionProperty jsii.Any + UnionProperty jsii.Any } func (c *ConfusingToJackson) GetUnionProperty() jsii.Any { - return c.UnionProperty + return c.UnionProperty } func (c *ConfusingToJackson) SetUnionProperty(val jsii.Any) { - c.UnionProperty = val + c.UnionProperty = val } func ConfusingToJackson_MakeInstance() ConfusingToJackson { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ConfusingToJackson", - Method: "MakeInstance", - Args: []string{}, - }) - return ConfusingToJackson{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ConfusingToJackson", + Method: "MakeInstance", + Args: []string{}, + }) + return ConfusingToJackson{} } func ConfusingToJackson_MakeStructInstance() ConfusingToJacksonStruct { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ConfusingToJackson", - Method: "MakeStructInstance", - Args: []string{}, - }) - return ConfusingToJacksonStruct{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ConfusingToJackson", + Method: "MakeStructInstance", + Args: []string{}, + }) + return ConfusingToJacksonStruct{} } // ConfusingToJacksonStructIface is the public interface for the custom type ConfusingToJacksonStruct type ConfusingToJacksonStructIface interface { - GetUnionProperty() jsii.Any + GetUnionProperty() jsii.Any } // Struct proxy type ConfusingToJacksonStruct struct { - UnionProperty jsii.Any + UnionProperty jsii.Any } func (c *ConfusingToJacksonStruct) GetUnionProperty() jsii.Any { - return c.UnionProperty + return c.UnionProperty } @@ -2588,12 +2588,12 @@ type ConstructorPassesThisOut struct { } func NewConstructorPassesThisOut(consumer PartiallyInitializedThisConsumer) ConstructorPassesThisOutIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ConstructorPassesThisOut", - Method: "Constructor", - Args: []string{"jsii-calc.PartiallyInitializedThisConsumer",}, - }) - return &ConstructorPassesThisOut{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ConstructorPassesThisOut", + Method: "Constructor", + Args: []string{"jsii-calc.PartiallyInitializedThisConsumer",}, + }) + return &ConstructorPassesThisOut{} } // Class interface @@ -2605,80 +2605,80 @@ type Constructors struct { } func NewConstructors() ConstructorsIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Constructors", - Method: "Constructor", - Args: []string{}, - }) - return &Constructors{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Constructors", + Method: "Constructor", + Args: []string{}, + }) + return &Constructors{} } func Constructors_HiddenInterface() IPublicInterface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Constructors", - Method: "HiddenInterface", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Constructors", + Method: "HiddenInterface", + Args: []string{}, + }) + return nil } func Constructors_HiddenInterfaces() []IPublicInterface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Constructors", - Method: "HiddenInterfaces", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Constructors", + Method: "HiddenInterfaces", + Args: []string{}, + }) + return nil } func Constructors_HiddenSubInterfaces() []IPublicInterface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Constructors", - Method: "HiddenSubInterfaces", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Constructors", + Method: "HiddenSubInterfaces", + Args: []string{}, + }) + return nil } func Constructors_MakeClass() PublicClass { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Constructors", - Method: "MakeClass", - Args: []string{}, - }) - return PublicClass{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Constructors", + Method: "MakeClass", + Args: []string{}, + }) + return PublicClass{} } func Constructors_MakeInterface() IPublicInterface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Constructors", - Method: "MakeInterface", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Constructors", + Method: "MakeInterface", + Args: []string{}, + }) + return nil } func Constructors_MakeInterface2() IPublicInterface2 { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Constructors", - Method: "MakeInterface2", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Constructors", + Method: "MakeInterface2", + Args: []string{}, + }) + return nil } func Constructors_MakeInterfaces() []IPublicInterface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Constructors", - Method: "MakeInterfaces", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Constructors", + Method: "MakeInterfaces", + Args: []string{}, + }) + return nil } // Class interface type ConsumePureInterfaceIface interface { - WorkItBaby() StructB + WorkItBaby() StructB } // Struct proxy @@ -2686,29 +2686,29 @@ type ConsumePureInterface struct { } func NewConsumePureInterface(delegate IStructReturningDelegate) ConsumePureInterfaceIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ConsumePureInterface", - Method: "Constructor", - Args: []string{"jsii-calc.IStructReturningDelegate",}, - }) - return &ConsumePureInterface{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ConsumePureInterface", + Method: "Constructor", + Args: []string{"jsii-calc.IStructReturningDelegate",}, + }) + return &ConsumePureInterface{} } func (c *ConsumePureInterface) WorkItBaby() StructB { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ConsumePureInterface", - Method: "WorkItBaby", - Args: []string{}, - }) - return StructB{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ConsumePureInterface", + Method: "WorkItBaby", + Args: []string{}, + }) + return StructB{} } // Class interface type ConsumerCanRingBellIface interface { - ImplementedByObjectLiteral(ringer IBellRinger) bool - ImplementedByPrivateClass(ringer IBellRinger) bool - ImplementedByPublicClass(ringer IBellRinger) bool - WhenTypedAsClass(ringer IConcreteBellRinger) bool + ImplementedByObjectLiteral(ringer IBellRinger) bool + ImplementedByPrivateClass(ringer IBellRinger) bool + ImplementedByPublicClass(ringer IBellRinger) bool + WhenTypedAsClass(ringer IConcreteBellRinger) bool } // Test calling back to consumers that implement interfaces. @@ -2720,90 +2720,90 @@ type ConsumerCanRingBell struct { } func NewConsumerCanRingBell() ConsumerCanRingBellIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ConsumerCanRingBell", - Method: "Constructor", - Args: []string{}, - }) - return &ConsumerCanRingBell{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ConsumerCanRingBell", + Method: "Constructor", + Args: []string{}, + }) + return &ConsumerCanRingBell{} } func ConsumerCanRingBell_StaticImplementedByObjectLiteral(ringer IBellRinger) bool { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ConsumerCanRingBell", - Method: "StaticImplementedByObjectLiteral", - Args: []string{"jsii-calc.IBellRinger",}, - }) - return true + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ConsumerCanRingBell", + Method: "StaticImplementedByObjectLiteral", + Args: []string{"jsii-calc.IBellRinger",}, + }) + return true } func ConsumerCanRingBell_StaticImplementedByPrivateClass(ringer IBellRinger) bool { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ConsumerCanRingBell", - Method: "StaticImplementedByPrivateClass", - Args: []string{"jsii-calc.IBellRinger",}, - }) - return true + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ConsumerCanRingBell", + Method: "StaticImplementedByPrivateClass", + Args: []string{"jsii-calc.IBellRinger",}, + }) + return true } func ConsumerCanRingBell_StaticImplementedByPublicClass(ringer IBellRinger) bool { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ConsumerCanRingBell", - Method: "StaticImplementedByPublicClass", - Args: []string{"jsii-calc.IBellRinger",}, - }) - return true + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ConsumerCanRingBell", + Method: "StaticImplementedByPublicClass", + Args: []string{"jsii-calc.IBellRinger",}, + }) + return true } func ConsumerCanRingBell_StaticWhenTypedAsClass(ringer IConcreteBellRinger) bool { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ConsumerCanRingBell", - Method: "StaticWhenTypedAsClass", - Args: []string{"jsii-calc.IConcreteBellRinger",}, - }) - return true + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ConsumerCanRingBell", + Method: "StaticWhenTypedAsClass", + Args: []string{"jsii-calc.IConcreteBellRinger",}, + }) + return true } func (c *ConsumerCanRingBell) ImplementedByObjectLiteral(ringer IBellRinger) bool { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ConsumerCanRingBell", - Method: "ImplementedByObjectLiteral", - Args: []string{"jsii-calc.IBellRinger",}, - }) - return true + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ConsumerCanRingBell", + Method: "ImplementedByObjectLiteral", + Args: []string{"jsii-calc.IBellRinger",}, + }) + return true } func (c *ConsumerCanRingBell) ImplementedByPrivateClass(ringer IBellRinger) bool { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ConsumerCanRingBell", - Method: "ImplementedByPrivateClass", - Args: []string{"jsii-calc.IBellRinger",}, - }) - return true + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ConsumerCanRingBell", + Method: "ImplementedByPrivateClass", + Args: []string{"jsii-calc.IBellRinger",}, + }) + return true } func (c *ConsumerCanRingBell) ImplementedByPublicClass(ringer IBellRinger) bool { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ConsumerCanRingBell", - Method: "ImplementedByPublicClass", - Args: []string{"jsii-calc.IBellRinger",}, - }) - return true + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ConsumerCanRingBell", + Method: "ImplementedByPublicClass", + Args: []string{"jsii-calc.IBellRinger",}, + }) + return true } func (c *ConsumerCanRingBell) WhenTypedAsClass(ringer IConcreteBellRinger) bool { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ConsumerCanRingBell", - Method: "WhenTypedAsClass", - Args: []string{"jsii-calc.IConcreteBellRinger",}, - }) - return true + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ConsumerCanRingBell", + Method: "WhenTypedAsClass", + Args: []string{"jsii-calc.IConcreteBellRinger",}, + }) + return true } // Class interface type ConsumersOfThisCrazyTypeSystemIface interface { - ConsumeAnotherPublicInterface(obj IAnotherPublicInterface) string - ConsumeNonInternalInterface(obj INonInternalInterface) jsii.Any + ConsumeAnotherPublicInterface(obj IAnotherPublicInterface) string + ConsumeNonInternalInterface(obj INonInternalInterface) jsii.Any } // Struct proxy @@ -2811,37 +2811,37 @@ type ConsumersOfThisCrazyTypeSystem struct { } func NewConsumersOfThisCrazyTypeSystem() ConsumersOfThisCrazyTypeSystemIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ConsumersOfThisCrazyTypeSystem", - Method: "Constructor", - Args: []string{}, - }) - return &ConsumersOfThisCrazyTypeSystem{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ConsumersOfThisCrazyTypeSystem", + Method: "Constructor", + Args: []string{}, + }) + return &ConsumersOfThisCrazyTypeSystem{} } func (c *ConsumersOfThisCrazyTypeSystem) ConsumeAnotherPublicInterface(obj IAnotherPublicInterface) string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ConsumersOfThisCrazyTypeSystem", - Method: "ConsumeAnotherPublicInterface", - Args: []string{"jsii-calc.IAnotherPublicInterface",}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ConsumersOfThisCrazyTypeSystem", + Method: "ConsumeAnotherPublicInterface", + Args: []string{"jsii-calc.IAnotherPublicInterface",}, + }) + return "NOOP_RETURN_STRING" } func (c *ConsumersOfThisCrazyTypeSystem) ConsumeNonInternalInterface(obj INonInternalInterface) jsii.Any { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ConsumersOfThisCrazyTypeSystem", - Method: "ConsumeNonInternalInterface", - Args: []string{"jsii-calc.INonInternalInterface",}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ConsumersOfThisCrazyTypeSystem", + Method: "ConsumeNonInternalInterface", + Args: []string{"jsii-calc.INonInternalInterface",}, + }) + return nil } // Class interface type DataRendererIface interface { - Render(data scopejsiicalclib.MyFirstStruct) string - RenderArbitrary(data map[string]jsii.Any) string - RenderMap(map_ map[string]jsii.Any) string + Render(data scopejsiicalclib.MyFirstStruct) string + RenderArbitrary(data map[string]jsii.Any) string + RenderMap(map_ map[string]jsii.Any) string } // Verifies proper type handling through dynamic overrides. @@ -2850,90 +2850,90 @@ type DataRenderer struct { } func NewDataRenderer() DataRendererIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "DataRenderer", - Method: "Constructor", - Args: []string{}, - }) - return &DataRenderer{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "DataRenderer", + Method: "Constructor", + Args: []string{}, + }) + return &DataRenderer{} } func (d *DataRenderer) Render(data scopejsiicalclib.MyFirstStruct) string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "DataRenderer", - Method: "Render", - Args: []string{"@scope/jsii-calc-lib.MyFirstStruct",}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "DataRenderer", + Method: "Render", + Args: []string{"@scope/jsii-calc-lib.MyFirstStruct",}, + }) + return "NOOP_RETURN_STRING" } func (d *DataRenderer) RenderArbitrary(data map[string]jsii.Any) string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "DataRenderer", - Method: "RenderArbitrary", - Args: []string{"Map any>",}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "DataRenderer", + Method: "RenderArbitrary", + Args: []string{"Map any>",}, + }) + return "NOOP_RETURN_STRING" } func (d *DataRenderer) RenderMap(map_ map[string]jsii.Any) string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "DataRenderer", - Method: "RenderMap", - Args: []string{"Map any>",}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "DataRenderer", + Method: "RenderMap", + Args: []string{"Map any>",}, + }) + return "NOOP_RETURN_STRING" } // Class interface type DefaultedConstructorArgumentIface interface { - GetArg1() float64 - SetArg1(val float64) - GetArg3() string - SetArg3(val string) - GetArg2() string - SetArg2(val string) + GetArg1() float64 + SetArg1(val float64) + GetArg3() string + SetArg3(val string) + GetArg2() string + SetArg2(val string) } // Struct proxy type DefaultedConstructorArgument struct { - Arg1 float64 - Arg3 string - Arg2 string + Arg1 float64 + Arg3 string + Arg2 string } func (d *DefaultedConstructorArgument) GetArg1() float64 { - return d.Arg1 + return d.Arg1 } func (d *DefaultedConstructorArgument) GetArg3() string { - return d.Arg3 + return d.Arg3 } func (d *DefaultedConstructorArgument) GetArg2() string { - return d.Arg2 + return d.Arg2 } func NewDefaultedConstructorArgument(arg1 float64, arg2 string, arg3 string) DefaultedConstructorArgumentIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "DefaultedConstructorArgument", - Method: "Constructor", - Args: []string{"number", "string", "date",}, - }) - return &DefaultedConstructorArgument{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "DefaultedConstructorArgument", + Method: "Constructor", + Args: []string{"number", "string", "date",}, + }) + return &DefaultedConstructorArgument{} } func (d *DefaultedConstructorArgument) SetArg1(val float64) { - d.Arg1 = val + d.Arg1 = val } func (d *DefaultedConstructorArgument) SetArg3(val string) { - d.Arg3 = val + d.Arg3 = val } func (d *DefaultedConstructorArgument) SetArg2(val string) { - d.Arg2 = val + d.Arg2 = val } // Class interface @@ -2949,277 +2949,277 @@ type Demonstrate982 struct { } func NewDemonstrate982() Demonstrate982Iface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Demonstrate982", - Method: "Constructor", - Args: []string{}, - }) - return &Demonstrate982{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Demonstrate982", + Method: "Constructor", + Args: []string{}, + }) + return &Demonstrate982{} } func Demonstrate982_TakeThis() ChildStruct982 { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Demonstrate982", - Method: "TakeThis", - Args: []string{}, - }) - return ChildStruct982{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Demonstrate982", + Method: "TakeThis", + Args: []string{}, + }) + return ChildStruct982{} } func Demonstrate982_TakeThisToo() ParentStruct982 { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Demonstrate982", - Method: "TakeThisToo", - Args: []string{}, - }) - return ParentStruct982{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Demonstrate982", + Method: "TakeThisToo", + Args: []string{}, + }) + return ParentStruct982{} } // Class interface type DeprecatedClassIface interface { - GetReadonlyProperty() string - SetReadonlyProperty(val string) - GetMutableProperty() float64 - SetMutableProperty(val float64) - Method() + GetReadonlyProperty() string + SetReadonlyProperty(val string) + GetMutableProperty() float64 + SetMutableProperty(val float64) + Method() } // Deprecated: a pretty boring class // Struct proxy type DeprecatedClass struct { - // Deprecated: this is not always "wazoo", be ready to be disappointed - ReadonlyProperty string - // Deprecated: shouldn't have been mutable - MutableProperty float64 + // Deprecated: this is not always "wazoo", be ready to be disappointed + ReadonlyProperty string + // Deprecated: shouldn't have been mutable + MutableProperty float64 } func (d *DeprecatedClass) GetReadonlyProperty() string { - return d.ReadonlyProperty + return d.ReadonlyProperty } func (d *DeprecatedClass) GetMutableProperty() float64 { - return d.MutableProperty + return d.MutableProperty } func NewDeprecatedClass(readonlyString string, mutableNumber float64) DeprecatedClassIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "DeprecatedClass", - Method: "Constructor", - Args: []string{"string", "number",}, - }) - return &DeprecatedClass{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "DeprecatedClass", + Method: "Constructor", + Args: []string{"string", "number",}, + }) + return &DeprecatedClass{} } func (d *DeprecatedClass) SetReadonlyProperty(val string) { - d.ReadonlyProperty = val + d.ReadonlyProperty = val } func (d *DeprecatedClass) SetMutableProperty(val float64) { - d.MutableProperty = val + d.MutableProperty = val } func (d *DeprecatedClass) Method() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "DeprecatedClass", - Method: "Method", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "DeprecatedClass", + Method: "Method", + Args: []string{}, + }) } // Deprecated: your deprecated selection of bad options type DeprecatedEnum string const ( - DeprecatedEnumOptionA DeprecatedEnum = "OPTION_A" - DeprecatedEnumOptionB DeprecatedEnum = "OPTION_B" + DeprecatedEnumOptionA DeprecatedEnum = "OPTION_A" + DeprecatedEnumOptionB DeprecatedEnum = "OPTION_B" ) // DeprecatedStructIface is the public interface for the custom type DeprecatedStruct // Deprecated: it just wraps a string type DeprecatedStructIface interface { - GetReadonlyProperty() string + GetReadonlyProperty() string } // Deprecated: it just wraps a string // Struct proxy type DeprecatedStruct struct { - // Deprecated: well, yeah - ReadonlyProperty string + // Deprecated: well, yeah + ReadonlyProperty string } func (d *DeprecatedStruct) GetReadonlyProperty() string { - return d.ReadonlyProperty + return d.ReadonlyProperty } // DerivedStructIface is the public interface for the custom type DerivedStruct type DerivedStructIface interface { - GetAnumber() float64 - GetAstring() string - GetFirstOptional() []string - GetAnotherRequired() string - GetBool() bool - GetNonPrimitive() DoubleTrouble - GetAnotherOptional() map[string]scopejsiicalclib.NumericValue - GetOptionalAny() jsii.Any - GetOptionalArray() []string + GetAnumber() float64 + GetAstring() string + GetFirstOptional() []string + GetAnotherRequired() string + GetBool() bool + GetNonPrimitive() DoubleTrouble + GetAnotherOptional() map[string]scopejsiicalclib.NumericValue + GetOptionalAny() jsii.Any + GetOptionalArray() []string } // A struct which derives from another struct. // Struct proxy type DerivedStruct struct { - // An awesome number value. - // Deprecated. - Anumber float64 - // A string value. - // Deprecated. - Astring string - // Deprecated. - FirstOptional []string - AnotherRequired string - Bool bool - // An example of a non primitive property. - NonPrimitive DoubleTrouble - // This is optional. - AnotherOptional map[string]scopejsiicalclib.NumericValue - OptionalAny jsii.Any - OptionalArray []string + // An awesome number value. + // Deprecated. + Anumber float64 + // A string value. + // Deprecated. + Astring string + // Deprecated. + FirstOptional []string + AnotherRequired string + Bool bool + // An example of a non primitive property. + NonPrimitive DoubleTrouble + // This is optional. + AnotherOptional map[string]scopejsiicalclib.NumericValue + OptionalAny jsii.Any + OptionalArray []string } func (d *DerivedStruct) GetAnumber() float64 { - return d.Anumber + return d.Anumber } func (d *DerivedStruct) GetAstring() string { - return d.Astring + return d.Astring } func (d *DerivedStruct) GetFirstOptional() []string { - return d.FirstOptional + return d.FirstOptional } func (d *DerivedStruct) GetAnotherRequired() string { - return d.AnotherRequired + return d.AnotherRequired } func (d *DerivedStruct) GetBool() bool { - return d.Bool + return d.Bool } func (d *DerivedStruct) GetNonPrimitive() DoubleTrouble { - return d.NonPrimitive + return d.NonPrimitive } func (d *DerivedStruct) GetAnotherOptional() map[string]scopejsiicalclib.NumericValue { - return d.AnotherOptional + return d.AnotherOptional } func (d *DerivedStruct) GetOptionalAny() jsii.Any { - return d.OptionalAny + return d.OptionalAny } func (d *DerivedStruct) GetOptionalArray() []string { - return d.OptionalArray + return d.OptionalArray } // DiamondInheritanceBaseLevelStructIface is the public interface for the custom type DiamondInheritanceBaseLevelStruct type DiamondInheritanceBaseLevelStructIface interface { - GetBaseLevelProperty() string + GetBaseLevelProperty() string } // Struct proxy type DiamondInheritanceBaseLevelStruct struct { - BaseLevelProperty string + BaseLevelProperty string } func (d *DiamondInheritanceBaseLevelStruct) GetBaseLevelProperty() string { - return d.BaseLevelProperty + return d.BaseLevelProperty } // DiamondInheritanceFirstMidLevelStructIface is the public interface for the custom type DiamondInheritanceFirstMidLevelStruct type DiamondInheritanceFirstMidLevelStructIface interface { - GetBaseLevelProperty() string - GetFirstMidLevelProperty() string + GetBaseLevelProperty() string + GetFirstMidLevelProperty() string } // Struct proxy type DiamondInheritanceFirstMidLevelStruct struct { - BaseLevelProperty string - FirstMidLevelProperty string + BaseLevelProperty string + FirstMidLevelProperty string } func (d *DiamondInheritanceFirstMidLevelStruct) GetBaseLevelProperty() string { - return d.BaseLevelProperty + return d.BaseLevelProperty } func (d *DiamondInheritanceFirstMidLevelStruct) GetFirstMidLevelProperty() string { - return d.FirstMidLevelProperty + return d.FirstMidLevelProperty } // DiamondInheritanceSecondMidLevelStructIface is the public interface for the custom type DiamondInheritanceSecondMidLevelStruct type DiamondInheritanceSecondMidLevelStructIface interface { - GetBaseLevelProperty() string - GetSecondMidLevelProperty() string + GetBaseLevelProperty() string + GetSecondMidLevelProperty() string } // Struct proxy type DiamondInheritanceSecondMidLevelStruct struct { - BaseLevelProperty string - SecondMidLevelProperty string + BaseLevelProperty string + SecondMidLevelProperty string } func (d *DiamondInheritanceSecondMidLevelStruct) GetBaseLevelProperty() string { - return d.BaseLevelProperty + return d.BaseLevelProperty } func (d *DiamondInheritanceSecondMidLevelStruct) GetSecondMidLevelProperty() string { - return d.SecondMidLevelProperty + return d.SecondMidLevelProperty } // DiamondInheritanceTopLevelStructIface is the public interface for the custom type DiamondInheritanceTopLevelStruct type DiamondInheritanceTopLevelStructIface interface { - GetBaseLevelProperty() string - GetFirstMidLevelProperty() string - GetSecondMidLevelProperty() string - GetTopLevelProperty() string + GetBaseLevelProperty() string + GetFirstMidLevelProperty() string + GetSecondMidLevelProperty() string + GetTopLevelProperty() string } // Struct proxy type DiamondInheritanceTopLevelStruct struct { - BaseLevelProperty string - FirstMidLevelProperty string - SecondMidLevelProperty string - TopLevelProperty string + BaseLevelProperty string + FirstMidLevelProperty string + SecondMidLevelProperty string + TopLevelProperty string } func (d *DiamondInheritanceTopLevelStruct) GetBaseLevelProperty() string { - return d.BaseLevelProperty + return d.BaseLevelProperty } func (d *DiamondInheritanceTopLevelStruct) GetFirstMidLevelProperty() string { - return d.FirstMidLevelProperty + return d.FirstMidLevelProperty } func (d *DiamondInheritanceTopLevelStruct) GetSecondMidLevelProperty() string { - return d.SecondMidLevelProperty + return d.SecondMidLevelProperty } func (d *DiamondInheritanceTopLevelStruct) GetTopLevelProperty() string { - return d.TopLevelProperty + return d.TopLevelProperty } // Class interface type DisappointingCollectionSourceIface interface { - GetMaybeList() []string - SetMaybeList(val []string) - GetMaybeMap() map[string]float64 - SetMaybeMap(val map[string]float64) + GetMaybeList() []string + SetMaybeList(val []string) + GetMaybeMap() map[string]float64 + SetMaybeMap(val map[string]float64) } // Verifies that null/undefined can be returned for optional collections. @@ -3227,38 +3227,38 @@ type DisappointingCollectionSourceIface interface { // This source of collections is disappointing - it'll always give you nothing :( // Struct proxy type DisappointingCollectionSource struct { - // Some List of strings, maybe? - // - // (Nah, just a billion dollars mistake!) - MaybeList []string - // Some Map of strings to numbers, maybe? - // - // (Nah, just a billion dollars mistake!) - MaybeMap map[string]float64 + // Some List of strings, maybe? + // + // (Nah, just a billion dollars mistake!) + MaybeList []string + // Some Map of strings to numbers, maybe? + // + // (Nah, just a billion dollars mistake!) + MaybeMap map[string]float64 } func (d *DisappointingCollectionSource) GetMaybeList() []string { - return d.MaybeList + return d.MaybeList } func (d *DisappointingCollectionSource) GetMaybeMap() map[string]float64 { - return d.MaybeMap + return d.MaybeMap } func (d *DisappointingCollectionSource) SetMaybeList(val []string) { - d.MaybeList = val + d.MaybeList = val } func (d *DisappointingCollectionSource) SetMaybeMap(val map[string]float64) { - d.MaybeMap = val + d.MaybeMap = val } // Class interface type DoNotOverridePrivatesIface interface { - ChangePrivatePropertyValue(newValue string) - PrivateMethodValue() string - PrivatePropertyValue() string + ChangePrivatePropertyValue(newValue string) + PrivateMethodValue() string + PrivatePropertyValue() string } // Struct proxy @@ -3266,43 +3266,43 @@ type DoNotOverridePrivates struct { } func NewDoNotOverridePrivates() DoNotOverridePrivatesIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "DoNotOverridePrivates", - Method: "Constructor", - Args: []string{}, - }) - return &DoNotOverridePrivates{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "DoNotOverridePrivates", + Method: "Constructor", + Args: []string{}, + }) + return &DoNotOverridePrivates{} } func (d *DoNotOverridePrivates) ChangePrivatePropertyValue(newValue string) { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "DoNotOverridePrivates", - Method: "ChangePrivatePropertyValue", - Args: []string{"string",}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "DoNotOverridePrivates", + Method: "ChangePrivatePropertyValue", + Args: []string{"string",}, + }) } func (d *DoNotOverridePrivates) PrivateMethodValue() string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "DoNotOverridePrivates", - Method: "PrivateMethodValue", - Args: []string{}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "DoNotOverridePrivates", + Method: "PrivateMethodValue", + Args: []string{}, + }) + return "NOOP_RETURN_STRING" } func (d *DoNotOverridePrivates) PrivatePropertyValue() string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "DoNotOverridePrivates", - Method: "PrivatePropertyValue", - Args: []string{}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "DoNotOverridePrivates", + Method: "PrivatePropertyValue", + Args: []string{}, + }) + return "NOOP_RETURN_STRING" } // Class interface type DoNotRecognizeAnyAsOptionalIface interface { - Method(_requiredAny jsii.Any, _optionalAny jsii.Any, _optionalString string) + Method(_requiredAny jsii.Any, _optionalAny jsii.Any, _optionalString string) } // jsii#284: do not recognize "any" as an optional argument. @@ -3311,26 +3311,26 @@ type DoNotRecognizeAnyAsOptional struct { } func NewDoNotRecognizeAnyAsOptional() DoNotRecognizeAnyAsOptionalIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "DoNotRecognizeAnyAsOptional", - Method: "Constructor", - Args: []string{}, - }) - return &DoNotRecognizeAnyAsOptional{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "DoNotRecognizeAnyAsOptional", + Method: "Constructor", + Args: []string{}, + }) + return &DoNotRecognizeAnyAsOptional{} } func (d *DoNotRecognizeAnyAsOptional) Method(_requiredAny jsii.Any, _optionalAny jsii.Any, _optionalString string) { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "DoNotRecognizeAnyAsOptional", - Method: "Method", - Args: []string{"any", "any", "string",}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "DoNotRecognizeAnyAsOptional", + Method: "Method", + Args: []string{"any", "any", "string",}, + }) } // Class interface type DocumentedClassIface interface { - Greet(greetee Greetee) float64 - Hola() + Greet(greetee Greetee) float64 + Hola() } // Here's the first line of the TSDoc comment. @@ -3344,34 +3344,34 @@ type DocumentedClass struct { } func NewDocumentedClass() DocumentedClassIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "DocumentedClass", - Method: "Constructor", - Args: []string{}, - }) - return &DocumentedClass{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "DocumentedClass", + Method: "Constructor", + Args: []string{}, + }) + return &DocumentedClass{} } func (d *DocumentedClass) Greet(greetee Greetee) float64 { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "DocumentedClass", - Method: "Greet", - Args: []string{"jsii-calc.Greetee",}, - }) - return 0.0 + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "DocumentedClass", + Method: "Greet", + Args: []string{"jsii-calc.Greetee",}, + }) + return 0.0 } func (d *DocumentedClass) Hola() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "DocumentedClass", - Method: "Hola", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "DocumentedClass", + Method: "Hola", + Args: []string{}, + }) } // Class interface type DontComplainAboutVariadicAfterOptionalIface interface { - OptionalAndVariadic(optional string, things string) string + OptionalAndVariadic(optional string, things string) string } // Struct proxy @@ -3379,30 +3379,30 @@ type DontComplainAboutVariadicAfterOptional struct { } func NewDontComplainAboutVariadicAfterOptional() DontComplainAboutVariadicAfterOptionalIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "DontComplainAboutVariadicAfterOptional", - Method: "Constructor", - Args: []string{}, - }) - return &DontComplainAboutVariadicAfterOptional{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "DontComplainAboutVariadicAfterOptional", + Method: "Constructor", + Args: []string{}, + }) + return &DontComplainAboutVariadicAfterOptional{} } func (d *DontComplainAboutVariadicAfterOptional) OptionalAndVariadic(optional string, things string) string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "DontComplainAboutVariadicAfterOptional", - Method: "OptionalAndVariadic", - Args: []string{"string", "string",}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "DontComplainAboutVariadicAfterOptional", + Method: "OptionalAndVariadic", + Args: []string{"string", "string",}, + }) + return "NOOP_RETURN_STRING" } // Class interface type DoubleTroubleIface interface { - IFriendlyRandomGenerator - IRandomNumberGenerator - scopejsiicalclib.IFriendly - Hello() string - Next() float64 + IFriendlyRandomGenerator + IRandomNumberGenerator + scopejsiicalclib.IFriendly + Hello() string + Next() float64 } // Struct proxy @@ -3410,138 +3410,138 @@ type DoubleTrouble struct { } func NewDoubleTrouble() DoubleTroubleIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "DoubleTrouble", - Method: "Constructor", - Args: []string{}, - }) - return &DoubleTrouble{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "DoubleTrouble", + Method: "Constructor", + Args: []string{}, + }) + return &DoubleTrouble{} } func (d *DoubleTrouble) Hello() string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "DoubleTrouble", - Method: "Hello", - Args: []string{}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "DoubleTrouble", + Method: "Hello", + Args: []string{}, + }) + return "NOOP_RETURN_STRING" } func (d *DoubleTrouble) Next() float64 { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "DoubleTrouble", - Method: "Next", - Args: []string{}, - }) - return 0.0 + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "DoubleTrouble", + Method: "Next", + Args: []string{}, + }) + return 0.0 } // Class interface type DynamicPropertyBearerIface interface { - GetDynamicProperty() string - SetDynamicProperty(val string) - GetValueStore() string - SetValueStore(val string) + GetDynamicProperty() string + SetDynamicProperty(val string) + GetValueStore() string + SetValueStore(val string) } // Ensures we can override a dynamic property that was inherited. // Struct proxy type DynamicPropertyBearer struct { - DynamicProperty string - ValueStore string + DynamicProperty string + ValueStore string } func (d *DynamicPropertyBearer) GetDynamicProperty() string { - return d.DynamicProperty + return d.DynamicProperty } func (d *DynamicPropertyBearer) GetValueStore() string { - return d.ValueStore + return d.ValueStore } func NewDynamicPropertyBearer(valueStore string) DynamicPropertyBearerIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "DynamicPropertyBearer", - Method: "Constructor", - Args: []string{"string",}, - }) - return &DynamicPropertyBearer{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "DynamicPropertyBearer", + Method: "Constructor", + Args: []string{"string",}, + }) + return &DynamicPropertyBearer{} } func (d *DynamicPropertyBearer) SetDynamicProperty(val string) { - d.DynamicProperty = val + d.DynamicProperty = val } func (d *DynamicPropertyBearer) SetValueStore(val string) { - d.ValueStore = val + d.ValueStore = val } // Class interface type DynamicPropertyBearerChildIface interface { - GetDynamicProperty() string - SetDynamicProperty(val string) - GetValueStore() string - SetValueStore(val string) - GetOriginalValue() string - SetOriginalValue(val string) - OverrideValue(newValue string) string + GetDynamicProperty() string + SetDynamicProperty(val string) + GetValueStore() string + SetValueStore(val string) + GetOriginalValue() string + SetOriginalValue(val string) + OverrideValue(newValue string) string } // Struct proxy type DynamicPropertyBearerChild struct { - DynamicProperty string - ValueStore string - OriginalValue string + DynamicProperty string + ValueStore string + OriginalValue string } func (d *DynamicPropertyBearerChild) GetDynamicProperty() string { - return d.DynamicProperty + return d.DynamicProperty } func (d *DynamicPropertyBearerChild) GetValueStore() string { - return d.ValueStore + return d.ValueStore } func (d *DynamicPropertyBearerChild) GetOriginalValue() string { - return d.OriginalValue + return d.OriginalValue } func NewDynamicPropertyBearerChild(originalValue string) DynamicPropertyBearerChildIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "DynamicPropertyBearerChild", - Method: "Constructor", - Args: []string{"string",}, - }) - return &DynamicPropertyBearerChild{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "DynamicPropertyBearerChild", + Method: "Constructor", + Args: []string{"string",}, + }) + return &DynamicPropertyBearerChild{} } func (d *DynamicPropertyBearerChild) SetDynamicProperty(val string) { - d.DynamicProperty = val + d.DynamicProperty = val } func (d *DynamicPropertyBearerChild) SetValueStore(val string) { - d.ValueStore = val + d.ValueStore = val } func (d *DynamicPropertyBearerChild) SetOriginalValue(val string) { - d.OriginalValue = val + d.OriginalValue = val } func (d *DynamicPropertyBearerChild) OverrideValue(newValue string) string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "DynamicPropertyBearerChild", - Method: "OverrideValue", - Args: []string{"string",}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "DynamicPropertyBearerChild", + Method: "OverrideValue", + Args: []string{"string",}, + }) + return "NOOP_RETURN_STRING" } // Class interface type EntropyIface interface { - Increase() string - Repeat(word string) string + Increase() string + Repeat(word string) string } // This class is used to validate that serialization and deserialization does not interpret ISO-8601-formatted timestampts to the native date/time object, as the jsii protocol has a $jsii$date wrapper for this purpose (node's JSON parsing does *NOT* detect dates automatically in this way, so host libraries should not either). @@ -3551,30 +3551,30 @@ type Entropy struct { // Creates a new instance of Entropy. func NewEntropy(clock IWallClock) EntropyIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Entropy", - Method: "Constructor", - Args: []string{"jsii-calc.IWallClock",}, - }) - return &Entropy{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Entropy", + Method: "Constructor", + Args: []string{"jsii-calc.IWallClock",}, + }) + return &Entropy{} } func (e *Entropy) Increase() string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Entropy", - Method: "Increase", - Args: []string{}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Entropy", + Method: "Increase", + Args: []string{}, + }) + return "NOOP_RETURN_STRING" } func (e *Entropy) Repeat(word string) string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Entropy", - Method: "Repeat", - Args: []string{"string",}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Entropy", + Method: "Repeat", + Args: []string{"string",}, + }) + return "NOOP_RETURN_STRING" } // Class interface @@ -3586,21 +3586,21 @@ type EnumDispenser struct { } func EnumDispenser_RandomIntegerLikeEnum() AllTypesEnum { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "EnumDispenser", - Method: "RandomIntegerLikeEnum", - Args: []string{}, - }) - return "ENUM_DUMMY" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "EnumDispenser", + Method: "RandomIntegerLikeEnum", + Args: []string{}, + }) + return "ENUM_DUMMY" } func EnumDispenser_RandomStringLikeEnum() StringEnum { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "EnumDispenser", - Method: "RandomStringLikeEnum", - Args: []string{}, - }) - return "ENUM_DUMMY" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "EnumDispenser", + Method: "RandomStringLikeEnum", + Args: []string{}, + }) + return "ENUM_DUMMY" } // Class interface @@ -3612,340 +3612,340 @@ type EraseUndefinedHashValues struct { } func NewEraseUndefinedHashValues() EraseUndefinedHashValuesIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "EraseUndefinedHashValues", - Method: "Constructor", - Args: []string{}, - }) - return &EraseUndefinedHashValues{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "EraseUndefinedHashValues", + Method: "Constructor", + Args: []string{}, + }) + return &EraseUndefinedHashValues{} } func EraseUndefinedHashValues_DoesKeyExist(opts EraseUndefinedHashValuesOptions, key string) bool { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "EraseUndefinedHashValues", - Method: "DoesKeyExist", - Args: []string{"jsii-calc.EraseUndefinedHashValuesOptions", "string",}, - }) - return true + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "EraseUndefinedHashValues", + Method: "DoesKeyExist", + Args: []string{"jsii-calc.EraseUndefinedHashValuesOptions", "string",}, + }) + return true } func EraseUndefinedHashValues_Prop1IsNull() map[string]jsii.Any { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "EraseUndefinedHashValues", - Method: "Prop1IsNull", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "EraseUndefinedHashValues", + Method: "Prop1IsNull", + Args: []string{}, + }) + return nil } func EraseUndefinedHashValues_Prop2IsUndefined() map[string]jsii.Any { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "EraseUndefinedHashValues", - Method: "Prop2IsUndefined", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "EraseUndefinedHashValues", + Method: "Prop2IsUndefined", + Args: []string{}, + }) + return nil } // EraseUndefinedHashValuesOptionsIface is the public interface for the custom type EraseUndefinedHashValuesOptions type EraseUndefinedHashValuesOptionsIface interface { - GetOption1() string - GetOption2() string + GetOption1() string + GetOption2() string } // Struct proxy type EraseUndefinedHashValuesOptions struct { - Option1 string - Option2 string + Option1 string + Option2 string } func (e *EraseUndefinedHashValuesOptions) GetOption1() string { - return e.Option1 + return e.Option1 } func (e *EraseUndefinedHashValuesOptions) GetOption2() string { - return e.Option2 + return e.Option2 } // Class interface type ExperimentalClassIface interface { - GetReadonlyProperty() string - SetReadonlyProperty(val string) - GetMutableProperty() float64 - SetMutableProperty(val float64) - Method() + GetReadonlyProperty() string + SetReadonlyProperty(val string) + GetMutableProperty() float64 + SetMutableProperty(val float64) + Method() } // Experimental. // Struct proxy type ExperimentalClass struct { - // Experimental. - ReadonlyProperty string - // Experimental. - MutableProperty float64 + // Experimental. + ReadonlyProperty string + // Experimental. + MutableProperty float64 } func (e *ExperimentalClass) GetReadonlyProperty() string { - return e.ReadonlyProperty + return e.ReadonlyProperty } func (e *ExperimentalClass) GetMutableProperty() float64 { - return e.MutableProperty + return e.MutableProperty } func NewExperimentalClass(readonlyString string, mutableNumber float64) ExperimentalClassIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ExperimentalClass", - Method: "Constructor", - Args: []string{"string", "number",}, - }) - return &ExperimentalClass{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ExperimentalClass", + Method: "Constructor", + Args: []string{"string", "number",}, + }) + return &ExperimentalClass{} } func (e *ExperimentalClass) SetReadonlyProperty(val string) { - e.ReadonlyProperty = val + e.ReadonlyProperty = val } func (e *ExperimentalClass) SetMutableProperty(val float64) { - e.MutableProperty = val + e.MutableProperty = val } func (e *ExperimentalClass) Method() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ExperimentalClass", - Method: "Method", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ExperimentalClass", + Method: "Method", + Args: []string{}, + }) } // Experimental. type ExperimentalEnum string const ( - ExperimentalEnumOptionA ExperimentalEnum = "OPTION_A" - ExperimentalEnumOptionB ExperimentalEnum = "OPTION_B" + ExperimentalEnumOptionA ExperimentalEnum = "OPTION_A" + ExperimentalEnumOptionB ExperimentalEnum = "OPTION_B" ) // ExperimentalStructIface is the public interface for the custom type ExperimentalStruct // Experimental. type ExperimentalStructIface interface { - GetReadonlyProperty() string + GetReadonlyProperty() string } // Experimental. // Struct proxy type ExperimentalStruct struct { - // Experimental. - ReadonlyProperty string + // Experimental. + ReadonlyProperty string } func (e *ExperimentalStruct) GetReadonlyProperty() string { - return e.ReadonlyProperty + return e.ReadonlyProperty } // Class interface type ExportedBaseClassIface interface { - GetSuccess() bool - SetSuccess(val bool) + GetSuccess() bool + SetSuccess(val bool) } // Struct proxy type ExportedBaseClass struct { - Success bool + Success bool } func (e *ExportedBaseClass) GetSuccess() bool { - return e.Success + return e.Success } func NewExportedBaseClass(success bool) ExportedBaseClassIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ExportedBaseClass", - Method: "Constructor", - Args: []string{"boolean",}, - }) - return &ExportedBaseClass{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ExportedBaseClass", + Method: "Constructor", + Args: []string{"boolean",}, + }) + return &ExportedBaseClass{} } func (e *ExportedBaseClass) SetSuccess(val bool) { - e.Success = val + e.Success = val } // ExtendsInternalInterfaceIface is the public interface for the custom type ExtendsInternalInterface type ExtendsInternalInterfaceIface interface { - GetBoom() bool - GetProp() string + GetBoom() bool + GetProp() string } // Struct proxy type ExtendsInternalInterface struct { - Boom bool - Prop string + Boom bool + Prop string } func (e *ExtendsInternalInterface) GetBoom() bool { - return e.Boom + return e.Boom } func (e *ExtendsInternalInterface) GetProp() string { - return e.Prop + return e.Prop } // Class interface type ExternalClassIface interface { - GetReadonlyProperty() string - SetReadonlyProperty(val string) - GetMutableProperty() float64 - SetMutableProperty(val float64) - Method() + GetReadonlyProperty() string + SetReadonlyProperty(val string) + GetMutableProperty() float64 + SetMutableProperty(val float64) + Method() } // Struct proxy type ExternalClass struct { - ReadonlyProperty string - MutableProperty float64 + ReadonlyProperty string + MutableProperty float64 } func (e *ExternalClass) GetReadonlyProperty() string { - return e.ReadonlyProperty + return e.ReadonlyProperty } func (e *ExternalClass) GetMutableProperty() float64 { - return e.MutableProperty + return e.MutableProperty } func NewExternalClass(readonlyString string, mutableNumber float64) ExternalClassIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ExternalClass", - Method: "Constructor", - Args: []string{"string", "number",}, - }) - return &ExternalClass{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ExternalClass", + Method: "Constructor", + Args: []string{"string", "number",}, + }) + return &ExternalClass{} } func (e *ExternalClass) SetReadonlyProperty(val string) { - e.ReadonlyProperty = val + e.ReadonlyProperty = val } func (e *ExternalClass) SetMutableProperty(val float64) { - e.MutableProperty = val + e.MutableProperty = val } func (e *ExternalClass) Method() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ExternalClass", - Method: "Method", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ExternalClass", + Method: "Method", + Args: []string{}, + }) } type ExternalEnum string const ( - ExternalEnumOptionA ExternalEnum = "OPTION_A" - ExternalEnumOptionB ExternalEnum = "OPTION_B" + ExternalEnumOptionA ExternalEnum = "OPTION_A" + ExternalEnumOptionB ExternalEnum = "OPTION_B" ) // ExternalStructIface is the public interface for the custom type ExternalStruct type ExternalStructIface interface { - GetReadonlyProperty() string + GetReadonlyProperty() string } // Struct proxy type ExternalStruct struct { - ReadonlyProperty string + ReadonlyProperty string } func (e *ExternalStruct) GetReadonlyProperty() string { - return e.ReadonlyProperty + return e.ReadonlyProperty } // Class interface type GiveMeStructsIface interface { - GetStructLiteral() scopejsiicalclib.StructWithOnlyOptionals - SetStructLiteral(val scopejsiicalclib.StructWithOnlyOptionals) - DerivedToFirst(derived DerivedStruct) scopejsiicalclib.MyFirstStruct - ReadDerivedNonPrimitive(derived DerivedStruct) DoubleTrouble - ReadFirstNumber(first scopejsiicalclib.MyFirstStruct) float64 + GetStructLiteral() scopejsiicalclib.StructWithOnlyOptionals + SetStructLiteral(val scopejsiicalclib.StructWithOnlyOptionals) + DerivedToFirst(derived DerivedStruct) scopejsiicalclib.MyFirstStruct + ReadDerivedNonPrimitive(derived DerivedStruct) DoubleTrouble + ReadFirstNumber(first scopejsiicalclib.MyFirstStruct) float64 } // Struct proxy type GiveMeStructs struct { - StructLiteral scopejsiicalclib.StructWithOnlyOptionals + StructLiteral scopejsiicalclib.StructWithOnlyOptionals } func (g *GiveMeStructs) GetStructLiteral() scopejsiicalclib.StructWithOnlyOptionals { - return g.StructLiteral + return g.StructLiteral } func NewGiveMeStructs() GiveMeStructsIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "GiveMeStructs", - Method: "Constructor", - Args: []string{}, - }) - return &GiveMeStructs{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "GiveMeStructs", + Method: "Constructor", + Args: []string{}, + }) + return &GiveMeStructs{} } func (g *GiveMeStructs) SetStructLiteral(val scopejsiicalclib.StructWithOnlyOptionals) { - g.StructLiteral = val + g.StructLiteral = val } func (g *GiveMeStructs) DerivedToFirst(derived DerivedStruct) scopejsiicalclib.MyFirstStruct { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "GiveMeStructs", - Method: "DerivedToFirst", - Args: []string{"jsii-calc.DerivedStruct",}, - }) - return scopejsiicalclib.MyFirstStruct{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "GiveMeStructs", + Method: "DerivedToFirst", + Args: []string{"jsii-calc.DerivedStruct",}, + }) + return scopejsiicalclib.MyFirstStruct{} } func (g *GiveMeStructs) ReadDerivedNonPrimitive(derived DerivedStruct) DoubleTrouble { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "GiveMeStructs", - Method: "ReadDerivedNonPrimitive", - Args: []string{"jsii-calc.DerivedStruct",}, - }) - return DoubleTrouble{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "GiveMeStructs", + Method: "ReadDerivedNonPrimitive", + Args: []string{"jsii-calc.DerivedStruct",}, + }) + return DoubleTrouble{} } func (g *GiveMeStructs) ReadFirstNumber(first scopejsiicalclib.MyFirstStruct) float64 { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "GiveMeStructs", - Method: "ReadFirstNumber", - Args: []string{"@scope/jsii-calc-lib.MyFirstStruct",}, - }) - return 0.0 + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "GiveMeStructs", + Method: "ReadFirstNumber", + Args: []string{"@scope/jsii-calc-lib.MyFirstStruct",}, + }) + return 0.0 } // GreeteeIface is the public interface for the custom type Greetee type GreeteeIface interface { - GetName() string + GetName() string } // These are some arguments you can pass to a method. // Struct proxy type Greetee struct { - // The name of the greetee. - Name string + // The name of the greetee. + Name string } func (g *Greetee) GetName() string { - return g.Name + return g.Name } // Class interface type GreetingAugmenterIface interface { - BetterGreeting(friendly scopejsiicalclib.IFriendly) string + BetterGreeting(friendly scopejsiicalclib.IFriendly) string } // Struct proxy @@ -3953,139 +3953,139 @@ type GreetingAugmenter struct { } func NewGreetingAugmenter() GreetingAugmenterIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "GreetingAugmenter", - Method: "Constructor", - Args: []string{}, - }) - return &GreetingAugmenter{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "GreetingAugmenter", + Method: "Constructor", + Args: []string{}, + }) + return &GreetingAugmenter{} } func (g *GreetingAugmenter) BetterGreeting(friendly scopejsiicalclib.IFriendly) string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "GreetingAugmenter", - Method: "BetterGreeting", - Args: []string{"@scope/jsii-calc-lib.IFriendly",}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "GreetingAugmenter", + Method: "BetterGreeting", + Args: []string{"@scope/jsii-calc-lib.IFriendly",}, + }) + return "NOOP_RETURN_STRING" } // We can return an anonymous interface implementation from an override without losing the interface declarations. type IAnonymousImplementationProvider interface { - ProvideAsClass() Implementation - ProvideAsInterface() IAnonymouslyImplementMe + ProvideAsClass() Implementation + ProvideAsInterface() IAnonymouslyImplementMe } type IAnonymouslyImplementMe interface { - Verb() string - GetValue() float64 + Verb() string + GetValue() float64 } type IAnotherPublicInterface interface { - GetA() string + GetA() string } type IBell interface { - Ring() + Ring() } // Takes the object parameter as an interface. type IBellRinger interface { - YourTurn(bell IBell) + YourTurn(bell IBell) } // Takes the object parameter as a calss. type IConcreteBellRinger interface { - YourTurn(bell Bell) + YourTurn(bell Bell) } // Deprecated: useless interface type IDeprecatedInterface interface { - // Deprecated: services no purpose - Method() - // Deprecated: could be better - GetMutableProperty() float64 + // Deprecated: services no purpose + Method() + // Deprecated: could be better + GetMutableProperty() float64 } // Experimental. type IExperimentalInterface interface { - // Experimental. - Method() - // Experimental. - GetMutableProperty() float64 + // Experimental. + Method() + // Experimental. + GetMutableProperty() float64 } type IExtendsPrivateInterface interface { - GetMoreThings() []string - GetPrivate() string + GetMoreThings() []string + GetPrivate() string } type IExternalInterface interface { - Method() - GetMutableProperty() float64 + Method() + GetMutableProperty() float64 } // Even friendlier classes can implement this interface. type IFriendlier interface { - scopejsiicalclib.IFriendly - // Say farewell. - Farewell() string - // Say goodbye. - // - // Returns: A goodbye blessing. - Goodbye() string + scopejsiicalclib.IFriendly + // Say farewell. + Farewell() string + // Say goodbye. + // + // Returns: A goodbye blessing. + Goodbye() string } type IFriendlyRandomGenerator interface { - IRandomNumberGenerator - scopejsiicalclib.IFriendly + IRandomNumberGenerator + scopejsiicalclib.IFriendly } // awslabs/jsii#220 Abstract return type. type IInterfaceImplementedByAbstractClass interface { - GetPropFromInterface() string + GetPropFromInterface() string } // Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype. type IInterfaceThatShouldNotBeADataType interface { - IInterfaceWithMethods - GetOtherValue() string + IInterfaceWithMethods + GetOtherValue() string } type IInterfaceWithInternal interface { - Visible() + Visible() } type IInterfaceWithMethods interface { - DoThings() - GetValue() string + DoThings() + GetValue() string } // awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods. type IInterfaceWithOptionalMethodArguments interface { - Hello(arg1 string, arg2 float64) + Hello(arg1 string, arg2 float64) } type IInterfaceWithProperties interface { - GetReadOnlyString() string - GetReadWriteString() string + GetReadOnlyString() string + GetReadWriteString() string } type IInterfaceWithPropertiesExtension interface { - IInterfaceWithProperties - GetFoo() float64 + IInterfaceWithProperties + GetFoo() float64 } type Ijsii417Derived interface { - Ijsii417PublicBaseOfBase - Bar() - Baz() - GetProperty() string + Ijsii417PublicBaseOfBase + Bar() + Baz() + GetProperty() string } type Ijsii417PublicBaseOfBase interface { - Foo() - GetHasRoot() bool + Foo() + GetHasRoot() bool } type IJsii487External interface { @@ -4098,134 +4098,134 @@ type IJsii496 interface { } type IMutableObjectLiteral interface { - GetValue() string + GetValue() string } type INonInternalInterface interface { - IAnotherPublicInterface - GetB() string - GetC() string + IAnotherPublicInterface + GetB() string + GetC() string } // Make sure that setters are properly called on objects with interfaces. type IObjectWithProperty interface { - WasSet() bool - GetProperty() string + WasSet() bool + GetProperty() string } // Checks that optional result from interface method code generates correctly. type IOptionalMethod interface { - Optional() string + Optional() string } type IPrivatelyImplemented interface { - GetSuccess() bool + GetSuccess() bool } type IPublicInterface interface { - Bye() string + Bye() string } type IPublicInterface2 interface { - Ciao() string + Ciao() string } // Generates random numbers. type IRandomNumberGenerator interface { - // Returns another random number. - // - // Returns: A random number. - Next() float64 + // Returns another random number. + // + // Returns: A random number. + Next() float64 } // Returns a subclass of a known class which implements an interface. type IReturnJsii976 interface { - GetFoo() float64 + GetFoo() float64 } type IReturnsNumber interface { - ObtainNumber() scopejsiicalclib.IDoublable - GetNumberProp() scopejsiicalclib.Number + ObtainNumber() scopejsiicalclib.IDoublable + GetNumberProp() scopejsiicalclib.Number } type IStableInterface interface { - Method() - GetMutableProperty() float64 + Method() + GetMutableProperty() float64 } // Verifies that a "pure" implementation of an interface works correctly. type IStructReturningDelegate interface { - ReturnStruct() StructB + ReturnStruct() StructB } // Implement this interface. type IWallClock interface { - // Returns the current time, formatted as an ISO-8601 string. - Iso8601Now() string + // Returns the current time, formatted as an ISO-8601 string. + Iso8601Now() string } // Class interface type ImplementInternalInterfaceIface interface { - GetProp() string - SetProp(val string) + GetProp() string + SetProp(val string) } // Struct proxy type ImplementInternalInterface struct { - Prop string + Prop string } func (i *ImplementInternalInterface) GetProp() string { - return i.Prop + return i.Prop } func NewImplementInternalInterface() ImplementInternalInterfaceIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ImplementInternalInterface", - Method: "Constructor", - Args: []string{}, - }) - return &ImplementInternalInterface{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ImplementInternalInterface", + Method: "Constructor", + Args: []string{}, + }) + return &ImplementInternalInterface{} } func (i *ImplementInternalInterface) SetProp(val string) { - i.Prop = val + i.Prop = val } // Class interface type ImplementationIface interface { - GetValue() float64 - SetValue(val float64) + GetValue() float64 + SetValue(val float64) } // Struct proxy type Implementation struct { - Value float64 + Value float64 } func (i *Implementation) GetValue() float64 { - return i.Value + return i.Value } func NewImplementation() ImplementationIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Implementation", - Method: "Constructor", - Args: []string{}, - }) - return &Implementation{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Implementation", + Method: "Constructor", + Args: []string{}, + }) + return &Implementation{} } func (i *Implementation) SetValue(val float64) { - i.Value = val + i.Value = val } // Class interface type ImplementsInterfaceWithInternalIface interface { - IInterfaceWithInternal - Visible() + IInterfaceWithInternal + Visible() } // Struct proxy @@ -4233,26 +4233,26 @@ type ImplementsInterfaceWithInternal struct { } func NewImplementsInterfaceWithInternal() ImplementsInterfaceWithInternalIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ImplementsInterfaceWithInternal", - Method: "Constructor", - Args: []string{}, - }) - return &ImplementsInterfaceWithInternal{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ImplementsInterfaceWithInternal", + Method: "Constructor", + Args: []string{}, + }) + return &ImplementsInterfaceWithInternal{} } func (i *ImplementsInterfaceWithInternal) Visible() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ImplementsInterfaceWithInternal", - Method: "Visible", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ImplementsInterfaceWithInternal", + Method: "Visible", + Args: []string{}, + }) } // Class interface type ImplementsInterfaceWithInternalSubclassIface interface { - IInterfaceWithInternal - Visible() + IInterfaceWithInternal + Visible() } // Struct proxy @@ -4260,83 +4260,83 @@ type ImplementsInterfaceWithInternalSubclass struct { } func NewImplementsInterfaceWithInternalSubclass() ImplementsInterfaceWithInternalSubclassIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ImplementsInterfaceWithInternalSubclass", - Method: "Constructor", - Args: []string{}, - }) - return &ImplementsInterfaceWithInternalSubclass{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ImplementsInterfaceWithInternalSubclass", + Method: "Constructor", + Args: []string{}, + }) + return &ImplementsInterfaceWithInternalSubclass{} } func (i *ImplementsInterfaceWithInternalSubclass) Visible() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ImplementsInterfaceWithInternalSubclass", - Method: "Visible", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ImplementsInterfaceWithInternalSubclass", + Method: "Visible", + Args: []string{}, + }) } // Class interface type ImplementsPrivateInterfaceIface interface { - GetPrivate() string - SetPrivate(val string) + GetPrivate() string + SetPrivate(val string) } // Struct proxy type ImplementsPrivateInterface struct { - Private string + Private string } func (i *ImplementsPrivateInterface) GetPrivate() string { - return i.Private + return i.Private } func NewImplementsPrivateInterface() ImplementsPrivateInterfaceIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ImplementsPrivateInterface", - Method: "Constructor", - Args: []string{}, - }) - return &ImplementsPrivateInterface{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ImplementsPrivateInterface", + Method: "Constructor", + Args: []string{}, + }) + return &ImplementsPrivateInterface{} } func (i *ImplementsPrivateInterface) SetPrivate(val string) { - i.Private = val + i.Private = val } // ImplictBaseOfBaseIface is the public interface for the custom type ImplictBaseOfBase type ImplictBaseOfBaseIface interface { - GetFoo() scopejsiicalcbaseofbase.Very - GetBar() string - GetGoo() string + GetFoo() scopejsiicalcbaseofbase.Very + GetBar() string + GetGoo() string } // Struct proxy type ImplictBaseOfBase struct { - Foo scopejsiicalcbaseofbase.Very - Bar string - Goo string + Foo scopejsiicalcbaseofbase.Very + Bar string + Goo string } func (i *ImplictBaseOfBase) GetFoo() scopejsiicalcbaseofbase.Very { - return i.Foo + return i.Foo } func (i *ImplictBaseOfBase) GetBar() string { - return i.Bar + return i.Bar } func (i *ImplictBaseOfBase) GetGoo() string { - return i.Goo + return i.Goo } // Class interface type InbetweenClassIface interface { - IPublicInterface2 - Hello() - Ciao() string + IPublicInterface2 + Hello() + Ciao() string } // Struct proxy @@ -4344,29 +4344,29 @@ type InbetweenClass struct { } func NewInbetweenClass() InbetweenClassIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "InbetweenClass", - Method: "Constructor", - Args: []string{}, - }) - return &InbetweenClass{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "InbetweenClass", + Method: "Constructor", + Args: []string{}, + }) + return &InbetweenClass{} } func (i *InbetweenClass) Hello() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "InbetweenClass", - Method: "Hello", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "InbetweenClass", + Method: "Hello", + Args: []string{}, + }) } func (i *InbetweenClass) Ciao() string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "InbetweenClass", - Method: "Ciao", - Args: []string{}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "InbetweenClass", + Method: "Ciao", + Args: []string{}, + }) + return "NOOP_RETURN_STRING" } // Class interface @@ -4381,39 +4381,39 @@ type InterfaceCollections struct { } func InterfaceCollections_ListOfInterfaces() []IBell { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "InterfaceCollections", - Method: "ListOfInterfaces", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "InterfaceCollections", + Method: "ListOfInterfaces", + Args: []string{}, + }) + return nil } func InterfaceCollections_ListOfStructs() []StructA { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "InterfaceCollections", - Method: "ListOfStructs", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "InterfaceCollections", + Method: "ListOfStructs", + Args: []string{}, + }) + return nil } func InterfaceCollections_MapOfInterfaces() map[string]IBell { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "InterfaceCollections", - Method: "MapOfInterfaces", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "InterfaceCollections", + Method: "MapOfInterfaces", + Args: []string{}, + }) + return nil } func InterfaceCollections_MapOfStructs() map[string]StructA { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "InterfaceCollections", - Method: "MapOfStructs", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "InterfaceCollections", + Method: "MapOfStructs", + Args: []string{}, + }) + return nil } // Class interface @@ -4426,17 +4426,17 @@ type InterfacesMaker struct { } func InterfacesMaker_MakeInterfaces(count float64) []scopejsiicalclib.IDoublable { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "InterfacesMaker", - Method: "MakeInterfaces", - Args: []string{"number",}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "InterfacesMaker", + Method: "MakeInterfaces", + Args: []string{"number",}, + }) + return nil } // Class interface type IsomorphismIface interface { - Myself() Isomorphism + Myself() Isomorphism } // Checks the "same instance" isomorphism is preserved within the constructor. @@ -4448,149 +4448,149 @@ type Isomorphism struct { } func NewIsomorphism() IsomorphismIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Isomorphism", - Method: "Constructor", - Args: []string{}, - }) - return &Isomorphism{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Isomorphism", + Method: "Constructor", + Args: []string{}, + }) + return &Isomorphism{} } func (i *Isomorphism) Myself() Isomorphism { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Isomorphism", - Method: "Myself", - Args: []string{}, - }) - return Isomorphism{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Isomorphism", + Method: "Myself", + Args: []string{}, + }) + return Isomorphism{} } // Class interface type Jsii417DerivedIface interface { - GetHasRoot() bool - SetHasRoot(val bool) - GetProperty() string - Foo() - Bar() - Baz() + GetHasRoot() bool + SetHasRoot(val bool) + GetProperty() string + Foo() + Bar() + Baz() } // Struct proxy type Jsii417Derived struct { - HasRoot bool - Property string + HasRoot bool + Property string } func (j *Jsii417Derived) GetHasRoot() bool { - return j.HasRoot + return j.HasRoot } func (j *Jsii417Derived) GetProperty() string { - return j.Property + return j.Property } func NewJsii417Derived(property string) Jsii417DerivedIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Jsii417Derived", - Method: "Constructor", - Args: []string{"string",}, - }) - return &Jsii417Derived{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Jsii417Derived", + Method: "Constructor", + Args: []string{"string",}, + }) + return &Jsii417Derived{} } func (j *Jsii417Derived) SetHasRoot(val bool) { - j.HasRoot = val + j.HasRoot = val } func (j *Jsii417Derived) SetProperty(val string) { - j.Property = val + j.Property = val } func Jsii417Derived_MakeInstance() Jsii417PublicBaseOfBase { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Jsii417Derived", - Method: "MakeInstance", - Args: []string{}, - }) - return Jsii417PublicBaseOfBase{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Jsii417Derived", + Method: "MakeInstance", + Args: []string{}, + }) + return Jsii417PublicBaseOfBase{} } func (j *Jsii417Derived) Foo() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Jsii417Derived", - Method: "Foo", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Jsii417Derived", + Method: "Foo", + Args: []string{}, + }) } func (j *Jsii417Derived) Bar() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Jsii417Derived", - Method: "Bar", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Jsii417Derived", + Method: "Bar", + Args: []string{}, + }) } func (j *Jsii417Derived) Baz() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Jsii417Derived", - Method: "Baz", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Jsii417Derived", + Method: "Baz", + Args: []string{}, + }) } // Class interface type Jsii417PublicBaseOfBaseIface interface { - GetHasRoot() bool - SetHasRoot(val bool) - Foo() + GetHasRoot() bool + SetHasRoot(val bool) + Foo() } // Struct proxy type Jsii417PublicBaseOfBase struct { - HasRoot bool + HasRoot bool } func (j *Jsii417PublicBaseOfBase) GetHasRoot() bool { - return j.HasRoot + return j.HasRoot } func NewJsii417PublicBaseOfBase() Jsii417PublicBaseOfBaseIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Jsii417PublicBaseOfBase", - Method: "Constructor", - Args: []string{}, - }) - return &Jsii417PublicBaseOfBase{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Jsii417PublicBaseOfBase", + Method: "Constructor", + Args: []string{}, + }) + return &Jsii417PublicBaseOfBase{} } func (j *Jsii417PublicBaseOfBase) SetHasRoot(val bool) { - j.HasRoot = val + j.HasRoot = val } func Jsii417PublicBaseOfBase_MakeInstance() Jsii417PublicBaseOfBase { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Jsii417PublicBaseOfBase", - Method: "MakeInstance", - Args: []string{}, - }) - return Jsii417PublicBaseOfBase{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Jsii417PublicBaseOfBase", + Method: "MakeInstance", + Args: []string{}, + }) + return Jsii417PublicBaseOfBase{} } func (j *Jsii417PublicBaseOfBase) Foo() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Jsii417PublicBaseOfBase", - Method: "Foo", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Jsii417PublicBaseOfBase", + Method: "Foo", + Args: []string{}, + }) } // Class interface type JsObjectLiteralForInterfaceIface interface { - GiveMeFriendly() scopejsiicalclib.IFriendly - GiveMeFriendlyGenerator() IFriendlyRandomGenerator + GiveMeFriendly() scopejsiicalclib.IFriendly + GiveMeFriendlyGenerator() IFriendlyRandomGenerator } // Struct proxy @@ -4598,35 +4598,35 @@ type JsObjectLiteralForInterface struct { } func NewJsObjectLiteralForInterface() JsObjectLiteralForInterfaceIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JsObjectLiteralForInterface", - Method: "Constructor", - Args: []string{}, - }) - return &JsObjectLiteralForInterface{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JsObjectLiteralForInterface", + Method: "Constructor", + Args: []string{}, + }) + return &JsObjectLiteralForInterface{} } func (j *JsObjectLiteralForInterface) GiveMeFriendly() scopejsiicalclib.IFriendly { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JsObjectLiteralForInterface", - Method: "GiveMeFriendly", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JsObjectLiteralForInterface", + Method: "GiveMeFriendly", + Args: []string{}, + }) + return nil } func (j *JsObjectLiteralForInterface) GiveMeFriendlyGenerator() IFriendlyRandomGenerator { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JsObjectLiteralForInterface", - Method: "GiveMeFriendlyGenerator", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JsObjectLiteralForInterface", + Method: "GiveMeFriendlyGenerator", + Args: []string{}, + }) + return nil } // Class interface type JsObjectLiteralToNativeIface interface { - ReturnLiteral() JsObjectLiteralToNativeClass + ReturnLiteral() JsObjectLiteralToNativeClass } // Struct proxy @@ -4634,564 +4634,564 @@ type JsObjectLiteralToNative struct { } func NewJsObjectLiteralToNative() JsObjectLiteralToNativeIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JsObjectLiteralToNative", - Method: "Constructor", - Args: []string{}, - }) - return &JsObjectLiteralToNative{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JsObjectLiteralToNative", + Method: "Constructor", + Args: []string{}, + }) + return &JsObjectLiteralToNative{} } func (j *JsObjectLiteralToNative) ReturnLiteral() JsObjectLiteralToNativeClass { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JsObjectLiteralToNative", - Method: "ReturnLiteral", - Args: []string{}, - }) - return JsObjectLiteralToNativeClass{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JsObjectLiteralToNative", + Method: "ReturnLiteral", + Args: []string{}, + }) + return JsObjectLiteralToNativeClass{} } // Class interface type JsObjectLiteralToNativeClassIface interface { - GetPropA() string - SetPropA(val string) - GetPropB() float64 - SetPropB(val float64) + GetPropA() string + SetPropA(val string) + GetPropB() float64 + SetPropB(val float64) } // Struct proxy type JsObjectLiteralToNativeClass struct { - PropA string - PropB float64 + PropA string + PropB float64 } func (j *JsObjectLiteralToNativeClass) GetPropA() string { - return j.PropA + return j.PropA } func (j *JsObjectLiteralToNativeClass) GetPropB() float64 { - return j.PropB + return j.PropB } func NewJsObjectLiteralToNativeClass() JsObjectLiteralToNativeClassIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JsObjectLiteralToNativeClass", - Method: "Constructor", - Args: []string{}, - }) - return &JsObjectLiteralToNativeClass{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JsObjectLiteralToNativeClass", + Method: "Constructor", + Args: []string{}, + }) + return &JsObjectLiteralToNativeClass{} } func (j *JsObjectLiteralToNativeClass) SetPropA(val string) { - j.PropA = val + j.PropA = val } func (j *JsObjectLiteralToNativeClass) SetPropB(val float64) { - j.PropB = val + j.PropB = val } // Class interface type JavaReservedWordsIface interface { - GetWhile() string - SetWhile(val string) - Abstract() - Assert() - Boolean() - Break() - Byte() - Case() - Catch() - Char() - Class() - Const() - Continue() - Default() - Do() - Double() - Else() - Enum() - Extends() - False() - Final() - Finally() - Float() - For() - Goto() - If() - Implements() - Import() - Instanceof() - Int() - Interface() - Long() - Native() - New() - Null() - Package() - Private() - Protected() - Public() - Return() - Short() - Static() - Strictfp() - Super() - Switch() - Synchronized() - This() - Throw() - Throws() - Transient() - True() - Try() - Void() - Volatile() + GetWhile() string + SetWhile(val string) + Abstract() + Assert() + Boolean() + Break() + Byte() + Case() + Catch() + Char() + Class() + Const() + Continue() + Default() + Do() + Double() + Else() + Enum() + Extends() + False() + Final() + Finally() + Float() + For() + Goto() + If() + Implements() + Import() + Instanceof() + Int() + Interface() + Long() + Native() + New() + Null() + Package() + Private() + Protected() + Public() + Return() + Short() + Static() + Strictfp() + Super() + Switch() + Synchronized() + This() + Throw() + Throws() + Transient() + True() + Try() + Void() + Volatile() } // Struct proxy type JavaReservedWords struct { - While string + While string } func (j *JavaReservedWords) GetWhile() string { - return j.While + return j.While } func NewJavaReservedWords() JavaReservedWordsIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Constructor", - Args: []string{}, - }) - return &JavaReservedWords{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Constructor", + Args: []string{}, + }) + return &JavaReservedWords{} } func (j *JavaReservedWords) SetWhile(val string) { - j.While = val + j.While = val } func (j *JavaReservedWords) Abstract() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Abstract", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Abstract", + Args: []string{}, + }) } func (j *JavaReservedWords) Assert() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Assert", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Assert", + Args: []string{}, + }) } func (j *JavaReservedWords) Boolean() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Boolean", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Boolean", + Args: []string{}, + }) } func (j *JavaReservedWords) Break() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Break", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Break", + Args: []string{}, + }) } func (j *JavaReservedWords) Byte() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Byte", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Byte", + Args: []string{}, + }) } func (j *JavaReservedWords) Case() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Case", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Case", + Args: []string{}, + }) } func (j *JavaReservedWords) Catch() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Catch", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Catch", + Args: []string{}, + }) } func (j *JavaReservedWords) Char() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Char", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Char", + Args: []string{}, + }) } func (j *JavaReservedWords) Class() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Class", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Class", + Args: []string{}, + }) } func (j *JavaReservedWords) Const() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Const", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Const", + Args: []string{}, + }) } func (j *JavaReservedWords) Continue() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Continue", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Continue", + Args: []string{}, + }) } func (j *JavaReservedWords) Default() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Default", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Default", + Args: []string{}, + }) } func (j *JavaReservedWords) Do() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Do", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Do", + Args: []string{}, + }) } func (j *JavaReservedWords) Double() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Double", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Double", + Args: []string{}, + }) } func (j *JavaReservedWords) Else() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Else", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Else", + Args: []string{}, + }) } func (j *JavaReservedWords) Enum() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Enum", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Enum", + Args: []string{}, + }) } func (j *JavaReservedWords) Extends() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Extends", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Extends", + Args: []string{}, + }) } func (j *JavaReservedWords) False() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "False", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "False", + Args: []string{}, + }) } func (j *JavaReservedWords) Final() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Final", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Final", + Args: []string{}, + }) } func (j *JavaReservedWords) Finally() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Finally", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Finally", + Args: []string{}, + }) } func (j *JavaReservedWords) Float() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Float", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Float", + Args: []string{}, + }) } func (j *JavaReservedWords) For() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "For", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "For", + Args: []string{}, + }) } func (j *JavaReservedWords) Goto() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Goto", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Goto", + Args: []string{}, + }) } func (j *JavaReservedWords) If() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "If", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "If", + Args: []string{}, + }) } func (j *JavaReservedWords) Implements() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Implements", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Implements", + Args: []string{}, + }) } func (j *JavaReservedWords) Import() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Import", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Import", + Args: []string{}, + }) } func (j *JavaReservedWords) Instanceof() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Instanceof", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Instanceof", + Args: []string{}, + }) } func (j *JavaReservedWords) Int() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Int", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Int", + Args: []string{}, + }) } func (j *JavaReservedWords) Interface() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Interface", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Interface", + Args: []string{}, + }) } func (j *JavaReservedWords) Long() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Long", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Long", + Args: []string{}, + }) } func (j *JavaReservedWords) Native() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Native", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Native", + Args: []string{}, + }) } func (j *JavaReservedWords) New() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "New", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "New", + Args: []string{}, + }) } func (j *JavaReservedWords) Null() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Null", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Null", + Args: []string{}, + }) } func (j *JavaReservedWords) Package() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Package", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Package", + Args: []string{}, + }) } func (j *JavaReservedWords) Private() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Private", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Private", + Args: []string{}, + }) } func (j *JavaReservedWords) Protected() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Protected", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Protected", + Args: []string{}, + }) } func (j *JavaReservedWords) Public() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Public", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Public", + Args: []string{}, + }) } func (j *JavaReservedWords) Return() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Return", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Return", + Args: []string{}, + }) } func (j *JavaReservedWords) Short() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Short", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Short", + Args: []string{}, + }) } func (j *JavaReservedWords) Static() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Static", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Static", + Args: []string{}, + }) } func (j *JavaReservedWords) Strictfp() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Strictfp", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Strictfp", + Args: []string{}, + }) } func (j *JavaReservedWords) Super() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Super", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Super", + Args: []string{}, + }) } func (j *JavaReservedWords) Switch() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Switch", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Switch", + Args: []string{}, + }) } func (j *JavaReservedWords) Synchronized() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Synchronized", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Synchronized", + Args: []string{}, + }) } func (j *JavaReservedWords) This() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "This", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "This", + Args: []string{}, + }) } func (j *JavaReservedWords) Throw() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Throw", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Throw", + Args: []string{}, + }) } func (j *JavaReservedWords) Throws() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Throws", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Throws", + Args: []string{}, + }) } func (j *JavaReservedWords) Transient() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Transient", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Transient", + Args: []string{}, + }) } func (j *JavaReservedWords) True() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "True", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "True", + Args: []string{}, + }) } func (j *JavaReservedWords) Try() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Try", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Try", + Args: []string{}, + }) } func (j *JavaReservedWords) Void() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Void", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Void", + Args: []string{}, + }) } func (j *JavaReservedWords) Volatile() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JavaReservedWords", - Method: "Volatile", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JavaReservedWords", + Method: "Volatile", + Args: []string{}, + }) } // Class interface type Jsii487DerivedIface interface { - IJsii487External2 - IJsii487External + IJsii487External2 + IJsii487External } // Struct proxy @@ -5199,17 +5199,17 @@ type Jsii487Derived struct { } func NewJsii487Derived() Jsii487DerivedIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Jsii487Derived", - Method: "Constructor", - Args: []string{}, - }) - return &Jsii487Derived{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Jsii487Derived", + Method: "Constructor", + Args: []string{}, + }) + return &Jsii487Derived{} } // Class interface type Jsii496DerivedIface interface { - IJsii496 + IJsii496 } // Struct proxy @@ -5217,43 +5217,43 @@ type Jsii496Derived struct { } func NewJsii496Derived() Jsii496DerivedIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Jsii496Derived", - Method: "Constructor", - Args: []string{}, - }) - return &Jsii496Derived{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Jsii496Derived", + Method: "Constructor", + Args: []string{}, + }) + return &Jsii496Derived{} } // Class interface type JsiiAgentIface interface { - GetValue() string - SetValue(val string) + GetValue() string + SetValue(val string) } // Host runtime version should be set via JSII_AGENT. // Struct proxy type JsiiAgent struct { - // Returns the value of the JSII_AGENT environment variable. - Value string + // Returns the value of the JSII_AGENT environment variable. + Value string } func (j *JsiiAgent) GetValue() string { - return j.Value + return j.Value } func NewJsiiAgent() JsiiAgentIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JsiiAgent", - Method: "Constructor", - Args: []string{}, - }) - return &JsiiAgent{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JsiiAgent", + Method: "Constructor", + Args: []string{}, + }) + return &JsiiAgent{} } func (j *JsiiAgent) SetValue(val string) { - j.Value = val + j.Value = val } // Class interface @@ -5268,528 +5268,528 @@ type JsonFormatter struct { } func JsonFormatter_AnyArray() jsii.Any { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JsonFormatter", - Method: "AnyArray", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JsonFormatter", + Method: "AnyArray", + Args: []string{}, + }) + return nil } func JsonFormatter_AnyBooleanFalse() jsii.Any { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JsonFormatter", - Method: "AnyBooleanFalse", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JsonFormatter", + Method: "AnyBooleanFalse", + Args: []string{}, + }) + return nil } func JsonFormatter_AnyBooleanTrue() jsii.Any { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JsonFormatter", - Method: "AnyBooleanTrue", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JsonFormatter", + Method: "AnyBooleanTrue", + Args: []string{}, + }) + return nil } func JsonFormatter_AnyDate() jsii.Any { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JsonFormatter", - Method: "AnyDate", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JsonFormatter", + Method: "AnyDate", + Args: []string{}, + }) + return nil } func JsonFormatter_AnyEmptyString() jsii.Any { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JsonFormatter", - Method: "AnyEmptyString", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JsonFormatter", + Method: "AnyEmptyString", + Args: []string{}, + }) + return nil } func JsonFormatter_AnyFunction() jsii.Any { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JsonFormatter", - Method: "AnyFunction", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JsonFormatter", + Method: "AnyFunction", + Args: []string{}, + }) + return nil } func JsonFormatter_AnyHash() jsii.Any { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JsonFormatter", - Method: "AnyHash", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JsonFormatter", + Method: "AnyHash", + Args: []string{}, + }) + return nil } func JsonFormatter_AnyNull() jsii.Any { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JsonFormatter", - Method: "AnyNull", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JsonFormatter", + Method: "AnyNull", + Args: []string{}, + }) + return nil } func JsonFormatter_AnyNumber() jsii.Any { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JsonFormatter", - Method: "AnyNumber", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JsonFormatter", + Method: "AnyNumber", + Args: []string{}, + }) + return nil } func JsonFormatter_AnyRef() jsii.Any { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JsonFormatter", - Method: "AnyRef", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JsonFormatter", + Method: "AnyRef", + Args: []string{}, + }) + return nil } func JsonFormatter_AnyString() jsii.Any { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JsonFormatter", - Method: "AnyString", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JsonFormatter", + Method: "AnyString", + Args: []string{}, + }) + return nil } func JsonFormatter_AnyUndefined() jsii.Any { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JsonFormatter", - Method: "AnyUndefined", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JsonFormatter", + Method: "AnyUndefined", + Args: []string{}, + }) + return nil } func JsonFormatter_AnyZero() jsii.Any { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JsonFormatter", - Method: "AnyZero", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JsonFormatter", + Method: "AnyZero", + Args: []string{}, + }) + return nil } func JsonFormatter_Stringify(value jsii.Any) string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "JsonFormatter", - Method: "Stringify", - Args: []string{"any",}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "JsonFormatter", + Method: "Stringify", + Args: []string{"any",}, + }) + return "NOOP_RETURN_STRING" } // Class interface type LevelOneIface interface { - GetProps() LevelOneProps - SetProps(val LevelOneProps) + GetProps() LevelOneProps + SetProps(val LevelOneProps) } // Validates that nested classes get correct code generation for the occasional forward reference. // Struct proxy type LevelOne struct { - Props LevelOneProps + Props LevelOneProps } func (l *LevelOne) GetProps() LevelOneProps { - return l.Props + return l.Props } func NewLevelOne(props LevelOneProps) LevelOneIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "LevelOne", - Method: "Constructor", - Args: []string{"jsii-calc.LevelOneProps",}, - }) - return &LevelOne{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "LevelOne", + Method: "Constructor", + Args: []string{"jsii-calc.LevelOneProps",}, + }) + return &LevelOne{} } func (l *LevelOne) SetProps(val LevelOneProps) { - l.Props = val + l.Props = val } // PropBooleanValueIface is the public interface for the custom type PropBooleanValue type PropBooleanValueIface interface { - GetValue() bool + GetValue() bool } // Struct proxy type PropBooleanValue struct { - Value bool + Value bool } func (p *PropBooleanValue) GetValue() bool { - return p.Value + return p.Value } // PropPropertyIface is the public interface for the custom type PropProperty type PropPropertyIface interface { - GetProp() PropBooleanValue + GetProp() PropBooleanValue } // Struct proxy type PropProperty struct { - Prop PropBooleanValue + Prop PropBooleanValue } func (p *PropProperty) GetProp() PropBooleanValue { - return p.Prop + return p.Prop } // LevelOnePropsIface is the public interface for the custom type LevelOneProps type LevelOnePropsIface interface { - GetProp() PropProperty + GetProp() PropProperty } // Struct proxy type LevelOneProps struct { - Prop PropProperty + Prop PropProperty } func (l *LevelOneProps) GetProp() PropProperty { - return l.Prop + return l.Prop } // LoadBalancedFargateServicePropsIface is the public interface for the custom type LoadBalancedFargateServiceProps type LoadBalancedFargateServicePropsIface interface { - GetContainerPort() float64 - GetCpu() string - GetMemoryMiB() string - GetPublicLoadBalancer() bool - GetPublicTasks() bool + GetContainerPort() float64 + GetCpu() string + GetMemoryMiB() string + GetPublicLoadBalancer() bool + GetPublicTasks() bool } // jsii#298: show default values in sphinx documentation, and respect newlines. // Struct proxy type LoadBalancedFargateServiceProps struct { - // The container port of the application load balancer attached to your Fargate service. - // - // Corresponds to container port mapping. - ContainerPort float64 - // The number of cpu units used by the task. - // - // Valid values, which determines your range of valid values for the memory parameter: - // 256 (.25 vCPU) - Available memory values: 0.5GB, 1GB, 2GB - // 512 (.5 vCPU) - Available memory values: 1GB, 2GB, 3GB, 4GB - // 1024 (1 vCPU) - Available memory values: 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - // 2048 (2 vCPU) - Available memory values: Between 4GB and 16GB in 1GB increments - // 4096 (4 vCPU) - Available memory values: Between 8GB and 30GB in 1GB increments - // - // This default is set in the underlying FargateTaskDefinition construct. - Cpu string - // The amount (in MiB) of memory used by the task. - // - // This field is required and you must use one of the following values, which determines your range of valid values - // for the cpu parameter: - // - // 0.5GB, 1GB, 2GB - Available cpu values: 256 (.25 vCPU) - // - // 1GB, 2GB, 3GB, 4GB - Available cpu values: 512 (.5 vCPU) - // - // 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - Available cpu values: 1024 (1 vCPU) - // - // Between 4GB and 16GB in 1GB increments - Available cpu values: 2048 (2 vCPU) - // - // Between 8GB and 30GB in 1GB increments - Available cpu values: 4096 (4 vCPU) - // - // This default is set in the underlying FargateTaskDefinition construct. - MemoryMiB string - // Determines whether the Application Load Balancer will be internet-facing. - PublicLoadBalancer bool - // Determines whether your Fargate Service will be assigned a public IP address. - PublicTasks bool + // The container port of the application load balancer attached to your Fargate service. + // + // Corresponds to container port mapping. + ContainerPort float64 + // The number of cpu units used by the task. + // + // Valid values, which determines your range of valid values for the memory parameter: + // 256 (.25 vCPU) - Available memory values: 0.5GB, 1GB, 2GB + // 512 (.5 vCPU) - Available memory values: 1GB, 2GB, 3GB, 4GB + // 1024 (1 vCPU) - Available memory values: 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB + // 2048 (2 vCPU) - Available memory values: Between 4GB and 16GB in 1GB increments + // 4096 (4 vCPU) - Available memory values: Between 8GB and 30GB in 1GB increments + // + // This default is set in the underlying FargateTaskDefinition construct. + Cpu string + // The amount (in MiB) of memory used by the task. + // + // This field is required and you must use one of the following values, which determines your range of valid values + // for the cpu parameter: + // + // 0.5GB, 1GB, 2GB - Available cpu values: 256 (.25 vCPU) + // + // 1GB, 2GB, 3GB, 4GB - Available cpu values: 512 (.5 vCPU) + // + // 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - Available cpu values: 1024 (1 vCPU) + // + // Between 4GB and 16GB in 1GB increments - Available cpu values: 2048 (2 vCPU) + // + // Between 8GB and 30GB in 1GB increments - Available cpu values: 4096 (4 vCPU) + // + // This default is set in the underlying FargateTaskDefinition construct. + MemoryMiB string + // Determines whether the Application Load Balancer will be internet-facing. + PublicLoadBalancer bool + // Determines whether your Fargate Service will be assigned a public IP address. + PublicTasks bool } func (l *LoadBalancedFargateServiceProps) GetContainerPort() float64 { - return l.ContainerPort + return l.ContainerPort } func (l *LoadBalancedFargateServiceProps) GetCpu() string { - return l.Cpu + return l.Cpu } func (l *LoadBalancedFargateServiceProps) GetMemoryMiB() string { - return l.MemoryMiB + return l.MemoryMiB } func (l *LoadBalancedFargateServiceProps) GetPublicLoadBalancer() bool { - return l.PublicLoadBalancer + return l.PublicLoadBalancer } func (l *LoadBalancedFargateServiceProps) GetPublicTasks() bool { - return l.PublicTasks + return l.PublicTasks } // Class interface type MethodNamedPropertyIface interface { - GetElite() float64 - SetElite(val float64) - Property() string + GetElite() float64 + SetElite(val float64) + Property() string } // Struct proxy type MethodNamedProperty struct { - Elite float64 + Elite float64 } func (m *MethodNamedProperty) GetElite() float64 { - return m.Elite + return m.Elite } func NewMethodNamedProperty() MethodNamedPropertyIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "MethodNamedProperty", - Method: "Constructor", - Args: []string{}, - }) - return &MethodNamedProperty{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "MethodNamedProperty", + Method: "Constructor", + Args: []string{}, + }) + return &MethodNamedProperty{} } func (m *MethodNamedProperty) SetElite(val float64) { - m.Elite = val + m.Elite = val } func (m *MethodNamedProperty) Property() string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "MethodNamedProperty", - Method: "Property", - Args: []string{}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "MethodNamedProperty", + Method: "Property", + Args: []string{}, + }) + return "NOOP_RETURN_STRING" } // Class interface type MultiplyIface interface { - scopejsiicalclib.IFriendly - IFriendlier - scopejsiicalclib.IFriendly - IRandomNumberGenerator - GetValue() float64 - SetValue(val float64) - GetLhs() scopejsiicalclib.NumericValue - SetLhs(val scopejsiicalclib.NumericValue) - GetRhs() scopejsiicalclib.NumericValue - SetRhs(val scopejsiicalclib.NumericValue) - TypeName() jsii.Any - ToString() string - Hello() string - Farewell() string - Goodbye() string - Next() float64 + scopejsiicalclib.IFriendly + IFriendlier + scopejsiicalclib.IFriendly + IRandomNumberGenerator + GetValue() float64 + SetValue(val float64) + GetLhs() scopejsiicalclib.NumericValue + SetLhs(val scopejsiicalclib.NumericValue) + GetRhs() scopejsiicalclib.NumericValue + SetRhs(val scopejsiicalclib.NumericValue) + TypeName() jsii.Any + ToString() string + Hello() string + Farewell() string + Goodbye() string + Next() float64 } // The "*" binary operation. // Struct proxy type Multiply struct { - // (deprecated) The value. - Value float64 - // Left-hand side operand. - Lhs scopejsiicalclib.NumericValue - // Right-hand side operand. - Rhs scopejsiicalclib.NumericValue + // (deprecated) The value. + Value float64 + // Left-hand side operand. + Lhs scopejsiicalclib.NumericValue + // Right-hand side operand. + Rhs scopejsiicalclib.NumericValue } func (m *Multiply) GetValue() float64 { - return m.Value + return m.Value } func (m *Multiply) GetLhs() scopejsiicalclib.NumericValue { - return m.Lhs + return m.Lhs } func (m *Multiply) GetRhs() scopejsiicalclib.NumericValue { - return m.Rhs + return m.Rhs } // Creates a BinaryOperation. func NewMultiply(lhs scopejsiicalclib.NumericValue, rhs scopejsiicalclib.NumericValue) MultiplyIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Multiply", - Method: "Constructor", - Args: []string{"@scope/jsii-calc-lib.NumericValue", "@scope/jsii-calc-lib.NumericValue",}, - }) - return &Multiply{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Multiply", + Method: "Constructor", + Args: []string{"@scope/jsii-calc-lib.NumericValue", "@scope/jsii-calc-lib.NumericValue",}, + }) + return &Multiply{} } func (m *Multiply) SetValue(val float64) { - m.Value = val + m.Value = val } func (m *Multiply) SetLhs(val scopejsiicalclib.NumericValue) { - m.Lhs = val + m.Lhs = val } func (m *Multiply) SetRhs(val scopejsiicalclib.NumericValue) { - m.Rhs = val + m.Rhs = val } func (m *Multiply) TypeName() jsii.Any { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Multiply", - Method: "TypeName", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Multiply", + Method: "TypeName", + Args: []string{}, + }) + return nil } func (m *Multiply) ToString() string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Multiply", - Method: "ToString", - Args: []string{}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Multiply", + Method: "ToString", + Args: []string{}, + }) + return "NOOP_RETURN_STRING" } func (m *Multiply) Hello() string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Multiply", - Method: "Hello", - Args: []string{}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Multiply", + Method: "Hello", + Args: []string{}, + }) + return "NOOP_RETURN_STRING" } func (m *Multiply) Farewell() string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Multiply", - Method: "Farewell", - Args: []string{}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Multiply", + Method: "Farewell", + Args: []string{}, + }) + return "NOOP_RETURN_STRING" } func (m *Multiply) Goodbye() string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Multiply", - Method: "Goodbye", - Args: []string{}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Multiply", + Method: "Goodbye", + Args: []string{}, + }) + return "NOOP_RETURN_STRING" } func (m *Multiply) Next() float64 { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Multiply", - Method: "Next", - Args: []string{}, - }) - return 0.0 + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Multiply", + Method: "Next", + Args: []string{}, + }) + return 0.0 } // Class interface type NegateIface interface { - IFriendlier - scopejsiicalclib.IFriendly - GetValue() float64 - SetValue(val float64) - GetOperand() scopejsiicalclib.NumericValue - SetOperand(val scopejsiicalclib.NumericValue) - TypeName() jsii.Any - ToString() string - Farewell() string - Goodbye() string - Hello() string + IFriendlier + scopejsiicalclib.IFriendly + GetValue() float64 + SetValue(val float64) + GetOperand() scopejsiicalclib.NumericValue + SetOperand(val scopejsiicalclib.NumericValue) + TypeName() jsii.Any + ToString() string + Farewell() string + Goodbye() string + Hello() string } // The negation operation ("-value"). // Struct proxy type Negate struct { - // (deprecated) The value. - Value float64 - Operand scopejsiicalclib.NumericValue + // (deprecated) The value. + Value float64 + Operand scopejsiicalclib.NumericValue } func (n *Negate) GetValue() float64 { - return n.Value + return n.Value } func (n *Negate) GetOperand() scopejsiicalclib.NumericValue { - return n.Operand + return n.Operand } func NewNegate(operand scopejsiicalclib.NumericValue) NegateIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Negate", - Method: "Constructor", - Args: []string{"@scope/jsii-calc-lib.NumericValue",}, - }) - return &Negate{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Negate", + Method: "Constructor", + Args: []string{"@scope/jsii-calc-lib.NumericValue",}, + }) + return &Negate{} } func (n *Negate) SetValue(val float64) { - n.Value = val + n.Value = val } func (n *Negate) SetOperand(val scopejsiicalclib.NumericValue) { - n.Operand = val + n.Operand = val } func (n *Negate) TypeName() jsii.Any { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Negate", - Method: "TypeName", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Negate", + Method: "TypeName", + Args: []string{}, + }) + return nil } func (n *Negate) ToString() string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Negate", - Method: "ToString", - Args: []string{}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Negate", + Method: "ToString", + Args: []string{}, + }) + return "NOOP_RETURN_STRING" } func (n *Negate) Farewell() string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Negate", - Method: "Farewell", - Args: []string{}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Negate", + Method: "Farewell", + Args: []string{}, + }) + return "NOOP_RETURN_STRING" } func (n *Negate) Goodbye() string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Negate", - Method: "Goodbye", - Args: []string{}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Negate", + Method: "Goodbye", + Args: []string{}, + }) + return "NOOP_RETURN_STRING" } func (n *Negate) Hello() string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Negate", - Method: "Hello", - Args: []string{}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Negate", + Method: "Hello", + Args: []string{}, + }) + return "NOOP_RETURN_STRING" } // Class interface @@ -5801,223 +5801,223 @@ type NestedClassInstance struct { } func NestedClassInstance_MakeInstance() submodule.NestedClass { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "NestedClassInstance", - Method: "MakeInstance", - Args: []string{}, - }) - return submodule.NestedClass{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "NestedClassInstance", + Method: "MakeInstance", + Args: []string{}, + }) + return submodule.NestedClass{} } // NestedStructIface is the public interface for the custom type NestedStruct type NestedStructIface interface { - GetNumberProp() float64 + GetNumberProp() float64 } // Struct proxy type NestedStruct struct { - // When provided, must be > 0. - NumberProp float64 + // When provided, must be > 0. + NumberProp float64 } func (n *NestedStruct) GetNumberProp() float64 { - return n.NumberProp + return n.NumberProp } // Class interface type NodeStandardLibraryIface interface { - GetOsPlatform() string - SetOsPlatform(val string) - CryptoSha256() string - FsReadFile() string - FsReadFileSync() string + GetOsPlatform() string + SetOsPlatform(val string) + CryptoSha256() string + FsReadFile() string + FsReadFileSync() string } // Test fixture to verify that jsii modules can use the node standard library. // Struct proxy type NodeStandardLibrary struct { - // Returns the current os.platform() from the "os" node module. - OsPlatform string + // Returns the current os.platform() from the "os" node module. + OsPlatform string } func (n *NodeStandardLibrary) GetOsPlatform() string { - return n.OsPlatform + return n.OsPlatform } func NewNodeStandardLibrary() NodeStandardLibraryIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "NodeStandardLibrary", - Method: "Constructor", - Args: []string{}, - }) - return &NodeStandardLibrary{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "NodeStandardLibrary", + Method: "Constructor", + Args: []string{}, + }) + return &NodeStandardLibrary{} } func (n *NodeStandardLibrary) SetOsPlatform(val string) { - n.OsPlatform = val + n.OsPlatform = val } func (n *NodeStandardLibrary) CryptoSha256() string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "NodeStandardLibrary", - Method: "CryptoSha256", - Args: []string{}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "NodeStandardLibrary", + Method: "CryptoSha256", + Args: []string{}, + }) + return "NOOP_RETURN_STRING" } func (n *NodeStandardLibrary) FsReadFile() string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "NodeStandardLibrary", - Method: "FsReadFile", - Args: []string{}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "NodeStandardLibrary", + Method: "FsReadFile", + Args: []string{}, + }) + return "NOOP_RETURN_STRING" } func (n *NodeStandardLibrary) FsReadFileSync() string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "NodeStandardLibrary", - Method: "FsReadFileSync", - Args: []string{}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "NodeStandardLibrary", + Method: "FsReadFileSync", + Args: []string{}, + }) + return "NOOP_RETURN_STRING" } // Class interface type NullShouldBeTreatedAsUndefinedIface interface { - GetChangeMeToUndefined() string - SetChangeMeToUndefined(val string) - GiveMeUndefined(value jsii.Any) - GiveMeUndefinedInsideAnObject(input NullShouldBeTreatedAsUndefinedData) - VerifyPropertyIsUndefined() + GetChangeMeToUndefined() string + SetChangeMeToUndefined(val string) + GiveMeUndefined(value jsii.Any) + GiveMeUndefinedInsideAnObject(input NullShouldBeTreatedAsUndefinedData) + VerifyPropertyIsUndefined() } // jsii#282, aws-cdk#157: null should be treated as "undefined". // Struct proxy type NullShouldBeTreatedAsUndefined struct { - ChangeMeToUndefined string + ChangeMeToUndefined string } func (n *NullShouldBeTreatedAsUndefined) GetChangeMeToUndefined() string { - return n.ChangeMeToUndefined + return n.ChangeMeToUndefined } func NewNullShouldBeTreatedAsUndefined(_param1 string, optional jsii.Any) NullShouldBeTreatedAsUndefinedIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "NullShouldBeTreatedAsUndefined", - Method: "Constructor", - Args: []string{"string", "any",}, - }) - return &NullShouldBeTreatedAsUndefined{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "NullShouldBeTreatedAsUndefined", + Method: "Constructor", + Args: []string{"string", "any",}, + }) + return &NullShouldBeTreatedAsUndefined{} } func (n *NullShouldBeTreatedAsUndefined) SetChangeMeToUndefined(val string) { - n.ChangeMeToUndefined = val + n.ChangeMeToUndefined = val } func (n *NullShouldBeTreatedAsUndefined) GiveMeUndefined(value jsii.Any) { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "NullShouldBeTreatedAsUndefined", - Method: "GiveMeUndefined", - Args: []string{"any",}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "NullShouldBeTreatedAsUndefined", + Method: "GiveMeUndefined", + Args: []string{"any",}, + }) } func (n *NullShouldBeTreatedAsUndefined) GiveMeUndefinedInsideAnObject(input NullShouldBeTreatedAsUndefinedData) { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "NullShouldBeTreatedAsUndefined", - Method: "GiveMeUndefinedInsideAnObject", - Args: []string{"jsii-calc.NullShouldBeTreatedAsUndefinedData",}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "NullShouldBeTreatedAsUndefined", + Method: "GiveMeUndefinedInsideAnObject", + Args: []string{"jsii-calc.NullShouldBeTreatedAsUndefinedData",}, + }) } func (n *NullShouldBeTreatedAsUndefined) VerifyPropertyIsUndefined() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "NullShouldBeTreatedAsUndefined", - Method: "VerifyPropertyIsUndefined", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "NullShouldBeTreatedAsUndefined", + Method: "VerifyPropertyIsUndefined", + Args: []string{}, + }) } // NullShouldBeTreatedAsUndefinedDataIface is the public interface for the custom type NullShouldBeTreatedAsUndefinedData type NullShouldBeTreatedAsUndefinedDataIface interface { - GetArrayWithThreeElementsAndUndefinedAsSecondArgument() []jsii.Any - GetThisShouldBeUndefined() jsii.Any + GetArrayWithThreeElementsAndUndefinedAsSecondArgument() []jsii.Any + GetThisShouldBeUndefined() jsii.Any } // Struct proxy type NullShouldBeTreatedAsUndefinedData struct { - ArrayWithThreeElementsAndUndefinedAsSecondArgument []jsii.Any - ThisShouldBeUndefined jsii.Any + ArrayWithThreeElementsAndUndefinedAsSecondArgument []jsii.Any + ThisShouldBeUndefined jsii.Any } func (n *NullShouldBeTreatedAsUndefinedData) GetArrayWithThreeElementsAndUndefinedAsSecondArgument() []jsii.Any { - return n.ArrayWithThreeElementsAndUndefinedAsSecondArgument + return n.ArrayWithThreeElementsAndUndefinedAsSecondArgument } func (n *NullShouldBeTreatedAsUndefinedData) GetThisShouldBeUndefined() jsii.Any { - return n.ThisShouldBeUndefined + return n.ThisShouldBeUndefined } // Class interface type NumberGeneratorIface interface { - GetGenerator() IRandomNumberGenerator - SetGenerator(val IRandomNumberGenerator) - IsSameGenerator(gen IRandomNumberGenerator) bool - NextTimes100() float64 + GetGenerator() IRandomNumberGenerator + SetGenerator(val IRandomNumberGenerator) + IsSameGenerator(gen IRandomNumberGenerator) bool + NextTimes100() float64 } // This allows us to test that a reference can be stored for objects that implement interfaces. // Struct proxy type NumberGenerator struct { - Generator IRandomNumberGenerator + Generator IRandomNumberGenerator } func (n *NumberGenerator) GetGenerator() IRandomNumberGenerator { - return n.Generator + return n.Generator } func NewNumberGenerator(generator IRandomNumberGenerator) NumberGeneratorIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "NumberGenerator", - Method: "Constructor", - Args: []string{"jsii-calc.IRandomNumberGenerator",}, - }) - return &NumberGenerator{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "NumberGenerator", + Method: "Constructor", + Args: []string{"jsii-calc.IRandomNumberGenerator",}, + }) + return &NumberGenerator{} } func (n *NumberGenerator) SetGenerator(val IRandomNumberGenerator) { - n.Generator = val + n.Generator = val } func (n *NumberGenerator) IsSameGenerator(gen IRandomNumberGenerator) bool { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "NumberGenerator", - Method: "IsSameGenerator", - Args: []string{"jsii-calc.IRandomNumberGenerator",}, - }) - return true + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "NumberGenerator", + Method: "IsSameGenerator", + Args: []string{"jsii-calc.IRandomNumberGenerator",}, + }) + return true } func (n *NumberGenerator) NextTimes100() float64 { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "NumberGenerator", - Method: "NextTimes100", - Args: []string{}, - }) - return 0.0 + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "NumberGenerator", + Method: "NextTimes100", + Args: []string{}, + }) + return 0.0 } // Class interface type ObjectRefsInCollectionsIface interface { - SumFromArray(values []scopejsiicalclib.NumericValue) float64 - SumFromMap(values map[string]scopejsiicalclib.NumericValue) float64 + SumFromArray(values []scopejsiicalclib.NumericValue) float64 + SumFromMap(values map[string]scopejsiicalclib.NumericValue) float64 } // Verify that object references can be passed inside collections. @@ -6026,30 +6026,30 @@ type ObjectRefsInCollections struct { } func NewObjectRefsInCollections() ObjectRefsInCollectionsIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ObjectRefsInCollections", - Method: "Constructor", - Args: []string{}, - }) - return &ObjectRefsInCollections{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ObjectRefsInCollections", + Method: "Constructor", + Args: []string{}, + }) + return &ObjectRefsInCollections{} } func (o *ObjectRefsInCollections) SumFromArray(values []scopejsiicalclib.NumericValue) float64 { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ObjectRefsInCollections", - Method: "SumFromArray", - Args: []string{"Array<@scope/jsii-calc-lib.NumericValue>",}, - }) - return 0.0 + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ObjectRefsInCollections", + Method: "SumFromArray", + Args: []string{"Array<@scope/jsii-calc-lib.NumericValue>",}, + }) + return 0.0 } func (o *ObjectRefsInCollections) SumFromMap(values map[string]scopejsiicalclib.NumericValue) float64 { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ObjectRefsInCollections", - Method: "SumFromMap", - Args: []string{"Map @scope/jsii-calc-lib.NumericValue>",}, - }) - return 0.0 + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ObjectRefsInCollections", + Method: "SumFromMap", + Args: []string{"Map @scope/jsii-calc-lib.NumericValue>",}, + }) + return 0.0 } // Class interface @@ -6061,17 +6061,17 @@ type ObjectWithPropertyProvider struct { } func ObjectWithPropertyProvider_Provide() IObjectWithProperty { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ObjectWithPropertyProvider", - Method: "Provide", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ObjectWithPropertyProvider", + Method: "Provide", + Args: []string{}, + }) + return nil } // Class interface type OldIface interface { - DoAThing() + DoAThing() } // Old class. @@ -6081,26 +6081,26 @@ type Old struct { } func NewOld() OldIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Old", - Method: "Constructor", - Args: []string{}, - }) - return &Old{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Old", + Method: "Constructor", + Args: []string{}, + }) + return &Old{} } func (o *Old) DoAThing() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Old", - Method: "DoAThing", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Old", + Method: "DoAThing", + Args: []string{}, + }) } // Class interface type OptionalArgumentInvokerIface interface { - InvokeWithOptional() - InvokeWithoutOptional() + InvokeWithOptional() + InvokeWithoutOptional() } // Struct proxy @@ -6108,208 +6108,208 @@ type OptionalArgumentInvoker struct { } func NewOptionalArgumentInvoker(delegate IInterfaceWithOptionalMethodArguments) OptionalArgumentInvokerIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "OptionalArgumentInvoker", - Method: "Constructor", - Args: []string{"jsii-calc.IInterfaceWithOptionalMethodArguments",}, - }) - return &OptionalArgumentInvoker{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "OptionalArgumentInvoker", + Method: "Constructor", + Args: []string{"jsii-calc.IInterfaceWithOptionalMethodArguments",}, + }) + return &OptionalArgumentInvoker{} } func (o *OptionalArgumentInvoker) InvokeWithOptional() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "OptionalArgumentInvoker", - Method: "InvokeWithOptional", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "OptionalArgumentInvoker", + Method: "InvokeWithOptional", + Args: []string{}, + }) } func (o *OptionalArgumentInvoker) InvokeWithoutOptional() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "OptionalArgumentInvoker", - Method: "InvokeWithoutOptional", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "OptionalArgumentInvoker", + Method: "InvokeWithoutOptional", + Args: []string{}, + }) } // Class interface type OptionalConstructorArgumentIface interface { - GetArg1() float64 - SetArg1(val float64) - GetArg2() string - SetArg2(val string) - GetArg3() string - SetArg3(val string) + GetArg1() float64 + SetArg1(val float64) + GetArg2() string + SetArg2(val string) + GetArg3() string + SetArg3(val string) } // Struct proxy type OptionalConstructorArgument struct { - Arg1 float64 - Arg2 string - Arg3 string + Arg1 float64 + Arg2 string + Arg3 string } func (o *OptionalConstructorArgument) GetArg1() float64 { - return o.Arg1 + return o.Arg1 } func (o *OptionalConstructorArgument) GetArg2() string { - return o.Arg2 + return o.Arg2 } func (o *OptionalConstructorArgument) GetArg3() string { - return o.Arg3 + return o.Arg3 } func NewOptionalConstructorArgument(arg1 float64, arg2 string, arg3 string) OptionalConstructorArgumentIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "OptionalConstructorArgument", - Method: "Constructor", - Args: []string{"number", "string", "date",}, - }) - return &OptionalConstructorArgument{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "OptionalConstructorArgument", + Method: "Constructor", + Args: []string{"number", "string", "date",}, + }) + return &OptionalConstructorArgument{} } func (o *OptionalConstructorArgument) SetArg1(val float64) { - o.Arg1 = val + o.Arg1 = val } func (o *OptionalConstructorArgument) SetArg2(val string) { - o.Arg2 = val + o.Arg2 = val } func (o *OptionalConstructorArgument) SetArg3(val string) { - o.Arg3 = val + o.Arg3 = val } // OptionalStructIface is the public interface for the custom type OptionalStruct type OptionalStructIface interface { - GetField() string + GetField() string } // Struct proxy type OptionalStruct struct { - Field string + Field string } func (o *OptionalStruct) GetField() string { - return o.Field + return o.Field } // Class interface type OptionalStructConsumerIface interface { - GetParameterWasUndefined() bool - SetParameterWasUndefined(val bool) - GetFieldValue() string - SetFieldValue(val string) + GetParameterWasUndefined() bool + SetParameterWasUndefined(val bool) + GetFieldValue() string + SetFieldValue(val string) } // Struct proxy type OptionalStructConsumer struct { - ParameterWasUndefined bool - FieldValue string + ParameterWasUndefined bool + FieldValue string } func (o *OptionalStructConsumer) GetParameterWasUndefined() bool { - return o.ParameterWasUndefined + return o.ParameterWasUndefined } func (o *OptionalStructConsumer) GetFieldValue() string { - return o.FieldValue + return o.FieldValue } func NewOptionalStructConsumer(optionalStruct OptionalStruct) OptionalStructConsumerIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "OptionalStructConsumer", - Method: "Constructor", - Args: []string{"jsii-calc.OptionalStruct",}, - }) - return &OptionalStructConsumer{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "OptionalStructConsumer", + Method: "Constructor", + Args: []string{"jsii-calc.OptionalStruct",}, + }) + return &OptionalStructConsumer{} } func (o *OptionalStructConsumer) SetParameterWasUndefined(val bool) { - o.ParameterWasUndefined = val + o.ParameterWasUndefined = val } func (o *OptionalStructConsumer) SetFieldValue(val string) { - o.FieldValue = val + o.FieldValue = val } // Class interface type OverridableProtectedMemberIface interface { - GetOverrideReadOnly() string - GetOverrideReadWrite() string - OverrideMe() string - SwitchModes() - ValueFromProtected() string + GetOverrideReadOnly() string + GetOverrideReadWrite() string + OverrideMe() string + SwitchModes() + ValueFromProtected() string } // See: https://github.com/aws/jsii/issues/903 // // Struct proxy type OverridableProtectedMember struct { - OverrideReadOnly string - OverrideReadWrite string + OverrideReadOnly string + OverrideReadWrite string } func (o *OverridableProtectedMember) GetOverrideReadOnly() string { - return o.OverrideReadOnly + return o.OverrideReadOnly } func (o *OverridableProtectedMember) GetOverrideReadWrite() string { - return o.OverrideReadWrite + return o.OverrideReadWrite } func NewOverridableProtectedMember() OverridableProtectedMemberIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "OverridableProtectedMember", - Method: "Constructor", - Args: []string{}, - }) - return &OverridableProtectedMember{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "OverridableProtectedMember", + Method: "Constructor", + Args: []string{}, + }) + return &OverridableProtectedMember{} } func (o *OverridableProtectedMember) SetOverrideReadOnly(val string) { - o.OverrideReadOnly = val + o.OverrideReadOnly = val } func (o *OverridableProtectedMember) SetOverrideReadWrite(val string) { - o.OverrideReadWrite = val + o.OverrideReadWrite = val } func (o *OverridableProtectedMember) OverrideMe() string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "OverridableProtectedMember", - Method: "OverrideMe", - Args: []string{}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "OverridableProtectedMember", + Method: "OverrideMe", + Args: []string{}, + }) + return "NOOP_RETURN_STRING" } func (o *OverridableProtectedMember) SwitchModes() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "OverridableProtectedMember", - Method: "SwitchModes", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "OverridableProtectedMember", + Method: "SwitchModes", + Args: []string{}, + }) } func (o *OverridableProtectedMember) ValueFromProtected() string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "OverridableProtectedMember", - Method: "ValueFromProtected", - Args: []string{}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "OverridableProtectedMember", + Method: "ValueFromProtected", + Args: []string{}, + }) + return "NOOP_RETURN_STRING" } // Class interface type OverrideReturnsObjectIface interface { - Test(obj IReturnsNumber) float64 + Test(obj IReturnsNumber) float64 } // Struct proxy @@ -6317,42 +6317,42 @@ type OverrideReturnsObject struct { } func NewOverrideReturnsObject() OverrideReturnsObjectIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "OverrideReturnsObject", - Method: "Constructor", - Args: []string{}, - }) - return &OverrideReturnsObject{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "OverrideReturnsObject", + Method: "Constructor", + Args: []string{}, + }) + return &OverrideReturnsObject{} } func (o *OverrideReturnsObject) Test(obj IReturnsNumber) float64 { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "OverrideReturnsObject", - Method: "Test", - Args: []string{"jsii-calc.IReturnsNumber",}, - }) - return 0.0 + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "OverrideReturnsObject", + Method: "Test", + Args: []string{"jsii-calc.IReturnsNumber",}, + }) + return 0.0 } // ParentStruct982Iface is the public interface for the custom type ParentStruct982 type ParentStruct982Iface interface { - GetFoo() string + GetFoo() string } // https://github.com/aws/jsii/issues/982. // Struct proxy type ParentStruct982 struct { - Foo string + Foo string } func (p *ParentStruct982) GetFoo() string { - return p.Foo + return p.Foo } // Class interface type PartiallyInitializedThisConsumerIface interface { - ConsumePartiallyInitializedThis(obj ConstructorPassesThisOut, dt string, ev AllTypesEnum) string + ConsumePartiallyInitializedThis(obj ConstructorPassesThisOut, dt string, ev AllTypesEnum) string } // Struct proxy @@ -6360,26 +6360,26 @@ type PartiallyInitializedThisConsumer struct { } func NewPartiallyInitializedThisConsumer() PartiallyInitializedThisConsumerIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "PartiallyInitializedThisConsumer", - Method: "Constructor", - Args: []string{}, - }) - return &PartiallyInitializedThisConsumer{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "PartiallyInitializedThisConsumer", + Method: "Constructor", + Args: []string{}, + }) + return &PartiallyInitializedThisConsumer{} } func (p *PartiallyInitializedThisConsumer) ConsumePartiallyInitializedThis(obj ConstructorPassesThisOut, dt string, ev AllTypesEnum) string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "PartiallyInitializedThisConsumer", - Method: "ConsumePartiallyInitializedThis", - Args: []string{"jsii-calc.ConstructorPassesThisOut", "date", "jsii-calc.AllTypesEnum",}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "PartiallyInitializedThisConsumer", + Method: "ConsumePartiallyInitializedThis", + Args: []string{"jsii-calc.ConstructorPassesThisOut", "date", "jsii-calc.AllTypesEnum",}, + }) + return "NOOP_RETURN_STRING" } // Class interface type PolymorphismIface interface { - SayHello(friendly scopejsiicalclib.IFriendly) string + SayHello(friendly scopejsiicalclib.IFriendly) string } // Struct proxy @@ -6387,193 +6387,193 @@ type Polymorphism struct { } func NewPolymorphism() PolymorphismIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Polymorphism", - Method: "Constructor", - Args: []string{}, - }) - return &Polymorphism{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Polymorphism", + Method: "Constructor", + Args: []string{}, + }) + return &Polymorphism{} } func (p *Polymorphism) SayHello(friendly scopejsiicalclib.IFriendly) string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Polymorphism", - Method: "SayHello", - Args: []string{"@scope/jsii-calc-lib.IFriendly",}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Polymorphism", + Method: "SayHello", + Args: []string{"@scope/jsii-calc-lib.IFriendly",}, + }) + return "NOOP_RETURN_STRING" } // Class interface type PowerIface interface { - GetValue() float64 - SetValue(val float64) - GetExpression() scopejsiicalclib.NumericValue - SetExpression(val scopejsiicalclib.NumericValue) - GetDecorationPostfixes() []string - SetDecorationPostfixes(val []string) - GetDecorationPrefixes() []string - SetDecorationPrefixes(val []string) - GetStringStyle() composition.CompositionStringStyle - SetStringStyle(val composition.CompositionStringStyle) - GetBase() scopejsiicalclib.NumericValue - SetBase(val scopejsiicalclib.NumericValue) - GetPow() scopejsiicalclib.NumericValue - SetPow(val scopejsiicalclib.NumericValue) - TypeName() jsii.Any - ToString() string + GetValue() float64 + SetValue(val float64) + GetExpression() scopejsiicalclib.NumericValue + SetExpression(val scopejsiicalclib.NumericValue) + GetDecorationPostfixes() []string + SetDecorationPostfixes(val []string) + GetDecorationPrefixes() []string + SetDecorationPrefixes(val []string) + GetStringStyle() composition.CompositionStringStyle + SetStringStyle(val composition.CompositionStringStyle) + GetBase() scopejsiicalclib.NumericValue + SetBase(val scopejsiicalclib.NumericValue) + GetPow() scopejsiicalclib.NumericValue + SetPow(val scopejsiicalclib.NumericValue) + TypeName() jsii.Any + ToString() string } // The power operation. // Struct proxy type Power struct { - // (deprecated) The value. - Value float64 - // The expression that this operation consists of. - // - // Must be implemented by derived classes. - Expression scopejsiicalclib.NumericValue - // A set of postfixes to include in a decorated .toString(). - DecorationPostfixes []string - // A set of prefixes to include in a decorated .toString(). - DecorationPrefixes []string - // The .toString() style. - StringStyle composition.CompositionStringStyle - // The base of the power. - Base scopejsiicalclib.NumericValue - // The number of times to multiply. - Pow scopejsiicalclib.NumericValue + // (deprecated) The value. + Value float64 + // The expression that this operation consists of. + // + // Must be implemented by derived classes. + Expression scopejsiicalclib.NumericValue + // A set of postfixes to include in a decorated .toString(). + DecorationPostfixes []string + // A set of prefixes to include in a decorated .toString(). + DecorationPrefixes []string + // The .toString() style. + StringStyle composition.CompositionStringStyle + // The base of the power. + Base scopejsiicalclib.NumericValue + // The number of times to multiply. + Pow scopejsiicalclib.NumericValue } func (p *Power) GetValue() float64 { - return p.Value + return p.Value } func (p *Power) GetExpression() scopejsiicalclib.NumericValue { - return p.Expression + return p.Expression } func (p *Power) GetDecorationPostfixes() []string { - return p.DecorationPostfixes + return p.DecorationPostfixes } func (p *Power) GetDecorationPrefixes() []string { - return p.DecorationPrefixes + return p.DecorationPrefixes } func (p *Power) GetStringStyle() composition.CompositionStringStyle { - return p.StringStyle + return p.StringStyle } func (p *Power) GetBase() scopejsiicalclib.NumericValue { - return p.Base + return p.Base } func (p *Power) GetPow() scopejsiicalclib.NumericValue { - return p.Pow + return p.Pow } // Creates a Power operation. func NewPower(base scopejsiicalclib.NumericValue, pow scopejsiicalclib.NumericValue) PowerIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Power", - Method: "Constructor", - Args: []string{"@scope/jsii-calc-lib.NumericValue", "@scope/jsii-calc-lib.NumericValue",}, - }) - return &Power{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Power", + Method: "Constructor", + Args: []string{"@scope/jsii-calc-lib.NumericValue", "@scope/jsii-calc-lib.NumericValue",}, + }) + return &Power{} } func (p *Power) SetValue(val float64) { - p.Value = val + p.Value = val } func (p *Power) SetExpression(val scopejsiicalclib.NumericValue) { - p.Expression = val + p.Expression = val } func (p *Power) SetDecorationPostfixes(val []string) { - p.DecorationPostfixes = val + p.DecorationPostfixes = val } func (p *Power) SetDecorationPrefixes(val []string) { - p.DecorationPrefixes = val + p.DecorationPrefixes = val } func (p *Power) SetStringStyle(val composition.CompositionStringStyle) { - p.StringStyle = val + p.StringStyle = val } func (p *Power) SetBase(val scopejsiicalclib.NumericValue) { - p.Base = val + p.Base = val } func (p *Power) SetPow(val scopejsiicalclib.NumericValue) { - p.Pow = val + p.Pow = val } func (p *Power) TypeName() jsii.Any { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Power", - Method: "TypeName", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Power", + Method: "TypeName", + Args: []string{}, + }) + return nil } func (p *Power) ToString() string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Power", - Method: "ToString", - Args: []string{}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Power", + Method: "ToString", + Args: []string{}, + }) + return "NOOP_RETURN_STRING" } // Class interface type PropertyNamedPropertyIface interface { - GetProperty() string - SetProperty(val string) - GetYetAnoterOne() bool - SetYetAnoterOne(val bool) + GetProperty() string + SetProperty(val string) + GetYetAnoterOne() bool + SetYetAnoterOne(val bool) } // Reproduction for https://github.com/aws/jsii/issues/1113 Where a method or property named "property" would result in impossible to load Python code. // Struct proxy type PropertyNamedProperty struct { - Property string - YetAnoterOne bool + Property string + YetAnoterOne bool } func (p *PropertyNamedProperty) GetProperty() string { - return p.Property + return p.Property } func (p *PropertyNamedProperty) GetYetAnoterOne() bool { - return p.YetAnoterOne + return p.YetAnoterOne } func NewPropertyNamedProperty() PropertyNamedPropertyIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "PropertyNamedProperty", - Method: "Constructor", - Args: []string{}, - }) - return &PropertyNamedProperty{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "PropertyNamedProperty", + Method: "Constructor", + Args: []string{}, + }) + return &PropertyNamedProperty{} } func (p *PropertyNamedProperty) SetProperty(val string) { - p.Property = val + p.Property = val } func (p *PropertyNamedProperty) SetYetAnoterOne(val bool) { - p.YetAnoterOne = val + p.YetAnoterOne = val } // Class interface type PublicClassIface interface { - Hello() + Hello() } // Struct proxy @@ -6581,56 +6581,56 @@ type PublicClass struct { } func NewPublicClass() PublicClassIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "PublicClass", - Method: "Constructor", - Args: []string{}, - }) - return &PublicClass{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "PublicClass", + Method: "Constructor", + Args: []string{}, + }) + return &PublicClass{} } func (p *PublicClass) Hello() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "PublicClass", - Method: "Hello", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "PublicClass", + Method: "Hello", + Args: []string{}, + }) } // Class interface type PythonReservedWordsIface interface { - And() - As() - Assert() - Async() - Await() - Break() - Class() - Continue() - Def() - Del() - Elif() - Else() - Except() - Finally() - For() - From() - Global() - If() - Import() - In() - Is() - Lambda() - Nonlocal() - Not() - Or() - Pass() - Raise() - Return() - Try() - While() - With() - Yield() + And() + As() + Assert() + Async() + Await() + Break() + Class() + Continue() + Def() + Del() + Elif() + Else() + Except() + Finally() + For() + From() + Global() + If() + Import() + In() + Is() + Lambda() + Nonlocal() + Not() + Or() + Pass() + Raise() + Return() + Try() + While() + With() + Yield() } // Struct proxy @@ -6638,323 +6638,323 @@ type PythonReservedWords struct { } func NewPythonReservedWords() PythonReservedWordsIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "PythonReservedWords", - Method: "Constructor", - Args: []string{}, - }) - return &PythonReservedWords{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "PythonReservedWords", + Method: "Constructor", + Args: []string{}, + }) + return &PythonReservedWords{} } func (p *PythonReservedWords) And() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "PythonReservedWords", - Method: "And", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "PythonReservedWords", + Method: "And", + Args: []string{}, + }) } func (p *PythonReservedWords) As() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "PythonReservedWords", - Method: "As", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "PythonReservedWords", + Method: "As", + Args: []string{}, + }) } func (p *PythonReservedWords) Assert() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "PythonReservedWords", - Method: "Assert", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "PythonReservedWords", + Method: "Assert", + Args: []string{}, + }) } func (p *PythonReservedWords) Async() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "PythonReservedWords", - Method: "Async", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "PythonReservedWords", + Method: "Async", + Args: []string{}, + }) } func (p *PythonReservedWords) Await() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "PythonReservedWords", - Method: "Await", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "PythonReservedWords", + Method: "Await", + Args: []string{}, + }) } func (p *PythonReservedWords) Break() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "PythonReservedWords", - Method: "Break", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "PythonReservedWords", + Method: "Break", + Args: []string{}, + }) } func (p *PythonReservedWords) Class() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "PythonReservedWords", - Method: "Class", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "PythonReservedWords", + Method: "Class", + Args: []string{}, + }) } func (p *PythonReservedWords) Continue() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "PythonReservedWords", - Method: "Continue", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "PythonReservedWords", + Method: "Continue", + Args: []string{}, + }) } func (p *PythonReservedWords) Def() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "PythonReservedWords", - Method: "Def", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "PythonReservedWords", + Method: "Def", + Args: []string{}, + }) } func (p *PythonReservedWords) Del() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "PythonReservedWords", - Method: "Del", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "PythonReservedWords", + Method: "Del", + Args: []string{}, + }) } func (p *PythonReservedWords) Elif() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "PythonReservedWords", - Method: "Elif", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "PythonReservedWords", + Method: "Elif", + Args: []string{}, + }) } func (p *PythonReservedWords) Else() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "PythonReservedWords", - Method: "Else", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "PythonReservedWords", + Method: "Else", + Args: []string{}, + }) } func (p *PythonReservedWords) Except() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "PythonReservedWords", - Method: "Except", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "PythonReservedWords", + Method: "Except", + Args: []string{}, + }) } func (p *PythonReservedWords) Finally() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "PythonReservedWords", - Method: "Finally", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "PythonReservedWords", + Method: "Finally", + Args: []string{}, + }) } func (p *PythonReservedWords) For() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "PythonReservedWords", - Method: "For", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "PythonReservedWords", + Method: "For", + Args: []string{}, + }) } func (p *PythonReservedWords) From() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "PythonReservedWords", - Method: "From", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "PythonReservedWords", + Method: "From", + Args: []string{}, + }) } func (p *PythonReservedWords) Global() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "PythonReservedWords", - Method: "Global", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "PythonReservedWords", + Method: "Global", + Args: []string{}, + }) } func (p *PythonReservedWords) If() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "PythonReservedWords", - Method: "If", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "PythonReservedWords", + Method: "If", + Args: []string{}, + }) } func (p *PythonReservedWords) Import() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "PythonReservedWords", - Method: "Import", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "PythonReservedWords", + Method: "Import", + Args: []string{}, + }) } func (p *PythonReservedWords) In() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "PythonReservedWords", - Method: "In", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "PythonReservedWords", + Method: "In", + Args: []string{}, + }) } func (p *PythonReservedWords) Is() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "PythonReservedWords", - Method: "Is", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "PythonReservedWords", + Method: "Is", + Args: []string{}, + }) } func (p *PythonReservedWords) Lambda() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "PythonReservedWords", - Method: "Lambda", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "PythonReservedWords", + Method: "Lambda", + Args: []string{}, + }) } func (p *PythonReservedWords) Nonlocal() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "PythonReservedWords", - Method: "Nonlocal", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "PythonReservedWords", + Method: "Nonlocal", + Args: []string{}, + }) } func (p *PythonReservedWords) Not() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "PythonReservedWords", - Method: "Not", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "PythonReservedWords", + Method: "Not", + Args: []string{}, + }) } func (p *PythonReservedWords) Or() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "PythonReservedWords", - Method: "Or", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "PythonReservedWords", + Method: "Or", + Args: []string{}, + }) } func (p *PythonReservedWords) Pass() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "PythonReservedWords", - Method: "Pass", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "PythonReservedWords", + Method: "Pass", + Args: []string{}, + }) } func (p *PythonReservedWords) Raise() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "PythonReservedWords", - Method: "Raise", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "PythonReservedWords", + Method: "Raise", + Args: []string{}, + }) } func (p *PythonReservedWords) Return() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "PythonReservedWords", - Method: "Return", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "PythonReservedWords", + Method: "Return", + Args: []string{}, + }) } func (p *PythonReservedWords) Try() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "PythonReservedWords", - Method: "Try", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "PythonReservedWords", + Method: "Try", + Args: []string{}, + }) } func (p *PythonReservedWords) While() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "PythonReservedWords", - Method: "While", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "PythonReservedWords", + Method: "While", + Args: []string{}, + }) } func (p *PythonReservedWords) With() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "PythonReservedWords", - Method: "With", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "PythonReservedWords", + Method: "With", + Args: []string{}, + }) } func (p *PythonReservedWords) Yield() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "PythonReservedWords", - Method: "Yield", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "PythonReservedWords", + Method: "Yield", + Args: []string{}, + }) } // Class interface type ReferenceEnumFromScopedPackageIface interface { - GetFoo() scopejsiicalclib.EnumFromScopedModule - SetFoo(val scopejsiicalclib.EnumFromScopedModule) - LoadFoo() scopejsiicalclib.EnumFromScopedModule - SaveFoo(value scopejsiicalclib.EnumFromScopedModule) + GetFoo() scopejsiicalclib.EnumFromScopedModule + SetFoo(val scopejsiicalclib.EnumFromScopedModule) + LoadFoo() scopejsiicalclib.EnumFromScopedModule + SaveFoo(value scopejsiicalclib.EnumFromScopedModule) } // See awslabs/jsii#138. // Struct proxy type ReferenceEnumFromScopedPackage struct { - Foo scopejsiicalclib.EnumFromScopedModule + Foo scopejsiicalclib.EnumFromScopedModule } func (r *ReferenceEnumFromScopedPackage) GetFoo() scopejsiicalclib.EnumFromScopedModule { - return r.Foo + return r.Foo } func NewReferenceEnumFromScopedPackage() ReferenceEnumFromScopedPackageIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ReferenceEnumFromScopedPackage", - Method: "Constructor", - Args: []string{}, - }) - return &ReferenceEnumFromScopedPackage{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ReferenceEnumFromScopedPackage", + Method: "Constructor", + Args: []string{}, + }) + return &ReferenceEnumFromScopedPackage{} } func (r *ReferenceEnumFromScopedPackage) SetFoo(val scopejsiicalclib.EnumFromScopedModule) { - r.Foo = val + r.Foo = val } func (r *ReferenceEnumFromScopedPackage) LoadFoo() scopejsiicalclib.EnumFromScopedModule { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ReferenceEnumFromScopedPackage", - Method: "LoadFoo", - Args: []string{}, - }) - return "ENUM_DUMMY" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ReferenceEnumFromScopedPackage", + Method: "LoadFoo", + Args: []string{}, + }) + return "ENUM_DUMMY" } func (r *ReferenceEnumFromScopedPackage) SaveFoo(value scopejsiicalclib.EnumFromScopedModule) { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ReferenceEnumFromScopedPackage", - Method: "SaveFoo", - Args: []string{"@scope/jsii-calc-lib.EnumFromScopedModule",}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ReferenceEnumFromScopedPackage", + Method: "SaveFoo", + Args: []string{"@scope/jsii-calc-lib.EnumFromScopedModule",}, + }) } // Class interface type ReturnsPrivateImplementationOfInterfaceIface interface { - GetPrivateImplementation() IPrivatelyImplemented - SetPrivateImplementation(val IPrivatelyImplemented) + GetPrivateImplementation() IPrivatelyImplemented + SetPrivateImplementation(val IPrivatelyImplemented) } // Helps ensure the JSII kernel & runtime cooperate correctly when an un-exported instance of a class is returned with a declared type that is an exported interface, and the instance inherits from an exported class. @@ -6964,31 +6964,31 @@ type ReturnsPrivateImplementationOfInterfaceIface interface { // // Struct proxy type ReturnsPrivateImplementationOfInterface struct { - PrivateImplementation IPrivatelyImplemented + PrivateImplementation IPrivatelyImplemented } func (r *ReturnsPrivateImplementationOfInterface) GetPrivateImplementation() IPrivatelyImplemented { - return r.PrivateImplementation + return r.PrivateImplementation } func NewReturnsPrivateImplementationOfInterface() ReturnsPrivateImplementationOfInterfaceIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ReturnsPrivateImplementationOfInterface", - Method: "Constructor", - Args: []string{}, - }) - return &ReturnsPrivateImplementationOfInterface{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ReturnsPrivateImplementationOfInterface", + Method: "Constructor", + Args: []string{}, + }) + return &ReturnsPrivateImplementationOfInterface{} } func (r *ReturnsPrivateImplementationOfInterface) SetPrivateImplementation(val IPrivatelyImplemented) { - r.PrivateImplementation = val + r.PrivateImplementation = val } // RootStructIface is the public interface for the custom type RootStruct type RootStructIface interface { - GetStringProp() string - GetNestedStruct() NestedStruct + GetStringProp() string + GetNestedStruct() NestedStruct } // This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary. @@ -6997,17 +6997,17 @@ type RootStructIface interface { // idiomatic" way for Pythonists. // Struct proxy type RootStruct struct { - // May not be empty. - StringProp string - NestedStruct NestedStruct + // May not be empty. + StringProp string + NestedStruct NestedStruct } func (r *RootStruct) GetStringProp() string { - return r.StringProp + return r.StringProp } func (r *RootStruct) GetNestedStruct() NestedStruct { - return r.NestedStruct + return r.NestedStruct } @@ -7020,18 +7020,18 @@ type RootStructValidator struct { } func RootStructValidator_Validate(struct_ RootStruct) { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "RootStructValidator", - Method: "Validate", - Args: []string{"jsii-calc.RootStruct",}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "RootStructValidator", + Method: "Validate", + Args: []string{"jsii-calc.RootStruct",}, + }) } // Class interface type RuntimeTypeCheckingIface interface { - MethodWithDefaultedArguments(arg1 float64, arg2 string, arg3 string) - MethodWithOptionalAnyArgument(arg jsii.Any) - MethodWithOptionalArguments(arg1 float64, arg2 string, arg3 string) + MethodWithDefaultedArguments(arg1 float64, arg2 string, arg3 string) + MethodWithOptionalAnyArgument(arg jsii.Any) + MethodWithOptionalArguments(arg1 float64, arg2 string, arg3 string) } // Struct proxy @@ -7039,65 +7039,65 @@ type RuntimeTypeChecking struct { } func NewRuntimeTypeChecking() RuntimeTypeCheckingIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "RuntimeTypeChecking", - Method: "Constructor", - Args: []string{}, - }) - return &RuntimeTypeChecking{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "RuntimeTypeChecking", + Method: "Constructor", + Args: []string{}, + }) + return &RuntimeTypeChecking{} } func (r *RuntimeTypeChecking) MethodWithDefaultedArguments(arg1 float64, arg2 string, arg3 string) { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "RuntimeTypeChecking", - Method: "MethodWithDefaultedArguments", - Args: []string{"number", "string", "date",}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "RuntimeTypeChecking", + Method: "MethodWithDefaultedArguments", + Args: []string{"number", "string", "date",}, + }) } func (r *RuntimeTypeChecking) MethodWithOptionalAnyArgument(arg jsii.Any) { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "RuntimeTypeChecking", - Method: "MethodWithOptionalAnyArgument", - Args: []string{"any",}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "RuntimeTypeChecking", + Method: "MethodWithOptionalAnyArgument", + Args: []string{"any",}, + }) } func (r *RuntimeTypeChecking) MethodWithOptionalArguments(arg1 float64, arg2 string, arg3 string) { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "RuntimeTypeChecking", - Method: "MethodWithOptionalArguments", - Args: []string{"number", "string", "date",}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "RuntimeTypeChecking", + Method: "MethodWithOptionalArguments", + Args: []string{"number", "string", "date",}, + }) } // SecondLevelStructIface is the public interface for the custom type SecondLevelStruct type SecondLevelStructIface interface { - GetDeeperRequiredProp() string - GetDeeperOptionalProp() string + GetDeeperRequiredProp() string + GetDeeperOptionalProp() string } // Struct proxy type SecondLevelStruct struct { - // It's long and required. - DeeperRequiredProp string - // It's long, but you'll almost never pass it. - DeeperOptionalProp string + // It's long and required. + DeeperRequiredProp string + // It's long, but you'll almost never pass it. + DeeperOptionalProp string } func (s *SecondLevelStruct) GetDeeperRequiredProp() string { - return s.DeeperRequiredProp + return s.DeeperRequiredProp } func (s *SecondLevelStruct) GetDeeperOptionalProp() string { - return s.DeeperOptionalProp + return s.DeeperOptionalProp } // Class interface type SingleInstanceTwoTypesIface interface { - Interface1() InbetweenClass - Interface2() IPublicInterface + Interface1() InbetweenClass + Interface2() IPublicInterface } // Test that a single instance can be returned under two different FQNs. @@ -7110,35 +7110,35 @@ type SingleInstanceTwoTypes struct { } func NewSingleInstanceTwoTypes() SingleInstanceTwoTypesIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "SingleInstanceTwoTypes", - Method: "Constructor", - Args: []string{}, - }) - return &SingleInstanceTwoTypes{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "SingleInstanceTwoTypes", + Method: "Constructor", + Args: []string{}, + }) + return &SingleInstanceTwoTypes{} } func (s *SingleInstanceTwoTypes) Interface1() InbetweenClass { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "SingleInstanceTwoTypes", - Method: "Interface1", - Args: []string{}, - }) - return InbetweenClass{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "SingleInstanceTwoTypes", + Method: "Interface1", + Args: []string{}, + }) + return InbetweenClass{} } func (s *SingleInstanceTwoTypes) Interface2() IPublicInterface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "SingleInstanceTwoTypes", - Method: "Interface2", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "SingleInstanceTwoTypes", + Method: "Interface2", + Args: []string{}, + }) + return nil } // Class interface type SingletonIntIface interface { - IsSingletonInt(value float64) bool + IsSingletonInt(value float64) bool } // Verifies that singleton enums are handled correctly. @@ -7149,24 +7149,24 @@ type SingletonInt struct { } func (s *SingletonInt) IsSingletonInt(value float64) bool { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "SingletonInt", - Method: "IsSingletonInt", - Args: []string{"number",}, - }) - return true + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "SingletonInt", + Method: "IsSingletonInt", + Args: []string{"number",}, + }) + return true } // A singleton integer. type SingletonIntEnum string const ( - SingletonIntEnumSingletonInt SingletonIntEnum = "SINGLETON_INT" + SingletonIntEnumSingletonInt SingletonIntEnum = "SINGLETON_INT" ) // Class interface type SingletonStringIface interface { - IsSingletonString(value string) bool + IsSingletonString(value string) bool } // Verifies that singleton enums are handled correctly. @@ -7177,39 +7177,39 @@ type SingletonString struct { } func (s *SingletonString) IsSingletonString(value string) bool { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "SingletonString", - Method: "IsSingletonString", - Args: []string{"string",}, - }) - return true + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "SingletonString", + Method: "IsSingletonString", + Args: []string{"string",}, + }) + return true } // A singleton string. type SingletonStringEnum string const ( - SingletonStringEnumSingletonString SingletonStringEnum = "SINGLETON_STRING" + SingletonStringEnumSingletonString SingletonStringEnum = "SINGLETON_STRING" ) // SmellyStructIface is the public interface for the custom type SmellyStruct type SmellyStructIface interface { - GetProperty() string - GetYetAnoterOne() bool + GetProperty() string + GetYetAnoterOne() bool } // Struct proxy type SmellyStruct struct { - Property string - YetAnoterOne bool + Property string + YetAnoterOne bool } func (s *SmellyStruct) GetProperty() string { - return s.Property + return s.Property } func (s *SmellyStruct) GetYetAnoterOne() bool { - return s.YetAnoterOne + return s.YetAnoterOne } @@ -7222,107 +7222,107 @@ type SomeTypeJsii976 struct { } func NewSomeTypeJsii976() SomeTypeJsii976Iface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "SomeTypeJsii976", - Method: "Constructor", - Args: []string{}, - }) - return &SomeTypeJsii976{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "SomeTypeJsii976", + Method: "Constructor", + Args: []string{}, + }) + return &SomeTypeJsii976{} } func SomeTypeJsii976_ReturnAnonymous() jsii.Any { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "SomeTypeJsii976", - Method: "ReturnAnonymous", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "SomeTypeJsii976", + Method: "ReturnAnonymous", + Args: []string{}, + }) + return nil } func SomeTypeJsii976_ReturnReturn() IReturnJsii976 { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "SomeTypeJsii976", - Method: "ReturnReturn", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "SomeTypeJsii976", + Method: "ReturnReturn", + Args: []string{}, + }) + return nil } // Class interface type StableClassIface interface { - GetReadonlyProperty() string - SetReadonlyProperty(val string) - GetMutableProperty() float64 - SetMutableProperty(val float64) - Method() + GetReadonlyProperty() string + SetReadonlyProperty(val string) + GetMutableProperty() float64 + SetMutableProperty(val float64) + Method() } // Struct proxy type StableClass struct { - ReadonlyProperty string - MutableProperty float64 + ReadonlyProperty string + MutableProperty float64 } func (s *StableClass) GetReadonlyProperty() string { - return s.ReadonlyProperty + return s.ReadonlyProperty } func (s *StableClass) GetMutableProperty() float64 { - return s.MutableProperty + return s.MutableProperty } func NewStableClass(readonlyString string, mutableNumber float64) StableClassIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "StableClass", - Method: "Constructor", - Args: []string{"string", "number",}, - }) - return &StableClass{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "StableClass", + Method: "Constructor", + Args: []string{"string", "number",}, + }) + return &StableClass{} } func (s *StableClass) SetReadonlyProperty(val string) { - s.ReadonlyProperty = val + s.ReadonlyProperty = val } func (s *StableClass) SetMutableProperty(val float64) { - s.MutableProperty = val + s.MutableProperty = val } func (s *StableClass) Method() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "StableClass", - Method: "Method", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "StableClass", + Method: "Method", + Args: []string{}, + }) } type StableEnum string const ( - StableEnumOptionA StableEnum = "OPTION_A" - StableEnumOptionB StableEnum = "OPTION_B" + StableEnumOptionA StableEnum = "OPTION_A" + StableEnumOptionB StableEnum = "OPTION_B" ) // StableStructIface is the public interface for the custom type StableStruct type StableStructIface interface { - GetReadonlyProperty() string + GetReadonlyProperty() string } // Struct proxy type StableStruct struct { - ReadonlyProperty string + ReadonlyProperty string } func (s *StableStruct) GetReadonlyProperty() string { - return s.ReadonlyProperty + return s.ReadonlyProperty } // Class interface type StaticContextIface interface { - GetStaticVariable() bool - SetStaticVariable(val bool) + GetStaticVariable() bool + SetStaticVariable(val bool) } // This is used to validate the ability to use \`this\` from within a static context. @@ -7330,244 +7330,244 @@ type StaticContextIface interface { // https://github.com/awslabs/aws-cdk/issues/2304 // Struct proxy type StaticContext struct { - StaticVariable bool + StaticVariable bool } func (s *StaticContext) GetStaticVariable() bool { - return s.StaticVariable + return s.StaticVariable } func (s *StaticContext) SetStaticVariable(val bool) { - s.StaticVariable = val + s.StaticVariable = val } func StaticContext_CanAccessStaticContext() bool { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "StaticContext", - Method: "CanAccessStaticContext", - Args: []string{}, - }) - return true + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "StaticContext", + Method: "CanAccessStaticContext", + Args: []string{}, + }) + return true } // Class interface type StaticsIface interface { - GetBar() float64 - SetBar(val float64) - GetConstObj() DoubleTrouble - SetConstObj(val DoubleTrouble) - GetFoo() string - SetFoo(val string) - GetZooBar() map[string]string - SetZooBar(val map[string]string) - GetInstance() Statics - SetInstance(val Statics) - GetNonConstStatic() float64 - SetNonConstStatic(val float64) - GetValue() string - SetValue(val string) - JustMethod() string + GetBar() float64 + SetBar(val float64) + GetConstObj() DoubleTrouble + SetConstObj(val DoubleTrouble) + GetFoo() string + SetFoo(val string) + GetZooBar() map[string]string + SetZooBar(val map[string]string) + GetInstance() Statics + SetInstance(val Statics) + GetNonConstStatic() float64 + SetNonConstStatic(val float64) + GetValue() string + SetValue(val string) + JustMethod() string } // Struct proxy type Statics struct { - // Constants may also use all-caps. - Bar float64 - ConstObj DoubleTrouble - // Jsdocs for static property. - Foo string - // Constants can also use camelCase. - ZooBar map[string]string - // Jsdocs for static getter. - // - // Jsdocs for static setter. - Instance *Statics - NonConstStatic float64 - Value string + // Constants may also use all-caps. + Bar float64 + ConstObj DoubleTrouble + // Jsdocs for static property. + Foo string + // Constants can also use camelCase. + ZooBar map[string]string + // Jsdocs for static getter. + // + // Jsdocs for static setter. + Instance *Statics + NonConstStatic float64 + Value string } func (s *Statics) GetBar() float64 { - return s.Bar + return s.Bar } func (s *Statics) GetConstObj() DoubleTrouble { - return s.ConstObj + return s.ConstObj } func (s *Statics) GetFoo() string { - return s.Foo + return s.Foo } func (s *Statics) GetZooBar() map[string]string { - return s.ZooBar + return s.ZooBar } func (s *Statics) GetInstance() Statics { - return *s.Instance + return *s.Instance } func (s *Statics) GetNonConstStatic() float64 { - return s.NonConstStatic + return s.NonConstStatic } func (s *Statics) GetValue() string { - return s.Value + return s.Value } func NewStatics(value string) StaticsIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Statics", - Method: "Constructor", - Args: []string{"string",}, - }) - return &Statics{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Statics", + Method: "Constructor", + Args: []string{"string",}, + }) + return &Statics{} } func (s *Statics) SetBar(val float64) { - s.Bar = val + s.Bar = val } func (s *Statics) SetConstObj(val DoubleTrouble) { - s.ConstObj = val + s.ConstObj = val } func (s *Statics) SetFoo(val string) { - s.Foo = val + s.Foo = val } func (s *Statics) SetZooBar(val map[string]string) { - s.ZooBar = val + s.ZooBar = val } func (s *Statics) SetInstance(val Statics) { - s.Instance = &val + s.Instance = &val } func (s *Statics) SetNonConstStatic(val float64) { - s.NonConstStatic = val + s.NonConstStatic = val } func (s *Statics) SetValue(val string) { - s.Value = val + s.Value = val } func Statics_StaticMethod(name string) string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Statics", - Method: "StaticMethod", - Args: []string{"string",}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Statics", + Method: "StaticMethod", + Args: []string{"string",}, + }) + return "NOOP_RETURN_STRING" } func (s *Statics) JustMethod() string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Statics", - Method: "JustMethod", - Args: []string{}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Statics", + Method: "JustMethod", + Args: []string{}, + }) + return "NOOP_RETURN_STRING" } type StringEnum string const ( - StringEnumA StringEnum = "A" - StringEnumB StringEnum = "B" - StringEnumC StringEnum = "C" + StringEnumA StringEnum = "A" + StringEnumB StringEnum = "B" + StringEnumC StringEnum = "C" ) // Class interface type StripInternalIface interface { - GetYouSeeMe() string - SetYouSeeMe(val string) + GetYouSeeMe() string + SetYouSeeMe(val string) } // Struct proxy type StripInternal struct { - YouSeeMe string + YouSeeMe string } func (s *StripInternal) GetYouSeeMe() string { - return s.YouSeeMe + return s.YouSeeMe } func NewStripInternal() StripInternalIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "StripInternal", - Method: "Constructor", - Args: []string{}, - }) - return &StripInternal{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "StripInternal", + Method: "Constructor", + Args: []string{}, + }) + return &StripInternal{} } func (s *StripInternal) SetYouSeeMe(val string) { - s.YouSeeMe = val + s.YouSeeMe = val } // StructAIface is the public interface for the custom type StructA type StructAIface interface { - GetRequiredString() string - GetOptionalNumber() float64 - GetOptionalString() string + GetRequiredString() string + GetOptionalNumber() float64 + GetOptionalString() string } // We can serialize and deserialize structs without silently ignoring optional fields. // Struct proxy type StructA struct { - RequiredString string - OptionalNumber float64 - OptionalString string + RequiredString string + OptionalNumber float64 + OptionalString string } func (s *StructA) GetRequiredString() string { - return s.RequiredString + return s.RequiredString } func (s *StructA) GetOptionalNumber() float64 { - return s.OptionalNumber + return s.OptionalNumber } func (s *StructA) GetOptionalString() string { - return s.OptionalString + return s.OptionalString } // StructBIface is the public interface for the custom type StructB type StructBIface interface { - GetRequiredString() string - GetOptionalBoolean() bool - GetOptionalStructA() StructA + GetRequiredString() string + GetOptionalBoolean() bool + GetOptionalStructA() StructA } // This intentionally overlaps with StructA (where only requiredString is provided) to test htat the kernel properly disambiguates those. // Struct proxy type StructB struct { - RequiredString string - OptionalBoolean bool - OptionalStructA StructA + RequiredString string + OptionalBoolean bool + OptionalStructA StructA } func (s *StructB) GetRequiredString() string { - return s.RequiredString + return s.RequiredString } func (s *StructB) GetOptionalBoolean() bool { - return s.OptionalBoolean + return s.OptionalBoolean } func (s *StructB) GetOptionalStructA() StructA { - return s.OptionalStructA + return s.OptionalStructA } // StructParameterTypeIface is the public interface for the custom type StructParameterType type StructParameterTypeIface interface { - GetScope() string - GetProps() bool + GetScope() string + GetProps() bool } // Verifies that, in languages that do keyword lifting (e.g: Python), having a struct member with the same name as a positional parameter results in the correct code being emitted. @@ -7575,16 +7575,16 @@ type StructParameterTypeIface interface { // See: https://github.com/aws/aws-cdk/issues/4302 // Struct proxy type StructParameterType struct { - Scope string - Props bool + Scope string + Props bool } func (s *StructParameterType) GetScope() string { - return s.Scope + return s.Scope } func (s *StructParameterType) GetProps() bool { - return s.Props + return s.Props } @@ -7598,30 +7598,30 @@ type StructPassing struct { } func NewStructPassing() StructPassingIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "StructPassing", - Method: "Constructor", - Args: []string{}, - }) - return &StructPassing{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "StructPassing", + Method: "Constructor", + Args: []string{}, + }) + return &StructPassing{} } func StructPassing_HowManyVarArgsDidIPass(_positional float64, inputs TopLevelStruct) float64 { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "StructPassing", - Method: "HowManyVarArgsDidIPass", - Args: []string{"number", "jsii-calc.TopLevelStruct",}, - }) - return 0.0 + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "StructPassing", + Method: "HowManyVarArgsDidIPass", + Args: []string{"number", "jsii-calc.TopLevelStruct",}, + }) + return 0.0 } func StructPassing_RoundTrip(_positional float64, input TopLevelStruct) TopLevelStruct { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "StructPassing", - Method: "RoundTrip", - Args: []string{"number", "jsii-calc.TopLevelStruct",}, - }) - return TopLevelStruct{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "StructPassing", + Method: "RoundTrip", + Args: []string{"number", "jsii-calc.TopLevelStruct",}, + }) + return TopLevelStruct{} } // Class interface @@ -7633,494 +7633,494 @@ type StructUnionConsumer struct { } func StructUnionConsumer_IsStructA(struct_ jsii.Any) bool { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "StructUnionConsumer", - Method: "IsStructA", - Args: []string{"jsii-calc.StructA | jsii-calc.StructB",}, - }) - return true + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "StructUnionConsumer", + Method: "IsStructA", + Args: []string{"jsii-calc.StructA | jsii-calc.StructB",}, + }) + return true } func StructUnionConsumer_IsStructB(struct_ jsii.Any) bool { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "StructUnionConsumer", - Method: "IsStructB", - Args: []string{"jsii-calc.StructA | jsii-calc.StructB",}, - }) - return true + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "StructUnionConsumer", + Method: "IsStructB", + Args: []string{"jsii-calc.StructA | jsii-calc.StructB",}, + }) + return true } // StructWithJavaReservedWordsIface is the public interface for the custom type StructWithJavaReservedWords type StructWithJavaReservedWordsIface interface { - GetDefault() string - GetAssert() string - GetResult() string - GetThat() string + GetDefault() string + GetAssert() string + GetResult() string + GetThat() string } // Struct proxy type StructWithJavaReservedWords struct { - Default string - Assert string - Result string - That string + Default string + Assert string + Result string + That string } func (s *StructWithJavaReservedWords) GetDefault() string { - return s.Default + return s.Default } func (s *StructWithJavaReservedWords) GetAssert() string { - return s.Assert + return s.Assert } func (s *StructWithJavaReservedWords) GetResult() string { - return s.Result + return s.Result } func (s *StructWithJavaReservedWords) GetThat() string { - return s.That + return s.That } // Class interface type SumIface interface { - GetValue() float64 - SetValue(val float64) - GetExpression() scopejsiicalclib.NumericValue - SetExpression(val scopejsiicalclib.NumericValue) - GetDecorationPostfixes() []string - SetDecorationPostfixes(val []string) - GetDecorationPrefixes() []string - SetDecorationPrefixes(val []string) - GetStringStyle() composition.CompositionStringStyle - SetStringStyle(val composition.CompositionStringStyle) - GetParts() []scopejsiicalclib.NumericValue - SetParts(val []scopejsiicalclib.NumericValue) - TypeName() jsii.Any - ToString() string + GetValue() float64 + SetValue(val float64) + GetExpression() scopejsiicalclib.NumericValue + SetExpression(val scopejsiicalclib.NumericValue) + GetDecorationPostfixes() []string + SetDecorationPostfixes(val []string) + GetDecorationPrefixes() []string + SetDecorationPrefixes(val []string) + GetStringStyle() composition.CompositionStringStyle + SetStringStyle(val composition.CompositionStringStyle) + GetParts() []scopejsiicalclib.NumericValue + SetParts(val []scopejsiicalclib.NumericValue) + TypeName() jsii.Any + ToString() string } // An operation that sums multiple values. // Struct proxy type Sum struct { - // (deprecated) The value. - Value float64 - // The expression that this operation consists of. - // - // Must be implemented by derived classes. - Expression scopejsiicalclib.NumericValue - // A set of postfixes to include in a decorated .toString(). - DecorationPostfixes []string - // A set of prefixes to include in a decorated .toString(). - DecorationPrefixes []string - // The .toString() style. - StringStyle composition.CompositionStringStyle - // The parts to sum. - Parts []scopejsiicalclib.NumericValue + // (deprecated) The value. + Value float64 + // The expression that this operation consists of. + // + // Must be implemented by derived classes. + Expression scopejsiicalclib.NumericValue + // A set of postfixes to include in a decorated .toString(). + DecorationPostfixes []string + // A set of prefixes to include in a decorated .toString(). + DecorationPrefixes []string + // The .toString() style. + StringStyle composition.CompositionStringStyle + // The parts to sum. + Parts []scopejsiicalclib.NumericValue } func (s *Sum) GetValue() float64 { - return s.Value + return s.Value } func (s *Sum) GetExpression() scopejsiicalclib.NumericValue { - return s.Expression + return s.Expression } func (s *Sum) GetDecorationPostfixes() []string { - return s.DecorationPostfixes + return s.DecorationPostfixes } func (s *Sum) GetDecorationPrefixes() []string { - return s.DecorationPrefixes + return s.DecorationPrefixes } func (s *Sum) GetStringStyle() composition.CompositionStringStyle { - return s.StringStyle + return s.StringStyle } func (s *Sum) GetParts() []scopejsiicalclib.NumericValue { - return s.Parts + return s.Parts } func NewSum() SumIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Sum", - Method: "Constructor", - Args: []string{}, - }) - return &Sum{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Sum", + Method: "Constructor", + Args: []string{}, + }) + return &Sum{} } func (s *Sum) SetValue(val float64) { - s.Value = val + s.Value = val } func (s *Sum) SetExpression(val scopejsiicalclib.NumericValue) { - s.Expression = val + s.Expression = val } func (s *Sum) SetDecorationPostfixes(val []string) { - s.DecorationPostfixes = val + s.DecorationPostfixes = val } func (s *Sum) SetDecorationPrefixes(val []string) { - s.DecorationPrefixes = val + s.DecorationPrefixes = val } func (s *Sum) SetStringStyle(val composition.CompositionStringStyle) { - s.StringStyle = val + s.StringStyle = val } func (s *Sum) SetParts(val []scopejsiicalclib.NumericValue) { - s.Parts = val + s.Parts = val } func (s *Sum) TypeName() jsii.Any { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Sum", - Method: "TypeName", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Sum", + Method: "TypeName", + Args: []string{}, + }) + return nil } func (s *Sum) ToString() string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Sum", - Method: "ToString", - Args: []string{}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Sum", + Method: "ToString", + Args: []string{}, + }) + return "NOOP_RETURN_STRING" } // Class interface type SupportsNiceJavaBuilderIface interface { - GetBar() float64 - SetBar(val float64) - GetId() float64 - SetId(val float64) - GetPropId() string - SetPropId(val string) - GetRest() []string - SetRest(val []string) + GetBar() float64 + SetBar(val float64) + GetId() float64 + SetId(val float64) + GetPropId() string + SetPropId(val string) + GetRest() []string + SetRest(val []string) } // Struct proxy type SupportsNiceJavaBuilder struct { - Bar float64 - // some identifier. - Id float64 - PropId string - Rest []string + Bar float64 + // some identifier. + Id float64 + PropId string + Rest []string } func (s *SupportsNiceJavaBuilder) GetBar() float64 { - return s.Bar + return s.Bar } func (s *SupportsNiceJavaBuilder) GetId() float64 { - return s.Id + return s.Id } func (s *SupportsNiceJavaBuilder) GetPropId() string { - return s.PropId + return s.PropId } func (s *SupportsNiceJavaBuilder) GetRest() []string { - return s.Rest + return s.Rest } func NewSupportsNiceJavaBuilder(id float64, defaultBar float64, props SupportsNiceJavaBuilderProps, rest string) SupportsNiceJavaBuilderIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "SupportsNiceJavaBuilder", - Method: "Constructor", - Args: []string{"number", "number", "jsii-calc.SupportsNiceJavaBuilderProps", "string",}, - }) - return &SupportsNiceJavaBuilder{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "SupportsNiceJavaBuilder", + Method: "Constructor", + Args: []string{"number", "number", "jsii-calc.SupportsNiceJavaBuilderProps", "string",}, + }) + return &SupportsNiceJavaBuilder{} } func (s *SupportsNiceJavaBuilder) SetBar(val float64) { - s.Bar = val + s.Bar = val } func (s *SupportsNiceJavaBuilder) SetId(val float64) { - s.Id = val + s.Id = val } func (s *SupportsNiceJavaBuilder) SetPropId(val string) { - s.PropId = val + s.PropId = val } func (s *SupportsNiceJavaBuilder) SetRest(val []string) { - s.Rest = val + s.Rest = val } // SupportsNiceJavaBuilderPropsIface is the public interface for the custom type SupportsNiceJavaBuilderProps type SupportsNiceJavaBuilderPropsIface interface { - GetBar() float64 - GetId() string + GetBar() float64 + GetId() string } // Struct proxy type SupportsNiceJavaBuilderProps struct { - // Some number, like 42. - Bar float64 - // An \`id\` field here is terrible API design, because the constructor of \`SupportsNiceJavaBuilder\` already has a parameter named \`id\`. - // - // But here we are, doing it like we didn't care. - Id string + // Some number, like 42. + Bar float64 + // An \`id\` field here is terrible API design, because the constructor of \`SupportsNiceJavaBuilder\` already has a parameter named \`id\`. + // + // But here we are, doing it like we didn't care. + Id string } func (s *SupportsNiceJavaBuilderProps) GetBar() float64 { - return s.Bar + return s.Bar } func (s *SupportsNiceJavaBuilderProps) GetId() string { - return s.Id + return s.Id } // Class interface type SupportsNiceJavaBuilderWithRequiredPropsIface interface { - GetBar() float64 - SetBar(val float64) - GetId() float64 - SetId(val float64) - GetPropId() string - SetPropId(val string) + GetBar() float64 + SetBar(val float64) + GetId() float64 + SetId(val float64) + GetPropId() string + SetPropId(val string) } // We can generate fancy builders in Java for classes which take a mix of positional & struct parameters. // Struct proxy type SupportsNiceJavaBuilderWithRequiredProps struct { - Bar float64 - // some identifier of your choice. - Id float64 - PropId string + Bar float64 + // some identifier of your choice. + Id float64 + PropId string } func (s *SupportsNiceJavaBuilderWithRequiredProps) GetBar() float64 { - return s.Bar + return s.Bar } func (s *SupportsNiceJavaBuilderWithRequiredProps) GetId() float64 { - return s.Id + return s.Id } func (s *SupportsNiceJavaBuilderWithRequiredProps) GetPropId() string { - return s.PropId + return s.PropId } func NewSupportsNiceJavaBuilderWithRequiredProps(id float64, props SupportsNiceJavaBuilderProps) SupportsNiceJavaBuilderWithRequiredPropsIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "SupportsNiceJavaBuilderWithRequiredProps", - Method: "Constructor", - Args: []string{"number", "jsii-calc.SupportsNiceJavaBuilderProps",}, - }) - return &SupportsNiceJavaBuilderWithRequiredProps{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "SupportsNiceJavaBuilderWithRequiredProps", + Method: "Constructor", + Args: []string{"number", "jsii-calc.SupportsNiceJavaBuilderProps",}, + }) + return &SupportsNiceJavaBuilderWithRequiredProps{} } func (s *SupportsNiceJavaBuilderWithRequiredProps) SetBar(val float64) { - s.Bar = val + s.Bar = val } func (s *SupportsNiceJavaBuilderWithRequiredProps) SetId(val float64) { - s.Id = val + s.Id = val } func (s *SupportsNiceJavaBuilderWithRequiredProps) SetPropId(val string) { - s.PropId = val + s.PropId = val } // Class interface type SyncVirtualMethodsIface interface { - GetReadonlyProperty() string - SetReadonlyProperty(val string) - GetA() float64 - SetA(val float64) - GetCallerIsProperty() float64 - SetCallerIsProperty(val float64) - GetOtherProperty() string - SetOtherProperty(val string) - GetTheProperty() string - SetTheProperty(val string) - GetValueOfOtherProperty() string - SetValueOfOtherProperty(val string) - CallerIsAsync() float64 - CallerIsMethod() float64 - ModifyOtherProperty(value string) - ModifyValueOfTheProperty(value string) - ReadA() float64 - RetrieveOtherProperty() string - RetrieveReadOnlyProperty() string - RetrieveValueOfTheProperty() string - VirtualMethod(n float64) float64 - WriteA(value float64) + GetReadonlyProperty() string + SetReadonlyProperty(val string) + GetA() float64 + SetA(val float64) + GetCallerIsProperty() float64 + SetCallerIsProperty(val float64) + GetOtherProperty() string + SetOtherProperty(val string) + GetTheProperty() string + SetTheProperty(val string) + GetValueOfOtherProperty() string + SetValueOfOtherProperty(val string) + CallerIsAsync() float64 + CallerIsMethod() float64 + ModifyOtherProperty(value string) + ModifyValueOfTheProperty(value string) + ReadA() float64 + RetrieveOtherProperty() string + RetrieveReadOnlyProperty() string + RetrieveValueOfTheProperty() string + VirtualMethod(n float64) float64 + WriteA(value float64) } // Struct proxy type SyncVirtualMethods struct { - ReadonlyProperty string - A float64 - CallerIsProperty float64 - OtherProperty string - TheProperty string - ValueOfOtherProperty string + ReadonlyProperty string + A float64 + CallerIsProperty float64 + OtherProperty string + TheProperty string + ValueOfOtherProperty string } func (s *SyncVirtualMethods) GetReadonlyProperty() string { - return s.ReadonlyProperty + return s.ReadonlyProperty } func (s *SyncVirtualMethods) GetA() float64 { - return s.A + return s.A } func (s *SyncVirtualMethods) GetCallerIsProperty() float64 { - return s.CallerIsProperty + return s.CallerIsProperty } func (s *SyncVirtualMethods) GetOtherProperty() string { - return s.OtherProperty + return s.OtherProperty } func (s *SyncVirtualMethods) GetTheProperty() string { - return s.TheProperty + return s.TheProperty } func (s *SyncVirtualMethods) GetValueOfOtherProperty() string { - return s.ValueOfOtherProperty + return s.ValueOfOtherProperty } func NewSyncVirtualMethods() SyncVirtualMethodsIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "SyncVirtualMethods", - Method: "Constructor", - Args: []string{}, - }) - return &SyncVirtualMethods{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "SyncVirtualMethods", + Method: "Constructor", + Args: []string{}, + }) + return &SyncVirtualMethods{} } func (s *SyncVirtualMethods) SetReadonlyProperty(val string) { - s.ReadonlyProperty = val + s.ReadonlyProperty = val } func (s *SyncVirtualMethods) SetA(val float64) { - s.A = val + s.A = val } func (s *SyncVirtualMethods) SetCallerIsProperty(val float64) { - s.CallerIsProperty = val + s.CallerIsProperty = val } func (s *SyncVirtualMethods) SetOtherProperty(val string) { - s.OtherProperty = val + s.OtherProperty = val } func (s *SyncVirtualMethods) SetTheProperty(val string) { - s.TheProperty = val + s.TheProperty = val } func (s *SyncVirtualMethods) SetValueOfOtherProperty(val string) { - s.ValueOfOtherProperty = val + s.ValueOfOtherProperty = val } func (s *SyncVirtualMethods) CallerIsAsync() float64 { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "SyncVirtualMethods", - Method: "CallerIsAsync", - Args: []string{}, - }) - return 0.0 + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "SyncVirtualMethods", + Method: "CallerIsAsync", + Args: []string{}, + }) + return 0.0 } func (s *SyncVirtualMethods) CallerIsMethod() float64 { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "SyncVirtualMethods", - Method: "CallerIsMethod", - Args: []string{}, - }) - return 0.0 + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "SyncVirtualMethods", + Method: "CallerIsMethod", + Args: []string{}, + }) + return 0.0 } func (s *SyncVirtualMethods) ModifyOtherProperty(value string) { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "SyncVirtualMethods", - Method: "ModifyOtherProperty", - Args: []string{"string",}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "SyncVirtualMethods", + Method: "ModifyOtherProperty", + Args: []string{"string",}, + }) } func (s *SyncVirtualMethods) ModifyValueOfTheProperty(value string) { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "SyncVirtualMethods", - Method: "ModifyValueOfTheProperty", - Args: []string{"string",}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "SyncVirtualMethods", + Method: "ModifyValueOfTheProperty", + Args: []string{"string",}, + }) } func (s *SyncVirtualMethods) ReadA() float64 { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "SyncVirtualMethods", - Method: "ReadA", - Args: []string{}, - }) - return 0.0 + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "SyncVirtualMethods", + Method: "ReadA", + Args: []string{}, + }) + return 0.0 } func (s *SyncVirtualMethods) RetrieveOtherProperty() string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "SyncVirtualMethods", - Method: "RetrieveOtherProperty", - Args: []string{}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "SyncVirtualMethods", + Method: "RetrieveOtherProperty", + Args: []string{}, + }) + return "NOOP_RETURN_STRING" } func (s *SyncVirtualMethods) RetrieveReadOnlyProperty() string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "SyncVirtualMethods", - Method: "RetrieveReadOnlyProperty", - Args: []string{}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "SyncVirtualMethods", + Method: "RetrieveReadOnlyProperty", + Args: []string{}, + }) + return "NOOP_RETURN_STRING" } func (s *SyncVirtualMethods) RetrieveValueOfTheProperty() string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "SyncVirtualMethods", - Method: "RetrieveValueOfTheProperty", - Args: []string{}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "SyncVirtualMethods", + Method: "RetrieveValueOfTheProperty", + Args: []string{}, + }) + return "NOOP_RETURN_STRING" } func (s *SyncVirtualMethods) VirtualMethod(n float64) float64 { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "SyncVirtualMethods", - Method: "VirtualMethod", - Args: []string{"number",}, - }) - return 0.0 + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "SyncVirtualMethods", + Method: "VirtualMethod", + Args: []string{"number",}, + }) + return 0.0 } func (s *SyncVirtualMethods) WriteA(value float64) { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "SyncVirtualMethods", - Method: "WriteA", - Args: []string{"number",}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "SyncVirtualMethods", + Method: "WriteA", + Args: []string{"number",}, + }) } // Class interface type ThrowerIface interface { - ThrowError() + ThrowError() } // Struct proxy @@ -8128,49 +8128,49 @@ type Thrower struct { } func NewThrower() ThrowerIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Thrower", - Method: "Constructor", - Args: []string{}, - }) - return &Thrower{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Thrower", + Method: "Constructor", + Args: []string{}, + }) + return &Thrower{} } func (t *Thrower) ThrowError() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Thrower", - Method: "ThrowError", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Thrower", + Method: "ThrowError", + Args: []string{}, + }) } // TopLevelStructIface is the public interface for the custom type TopLevelStruct type TopLevelStructIface interface { - GetRequired() string - GetSecondLevel() jsii.Any - GetOptional() string + GetRequired() string + GetSecondLevel() jsii.Any + GetOptional() string } // Struct proxy type TopLevelStruct struct { - // This is a required field. - Required string - // A union to really stress test our serialization. - SecondLevel jsii.Any - // You don't have to pass this. - Optional string + // This is a required field. + Required string + // A union to really stress test our serialization. + SecondLevel jsii.Any + // You don't have to pass this. + Optional string } func (t *TopLevelStruct) GetRequired() string { - return t.Required + return t.Required } func (t *TopLevelStruct) GetSecondLevel() jsii.Any { - return t.SecondLevel + return t.SecondLevel } func (t *TopLevelStruct) GetOptional() string { - return t.Optional + return t.Optional } @@ -8186,143 +8186,143 @@ type UmaskCheck struct { } func UmaskCheck_Mode() float64 { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "UmaskCheck", - Method: "Mode", - Args: []string{}, - }) - return 0.0 + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "UmaskCheck", + Method: "Mode", + Args: []string{}, + }) + return 0.0 } // Class interface type UnaryOperationIface interface { - GetValue() float64 - SetValue(val float64) - GetOperand() scopejsiicalclib.NumericValue - SetOperand(val scopejsiicalclib.NumericValue) - TypeName() jsii.Any - ToString() string + GetValue() float64 + SetValue(val float64) + GetOperand() scopejsiicalclib.NumericValue + SetOperand(val scopejsiicalclib.NumericValue) + TypeName() jsii.Any + ToString() string } // An operation on a single operand. // Struct proxy type UnaryOperation struct { - // The value. - // Deprecated. - Value float64 - Operand scopejsiicalclib.NumericValue + // The value. + // Deprecated. + Value float64 + Operand scopejsiicalclib.NumericValue } func (u *UnaryOperation) GetValue() float64 { - return u.Value + return u.Value } func (u *UnaryOperation) GetOperand() scopejsiicalclib.NumericValue { - return u.Operand + return u.Operand } func NewUnaryOperation(operand scopejsiicalclib.NumericValue) UnaryOperationIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "UnaryOperation", - Method: "Constructor", - Args: []string{"@scope/jsii-calc-lib.NumericValue",}, - }) - return &UnaryOperation{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "UnaryOperation", + Method: "Constructor", + Args: []string{"@scope/jsii-calc-lib.NumericValue",}, + }) + return &UnaryOperation{} } func (u *UnaryOperation) SetValue(val float64) { - u.Value = val + u.Value = val } func (u *UnaryOperation) SetOperand(val scopejsiicalclib.NumericValue) { - u.Operand = val + u.Operand = val } func (u *UnaryOperation) TypeName() jsii.Any { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "UnaryOperation", - Method: "TypeName", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "UnaryOperation", + Method: "TypeName", + Args: []string{}, + }) + return nil } func (u *UnaryOperation) ToString() string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "UnaryOperation", - Method: "ToString", - Args: []string{}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "UnaryOperation", + Method: "ToString", + Args: []string{}, + }) + return "NOOP_RETURN_STRING" } // UnionPropertiesIface is the public interface for the custom type UnionProperties type UnionPropertiesIface interface { - GetBar() jsii.Any - GetFoo() jsii.Any + GetBar() jsii.Any + GetFoo() jsii.Any } // Struct proxy type UnionProperties struct { - Bar jsii.Any - Foo jsii.Any + Bar jsii.Any + Foo jsii.Any } func (u *UnionProperties) GetBar() jsii.Any { - return u.Bar + return u.Bar } func (u *UnionProperties) GetFoo() jsii.Any { - return u.Foo + return u.Foo } // Class interface type UpcasingReflectableIface interface { - submodule.IReflectable - GetReflector() submodule.Reflector - SetReflector(val submodule.Reflector) - GetEntries() []submodule.ReflectableEntry - SetEntries(val []submodule.ReflectableEntry) + submodule.IReflectable + GetReflector() submodule.Reflector + SetReflector(val submodule.Reflector) + GetEntries() []submodule.ReflectableEntry + SetEntries(val []submodule.ReflectableEntry) } // Ensures submodule-imported types from dependencies can be used correctly. // Struct proxy type UpcasingReflectable struct { - Reflector submodule.Reflector - Entries []submodule.ReflectableEntry + Reflector submodule.Reflector + Entries []submodule.ReflectableEntry } func (u *UpcasingReflectable) GetReflector() submodule.Reflector { - return u.Reflector + return u.Reflector } func (u *UpcasingReflectable) GetEntries() []submodule.ReflectableEntry { - return u.Entries + return u.Entries } func NewUpcasingReflectable(delegate map[string]jsii.Any) UpcasingReflectableIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "UpcasingReflectable", - Method: "Constructor", - Args: []string{"Map any>",}, - }) - return &UpcasingReflectable{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "UpcasingReflectable", + Method: "Constructor", + Args: []string{"Map any>",}, + }) + return &UpcasingReflectable{} } func (u *UpcasingReflectable) SetReflector(val submodule.Reflector) { - u.Reflector = val + u.Reflector = val } func (u *UpcasingReflectable) SetEntries(val []submodule.ReflectableEntry) { - u.Entries = val + u.Entries = val } // Class interface type UseBundledDependencyIface interface { - Value() jsii.Any + Value() jsii.Any } // Struct proxy @@ -8330,26 +8330,26 @@ type UseBundledDependency struct { } func NewUseBundledDependency() UseBundledDependencyIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "UseBundledDependency", - Method: "Constructor", - Args: []string{}, - }) - return &UseBundledDependency{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "UseBundledDependency", + Method: "Constructor", + Args: []string{}, + }) + return &UseBundledDependency{} } func (u *UseBundledDependency) Value() jsii.Any { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "UseBundledDependency", - Method: "Value", - Args: []string{}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "UseBundledDependency", + Method: "Value", + Args: []string{}, + }) + return nil } // Class interface type UseCalcBaseIface interface { - Hello() scopejsiicalcbase.Base + Hello() scopejsiicalcbase.Base } // Depend on a type from jsii-calc-base as a test for awslabs/jsii#128. @@ -8358,85 +8358,85 @@ type UseCalcBase struct { } func NewUseCalcBase() UseCalcBaseIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "UseCalcBase", - Method: "Constructor", - Args: []string{}, - }) - return &UseCalcBase{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "UseCalcBase", + Method: "Constructor", + Args: []string{}, + }) + return &UseCalcBase{} } func (u *UseCalcBase) Hello() scopejsiicalcbase.Base { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "UseCalcBase", - Method: "Hello", - Args: []string{}, - }) - return scopejsiicalcbase.Base{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "UseCalcBase", + Method: "Hello", + Args: []string{}, + }) + return scopejsiicalcbase.Base{} } // Class interface type UsesInterfaceWithPropertiesIface interface { - GetObj() IInterfaceWithProperties - SetObj(val IInterfaceWithProperties) - JustRead() string - ReadStringAndNumber(ext IInterfaceWithPropertiesExtension) string - WriteAndRead(value string) string + GetObj() IInterfaceWithProperties + SetObj(val IInterfaceWithProperties) + JustRead() string + ReadStringAndNumber(ext IInterfaceWithPropertiesExtension) string + WriteAndRead(value string) string } // Struct proxy type UsesInterfaceWithProperties struct { - Obj IInterfaceWithProperties + Obj IInterfaceWithProperties } func (u *UsesInterfaceWithProperties) GetObj() IInterfaceWithProperties { - return u.Obj + return u.Obj } func NewUsesInterfaceWithProperties(obj IInterfaceWithProperties) UsesInterfaceWithPropertiesIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "UsesInterfaceWithProperties", - Method: "Constructor", - Args: []string{"jsii-calc.IInterfaceWithProperties",}, - }) - return &UsesInterfaceWithProperties{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "UsesInterfaceWithProperties", + Method: "Constructor", + Args: []string{"jsii-calc.IInterfaceWithProperties",}, + }) + return &UsesInterfaceWithProperties{} } func (u *UsesInterfaceWithProperties) SetObj(val IInterfaceWithProperties) { - u.Obj = val + u.Obj = val } func (u *UsesInterfaceWithProperties) JustRead() string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "UsesInterfaceWithProperties", - Method: "JustRead", - Args: []string{}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "UsesInterfaceWithProperties", + Method: "JustRead", + Args: []string{}, + }) + return "NOOP_RETURN_STRING" } func (u *UsesInterfaceWithProperties) ReadStringAndNumber(ext IInterfaceWithPropertiesExtension) string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "UsesInterfaceWithProperties", - Method: "ReadStringAndNumber", - Args: []string{"jsii-calc.IInterfaceWithPropertiesExtension",}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "UsesInterfaceWithProperties", + Method: "ReadStringAndNumber", + Args: []string{"jsii-calc.IInterfaceWithPropertiesExtension",}, + }) + return "NOOP_RETURN_STRING" } func (u *UsesInterfaceWithProperties) WriteAndRead(value string) string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "UsesInterfaceWithProperties", - Method: "WriteAndRead", - Args: []string{"string",}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "UsesInterfaceWithProperties", + Method: "WriteAndRead", + Args: []string{"string",}, + }) + return "NOOP_RETURN_STRING" } // Class interface type VariadicInvokerIface interface { - AsArray(values float64) []float64 + AsArray(values float64) []float64 } // Struct proxy @@ -8444,26 +8444,26 @@ type VariadicInvoker struct { } func NewVariadicInvoker(method VariadicMethod) VariadicInvokerIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "VariadicInvoker", - Method: "Constructor", - Args: []string{"jsii-calc.VariadicMethod",}, - }) - return &VariadicInvoker{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "VariadicInvoker", + Method: "Constructor", + Args: []string{"jsii-calc.VariadicMethod",}, + }) + return &VariadicInvoker{} } func (v *VariadicInvoker) AsArray(values float64) []float64 { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "VariadicInvoker", - Method: "AsArray", - Args: []string{"number",}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "VariadicInvoker", + Method: "AsArray", + Args: []string{"number",}, + }) + return nil } // Class interface type VariadicMethodIface interface { - AsArray(first float64, others float64) []float64 + AsArray(first float64, others float64) []float64 } // Struct proxy @@ -8471,30 +8471,30 @@ type VariadicMethod struct { } func NewVariadicMethod(prefix float64) VariadicMethodIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "VariadicMethod", - Method: "Constructor", - Args: []string{"number",}, - }) - return &VariadicMethod{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "VariadicMethod", + Method: "Constructor", + Args: []string{"number",}, + }) + return &VariadicMethod{} } func (v *VariadicMethod) AsArray(first float64, others float64) []float64 { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "VariadicMethod", - Method: "AsArray", - Args: []string{"number", "number",}, - }) - return nil + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "VariadicMethod", + Method: "AsArray", + Args: []string{"number", "number",}, + }) + return nil } // Class interface type VirtualMethodPlaygroundIface interface { - OverrideMeAsync(index float64) float64 - OverrideMeSync(index float64) float64 - ParallelSumAsync(count float64) float64 - SerialSumAsync(count float64) float64 - SumSync(count float64) float64 + OverrideMeAsync(index float64) float64 + OverrideMeSync(index float64) float64 + ParallelSumAsync(count float64) float64 + SerialSumAsync(count float64) float64 + SumSync(count float64) float64 } // Struct proxy @@ -8502,65 +8502,65 @@ type VirtualMethodPlayground struct { } func NewVirtualMethodPlayground() VirtualMethodPlaygroundIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "VirtualMethodPlayground", - Method: "Constructor", - Args: []string{}, - }) - return &VirtualMethodPlayground{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "VirtualMethodPlayground", + Method: "Constructor", + Args: []string{}, + }) + return &VirtualMethodPlayground{} } func (v *VirtualMethodPlayground) OverrideMeAsync(index float64) float64 { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "VirtualMethodPlayground", - Method: "OverrideMeAsync", - Args: []string{"number",}, - }) - return 0.0 + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "VirtualMethodPlayground", + Method: "OverrideMeAsync", + Args: []string{"number",}, + }) + return 0.0 } func (v *VirtualMethodPlayground) OverrideMeSync(index float64) float64 { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "VirtualMethodPlayground", - Method: "OverrideMeSync", - Args: []string{"number",}, - }) - return 0.0 + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "VirtualMethodPlayground", + Method: "OverrideMeSync", + Args: []string{"number",}, + }) + return 0.0 } func (v *VirtualMethodPlayground) ParallelSumAsync(count float64) float64 { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "VirtualMethodPlayground", - Method: "ParallelSumAsync", - Args: []string{"number",}, - }) - return 0.0 + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "VirtualMethodPlayground", + Method: "ParallelSumAsync", + Args: []string{"number",}, + }) + return 0.0 } func (v *VirtualMethodPlayground) SerialSumAsync(count float64) float64 { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "VirtualMethodPlayground", - Method: "SerialSumAsync", - Args: []string{"number",}, - }) - return 0.0 + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "VirtualMethodPlayground", + Method: "SerialSumAsync", + Args: []string{"number",}, + }) + return 0.0 } func (v *VirtualMethodPlayground) SumSync(count float64) float64 { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "VirtualMethodPlayground", - Method: "SumSync", - Args: []string{"number",}, - }) - return 0.0 + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "VirtualMethodPlayground", + Method: "SumSync", + Args: []string{"number",}, + }) + return 0.0 } // Class interface type VoidCallbackIface interface { - GetMethodWasCalled() bool - SetMethodWasCalled(val bool) - CallMe() - OverrideMe() + GetMethodWasCalled() bool + SetMethodWasCalled(val bool) + CallMe() + OverrideMe() } // This test is used to validate the runtimes can return correctly from a void callback. @@ -8570,71 +8570,71 @@ type VoidCallbackIface interface { // - Verify that \`methodWasCalled\` is \`true\`. // Struct proxy type VoidCallback struct { - MethodWasCalled bool + MethodWasCalled bool } func (v *VoidCallback) GetMethodWasCalled() bool { - return v.MethodWasCalled + return v.MethodWasCalled } func NewVoidCallback() VoidCallbackIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "VoidCallback", - Method: "Constructor", - Args: []string{}, - }) - return &VoidCallback{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "VoidCallback", + Method: "Constructor", + Args: []string{}, + }) + return &VoidCallback{} } func (v *VoidCallback) SetMethodWasCalled(val bool) { - v.MethodWasCalled = val + v.MethodWasCalled = val } func (v *VoidCallback) CallMe() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "VoidCallback", - Method: "CallMe", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "VoidCallback", + Method: "CallMe", + Args: []string{}, + }) } func (v *VoidCallback) OverrideMe() { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "VoidCallback", - Method: "OverrideMe", - Args: []string{}, - }) + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "VoidCallback", + Method: "OverrideMe", + Args: []string{}, + }) } // Class interface type WithPrivatePropertyInConstructorIface interface { - GetSuccess() bool - SetSuccess(val bool) + GetSuccess() bool + SetSuccess(val bool) } // Verifies that private property declarations in constructor arguments are hidden. // Struct proxy type WithPrivatePropertyInConstructor struct { - Success bool + Success bool } func (w *WithPrivatePropertyInConstructor) GetSuccess() bool { - return w.Success + return w.Success } func NewWithPrivatePropertyInConstructor(privateField string) WithPrivatePropertyInConstructorIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "WithPrivatePropertyInConstructor", - Method: "Constructor", - Args: []string{"string",}, - }) - return &WithPrivatePropertyInConstructor{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "WithPrivatePropertyInConstructor", + Method: "Constructor", + Args: []string{"string",}, + }) + return &WithPrivatePropertyInConstructor{} } func (w *WithPrivatePropertyInConstructor) SetSuccess(val bool) { - w.Success = val + w.Success = val } @@ -8644,93 +8644,93 @@ exports[`Generated code for "jsii-calc": /golang/jsiicalc/pythonself/pyt package pythonself import ( - "github.com/aws-cdk/jsii/jsii-experimental" + "github.com/aws-cdk/jsii/jsii-experimental" ) // Class interface type ClassWithSelfIface interface { - GetSelf() string - SetSelf(val string) - Method(self float64) string + GetSelf() string + SetSelf(val string) + Method(self float64) string } // Struct proxy type ClassWithSelf struct { - Self string + Self string } func (c *ClassWithSelf) GetSelf() string { - return c.Self + return c.Self } func NewClassWithSelf(self string) ClassWithSelfIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ClassWithSelf", - Method: "Constructor", - Args: []string{"string",}, - }) - return &ClassWithSelf{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ClassWithSelf", + Method: "Constructor", + Args: []string{"string",}, + }) + return &ClassWithSelf{} } func (c *ClassWithSelf) SetSelf(val string) { - c.Self = val + c.Self = val } func (c *ClassWithSelf) Method(self float64) string { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ClassWithSelf", - Method: "Method", - Args: []string{"number",}, - }) - return "NOOP_RETURN_STRING" + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ClassWithSelf", + Method: "Method", + Args: []string{"number",}, + }) + return "NOOP_RETURN_STRING" } // Class interface type ClassWithSelfKwargIface interface { - GetProps() StructWithSelf - SetProps(val StructWithSelf) + GetProps() StructWithSelf + SetProps(val StructWithSelf) } // Struct proxy type ClassWithSelfKwarg struct { - Props StructWithSelf + Props StructWithSelf } func (c *ClassWithSelfKwarg) GetProps() StructWithSelf { - return c.Props + return c.Props } func NewClassWithSelfKwarg(props StructWithSelf) ClassWithSelfKwargIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "ClassWithSelfKwarg", - Method: "Constructor", - Args: []string{"jsii-calc.PythonSelf.StructWithSelf",}, - }) - return &ClassWithSelfKwarg{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "ClassWithSelfKwarg", + Method: "Constructor", + Args: []string{"jsii-calc.PythonSelf.StructWithSelf",}, + }) + return &ClassWithSelfKwarg{} } func (c *ClassWithSelfKwarg) SetProps(val StructWithSelf) { - c.Props = val + c.Props = val } type IInterfaceWithSelf interface { - Method(self float64) string + Method(self float64) string } // StructWithSelfIface is the public interface for the custom type StructWithSelf type StructWithSelfIface interface { - GetSelf() string + GetSelf() string } // Struct proxy type StructWithSelf struct { - Self string + Self string } func (s *StructWithSelf) GetSelf() string { - return s.Self + return s.Self } @@ -8741,22 +8741,22 @@ exports[`Generated code for "jsii-calc": /golang/jsiicalc/submodule/back package backreferences import ( - "github.com/aws-cdk/jsii/jsii-experimental" - "github.com/aws-cdk/jsii/jsii-calc/golang/jsiicalc/submodule" + "github.com/aws-cdk/jsii/jsii-experimental" + "github.com/aws-cdk/jsii/jsii-calc/golang/jsiicalc/submodule" ) // MyClassReferenceIface is the public interface for the custom type MyClassReference type MyClassReferenceIface interface { - GetReference() submodule.MyClass + GetReference() submodule.MyClass } // Struct proxy type MyClassReference struct { - Reference submodule.MyClass + Reference submodule.MyClass } func (m *MyClassReference) GetReference() submodule.MyClass { - return m.Reference + return m.Reference } @@ -8767,77 +8767,77 @@ exports[`Generated code for "jsii-calc": /golang/jsiicalc/submodule/chil package child import ( - "github.com/aws-cdk/jsii/jsii-experimental" + "github.com/aws-cdk/jsii/jsii-experimental" ) type Awesomeness string const ( - AwesomenessAwesome Awesomeness = "AWESOME" + AwesomenessAwesome Awesomeness = "AWESOME" ) type Goodness string const ( - GoodnessPrettyGood Goodness = "PRETTY_GOOD" - GoodnessReallyGood Goodness = "REALLY_GOOD" - GoodnessAmazinglyGood Goodness = "AMAZINGLY_GOOD" + GoodnessPrettyGood Goodness = "PRETTY_GOOD" + GoodnessReallyGood Goodness = "REALLY_GOOD" + GoodnessAmazinglyGood Goodness = "AMAZINGLY_GOOD" ) // Class interface type InnerClassIface interface { - GetStaticProp() SomeStruct - SetStaticProp(val SomeStruct) + GetStaticProp() SomeStruct + SetStaticProp(val SomeStruct) } // Struct proxy type InnerClass struct { - StaticProp SomeStruct + StaticProp SomeStruct } func (i *InnerClass) GetStaticProp() SomeStruct { - return i.StaticProp + return i.StaticProp } func NewInnerClass() InnerClassIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "InnerClass", - Method: "Constructor", - Args: []string{}, - }) - return &InnerClass{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "InnerClass", + Method: "Constructor", + Args: []string{}, + }) + return &InnerClass{} } func (i *InnerClass) SetStaticProp(val SomeStruct) { - i.StaticProp = val + i.StaticProp = val } // KwargsPropsIface is the public interface for the custom type KwargsProps type KwargsPropsIface interface { - GetProp() SomeEnum - GetExtra() string + GetProp() SomeEnum + GetExtra() string } // Struct proxy type KwargsProps struct { - Prop SomeEnum - Extra string + Prop SomeEnum + Extra string } func (k *KwargsProps) GetProp() SomeEnum { - return k.Prop + return k.Prop } func (k *KwargsProps) GetExtra() string { - return k.Extra + return k.Extra } // Class interface type OuterClassIface interface { - GetInnerClass() InnerClass - SetInnerClass(val InnerClass) + GetInnerClass() InnerClass + SetInnerClass(val InnerClass) } // Checks that classes can self-reference during initialization. @@ -8845,60 +8845,60 @@ type OuterClassIface interface { // // Struct proxy type OuterClass struct { - InnerClass InnerClass + InnerClass InnerClass } func (o *OuterClass) GetInnerClass() InnerClass { - return o.InnerClass + return o.InnerClass } func NewOuterClass() OuterClassIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "OuterClass", - Method: "Constructor", - Args: []string{}, - }) - return &OuterClass{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "OuterClass", + Method: "Constructor", + Args: []string{}, + }) + return &OuterClass{} } func (o *OuterClass) SetInnerClass(val InnerClass) { - o.InnerClass = val + o.InnerClass = val } type SomeEnum string const ( - SomeEnumSome SomeEnum = "SOME" + SomeEnumSome SomeEnum = "SOME" ) // SomeStructIface is the public interface for the custom type SomeStruct type SomeStructIface interface { - GetProp() SomeEnum + GetProp() SomeEnum } // Struct proxy type SomeStruct struct { - Prop SomeEnum + Prop SomeEnum } func (s *SomeStruct) GetProp() SomeEnum { - return s.Prop + return s.Prop } // StructureIface is the public interface for the custom type Structure type StructureIface interface { - GetBool() bool + GetBool() bool } // Struct proxy type Structure struct { - Bool bool + Bool bool } func (s *Structure) GetBool() bool { - return s.Bool + return s.Bool } @@ -8909,11 +8909,11 @@ exports[`Generated code for "jsii-calc": /golang/jsiicalc/submodule/deep package deeplynested import ( - "github.com/aws-cdk/jsii/jsii-experimental" + "github.com/aws-cdk/jsii/jsii-experimental" ) type INamespaced interface { - GetDefinedAt() string + GetDefinedAt() string } @@ -8923,7 +8923,7 @@ exports[`Generated code for "jsii-calc": /golang/jsiicalc/submodule/isol package isolated import ( - "github.com/aws-cdk/jsii/jsii-experimental" + "github.com/aws-cdk/jsii/jsii-experimental" ) // Class interface @@ -8936,12 +8936,12 @@ type Kwargs struct { } func Kwargs_Method(props child.KwargsProps) bool { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "Kwargs", - Method: "Method", - Args: []string{"jsii-calc.submodule.child.KwargsProps",}, - }) - return true + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "Kwargs", + Method: "Method", + Args: []string{"jsii-calc.submodule.child.KwargsProps",}, + }) + return true } @@ -8951,40 +8951,40 @@ exports[`Generated code for "jsii-calc": /golang/jsiicalc/submodule/nest package nestedsubmodule import ( - "github.com/aws-cdk/jsii/jsii-experimental" - "github.com/aws-cdk/jsii/jsii-calc/golang/jsiicalc/submodule" + "github.com/aws-cdk/jsii/jsii-experimental" + "github.com/aws-cdk/jsii/jsii-calc/golang/jsiicalc/submodule" ) // Class interface type NamespacedIface interface { - deeplynested.INamespaced - GetDefinedAt() string - SetDefinedAt(val string) - GetGoodness() child.Goodness - SetGoodness(val child.Goodness) + deeplynested.INamespaced + GetDefinedAt() string + SetDefinedAt(val string) + GetGoodness() child.Goodness + SetGoodness(val child.Goodness) } // Struct proxy type Namespaced struct { - DefinedAt string - Goodness child.Goodness + DefinedAt string + Goodness child.Goodness } func (n *Namespaced) GetDefinedAt() string { - return n.DefinedAt + return n.DefinedAt } func (n *Namespaced) GetGoodness() child.Goodness { - return n.Goodness + return n.Goodness } func (n *Namespaced) SetDefinedAt(val string) { - n.DefinedAt = val + n.DefinedAt = val } func (n *Namespaced) SetGoodness(val child.Goodness) { - n.Goodness = val + n.Goodness = val } @@ -8994,83 +8994,83 @@ exports[`Generated code for "jsii-calc": /golang/jsiicalc/submodule/subm package submodule import ( - "github.com/aws-cdk/jsii/jsii-experimental" - "github.com/aws-cdk/jsii/jsii-calc/golang/jsiicalc/submodule" - "github.com/aws-cdk/jsii/jsii-calc/golang/jsiicalc" + "github.com/aws-cdk/jsii/jsii-experimental" + "github.com/aws-cdk/jsii/jsii-calc/golang/jsiicalc/submodule" + "github.com/aws-cdk/jsii/jsii-calc/golang/jsiicalc" ) // Class interface type MyClassIface interface { - deeplynested.INamespaced - GetAwesomeness() child.Awesomeness - SetAwesomeness(val child.Awesomeness) - GetDefinedAt() string - SetDefinedAt(val string) - GetGoodness() child.Goodness - SetGoodness(val child.Goodness) - GetProps() child.SomeStruct - SetProps(val child.SomeStruct) - GetAllTypes() jsiicalc.AllTypes - SetAllTypes(val jsiicalc.AllTypes) + deeplynested.INamespaced + GetAwesomeness() child.Awesomeness + SetAwesomeness(val child.Awesomeness) + GetDefinedAt() string + SetDefinedAt(val string) + GetGoodness() child.Goodness + SetGoodness(val child.Goodness) + GetProps() child.SomeStruct + SetProps(val child.SomeStruct) + GetAllTypes() jsiicalc.AllTypes + SetAllTypes(val jsiicalc.AllTypes) } // Struct proxy type MyClass struct { - Awesomeness child.Awesomeness - DefinedAt string - Goodness child.Goodness - Props child.SomeStruct - AllTypes jsiicalc.AllTypes + Awesomeness child.Awesomeness + DefinedAt string + Goodness child.Goodness + Props child.SomeStruct + AllTypes jsiicalc.AllTypes } func (m *MyClass) GetAwesomeness() child.Awesomeness { - return m.Awesomeness + return m.Awesomeness } func (m *MyClass) GetDefinedAt() string { - return m.DefinedAt + return m.DefinedAt } func (m *MyClass) GetGoodness() child.Goodness { - return m.Goodness + return m.Goodness } func (m *MyClass) GetProps() child.SomeStruct { - return m.Props + return m.Props } func (m *MyClass) GetAllTypes() jsiicalc.AllTypes { - return m.AllTypes + return m.AllTypes } func NewMyClass(props child.SomeStruct) MyClassIface { - jsii.NoOpRequest(jsii.NoOpApiRequest { - Class: "MyClass", - Method: "Constructor", - Args: []string{"jsii-calc.submodule.child.SomeStruct",}, - }) - return &MyClass{} + jsii.NoOpRequest(jsii.NoOpApiRequest { + Class: "MyClass", + Method: "Constructor", + Args: []string{"jsii-calc.submodule.child.SomeStruct",}, + }) + return &MyClass{} } func (m *MyClass) SetAwesomeness(val child.Awesomeness) { - m.Awesomeness = val + m.Awesomeness = val } func (m *MyClass) SetDefinedAt(val string) { - m.DefinedAt = val + m.DefinedAt = val } func (m *MyClass) SetGoodness(val child.Goodness) { - m.Goodness = val + m.Goodness = val } func (m *MyClass) SetProps(val child.SomeStruct) { - m.Props = val + m.Props = val } func (m *MyClass) SetAllTypes(val jsiicalc.AllTypes) { - m.AllTypes = val + m.AllTypes = val } From 71f575884b565cccd67055a2fea075fbeb675b78 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 2 Oct 2020 06:02:42 +0000 Subject: [PATCH 02/16] chore(deps): update actions/setup-node requirement to v2.1.2 Updates the requirements on [actions/setup-node](https://github.com/actions/setup-node) to permit the latest version. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/commits/c6fd00ceb9747fb23ffdf72987450a2664414867) Signed-off-by: dependabot[bot] --- .github/workflows/main.yml | 8 ++++---- .github/workflows/yarn-upgrade.yml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ecb03cf5f2..35e0429c60 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,7 +31,7 @@ jobs: with: java-version: '8' - name: Set up Node 12 - uses: actions/setup-node@v2.1.1 + uses: actions/setup-node@v2.1.2 with: node-version: '12' - name: Set up Python 3.6 @@ -105,7 +105,7 @@ jobs: with: java-version: '8' - name: Set up Node 12 - uses: actions/setup-node@v2.1.1 + uses: actions/setup-node@v2.1.2 with: node-version: '12' - name: Set up Python 3.6 @@ -239,7 +239,7 @@ jobs: with: java-version: ${{ matrix.java }} - name: Set up Node ${{ matrix.node }} - uses: actions/setup-node@v2.1.1 + uses: actions/setup-node@v2.1.2 with: node-version: ${{ matrix.node }} - name: Set up Python ${{ matrix.python }} @@ -320,7 +320,7 @@ jobs: with: java-version: '8' - name: Set up Node 10 - uses: actions/setup-node@v2.1.1 + uses: actions/setup-node@v2.1.2 with: node-version: '10' - name: Set up Python 3.6 diff --git a/.github/workflows/yarn-upgrade.yml b/.github/workflows/yarn-upgrade.yml index 0bb97411ac..66e84ff982 100644 --- a/.github/workflows/yarn-upgrade.yml +++ b/.github/workflows/yarn-upgrade.yml @@ -16,7 +16,7 @@ jobs: uses: actions/checkout@v2 - name: Set up Node - uses: actions/setup-node@v2.1.0 + uses: actions/setup-node@v2.1.2 with: node-version: 10 From 9af1e3f2795dbbaa1eb204bca2e57b80bd9951ba Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 2 Oct 2020 10:38:38 +0000 Subject: [PATCH 03/16] chore(deps): bump deep-equal from 2.0.3 to 2.0.4 (#2068) --- packages/jsii/package.json | 2 +- yarn.lock | 94 +++++++++++++++++++++++++------------- 2 files changed, 62 insertions(+), 34 deletions(-) diff --git a/packages/jsii/package.json b/packages/jsii/package.json index e67795469d..2967dddf85 100644 --- a/packages/jsii/package.json +++ b/packages/jsii/package.json @@ -37,7 +37,7 @@ "@jsii/spec": "^0.0.0", "case": "^1.6.3", "colors": "^1.4.0", - "deep-equal": "^2.0.3", + "deep-equal": "^2.0.4", "fs-extra": "^9.0.1", "log4js": "^6.3.0", "semver": "^7.3.2", diff --git a/yarn.lock b/yarn.lock index c5da3016a5..44bda65699 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3490,22 +3490,22 @@ dedent@^0.7.0: resolved "https://registry.yarnpkg.com/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c" integrity sha1-JJXduvbrh0q7Dhvp3yLS5aVEMmw= -deep-equal@^2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/deep-equal/-/deep-equal-2.0.3.tgz#cad1c15277ad78a5c01c49c2dee0f54de8a6a7b0" - integrity sha512-Spqdl4H+ky45I9ByyJtXteOm9CaIrPmnIPmOhrkKGNYWeDgCvJ8jNYVCTjChxW4FqGuZnLHADc8EKRMX6+CgvA== +deep-equal@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/deep-equal/-/deep-equal-2.0.4.tgz#6b0b407a074666033169df3acaf128e1c6f3eab6" + integrity sha512-BUfaXrVoCfgkOQY/b09QdO9L3XNoF2XH0A3aY9IQwQL/ZjLOe8FQgCNVl1wiolhsFo8kFdO9zdPViCPbmaJA5w== dependencies: - es-abstract "^1.17.5" + es-abstract "^1.18.0-next.1" es-get-iterator "^1.1.0" is-arguments "^1.0.4" is-date-object "^1.0.2" - is-regex "^1.0.5" + is-regex "^1.1.1" isarray "^2.0.5" - object-is "^1.1.2" + object-is "^1.1.3" object-keys "^1.1.1" - object.assign "^4.1.0" + object.assign "^4.1.1" regexp.prototype.flags "^1.3.0" - side-channel "^1.0.2" + side-channel "^1.0.3" which-boxed-primitive "^1.0.1" which-collection "^1.0.1" which-typed-array "^1.1.2" @@ -3527,7 +3527,7 @@ defaults@^1.0.3: dependencies: clone "^1.0.2" -define-properties@^1.1.2, define-properties@^1.1.3: +define-properties@^1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.3.tgz#cf88da6cbee26fe6db7094f61d870cbd84cee9f1" integrity sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ== @@ -3841,6 +3841,24 @@ es-abstract@^1.17.0, es-abstract@^1.17.0-next.1, es-abstract@^1.17.4, es-abstrac string.prototype.trimend "^1.0.1" string.prototype.trimstart "^1.0.1" +es-abstract@^1.18.0-next.0, es-abstract@^1.18.0-next.1: + version "1.18.0-next.1" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.18.0-next.1.tgz#6e3a0a4bda717e5023ab3b8e90bec36108d22c68" + integrity sha512-I4UGspA0wpZXWENrdA0uHbnhte683t3qT/1VFH9aX2dA5PPSf6QW5HHXf5HImaqPmjXaVeVk4RGWnaylmV7uAA== + dependencies: + es-to-primitive "^1.2.1" + function-bind "^1.1.1" + has "^1.0.3" + has-symbols "^1.0.1" + is-callable "^1.2.2" + is-negative-zero "^2.0.0" + is-regex "^1.1.1" + object-inspect "^1.8.0" + object-keys "^1.1.1" + object.assign "^4.1.1" + string.prototype.trimend "^1.0.1" + string.prototype.trimstart "^1.0.1" + es-get-iterator@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/es-get-iterator/-/es-get-iterator-1.1.0.tgz#bb98ad9d6d63b31aacdc8f89d5d0ee57bcb5b4c8" @@ -4827,7 +4845,7 @@ has-flag@^4.0.0: resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== -has-symbols@^1.0.0, has-symbols@^1.0.1: +has-symbols@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.1.tgz#9f5214758a44196c406d9bd76cebf81ec2dd31e8" integrity sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg== @@ -5225,6 +5243,11 @@ is-callable@^1.1.4, is-callable@^1.2.0: resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.0.tgz#83336560b54a38e35e3a2df7afd0454d691468bb" integrity sha512-pyVD9AaGLxtg6srb2Ng6ynWJqkHU9bEM087AKck0w8QwDarTfNcpIYoU8x8Hv2Icm8u6kFJM18Dag8lyqGkviw== +is-callable@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.2.tgz#c7c6715cd22d4ddb48d3e19970223aceabb080d9" + integrity sha512-dnMqspv5nU3LoewK2N/y7KLtxtakvTuaCsU9FU50/QDmdbHNy/4/JuRtMHqRU22o3q+W89YQndQEeCVwK+3qrA== + is-ci@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-2.0.0.tgz#6bc6334181810e04b5c22b3d589fdca55026404c" @@ -5342,6 +5365,11 @@ is-map@^2.0.1: resolved "https://registry.yarnpkg.com/is-map/-/is-map-2.0.1.tgz#520dafc4307bb8ebc33b813de5ce7c9400d644a1" integrity sha512-T/S49scO8plUiAOA2DBTBG3JHpn1yiw0kRp6dgiZ0v2/6twi5eiB0rHtHFH9ZIrvlWc6+4O+m4zg5+Z833aXgw== +is-negative-zero@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-negative-zero/-/is-negative-zero-2.0.0.tgz#9553b121b0fac28869da9ed459e20c7543788461" + integrity sha1-lVOxIbD6wohp2p7UWeIMdUN4hGE= + is-number-object@^1.0.3: version "1.0.4" resolved "https://registry.yarnpkg.com/is-number-object/-/is-number-object-1.0.4.tgz#36ac95e741cf18b283fc1ddf5e83da798e3ec197" @@ -5391,7 +5419,7 @@ is-potential-custom-element-name@^1.0.0: resolved "https://registry.yarnpkg.com/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.0.tgz#0c52e54bcca391bb2c494b21e8626d7336c6e397" integrity sha1-DFLlS8yjkbssSUsh6GJtczbG45c= -is-regex@^1.0.5, is-regex@^1.1.0: +is-regex@^1.1.0, is-regex@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.1.1.tgz#c6f98aacc546f6cec5468a07b7b153ab564a57b9" integrity sha512-1+QkEcxiLlB7VEyFtyBg94e08OAsvq7FUBgApTq/w2ymCLyKJgDPsybBENVtA7XCQEgEXxKPonG+mvYRxh/LIg== @@ -7033,20 +7061,20 @@ object-copy@^0.1.0: define-property "^0.2.5" kind-of "^3.0.3" -object-inspect@^1.7.0: +object-inspect@^1.7.0, object-inspect@^1.8.0: version "1.8.0" resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.8.0.tgz#df807e5ecf53a609cc6bfe93eac3cc7be5b3a9d0" integrity sha512-jLdtEOB112fORuypAyl/50VRVIBIdVQOSUUGQHzJ4xBSbit81zRarz7GThkEFZy1RceYrWYcPcBFPQwHyAc1gA== -object-is@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/object-is/-/object-is-1.1.2.tgz#c5d2e87ff9e119f78b7a088441519e2eec1573b6" - integrity sha512-5lHCz+0uufF6wZ7CRFWJN3hp8Jqblpgve06U5CMQ3f//6iDjPr2PEo9MWCjEssDsa+UZEL4PkFpr+BMop6aKzQ== +object-is@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/object-is/-/object-is-1.1.3.tgz#2e3b9e65560137455ee3bd62aec4d90a2ea1cc81" + integrity sha512-teyqLvFWzLkq5B9ki8FVWA902UER2qkxmdA4nLf+wjOLAWgxzCWZNCxpDq9MvE8MmhWNr+I8w3BN49Vx36Y6Xg== dependencies: define-properties "^1.1.3" - es-abstract "^1.17.5" + es-abstract "^1.18.0-next.1" -object-keys@^1.0.11, object-keys@^1.0.12, object-keys@^1.1.1: +object-keys@^1.0.12, object-keys@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== @@ -7058,15 +7086,15 @@ object-visit@^1.0.0: dependencies: isobject "^3.0.0" -object.assign@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.0.tgz#968bf1100d7956bb3ca086f006f846b3bc4008da" - integrity sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w== +object.assign@^4.1.0, object.assign@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.1.tgz#303867a666cdd41936ecdedfb1f8f3e32a478cdd" + integrity sha512-VT/cxmx5yaoHSOTSyrCygIDFco+RsibY2NM0a4RdEeY/4KgqezwFtK1yr3U67xYhqJSlASm2pKhLVzPj2lr4bA== dependencies: - define-properties "^1.1.2" - function-bind "^1.1.1" - has-symbols "^1.0.0" - object-keys "^1.0.11" + define-properties "^1.1.3" + es-abstract "^1.18.0-next.0" + has-symbols "^1.0.1" + object-keys "^1.1.1" object.getownpropertydescriptors@^2.0.3: version "2.1.0" @@ -8326,13 +8354,13 @@ shellwords@^0.1.1: resolved "https://registry.yarnpkg.com/shellwords/-/shellwords-0.1.1.tgz#d6b9181c1a48d397324c84871efbcfc73fc0654b" integrity sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww== -side-channel@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.2.tgz#df5d1abadb4e4bf4af1cd8852bf132d2f7876947" - integrity sha512-7rL9YlPHg7Ancea1S96Pa8/QWb4BtXL/TZvS6B8XFetGBeuhAsfmUspK6DokBeZ64+Kj9TCNRD/30pVz1BvQNA== +side-channel@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.3.tgz#cdc46b057550bbab63706210838df5d4c19519c3" + integrity sha512-A6+ByhlLkksFoUepsGxfj5x1gTSrs+OydsRptUxeNCabQpCFUvcwIczgOigI8vhY/OJCnPnyE9rGiwgvr9cS1g== dependencies: - es-abstract "^1.17.0-next.1" - object-inspect "^1.7.0" + es-abstract "^1.18.0-next.0" + object-inspect "^1.8.0" signal-exit@^3.0.0, signal-exit@^3.0.2: version "3.0.3" From 85764deffd70af92333363bf38478440351654da Mon Sep 17 00:00:00 2001 From: Romain Marcadier Date: Fri, 2 Oct 2020 23:53:17 +0200 Subject: [PATCH 04/16] feat(go): embed jsii runtime application (#2066) Bundles the `@jsii/runtime` application within the go runtime library. This ships the necessary files as byte slices in `embeddedruntime.generated.go`. The `client` initializer will un-pack this into a temporary directory (cleaned up by `client.Close()`) and run that, unless the user specified the `JSII_RUNTIME` environment variable (in which case, that command is used instead). The `client` also assigns `JSII_AGENT` to a string representing the `go` stack version used during build (`runtime.Version()`), the operating system under which the application is running and the CPU architecture. The string is formatted as `VERSION/OS/ARCH`. A new `runtime.go` was introduced that manages a singleton `client` instance and exports a `Close` function that can be invoked to gracefully clean up the child process. --- By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0 --- packages/@jsii/go-runtime/.gitignore | 6 +- packages/@jsii/go-runtime/build-tools/gen.ts | 75 ++++++- .../@jsii/go-runtime/jsii-calc-test/main.go | 22 +-- .../go-runtime/jsii-experimental/client.go | 187 +++++++++++++----- .../jsii-experimental/client_test.go | 3 +- .../jsii-experimental/embedded/.gitkeep | 0 .../go-runtime/jsii-experimental/runtime.go | 12 ++ packages/@jsii/go-runtime/package.json | 1 + 8 files changed, 234 insertions(+), 72 deletions(-) delete mode 100644 packages/@jsii/go-runtime/jsii-experimental/embedded/.gitkeep create mode 100644 packages/@jsii/go-runtime/jsii-experimental/runtime.go diff --git a/packages/@jsii/go-runtime/.gitignore b/packages/@jsii/go-runtime/.gitignore index 4d72767d9d..8d293c96e0 100644 --- a/packages/@jsii/go-runtime/.gitignore +++ b/packages/@jsii/go-runtime/.gitignore @@ -1,4 +1,2 @@ -jsii-experimental/embedded/* -jsii-calc - -!jsii-experimental/embedded/.gitkeep +/jsii-calc/ +*.generated.go diff --git a/packages/@jsii/go-runtime/build-tools/gen.ts b/packages/@jsii/go-runtime/build-tools/gen.ts index 0ea28842b9..1b1caefad7 100644 --- a/packages/@jsii/go-runtime/build-tools/gen.ts +++ b/packages/@jsii/go-runtime/build-tools/gen.ts @@ -1,14 +1,73 @@ #!/usr/bin/env npx ts-node -import { copyFileSync, readdirSync } from 'fs'; -import { join, resolve } from 'path'; +import { CodeMaker } from 'codemaker'; +import { readdirSync, readFileSync } from 'fs'; +import { resolve } from 'path'; -const EMBEDDED_SOURCE = resolve(__dirname, '..', '..', 'runtime', 'webpack'); +const EMBEDDED_RUNTIME_ROOT = resolve( + __dirname, + '..', + '..', + 'runtime', + 'webpack', +); -for (const filename of readdirSync(EMBEDDED_SOURCE)) { - const filepath = join(EMBEDDED_SOURCE, filename); - copyFileSync( - filepath, - resolve(__dirname, '..', 'jsii-experimental', 'embedded', filename), +const OUTPUT_DIR = resolve(__dirname, '..', 'jsii-experimental'); + +const RUNTIME_FILE = 'embeddedruntime.generated.go'; +const VERSION_FILE = 'version.generated.go'; + +const code = new CodeMaker(); + +code.openFile(RUNTIME_FILE); +code.line('package jsii'); +code.line(); +code.open('var embeddedruntime = map[string][]byte{'); +const bytesPerLine = 16; +const files = readdirSync(EMBEDDED_RUNTIME_ROOT); +const fileSize: Record = {}; +for (const file of files) { + const byteSlice = getByteSlice(resolve(EMBEDDED_RUNTIME_ROOT, file)); + fileSize[file] = byteSlice.length; + code.open(`${JSON.stringify(file)}: []byte{`); + for (let i = 0; i < byteSlice.length; i += bytesPerLine) { + const line = byteSlice.slice(i, i + bytesPerLine); + code.line(`${line.join(', ')},`); + } + code.close('},'); +} +code.close('}'); +code.line(); +const mainKey = JSON.stringify(files.find((f) => f.endsWith('.js')))!; +code.line(`const embeddedruntimeMain = ${mainKey}`); +code.line(); +// This performs sanity tests upon initialization +code.open('func init() {'); +for (const [file, size] of Object.entries(fileSize)) { + code.open(`if len(embeddedruntime[${JSON.stringify(file)}]) != ${size} {`); + code.line( + `panic("Embedded runtime file ${file} does not have expected size of ${size} bytes!")`, ); + code.close('}'); +} +code.close('}'); +code.closeFile(RUNTIME_FILE); + +code.openFile(VERSION_FILE); +code.line('package jsii'); +code.line(); +const thisVersion = require('../package.json').version; +code.line(`const version = ${JSON.stringify(thisVersion)}`); +code.closeFile(VERSION_FILE); + +code.save(OUTPUT_DIR); + +function getByteSlice(path: string) { + const fileData = readFileSync(path).toString('hex'); + const result = []; + for (let i = 0; i < fileData.length; i += 2) { + result.push(`0x${fileData[i]}${fileData[i + 1]}`); + } + + return result; } diff --git a/packages/@jsii/go-runtime/jsii-calc-test/main.go b/packages/@jsii/go-runtime/jsii-calc-test/main.go index 27574afe37..11dbd5bd1c 100644 --- a/packages/@jsii/go-runtime/jsii-calc-test/main.go +++ b/packages/@jsii/go-runtime/jsii-calc-test/main.go @@ -1,21 +1,21 @@ package main import ( - // "log" - "fmt" - jsiicalc "github.com/aws-cdk/jsii/jsii-calc/golang/jsiicalc" + // "fmt" + calc "github.com/aws-cdk/jsii/jsii-calc/golang/jsiicalc" "github.com/aws-cdk/jsii/jsii-experimental" + "math" ) func main() { - fmt.Println("Hello, JSII") - // client, err := jsii.InitClient() + defer jsii.Close() - // if err !=nil { - // log.Fatal(err) - // } - fmt.Print(jsii.Client{RuntimeVersion: "100.100.100"}) + calculator := calc.NewCalculator(calc.CalculatorProps{InitialValue: 0, MaximumValue: math.MaxFloat64}) + calculator.Add(1337) + calculator.Mul(42) - // fmt.Printf("Client init successful\nRuntime version: %s", client.RuntimeVersion) - fmt.Println(jsiicalc.AbstractClass{}) + if calculator.GetValue() != 1337.*42. { + // TODO: right now implementations are just NOOP. + // panic(fmt.Sprintf("Unexpected calculator value: expected %f, but received %f", 1337.*42., calculator.GetValue())) + } } diff --git a/packages/@jsii/go-runtime/jsii-experimental/client.go b/packages/@jsii/go-runtime/jsii-experimental/client.go index 6cee021982..bc34b68ac2 100644 --- a/packages/@jsii/go-runtime/jsii-experimental/client.go +++ b/packages/@jsii/go-runtime/jsii-experimental/client.go @@ -1,24 +1,77 @@ package jsii import ( - "bufio" "encoding/json" "errors" + "fmt" "io" "io/ioutil" "log" + "os" "os/exec" + "path" "regexp" + goruntime "runtime" + "sync" ) +var ( + clientInstance *client + clientInstanceMutex sync.Mutex + clientOnce sync.Once +) + +// getClient returns a singleton client instance, initializing one the first +// time it is called. +func getClient() *client { + clientOnce.Do(func() { + // Locking early to be safe with a concurrent Close execution + clientInstanceMutex.Lock() + defer clientInstanceMutex.Unlock() + + client, err := newClient() + if err != nil { + panic(err) + } + + clientInstance = client + }) + + return clientInstance +} + +// closeClient finalizes the runtime process, signalling the end of the +// execution to the jsii kernel process, and waiting for graceful termination. +// +// If a jsii client is used *after* closeClient was called, a new jsii kernel +// process will be initialized, and closeClient should be called again to +// correctly finalize that, too. +func closeClient() { + // Locking early to be safe with a concurrent getClient execution + clientInstanceMutex.Lock() + defer clientInstanceMutex.Unlock() + + // Reset the "once" so a new client would get initialized next time around + clientOnce = sync.Once{} + + if clientInstance != nil { + // Close the client & reset it + clientInstance.close() + clientInstance = nil + } +} + type Any interface{} -type Client struct { - Process *exec.Cmd +type client struct { + process *exec.Cmd RuntimeVersion string writer *json.Encoder reader *json.Decoder - stderr io.ReadCloser + + // Keeping track of state that'll need cleaning up in close() + stdin io.WriteCloser + tmpdir string } func CheckFatalError(e error) { @@ -27,51 +80,86 @@ func CheckFatalError(e error) { } } -func InitClient() (Client, error) { - cmd := exec.Command("node", "./embedded/jsii-runtime.js") +// newClient starts the kernel child process and verifies the "hello" message +// was correct. +func newClient() (*client, error) { + clientinstance := &client{} + + // Register a finalizer to call Close() + goruntime.SetFinalizer(clientinstance, func(c *client) { + c.close() + }) + + customruntime := os.Getenv("JSII_RUNTIME") + if customruntime != "" { + // The user has provided a custom JSII_RUNTIME, so we'll just honor that. This feature can + // greatly help during development iterations or when trying to diagnose a user-discovered bug + // that resists reproduction. The "built-in" runtime is webpack'd, and this can degrade the + // debugger experience with certain debuggers (so far, only Chrome's was found to give the right + // experience) + clientinstance.process = exec.Command(customruntime) + } else { + // The user hasn't provided a custom JSII_RUNTIME, so we'll unpack the built-in one + tmpdir, err := ioutil.TempDir("", "jsii-runtime.*") + if err != nil { + return nil, err + } + clientinstance.tmpdir = tmpdir - out, err := cmd.StdoutPipe() - if err != nil { - return Client{}, err - } + for file, data := range embeddedruntime { + filepath := path.Join(tmpdir, file) + if err := ioutil.WriteFile(filepath, data, 0644); err != nil { + return nil, err + } + } - in, err := cmd.StdinPipe() - if err != nil { - return Client{}, err + entrypoint := path.Join(tmpdir, embeddedruntimeMain) + // --max-old-space-size is recommended to be set because `jsii` currently does not quite do + // garbage collection (the kernel API only allows the host library to report object deleting, + // but in order to be effective, the jsii kernel needs to also have a way to signal objects it + // no longer has a reference to). + clientinstance.process = exec.Command("node", "--max-old-space-size=4069", entrypoint) } - stderr, err := cmd.StderrPipe() + clientinstance.process.Env = append( + os.Environ(), + fmt.Sprintf("JSII_AGENT=%s/%s/%s", goruntime.Version(), goruntime.GOOS, goruntime.GOARCH), + ) + + // Forward child process STDERR to this process' STDERR for immediate feedback + clientinstance.process.Stderr = os.Stderr + + // Pipe child process STDIN from a JSON encoder + in, err := clientinstance.process.StdinPipe() if err != nil { - return Client{}, err + return nil, err } + clientinstance.stdin = in + clientinstance.writer = json.NewEncoder(in) - // Start Process - if err := cmd.Start(); err != nil { - return Client{}, err + // Pipe child process STDOUT to a JSON decoder + out, err := clientinstance.process.StdoutPipe() + if err != nil { + return nil, err } + clientinstance.reader = json.NewDecoder(out) - writer := json.NewEncoder(in) - reader := json.NewDecoder(out) - - client := Client{ - Process: cmd, - writer: writer, - reader: reader, - stderr: stderr, + // Start process + if err := clientinstance.process.Start(); err != nil { + return nil, err } - // Check for OK response and parse runtime version - rtver, err := client.validateClientStart() - + // Check for "hello" message and parse runtime version + rtversion, err := clientinstance.processHello() if err != nil { - return Client{}, err + return nil, err } + clientinstance.RuntimeVersion = rtversion - client.RuntimeVersion = rtver - return client, nil + return clientinstance, nil } -func (c *Client) request(req KernelRequest, res KernelResponse) error { +func (c *client) request(req KernelRequest, res KernelResponse) error { err := c.writer.Encode(req) if err != nil { return err @@ -80,38 +168,41 @@ func (c *Client) request(req KernelRequest, res KernelResponse) error { return c.response(res) } -func (c *Client) response(res KernelResponse) error { +func (c *client) response(res KernelResponse) error { if c.reader.More() { return c.reader.Decode(res) } - errrdr := bufio.NewReader(c.stderr) - if errrdr.Size() > 0 { - erroutput, err := ioutil.ReadAll(errrdr) - - if err != nil { - return err - } - - return errors.New(string(erroutput)) - } - return errors.New("No Response from runtime") } -func (c *Client) validateClientStart() (string, error) { +func (c *client) processHello() (string, error) { response := InitOkResponse{} if err := c.response(&response); err != nil { return "", err } - version := regexp.MustCompile("@").Split(response.Hello, 3)[2] + parts := regexp.MustCompile("@").Split(response.Hello, 3) + version := parts[len(parts)-1] return version, nil } -func (c *Client) load(request LoadRequest) (LoadResponse, error) { +func (c *client) load(request LoadRequest) (LoadResponse, error) { response := LoadResponse{} return response, c.request(request, &response) } + +func (c *client) close() { + if c.process != nil { + c.stdin.Close() + c.process.Wait() + } + if c.tmpdir != "" { + os.RemoveAll(c.tmpdir) + } + + // We no longer need a finalizer to run + goruntime.SetFinalizer(c, nil) +} diff --git a/packages/@jsii/go-runtime/jsii-experimental/client_test.go b/packages/@jsii/go-runtime/jsii-experimental/client_test.go index c4d85fd283..2d68e30357 100644 --- a/packages/@jsii/go-runtime/jsii-experimental/client_test.go +++ b/packages/@jsii/go-runtime/jsii-experimental/client_test.go @@ -7,11 +7,12 @@ import ( ) func TestClient(t *testing.T) { - client, err := InitClient() + client, err := newClient() if err != nil { t.Log(err) t.Errorf(fmt.Sprintf("Client init error: %s", err.Error())) } + defer client.close() if client.RuntimeVersion == "" { clientstr, _ := json.Marshal(&client) diff --git a/packages/@jsii/go-runtime/jsii-experimental/embedded/.gitkeep b/packages/@jsii/go-runtime/jsii-experimental/embedded/.gitkeep deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/packages/@jsii/go-runtime/jsii-experimental/runtime.go b/packages/@jsii/go-runtime/jsii-experimental/runtime.go new file mode 100644 index 0000000000..2ce08ffbdd --- /dev/null +++ b/packages/@jsii/go-runtime/jsii-experimental/runtime.go @@ -0,0 +1,12 @@ +package jsii + +// Close finalizes the runtime process, signalling the end of the execution to +// the jsii kernel process, and waiting for graceful termination. The best +// practice is to defer call thins at the beginning of the "main" function. +// +// If a jsii client is used *after* Close was called, a new jsii kernel process +// will be initialized, and Close should be called again to correctly finalize +// that, too. This behavior is intended for use in unit/integration tests. +func Close() { + closeClient() +} diff --git a/packages/@jsii/go-runtime/package.json b/packages/@jsii/go-runtime/package.json index 01cb39456c..205567cc16 100644 --- a/packages/@jsii/go-runtime/package.json +++ b/packages/@jsii/go-runtime/package.json @@ -22,6 +22,7 @@ "devDependencies": { "@types/fs-extra": "^8.1.1", "@types/node": "^10.17.35", + "codemaker": "^0.0.0", "fs-extra": "^9.0.1", "jsii-calc": "^0.0.0", "jsii-pacmak": "^0.0.0", From ead4d67214f739d9359217f5a27d239a258148b3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 5 Oct 2020 06:41:22 +0000 Subject: [PATCH 05/16] chore(deps): bump jsonschema from 1.2.7 to 1.2.8 (#2075) --- packages/@jsii/spec/package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/@jsii/spec/package.json b/packages/@jsii/spec/package.json index 85db0001ba..7949abd4ec 100644 --- a/packages/@jsii/spec/package.json +++ b/packages/@jsii/spec/package.json @@ -31,7 +31,7 @@ "package": "package-js" }, "dependencies": { - "jsonschema": "^1.2.7" + "jsonschema": "^1.2.8" }, "devDependencies": { "@types/jest": "^26.0.14", diff --git a/yarn.lock b/yarn.lock index 44bda65699..a1a58901e1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6109,10 +6109,10 @@ jsonparse@^1.2.0: resolved "https://registry.yarnpkg.com/jsonparse/-/jsonparse-1.3.1.tgz#3f4dae4a91fac315f71062f8521cc239f1366280" integrity sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA= -jsonschema@^1.2.7: - version "1.2.7" - resolved "https://registry.yarnpkg.com/jsonschema/-/jsonschema-1.2.7.tgz#4e6d6dc4d83dc80707055ba22c00ec6152c0e6e9" - integrity sha512-3dFMg9hmI9LdHag/BRIhMefCfbq1hicvYMy8YhZQorAdzOzWz7NjniSpn39yjpzUAMIWtGyyZuH2KNBloH7ZLw== +jsonschema@^1.2.8: + version "1.2.8" + resolved "https://registry.yarnpkg.com/jsonschema/-/jsonschema-1.2.8.tgz#76efb90aa6062f9bd24ba4414965089b948e35ce" + integrity sha512-HZrVvnv9Ri3WK3t53Anu55eS+IYiQm+UcGE23oBEYi3gD1qODW+I7y4R28q2FyVhzGTDhxAEqTjbe5+jNkqmeQ== jsprim@^1.2.2: version "1.4.1" From 0756b64223e1b00db66d0e20239ba042e0867bc3 Mon Sep 17 00:00:00 2001 From: sullis Date: Mon, 5 Oct 2020 03:30:48 -0700 Subject: [PATCH 06/16] chore(java): mockito 3.5.13 (#2074) Co-authored-by: Romain Marcadier --- packages/@jsii/java-runtime/pom.xml.t.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@jsii/java-runtime/pom.xml.t.js b/packages/@jsii/java-runtime/pom.xml.t.js index 539623c122..a42030e11e 100644 --- a/packages/@jsii/java-runtime/pom.xml.t.js +++ b/packages/@jsii/java-runtime/pom.xml.t.js @@ -64,7 +64,7 @@ process.stdout.write(` [2.10.1,2.11.0) [13.0.0,20.0.0) [5.6.1,5.7.0) - [3.2.4,3.3.0) + [3.5.13,4.0.0) From b7c603844506b2cd7065a99c2764d10cca1936ab Mon Sep 17 00:00:00 2001 From: sullis Date: Mon, 5 Oct 2020 03:31:19 -0700 Subject: [PATCH 07/16] chore(java): maven-surefire-plugin 3.0.0-M5 (#2073) Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- packages/@jsii/java-runtime/pom.xml.t.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@jsii/java-runtime/pom.xml.t.js b/packages/@jsii/java-runtime/pom.xml.t.js index a42030e11e..926a58e354 100644 --- a/packages/@jsii/java-runtime/pom.xml.t.js +++ b/packages/@jsii/java-runtime/pom.xml.t.js @@ -168,12 +168,12 @@ process.stdout.write(` maven-surefire-plugin - 3.0.0-M4 + 3.0.0-M5 maven-failsafe-plugin - 3.0.0-M4 + 3.0.0-M5 From fc1d367a515949c9c90cb780991b8735079e46e1 Mon Sep 17 00:00:00 2001 From: sullis Date: Mon, 5 Oct 2020 03:32:02 -0700 Subject: [PATCH 08/16] chore(java): use Jackson 2.11.3 (#2072) https://github.com/FasterXML/jackson/wiki/Jackson-Release-2.11.3 Co-authored-by: Romain Marcadier --- packages/@jsii/java-runtime/pom.xml.t.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@jsii/java-runtime/pom.xml.t.js b/packages/@jsii/java-runtime/pom.xml.t.js index 926a58e354..3d93117420 100644 --- a/packages/@jsii/java-runtime/pom.xml.t.js +++ b/packages/@jsii/java-runtime/pom.xml.t.js @@ -60,8 +60,8 @@ process.stdout.write(` UTF-8 [1.3,1.4) - [2.10.1,2.11.0) - [2.10.1,2.11.0) + [2.11.3,3.0.0) + [2.11.3,3.0.0) [13.0.0,20.0.0) [5.6.1,5.7.0) [3.5.13,4.0.0) From 01a295105b9d60edaf0ee0a3133e4b5942a971f2 Mon Sep 17 00:00:00 2001 From: Romain Marcadier Date: Mon, 5 Oct 2020 17:32:28 +0200 Subject: [PATCH 09/16] fix(dotnet): abundant nullability warnings in generated code (#2061) The generated code had a number of quirks related to nullability annotations (`?` and `!`) that resulted in sometimes abundant warnings emitted during the compilation of the generated code. This makes the necessary changes to correctly reflect that method arguments can be `null` in the `DeptyBase` methods; and adds the necessary `?` and `!` where they were previously missing. This results in much fewer compilation warnings being emitted while compiling `jsii-calc` and dependencies (the remaining warnings are actually "legitimate" in the sense that they are the result of us/users making questionable naming choices). --- By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0 --- .../Amazon.JSII.Runtime/Deputy/DeputyBase.cs | 14 +- .../lib/targets/dotnet/dotnetgenerator.ts | 25 +- .../targets/dotnet/dotnetruntimegenerator.ts | 4 +- .../__snapshots__/target-dotnet.test.ts.snap | 1016 ++++++++--------- 4 files changed, 532 insertions(+), 527 deletions(-) diff --git a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Deputy/DeputyBase.cs b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Deputy/DeputyBase.cs index 80bd315186..e3aab5b871 100644 --- a/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Deputy/DeputyBase.cs +++ b/packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Deputy/DeputyBase.cs @@ -23,12 +23,12 @@ public abstract class DeputyBase : IConvertible /// protected sealed class DeputyProps { - public DeputyProps(object[]? arguments = null) + public DeputyProps(object?[]? arguments = null) { - Arguments = arguments ?? Array.Empty(); + Arguments = arguments ?? Array.Empty(); } - public object[] Arguments { get; } + public object?[] Arguments { get; } } private const BindingFlags StaticMemberFlags = BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic; @@ -220,18 +220,18 @@ private static void SetPropertyCore(T value, JsiiPropertyAttribute propertyAt #region InvokeMethod - protected static void InvokeStaticVoidMethod(System.Type type, System.Type[] parameterTypes, object[] arguments, [CallerMemberName] string methodName = "") + protected static void InvokeStaticVoidMethod(System.Type type, System.Type[] parameterTypes, object?[] arguments, [CallerMemberName] string methodName = "") { InvokeStaticMethod(type, parameterTypes, arguments, methodName); } - protected void InvokeInstanceVoidMethod(System.Type[] parameterTypes, object[] arguments, [CallerMemberName] string methodName = "") + protected void InvokeInstanceVoidMethod(System.Type[] parameterTypes, object?[] arguments, [CallerMemberName] string methodName = "") { InvokeInstanceMethod(parameterTypes, arguments, methodName); } [return: MaybeNull] - protected static T InvokeStaticMethod(System.Type type, System.Type[] parameterTypes, object[] arguments, [CallerMemberName] string methodName = "") + protected static T InvokeStaticMethod(System.Type type, System.Type[] parameterTypes, object?[] arguments, [CallerMemberName] string methodName = "") { JsiiTypeAttributeBase.Load(type.Assembly); @@ -251,7 +251,7 @@ protected static T InvokeStaticMethod(System.Type type, System.Type[] paramet } [return: MaybeNull] - protected T InvokeInstanceMethod(System.Type[] parameterTypes, object[] arguments, [CallerMemberName] string methodName = "") + protected T InvokeInstanceMethod(System.Type[] parameterTypes, object?[] arguments, [CallerMemberName] string methodName = "") { var methodAttribute = GetInstanceMethodAttribute(methodName, parameterTypes); diff --git a/packages/jsii-pacmak/lib/targets/dotnet/dotnetgenerator.ts b/packages/jsii-pacmak/lib/targets/dotnet/dotnetgenerator.ts index cde6c6e5aa..4e3dd213d1 100644 --- a/packages/jsii-pacmak/lib/targets/dotnet/dotnetgenerator.ts +++ b/packages/jsii-pacmak/lib/targets/dotnet/dotnetgenerator.ts @@ -325,14 +325,10 @@ export class DotNetGenerator extends Generator { // Abstract classes have protected constructors. const visibility = cls.abstract ? 'protected' : 'public'; - const hasOptional = - initializer.parameters?.find((param) => param.optional) != null - ? '?' - : ''; const args = parametersBase.length > 0 - ? `new object${hasOptional}[]{${parametersBase}}` - : `System.Array.Empty()`; + ? `new object?[]{${parametersBase}}` + : `System.Array.Empty()`; this.code.openBlock( `${visibility} ${className}(${parametersDefinition}): base(new DeputyProps(${args}))`, ); @@ -863,13 +859,15 @@ export class DotNetGenerator extends Generator { if (datatype || prop.const || prop.abstract) { this.code.line('get;'); } else { + // If the property is non-optional, add a bang to silence compiler warning + const bang = prop.optional ? '' : '!'; if (prop.static) { this.code.line( - `get => GetStaticProperty<${propTypeFQN}${isOptional}>(typeof(${className}));`, + `get => GetStaticProperty<${propTypeFQN}${isOptional}>(typeof(${className}))${bang};`, ); } else { this.code.line( - `get => GetInstanceProperty<${propTypeFQN}${isOptional}>();`, + `get => GetInstanceProperty<${propTypeFQN}${isOptional}>()${bang};`, ); } } @@ -901,19 +899,24 @@ export class DotNetGenerator extends Generator { this.emitNewLineIfNecessary(); this.flagFirstMemberWritten(true); const propType = this.typeresolver.toDotNetType(prop.type); + const isOptional = prop.optional ? '?' : ''; this.dotnetDocGenerator.emitDocs(prop); this.dotnetRuntimeGenerator.emitAttributesForProperty(prop); const access = this.renderAccessLevel(prop); const propName = this.nameutils.convertPropertyName(prop.name); const staticKeyword = prop.static ? 'static ' : ''; - this.code.openBlock(`${access} ${staticKeyword}${propType} ${propName}`); + this.code.openBlock( + `${access} ${staticKeyword}${propType}${isOptional} ${propName}`, + ); this.code.line('get;'); this.code.closeBlock(); const className = this.typeresolver.toNativeFqn(cls.fqn); + // If the property is non-optional, add a bang to silence the compiler warning + const bang = prop.optional ? '' : '!'; const initializer = prop.static - ? `= GetStaticProperty<${propType}>(typeof(${className}));` - : `= GetInstanceProperty<${propType}>(typeof(${className}));`; + ? `= GetStaticProperty<${propType}>(typeof(${className}))${bang};` + : `= GetInstanceProperty<${propType}>(typeof(${className}))${bang};`; this.code.line(initializer); } diff --git a/packages/jsii-pacmak/lib/targets/dotnet/dotnetruntimegenerator.ts b/packages/jsii-pacmak/lib/targets/dotnet/dotnetruntimegenerator.ts index 82b5c0e23f..741dc8befa 100644 --- a/packages/jsii-pacmak/lib/targets/dotnet/dotnetruntimegenerator.ts +++ b/packages/jsii-pacmak/lib/targets/dotnet/dotnetruntimegenerator.ts @@ -180,6 +180,8 @@ export class DotNetRuntimeGenerator { method.returns.optional ? '?' : '' }>` : ''; + // If the method returns a non-optional value, apply a "!" to silence compilation warning. + const bang = method.returns && !method.returns.optional ? '!' : ''; const typeofStatement = method.static ? `typeof(${className}), ` : ''; const paramTypes = new Array(); const params = new Array(); @@ -197,7 +199,7 @@ export class DotNetRuntimeGenerator { method.parameters?.find((param) => param.optional) != null ? '?' : ''; return `${invokeMethodName}${returnType}(${typeofStatement}new System.Type[]{${paramTypes.join( ', ', - )}}, new object${hasOptional}[]{${params.join(', ')}});`; + )}}, new object${hasOptional}[]{${params.join(', ')}})${bang};`; } /** 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 3381d9c333..c2bd653980 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 @@ -240,7 +240,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.Base), fullyQualifiedName: "@scope/jsii-calc-base.Base")] public abstract class Base : DeputyBase { - protected Base(): base(new DeputyProps(System.Array.Empty())) + protected Base(): base(new DeputyProps(System.Array.Empty())) { } @@ -262,7 +262,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace [JsiiMethod(name: "typeName", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}")] public virtual object TypeName() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } } } @@ -316,13 +316,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace [JsiiProperty(name: "bar", typeJson: "{\\"primitive\\":\\"string\\"}")] public string Bar { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiProperty(name: "foo", typeJson: "{\\"fqn\\":\\"@scope/jsii-calc-base-of-base.Very\\"}")] public Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Very Foo { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -786,7 +786,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Very), fullyQualifiedName: "@scope/jsii-calc-base-of-base.Very")] public class Very : DeputyBase { - public Very(): base(new DeputyProps(System.Array.Empty())) + public Very(): base(new DeputyProps(System.Array.Empty())) { } @@ -810,7 +810,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace [JsiiMethod(name: "hey", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}")] public virtual double Hey() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } } } @@ -857,7 +857,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace [JsiiProperty(name: "foo", typeJson: "{\\"fqn\\":\\"@scope/jsii-calc-base-of-base.Very\\"}")] public Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Very Foo { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -1820,7 +1820,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace [System.Obsolete()] public double DoubleValue { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -1887,7 +1887,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace [System.Obsolete()] public string Hello() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } } } @@ -2188,7 +2188,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace [System.Obsolete()] public double Anumber { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } /// (deprecated) A string value. @@ -2199,7 +2199,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace [System.Obsolete()] public string Astring { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } /// @@ -2238,7 +2238,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace /// Stability: Deprecated /// [System.Obsolete()] - public Number(double @value): base(new DeputyProps(new object[]{@value})) + public Number(double @value): base(new DeputyProps(new object?[]{@value})) { } @@ -2266,7 +2266,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace [System.Obsolete()] public virtual double DoubleValue { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } /// (deprecated) The number. @@ -2277,7 +2277,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace [System.Obsolete()] public override double Value { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -2299,7 +2299,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace [System.Obsolete()] public abstract class NumericValue : Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.Base { - protected NumericValue(): base(new DeputyProps(System.Array.Empty())) + protected NumericValue(): base(new DeputyProps(System.Array.Empty())) { } @@ -2325,7 +2325,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace [System.Obsolete()] public override string ToString() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } /// (deprecated) The value. @@ -2370,7 +2370,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace [System.Obsolete()] public override double Value { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -2392,7 +2392,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace [System.Obsolete()] public abstract class Operation : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.NumericValue { - protected Operation(): base(new DeputyProps(System.Array.Empty())) + protected Operation(): base(new DeputyProps(System.Array.Empty())) { } @@ -2450,7 +2450,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace [System.Obsolete()] public override double Value { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } /// (deprecated) String representation of the value. @@ -2461,7 +2461,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.LibNamespace [System.Obsolete()] public override string ToString() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } } } @@ -2671,7 +2671,7 @@ namespace Amazon.JSII.Tests.CustomSubmoduleName [System.Obsolete()] public Amazon.JSII.Tests.CustomSubmoduleName.IReflectableEntry[] Entries { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -2718,7 +2718,7 @@ namespace Amazon.JSII.Tests.CustomSubmoduleName /// Stability: Deprecated /// [System.Obsolete()] - public NestedClass(): base(new DeputyProps(System.Array.Empty())) + public NestedClass(): base(new DeputyProps(System.Array.Empty())) { } @@ -2745,7 +2745,7 @@ namespace Amazon.JSII.Tests.CustomSubmoduleName [System.Obsolete()] public virtual string Property { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } /// (deprecated) This is a struct, nested within a class. @@ -2789,7 +2789,7 @@ namespace Amazon.JSII.Tests.CustomSubmoduleName [System.Obsolete()] public string Name { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } #pragma warning disable CS8618 @@ -2885,7 +2885,7 @@ namespace Amazon.JSII.Tests.CustomSubmoduleName [System.Obsolete()] public string Key { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } /// @@ -2895,7 +2895,7 @@ namespace Amazon.JSII.Tests.CustomSubmoduleName [System.Obsolete()] public object Value { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -2920,7 +2920,7 @@ namespace Amazon.JSII.Tests.CustomSubmoduleName /// Stability: Deprecated /// [System.Obsolete()] - public Reflector(): base(new DeputyProps(System.Array.Empty())) + public Reflector(): base(new DeputyProps(System.Array.Empty())) { } @@ -2947,7 +2947,7 @@ namespace Amazon.JSII.Tests.CustomSubmoduleName [System.Obsolete()] public virtual System.Collections.Generic.IDictionary AsMap(Amazon.JSII.Tests.CustomSubmoduleName.IReflectable reflectable) { - return InvokeInstanceMethod>(new System.Type[]{typeof(Amazon.JSII.Tests.CustomSubmoduleName.IReflectable)}, new object[]{reflectable}); + return InvokeInstanceMethod>(new System.Type[]{typeof(Amazon.JSII.Tests.CustomSubmoduleName.IReflectable)}, new object[]{reflectable})!; } } } @@ -17631,7 +17631,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractClass), fullyQualifiedName: "jsii-calc.AbstractClass")] public abstract class AbstractClass : Amazon.JSII.Tests.CalculatorNamespace.AbstractClassBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceImplementedByAbstractClass { - protected AbstractClass(): base(new DeputyProps(System.Array.Empty())) + protected AbstractClass(): base(new DeputyProps(System.Array.Empty())) { } @@ -17656,13 +17656,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "nonAbstractMethod", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}")] public virtual double NonAbstractMethod() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } [JsiiProperty(name: "propFromInterface", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string PropFromInterface { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -17679,7 +17679,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractClassBase), fullyQualifiedName: "jsii-calc.AbstractClassBase")] public abstract class AbstractClassBase : DeputyBase { - protected AbstractClassBase(): base(new DeputyProps(System.Array.Empty())) + protected AbstractClassBase(): base(new DeputyProps(System.Array.Empty())) { } @@ -17724,7 +17724,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "abstractProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public override string AbstractProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -17748,13 +17748,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "abstractProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public override string AbstractProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiMethod(name: "abstractMethod", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"name\\":\\"name\\",\\"type\\":{\\"primitive\\":\\"string\\"}}]")] public override string AbstractMethod(string name) { - return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{name}); + return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{name})!; } } } @@ -17771,7 +17771,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractClassReturner), fullyQualifiedName: "jsii-calc.AbstractClassReturner")] public class AbstractClassReturner : DeputyBase { - public AbstractClassReturner(): base(new DeputyProps(System.Array.Empty())) + public AbstractClassReturner(): base(new DeputyProps(System.Array.Empty())) { } @@ -17792,19 +17792,19 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "giveMeAbstract", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.AbstractClass\\"}}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.AbstractClass GiveMeAbstract() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "giveMeInterface", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.IInterfaceImplementedByAbstractClass\\"}}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.IInterfaceImplementedByAbstractClass GiveMeInterface() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } [JsiiProperty(name: "returnAbstractFromProperty", typeJson: "{\\"fqn\\":\\"jsii-calc.AbstractClassBase\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.AbstractClassBase ReturnAbstractFromProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -17822,7 +17822,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AbstractSuite), fullyQualifiedName: "jsii-calc.AbstractSuite")] public abstract class AbstractSuite : DeputyBase { - protected AbstractSuite(): base(new DeputyProps(System.Array.Empty())) + protected AbstractSuite(): base(new DeputyProps(System.Array.Empty())) { } @@ -17849,7 +17849,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "workItAll", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"docs\\":{\\"summary\\":\\"a \`string\`.\\"},\\"name\\":\\"seed\\",\\"type\\":{\\"primitive\\":\\"string\\"}}]")] public virtual string WorkItAll(string seed) { - return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{seed}); + return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{seed})!; } [JsiiProperty(name: "property", typeJson: "{\\"primitive\\":\\"string\\"}")] @@ -17881,14 +17881,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "property", typeJson: "{\\"primitive\\":\\"string\\"}")] protected override string Property { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } [JsiiMethod(name: "someMethod", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"name\\":\\"str\\",\\"type\\":{\\"primitive\\":\\"string\\"}}]")] protected override string SomeMethod(string str) { - return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{str}); + return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{str})!; } } } @@ -17909,7 +17909,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Creates a BinaryOperation. /// Left-hand side operand. /// Right-hand side operand. - public Add(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.NumericValue lhs, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.NumericValue rhs): base(new DeputyProps(new object[]{lhs, rhs})) + public Add(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.NumericValue lhs, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.NumericValue rhs): base(new DeputyProps(new object?[]{lhs, rhs})) { } @@ -17931,14 +17931,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "toString", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", isOverride: true)] public override string ToString() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } /// (deprecated) The value. [JsiiProperty(name: "value", typeJson: "{\\"primitive\\":\\"number\\"}")] public override double Value { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -17960,7 +17960,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AllTypes), fullyQualifiedName: "jsii-calc.AllTypes")] public class AllTypes : DeputyBase { - public AllTypes(): base(new DeputyProps(System.Array.Empty())) + public AllTypes(): base(new DeputyProps(System.Array.Empty())) { } @@ -17987,137 +17987,137 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "anyOut", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}")] public virtual object AnyOut() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "enumMethod", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.StringEnum\\"}}", parametersJson: "[{\\"name\\":\\"value\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.StringEnum\\"}}]")] public virtual Amazon.JSII.Tests.CalculatorNamespace.StringEnum EnumMethod(Amazon.JSII.Tests.CalculatorNamespace.StringEnum @value) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.StringEnum)}, new object[]{@value}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.StringEnum)}, new object[]{@value})!; } [JsiiProperty(name: "enumPropertyValue", typeJson: "{\\"primitive\\":\\"number\\"}")] public virtual double EnumPropertyValue { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiProperty(name: "anyArrayProperty", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"any\\"},\\"kind\\":\\"array\\"}}")] public virtual object[] AnyArrayProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } [JsiiProperty(name: "anyMapProperty", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"any\\"},\\"kind\\":\\"map\\"}}")] public virtual System.Collections.Generic.IDictionary AnyMapProperty { - get => GetInstanceProperty>(); + get => GetInstanceProperty>()!; set => SetInstanceProperty(value); } [JsiiProperty(name: "anyProperty", typeJson: "{\\"primitive\\":\\"any\\"}")] public virtual object AnyProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } [JsiiProperty(name: "arrayProperty", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"array\\"}}")] public virtual string[] ArrayProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } [JsiiProperty(name: "booleanProperty", typeJson: "{\\"primitive\\":\\"boolean\\"}")] public virtual bool BooleanProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } [JsiiProperty(name: "dateProperty", typeJson: "{\\"primitive\\":\\"date\\"}")] public virtual System.DateTime DateProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } [JsiiProperty(name: "enumProperty", typeJson: "{\\"fqn\\":\\"jsii-calc.AllTypesEnum\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.AllTypesEnum EnumProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } [JsiiProperty(name: "jsonProperty", typeJson: "{\\"primitive\\":\\"json\\"}")] public virtual Newtonsoft.Json.Linq.JObject JsonProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } [JsiiProperty(name: "mapProperty", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.Number\\"},\\"kind\\":\\"map\\"}}")] public virtual System.Collections.Generic.IDictionary MapProperty { - get => GetInstanceProperty>(); + get => GetInstanceProperty>()!; set => SetInstanceProperty(value); } [JsiiProperty(name: "numberProperty", typeJson: "{\\"primitive\\":\\"number\\"}")] public virtual double NumberProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } [JsiiProperty(name: "stringProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string StringProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } [JsiiProperty(name: "unionArrayProperty", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"union\\":{\\"types\\":[{\\"primitive\\":\\"number\\"},{\\"fqn\\":\\"@scope/jsii-calc-lib.NumericValue\\"}]}},\\"kind\\":\\"array\\"}}")] public virtual object[] UnionArrayProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } [JsiiProperty(name: "unionMapProperty", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"union\\":{\\"types\\":[{\\"primitive\\":\\"string\\"},{\\"primitive\\":\\"number\\"},{\\"fqn\\":\\"@scope/jsii-calc-lib.Number\\"}]}},\\"kind\\":\\"map\\"}}")] public virtual System.Collections.Generic.IDictionary UnionMapProperty { - get => GetInstanceProperty>(); + get => GetInstanceProperty>()!; set => SetInstanceProperty(value); } [JsiiProperty(name: "unionProperty", typeJson: "{\\"union\\":{\\"types\\":[{\\"primitive\\":\\"string\\"},{\\"primitive\\":\\"number\\"},{\\"fqn\\":\\"jsii-calc.Multiply\\"},{\\"fqn\\":\\"@scope/jsii-calc-lib.Number\\"}]}}")] public virtual object UnionProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } [JsiiProperty(name: "unknownArrayProperty", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"any\\"},\\"kind\\":\\"array\\"}}")] public virtual object[] UnknownArrayProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } [JsiiProperty(name: "unknownMapProperty", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"any\\"},\\"kind\\":\\"map\\"}}")] public virtual System.Collections.Generic.IDictionary UnknownMapProperty { - get => GetInstanceProperty>(); + get => GetInstanceProperty>()!; set => SetInstanceProperty(value); } [JsiiProperty(name: "unknownProperty", typeJson: "{\\"primitive\\":\\"any\\"}")] public virtual object UnknownProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } @@ -18165,7 +18165,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AllowedMethodNames), fullyQualifiedName: "jsii-calc.AllowedMethodNames")] public class AllowedMethodNames : DeputyBase { - public AllowedMethodNames(): base(new DeputyProps(System.Array.Empty())) + public AllowedMethodNames(): base(new DeputyProps(System.Array.Empty())) { } @@ -18193,7 +18193,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "getFoo", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"name\\":\\"withParam\\",\\"type\\":{\\"primitive\\":\\"string\\"}}]")] public virtual string GetFoo(string withParam) { - return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{withParam}); + return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{withParam})!; } [JsiiMethod(name: "setBar", parametersJson: "[{\\"name\\":\\"_x\\",\\"type\\":{\\"primitive\\":\\"string\\"}},{\\"name\\":\\"_y\\",\\"type\\":{\\"primitive\\":\\"number\\"}},{\\"name\\":\\"_z\\",\\"type\\":{\\"primitive\\":\\"boolean\\"}}]")] @@ -18223,7 +18223,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AmbiguousParameters), fullyQualifiedName: "jsii-calc.AmbiguousParameters", parametersJson: "[{\\"name\\":\\"scope\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.Bell\\"}},{\\"name\\":\\"props\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.StructParameterType\\"}}]")] public class AmbiguousParameters : DeputyBase { - public AmbiguousParameters(Amazon.JSII.Tests.CalculatorNamespace.Bell scope, Amazon.JSII.Tests.CalculatorNamespace.IStructParameterType props): base(new DeputyProps(new object[]{scope, props})) + public AmbiguousParameters(Amazon.JSII.Tests.CalculatorNamespace.Bell scope, Amazon.JSII.Tests.CalculatorNamespace.IStructParameterType props): base(new DeputyProps(new object?[]{scope, props})) { } @@ -18244,13 +18244,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "props", typeJson: "{\\"fqn\\":\\"jsii-calc.StructParameterType\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.IStructParameterType Props { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiProperty(name: "scope", typeJson: "{\\"fqn\\":\\"jsii-calc.Bell\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.Bell Scope { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -18267,7 +18267,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AnonymousImplementationProvider), fullyQualifiedName: "jsii-calc.AnonymousImplementationProvider")] public class AnonymousImplementationProvider : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IAnonymousImplementationProvider { - public AnonymousImplementationProvider(): base(new DeputyProps(System.Array.Empty())) + public AnonymousImplementationProvider(): base(new DeputyProps(System.Array.Empty())) { } @@ -18288,13 +18288,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "provideAsClass", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.Implementation\\"}}", isOverride: true)] public virtual Amazon.JSII.Tests.CalculatorNamespace.Implementation ProvideAsClass() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "provideAsInterface", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.IAnonymouslyImplementMe\\"}}", isOverride: true)] public virtual Amazon.JSII.Tests.CalculatorNamespace.IAnonymouslyImplementMe ProvideAsInterface() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } } } @@ -18311,7 +18311,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AsyncVirtualMethods), fullyQualifiedName: "jsii-calc.AsyncVirtualMethods")] public class AsyncVirtualMethods : DeputyBase { - public AsyncVirtualMethods(): base(new DeputyProps(System.Array.Empty())) + public AsyncVirtualMethods(): base(new DeputyProps(System.Array.Empty())) { } @@ -18332,14 +18332,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "callMe", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", isAsync: true)] public virtual double CallMe() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } /// Just calls "overrideMeToo". [JsiiMethod(name: "callMe2", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", isAsync: true)] public virtual double CallMe2() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } /// This method calls the "callMe" async method indirectly, which will then invoke a virtual method. @@ -18351,25 +18351,25 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "callMeDoublePromise", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", isAsync: true)] public virtual double CallMeDoublePromise() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "dontOverrideMe", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}")] public virtual double DontOverrideMe() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "overrideMe", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", parametersJson: "[{\\"name\\":\\"mult\\",\\"type\\":{\\"primitive\\":\\"number\\"}}]", isAsync: true)] public virtual double OverrideMe(double mult) { - return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{mult}); + return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{mult})!; } [JsiiMethod(name: "overrideMeToo", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", isAsync: true)] public virtual double OverrideMeToo() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } } } @@ -18386,7 +18386,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.AugmentableClass), fullyQualifiedName: "jsii-calc.AugmentableClass")] public class AugmentableClass : DeputyBase { - public AugmentableClass(): base(new DeputyProps(System.Array.Empty())) + public AugmentableClass(): base(new DeputyProps(System.Array.Empty())) { } @@ -18430,7 +18430,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.BaseJsii976), fullyQualifiedName: "jsii-calc.BaseJsii976")] public class BaseJsii976 : DeputyBase { - public BaseJsii976(): base(new DeputyProps(System.Array.Empty())) + public BaseJsii976(): base(new DeputyProps(System.Array.Empty())) { } @@ -18462,7 +18462,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Bell), fullyQualifiedName: "jsii-calc.Bell")] public class Bell : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IBell { - public Bell(): base(new DeputyProps(System.Array.Empty())) + public Bell(): base(new DeputyProps(System.Array.Empty())) { } @@ -18489,7 +18489,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "rung", typeJson: "{\\"primitive\\":\\"boolean\\"}")] public virtual bool Rung { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } } @@ -18511,7 +18511,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Creates a BinaryOperation. /// Left-hand side operand. /// Right-hand side operand. - protected BinaryOperation(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.NumericValue lhs, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.NumericValue rhs): base(new DeputyProps(new object[]{lhs, rhs})) + protected BinaryOperation(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.NumericValue lhs, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.NumericValue rhs): base(new DeputyProps(new object?[]{lhs, rhs})) { } @@ -18533,21 +18533,21 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "hello", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", isOverride: true)] public virtual string Hello() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } /// Left-hand side operand. [JsiiProperty(name: "lhs", typeJson: "{\\"fqn\\":\\"@scope/jsii-calc-lib.NumericValue\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.NumericValue Lhs { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } /// Right-hand side operand. [JsiiProperty(name: "rhs", typeJson: "{\\"fqn\\":\\"@scope/jsii-calc-lib.NumericValue\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.NumericValue Rhs { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -18577,7 +18577,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [System.Obsolete()] public override double Value { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } /// (deprecated) String representation of the value. @@ -18588,7 +18588,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [System.Obsolete()] public override string ToString() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } } } @@ -18606,7 +18606,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.BurriedAnonymousObject), fullyQualifiedName: "jsii-calc.BurriedAnonymousObject")] public abstract class BurriedAnonymousObject : DeputyBase { - protected BurriedAnonymousObject(): base(new DeputyProps(System.Array.Empty())) + protected BurriedAnonymousObject(): base(new DeputyProps(System.Array.Empty())) { } @@ -18627,7 +18627,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "check", returnsJson: "{\\"type\\":{\\"primitive\\":\\"boolean\\"}}")] public virtual bool Check() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } /// Implement this method and have it return it's parameter. @@ -18662,7 +18662,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "giveItBack", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}", parametersJson: "[{\\"docs\\":{\\"summary\\":\\"the value that should be returned.\\"},\\"name\\":\\"value\\",\\"type\\":{\\"primitive\\":\\"any\\"}}]")] public override object GiveItBack(object @value) { - return InvokeInstanceMethod(new System.Type[]{typeof(object)}, new object[]{@value}); + return InvokeInstanceMethod(new System.Type[]{typeof(object)}, new object[]{@value})!; } } } @@ -18752,35 +18752,35 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "readUnionValue", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}")] public virtual double ReadUnionValue() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } /// Returns the expression. [JsiiProperty(name: "expression", typeJson: "{\\"fqn\\":\\"@scope/jsii-calc-lib.NumericValue\\"}")] public override Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.NumericValue Expression { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } /// A log of all operations. [JsiiProperty(name: "operationsLog", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.NumericValue\\"},\\"kind\\":\\"array\\"}}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.NumericValue[] OperationsLog { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } /// A map of per operation name of all operations performed. [JsiiProperty(name: "operationsMap", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"collection\\":{\\"elementtype\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.NumericValue\\"},\\"kind\\":\\"array\\"}},\\"kind\\":\\"map\\"}}")] public virtual System.Collections.Generic.IDictionary OperationsMap { - get => GetInstanceProperty>(); + get => GetInstanceProperty>()!; } /// The current value. [JsiiProperty(name: "curr", typeJson: "{\\"fqn\\":\\"@scope/jsii-calc-lib.NumericValue\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.NumericValue Curr { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } @@ -18937,13 +18937,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "bar", typeJson: "{\\"primitive\\":\\"number\\"}")] public double Bar { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiProperty(name: "foo", typeJson: "{\\"primitive\\":\\"string\\"}")] public string Foo { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -18960,7 +18960,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassThatImplementsTheInternalInterface), fullyQualifiedName: "jsii-calc.ClassThatImplementsTheInternalInterface")] public class ClassThatImplementsTheInternalInterface : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.INonInternalInterface { - public ClassThatImplementsTheInternalInterface(): base(new DeputyProps(System.Array.Empty())) + public ClassThatImplementsTheInternalInterface(): base(new DeputyProps(System.Array.Empty())) { } @@ -18981,28 +18981,28 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "a", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string A { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } [JsiiProperty(name: "b", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string B { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } [JsiiProperty(name: "c", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string C { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } [JsiiProperty(name: "d", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string D { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } } @@ -19020,7 +19020,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassThatImplementsThePrivateInterface), fullyQualifiedName: "jsii-calc.ClassThatImplementsThePrivateInterface")] public class ClassThatImplementsThePrivateInterface : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.INonInternalInterface { - public ClassThatImplementsThePrivateInterface(): base(new DeputyProps(System.Array.Empty())) + public ClassThatImplementsThePrivateInterface(): base(new DeputyProps(System.Array.Empty())) { } @@ -19041,28 +19041,28 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "a", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string A { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } [JsiiProperty(name: "b", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string B { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } [JsiiProperty(name: "c", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string C { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } [JsiiProperty(name: "e", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string E { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } } @@ -19080,7 +19080,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections), fullyQualifiedName: "jsii-calc.ClassWithCollections", parametersJson: "[{\\"name\\":\\"map\\",\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"map\\"}}},{\\"name\\":\\"array\\",\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"array\\"}}}]")] public class ClassWithCollections : DeputyBase { - public ClassWithCollections(System.Collections.Generic.IDictionary map, string[] array): base(new DeputyProps(new object[]{map, array})) + public ClassWithCollections(System.Collections.Generic.IDictionary map, string[] array): base(new DeputyProps(new object?[]{map, array})) { } @@ -19101,40 +19101,40 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "createAList", returnsJson: "{\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"array\\"}}}")] public static string[] CreateAList() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections), new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "createAMap", returnsJson: "{\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"map\\"}}}")] public static System.Collections.Generic.IDictionary CreateAMap() { - return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections), new System.Type[]{}, new object[]{})!; } [JsiiProperty(name: "staticArray", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"array\\"}}")] public static string[] StaticArray { - get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections)); + get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections))!; set => SetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections), value); } [JsiiProperty(name: "staticMap", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"map\\"}}")] public static System.Collections.Generic.IDictionary StaticMap { - get => GetStaticProperty>(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections)); + get => GetStaticProperty>(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections))!; set => SetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithCollections), value); } [JsiiProperty(name: "array", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"array\\"}}")] public virtual string[] Array { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } [JsiiProperty(name: "map", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"map\\"}}")] public virtual System.Collections.Generic.IDictionary Map { - get => GetInstanceProperty>(); + get => GetInstanceProperty>()!; set => SetInstanceProperty(value); } } @@ -19166,7 +19166,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithDocs), fullyQualifiedName: "jsii-calc.ClassWithDocs")] public class ClassWithDocs : DeputyBase { - public ClassWithDocs(): base(new DeputyProps(System.Array.Empty())) + public ClassWithDocs(): base(new DeputyProps(System.Array.Empty())) { } @@ -19198,7 +19198,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithJavaReservedWords), fullyQualifiedName: "jsii-calc.ClassWithJavaReservedWords", parametersJson: "[{\\"name\\":\\"int\\",\\"type\\":{\\"primitive\\":\\"string\\"}}]")] public class ClassWithJavaReservedWords : DeputyBase { - public ClassWithJavaReservedWords(string @int): base(new DeputyProps(new object[]{@int})) + public ClassWithJavaReservedWords(string @int): base(new DeputyProps(new object?[]{@int})) { } @@ -19219,13 +19219,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "import", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"name\\":\\"assert\\",\\"type\\":{\\"primitive\\":\\"string\\"}}]")] public virtual string Import(string assert) { - return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{assert}); + return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{assert})!; } [JsiiProperty(name: "int", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string Int { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -19242,7 +19242,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithMutableObjectLiteralProperty), fullyQualifiedName: "jsii-calc.ClassWithMutableObjectLiteralProperty")] public class ClassWithMutableObjectLiteralProperty : DeputyBase { - public ClassWithMutableObjectLiteralProperty(): base(new DeputyProps(System.Array.Empty())) + public ClassWithMutableObjectLiteralProperty(): base(new DeputyProps(System.Array.Empty())) { } @@ -19263,7 +19263,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "mutableObject", typeJson: "{\\"fqn\\":\\"jsii-calc.IMutableObjectLiteral\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.IMutableObjectLiteral MutableObject { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } } @@ -19299,19 +19299,19 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "create", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties\\"}}", parametersJson: "[{\\"name\\":\\"readOnlyString\\",\\"type\\":{\\"primitive\\":\\"string\\"}},{\\"name\\":\\"readWriteString\\",\\"type\\":{\\"primitive\\":\\"string\\"}}]")] public static Amazon.JSII.Tests.CalculatorNamespace.ClassWithPrivateConstructorAndAutomaticProperties Create(string readOnlyString, string readWriteString) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithPrivateConstructorAndAutomaticProperties), new System.Type[]{typeof(string), typeof(string)}, new object[]{readOnlyString, readWriteString}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ClassWithPrivateConstructorAndAutomaticProperties), new System.Type[]{typeof(string), typeof(string)}, new object[]{readOnlyString, readWriteString})!; } [JsiiProperty(name: "readOnlyString", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string ReadOnlyString { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiProperty(name: "readWriteString", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string ReadWriteString { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } } @@ -19330,7 +19330,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Composition [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Composition.CompositeOperation), fullyQualifiedName: "jsii-calc.composition.CompositeOperation")] public abstract class CompositeOperation : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Operation { - protected CompositeOperation(): base(new DeputyProps(System.Array.Empty())) + protected CompositeOperation(): base(new DeputyProps(System.Array.Empty())) { } @@ -19352,7 +19352,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Composition [JsiiMethod(name: "toString", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", isOverride: true)] public override string ToString() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } /// The expression that this operation consists of. @@ -19369,14 +19369,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Composition [JsiiProperty(name: "value", typeJson: "{\\"primitive\\":\\"number\\"}")] public override double Value { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } /// A set of postfixes to include in a decorated .toString(). [JsiiProperty(name: "decorationPostfixes", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"array\\"}}")] public virtual string[] DecorationPostfixes { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } @@ -19384,7 +19384,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Composition [JsiiProperty(name: "decorationPrefixes", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"array\\"}}")] public virtual string[] DecorationPrefixes { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } @@ -19392,7 +19392,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Composition [JsiiProperty(name: "stringStyle", typeJson: "{\\"fqn\\":\\"jsii-calc.composition.CompositeOperation.CompositionStringStyle\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.Composition.CompositeOperation.CompositionStringStyle StringStyle { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } @@ -19434,7 +19434,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Composition [JsiiProperty(name: "expression", typeJson: "{\\"fqn\\":\\"@scope/jsii-calc-lib.NumericValue\\"}")] public override Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.NumericValue Expression { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -19472,13 +19472,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "makeInstance", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.ConfusingToJackson\\"}}")] public static Amazon.JSII.Tests.CalculatorNamespace.ConfusingToJackson MakeInstance() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConfusingToJackson), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConfusingToJackson), new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "makeStructInstance", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.ConfusingToJacksonStruct\\"}}")] public static Amazon.JSII.Tests.CalculatorNamespace.IConfusingToJacksonStruct MakeStructInstance() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConfusingToJackson), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConfusingToJackson), new System.Type[]{}, new object[]{})!; } [JsiiOptional] @@ -19550,7 +19550,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ConstructorPassesThisOut), fullyQualifiedName: "jsii-calc.ConstructorPassesThisOut", parametersJson: "[{\\"name\\":\\"consumer\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.PartiallyInitializedThisConsumer\\"}}]")] public class ConstructorPassesThisOut : DeputyBase { - public ConstructorPassesThisOut(Amazon.JSII.Tests.CalculatorNamespace.PartiallyInitializedThisConsumer consumer): base(new DeputyProps(new object[]{consumer})) + public ConstructorPassesThisOut(Amazon.JSII.Tests.CalculatorNamespace.PartiallyInitializedThisConsumer consumer): base(new DeputyProps(new object?[]{consumer})) { } @@ -19582,7 +19582,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), fullyQualifiedName: "jsii-calc.Constructors")] public class Constructors : DeputyBase { - public Constructors(): base(new DeputyProps(System.Array.Empty())) + public Constructors(): base(new DeputyProps(System.Array.Empty())) { } @@ -19603,43 +19603,43 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "hiddenInterface", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.IPublicInterface\\"}}")] public static Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface HiddenInterface() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "hiddenInterfaces", returnsJson: "{\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"fqn\\":\\"jsii-calc.IPublicInterface\\"},\\"kind\\":\\"array\\"}}}")] public static Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface[] HiddenInterfaces() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "hiddenSubInterfaces", returnsJson: "{\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"fqn\\":\\"jsii-calc.IPublicInterface\\"},\\"kind\\":\\"array\\"}}}")] public static Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface[] HiddenSubInterfaces() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "makeClass", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.PublicClass\\"}}")] public static Amazon.JSII.Tests.CalculatorNamespace.PublicClass MakeClass() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "makeInterface", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.IPublicInterface\\"}}")] public static Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface MakeInterface() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "makeInterface2", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.IPublicInterface2\\"}}")] public static Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface2 MakeInterface2() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "makeInterfaces", returnsJson: "{\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"fqn\\":\\"jsii-calc.IPublicInterface\\"},\\"kind\\":\\"array\\"}}}")] public static Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface[] MakeInterfaces() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Constructors), new System.Type[]{}, new object[]{})!; } } } @@ -19656,7 +19656,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumePureInterface), fullyQualifiedName: "jsii-calc.ConsumePureInterface", parametersJson: "[{\\"name\\":\\"delegate\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.IStructReturningDelegate\\"}}]")] public class ConsumePureInterface : DeputyBase { - public ConsumePureInterface(Amazon.JSII.Tests.CalculatorNamespace.IStructReturningDelegate @delegate): base(new DeputyProps(new object[]{@delegate})) + public ConsumePureInterface(Amazon.JSII.Tests.CalculatorNamespace.IStructReturningDelegate @delegate): base(new DeputyProps(new object?[]{@delegate})) { } @@ -19677,7 +19677,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "workItBaby", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.StructB\\"}}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.IStructB WorkItBaby() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } } } @@ -19699,7 +19699,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumerCanRingBell), fullyQualifiedName: "jsii-calc.ConsumerCanRingBell")] public class ConsumerCanRingBell : DeputyBase { - public ConsumerCanRingBell(): base(new DeputyProps(System.Array.Empty())) + public ConsumerCanRingBell(): base(new DeputyProps(System.Array.Empty())) { } @@ -19724,7 +19724,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "staticImplementedByObjectLiteral", returnsJson: "{\\"type\\":{\\"primitive\\":\\"boolean\\"}}", parametersJson: "[{\\"name\\":\\"ringer\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.IBellRinger\\"}}]")] public static bool StaticImplementedByObjectLiteral(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger ringer) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumerCanRingBell), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumerCanRingBell), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer})!; } /// ...if the interface is implemented using a private class. @@ -19734,7 +19734,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "staticImplementedByPrivateClass", returnsJson: "{\\"type\\":{\\"primitive\\":\\"boolean\\"}}", parametersJson: "[{\\"name\\":\\"ringer\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.IBellRinger\\"}}]")] public static bool StaticImplementedByPrivateClass(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger ringer) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumerCanRingBell), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumerCanRingBell), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer})!; } /// ...if the interface is implemented using a public class. @@ -19744,7 +19744,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "staticImplementedByPublicClass", returnsJson: "{\\"type\\":{\\"primitive\\":\\"boolean\\"}}", parametersJson: "[{\\"name\\":\\"ringer\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.IBellRinger\\"}}]")] public static bool StaticImplementedByPublicClass(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger ringer) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumerCanRingBell), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumerCanRingBell), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer})!; } /// If the parameter is a concrete class instead of an interface. @@ -19754,7 +19754,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "staticWhenTypedAsClass", returnsJson: "{\\"type\\":{\\"primitive\\":\\"boolean\\"}}", parametersJson: "[{\\"name\\":\\"ringer\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.IConcreteBellRinger\\"}}]")] public static bool StaticWhenTypedAsClass(Amazon.JSII.Tests.CalculatorNamespace.IConcreteBellRinger ringer) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumerCanRingBell), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IConcreteBellRinger)}, new object[]{ringer}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumerCanRingBell), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IConcreteBellRinger)}, new object[]{ringer})!; } /// ...if the interface is implemented using an object literal. @@ -19764,7 +19764,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "implementedByObjectLiteral", returnsJson: "{\\"type\\":{\\"primitive\\":\\"boolean\\"}}", parametersJson: "[{\\"name\\":\\"ringer\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.IBellRinger\\"}}]")] public virtual bool ImplementedByObjectLiteral(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger ringer) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer})!; } /// ...if the interface is implemented using a private class. @@ -19774,7 +19774,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "implementedByPrivateClass", returnsJson: "{\\"type\\":{\\"primitive\\":\\"boolean\\"}}", parametersJson: "[{\\"name\\":\\"ringer\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.IBellRinger\\"}}]")] public virtual bool ImplementedByPrivateClass(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger ringer) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer})!; } /// ...if the interface is implemented using a public class. @@ -19784,7 +19784,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "implementedByPublicClass", returnsJson: "{\\"type\\":{\\"primitive\\":\\"boolean\\"}}", parametersJson: "[{\\"name\\":\\"ringer\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.IBellRinger\\"}}]")] public virtual bool ImplementedByPublicClass(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger ringer) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IBellRinger)}, new object[]{ringer})!; } /// If the parameter is a concrete class instead of an interface. @@ -19794,7 +19794,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "whenTypedAsClass", returnsJson: "{\\"type\\":{\\"primitive\\":\\"boolean\\"}}", parametersJson: "[{\\"name\\":\\"ringer\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.IConcreteBellRinger\\"}}]")] public virtual bool WhenTypedAsClass(Amazon.JSII.Tests.CalculatorNamespace.IConcreteBellRinger ringer) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IConcreteBellRinger)}, new object[]{ringer}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IConcreteBellRinger)}, new object[]{ringer})!; } } } @@ -19811,7 +19811,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ConsumersOfThisCrazyTypeSystem), fullyQualifiedName: "jsii-calc.ConsumersOfThisCrazyTypeSystem")] public class ConsumersOfThisCrazyTypeSystem : DeputyBase { - public ConsumersOfThisCrazyTypeSystem(): base(new DeputyProps(System.Array.Empty())) + public ConsumersOfThisCrazyTypeSystem(): base(new DeputyProps(System.Array.Empty())) { } @@ -19832,13 +19832,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "consumeAnotherPublicInterface", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"name\\":\\"obj\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.IAnotherPublicInterface\\"}}]")] public virtual string ConsumeAnotherPublicInterface(Amazon.JSII.Tests.CalculatorNamespace.IAnotherPublicInterface obj) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IAnotherPublicInterface)}, new object[]{obj}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IAnotherPublicInterface)}, new object[]{obj})!; } [JsiiMethod(name: "consumeNonInternalInterface", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}", parametersJson: "[{\\"name\\":\\"obj\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.INonInternalInterface\\"}}]")] public virtual object ConsumeNonInternalInterface(Amazon.JSII.Tests.CalculatorNamespace.INonInternalInterface obj) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.INonInternalInterface)}, new object[]{obj}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.INonInternalInterface)}, new object[]{obj})!; } } } @@ -19856,7 +19856,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DataRenderer), fullyQualifiedName: "jsii-calc.DataRenderer")] public class DataRenderer : DeputyBase { - public DataRenderer(): base(new DeputyProps(System.Array.Empty())) + public DataRenderer(): base(new DeputyProps(System.Array.Empty())) { } @@ -19877,19 +19877,19 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "render", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"name\\":\\"data\\",\\"optional\\":true,\\"type\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.MyFirstStruct\\"}}]")] public virtual string Render(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IMyFirstStruct? data = null) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IMyFirstStruct)}, new object?[]{data}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IMyFirstStruct)}, new object?[]{data})!; } [JsiiMethod(name: "renderArbitrary", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"name\\":\\"data\\",\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"any\\"},\\"kind\\":\\"map\\"}}}]")] public virtual string RenderArbitrary(System.Collections.Generic.IDictionary data) { - return InvokeInstanceMethod(new System.Type[]{typeof(System.Collections.Generic.IDictionary)}, new object[]{data}); + return InvokeInstanceMethod(new System.Type[]{typeof(System.Collections.Generic.IDictionary)}, new object[]{data})!; } [JsiiMethod(name: "renderMap", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"name\\":\\"map\\",\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"any\\"},\\"kind\\":\\"map\\"}}}]")] public virtual string RenderMap(System.Collections.Generic.IDictionary map) { - return InvokeInstanceMethod(new System.Type[]{typeof(System.Collections.Generic.IDictionary)}, new object[]{map}); + return InvokeInstanceMethod(new System.Type[]{typeof(System.Collections.Generic.IDictionary)}, new object[]{map})!; } } } @@ -19927,13 +19927,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "arg1", typeJson: "{\\"primitive\\":\\"number\\"}")] public virtual double Arg1 { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiProperty(name: "arg3", typeJson: "{\\"primitive\\":\\"date\\"}")] public virtual System.DateTime Arg3 { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiOptional] @@ -19962,7 +19962,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Demonstrate982), fullyQualifiedName: "jsii-calc.Demonstrate982")] public class Demonstrate982 : DeputyBase { - public Demonstrate982(): base(new DeputyProps(System.Array.Empty())) + public Demonstrate982(): base(new DeputyProps(System.Array.Empty())) { } @@ -19984,14 +19984,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "takeThis", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.ChildStruct982\\"}}")] public static Amazon.JSII.Tests.CalculatorNamespace.IChildStruct982 TakeThis() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Demonstrate982), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Demonstrate982), new System.Type[]{}, new object[]{})!; } /// It's dangerous to go alone! [JsiiMethod(name: "takeThisToo", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.ParentStruct982\\"}}")] public static Amazon.JSII.Tests.CalculatorNamespace.IParentStruct982 TakeThisToo() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Demonstrate982), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Demonstrate982), new System.Type[]{}, new object[]{})!; } } } @@ -20053,7 +20053,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [System.Obsolete("this is not always \\"wazoo\\", be ready to be disappointed")] public virtual string ReadonlyProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } /// @@ -20159,7 +20159,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [System.Obsolete("well, yeah")] public string ReadonlyProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -20176,7 +20176,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties.Base), fullyQualifiedName: "jsii-calc.DerivedClassHasNoProperties.Base")] public class Base : DeputyBase { - public Base(): base(new DeputyProps(System.Array.Empty())) + public Base(): base(new DeputyProps(System.Array.Empty())) { } @@ -20197,7 +20197,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties [JsiiProperty(name: "prop", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string Prop { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } } @@ -20215,7 +20215,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties.Derived), fullyQualifiedName: "jsii-calc.DerivedClassHasNoProperties.Derived")] public class Derived : Amazon.JSII.Tests.CalculatorNamespace.DerivedClassHasNoProperties.Base { - public Derived(): base(new DeputyProps(System.Array.Empty())) + public Derived(): base(new DeputyProps(System.Array.Empty())) { } @@ -20355,20 +20355,20 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "anotherRequired", typeJson: "{\\"primitive\\":\\"date\\"}")] public System.DateTime AnotherRequired { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiProperty(name: "bool", typeJson: "{\\"primitive\\":\\"boolean\\"}")] public bool Bool { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } /// An example of a non primitive property. [JsiiProperty(name: "nonPrimitive", typeJson: "{\\"fqn\\":\\"jsii-calc.DoubleTrouble\\"}")] public Amazon.JSII.Tests.CalculatorNamespace.DoubleTrouble NonPrimitive { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } /// This is optional. @@ -20401,7 +20401,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [System.Obsolete()] public double Anumber { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } /// (deprecated) A string value. @@ -20412,7 +20412,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [System.Obsolete()] public string Astring { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } /// @@ -20470,7 +20470,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "baseLevelProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public string BaseLevelProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -20524,13 +20524,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "firstMidLevelProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public string FirstMidLevelProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiProperty(name: "baseLevelProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public string BaseLevelProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -20584,13 +20584,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "secondMidLevelProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public string SecondMidLevelProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiProperty(name: "baseLevelProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public string BaseLevelProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -20658,25 +20658,25 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "topLevelProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public string TopLevelProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiProperty(name: "firstMidLevelProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public string FirstMidLevelProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiProperty(name: "baseLevelProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public string BaseLevelProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiProperty(name: "secondMidLevelProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public string SecondMidLevelProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -20716,7 +20716,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// (Nah, just a billion dollars mistake!) /// [JsiiProperty(name: "maybeList", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"array\\"}}", isOptional: true)] - public static string[] MaybeList + public static string[]? MaybeList { get; } @@ -20727,7 +20727,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// (Nah, just a billion dollars mistake!) /// [JsiiProperty(name: "maybeMap", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"number\\"},\\"kind\\":\\"map\\"}}", isOptional: true)] - public static System.Collections.Generic.IDictionary MaybeMap + public static System.Collections.Generic.IDictionary? MaybeMap { get; } @@ -20747,7 +20747,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DoNotOverridePrivates), fullyQualifiedName: "jsii-calc.DoNotOverridePrivates")] public class DoNotOverridePrivates : DeputyBase { - public DoNotOverridePrivates(): base(new DeputyProps(System.Array.Empty())) + public DoNotOverridePrivates(): base(new DeputyProps(System.Array.Empty())) { } @@ -20774,13 +20774,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "privateMethodValue", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] public virtual string PrivateMethodValue() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "privatePropertyValue", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] public virtual string PrivatePropertyValue() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } } } @@ -20798,7 +20798,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DoNotRecognizeAnyAsOptional), fullyQualifiedName: "jsii-calc.DoNotRecognizeAnyAsOptional")] public class DoNotRecognizeAnyAsOptional : DeputyBase { - public DoNotRecognizeAnyAsOptional(): base(new DeputyProps(System.Array.Empty())) + public DoNotRecognizeAnyAsOptional(): base(new DeputyProps(System.Array.Empty())) { } @@ -20843,7 +20843,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DocumentedClass), fullyQualifiedName: "jsii-calc.DocumentedClass")] public class DocumentedClass : DeputyBase { - public DocumentedClass(): base(new DeputyProps(System.Array.Empty())) + public DocumentedClass(): base(new DeputyProps(System.Array.Empty())) { } @@ -20871,7 +20871,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "greet", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", parametersJson: "[{\\"docs\\":{\\"summary\\":\\"The person to be greeted.\\"},\\"name\\":\\"greetee\\",\\"optional\\":true,\\"type\\":{\\"fqn\\":\\"jsii-calc.Greetee\\"}}]")] public virtual double Greet(Amazon.JSII.Tests.CalculatorNamespace.IGreetee? greetee = null) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IGreetee)}, new object?[]{greetee}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IGreetee)}, new object?[]{greetee})!; } /// (experimental) Say ¡Hola! @@ -20898,7 +20898,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DontComplainAboutVariadicAfterOptional), fullyQualifiedName: "jsii-calc.DontComplainAboutVariadicAfterOptional")] public class DontComplainAboutVariadicAfterOptional : DeputyBase { - public DontComplainAboutVariadicAfterOptional(): base(new DeputyProps(System.Array.Empty())) + public DontComplainAboutVariadicAfterOptional(): base(new DeputyProps(System.Array.Empty())) { } @@ -20919,7 +20919,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "optionalAndVariadic", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"name\\":\\"optional\\",\\"optional\\":true,\\"type\\":{\\"primitive\\":\\"string\\"}},{\\"name\\":\\"things\\",\\"type\\":{\\"primitive\\":\\"string\\"},\\"variadic\\":true}]")] public virtual string OptionalAndVariadic(string? optional = null, params string[] things) { - return InvokeInstanceMethod(new System.Type[]{typeof(string), typeof(string[])}, new object?[]{optional, things}); + return InvokeInstanceMethod(new System.Type[]{typeof(string), typeof(string[])}, new object?[]{optional, things})!; } } } @@ -20936,7 +20936,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DoubleTrouble), fullyQualifiedName: "jsii-calc.DoubleTrouble")] public class DoubleTrouble : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IFriendlyRandomGenerator { - public DoubleTrouble(): base(new DeputyProps(System.Array.Empty())) + public DoubleTrouble(): base(new DeputyProps(System.Array.Empty())) { } @@ -20958,14 +20958,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "hello", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", isOverride: true)] public virtual string Hello() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } /// Returns another random number. [JsiiMethod(name: "next", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", isOverride: true)] public virtual double Next() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } } } @@ -20983,7 +20983,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DynamicPropertyBearer), fullyQualifiedName: "jsii-calc.DynamicPropertyBearer", parametersJson: "[{\\"name\\":\\"valueStore\\",\\"type\\":{\\"primitive\\":\\"string\\"}}]")] public class DynamicPropertyBearer : DeputyBase { - public DynamicPropertyBearer(string valueStore): base(new DeputyProps(new object[]{valueStore})) + public DynamicPropertyBearer(string valueStore): base(new DeputyProps(new object?[]{valueStore})) { } @@ -21004,14 +21004,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "dynamicProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string DynamicProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } [JsiiProperty(name: "valueStore", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string ValueStore { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } } @@ -21029,7 +21029,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.DynamicPropertyBearerChild), fullyQualifiedName: "jsii-calc.DynamicPropertyBearerChild", parametersJson: "[{\\"name\\":\\"originalValue\\",\\"type\\":{\\"primitive\\":\\"string\\"}}]")] public class DynamicPropertyBearerChild : Amazon.JSII.Tests.CalculatorNamespace.DynamicPropertyBearer { - public DynamicPropertyBearerChild(string originalValue): base(new DeputyProps(new object[]{originalValue})) + public DynamicPropertyBearerChild(string originalValue): base(new DeputyProps(new object?[]{originalValue})) { } @@ -21053,13 +21053,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "overrideValue", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"docs\\":{\\"summary\\":\\"the new value to be set.\\"},\\"name\\":\\"newValue\\",\\"type\\":{\\"primitive\\":\\"string\\"}}]")] public virtual string OverrideValue(string newValue) { - return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{newValue}); + return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{newValue})!; } [JsiiProperty(name: "originalValue", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string OriginalValue { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -21079,7 +21079,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace { /// Creates a new instance of Entropy. /// your implementation of \`WallClock\`. - protected Entropy(Amazon.JSII.Tests.CalculatorNamespace.IWallClock clock): base(new DeputyProps(new object[]{clock})) + protected Entropy(Amazon.JSII.Tests.CalculatorNamespace.IWallClock clock): base(new DeputyProps(new object?[]{clock})) { } @@ -21102,7 +21102,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "increase", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] public virtual string Increase() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } /// Implement this method such that it returns \`word\`. @@ -21137,7 +21137,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "repeat", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"docs\\":{\\"summary\\":\\"the value to return.\\"},\\"name\\":\\"word\\",\\"type\\":{\\"primitive\\":\\"string\\"}}]")] public override string Repeat(string word) { - return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{word}); + return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{word})!; } } } @@ -21171,13 +21171,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "randomIntegerLikeEnum", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.AllTypesEnum\\"}}")] public static Amazon.JSII.Tests.CalculatorNamespace.AllTypesEnum RandomIntegerLikeEnum() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.EnumDispenser), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.EnumDispenser), new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "randomStringLikeEnum", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.StringEnum\\"}}")] public static Amazon.JSII.Tests.CalculatorNamespace.StringEnum RandomStringLikeEnum() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.EnumDispenser), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.EnumDispenser), new System.Type[]{}, new object[]{})!; } } } @@ -21194,7 +21194,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.EraseUndefinedHashValues), fullyQualifiedName: "jsii-calc.EraseUndefinedHashValues")] public class EraseUndefinedHashValues : DeputyBase { - public EraseUndefinedHashValues(): base(new DeputyProps(System.Array.Empty())) + public EraseUndefinedHashValues(): base(new DeputyProps(System.Array.Empty())) { } @@ -21220,21 +21220,21 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "doesKeyExist", returnsJson: "{\\"type\\":{\\"primitive\\":\\"boolean\\"}}", parametersJson: "[{\\"name\\":\\"opts\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.EraseUndefinedHashValuesOptions\\"}},{\\"name\\":\\"key\\",\\"type\\":{\\"primitive\\":\\"string\\"}}]")] public static bool DoesKeyExist(Amazon.JSII.Tests.CalculatorNamespace.IEraseUndefinedHashValuesOptions opts, string key) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.EraseUndefinedHashValues), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IEraseUndefinedHashValuesOptions), typeof(string)}, new object[]{opts, key}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.EraseUndefinedHashValues), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IEraseUndefinedHashValuesOptions), typeof(string)}, new object[]{opts, key})!; } /// We expect "prop1" to be erased. [JsiiMethod(name: "prop1IsNull", returnsJson: "{\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"any\\"},\\"kind\\":\\"map\\"}}}")] public static System.Collections.Generic.IDictionary Prop1IsNull() { - return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.EraseUndefinedHashValues), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.EraseUndefinedHashValues), new System.Type[]{}, new object[]{})!; } /// We expect "prop2" to be erased. [JsiiMethod(name: "prop2IsUndefined", returnsJson: "{\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"any\\"},\\"kind\\":\\"map\\"}}}")] public static System.Collections.Generic.IDictionary Prop2IsUndefined() { - return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.EraseUndefinedHashValues), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.EraseUndefinedHashValues), new System.Type[]{}, new object[]{})!; } } } @@ -21352,7 +21352,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "readonlyProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string ReadonlyProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } /// @@ -21451,7 +21451,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "readonlyProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public string ReadonlyProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -21468,7 +21468,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ExportedBaseClass), fullyQualifiedName: "jsii-calc.ExportedBaseClass", parametersJson: "[{\\"name\\":\\"success\\",\\"type\\":{\\"primitive\\":\\"boolean\\"}}]")] public class ExportedBaseClass : DeputyBase { - public ExportedBaseClass(bool success): base(new DeputyProps(new object[]{success})) + public ExportedBaseClass(bool success): base(new DeputyProps(new object?[]{success})) { } @@ -21489,7 +21489,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "success", typeJson: "{\\"primitive\\":\\"boolean\\"}")] public virtual bool Success { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -21543,13 +21543,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "boom", typeJson: "{\\"primitive\\":\\"boolean\\"}")] public bool Boom { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiProperty(name: "prop", typeJson: "{\\"primitive\\":\\"string\\"}")] public string Prop { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -21605,7 +21605,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "readonlyProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string ReadonlyProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } /// @@ -21704,7 +21704,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "readonlyProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public string ReadonlyProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -21721,7 +21721,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.GiveMeStructs), fullyQualifiedName: "jsii-calc.GiveMeStructs")] public class GiveMeStructs : DeputyBase { - public GiveMeStructs(): base(new DeputyProps(System.Array.Empty())) + public GiveMeStructs(): base(new DeputyProps(System.Array.Empty())) { } @@ -21743,27 +21743,27 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "derivedToFirst", returnsJson: "{\\"type\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.MyFirstStruct\\"}}", parametersJson: "[{\\"name\\":\\"derived\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.DerivedStruct\\"}}]")] public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IMyFirstStruct DerivedToFirst(Amazon.JSII.Tests.CalculatorNamespace.IDerivedStruct derived) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IDerivedStruct)}, new object[]{derived}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IDerivedStruct)}, new object[]{derived})!; } /// Returns the boolean from a DerivedStruct struct. [JsiiMethod(name: "readDerivedNonPrimitive", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.DoubleTrouble\\"}}", parametersJson: "[{\\"name\\":\\"derived\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.DerivedStruct\\"}}]")] public virtual Amazon.JSII.Tests.CalculatorNamespace.DoubleTrouble ReadDerivedNonPrimitive(Amazon.JSII.Tests.CalculatorNamespace.IDerivedStruct derived) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IDerivedStruct)}, new object[]{derived}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IDerivedStruct)}, new object[]{derived})!; } /// Returns the "anumber" from a MyFirstStruct struct; [JsiiMethod(name: "readFirstNumber", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", parametersJson: "[{\\"name\\":\\"first\\",\\"type\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.MyFirstStruct\\"}}]")] public virtual double ReadFirstNumber(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IMyFirstStruct first) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IMyFirstStruct)}, new object[]{first}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IMyFirstStruct)}, new object[]{first})!; } [JsiiProperty(name: "structLiteral", typeJson: "{\\"fqn\\":\\"@scope/jsii-calc-lib.StructWithOnlyOptionals\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IStructWithOnlyOptionals StructLiteral { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -21837,7 +21837,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.GreetingAugmenter), fullyQualifiedName: "jsii-calc.GreetingAugmenter")] public class GreetingAugmenter : DeputyBase { - public GreetingAugmenter(): base(new DeputyProps(System.Array.Empty())) + public GreetingAugmenter(): base(new DeputyProps(System.Array.Empty())) { } @@ -21858,7 +21858,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "betterGreeting", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"name\\":\\"friendly\\",\\"type\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.IFriendly\\"}}]")] public virtual string BetterGreeting(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IFriendly friendly) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IFriendly)}, new object[]{friendly}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IFriendly)}, new object[]{friendly})!; } } } @@ -21903,13 +21903,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "provideAsClass", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.Implementation\\"}}")] public Amazon.JSII.Tests.CalculatorNamespace.Implementation ProvideAsClass() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "provideAsInterface", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.IAnonymouslyImplementMe\\"}}")] public Amazon.JSII.Tests.CalculatorNamespace.IAnonymouslyImplementMe ProvideAsInterface() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } } } @@ -21955,13 +21955,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "value", typeJson: "{\\"primitive\\":\\"number\\"}")] public double Value { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiMethod(name: "verb", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] public string Verb() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } } } @@ -22006,7 +22006,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "a", typeJson: "{\\"primitive\\":\\"string\\"}")] public string A { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } } @@ -22699,13 +22699,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "moreThings", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"array\\"}}")] public string[] MoreThings { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiProperty(name: "private", typeJson: "{\\"primitive\\":\\"string\\"}")] public string Private { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } } @@ -22861,7 +22861,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "farewell", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] public string Farewell() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } /// Say goodbye. @@ -22869,7 +22869,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "goodbye", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] public string Goodbye() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } /// (deprecated) Say hello! @@ -22880,7 +22880,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [System.Obsolete()] public string Hello() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } } } @@ -22921,7 +22921,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "next", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}")] public double Next() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } /// (deprecated) Say hello! @@ -22932,7 +22932,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [System.Obsolete()] public string Hello() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } } } @@ -23027,7 +23027,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "propFromInterface", typeJson: "{\\"primitive\\":\\"string\\"}")] public string PropFromInterface { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -23073,13 +23073,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "otherValue", typeJson: "{\\"primitive\\":\\"string\\"}")] public string OtherValue { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiProperty(name: "value", typeJson: "{\\"primitive\\":\\"string\\"}")] public string Value { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiMethod(name: "doThings")] @@ -23172,7 +23172,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "value", typeJson: "{\\"primitive\\":\\"string\\"}")] public string Value { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiMethod(name: "doThings")] @@ -23293,20 +23293,20 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "foo", typeJson: "{\\"primitive\\":\\"number\\"}")] public double Foo { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } [JsiiProperty(name: "readOnlyString", typeJson: "{\\"primitive\\":\\"string\\"}")] public string ReadOnlyString { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiProperty(name: "readWriteString", typeJson: "{\\"primitive\\":\\"string\\"}")] public string ReadWriteString { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } } @@ -23331,13 +23331,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "readOnlyString", typeJson: "{\\"primitive\\":\\"string\\"}")] public string ReadOnlyString { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiProperty(name: "readWriteString", typeJson: "{\\"primitive\\":\\"string\\"}")] public string ReadWriteString { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } } @@ -23386,13 +23386,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "property", typeJson: "{\\"primitive\\":\\"string\\"}")] public string Property { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiProperty(name: "hasRoot", typeJson: "{\\"primitive\\":\\"boolean\\"}")] public bool HasRoot { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiMethod(name: "bar")] @@ -23456,7 +23456,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "hasRoot", typeJson: "{\\"primitive\\":\\"boolean\\"}")] public bool HasRoot { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiMethod(name: "foo")] @@ -23737,7 +23737,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "value", typeJson: "{\\"primitive\\":\\"string\\"}")] public string Value { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } } @@ -23811,21 +23811,21 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "b", typeJson: "{\\"primitive\\":\\"string\\"}")] public string B { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } [JsiiProperty(name: "c", typeJson: "{\\"primitive\\":\\"string\\"}")] public string C { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } [JsiiProperty(name: "a", typeJson: "{\\"primitive\\":\\"string\\"}")] public string A { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } } @@ -23905,14 +23905,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "property", typeJson: "{\\"primitive\\":\\"string\\"}")] public string Property { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } [JsiiMethod(name: "wasSet", returnsJson: "{\\"type\\":{\\"primitive\\":\\"boolean\\"}}")] public bool WasSet() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } } } @@ -24044,7 +24044,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "success", typeJson: "{\\"primitive\\":\\"boolean\\"}")] public bool Success { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -24102,7 +24102,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "ciao", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] public string Ciao() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } } } @@ -24126,7 +24126,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "bye", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] public string Bye() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } } } @@ -24173,7 +24173,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "next", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}")] public double Next() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } } } @@ -24219,7 +24219,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "foo", typeJson: "{\\"primitive\\":\\"number\\"}")] public double Foo { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -24265,13 +24265,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "numberProp", typeJson: "{\\"fqn\\":\\"@scope/jsii-calc-lib.Number\\"}")] public Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Number NumberProp { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiMethod(name: "obtainNumber", returnsJson: "{\\"type\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.IDoublable\\"}}")] public Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IDoublable ObtainNumber() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } } } @@ -24606,7 +24606,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "returnStruct", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.StructB\\"}}")] public Amazon.JSII.Tests.CalculatorNamespace.IStructB ReturnStruct() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } } } @@ -24805,7 +24805,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "iso8601Now", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] public string Iso8601Now() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } } } @@ -24822,7 +24822,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ImplementInternalInterface), fullyQualifiedName: "jsii-calc.ImplementInternalInterface")] public class ImplementInternalInterface : DeputyBase { - public ImplementInternalInterface(): base(new DeputyProps(System.Array.Empty())) + public ImplementInternalInterface(): base(new DeputyProps(System.Array.Empty())) { } @@ -24843,7 +24843,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "prop", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string Prop { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } } @@ -24861,7 +24861,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Implementation), fullyQualifiedName: "jsii-calc.Implementation")] public class Implementation : DeputyBase { - public Implementation(): base(new DeputyProps(System.Array.Empty())) + public Implementation(): base(new DeputyProps(System.Array.Empty())) { } @@ -24882,7 +24882,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "value", typeJson: "{\\"primitive\\":\\"number\\"}")] public virtual double Value { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -24899,7 +24899,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ImplementsInterfaceWithInternal), fullyQualifiedName: "jsii-calc.ImplementsInterfaceWithInternal")] public class ImplementsInterfaceWithInternal : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithInternal { - public ImplementsInterfaceWithInternal(): base(new DeputyProps(System.Array.Empty())) + public ImplementsInterfaceWithInternal(): base(new DeputyProps(System.Array.Empty())) { } @@ -24937,7 +24937,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ImplementsInterfaceWithInternalSubclass), fullyQualifiedName: "jsii-calc.ImplementsInterfaceWithInternalSubclass")] public class ImplementsInterfaceWithInternalSubclass : Amazon.JSII.Tests.CalculatorNamespace.ImplementsInterfaceWithInternal { - public ImplementsInterfaceWithInternalSubclass(): base(new DeputyProps(System.Array.Empty())) + public ImplementsInterfaceWithInternalSubclass(): base(new DeputyProps(System.Array.Empty())) { } @@ -24969,7 +24969,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ImplementsPrivateInterface), fullyQualifiedName: "jsii-calc.ImplementsPrivateInterface")] public class ImplementsPrivateInterface : DeputyBase { - public ImplementsPrivateInterface(): base(new DeputyProps(System.Array.Empty())) + public ImplementsPrivateInterface(): base(new DeputyProps(System.Array.Empty())) { } @@ -24990,7 +24990,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "private", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string Private { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } } @@ -25052,19 +25052,19 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "goo", typeJson: "{\\"primitive\\":\\"date\\"}")] public System.DateTime Goo { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiProperty(name: "bar", typeJson: "{\\"primitive\\":\\"string\\"}")] public string Bar { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiProperty(name: "foo", typeJson: "{\\"fqn\\":\\"@scope/jsii-calc-base-of-base.Very\\"}")] public Amazon.JSII.Tests.CalculatorNamespace.BaseOfBaseNamespace.Very Foo { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -25081,7 +25081,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.InbetweenClass), fullyQualifiedName: "jsii-calc.InbetweenClass")] public class InbetweenClass : Amazon.JSII.Tests.CalculatorNamespace.PublicClass, Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface2 { - public InbetweenClass(): base(new DeputyProps(System.Array.Empty())) + public InbetweenClass(): base(new DeputyProps(System.Array.Empty())) { } @@ -25102,7 +25102,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "ciao", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", isOverride: true)] public virtual string Ciao() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } } } @@ -25140,25 +25140,25 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "listOfInterfaces", returnsJson: "{\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"fqn\\":\\"jsii-calc.IBell\\"},\\"kind\\":\\"array\\"}}}")] public static Amazon.JSII.Tests.CalculatorNamespace.IBell[] ListOfInterfaces() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceCollections), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceCollections), new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "listOfStructs", returnsJson: "{\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"fqn\\":\\"jsii-calc.StructA\\"},\\"kind\\":\\"array\\"}}}")] public static Amazon.JSII.Tests.CalculatorNamespace.IStructA[] ListOfStructs() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceCollections), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceCollections), new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "mapOfInterfaces", returnsJson: "{\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"fqn\\":\\"jsii-calc.IBell\\"},\\"kind\\":\\"map\\"}}}")] public static System.Collections.Generic.IDictionary MapOfInterfaces() { - return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceCollections), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceCollections), new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "mapOfStructs", returnsJson: "{\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"fqn\\":\\"jsii-calc.StructA\\"},\\"kind\\":\\"map\\"}}}")] public static System.Collections.Generic.IDictionary MapOfStructs() { - return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceCollections), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod>(typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceCollections), new System.Type[]{}, new object[]{})!; } } } @@ -25175,7 +25175,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClas [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClasses.Foo), fullyQualifiedName: "jsii-calc.InterfaceInNamespaceIncludesClasses.Foo")] public class Foo : DeputyBase { - public Foo(): base(new DeputyProps(System.Array.Empty())) + public Foo(): base(new DeputyProps(System.Array.Empty())) { } @@ -25245,7 +25245,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceIncludesClas [JsiiProperty(name: "foo", typeJson: "{\\"primitive\\":\\"number\\"}")] public double Foo { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -25312,7 +25312,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.InterfaceInNamespaceOnlyInterfac [JsiiProperty(name: "foo", typeJson: "{\\"primitive\\":\\"number\\"}")] public double Foo { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -25367,7 +25367,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "makeInterfaces", returnsJson: "{\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.IDoublable\\"},\\"kind\\":\\"array\\"}}}", parametersJson: "[{\\"name\\":\\"count\\",\\"type\\":{\\"primitive\\":\\"number\\"}}]")] public static Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IDoublable[] MakeInterfaces(double count) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfacesMaker), new System.Type[]{typeof(double)}, new object[]{count}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.InterfacesMaker), new System.Type[]{typeof(double)}, new object[]{count})!; } } } @@ -25407,7 +25407,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Isomorphism), fullyQualifiedName: "jsii-calc.Isomorphism")] public abstract class Isomorphism : DeputyBase { - protected Isomorphism(): base(new DeputyProps(System.Array.Empty())) + protected Isomorphism(): base(new DeputyProps(System.Array.Empty())) { } @@ -25428,7 +25428,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "myself", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.Isomorphism\\"}}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.Isomorphism Myself() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } } } @@ -25468,7 +25468,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JSII417Derived), fullyQualifiedName: "jsii-calc.JSII417Derived", parametersJson: "[{\\"name\\":\\"property\\",\\"type\\":{\\"primitive\\":\\"string\\"}}]")] public class JSII417Derived : Amazon.JSII.Tests.CalculatorNamespace.JSII417PublicBaseOfBase { - public JSII417Derived(string property): base(new DeputyProps(new object[]{property})) + public JSII417Derived(string property): base(new DeputyProps(new object?[]{property})) { } @@ -25501,7 +25501,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "property", typeJson: "{\\"primitive\\":\\"string\\"}")] protected virtual string Property { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -25518,7 +25518,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JSII417PublicBaseOfBase), fullyQualifiedName: "jsii-calc.JSII417PublicBaseOfBase")] public class JSII417PublicBaseOfBase : DeputyBase { - public JSII417PublicBaseOfBase(): base(new DeputyProps(System.Array.Empty())) + public JSII417PublicBaseOfBase(): base(new DeputyProps(System.Array.Empty())) { } @@ -25539,7 +25539,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "makeInstance", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.JSII417PublicBaseOfBase\\"}}")] public static Amazon.JSII.Tests.CalculatorNamespace.JSII417PublicBaseOfBase MakeInstance() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JSII417PublicBaseOfBase), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JSII417PublicBaseOfBase), new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "foo")] @@ -25551,7 +25551,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "hasRoot", typeJson: "{\\"primitive\\":\\"boolean\\"}")] public virtual bool HasRoot { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -25568,7 +25568,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JSObjectLiteralForInterface), fullyQualifiedName: "jsii-calc.JSObjectLiteralForInterface")] public class JSObjectLiteralForInterface : DeputyBase { - public JSObjectLiteralForInterface(): base(new DeputyProps(System.Array.Empty())) + public JSObjectLiteralForInterface(): base(new DeputyProps(System.Array.Empty())) { } @@ -25589,13 +25589,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "giveMeFriendly", returnsJson: "{\\"type\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.IFriendly\\"}}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IFriendly GiveMeFriendly() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "giveMeFriendlyGenerator", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.IFriendlyRandomGenerator\\"}}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.IFriendlyRandomGenerator GiveMeFriendlyGenerator() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } } } @@ -25612,7 +25612,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JSObjectLiteralToNative), fullyQualifiedName: "jsii-calc.JSObjectLiteralToNative")] public class JSObjectLiteralToNative : DeputyBase { - public JSObjectLiteralToNative(): base(new DeputyProps(System.Array.Empty())) + public JSObjectLiteralToNative(): base(new DeputyProps(System.Array.Empty())) { } @@ -25633,7 +25633,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "returnLiteral", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.JSObjectLiteralToNativeClass\\"}}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.JSObjectLiteralToNativeClass ReturnLiteral() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } } } @@ -25650,7 +25650,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JSObjectLiteralToNativeClass), fullyQualifiedName: "jsii-calc.JSObjectLiteralToNativeClass")] public class JSObjectLiteralToNativeClass : DeputyBase { - public JSObjectLiteralToNativeClass(): base(new DeputyProps(System.Array.Empty())) + public JSObjectLiteralToNativeClass(): base(new DeputyProps(System.Array.Empty())) { } @@ -25671,14 +25671,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "propA", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string PropA { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } [JsiiProperty(name: "propB", typeJson: "{\\"primitive\\":\\"number\\"}")] public virtual double PropB { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } } @@ -25696,7 +25696,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JavaReservedWords), fullyQualifiedName: "jsii-calc.JavaReservedWords")] public class JavaReservedWords : DeputyBase { - public JavaReservedWords(): base(new DeputyProps(System.Array.Empty())) + public JavaReservedWords(): base(new DeputyProps(System.Array.Empty())) { } @@ -26029,7 +26029,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "while", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string While { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } } @@ -26047,7 +26047,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Jsii487Derived), fullyQualifiedName: "jsii-calc.Jsii487Derived")] public class Jsii487Derived : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IJsii487External2, Amazon.JSII.Tests.CalculatorNamespace.IJsii487External { - public Jsii487Derived(): base(new DeputyProps(System.Array.Empty())) + public Jsii487Derived(): base(new DeputyProps(System.Array.Empty())) { } @@ -26079,7 +26079,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Jsii496Derived), fullyQualifiedName: "jsii-calc.Jsii496Derived")] public class Jsii496Derived : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IJsii496 { - public Jsii496Derived(): base(new DeputyProps(System.Array.Empty())) + public Jsii496Derived(): base(new DeputyProps(System.Array.Empty())) { } @@ -26112,7 +26112,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.JsiiAgent), fullyQualifiedName: "jsii-calc.JsiiAgent")] public class JsiiAgent : DeputyBase { - public JsiiAgent(): base(new DeputyProps(System.Array.Empty())) + public JsiiAgent(): base(new DeputyProps(System.Array.Empty())) { } @@ -26173,79 +26173,79 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "anyArray", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}")] public static object AnyArray() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "anyBooleanFalse", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}")] public static object AnyBooleanFalse() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "anyBooleanTrue", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}")] public static object AnyBooleanTrue() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "anyDate", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}")] public static object AnyDate() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "anyEmptyString", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}")] public static object AnyEmptyString() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "anyFunction", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}")] public static object AnyFunction() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "anyHash", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}")] public static object AnyHash() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "anyNull", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}")] public static object AnyNull() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "anyNumber", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}")] public static object AnyNumber() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "anyRef", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}")] public static object AnyRef() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "anyString", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}")] public static object AnyString() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "anyUndefined", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}")] public static object AnyUndefined() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "anyZero", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}")] public static object AnyZero() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.JsonFormatter), new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "stringify", returnsJson: "{\\"optional\\":true,\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"name\\":\\"value\\",\\"optional\\":true,\\"type\\":{\\"primitive\\":\\"any\\"}}]")] @@ -26269,7 +26269,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.LevelOne), fullyQualifiedName: "jsii-calc.LevelOne", parametersJson: "[{\\"name\\":\\"props\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.LevelOneProps\\"}}]")] public class LevelOne : DeputyBase { - public LevelOne(Amazon.JSII.Tests.CalculatorNamespace.ILevelOneProps props): base(new DeputyProps(new object[]{props})) + public LevelOne(Amazon.JSII.Tests.CalculatorNamespace.ILevelOneProps props): base(new DeputyProps(new object?[]{props})) { } @@ -26290,7 +26290,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "props", typeJson: "{\\"fqn\\":\\"jsii-calc.LevelOneProps\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.ILevelOneProps Props { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiInterface(nativeType: typeof(IPropBooleanValue), fullyQualifiedName: "jsii-calc.LevelOne.PropBooleanValue")] public interface IPropBooleanValue @@ -26311,7 +26311,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "value", typeJson: "{\\"primitive\\":\\"boolean\\"}")] public bool Value { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } #pragma warning disable CS8618 @@ -26345,7 +26345,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "prop", typeJson: "{\\"fqn\\":\\"jsii-calc.LevelOne.PropBooleanValue\\"}")] public Amazon.JSII.Tests.CalculatorNamespace.LevelOne.IPropBooleanValue Prop { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } #pragma warning disable CS8618 @@ -26405,7 +26405,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "prop", typeJson: "{\\"fqn\\":\\"jsii-calc.LevelOne.PropProperty\\"}")] public Amazon.JSII.Tests.CalculatorNamespace.LevelOne.IPropProperty Prop { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -26623,7 +26623,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.MethodNamedProperty), fullyQualifiedName: "jsii-calc.MethodNamedProperty")] public class MethodNamedProperty : DeputyBase { - public MethodNamedProperty(): base(new DeputyProps(System.Array.Empty())) + public MethodNamedProperty(): base(new DeputyProps(System.Array.Empty())) { } @@ -26644,13 +26644,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "property", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] public virtual string Property() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } [JsiiProperty(name: "elite", typeJson: "{\\"primitive\\":\\"number\\"}")] public virtual double Elite { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -26671,7 +26671,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Creates a BinaryOperation. /// Left-hand side operand. /// Right-hand side operand. - public Multiply(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.NumericValue lhs, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.NumericValue rhs): base(new DeputyProps(new object[]{lhs, rhs})) + public Multiply(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.NumericValue lhs, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.NumericValue rhs): base(new DeputyProps(new object?[]{lhs, rhs})) { } @@ -26693,35 +26693,35 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "farewell", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", isOverride: true)] public virtual string Farewell() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } /// Say goodbye. [JsiiMethod(name: "goodbye", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", isOverride: true)] public virtual string Goodbye() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } /// Returns another random number. [JsiiMethod(name: "next", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", isOverride: true)] public virtual double Next() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } /// (deprecated) String representation of the value. [JsiiMethod(name: "toString", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", isOverride: true)] public override string ToString() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } /// (deprecated) The value. [JsiiProperty(name: "value", typeJson: "{\\"primitive\\":\\"number\\"}")] public override double Value { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -26781,7 +26781,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Negate), fullyQualifiedName: "jsii-calc.Negate", parametersJson: "[{\\"name\\":\\"operand\\",\\"type\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.NumericValue\\"}}]")] public class Negate : Amazon.JSII.Tests.CalculatorNamespace.UnaryOperation, Amazon.JSII.Tests.CalculatorNamespace.IFriendlier { - public Negate(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.NumericValue operand): base(new DeputyProps(new object[]{operand})) + public Negate(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.NumericValue operand): base(new DeputyProps(new object?[]{operand})) { } @@ -26803,35 +26803,35 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "farewell", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", isOverride: true)] public virtual string Farewell() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } /// Say goodbye. [JsiiMethod(name: "goodbye", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", isOverride: true)] public virtual string Goodbye() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } /// (deprecated) Say hello! [JsiiMethod(name: "hello", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", isOverride: true)] public virtual string Hello() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } /// (deprecated) String representation of the value. [JsiiMethod(name: "toString", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", isOverride: true)] public override string ToString() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } /// (deprecated) The value. [JsiiProperty(name: "value", typeJson: "{\\"primitive\\":\\"number\\"}")] public override double Value { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -26865,7 +26865,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "makeInstance", returnsJson: "{\\"type\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.submodule.NestingClass.NestedClass\\"}}")] public static Amazon.JSII.Tests.CustomSubmoduleName.NestingClass.NestedClass MakeInstance() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.NestedClassInstance), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.NestedClassInstance), new System.Type[]{}, new object[]{})!; } } } @@ -26914,7 +26914,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "numberProp", typeJson: "{\\"primitive\\":\\"number\\"}")] public double NumberProp { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -26932,7 +26932,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.NodeStandardLibrary), fullyQualifiedName: "jsii-calc.NodeStandardLibrary")] public class NodeStandardLibrary : DeputyBase { - public NodeStandardLibrary(): base(new DeputyProps(System.Array.Empty())) + public NodeStandardLibrary(): base(new DeputyProps(System.Array.Empty())) { } @@ -26955,7 +26955,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "cryptoSha256", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] public virtual string CryptoSha256() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } /// Reads a local resource file (resource.txt) asynchronously. @@ -26963,7 +26963,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "fsReadFile", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", isAsync: true)] public virtual string FsReadFile() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } /// Sync version of fsReadFile. @@ -26971,14 +26971,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "fsReadFileSync", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] public virtual string FsReadFileSync() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } /// Returns the current os.platform() from the "os" node module. [JsiiProperty(name: "osPlatform", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string OsPlatform { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -27092,7 +27092,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "arrayWithThreeElementsAndUndefinedAsSecondArgument", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"any\\"},\\"kind\\":\\"array\\"}}")] public object[] ArrayWithThreeElementsAndUndefinedAsSecondArgument { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiOptional] @@ -27117,7 +27117,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.NumberGenerator), fullyQualifiedName: "jsii-calc.NumberGenerator", parametersJson: "[{\\"name\\":\\"generator\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.IRandomNumberGenerator\\"}}]")] public class NumberGenerator : DeputyBase { - public NumberGenerator(Amazon.JSII.Tests.CalculatorNamespace.IRandomNumberGenerator generator): base(new DeputyProps(new object[]{generator})) + public NumberGenerator(Amazon.JSII.Tests.CalculatorNamespace.IRandomNumberGenerator generator): base(new DeputyProps(new object?[]{generator})) { } @@ -27138,19 +27138,19 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "isSameGenerator", returnsJson: "{\\"type\\":{\\"primitive\\":\\"boolean\\"}}", parametersJson: "[{\\"name\\":\\"gen\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.IRandomNumberGenerator\\"}}]")] public virtual bool IsSameGenerator(Amazon.JSII.Tests.CalculatorNamespace.IRandomNumberGenerator gen) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IRandomNumberGenerator)}, new object[]{gen}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IRandomNumberGenerator)}, new object[]{gen})!; } [JsiiMethod(name: "nextTimes100", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}")] public virtual double NextTimes100() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } [JsiiProperty(name: "generator", typeJson: "{\\"fqn\\":\\"jsii-calc.IRandomNumberGenerator\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.IRandomNumberGenerator Generator { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } } @@ -27169,7 +27169,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ObjectRefsInCollections), fullyQualifiedName: "jsii-calc.ObjectRefsInCollections")] public class ObjectRefsInCollections : DeputyBase { - public ObjectRefsInCollections(): base(new DeputyProps(System.Array.Empty())) + public ObjectRefsInCollections(): base(new DeputyProps(System.Array.Empty())) { } @@ -27191,14 +27191,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "sumFromArray", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", parametersJson: "[{\\"name\\":\\"values\\",\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.NumericValue\\"},\\"kind\\":\\"array\\"}}}]")] public virtual double SumFromArray(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.NumericValue[] values) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.NumericValue[])}, new object[]{values}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.NumericValue[])}, new object[]{values})!; } /// Returns the sum of all values in a map. [JsiiMethod(name: "sumFromMap", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", parametersJson: "[{\\"name\\":\\"values\\",\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.NumericValue\\"},\\"kind\\":\\"map\\"}}}]")] public virtual double SumFromMap(System.Collections.Generic.IDictionary values) { - return InvokeInstanceMethod(new System.Type[]{typeof(System.Collections.Generic.IDictionary)}, new object[]{values}); + return InvokeInstanceMethod(new System.Type[]{typeof(System.Collections.Generic.IDictionary)}, new object[]{values})!; } } } @@ -27232,7 +27232,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "provide", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.IObjectWithProperty\\"}}")] public static Amazon.JSII.Tests.CalculatorNamespace.IObjectWithProperty Provide() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ObjectWithPropertyProvider), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.ObjectWithPropertyProvider), new System.Type[]{}, new object[]{})!; } } } @@ -27254,7 +27254,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [System.Obsolete("Use the new class")] public class Old : DeputyBase { - public Old(): base(new DeputyProps(System.Array.Empty())) + public Old(): base(new DeputyProps(System.Array.Empty())) { } @@ -27297,7 +27297,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.OptionalArgumentInvoker), fullyQualifiedName: "jsii-calc.OptionalArgumentInvoker", parametersJson: "[{\\"name\\":\\"delegate\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.IInterfaceWithOptionalMethodArguments\\"}}]")] public class OptionalArgumentInvoker : DeputyBase { - public OptionalArgumentInvoker(Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithOptionalMethodArguments @delegate): base(new DeputyProps(new object[]{@delegate})) + public OptionalArgumentInvoker(Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithOptionalMethodArguments @delegate): base(new DeputyProps(new object?[]{@delegate})) { } @@ -27362,13 +27362,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "arg1", typeJson: "{\\"primitive\\":\\"number\\"}")] public virtual double Arg1 { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiProperty(name: "arg2", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string Arg2 { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiOptional] @@ -27435,7 +27435,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "parameterWasUndefined", typeJson: "{\\"primitive\\":\\"boolean\\"}")] public virtual bool ParameterWasUndefined { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiOptional] @@ -27487,7 +27487,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.OverridableProtectedMember), fullyQualifiedName: "jsii-calc.OverridableProtectedMember")] public class OverridableProtectedMember : DeputyBase { - public OverridableProtectedMember(): base(new DeputyProps(System.Array.Empty())) + public OverridableProtectedMember(): base(new DeputyProps(System.Array.Empty())) { } @@ -27508,7 +27508,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "overrideMe", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] protected virtual string OverrideMe() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "switchModes")] @@ -27520,19 +27520,19 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "valueFromProtected", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] public virtual string ValueFromProtected() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } [JsiiProperty(name: "overrideReadOnly", typeJson: "{\\"primitive\\":\\"string\\"}")] protected virtual string OverrideReadOnly { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiProperty(name: "overrideReadWrite", typeJson: "{\\"primitive\\":\\"string\\"}")] protected virtual string OverrideReadWrite { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } } @@ -27550,7 +27550,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.OverrideReturnsObject), fullyQualifiedName: "jsii-calc.OverrideReturnsObject")] public class OverrideReturnsObject : DeputyBase { - public OverrideReturnsObject(): base(new DeputyProps(System.Array.Empty())) + public OverrideReturnsObject(): base(new DeputyProps(System.Array.Empty())) { } @@ -27571,7 +27571,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "test", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", parametersJson: "[{\\"name\\":\\"obj\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.IReturnsNumber\\"}}]")] public virtual double Test(Amazon.JSII.Tests.CalculatorNamespace.IReturnsNumber obj) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IReturnsNumber)}, new object[]{obj}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IReturnsNumber)}, new object[]{obj})!; } } } @@ -27620,7 +27620,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "foo", typeJson: "{\\"primitive\\":\\"string\\"}")] public string Foo { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -27637,7 +27637,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PartiallyInitializedThisConsumer), fullyQualifiedName: "jsii-calc.PartiallyInitializedThisConsumer")] public abstract class PartiallyInitializedThisConsumer : DeputyBase { - protected PartiallyInitializedThisConsumer(): base(new DeputyProps(System.Array.Empty())) + protected PartiallyInitializedThisConsumer(): base(new DeputyProps(System.Array.Empty())) { } @@ -27680,7 +27680,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "consumePartiallyInitializedThis", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"name\\":\\"obj\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.ConstructorPassesThisOut\\"}},{\\"name\\":\\"dt\\",\\"type\\":{\\"primitive\\":\\"date\\"}},{\\"name\\":\\"ev\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.AllTypesEnum\\"}}]")] public override string ConsumePartiallyInitializedThis(Amazon.JSII.Tests.CalculatorNamespace.ConstructorPassesThisOut obj, System.DateTime dt, Amazon.JSII.Tests.CalculatorNamespace.AllTypesEnum ev) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.ConstructorPassesThisOut), typeof(System.DateTime), typeof(Amazon.JSII.Tests.CalculatorNamespace.AllTypesEnum)}, new object[]{obj, dt, ev}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.ConstructorPassesThisOut), typeof(System.DateTime), typeof(Amazon.JSII.Tests.CalculatorNamespace.AllTypesEnum)}, new object[]{obj, dt, ev})!; } } } @@ -27697,7 +27697,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Polymorphism), fullyQualifiedName: "jsii-calc.Polymorphism")] public class Polymorphism : DeputyBase { - public Polymorphism(): base(new DeputyProps(System.Array.Empty())) + public Polymorphism(): base(new DeputyProps(System.Array.Empty())) { } @@ -27718,7 +27718,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "sayHello", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"name\\":\\"friendly\\",\\"type\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.IFriendly\\"}}]")] public virtual string SayHello(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IFriendly friendly) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IFriendly)}, new object[]{friendly}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.IFriendly)}, new object[]{friendly})!; } } } @@ -27739,7 +27739,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace /// Creates a Power operation. /// The base of the power. /// The number of times to multiply. - public Power(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.NumericValue @base, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.NumericValue pow): base(new DeputyProps(new object[]{@base, pow})) + public Power(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.NumericValue @base, Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.NumericValue pow): base(new DeputyProps(new object?[]{@base, pow})) { } @@ -27761,7 +27761,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "base", typeJson: "{\\"fqn\\":\\"@scope/jsii-calc-lib.NumericValue\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.NumericValue Base { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } /// The expression that this operation consists of. @@ -27771,14 +27771,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "expression", typeJson: "{\\"fqn\\":\\"@scope/jsii-calc-lib.NumericValue\\"}")] public override Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.NumericValue Expression { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } /// The number of times to multiply. [JsiiProperty(name: "pow", typeJson: "{\\"fqn\\":\\"@scope/jsii-calc-lib.NumericValue\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.NumericValue Pow { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -27796,7 +27796,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PropertyNamedProperty), fullyQualifiedName: "jsii-calc.PropertyNamedProperty")] public class PropertyNamedProperty : DeputyBase { - public PropertyNamedProperty(): base(new DeputyProps(System.Array.Empty())) + public PropertyNamedProperty(): base(new DeputyProps(System.Array.Empty())) { } @@ -27817,13 +27817,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "property", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string Property { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiProperty(name: "yetAnoterOne", typeJson: "{\\"primitive\\":\\"boolean\\"}")] public virtual bool YetAnoterOne { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -27840,7 +27840,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PublicClass), fullyQualifiedName: "jsii-calc.PublicClass")] public class PublicClass : DeputyBase { - public PublicClass(): base(new DeputyProps(System.Array.Empty())) + public PublicClass(): base(new DeputyProps(System.Array.Empty())) { } @@ -27878,7 +27878,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PythonReservedWords), fullyQualifiedName: "jsii-calc.PythonReservedWords")] public class PythonReservedWords : DeputyBase { - public PythonReservedWords(): base(new DeputyProps(System.Array.Empty())) + public PythonReservedWords(): base(new DeputyProps(System.Array.Empty())) { } @@ -28102,7 +28102,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.PythonSelf [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PythonSelf.ClassWithSelf), fullyQualifiedName: "jsii-calc.PythonSelf.ClassWithSelf", parametersJson: "[{\\"name\\":\\"self\\",\\"type\\":{\\"primitive\\":\\"string\\"}}]")] public class ClassWithSelf : DeputyBase { - public ClassWithSelf(string self): base(new DeputyProps(new object[]{self})) + public ClassWithSelf(string self): base(new DeputyProps(new object?[]{self})) { } @@ -28123,13 +28123,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.PythonSelf [JsiiMethod(name: "method", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"name\\":\\"self\\",\\"type\\":{\\"primitive\\":\\"number\\"}}]")] public virtual string Method(double self) { - return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{self}); + return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{self})!; } [JsiiProperty(name: "self", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string Self { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -28146,7 +28146,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.PythonSelf [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.PythonSelf.ClassWithSelfKwarg), fullyQualifiedName: "jsii-calc.PythonSelf.ClassWithSelfKwarg", parametersJson: "[{\\"name\\":\\"props\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.PythonSelf.StructWithSelf\\"}}]")] public class ClassWithSelfKwarg : DeputyBase { - public ClassWithSelfKwarg(Amazon.JSII.Tests.CalculatorNamespace.PythonSelf.IStructWithSelf props): base(new DeputyProps(new object[]{props})) + public ClassWithSelfKwarg(Amazon.JSII.Tests.CalculatorNamespace.PythonSelf.IStructWithSelf props): base(new DeputyProps(new object?[]{props})) { } @@ -28167,7 +28167,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.PythonSelf [JsiiProperty(name: "props", typeJson: "{\\"fqn\\":\\"jsii-calc.PythonSelf.StructWithSelf\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.PythonSelf.IStructWithSelf Props { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -28208,7 +28208,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.PythonSelf [JsiiMethod(name: "method", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"name\\":\\"self\\",\\"type\\":{\\"primitive\\":\\"number\\"}}]")] public string Method(double self) { - return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{self}); + return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{self})!; } } } @@ -28275,7 +28275,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.PythonSelf [JsiiProperty(name: "self", typeJson: "{\\"primitive\\":\\"string\\"}")] public string Self { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -28293,7 +28293,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ReferenceEnumFromScopedPackage), fullyQualifiedName: "jsii-calc.ReferenceEnumFromScopedPackage")] public class ReferenceEnumFromScopedPackage : DeputyBase { - public ReferenceEnumFromScopedPackage(): base(new DeputyProps(System.Array.Empty())) + public ReferenceEnumFromScopedPackage(): base(new DeputyProps(System.Array.Empty())) { } @@ -28350,7 +28350,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.ReturnsPrivateImplementationOfInterface), fullyQualifiedName: "jsii-calc.ReturnsPrivateImplementationOfInterface")] public class ReturnsPrivateImplementationOfInterface : DeputyBase { - public ReturnsPrivateImplementationOfInterface(): base(new DeputyProps(System.Array.Empty())) + public ReturnsPrivateImplementationOfInterface(): base(new DeputyProps(System.Array.Empty())) { } @@ -28371,7 +28371,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "privateImplementation", typeJson: "{\\"fqn\\":\\"jsii-calc.IPrivatelyImplemented\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.IPrivatelyImplemented PrivateImplementation { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -28438,7 +28438,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "stringProp", typeJson: "{\\"primitive\\":\\"string\\"}")] public string StringProp { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiOptional] @@ -28496,7 +28496,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.RuntimeTypeChecking), fullyQualifiedName: "jsii-calc.RuntimeTypeChecking")] public class RuntimeTypeChecking : DeputyBase { - public RuntimeTypeChecking(): base(new DeputyProps(System.Array.Empty())) + public RuntimeTypeChecking(): base(new DeputyProps(System.Array.Empty())) { } @@ -28588,7 +28588,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "deeperRequiredProp", typeJson: "{\\"primitive\\":\\"string\\"}")] public string DeeperRequiredProp { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } /// It's long, but you'll almost never pass it. @@ -28619,7 +28619,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SingleInstanceTwoTypes), fullyQualifiedName: "jsii-calc.SingleInstanceTwoTypes")] public class SingleInstanceTwoTypes : DeputyBase { - public SingleInstanceTwoTypes(): base(new DeputyProps(System.Array.Empty())) + public SingleInstanceTwoTypes(): base(new DeputyProps(System.Array.Empty())) { } @@ -28640,13 +28640,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "interface1", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.InbetweenClass\\"}}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.InbetweenClass Interface1() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "interface2", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.IPublicInterface\\"}}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.IPublicInterface Interface2() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } } } @@ -28684,7 +28684,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "isSingletonInt", returnsJson: "{\\"type\\":{\\"primitive\\":\\"boolean\\"}}", parametersJson: "[{\\"name\\":\\"value\\",\\"type\\":{\\"primitive\\":\\"number\\"}}]")] public virtual bool IsSingletonInt(double @value) { - return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{@value}); + return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{@value})!; } } } @@ -28742,7 +28742,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "isSingletonString", returnsJson: "{\\"type\\":{\\"primitive\\":\\"boolean\\"}}", parametersJson: "[{\\"name\\":\\"value\\",\\"type\\":{\\"primitive\\":\\"string\\"}}]")] public virtual bool IsSingletonString(string @value) { - return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{@value}); + return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{@value})!; } } } @@ -28816,13 +28816,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "property", typeJson: "{\\"primitive\\":\\"string\\"}")] public string Property { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiProperty(name: "yetAnoterOne", typeJson: "{\\"primitive\\":\\"boolean\\"}")] public bool YetAnoterOne { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -28839,7 +28839,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SomeTypeJsii976), fullyQualifiedName: "jsii-calc.SomeTypeJsii976")] public class SomeTypeJsii976 : DeputyBase { - public SomeTypeJsii976(): base(new DeputyProps(System.Array.Empty())) + public SomeTypeJsii976(): base(new DeputyProps(System.Array.Empty())) { } @@ -28860,13 +28860,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "returnAnonymous", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}")] public static object ReturnAnonymous() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.SomeTypeJsii976), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.SomeTypeJsii976), new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "returnReturn", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.IReturnJsii976\\"}}")] public static Amazon.JSII.Tests.CalculatorNamespace.IReturnJsii976 ReturnReturn() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.SomeTypeJsii976), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.SomeTypeJsii976), new System.Type[]{}, new object[]{})!; } } } @@ -28910,7 +28910,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "readonlyProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string ReadonlyProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiOptional] @@ -28985,7 +28985,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "readonlyProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public string ReadonlyProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -29023,13 +29023,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "canAccessStaticContext", returnsJson: "{\\"type\\":{\\"primitive\\":\\"boolean\\"}}")] public static bool CanAccessStaticContext() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.StaticContext), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.StaticContext), new System.Type[]{}, new object[]{})!; } [JsiiProperty(name: "staticVariable", typeJson: "{\\"primitive\\":\\"boolean\\"}")] public static bool StaticVariable { - get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.StaticContext)); + get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.StaticContext))!; set => SetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.StaticContext), value); } } @@ -29047,7 +29047,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics), fullyQualifiedName: "jsii-calc.Statics", parametersJson: "[{\\"name\\":\\"value\\",\\"type\\":{\\"primitive\\":\\"string\\"}}]")] public class Statics : DeputyBase { - public Statics(string @value): base(new DeputyProps(new object[]{@value})) + public Statics(string @value): base(new DeputyProps(new object?[]{@value})) { } @@ -29070,13 +29070,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "staticMethod", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"docs\\":{\\"summary\\":\\"The name of the person to say hello to.\\"},\\"name\\":\\"name\\",\\"type\\":{\\"primitive\\":\\"string\\"}}]")] public static string StaticMethod(string name) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics), new System.Type[]{typeof(string)}, new object[]{name}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics), new System.Type[]{typeof(string)}, new object[]{name})!; } [JsiiMethod(name: "justMethod", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] public virtual string JustMethod() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } /// Constants may also use all-caps. @@ -29085,14 +29085,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace { get; } - = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics)); + = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics))!; [JsiiProperty(name: "ConstObj", typeJson: "{\\"fqn\\":\\"jsii-calc.DoubleTrouble\\"}")] public static Amazon.JSII.Tests.CalculatorNamespace.DoubleTrouble ConstObj { get; } - = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics)); + = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics))!; /// Jsdocs for static property. [JsiiProperty(name: "Foo", typeJson: "{\\"primitive\\":\\"string\\"}")] @@ -29100,7 +29100,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace { get; } - = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics)); + = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics))!; /// Constants can also use camelCase. [JsiiProperty(name: "zooBar", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"map\\"}}")] @@ -29108,7 +29108,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace { get; } - = GetStaticProperty>(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics)); + = GetStaticProperty>(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics))!; /// Jsdocs for static getter. /// @@ -29117,21 +29117,21 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "instance", typeJson: "{\\"fqn\\":\\"jsii-calc.Statics\\"}")] public static Amazon.JSII.Tests.CalculatorNamespace.Statics Instance { - get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics)); + get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics))!; set => SetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics), value); } [JsiiProperty(name: "nonConstStatic", typeJson: "{\\"primitive\\":\\"number\\"}")] public static double NonConstStatic { - get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics)); + get => GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics))!; set => SetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Statics), value); } [JsiiProperty(name: "value", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string Value { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -29170,7 +29170,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.StripInternal), fullyQualifiedName: "jsii-calc.StripInternal")] public class StripInternal : DeputyBase { - public StripInternal(): base(new DeputyProps(System.Array.Empty())) + public StripInternal(): base(new DeputyProps(System.Array.Empty())) { } @@ -29191,7 +29191,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "youSeeMe", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string YouSeeMe { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } } @@ -29257,7 +29257,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "requiredString", typeJson: "{\\"primitive\\":\\"string\\"}")] public string RequiredString { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiOptional] @@ -29336,7 +29336,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "requiredString", typeJson: "{\\"primitive\\":\\"string\\"}")] public string RequiredString { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiOptional] @@ -29413,7 +29413,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "scope", typeJson: "{\\"primitive\\":\\"string\\"}")] public string Scope { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiOptional] @@ -29438,7 +29438,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.StructPassing), fullyQualifiedName: "jsii-calc.StructPassing")] public class StructPassing : DeputyBase { - public StructPassing(): base(new DeputyProps(System.Array.Empty())) + public StructPassing(): base(new DeputyProps(System.Array.Empty())) { } @@ -29459,13 +29459,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "howManyVarArgsDidIPass", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", parametersJson: "[{\\"name\\":\\"_positional\\",\\"type\\":{\\"primitive\\":\\"number\\"}},{\\"name\\":\\"inputs\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.TopLevelStruct\\"},\\"variadic\\":true}]")] public static double HowManyVarArgsDidIPass(double positional, params Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct[] inputs) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.StructPassing), new System.Type[]{typeof(double), typeof(Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct[])}, new object[]{positional, inputs}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.StructPassing), new System.Type[]{typeof(double), typeof(Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct[])}, new object[]{positional, inputs})!; } [JsiiMethod(name: "roundTrip", returnsJson: "{\\"type\\":{\\"fqn\\":\\"jsii-calc.TopLevelStruct\\"}}", parametersJson: "[{\\"name\\":\\"_positional\\",\\"type\\":{\\"primitive\\":\\"number\\"}},{\\"name\\":\\"input\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.TopLevelStruct\\"}}]")] public static Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct RoundTrip(double positional, Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct input) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.StructPassing), new System.Type[]{typeof(double), typeof(Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct)}, new object[]{positional, input}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.StructPassing), new System.Type[]{typeof(double), typeof(Amazon.JSII.Tests.CalculatorNamespace.ITopLevelStruct)}, new object[]{positional, input})!; } } } @@ -29499,13 +29499,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "isStructA", returnsJson: "{\\"type\\":{\\"primitive\\":\\"boolean\\"}}", parametersJson: "[{\\"name\\":\\"struct\\",\\"type\\":{\\"union\\":{\\"types\\":[{\\"fqn\\":\\"jsii-calc.StructA\\"},{\\"fqn\\":\\"jsii-calc.StructB\\"}]}}}]")] public static bool IsStructA(object @struct) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.StructUnionConsumer), new System.Type[]{typeof(object)}, new object[]{@struct}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.StructUnionConsumer), new System.Type[]{typeof(object)}, new object[]{@struct})!; } [JsiiMethod(name: "isStructB", returnsJson: "{\\"type\\":{\\"primitive\\":\\"boolean\\"}}", parametersJson: "[{\\"name\\":\\"struct\\",\\"type\\":{\\"union\\":{\\"types\\":[{\\"fqn\\":\\"jsii-calc.StructA\\"},{\\"fqn\\":\\"jsii-calc.StructB\\"}]}}}]")] public static bool IsStructB(object @struct) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.StructUnionConsumer), new System.Type[]{typeof(object)}, new object[]{@struct}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.StructUnionConsumer), new System.Type[]{typeof(object)}, new object[]{@struct})!; } } } @@ -29576,7 +29576,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "default", typeJson: "{\\"primitive\\":\\"string\\"}")] public string Default { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiOptional] @@ -29664,7 +29664,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.BackReferences [JsiiProperty(name: "reference", typeJson: "{\\"fqn\\":\\"jsii-calc.submodule.MyClass\\"}")] public Amazon.JSII.Tests.CalculatorNamespace.Submodule.MyClass Reference { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -29789,7 +29789,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.InnerClass), fullyQualifiedName: "jsii-calc.submodule.child.InnerClass")] public class InnerClass : DeputyBase { - public InnerClass(): base(new DeputyProps(System.Array.Empty())) + public InnerClass(): base(new DeputyProps(System.Array.Empty())) { } @@ -29812,7 +29812,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child { get; } - = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.InnerClass)); + = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.InnerClass))!; } } @@ -29871,7 +29871,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child [JsiiProperty(name: "prop", typeJson: "{\\"fqn\\":\\"jsii-calc.submodule.child.SomeEnum\\"}")] public Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.SomeEnum Prop { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -29892,7 +29892,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.OuterClass), fullyQualifiedName: "jsii-calc.submodule.child.OuterClass")] public class OuterClass : DeputyBase { - public OuterClass(): base(new DeputyProps(System.Array.Empty())) + public OuterClass(): base(new DeputyProps(System.Array.Empty())) { } @@ -29913,7 +29913,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child [JsiiProperty(name: "innerClass", typeJson: "{\\"fqn\\":\\"jsii-calc.submodule.child.InnerClass\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.InnerClass InnerClass { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -29978,7 +29978,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child [JsiiProperty(name: "prop", typeJson: "{\\"fqn\\":\\"jsii-calc.submodule.child.SomeEnum\\"}")] public Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.SomeEnum Prop { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -30025,7 +30025,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child [JsiiProperty(name: "bool", typeJson: "{\\"primitive\\":\\"boolean\\"}")] public bool Bool { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -30060,7 +30060,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.Isolated [JsiiMethod(name: "method", returnsJson: "{\\"type\\":{\\"primitive\\":\\"boolean\\"}}", parametersJson: "[{\\"name\\":\\"props\\",\\"optional\\":true,\\"type\\":{\\"fqn\\":\\"jsii-calc.submodule.child.KwargsProps\\"}}]")] public static bool Method(Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.IKwargsProps? props = null) { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.Isolated.Kwargs), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.IKwargsProps)}, new object?[]{props}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.Isolated.Kwargs), new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.IKwargsProps)}, new object?[]{props})!; } } } @@ -30077,7 +30077,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Submodule.MyClass), fullyQualifiedName: "jsii-calc.submodule.MyClass", parametersJson: "[{\\"name\\":\\"props\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.submodule.child.SomeStruct\\"}}]")] public class MyClass : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.DeeplyNested.INamespaced { - public MyClass(Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.ISomeStruct props): base(new DeputyProps(new object[]{props})) + public MyClass(Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.ISomeStruct props): base(new DeputyProps(new object?[]{props})) { } @@ -30098,25 +30098,25 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule [JsiiProperty(name: "awesomeness", typeJson: "{\\"fqn\\":\\"jsii-calc.submodule.child.Awesomeness\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.Awesomeness Awesomeness { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiProperty(name: "definedAt", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string DefinedAt { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiProperty(name: "goodness", typeJson: "{\\"fqn\\":\\"jsii-calc.submodule.child.Goodness\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.Goodness Goodness { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiProperty(name: "props", typeJson: "{\\"fqn\\":\\"jsii-calc.submodule.child.SomeStruct\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.ISomeStruct Props { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiOptional] @@ -30168,7 +30168,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule.Deeply [JsiiProperty(name: "definedAt", typeJson: "{\\"primitive\\":\\"string\\"}")] public string DefinedAt { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -30202,7 +30202,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule [JsiiProperty(name: "definedAt", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string DefinedAt { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiProperty(name: "goodness", typeJson: "{\\"fqn\\":\\"jsii-calc.submodule.child.Goodness\\"}")] @@ -30232,7 +30232,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace.Submodule.NestedSubmodule [JsiiProperty(name: "goodness", typeJson: "{\\"fqn\\":\\"jsii-calc.submodule.child.Goodness\\"}")] public override Amazon.JSII.Tests.CalculatorNamespace.Submodule.Child.Goodness Goodness { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -30250,7 +30250,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Sum), fullyQualifiedName: "jsii-calc.Sum")] public class Sum : Amazon.JSII.Tests.CalculatorNamespace.Composition.CompositeOperation { - public Sum(): base(new DeputyProps(System.Array.Empty())) + public Sum(): base(new DeputyProps(System.Array.Empty())) { } @@ -30275,14 +30275,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "expression", typeJson: "{\\"fqn\\":\\"@scope/jsii-calc-lib.NumericValue\\"}")] public override Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.NumericValue Expression { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } /// The parts to sum. [JsiiProperty(name: "parts", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.NumericValue\\"},\\"kind\\":\\"array\\"}}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.NumericValue[] Parts { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } } @@ -30326,13 +30326,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "id", typeJson: "{\\"primitive\\":\\"number\\"}")] public override double Id { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiProperty(name: "rest", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"string\\"},\\"kind\\":\\"array\\"}}")] public virtual string[] Rest { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -30393,7 +30393,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "bar", typeJson: "{\\"primitive\\":\\"number\\"}")] public double Bar { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } /// An \`id\` field here is terrible API design, because the constructor of \`SupportsNiceJavaBuilder\` already has a parameter named \`id\`. @@ -30424,7 +30424,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace { /// some identifier of your choice. /// some properties. - public SupportsNiceJavaBuilderWithRequiredProps(double id, Amazon.JSII.Tests.CalculatorNamespace.ISupportsNiceJavaBuilderProps props): base(new DeputyProps(new object[]{id, props})) + public SupportsNiceJavaBuilderWithRequiredProps(double id, Amazon.JSII.Tests.CalculatorNamespace.ISupportsNiceJavaBuilderProps props): base(new DeputyProps(new object?[]{id, props})) { } @@ -30445,14 +30445,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "bar", typeJson: "{\\"primitive\\":\\"number\\"}")] public virtual double Bar { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } /// some identifier of your choice. [JsiiProperty(name: "id", typeJson: "{\\"primitive\\":\\"number\\"}")] public virtual double Id { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiOptional] @@ -30476,7 +30476,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.SyncVirtualMethods), fullyQualifiedName: "jsii-calc.SyncVirtualMethods")] public class SyncVirtualMethods : DeputyBase { - public SyncVirtualMethods(): base(new DeputyProps(System.Array.Empty())) + public SyncVirtualMethods(): base(new DeputyProps(System.Array.Empty())) { } @@ -30497,13 +30497,13 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "callerIsAsync", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", isAsync: true)] public virtual double CallerIsAsync() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "callerIsMethod", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}")] public virtual double CallerIsMethod() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "modifyOtherProperty", parametersJson: "[{\\"name\\":\\"value\\",\\"type\\":{\\"primitive\\":\\"string\\"}}]")] @@ -30521,31 +30521,31 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "readA", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}")] public virtual double ReadA() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "retrieveOtherProperty", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] public virtual string RetrieveOtherProperty() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "retrieveReadOnlyProperty", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] public virtual string RetrieveReadOnlyProperty() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "retrieveValueOfTheProperty", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] public virtual string RetrieveValueOfTheProperty() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "virtualMethod", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", parametersJson: "[{\\"name\\":\\"n\\",\\"type\\":{\\"primitive\\":\\"number\\"}}]")] public virtual double VirtualMethod(double n) { - return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{n}); + return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{n})!; } [JsiiMethod(name: "writeA", parametersJson: "[{\\"name\\":\\"value\\",\\"type\\":{\\"primitive\\":\\"number\\"}}]")] @@ -30557,41 +30557,41 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "readonlyProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string ReadonlyProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiProperty(name: "a", typeJson: "{\\"primitive\\":\\"number\\"}")] public virtual double A { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } [JsiiProperty(name: "callerIsProperty", typeJson: "{\\"primitive\\":\\"number\\"}")] public virtual double CallerIsProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } [JsiiProperty(name: "otherProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string OtherProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } [JsiiProperty(name: "theProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string TheProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } [JsiiProperty(name: "valueOfOtherProperty", typeJson: "{\\"primitive\\":\\"string\\"}")] public virtual string ValueOfOtherProperty { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; set => SetInstanceProperty(value); } } @@ -30609,7 +30609,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.Thrower), fullyQualifiedName: "jsii-calc.Thrower")] public class Thrower : DeputyBase { - public Thrower(): base(new DeputyProps(System.Array.Empty())) + public Thrower(): base(new DeputyProps(System.Array.Empty())) { } @@ -30696,14 +30696,14 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "required", typeJson: "{\\"primitive\\":\\"string\\"}")] public string Required { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } /// A union to really stress test our serialization. [JsiiProperty(name: "secondLevel", typeJson: "{\\"union\\":{\\"types\\":[{\\"primitive\\":\\"number\\"},{\\"fqn\\":\\"jsii-calc.SecondLevelStruct\\"}]}}")] public object SecondLevel { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } /// You don't have to pass this. @@ -30750,7 +30750,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "mode", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}")] public static double Mode() { - return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.UmaskCheck), new System.Type[]{}, new object[]{}); + return InvokeStaticMethod(typeof(Amazon.JSII.Tests.CalculatorNamespace.UmaskCheck), new System.Type[]{}, new object[]{})!; } } } @@ -30768,7 +30768,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UnaryOperation), fullyQualifiedName: "jsii-calc.UnaryOperation", parametersJson: "[{\\"name\\":\\"operand\\",\\"type\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.NumericValue\\"}}]")] public abstract class UnaryOperation : Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.Operation { - protected UnaryOperation(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.NumericValue operand): base(new DeputyProps(new object[]{operand})) + protected UnaryOperation(Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.NumericValue operand): base(new DeputyProps(new object?[]{operand})) { } @@ -30789,7 +30789,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "operand", typeJson: "{\\"fqn\\":\\"@scope/jsii-calc-lib.NumericValue\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.LibNamespace.NumericValue Operand { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -30819,7 +30819,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [System.Obsolete()] public override double Value { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } /// (deprecated) String representation of the value. @@ -30830,7 +30830,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [System.Obsolete()] public override string ToString() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } } } @@ -30885,7 +30885,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "bar", typeJson: "{\\"union\\":{\\"types\\":[{\\"primitive\\":\\"string\\"},{\\"primitive\\":\\"number\\"},{\\"fqn\\":\\"jsii-calc.AllTypes\\"}]}}")] public object Bar { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } [JsiiOptional] @@ -30910,7 +30910,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UpcasingReflectable), fullyQualifiedName: "jsii-calc.UpcasingReflectable", parametersJson: "[{\\"name\\":\\"delegate\\",\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"any\\"},\\"kind\\":\\"map\\"}}}]")] public class UpcasingReflectable : DeputyBase, Amazon.JSII.Tests.CustomSubmoduleName.IReflectable { - public UpcasingReflectable(System.Collections.Generic.IDictionary @delegate): base(new DeputyProps(new object[]{@delegate})) + public UpcasingReflectable(System.Collections.Generic.IDictionary @delegate): base(new DeputyProps(new object?[]{@delegate})) { } @@ -30933,12 +30933,12 @@ namespace Amazon.JSII.Tests.CalculatorNamespace { get; } - = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.UpcasingReflectable)); + = GetStaticProperty(typeof(Amazon.JSII.Tests.CalculatorNamespace.UpcasingReflectable))!; [JsiiProperty(name: "entries", typeJson: "{\\"collection\\":{\\"elementtype\\":{\\"fqn\\":\\"@scope/jsii-calc-lib.submodule.ReflectableEntry\\"},\\"kind\\":\\"array\\"}}")] public virtual Amazon.JSII.Tests.CustomSubmoduleName.IReflectableEntry[] Entries { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -30955,7 +30955,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UseBundledDependency), fullyQualifiedName: "jsii-calc.UseBundledDependency")] public class UseBundledDependency : DeputyBase { - public UseBundledDependency(): base(new DeputyProps(System.Array.Empty())) + public UseBundledDependency(): base(new DeputyProps(System.Array.Empty())) { } @@ -30976,7 +30976,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "value", returnsJson: "{\\"type\\":{\\"primitive\\":\\"any\\"}}")] public virtual object Value() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } } } @@ -30994,7 +30994,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UseCalcBase), fullyQualifiedName: "jsii-calc.UseCalcBase")] public class UseCalcBase : DeputyBase { - public UseCalcBase(): base(new DeputyProps(System.Array.Empty())) + public UseCalcBase(): base(new DeputyProps(System.Array.Empty())) { } @@ -31015,7 +31015,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "hello", returnsJson: "{\\"type\\":{\\"fqn\\":\\"@scope/jsii-calc-base.Base\\"}}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.BaseNamespace.Base Hello() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } } } @@ -31032,7 +31032,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UsesInterfaceWithProperties), fullyQualifiedName: "jsii-calc.UsesInterfaceWithProperties", parametersJson: "[{\\"name\\":\\"obj\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.IInterfaceWithProperties\\"}}]")] public class UsesInterfaceWithProperties : DeputyBase { - public UsesInterfaceWithProperties(Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithProperties obj): base(new DeputyProps(new object[]{obj})) + public UsesInterfaceWithProperties(Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithProperties obj): base(new DeputyProps(new object?[]{obj})) { } @@ -31053,25 +31053,25 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "justRead", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}")] public virtual string JustRead() { - return InvokeInstanceMethod(new System.Type[]{}, new object[]{}); + return InvokeInstanceMethod(new System.Type[]{}, new object[]{})!; } [JsiiMethod(name: "readStringAndNumber", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"name\\":\\"ext\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.IInterfaceWithPropertiesExtension\\"}}]")] public virtual string ReadStringAndNumber(Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithPropertiesExtension ext) { - return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithPropertiesExtension)}, new object[]{ext}); + return InvokeInstanceMethod(new System.Type[]{typeof(Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithPropertiesExtension)}, new object[]{ext})!; } [JsiiMethod(name: "writeAndRead", returnsJson: "{\\"type\\":{\\"primitive\\":\\"string\\"}}", parametersJson: "[{\\"name\\":\\"value\\",\\"type\\":{\\"primitive\\":\\"string\\"}}]")] public virtual string WriteAndRead(string @value) { - return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{@value}); + return InvokeInstanceMethod(new System.Type[]{typeof(string)}, new object[]{@value})!; } [JsiiProperty(name: "obj", typeJson: "{\\"fqn\\":\\"jsii-calc.IInterfaceWithProperties\\"}")] public virtual Amazon.JSII.Tests.CalculatorNamespace.IInterfaceWithProperties Obj { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -31088,7 +31088,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.VariadicInvoker), fullyQualifiedName: "jsii-calc.VariadicInvoker", parametersJson: "[{\\"name\\":\\"method\\",\\"type\\":{\\"fqn\\":\\"jsii-calc.VariadicMethod\\"}}]")] public class VariadicInvoker : DeputyBase { - public VariadicInvoker(Amazon.JSII.Tests.CalculatorNamespace.VariadicMethod method): base(new DeputyProps(new object[]{method})) + public VariadicInvoker(Amazon.JSII.Tests.CalculatorNamespace.VariadicMethod method): base(new DeputyProps(new object?[]{method})) { } @@ -31109,7 +31109,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "asArray", returnsJson: "{\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"number\\"},\\"kind\\":\\"array\\"}}}", parametersJson: "[{\\"name\\":\\"values\\",\\"type\\":{\\"primitive\\":\\"number\\"},\\"variadic\\":true}]")] public virtual double[] AsArray(params double[] values) { - return InvokeInstanceMethod(new System.Type[]{typeof(double[])}, new object[]{values}); + return InvokeInstanceMethod(new System.Type[]{typeof(double[])}, new object[]{values})!; } } } @@ -31127,7 +31127,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace public class VariadicMethod : DeputyBase { /// a prefix that will be use for all values returned by \`#asArray\`. - public VariadicMethod(params double[] prefix): base(new DeputyProps(new object[]{prefix})) + public VariadicMethod(params double[] prefix): base(new DeputyProps(new object?[]{prefix})) { } @@ -31150,7 +31150,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "asArray", returnsJson: "{\\"type\\":{\\"collection\\":{\\"elementtype\\":{\\"primitive\\":\\"number\\"},\\"kind\\":\\"array\\"}}}", parametersJson: "[{\\"docs\\":{\\"summary\\":\\"the first element of the array to be returned (after the \`prefix\` provided at construction time).\\"},\\"name\\":\\"first\\",\\"type\\":{\\"primitive\\":\\"number\\"}},{\\"docs\\":{\\"summary\\":\\"other elements to be included in the array.\\"},\\"name\\":\\"others\\",\\"type\\":{\\"primitive\\":\\"number\\"},\\"variadic\\":true}]")] public virtual double[] AsArray(double first, params double[] others) { - return InvokeInstanceMethod(new System.Type[]{typeof(double), typeof(double[])}, new object[]{first, others}); + return InvokeInstanceMethod(new System.Type[]{typeof(double), typeof(double[])}, new object[]{first, others})!; } } } @@ -31167,7 +31167,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.VirtualMethodPlayground), fullyQualifiedName: "jsii-calc.VirtualMethodPlayground")] public class VirtualMethodPlayground : DeputyBase { - public VirtualMethodPlayground(): base(new DeputyProps(System.Array.Empty())) + public VirtualMethodPlayground(): base(new DeputyProps(System.Array.Empty())) { } @@ -31188,31 +31188,31 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiMethod(name: "overrideMeAsync", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", parametersJson: "[{\\"name\\":\\"index\\",\\"type\\":{\\"primitive\\":\\"number\\"}}]", isAsync: true)] public virtual double OverrideMeAsync(double index) { - return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{index}); + return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{index})!; } [JsiiMethod(name: "overrideMeSync", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", parametersJson: "[{\\"name\\":\\"index\\",\\"type\\":{\\"primitive\\":\\"number\\"}}]")] public virtual double OverrideMeSync(double index) { - return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{index}); + return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{index})!; } [JsiiMethod(name: "parallelSumAsync", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", parametersJson: "[{\\"name\\":\\"count\\",\\"type\\":{\\"primitive\\":\\"number\\"}}]", isAsync: true)] public virtual double ParallelSumAsync(double count) { - return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{count}); + return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{count})!; } [JsiiMethod(name: "serialSumAsync", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", parametersJson: "[{\\"name\\":\\"count\\",\\"type\\":{\\"primitive\\":\\"number\\"}}]", isAsync: true)] public virtual double SerialSumAsync(double count) { - return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{count}); + return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{count})!; } [JsiiMethod(name: "sumSync", returnsJson: "{\\"type\\":{\\"primitive\\":\\"number\\"}}", parametersJson: "[{\\"name\\":\\"count\\",\\"type\\":{\\"primitive\\":\\"number\\"}}]")] public virtual double SumSync(double count) { - return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{count}); + return InvokeInstanceMethod(new System.Type[]{typeof(double)}, new object[]{count})!; } } } @@ -31237,7 +31237,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.VoidCallback), fullyQualifiedName: "jsii-calc.VoidCallback")] public abstract class VoidCallback : DeputyBase { - protected VoidCallback(): base(new DeputyProps(System.Array.Empty())) + protected VoidCallback(): base(new DeputyProps(System.Array.Empty())) { } @@ -31268,7 +31268,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "methodWasCalled", typeJson: "{\\"primitive\\":\\"boolean\\"}")] public virtual bool MethodWasCalled { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } @@ -31339,7 +31339,7 @@ namespace Amazon.JSII.Tests.CalculatorNamespace [JsiiProperty(name: "success", typeJson: "{\\"primitive\\":\\"boolean\\"}")] public virtual bool Success { - get => GetInstanceProperty(); + get => GetInstanceProperty()!; } } } From 7dbdbebe336bde2d02de598dc21d86d469a6abf0 Mon Sep 17 00:00:00 2001 From: Romain Marcadier Date: Mon, 5 Oct 2020 17:50:58 +0200 Subject: [PATCH 10/16] feat(go): dynamically load npm packages as needed (#2067) This PR adds the necessary hooks in order to send the correct "load" request to the jsii kernel whenver required: - When a class from the current library is instantiated - When a static method is called - When a static property is accessed This passes the built-in tarball data slice to the go runtime library, which takes care of storing it in a temporary file before making the kernel request; the temporary file is then cleaned up. Co-authored-by: Hsing-Hui Hsu Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- .../@jsii/go-runtime/jsii-experimental/api.go | 5 +- .../go-runtime/jsii-experimental/runtime.go | 36 ++ packages/jsii-pacmak/lib/targets/go.ts | 82 ++-- .../jsii-pacmak/lib/targets/go/package.ts | 62 ++- .../jsii-pacmak/lib/targets/go/runtime.ts | 15 +- .../jsii-pacmak/lib/targets/go/types/class.ts | 2 +- .../lib/targets/go/types/type-member.ts | 13 +- .../__snapshots__/target-go.test.ts.snap | 358 +++++++++++++++++- .../test/generated-code/harness.ts | 7 +- 9 files changed, 505 insertions(+), 75 deletions(-) diff --git a/packages/@jsii/go-runtime/jsii-experimental/api.go b/packages/@jsii/go-runtime/jsii-experimental/api.go index f8c09b26bc..ef81e3e077 100644 --- a/packages/@jsii/go-runtime/jsii-experimental/api.go +++ b/packages/@jsii/go-runtime/jsii-experimental/api.go @@ -292,8 +292,11 @@ type ErrorResponse struct { Stack *string `json:stack` } +// Custom unmarshalling implementation for response structs. Creating new types +// is required in order to avoid infinite recursion. func (r *LoadResponse) UnmarshalJSON(data []byte) error { - return unmarshalKernelResponse(data, r) + type response LoadResponse + return unmarshalKernelResponse(data, (*response)(r)) } // Custom unmarshaling for kernel responses, checks for presence of `error` key on json and returns if present diff --git a/packages/@jsii/go-runtime/jsii-experimental/runtime.go b/packages/@jsii/go-runtime/jsii-experimental/runtime.go index 2ce08ffbdd..1e8fd385b0 100644 --- a/packages/@jsii/go-runtime/jsii-experimental/runtime.go +++ b/packages/@jsii/go-runtime/jsii-experimental/runtime.go @@ -1,5 +1,41 @@ package jsii +import ( + "fmt" + "io/ioutil" + "os" + "regexp" +) + +// Load ensures a npm package is loaded in the jsii kernel. +func Load(name string, version string, tarball []byte) { + client := getClient() + + tmpfile, err := ioutil.TempFile("", fmt.Sprintf( + "%s-%s.*.tgz", + regexp.MustCompile("[^a-zA-Z0-9_-]").ReplaceAllString(name, "-"), + version, + )) + if err != nil { + panic(err) + } + defer os.Remove(tmpfile.Name()) + if _, err := tmpfile.Write(tarball); err != nil { + panic(err) + } + tmpfile.Close() + + _, err = client.load(LoadRequest{ + Api: "load", + Name: name, + Version: version, + Tarball: tmpfile.Name(), + }) + if err != nil { + panic(err) + } +} + // Close finalizes the runtime process, signalling the end of the execution to // the jsii kernel process, and waiting for graceful termination. The best // practice is to defer call thins at the beginning of the "main" function. diff --git a/packages/jsii-pacmak/lib/targets/go.ts b/packages/jsii-pacmak/lib/targets/go.ts index 99178d8a4d..c6f28fe0a2 100644 --- a/packages/jsii-pacmak/lib/targets/go.ts +++ b/packages/jsii-pacmak/lib/targets/go.ts @@ -1,10 +1,10 @@ +import { CodeMaker } from 'codemaker'; import * as fs from 'fs-extra'; import * as path from 'path'; -import { CodeMaker } from 'codemaker'; import { Documentation } from './go/documentation'; import { Assembly } from 'jsii-reflect'; import { Rosetta } from 'jsii-rosetta'; -import { RootPackage } from './go/package'; +import { JSII_INIT_PACKAGE, RootPackage } from './go/package'; import { IGenerator } from '../generator'; import { Target, TargetOptions } from '../target'; import { goPackageName } from './go/util'; @@ -58,61 +58,37 @@ class GoGenerator implements IGenerator { } public async save(outDir: string, tarball: string): Promise { - const output = path.join(outDir, goPackageName(this.assembly.name)); - const fullPath = path.resolve( - path.join(output, '_jsii', this.getAssemblyFileName()), - ); - await fs.mkdirp(path.dirname(fullPath)); - await fs.copy(tarball, fullPath, { overwrite: true }); + await this.embedTarball(tarball); + const output = path.join(outDir, goPackageName(this.assembly.name)); await this.code.save(output); } - private getAssemblyFileName() { - let name = this.assembly.name; - const parts = name.split('/'); - - if (parts.length === 1) { - name = parts[0]; - } else if (parts.length === 2 && parts[0].startsWith('@')) { - name = parts[1]; - } else { - throw new Error( - 'Malformed assembly name. Expecting either or @/', - ); + private async embedTarball(source: string) { + const data = await fs.readFile(source); + const bytesPerLine = 16; + + const file = path.join(JSII_INIT_PACKAGE, 'tarball.embedded.go'); + this.code.openFile(file); + this.code.line(`package ${JSII_INIT_PACKAGE}`); + this.code.line(); + this.code.open('var tarball = []byte{'); + for (let i = 0; i < data.byteLength; i += bytesPerLine) { + const encoded = Array.from(data.slice(i, i + bytesPerLine)) + .map((byte) => `0x${byte.toString(16).padStart(2, '0')}`) + .join(', '); + this.code.line(`${encoded},`); } - - return `${name}@${this.assembly.version}.jsii.tgz`; + this.code.close('}'); + this.code.line(); + // Check the byte slice has the expect size + this.code.open('func init() {'); + this.code.open(`if len(tarball) != ${data.byteLength} {`); + this.code.line( + `panic("Tarball data does not have expected length (${data.byteLength} bytes)")`, + ); + this.code.close('}'); + this.code.close('}'); + this.code.closeFile(file); } } - -// TODO: Replace with -// async function* encodedSlices(path: string, sliceSize = 16) { -// const slice = Buffer.alloc(sliceSize); - -// const fd = await fs.open(path, fs.constants.O_RDONLY); - -// while (true) { -// // eslint-disable-next-line no-await-in-loop -// const { bytesRead } = await fs.read(fd, slice, 0, slice.length, null); -// if (bytesRead === 0) { -// return fs.close(fd); -// } -// yield inGroupsOf(slice.toString('hex', 0, bytesRead - 1), 2) -// .map((byte) => `0x${byte}`) -// .join(', '); -// } - -// function inGroupsOf(str: string, count: number) { -// if (str.length % count !== 0) { -// throw new Error( -// `Expected a string with a multiple of ${count} characters, but it has ${str.length}`, -// ); -// } -// const result = new Array(); -// for (let i = 0; i < str.length; i += count) { -// result.push(str.slice(i, i + count)); -// } -// return result; -// } -// } diff --git a/packages/jsii-pacmak/lib/targets/go/package.ts b/packages/jsii-pacmak/lib/targets/go/package.ts index ce9ebc75d9..f90392718d 100644 --- a/packages/jsii-pacmak/lib/targets/go/package.ts +++ b/packages/jsii-pacmak/lib/targets/go/package.ts @@ -1,5 +1,6 @@ import { CodeMaker } from 'codemaker'; import { Assembly } from 'jsii-reflect'; +import { join } from 'path'; import { ReadmeFile } from './readme-file'; import { Type, Submodule as JsiiSubmodule } from 'jsii-reflect'; import { EmitContext } from './emit-context'; @@ -9,6 +10,13 @@ import { findTypeInTree, goPackageName, flatMap } from './util'; // JSII go runtime module name const JSII_MODULE_NAME = 'github.com/aws-cdk/jsii/jsii-experimental'; +// Jsii initializer package name +export const JSII_INIT_PACKAGE = 'jsii'; +// Function to initialize a jsii-generated module +export const JSII_INIT_FUNC = 'Initialize'; +// Alias used for the jsii init +export const JSII_INIT_ALIAS = '_init_'; + /* * Package represents a single `.go` source file within a package. This can be the root package file or a submodule */ @@ -28,7 +36,7 @@ export abstract class Package { root?: Package, ) { this.file = `${filePath}/${packageName}.go`; - this.root = root || this; + this.root = root ?? this; this.submodules = this.submoduleSpec.map( (sm) => new InternalPackage(this.root, this, sm), ); @@ -115,6 +123,10 @@ export abstract class Package { } } + code.line( + `${JSII_INIT_ALIAS} "${this.root.moduleName}/${this.root.packageName}/${JSII_INIT_PACKAGE}"`, + ); + code.close(')'); code.line(); } @@ -160,7 +172,7 @@ export class RootPackage extends Package { public emit(context: EmitContext): void { super.emit(context); - + this.emitJsiiPackage(context); this.readme?.emit(context); } @@ -197,6 +209,52 @@ export class RootPackage extends Package { code.line(`package ${this.packageName}`); code.line(); } + + private emitJsiiPackage({ code }: EmitContext) { + const dependencies = this.packageDependencies.sort((l, r) => + l.moduleName.localeCompare(r.moduleName), + ); + + const file = join(JSII_INIT_PACKAGE, `${JSII_INIT_PACKAGE}.go`); + code.openFile(file); + code.line('package jsii'); + code.line(); + code.open('import ('); + code.line(`rt "${JSII_MODULE_NAME}"`); + code.line('"sync"'); + if (dependencies.length > 0) { + code.line('// Initialization endpoints of dependencies'); + for (const pkg of dependencies) { + code.line( + `${pkg.packageName} "${pkg.root.moduleName}/${pkg.root.packageName}/${JSII_INIT_PACKAGE}"`, + ); + } + } + code.close(')'); + code.line(); + code.line('var once sync.Once'); + code.line(); + code.line( + `// ${JSII_INIT_FUNC} performs the necessary work for the enclosing`, + ); + code.line('// module to be loaded in the jsii kernel.'); + code.open(`func ${JSII_INIT_FUNC}() {`); + code.open('once.Do(func(){'); + if (dependencies.length > 0) { + code.line('// Ensure all dependencies are initialized'); + for (const pkg of this.packageDependencies) { + code.line(`${pkg.packageName}.${JSII_INIT_FUNC}()`); + } + code.line(); + } + code.line('// Load this library into the kernel'); + code.line( + `rt.Load("${this.assembly.name}", "${this.assembly.version}", tarball)`, + ); + code.close('})'); + code.close('}'); + code.closeFile(file); + } } /* diff --git a/packages/jsii-pacmak/lib/targets/go/runtime.ts b/packages/jsii-pacmak/lib/targets/go/runtime.ts index 5ee0985377..c34abc46ee 100644 --- a/packages/jsii-pacmak/lib/targets/go/runtime.ts +++ b/packages/jsii-pacmak/lib/targets/go/runtime.ts @@ -1,5 +1,6 @@ import { CodeMaker } from 'codemaker'; import { GoClassConstructor, ClassMethod, Struct } from './types'; +import { JSII_INIT_ALIAS, JSII_INIT_FUNC } from './package'; const NOOP_RETURN_MAP: { [type: string]: string } = { float64: '0.0', @@ -15,9 +16,16 @@ function paramsString(params: string[]): string { } export class MethodCall { - public constructor(public readonly parent: ClassMethod) {} + public constructor( + public readonly parent: ClassMethod, + private readonly inStatic: boolean, + ) {} public emit(code: CodeMaker) { + if (this.inStatic) { + emitInitialization(code); + } + const name = code.toPascalCase(this.parent.name); code.open(`jsii.NoOpRequest(jsii.NoOpApiRequest {`); code.line(`Class: "${this.parent.parent.name}",`); @@ -51,6 +59,7 @@ export class ClassConstructor { public constructor(public readonly parent: GoClassConstructor) {} public emit(code: CodeMaker) { + emitInitialization(code); code.open(`jsii.NoOpRequest(jsii.NoOpApiRequest {`); code.line(`Class: "${this.parent.parent.name}",`); code.line(`Method: "Constructor",`); @@ -66,3 +75,7 @@ export class ClassConstructor { code.line(`return &${this.parent.parent.name}{}`); } } + +export function emitInitialization(code: CodeMaker) { + code.line(`${JSII_INIT_ALIAS}.${JSII_INIT_FUNC}()`); +} diff --git a/packages/jsii-pacmak/lib/targets/go/types/class.ts b/packages/jsii-pacmak/lib/targets/go/types/class.ts index 9d2f0db868..699f2d6b1f 100644 --- a/packages/jsii-pacmak/lib/targets/go/types/class.ts +++ b/packages/jsii-pacmak/lib/targets/go/types/class.ts @@ -134,7 +134,7 @@ export class ClassMethod extends GoMethod { public readonly method: Method, ) { super(parent, method); - this.runtimeCall = new MethodCall(this); + this.runtimeCall = new MethodCall(this, this.method.static); } /* emit generates method implementation on the class */ diff --git a/packages/jsii-pacmak/lib/targets/go/types/type-member.ts b/packages/jsii-pacmak/lib/targets/go/types/type-member.ts index d9e614f381..aa11ff3eb1 100644 --- a/packages/jsii-pacmak/lib/targets/go/types/type-member.ts +++ b/packages/jsii-pacmak/lib/targets/go/types/type-member.ts @@ -1,7 +1,8 @@ -import { GoClass, GoStruct, Interface, Struct, GoTypeRef } from './index'; import { toPascalCase } from 'codemaker'; -import { EmitContext } from '../emit-context'; import { Method, Parameter, Property } from 'jsii-reflect'; +import { EmitContext } from '../emit-context'; +import { GoClass, GoStruct, Interface, Struct, GoTypeRef } from './index'; +import { emitInitialization } from '../runtime'; import { substituteReservedWords } from '../util'; /* @@ -81,6 +82,10 @@ export class GoProperty implements GoTypeMember { }()${` ${this.returnType}`}`, ); + if (this.property.static) { + emitInitialization(code); + } + if (this.parent.name === this.returnType) { code.line(`return *${instanceArg}.${this.name}`); } else { @@ -99,6 +104,10 @@ export class GoProperty implements GoTypeMember { `func (${instanceArg} *${receiver}) Set${this.name}(val ${this.returnType})`, ); + if (this.property.static) { + emitInitialization(code); + } + if (this.parent.name === this.returnType) { code.line(`${instanceArg}.${this.name} = &val`); } else { 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 a0de5208c6..4a464620df 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 @@ -4,12 +4,39 @@ exports[`Generated code for "@scope/jsii-calc-base": / 1`] = ` ┗━ 📁 golang ┗━ 📁 scopejsiicalcbase - ┣━ 📁 _jsii - ┃ ┗━ 📄 jsii-calc-base@0.0.0.jsii.tgz + ┣━ 📁 jsii + ┃ ┣━ 📄 jsii.go + ┃ ┗━ 📄 tarball.embedded.go ┗━ 📄 scopejsiicalcbase.go `; -exports[`Generated code for "@scope/jsii-calc-base": /golang/scopejsiicalcbase/_jsii/jsii-calc-base@0.0.0.jsii.tgz 1`] = `golang/scopejsiicalcbase/_jsii/jsii-calc-base@0.0.0.jsii.tgz is a tarball`; +exports[`Generated code for "@scope/jsii-calc-base": /golang/scopejsiicalcbase/jsii/jsii.go 1`] = ` +package jsii + +import ( + rt "github.com/aws-cdk/jsii/jsii-experimental" + "sync" + // Initialization endpoints of dependencies + scopejsiicalcbaseofbase "github.com/aws-cdk/jsii/jsii-calc/golang/scopejsiicalcbaseofbase/jsii" +) + +var once sync.Once + +// Initialize performs the necessary work for the enclosing +// module to be loaded in the jsii kernel. +func Initialize() { + once.Do(func(){ + // Ensure all dependencies are initialized + scopejsiicalcbaseofbase.Initialize() + + // Load this library into the kernel + rt.Load("@scope/jsii-calc-base", "0.0.0", tarball) + }) +} + +`; + +exports[`Generated code for "@scope/jsii-calc-base": /golang/scopejsiicalcbase/jsii/tarball.embedded.go 1`] = `golang/scopejsiicalcbase/jsii/tarball.embedded.go embeds a tarball`; exports[`Generated code for "@scope/jsii-calc-base": /golang/scopejsiicalcbase/scopejsiicalcbase.go 1`] = ` // An example direct dependency for jsii-calc. @@ -18,6 +45,7 @@ package scopejsiicalcbase import ( "github.com/aws-cdk/jsii/jsii-experimental" "github.com/aws-cdk/jsii/jsii-calc/golang/scopejsiicalcbaseofbase" + _init_ "github.com/aws-cdk/jsii/jsii-calc/golang/scopejsiicalcbase/jsii" ) // Class interface @@ -31,6 +59,7 @@ type Base struct { } func NewBase() BaseIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Base", Method: "Constructor", @@ -81,12 +110,34 @@ exports[`Generated code for "@scope/jsii-calc-base-of-base": / 1`] = ` ┗━ 📁 golang ┗━ 📁 scopejsiicalcbaseofbase - ┣━ 📁 _jsii - ┃ ┗━ 📄 jsii-calc-base-of-base@0.0.0.jsii.tgz + ┣━ 📁 jsii + ┃ ┣━ 📄 jsii.go + ┃ ┗━ 📄 tarball.embedded.go ┗━ 📄 scopejsiicalcbaseofbase.go `; -exports[`Generated code for "@scope/jsii-calc-base-of-base": /golang/scopejsiicalcbaseofbase/_jsii/jsii-calc-base-of-base@0.0.0.jsii.tgz 1`] = `golang/scopejsiicalcbaseofbase/_jsii/jsii-calc-base-of-base@0.0.0.jsii.tgz is a tarball`; +exports[`Generated code for "@scope/jsii-calc-base-of-base": /golang/scopejsiicalcbaseofbase/jsii/jsii.go 1`] = ` +package jsii + +import ( + rt "github.com/aws-cdk/jsii/jsii-experimental" + "sync" +) + +var once sync.Once + +// Initialize performs the necessary work for the enclosing +// module to be loaded in the jsii kernel. +func Initialize() { + once.Do(func(){ + // Load this library into the kernel + rt.Load("@scope/jsii-calc-base-of-base", "0.0.0", tarball) + }) +} + +`; + +exports[`Generated code for "@scope/jsii-calc-base-of-base": /golang/scopejsiicalcbaseofbase/jsii/tarball.embedded.go 1`] = `golang/scopejsiicalcbaseofbase/jsii/tarball.embedded.go embeds a tarball`; exports[`Generated code for "@scope/jsii-calc-base-of-base": /golang/scopejsiicalcbaseofbase/scopejsiicalcbaseofbase.go 1`] = ` // An example transitive dependency for jsii-calc. @@ -94,6 +145,7 @@ package scopejsiicalcbaseofbase import ( "github.com/aws-cdk/jsii/jsii-experimental" + _init_ "github.com/aws-cdk/jsii/jsii-calc/golang/scopejsiicalcbaseofbase/jsii" ) type IVeryBaseInterface interface { @@ -109,6 +161,7 @@ type StaticConsumer struct { } func StaticConsumer_Consume(_args jsii.Any) { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "StaticConsumer", Method: "Consume", @@ -128,6 +181,7 @@ type Very struct { } func NewVery() VeryIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Very", Method: "Constructor", @@ -167,14 +221,43 @@ exports[`Generated code for "@scope/jsii-calc-lib": / 1`] = ` ┗━ 📁 golang ┗━ 📁 scopejsiicalclib - ┣━ 📁 _jsii - ┃ ┗━ 📄 jsii-calc-lib@0.0.0.jsii.tgz + ┣━ 📁 jsii + ┃ ┣━ 📄 jsii.go + ┃ ┗━ 📄 tarball.embedded.go ┣━ 📄 scopejsiicalclib.go ┗━ 📁 submodule ┗━ 📄 submodule.go `; -exports[`Generated code for "@scope/jsii-calc-lib": /golang/scopejsiicalclib/_jsii/jsii-calc-lib@0.0.0.jsii.tgz 1`] = `golang/scopejsiicalclib/_jsii/jsii-calc-lib@0.0.0.jsii.tgz is a tarball`; +exports[`Generated code for "@scope/jsii-calc-lib": /golang/scopejsiicalclib/jsii/jsii.go 1`] = ` +package jsii + +import ( + rt "github.com/aws-cdk/jsii/jsii-experimental" + "sync" + // Initialization endpoints of dependencies + scopejsiicalcbase "github.com/aws-cdk/jsii/jsii-calc/golang/scopejsiicalcbase/jsii" + scopejsiicalcbaseofbase "github.com/aws-cdk/jsii/jsii-calc/golang/scopejsiicalcbaseofbase/jsii" +) + +var once sync.Once + +// Initialize performs the necessary work for the enclosing +// module to be loaded in the jsii kernel. +func Initialize() { + once.Do(func(){ + // Ensure all dependencies are initialized + scopejsiicalcbase.Initialize() + scopejsiicalcbaseofbase.Initialize() + + // Load this library into the kernel + rt.Load("@scope/jsii-calc-lib", "0.0.0", tarball) + }) +} + +`; + +exports[`Generated code for "@scope/jsii-calc-lib": /golang/scopejsiicalclib/jsii/tarball.embedded.go 1`] = `golang/scopejsiicalclib/jsii/tarball.embedded.go embeds a tarball`; exports[`Generated code for "@scope/jsii-calc-lib": /golang/scopejsiicalclib/scopejsiicalclib.go 1`] = ` // A simple calcuator library built on JSII. @@ -184,6 +267,7 @@ import ( "github.com/aws-cdk/jsii/jsii-experimental" "github.com/aws-cdk/jsii/jsii-calc/golang/scopejsiicalcbaseofbase" "github.com/aws-cdk/jsii/jsii-calc/golang/scopejsiicalcbase" + _init_ "github.com/aws-cdk/jsii/jsii-calc/golang/scopejsiicalclib/jsii" ) // Check that enums from \\@scoped packages can be references. @@ -296,6 +380,7 @@ func (n *Number) GetDoubleValue() float64 { // Creates a Number object. func NewNumber(value float64) NumberIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Number", Method: "Constructor", @@ -353,6 +438,7 @@ func (n *NumericValue) GetValue() float64 { func NewNumericValue() NumericValueIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "NumericValue", Method: "Constructor", @@ -406,6 +492,7 @@ func (o *Operation) GetValue() float64 { func NewOperation() OperationIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Operation", Method: "Constructor", @@ -478,6 +565,7 @@ package submodule import ( "github.com/aws-cdk/jsii/jsii-experimental" + _init_ "github.com/aws-cdk/jsii/jsii-calc/golang/scopejsiicalclib/jsii" ) // Deprecated. @@ -516,6 +604,7 @@ func (n *NestedClass) GetProperty() string { func NewNestedClass() NestedClassIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "NestedClass", Method: "Constructor", @@ -585,6 +674,7 @@ type Reflector struct { } func NewReflector() ReflectorIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Reflector", Method: "Constructor", @@ -609,8 +699,6 @@ exports[`Generated code for "jsii-calc": / 1`] = ` ┗━ 📁 golang ┗━ 📁 jsiicalc - ┣━ 📁 _jsii - ┃ ┗━ 📄 jsii-calc@0.0.0.jsii.tgz ┣━ 📁 composition ┃ ┗━ 📄 composition.go ┣━ 📁 derivedclasshasnoproperties @@ -619,6 +707,9 @@ exports[`Generated code for "jsii-calc": / 1`] = ` ┃ ┗━ 📄 interfaceinnamespaceincludesclasses.go ┣━ 📁 interfaceinnamespaceonlyinterface ┃ ┗━ 📄 interfaceinnamespaceonlyinterface.go + ┣━ 📁 jsii + ┃ ┣━ 📄 jsii.go + ┃ ┗━ 📄 tarball.embedded.go ┣━ 📄 jsiicalc.go ┣━ 📁 pythonself ┃ ┗━ 📄 pythonself.go @@ -632,8 +723,6 @@ exports[`Generated code for "jsii-calc": / 1`] = ` ┗━ 📄 submodule.go `; -exports[`Generated code for "jsii-calc": /golang/jsiicalc/_jsii/jsii-calc@0.0.0.jsii.tgz 1`] = `golang/jsiicalc/_jsii/jsii-calc@0.0.0.jsii.tgz is a tarball`; - exports[`Generated code for "jsii-calc": /golang/jsiicalc/README.md 1`] = ` # jsii Calculator @@ -670,6 +759,7 @@ package composition import ( "github.com/aws-cdk/jsii/jsii-experimental" "github.com/aws-cdk/jsii/jsii-calc/golang/scopejsiicalclib" + _init_ "github.com/aws-cdk/jsii/jsii-calc/golang/jsiicalc/jsii" ) // Class interface @@ -727,6 +817,7 @@ func (c *CompositeOperation) GetStringStyle() CompositionStringStyle { func NewCompositeOperation() CompositeOperationIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "CompositeOperation", Method: "Constructor", @@ -789,6 +880,7 @@ package derivedclasshasnoproperties import ( "github.com/aws-cdk/jsii/jsii-experimental" + _init_ "github.com/aws-cdk/jsii/jsii-calc/golang/jsiicalc/jsii" ) // Class interface @@ -808,6 +900,7 @@ func (b *Base) GetProp() string { func NewBase() BaseIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Base", Method: "Constructor", @@ -837,6 +930,7 @@ func (d *Derived) GetProp() string { func NewDerived() DerivedIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Derived", Method: "Constructor", @@ -857,6 +951,7 @@ package interfaceinnamespaceincludesclasses import ( "github.com/aws-cdk/jsii/jsii-experimental" + _init_ "github.com/aws-cdk/jsii/jsii-calc/golang/jsiicalc/jsii" ) // Class interface @@ -876,6 +971,7 @@ func (f *Foo) GetBar() string { func NewFoo() FooIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Foo", Method: "Constructor", @@ -911,6 +1007,7 @@ package interfaceinnamespaceonlyinterface import ( "github.com/aws-cdk/jsii/jsii-experimental" + _init_ "github.com/aws-cdk/jsii/jsii-calc/golang/jsiicalc/jsii" ) // HelloIface is the public interface for the custom type Hello @@ -931,6 +1028,38 @@ func (h *Hello) GetFoo() float64 { `; +exports[`Generated code for "jsii-calc": /golang/jsiicalc/jsii/jsii.go 1`] = ` +package jsii + +import ( + rt "github.com/aws-cdk/jsii/jsii-experimental" + "sync" + // Initialization endpoints of dependencies + scopejsiicalcbase "github.com/aws-cdk/jsii/jsii-calc/golang/scopejsiicalcbase/jsii" + scopejsiicalcbaseofbase "github.com/aws-cdk/jsii/jsii-calc/golang/scopejsiicalcbaseofbase/jsii" + scopejsiicalclib "github.com/aws-cdk/jsii/jsii-calc/golang/scopejsiicalclib/jsii" +) + +var once sync.Once + +// Initialize performs the necessary work for the enclosing +// module to be loaded in the jsii kernel. +func Initialize() { + once.Do(func(){ + // Ensure all dependencies are initialized + scopejsiicalcbase.Initialize() + scopejsiicalcbaseofbase.Initialize() + scopejsiicalclib.Initialize() + + // Load this library into the kernel + rt.Load("jsii-calc", "0.0.0", tarball) + }) +} + +`; + +exports[`Generated code for "jsii-calc": /golang/jsiicalc/jsii/tarball.embedded.go 1`] = `golang/jsiicalc/jsii/tarball.embedded.go embeds a tarball`; + exports[`Generated code for "jsii-calc": /golang/jsiicalc/jsiicalc.go 1`] = ` // A simple calcuator built on JSII. package jsiicalc @@ -942,6 +1071,7 @@ import ( "github.com/aws-cdk/jsii/jsii-calc/golang/scopejsiicalcbaseofbase" "github.com/aws-cdk/jsii/jsii-calc/golang/scopejsiicalcbase" "github.com/aws-cdk/jsii/jsii-calc/golang/scopejsiicalclib/submodule" + _init_ "github.com/aws-cdk/jsii/jsii-calc/golang/jsiicalc/jsii" ) // Class interface @@ -971,6 +1101,7 @@ func (a *AbstractClass) GetPropFromInterface() string { func NewAbstractClass() AbstractClassIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "AbstractClass", Method: "Constructor", @@ -1022,6 +1153,7 @@ func (a *AbstractClassBase) GetAbstractProperty() string { func NewAbstractClassBase() AbstractClassBaseIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "AbstractClassBase", Method: "Constructor", @@ -1053,6 +1185,7 @@ func (a *AbstractClassReturner) GetReturnAbstractFromProperty() AbstractClassBas func NewAbstractClassReturner() AbstractClassReturnerIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "AbstractClassReturner", Method: "Constructor", @@ -1102,6 +1235,7 @@ func (a *AbstractSuite) GetProperty() string { func NewAbstractSuite() AbstractSuiteIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "AbstractSuite", Method: "Constructor", @@ -1172,6 +1306,7 @@ func (a *Add) GetRhs() scopejsiicalclib.NumericValue { // Creates a BinaryOperation. func NewAdd(lhs scopejsiicalclib.NumericValue, rhs scopejsiicalclib.NumericValue) AddIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Add", Method: "Constructor", @@ -1369,6 +1504,7 @@ func (a *AllTypes) GetOptionalEnumValue() StringEnum { func NewAllTypes() AllTypesIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "AllTypes", Method: "Constructor", @@ -1500,6 +1636,7 @@ type AllowedMethodNames struct { } func NewAllowedMethodNames() AllowedMethodNamesIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "AllowedMethodNames", Method: "Constructor", @@ -1565,6 +1702,7 @@ func (a *AmbiguousParameters) GetScope() Bell { func NewAmbiguousParameters(scope Bell, props StructParameterType) AmbiguousParametersIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "AmbiguousParameters", Method: "Constructor", @@ -1593,6 +1731,7 @@ type AnonymousImplementationProvider struct { } func NewAnonymousImplementationProvider() AnonymousImplementationProviderIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "AnonymousImplementationProvider", Method: "Constructor", @@ -1634,6 +1773,7 @@ type AsyncVirtualMethods struct { } func NewAsyncVirtualMethods() AsyncVirtualMethodsIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "AsyncVirtualMethods", Method: "Constructor", @@ -1707,6 +1847,7 @@ type AugmentableClass struct { } func NewAugmentableClass() AugmentableClassIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "AugmentableClass", Method: "Constructor", @@ -1740,6 +1881,7 @@ type BaseJsii976 struct { } func NewBaseJsii976() BaseJsii976Iface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "BaseJsii976", Method: "Constructor", @@ -1767,6 +1909,7 @@ func (b *Bell) GetRung() bool { func NewBell() BellIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Bell", Method: "Constructor", @@ -1828,6 +1971,7 @@ func (b *BinaryOperation) GetRhs() scopejsiicalclib.NumericValue { // Creates a BinaryOperation. func NewBinaryOperation(lhs scopejsiicalclib.NumericValue, rhs scopejsiicalclib.NumericValue) BinaryOperationIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "BinaryOperation", Method: "Constructor", @@ -1887,6 +2031,7 @@ type BurriedAnonymousObject struct { } func NewBurriedAnonymousObject() BurriedAnonymousObjectIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "BurriedAnonymousObject", Method: "Constructor", @@ -2026,6 +2171,7 @@ func (c *Calculator) GetUnionProperty() jsii.Any { // Creates a Calculator object. func NewCalculator(props CalculatorProps) CalculatorIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Calculator", Method: "Constructor", @@ -2220,6 +2366,7 @@ func (c *ClassThatImplementsTheInternalInterface) GetD() string { func NewClassThatImplementsTheInternalInterface() ClassThatImplementsTheInternalInterfaceIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "ClassThatImplementsTheInternalInterface", Method: "Constructor", @@ -2284,6 +2431,7 @@ func (c *ClassThatImplementsThePrivateInterface) GetE() string { func NewClassThatImplementsThePrivateInterface() ClassThatImplementsThePrivateInterfaceIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "ClassThatImplementsThePrivateInterface", Method: "Constructor", @@ -2329,10 +2477,12 @@ type ClassWithCollections struct { } func (c *ClassWithCollections) GetStaticArray() []string { + _init_.Initialize() return c.StaticArray } func (c *ClassWithCollections) GetStaticMap() map[string]string { + _init_.Initialize() return c.StaticMap } @@ -2346,6 +2496,7 @@ func (c *ClassWithCollections) GetMap() map[string]string { func NewClassWithCollections(map_ map[string]string, array []string) ClassWithCollectionsIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "ClassWithCollections", Method: "Constructor", @@ -2355,10 +2506,12 @@ func NewClassWithCollections(map_ map[string]string, array []string) ClassWithCo } func (c *ClassWithCollections) SetStaticArray(val []string) { + _init_.Initialize() c.StaticArray = val } func (c *ClassWithCollections) SetStaticMap(val map[string]string) { + _init_.Initialize() c.StaticMap = val } @@ -2371,6 +2524,7 @@ func (c *ClassWithCollections) SetMap(val map[string]string) { } func ClassWithCollections_CreateAList() []string { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "ClassWithCollections", Method: "CreateAList", @@ -2380,6 +2534,7 @@ func ClassWithCollections_CreateAList() []string { } func ClassWithCollections_CreateAMap() map[string]string { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "ClassWithCollections", Method: "CreateAMap", @@ -2405,6 +2560,7 @@ type ClassWithDocs struct { } func NewClassWithDocs() ClassWithDocsIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "ClassWithDocs", Method: "Constructor", @@ -2431,6 +2587,7 @@ func (c *ClassWithJavaReservedWords) GetInt() string { func NewClassWithJavaReservedWords(int string) ClassWithJavaReservedWordsIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "ClassWithJavaReservedWords", Method: "Constructor", @@ -2469,6 +2626,7 @@ func (c *ClassWithMutableObjectLiteralProperty) GetMutableObject() IMutableObjec func NewClassWithMutableObjectLiteralProperty() ClassWithMutableObjectLiteralPropertyIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "ClassWithMutableObjectLiteralProperty", Method: "Constructor", @@ -2515,6 +2673,7 @@ func (c *ClassWithPrivateConstructorAndAutomaticProperties) SetReadWriteString(v } func ClassWithPrivateConstructorAndAutomaticProperties_Create(readOnlyString string, readWriteString string) ClassWithPrivateConstructorAndAutomaticProperties { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "ClassWithPrivateConstructorAndAutomaticProperties", Method: "Create", @@ -2547,6 +2706,7 @@ func (c *ConfusingToJackson) SetUnionProperty(val jsii.Any) { } func ConfusingToJackson_MakeInstance() ConfusingToJackson { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "ConfusingToJackson", Method: "MakeInstance", @@ -2556,6 +2716,7 @@ func ConfusingToJackson_MakeInstance() ConfusingToJackson { } func ConfusingToJackson_MakeStructInstance() ConfusingToJacksonStruct { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "ConfusingToJackson", Method: "MakeStructInstance", @@ -2588,6 +2749,7 @@ type ConstructorPassesThisOut struct { } func NewConstructorPassesThisOut(consumer PartiallyInitializedThisConsumer) ConstructorPassesThisOutIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "ConstructorPassesThisOut", Method: "Constructor", @@ -2605,6 +2767,7 @@ type Constructors struct { } func NewConstructors() ConstructorsIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Constructors", Method: "Constructor", @@ -2614,6 +2777,7 @@ func NewConstructors() ConstructorsIface { } func Constructors_HiddenInterface() IPublicInterface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Constructors", Method: "HiddenInterface", @@ -2623,6 +2787,7 @@ func Constructors_HiddenInterface() IPublicInterface { } func Constructors_HiddenInterfaces() []IPublicInterface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Constructors", Method: "HiddenInterfaces", @@ -2632,6 +2797,7 @@ func Constructors_HiddenInterfaces() []IPublicInterface { } func Constructors_HiddenSubInterfaces() []IPublicInterface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Constructors", Method: "HiddenSubInterfaces", @@ -2641,6 +2807,7 @@ func Constructors_HiddenSubInterfaces() []IPublicInterface { } func Constructors_MakeClass() PublicClass { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Constructors", Method: "MakeClass", @@ -2650,6 +2817,7 @@ func Constructors_MakeClass() PublicClass { } func Constructors_MakeInterface() IPublicInterface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Constructors", Method: "MakeInterface", @@ -2659,6 +2827,7 @@ func Constructors_MakeInterface() IPublicInterface { } func Constructors_MakeInterface2() IPublicInterface2 { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Constructors", Method: "MakeInterface2", @@ -2668,6 +2837,7 @@ func Constructors_MakeInterface2() IPublicInterface2 { } func Constructors_MakeInterfaces() []IPublicInterface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Constructors", Method: "MakeInterfaces", @@ -2686,6 +2856,7 @@ type ConsumePureInterface struct { } func NewConsumePureInterface(delegate IStructReturningDelegate) ConsumePureInterfaceIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "ConsumePureInterface", Method: "Constructor", @@ -2720,6 +2891,7 @@ type ConsumerCanRingBell struct { } func NewConsumerCanRingBell() ConsumerCanRingBellIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "ConsumerCanRingBell", Method: "Constructor", @@ -2729,6 +2901,7 @@ func NewConsumerCanRingBell() ConsumerCanRingBellIface { } func ConsumerCanRingBell_StaticImplementedByObjectLiteral(ringer IBellRinger) bool { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "ConsumerCanRingBell", Method: "StaticImplementedByObjectLiteral", @@ -2738,6 +2911,7 @@ func ConsumerCanRingBell_StaticImplementedByObjectLiteral(ringer IBellRinger) bo } func ConsumerCanRingBell_StaticImplementedByPrivateClass(ringer IBellRinger) bool { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "ConsumerCanRingBell", Method: "StaticImplementedByPrivateClass", @@ -2747,6 +2921,7 @@ func ConsumerCanRingBell_StaticImplementedByPrivateClass(ringer IBellRinger) boo } func ConsumerCanRingBell_StaticImplementedByPublicClass(ringer IBellRinger) bool { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "ConsumerCanRingBell", Method: "StaticImplementedByPublicClass", @@ -2756,6 +2931,7 @@ func ConsumerCanRingBell_StaticImplementedByPublicClass(ringer IBellRinger) bool } func ConsumerCanRingBell_StaticWhenTypedAsClass(ringer IConcreteBellRinger) bool { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "ConsumerCanRingBell", Method: "StaticWhenTypedAsClass", @@ -2811,6 +2987,7 @@ type ConsumersOfThisCrazyTypeSystem struct { } func NewConsumersOfThisCrazyTypeSystem() ConsumersOfThisCrazyTypeSystemIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "ConsumersOfThisCrazyTypeSystem", Method: "Constructor", @@ -2850,6 +3027,7 @@ type DataRenderer struct { } func NewDataRenderer() DataRendererIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "DataRenderer", Method: "Constructor", @@ -2916,6 +3094,7 @@ func (d *DefaultedConstructorArgument) GetArg2() string { func NewDefaultedConstructorArgument(arg1 float64, arg2 string, arg3 string) DefaultedConstructorArgumentIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "DefaultedConstructorArgument", Method: "Constructor", @@ -2949,6 +3128,7 @@ type Demonstrate982 struct { } func NewDemonstrate982() Demonstrate982Iface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Demonstrate982", Method: "Constructor", @@ -2958,6 +3138,7 @@ func NewDemonstrate982() Demonstrate982Iface { } func Demonstrate982_TakeThis() ChildStruct982 { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Demonstrate982", Method: "TakeThis", @@ -2967,6 +3148,7 @@ func Demonstrate982_TakeThis() ChildStruct982 { } func Demonstrate982_TakeThisToo() ParentStruct982 { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Demonstrate982", Method: "TakeThisToo", @@ -3003,6 +3185,7 @@ func (d *DeprecatedClass) GetMutableProperty() float64 { func NewDeprecatedClass(readonlyString string, mutableNumber float64) DeprecatedClassIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "DeprecatedClass", Method: "Constructor", @@ -3238,19 +3421,23 @@ type DisappointingCollectionSource struct { } func (d *DisappointingCollectionSource) GetMaybeList() []string { + _init_.Initialize() return d.MaybeList } func (d *DisappointingCollectionSource) GetMaybeMap() map[string]float64 { + _init_.Initialize() return d.MaybeMap } func (d *DisappointingCollectionSource) SetMaybeList(val []string) { + _init_.Initialize() d.MaybeList = val } func (d *DisappointingCollectionSource) SetMaybeMap(val map[string]float64) { + _init_.Initialize() d.MaybeMap = val } @@ -3266,6 +3453,7 @@ type DoNotOverridePrivates struct { } func NewDoNotOverridePrivates() DoNotOverridePrivatesIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "DoNotOverridePrivates", Method: "Constructor", @@ -3311,6 +3499,7 @@ type DoNotRecognizeAnyAsOptional struct { } func NewDoNotRecognizeAnyAsOptional() DoNotRecognizeAnyAsOptionalIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "DoNotRecognizeAnyAsOptional", Method: "Constructor", @@ -3344,6 +3533,7 @@ type DocumentedClass struct { } func NewDocumentedClass() DocumentedClassIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "DocumentedClass", Method: "Constructor", @@ -3379,6 +3569,7 @@ type DontComplainAboutVariadicAfterOptional struct { } func NewDontComplainAboutVariadicAfterOptional() DontComplainAboutVariadicAfterOptionalIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "DontComplainAboutVariadicAfterOptional", Method: "Constructor", @@ -3410,6 +3601,7 @@ type DoubleTrouble struct { } func NewDoubleTrouble() DoubleTroubleIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "DoubleTrouble", Method: "Constructor", @@ -3461,6 +3653,7 @@ func (d *DynamicPropertyBearer) GetValueStore() string { func NewDynamicPropertyBearer(valueStore string) DynamicPropertyBearerIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "DynamicPropertyBearer", Method: "Constructor", @@ -3509,6 +3702,7 @@ func (d *DynamicPropertyBearerChild) GetOriginalValue() string { func NewDynamicPropertyBearerChild(originalValue string) DynamicPropertyBearerChildIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "DynamicPropertyBearerChild", Method: "Constructor", @@ -3551,6 +3745,7 @@ type Entropy struct { // Creates a new instance of Entropy. func NewEntropy(clock IWallClock) EntropyIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Entropy", Method: "Constructor", @@ -3586,6 +3781,7 @@ type EnumDispenser struct { } func EnumDispenser_RandomIntegerLikeEnum() AllTypesEnum { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "EnumDispenser", Method: "RandomIntegerLikeEnum", @@ -3595,6 +3791,7 @@ func EnumDispenser_RandomIntegerLikeEnum() AllTypesEnum { } func EnumDispenser_RandomStringLikeEnum() StringEnum { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "EnumDispenser", Method: "RandomStringLikeEnum", @@ -3612,6 +3809,7 @@ type EraseUndefinedHashValues struct { } func NewEraseUndefinedHashValues() EraseUndefinedHashValuesIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "EraseUndefinedHashValues", Method: "Constructor", @@ -3621,6 +3819,7 @@ func NewEraseUndefinedHashValues() EraseUndefinedHashValuesIface { } func EraseUndefinedHashValues_DoesKeyExist(opts EraseUndefinedHashValuesOptions, key string) bool { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "EraseUndefinedHashValues", Method: "DoesKeyExist", @@ -3630,6 +3829,7 @@ func EraseUndefinedHashValues_DoesKeyExist(opts EraseUndefinedHashValuesOptions, } func EraseUndefinedHashValues_Prop1IsNull() map[string]jsii.Any { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "EraseUndefinedHashValues", Method: "Prop1IsNull", @@ -3639,6 +3839,7 @@ func EraseUndefinedHashValues_Prop1IsNull() map[string]jsii.Any { } func EraseUndefinedHashValues_Prop2IsUndefined() map[string]jsii.Any { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "EraseUndefinedHashValues", Method: "Prop2IsUndefined", @@ -3696,6 +3897,7 @@ func (e *ExperimentalClass) GetMutableProperty() float64 { func NewExperimentalClass(readonlyString string, mutableNumber float64) ExperimentalClassIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "ExperimentalClass", Method: "Constructor", @@ -3763,6 +3965,7 @@ func (e *ExportedBaseClass) GetSuccess() bool { func NewExportedBaseClass(success bool) ExportedBaseClassIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "ExportedBaseClass", Method: "Constructor", @@ -3821,6 +4024,7 @@ func (e *ExternalClass) GetMutableProperty() float64 { func NewExternalClass(readonlyString string, mutableNumber float64) ExternalClassIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "ExternalClass", Method: "Constructor", @@ -3887,6 +4091,7 @@ func (g *GiveMeStructs) GetStructLiteral() scopejsiicalclib.StructWithOnlyOption func NewGiveMeStructs() GiveMeStructsIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "GiveMeStructs", Method: "Constructor", @@ -3953,6 +4158,7 @@ type GreetingAugmenter struct { } func NewGreetingAugmenter() GreetingAugmenterIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "GreetingAugmenter", Method: "Constructor", @@ -4181,6 +4387,7 @@ func (i *ImplementInternalInterface) GetProp() string { func NewImplementInternalInterface() ImplementInternalInterfaceIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "ImplementInternalInterface", Method: "Constructor", @@ -4210,6 +4417,7 @@ func (i *Implementation) GetValue() float64 { func NewImplementation() ImplementationIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Implementation", Method: "Constructor", @@ -4233,6 +4441,7 @@ type ImplementsInterfaceWithInternal struct { } func NewImplementsInterfaceWithInternal() ImplementsInterfaceWithInternalIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "ImplementsInterfaceWithInternal", Method: "Constructor", @@ -4260,6 +4469,7 @@ type ImplementsInterfaceWithInternalSubclass struct { } func NewImplementsInterfaceWithInternalSubclass() ImplementsInterfaceWithInternalSubclassIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "ImplementsInterfaceWithInternalSubclass", Method: "Constructor", @@ -4293,6 +4503,7 @@ func (i *ImplementsPrivateInterface) GetPrivate() string { func NewImplementsPrivateInterface() ImplementsPrivateInterfaceIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "ImplementsPrivateInterface", Method: "Constructor", @@ -4344,6 +4555,7 @@ type InbetweenClass struct { } func NewInbetweenClass() InbetweenClassIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "InbetweenClass", Method: "Constructor", @@ -4381,6 +4593,7 @@ type InterfaceCollections struct { } func InterfaceCollections_ListOfInterfaces() []IBell { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "InterfaceCollections", Method: "ListOfInterfaces", @@ -4390,6 +4603,7 @@ func InterfaceCollections_ListOfInterfaces() []IBell { } func InterfaceCollections_ListOfStructs() []StructA { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "InterfaceCollections", Method: "ListOfStructs", @@ -4399,6 +4613,7 @@ func InterfaceCollections_ListOfStructs() []StructA { } func InterfaceCollections_MapOfInterfaces() map[string]IBell { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "InterfaceCollections", Method: "MapOfInterfaces", @@ -4408,6 +4623,7 @@ func InterfaceCollections_MapOfInterfaces() map[string]IBell { } func InterfaceCollections_MapOfStructs() map[string]StructA { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "InterfaceCollections", Method: "MapOfStructs", @@ -4426,6 +4642,7 @@ type InterfacesMaker struct { } func InterfacesMaker_MakeInterfaces(count float64) []scopejsiicalclib.IDoublable { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "InterfacesMaker", Method: "MakeInterfaces", @@ -4448,6 +4665,7 @@ type Isomorphism struct { } func NewIsomorphism() IsomorphismIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Isomorphism", Method: "Constructor", @@ -4491,6 +4709,7 @@ func (j *Jsii417Derived) GetProperty() string { func NewJsii417Derived(property string) Jsii417DerivedIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Jsii417Derived", Method: "Constructor", @@ -4508,6 +4727,7 @@ func (j *Jsii417Derived) SetProperty(val string) { } func Jsii417Derived_MakeInstance() Jsii417PublicBaseOfBase { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Jsii417Derived", Method: "MakeInstance", @@ -4558,6 +4778,7 @@ func (j *Jsii417PublicBaseOfBase) GetHasRoot() bool { func NewJsii417PublicBaseOfBase() Jsii417PublicBaseOfBaseIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Jsii417PublicBaseOfBase", Method: "Constructor", @@ -4571,6 +4792,7 @@ func (j *Jsii417PublicBaseOfBase) SetHasRoot(val bool) { } func Jsii417PublicBaseOfBase_MakeInstance() Jsii417PublicBaseOfBase { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Jsii417PublicBaseOfBase", Method: "MakeInstance", @@ -4598,6 +4820,7 @@ type JsObjectLiteralForInterface struct { } func NewJsObjectLiteralForInterface() JsObjectLiteralForInterfaceIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "JsObjectLiteralForInterface", Method: "Constructor", @@ -4634,6 +4857,7 @@ type JsObjectLiteralToNative struct { } func NewJsObjectLiteralToNative() JsObjectLiteralToNativeIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "JsObjectLiteralToNative", Method: "Constructor", @@ -4675,6 +4899,7 @@ func (j *JsObjectLiteralToNativeClass) GetPropB() float64 { func NewJsObjectLiteralToNativeClass() JsObjectLiteralToNativeClassIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "JsObjectLiteralToNativeClass", Method: "Constructor", @@ -4760,6 +4985,7 @@ func (j *JavaReservedWords) GetWhile() string { func NewJavaReservedWords() JavaReservedWordsIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "JavaReservedWords", Method: "Constructor", @@ -5199,6 +5425,7 @@ type Jsii487Derived struct { } func NewJsii487Derived() Jsii487DerivedIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Jsii487Derived", Method: "Constructor", @@ -5217,6 +5444,7 @@ type Jsii496Derived struct { } func NewJsii496Derived() Jsii496DerivedIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Jsii496Derived", Method: "Constructor", @@ -5239,11 +5467,13 @@ type JsiiAgent struct { } func (j *JsiiAgent) GetValue() string { + _init_.Initialize() return j.Value } func NewJsiiAgent() JsiiAgentIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "JsiiAgent", Method: "Constructor", @@ -5253,6 +5483,7 @@ func NewJsiiAgent() JsiiAgentIface { } func (j *JsiiAgent) SetValue(val string) { + _init_.Initialize() j.Value = val } @@ -5268,6 +5499,7 @@ type JsonFormatter struct { } func JsonFormatter_AnyArray() jsii.Any { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "JsonFormatter", Method: "AnyArray", @@ -5277,6 +5509,7 @@ func JsonFormatter_AnyArray() jsii.Any { } func JsonFormatter_AnyBooleanFalse() jsii.Any { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "JsonFormatter", Method: "AnyBooleanFalse", @@ -5286,6 +5519,7 @@ func JsonFormatter_AnyBooleanFalse() jsii.Any { } func JsonFormatter_AnyBooleanTrue() jsii.Any { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "JsonFormatter", Method: "AnyBooleanTrue", @@ -5295,6 +5529,7 @@ func JsonFormatter_AnyBooleanTrue() jsii.Any { } func JsonFormatter_AnyDate() jsii.Any { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "JsonFormatter", Method: "AnyDate", @@ -5304,6 +5539,7 @@ func JsonFormatter_AnyDate() jsii.Any { } func JsonFormatter_AnyEmptyString() jsii.Any { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "JsonFormatter", Method: "AnyEmptyString", @@ -5313,6 +5549,7 @@ func JsonFormatter_AnyEmptyString() jsii.Any { } func JsonFormatter_AnyFunction() jsii.Any { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "JsonFormatter", Method: "AnyFunction", @@ -5322,6 +5559,7 @@ func JsonFormatter_AnyFunction() jsii.Any { } func JsonFormatter_AnyHash() jsii.Any { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "JsonFormatter", Method: "AnyHash", @@ -5331,6 +5569,7 @@ func JsonFormatter_AnyHash() jsii.Any { } func JsonFormatter_AnyNull() jsii.Any { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "JsonFormatter", Method: "AnyNull", @@ -5340,6 +5579,7 @@ func JsonFormatter_AnyNull() jsii.Any { } func JsonFormatter_AnyNumber() jsii.Any { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "JsonFormatter", Method: "AnyNumber", @@ -5349,6 +5589,7 @@ func JsonFormatter_AnyNumber() jsii.Any { } func JsonFormatter_AnyRef() jsii.Any { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "JsonFormatter", Method: "AnyRef", @@ -5358,6 +5599,7 @@ func JsonFormatter_AnyRef() jsii.Any { } func JsonFormatter_AnyString() jsii.Any { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "JsonFormatter", Method: "AnyString", @@ -5367,6 +5609,7 @@ func JsonFormatter_AnyString() jsii.Any { } func JsonFormatter_AnyUndefined() jsii.Any { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "JsonFormatter", Method: "AnyUndefined", @@ -5376,6 +5619,7 @@ func JsonFormatter_AnyUndefined() jsii.Any { } func JsonFormatter_AnyZero() jsii.Any { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "JsonFormatter", Method: "AnyZero", @@ -5385,6 +5629,7 @@ func JsonFormatter_AnyZero() jsii.Any { } func JsonFormatter_Stringify(value jsii.Any) string { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "JsonFormatter", Method: "Stringify", @@ -5411,6 +5656,7 @@ func (l *LevelOne) GetProps() LevelOneProps { func NewLevelOne(props LevelOneProps) LevelOneIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "LevelOne", Method: "Constructor", @@ -5557,6 +5803,7 @@ func (m *MethodNamedProperty) GetElite() float64 { func NewMethodNamedProperty() MethodNamedPropertyIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "MethodNamedProperty", Method: "Constructor", @@ -5624,6 +5871,7 @@ func (m *Multiply) GetRhs() scopejsiicalclib.NumericValue { // Creates a BinaryOperation. func NewMultiply(lhs scopejsiicalclib.NumericValue, rhs scopejsiicalclib.NumericValue) MultiplyIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Multiply", Method: "Constructor", @@ -5731,6 +5979,7 @@ func (n *Negate) GetOperand() scopejsiicalclib.NumericValue { func NewNegate(operand scopejsiicalclib.NumericValue) NegateIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Negate", Method: "Constructor", @@ -5801,6 +6050,7 @@ type NestedClassInstance struct { } func NestedClassInstance_MakeInstance() submodule.NestedClass { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "NestedClassInstance", Method: "MakeInstance", @@ -5847,6 +6097,7 @@ func (n *NodeStandardLibrary) GetOsPlatform() string { func NewNodeStandardLibrary() NodeStandardLibraryIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "NodeStandardLibrary", Method: "Constructor", @@ -5907,6 +6158,7 @@ func (n *NullShouldBeTreatedAsUndefined) GetChangeMeToUndefined() string { func NewNullShouldBeTreatedAsUndefined(_param1 string, optional jsii.Any) NullShouldBeTreatedAsUndefinedIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "NullShouldBeTreatedAsUndefined", Method: "Constructor", @@ -5984,6 +6236,7 @@ func (n *NumberGenerator) GetGenerator() IRandomNumberGenerator { func NewNumberGenerator(generator IRandomNumberGenerator) NumberGeneratorIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "NumberGenerator", Method: "Constructor", @@ -6026,6 +6279,7 @@ type ObjectRefsInCollections struct { } func NewObjectRefsInCollections() ObjectRefsInCollectionsIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "ObjectRefsInCollections", Method: "Constructor", @@ -6061,6 +6315,7 @@ type ObjectWithPropertyProvider struct { } func ObjectWithPropertyProvider_Provide() IObjectWithProperty { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "ObjectWithPropertyProvider", Method: "Provide", @@ -6081,6 +6336,7 @@ type Old struct { } func NewOld() OldIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Old", Method: "Constructor", @@ -6108,6 +6364,7 @@ type OptionalArgumentInvoker struct { } func NewOptionalArgumentInvoker(delegate IInterfaceWithOptionalMethodArguments) OptionalArgumentInvokerIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "OptionalArgumentInvoker", Method: "Constructor", @@ -6163,6 +6420,7 @@ func (o *OptionalConstructorArgument) GetArg3() string { func NewOptionalConstructorArgument(arg1 float64, arg2 string, arg3 string) OptionalConstructorArgumentIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "OptionalConstructorArgument", Method: "Constructor", @@ -6222,6 +6480,7 @@ func (o *OptionalStructConsumer) GetFieldValue() string { func NewOptionalStructConsumer(optionalStruct OptionalStruct) OptionalStructConsumerIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "OptionalStructConsumer", Method: "Constructor", @@ -6265,6 +6524,7 @@ func (o *OverridableProtectedMember) GetOverrideReadWrite() string { func NewOverridableProtectedMember() OverridableProtectedMemberIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "OverridableProtectedMember", Method: "Constructor", @@ -6317,6 +6577,7 @@ type OverrideReturnsObject struct { } func NewOverrideReturnsObject() OverrideReturnsObjectIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "OverrideReturnsObject", Method: "Constructor", @@ -6360,6 +6621,7 @@ type PartiallyInitializedThisConsumer struct { } func NewPartiallyInitializedThisConsumer() PartiallyInitializedThisConsumerIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "PartiallyInitializedThisConsumer", Method: "Constructor", @@ -6387,6 +6649,7 @@ type Polymorphism struct { } func NewPolymorphism() PolymorphismIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Polymorphism", Method: "Constructor", @@ -6476,6 +6739,7 @@ func (p *Power) GetPow() scopejsiicalclib.NumericValue { // Creates a Power operation. func NewPower(base scopejsiicalclib.NumericValue, pow scopejsiicalclib.NumericValue) PowerIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Power", Method: "Constructor", @@ -6555,6 +6819,7 @@ func (p *PropertyNamedProperty) GetYetAnoterOne() bool { func NewPropertyNamedProperty() PropertyNamedPropertyIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "PropertyNamedProperty", Method: "Constructor", @@ -6581,6 +6846,7 @@ type PublicClass struct { } func NewPublicClass() PublicClassIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "PublicClass", Method: "Constructor", @@ -6638,6 +6904,7 @@ type PythonReservedWords struct { } func NewPythonReservedWords() PythonReservedWordsIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "PythonReservedWords", Method: "Constructor", @@ -6922,6 +7189,7 @@ func (r *ReferenceEnumFromScopedPackage) GetFoo() scopejsiicalclib.EnumFromScope func NewReferenceEnumFromScopedPackage() ReferenceEnumFromScopedPackageIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "ReferenceEnumFromScopedPackage", Method: "Constructor", @@ -6973,6 +7241,7 @@ func (r *ReturnsPrivateImplementationOfInterface) GetPrivateImplementation() IPr func NewReturnsPrivateImplementationOfInterface() ReturnsPrivateImplementationOfInterfaceIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "ReturnsPrivateImplementationOfInterface", Method: "Constructor", @@ -7020,6 +7289,7 @@ type RootStructValidator struct { } func RootStructValidator_Validate(struct_ RootStruct) { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "RootStructValidator", Method: "Validate", @@ -7039,6 +7309,7 @@ type RuntimeTypeChecking struct { } func NewRuntimeTypeChecking() RuntimeTypeCheckingIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "RuntimeTypeChecking", Method: "Constructor", @@ -7110,6 +7381,7 @@ type SingleInstanceTwoTypes struct { } func NewSingleInstanceTwoTypes() SingleInstanceTwoTypesIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "SingleInstanceTwoTypes", Method: "Constructor", @@ -7222,6 +7494,7 @@ type SomeTypeJsii976 struct { } func NewSomeTypeJsii976() SomeTypeJsii976Iface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "SomeTypeJsii976", Method: "Constructor", @@ -7231,6 +7504,7 @@ func NewSomeTypeJsii976() SomeTypeJsii976Iface { } func SomeTypeJsii976_ReturnAnonymous() jsii.Any { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "SomeTypeJsii976", Method: "ReturnAnonymous", @@ -7240,6 +7514,7 @@ func SomeTypeJsii976_ReturnAnonymous() jsii.Any { } func SomeTypeJsii976_ReturnReturn() IReturnJsii976 { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "SomeTypeJsii976", Method: "ReturnReturn", @@ -7273,6 +7548,7 @@ func (s *StableClass) GetMutableProperty() float64 { func NewStableClass(readonlyString string, mutableNumber float64) StableClassIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "StableClass", Method: "Constructor", @@ -7334,15 +7610,18 @@ type StaticContext struct { } func (s *StaticContext) GetStaticVariable() bool { + _init_.Initialize() return s.StaticVariable } func (s *StaticContext) SetStaticVariable(val bool) { + _init_.Initialize() s.StaticVariable = val } func StaticContext_CanAccessStaticContext() bool { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "StaticContext", Method: "CanAccessStaticContext", @@ -7388,26 +7667,32 @@ type Statics struct { } func (s *Statics) GetBar() float64 { + _init_.Initialize() return s.Bar } func (s *Statics) GetConstObj() DoubleTrouble { + _init_.Initialize() return s.ConstObj } func (s *Statics) GetFoo() string { + _init_.Initialize() return s.Foo } func (s *Statics) GetZooBar() map[string]string { + _init_.Initialize() return s.ZooBar } func (s *Statics) GetInstance() Statics { + _init_.Initialize() return *s.Instance } func (s *Statics) GetNonConstStatic() float64 { + _init_.Initialize() return s.NonConstStatic } @@ -7417,6 +7702,7 @@ func (s *Statics) GetValue() string { func NewStatics(value string) StaticsIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Statics", Method: "Constructor", @@ -7426,26 +7712,32 @@ func NewStatics(value string) StaticsIface { } func (s *Statics) SetBar(val float64) { + _init_.Initialize() s.Bar = val } func (s *Statics) SetConstObj(val DoubleTrouble) { + _init_.Initialize() s.ConstObj = val } func (s *Statics) SetFoo(val string) { + _init_.Initialize() s.Foo = val } func (s *Statics) SetZooBar(val map[string]string) { + _init_.Initialize() s.ZooBar = val } func (s *Statics) SetInstance(val Statics) { + _init_.Initialize() s.Instance = &val } func (s *Statics) SetNonConstStatic(val float64) { + _init_.Initialize() s.NonConstStatic = val } @@ -7454,6 +7746,7 @@ func (s *Statics) SetValue(val string) { } func Statics_StaticMethod(name string) string { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Statics", Method: "StaticMethod", @@ -7496,6 +7789,7 @@ func (s *StripInternal) GetYouSeeMe() string { func NewStripInternal() StripInternalIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "StripInternal", Method: "Constructor", @@ -7598,6 +7892,7 @@ type StructPassing struct { } func NewStructPassing() StructPassingIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "StructPassing", Method: "Constructor", @@ -7607,6 +7902,7 @@ func NewStructPassing() StructPassingIface { } func StructPassing_HowManyVarArgsDidIPass(_positional float64, inputs TopLevelStruct) float64 { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "StructPassing", Method: "HowManyVarArgsDidIPass", @@ -7616,6 +7912,7 @@ func StructPassing_HowManyVarArgsDidIPass(_positional float64, inputs TopLevelSt } func StructPassing_RoundTrip(_positional float64, input TopLevelStruct) TopLevelStruct { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "StructPassing", Method: "RoundTrip", @@ -7633,6 +7930,7 @@ type StructUnionConsumer struct { } func StructUnionConsumer_IsStructA(struct_ jsii.Any) bool { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "StructUnionConsumer", Method: "IsStructA", @@ -7642,6 +7940,7 @@ func StructUnionConsumer_IsStructA(struct_ jsii.Any) bool { } func StructUnionConsumer_IsStructB(struct_ jsii.Any) bool { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "StructUnionConsumer", Method: "IsStructB", @@ -7746,6 +8045,7 @@ func (s *Sum) GetParts() []scopejsiicalclib.NumericValue { func NewSum() SumIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Sum", Method: "Constructor", @@ -7835,6 +8135,7 @@ func (s *SupportsNiceJavaBuilder) GetRest() []string { func NewSupportsNiceJavaBuilder(id float64, defaultBar float64, props SupportsNiceJavaBuilderProps, rest string) SupportsNiceJavaBuilderIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "SupportsNiceJavaBuilder", Method: "Constructor", @@ -7917,6 +8218,7 @@ func (s *SupportsNiceJavaBuilderWithRequiredProps) GetPropId() string { func NewSupportsNiceJavaBuilderWithRequiredProps(id float64, props SupportsNiceJavaBuilderProps) SupportsNiceJavaBuilderWithRequiredPropsIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "SupportsNiceJavaBuilderWithRequiredProps", Method: "Constructor", @@ -7999,6 +8301,7 @@ func (s *SyncVirtualMethods) GetValueOfOtherProperty() string { func NewSyncVirtualMethods() SyncVirtualMethodsIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "SyncVirtualMethods", Method: "Constructor", @@ -8128,6 +8431,7 @@ type Thrower struct { } func NewThrower() ThrowerIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Thrower", Method: "Constructor", @@ -8186,6 +8490,7 @@ type UmaskCheck struct { } func UmaskCheck_Mode() float64 { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "UmaskCheck", Method: "Mode", @@ -8223,6 +8528,7 @@ func (u *UnaryOperation) GetOperand() scopejsiicalclib.NumericValue { func NewUnaryOperation(operand scopejsiicalclib.NumericValue) UnaryOperationIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "UnaryOperation", Method: "Constructor", @@ -8295,6 +8601,7 @@ type UpcasingReflectable struct { } func (u *UpcasingReflectable) GetReflector() submodule.Reflector { + _init_.Initialize() return u.Reflector } @@ -8304,6 +8611,7 @@ func (u *UpcasingReflectable) GetEntries() []submodule.ReflectableEntry { func NewUpcasingReflectable(delegate map[string]jsii.Any) UpcasingReflectableIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "UpcasingReflectable", Method: "Constructor", @@ -8313,6 +8621,7 @@ func NewUpcasingReflectable(delegate map[string]jsii.Any) UpcasingReflectableIfa } func (u *UpcasingReflectable) SetReflector(val submodule.Reflector) { + _init_.Initialize() u.Reflector = val } @@ -8330,6 +8639,7 @@ type UseBundledDependency struct { } func NewUseBundledDependency() UseBundledDependencyIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "UseBundledDependency", Method: "Constructor", @@ -8358,6 +8668,7 @@ type UseCalcBase struct { } func NewUseCalcBase() UseCalcBaseIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "UseCalcBase", Method: "Constructor", @@ -8395,6 +8706,7 @@ func (u *UsesInterfaceWithProperties) GetObj() IInterfaceWithProperties { func NewUsesInterfaceWithProperties(obj IInterfaceWithProperties) UsesInterfaceWithPropertiesIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "UsesInterfaceWithProperties", Method: "Constructor", @@ -8444,6 +8756,7 @@ type VariadicInvoker struct { } func NewVariadicInvoker(method VariadicMethod) VariadicInvokerIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "VariadicInvoker", Method: "Constructor", @@ -8471,6 +8784,7 @@ type VariadicMethod struct { } func NewVariadicMethod(prefix float64) VariadicMethodIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "VariadicMethod", Method: "Constructor", @@ -8502,6 +8816,7 @@ type VirtualMethodPlayground struct { } func NewVirtualMethodPlayground() VirtualMethodPlaygroundIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "VirtualMethodPlayground", Method: "Constructor", @@ -8579,6 +8894,7 @@ func (v *VoidCallback) GetMethodWasCalled() bool { func NewVoidCallback() VoidCallbackIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "VoidCallback", Method: "Constructor", @@ -8625,6 +8941,7 @@ func (w *WithPrivatePropertyInConstructor) GetSuccess() bool { func NewWithPrivatePropertyInConstructor(privateField string) WithPrivatePropertyInConstructorIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "WithPrivatePropertyInConstructor", Method: "Constructor", @@ -8645,6 +8962,7 @@ package pythonself import ( "github.com/aws-cdk/jsii/jsii-experimental" + _init_ "github.com/aws-cdk/jsii/jsii-calc/golang/jsiicalc/jsii" ) // Class interface @@ -8665,6 +8983,7 @@ func (c *ClassWithSelf) GetSelf() string { func NewClassWithSelf(self string) ClassWithSelfIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "ClassWithSelf", Method: "Constructor", @@ -8703,6 +9022,7 @@ func (c *ClassWithSelfKwarg) GetProps() StructWithSelf { func NewClassWithSelfKwarg(props StructWithSelf) ClassWithSelfKwargIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "ClassWithSelfKwarg", Method: "Constructor", @@ -8743,6 +9063,7 @@ package backreferences import ( "github.com/aws-cdk/jsii/jsii-experimental" "github.com/aws-cdk/jsii/jsii-calc/golang/jsiicalc/submodule" + _init_ "github.com/aws-cdk/jsii/jsii-calc/golang/jsiicalc/jsii" ) // MyClassReferenceIface is the public interface for the custom type MyClassReference @@ -8768,6 +9089,7 @@ package child import ( "github.com/aws-cdk/jsii/jsii-experimental" + _init_ "github.com/aws-cdk/jsii/jsii-calc/golang/jsiicalc/jsii" ) type Awesomeness string @@ -8796,11 +9118,13 @@ type InnerClass struct { } func (i *InnerClass) GetStaticProp() SomeStruct { + _init_.Initialize() return i.StaticProp } func NewInnerClass() InnerClassIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "InnerClass", Method: "Constructor", @@ -8810,6 +9134,7 @@ func NewInnerClass() InnerClassIface { } func (i *InnerClass) SetStaticProp(val SomeStruct) { + _init_.Initialize() i.StaticProp = val } @@ -8854,6 +9179,7 @@ func (o *OuterClass) GetInnerClass() InnerClass { func NewOuterClass() OuterClassIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "OuterClass", Method: "Constructor", @@ -8910,6 +9236,7 @@ package deeplynested import ( "github.com/aws-cdk/jsii/jsii-experimental" + _init_ "github.com/aws-cdk/jsii/jsii-calc/golang/jsiicalc/jsii" ) type INamespaced interface { @@ -8924,6 +9251,7 @@ package isolated import ( "github.com/aws-cdk/jsii/jsii-experimental" + _init_ "github.com/aws-cdk/jsii/jsii-calc/golang/jsiicalc/jsii" ) // Class interface @@ -8936,6 +9264,7 @@ type Kwargs struct { } func Kwargs_Method(props child.KwargsProps) bool { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "Kwargs", Method: "Method", @@ -8953,6 +9282,7 @@ package nestedsubmodule import ( "github.com/aws-cdk/jsii/jsii-experimental" "github.com/aws-cdk/jsii/jsii-calc/golang/jsiicalc/submodule" + _init_ "github.com/aws-cdk/jsii/jsii-calc/golang/jsiicalc/jsii" ) // Class interface @@ -8997,6 +9327,7 @@ import ( "github.com/aws-cdk/jsii/jsii-experimental" "github.com/aws-cdk/jsii/jsii-calc/golang/jsiicalc/submodule" "github.com/aws-cdk/jsii/jsii-calc/golang/jsiicalc" + _init_ "github.com/aws-cdk/jsii/jsii-calc/golang/jsiicalc/jsii" ) // Class interface @@ -9045,6 +9376,7 @@ func (m *MyClass) GetAllTypes() jsiicalc.AllTypes { func NewMyClass(props child.SomeStruct) MyClassIface { + _init_.Initialize() jsii.NoOpRequest(jsii.NoOpApiRequest { Class: "MyClass", Method: "Constructor", diff --git a/packages/jsii-pacmak/test/generated-code/harness.ts b/packages/jsii-pacmak/test/generated-code/harness.ts index 0a682c7514..3fafd04e9d 100644 --- a/packages/jsii-pacmak/test/generated-code/harness.ts +++ b/packages/jsii-pacmak/test/generated-code/harness.ts @@ -26,7 +26,10 @@ expect.addSnapshotSerializer({ expect.addSnapshotSerializer({ test: (val) => val?.[TARBALL] != null, - serialize: (val) => `${val[TARBALL]} is a tarball`, + serialize: (val) => + `${val[TARBALL]} ${ + val[TARBALL].endsWith('.tgz') ? 'is' : 'embeds' + } a tarball`, }); expect.addSnapshotSerializer({ test: (val) => val?.[TREE] != null, @@ -87,7 +90,7 @@ function checkTree( } if (stat.isFile()) { - if (file.endsWith('.tgz')) { + if (file.endsWith('.tgz') || file.endsWith('.embedded.go')) { // Special-cased to avoid binary differences being annoying expect({ [TARBALL]: relativeFile }).toMatchSnapshot(snapshotName); } else { From eb261ec37fea1b31c67c6880e8e76dfc825e595f Mon Sep 17 00:00:00 2001 From: Romain Marcadier Date: Mon, 5 Oct 2020 18:03:44 +0200 Subject: [PATCH 11/16] chore: update go-runtime's gen.ts to use tabs --- packages/@jsii/go-runtime/build-tools/gen.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@jsii/go-runtime/build-tools/gen.ts b/packages/@jsii/go-runtime/build-tools/gen.ts index 1b1caefad7..6b83fcdc96 100644 --- a/packages/@jsii/go-runtime/build-tools/gen.ts +++ b/packages/@jsii/go-runtime/build-tools/gen.ts @@ -17,7 +17,7 @@ const OUTPUT_DIR = resolve(__dirname, '..', 'jsii-experimental'); const RUNTIME_FILE = 'embeddedruntime.generated.go'; const VERSION_FILE = 'version.generated.go'; -const code = new CodeMaker(); +const code = new CodeMaker({ indentationLevel: 1, indentCharacter: '\t' }); code.openFile(RUNTIME_FILE); code.line('package jsii'); From 177c21ec0c8742d954e5096b20c83466e7480d12 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 6 Oct 2020 06:27:04 +0000 Subject: [PATCH 12/16] chore(deps): bump jest from 26.4.2 to 26.5.0 (#2078) --- packages/@jsii/integ-test/package.json | 2 +- packages/@jsii/kernel/package.json | 2 +- packages/@jsii/runtime/package.json | 2 +- packages/@jsii/spec/package.json | 2 +- packages/codemaker/package.json | 2 +- packages/jsii-config/package.json | 2 +- packages/jsii-diff/package.json | 2 +- packages/jsii-pacmak/package.json | 2 +- packages/jsii-reflect/package.json | 2 +- packages/jsii-rosetta/package.json | 2 +- packages/jsii/package.json | 2 +- packages/oo-ascii-tree/package.json | 2 +- yarn.lock | 686 +++++++++++++------------ 13 files changed, 373 insertions(+), 337 deletions(-) diff --git a/packages/@jsii/integ-test/package.json b/packages/@jsii/integ-test/package.json index 919b2d82c1..641b753928 100644 --- a/packages/@jsii/integ-test/package.json +++ b/packages/@jsii/integ-test/package.json @@ -20,7 +20,7 @@ "@octokit/rest": "^18.0.6", "dotenv": "^8.2.0", "fs-extra": "^9.0.1", - "jest": "^26.4.2", + "jest": "^26.5.0", "jsii": "^0.0.0", "jsii-pacmak": "^0.0.0", "jsii-rosetta": "^0.0.0", diff --git a/packages/@jsii/kernel/package.json b/packages/@jsii/kernel/package.json index b44f4bef6e..f6fdd56586 100644 --- a/packages/@jsii/kernel/package.json +++ b/packages/@jsii/kernel/package.json @@ -45,7 +45,7 @@ "@types/node": "^10.17.35", "@types/tar": "^4.0.3", "eslint": "^7.10.0", - "jest": "^26.4.2", + "jest": "^26.5.0", "jest-expect-message": "^1.0.2", "jsii-build-tools": "^0.0.0", "jsii-calc": "^0.0.0", diff --git a/packages/@jsii/runtime/package.json b/packages/@jsii/runtime/package.json index 0b2cbccb62..745b6ebde6 100644 --- a/packages/@jsii/runtime/package.json +++ b/packages/@jsii/runtime/package.json @@ -43,7 +43,7 @@ "@types/jest": "^26.0.14", "@types/node": "^10.17.35", "eslint": "^7.10.0", - "jest": "^26.4.2", + "jest": "^26.5.0", "jsii-build-tools": "^0.0.0", "jsii-calc": "^0.0.0", "prettier": "^2.1.2", diff --git a/packages/@jsii/spec/package.json b/packages/@jsii/spec/package.json index 7949abd4ec..08833640d6 100644 --- a/packages/@jsii/spec/package.json +++ b/packages/@jsii/spec/package.json @@ -37,7 +37,7 @@ "@types/jest": "^26.0.14", "@types/node": "^10.17.35", "eslint": "^7.10.0", - "jest": "^26.4.2", + "jest": "^26.5.0", "jsii-build-tools": "^0.0.0", "prettier": "^2.1.2", "typescript": "~3.9.7", diff --git a/packages/codemaker/package.json b/packages/codemaker/package.json index 5f778cadd3..779cc3943e 100644 --- a/packages/codemaker/package.json +++ b/packages/codemaker/package.json @@ -40,7 +40,7 @@ "@types/jest": "^26.0.14", "@types/node": "^10.17.35", "eslint": "^7.10.0", - "jest": "^26.4.2", + "jest": "^26.5.0", "prettier": "^2.1.2", "typescript": "~3.9.7" }, diff --git a/packages/jsii-config/package.json b/packages/jsii-config/package.json index 97263615e0..8ef904b756 100644 --- a/packages/jsii-config/package.json +++ b/packages/jsii-config/package.json @@ -25,7 +25,7 @@ "@types/node": "^10.17.35", "@types/yargs": "^15.0.7", "eslint": "^7.10.0", - "jest": "^26.4.2", + "jest": "^26.5.0", "jest-expect-message": "^1.0.2", "prettier": "^2.1.2", "typescript": "~3.9.7" diff --git a/packages/jsii-diff/package.json b/packages/jsii-diff/package.json index 035fae5db2..cce8f4ab5b 100644 --- a/packages/jsii-diff/package.json +++ b/packages/jsii-diff/package.json @@ -48,7 +48,7 @@ "@types/tar-fs": "^2.0.0", "@types/yargs": "^15.0.7", "eslint": "^7.10.0", - "jest": "^26.4.2", + "jest": "^26.5.0", "jest-expect-message": "^1.0.2", "jsii": "^0.0.0", "jsii-build-tools": "^0.0.0", diff --git a/packages/jsii-pacmak/package.json b/packages/jsii-pacmak/package.json index 48647745de..7e7f99e6ac 100644 --- a/packages/jsii-pacmak/package.json +++ b/packages/jsii-pacmak/package.json @@ -62,7 +62,7 @@ "@types/semver": "^7.3.4", "@types/yargs": "^15.0.7", "eslint": "^7.10.0", - "jest": "^26.4.2", + "jest": "^26.5.0", "jsii-build-tools": "^0.0.0", "jsii-calc": "^0.0.0", "mock-fs": "^4.13.0", diff --git a/packages/jsii-reflect/package.json b/packages/jsii-reflect/package.json index c32922a5f9..0fc54c0bbf 100644 --- a/packages/jsii-reflect/package.json +++ b/packages/jsii-reflect/package.json @@ -47,7 +47,7 @@ "@types/node": "^10.17.35", "@types/yargs": "^15.0.7", "eslint": "^7.10.0", - "jest": "^26.4.2", + "jest": "^26.5.0", "jsii": "^0.0.0", "jsii-build-tools": "^0.0.0", "jsii-calc": "^0.0.0", diff --git a/packages/jsii-rosetta/package.json b/packages/jsii-rosetta/package.json index 9fbc3aaf60..19d68c0596 100644 --- a/packages/jsii-rosetta/package.json +++ b/packages/jsii-rosetta/package.json @@ -23,7 +23,7 @@ "@types/node": "^10.17.35", "@types/yargs": "^15.0.7", "eslint": "^7.10.0", - "jest": "^26.4.2", + "jest": "^26.5.0", "jsii": "^0.0.0", "jsii-build-tools": "^0.0.0", "memory-streams": "^0.1.3", diff --git a/packages/jsii/package.json b/packages/jsii/package.json index 2967dddf85..315eb91c04 100644 --- a/packages/jsii/package.json +++ b/packages/jsii/package.json @@ -58,7 +58,7 @@ "@types/yargs": "^15.0.7", "clone": "^2.1.2", "eslint": "^7.10.0", - "jest": "^26.4.2", + "jest": "^26.5.0", "jest-expect-message": "^1.0.2", "jsii-build-tools": "^0.0.0", "prettier": "^2.1.2", diff --git a/packages/oo-ascii-tree/package.json b/packages/oo-ascii-tree/package.json index 559da2e0ae..f4d8469c57 100644 --- a/packages/oo-ascii-tree/package.json +++ b/packages/oo-ascii-tree/package.json @@ -34,7 +34,7 @@ "@types/jest": "^26.0.14", "@types/node": "^10.17.35", "eslint": "^7.10.0", - "jest": "^26.4.2", + "jest": "^26.5.0", "jsii-build-tools": "^0.0.0", "prettier": "^2.1.2", "typescript": "~3.9.7" diff --git a/yarn.lock b/yarn.lock index a1a58901e1..17abbc8850 100644 --- a/yarn.lock +++ b/yarn.lock @@ -380,93 +380,93 @@ resolved "https://registry.yarnpkg.com/@istanbuljs/schema/-/schema-0.1.2.tgz#26520bf09abe4a5644cd5414e37125a8954241dd" integrity sha512-tsAQNx32a8CoFhjhijUIhI4kccIAgmGhy8LZMZgGfmXcpMbPRUqn5LWmgRttILi6yeGmBJd2xsPkFMs0PzgPCw== -"@jest/console@^26.3.0": - version "26.3.0" - resolved "https://registry.yarnpkg.com/@jest/console/-/console-26.3.0.tgz#ed04063efb280c88ba87388b6f16427c0a85c856" - integrity sha512-/5Pn6sJev0nPUcAdpJHMVIsA8sKizL2ZkcKPE5+dJrCccks7tcM7c9wbgHudBJbxXLoTbqsHkG1Dofoem4F09w== +"@jest/console@^26.5.0": + version "26.5.0" + resolved "https://registry.yarnpkg.com/@jest/console/-/console-26.5.0.tgz#89a1c5ae8329907fda842ebc5b475d5c9f935766" + integrity sha512-oh59scth4yf8XUgMJb8ruY7BHm0X5JZDNgGGsVnlOt2XQuq9s2NMllIrN4n70Yds+++bjrTGZ9EoOKraaPKPlg== dependencies: - "@jest/types" "^26.3.0" + "@jest/types" "^26.5.0" "@types/node" "*" chalk "^4.0.0" - jest-message-util "^26.3.0" - jest-util "^26.3.0" + jest-message-util "^26.5.0" + jest-util "^26.5.0" slash "^3.0.0" -"@jest/core@^26.4.2": - version "26.4.2" - resolved "https://registry.yarnpkg.com/@jest/core/-/core-26.4.2.tgz#85d0894f31ac29b5bab07aa86806d03dd3d33edc" - integrity sha512-sDva7YkeNprxJfepOctzS8cAk9TOekldh+5FhVuXS40+94SHbiicRO1VV2tSoRtgIo+POs/Cdyf8p76vPTd6dg== +"@jest/core@^26.5.0": + version "26.5.0" + resolved "https://registry.yarnpkg.com/@jest/core/-/core-26.5.0.tgz#32d7caf46a49d4a14cbbd3a2eb3ef39f149e984d" + integrity sha512-hDtgfzYxnrQn54+0JlbqpXM4+bqDfK0ooMlNE4Nn3VBsB4RbmytAn4/kVVIcMa+aYwRr/fwzWuGJwBETVg1sDw== dependencies: - "@jest/console" "^26.3.0" - "@jest/reporters" "^26.4.1" - "@jest/test-result" "^26.3.0" - "@jest/transform" "^26.3.0" - "@jest/types" "^26.3.0" + "@jest/console" "^26.5.0" + "@jest/reporters" "^26.5.0" + "@jest/test-result" "^26.5.0" + "@jest/transform" "^26.5.0" + "@jest/types" "^26.5.0" "@types/node" "*" ansi-escapes "^4.2.1" chalk "^4.0.0" exit "^0.1.2" graceful-fs "^4.2.4" - jest-changed-files "^26.3.0" - jest-config "^26.4.2" - jest-haste-map "^26.3.0" - jest-message-util "^26.3.0" + jest-changed-files "^26.5.0" + jest-config "^26.5.0" + jest-haste-map "^26.5.0" + jest-message-util "^26.5.0" jest-regex-util "^26.0.0" - jest-resolve "^26.4.0" - jest-resolve-dependencies "^26.4.2" - jest-runner "^26.4.2" - jest-runtime "^26.4.2" - jest-snapshot "^26.4.2" - jest-util "^26.3.0" - jest-validate "^26.4.2" - jest-watcher "^26.3.0" + jest-resolve "^26.5.0" + jest-resolve-dependencies "^26.5.0" + jest-runner "^26.5.0" + jest-runtime "^26.5.0" + jest-snapshot "^26.5.0" + jest-util "^26.5.0" + jest-validate "^26.5.0" + jest-watcher "^26.5.0" micromatch "^4.0.2" p-each-series "^2.1.0" rimraf "^3.0.0" slash "^3.0.0" strip-ansi "^6.0.0" -"@jest/environment@^26.3.0": - version "26.3.0" - resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-26.3.0.tgz#e6953ab711ae3e44754a025f838bde1a7fd236a0" - integrity sha512-EW+MFEo0DGHahf83RAaiqQx688qpXgl99wdb8Fy67ybyzHwR1a58LHcO376xQJHfmoXTu89M09dH3J509cx2AA== +"@jest/environment@^26.5.0": + version "26.5.0" + resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-26.5.0.tgz#4381b6b2fc291dcff51e248780196bc035da7190" + integrity sha512-0F3G9EyZU2NAP0/c/5EqVx4DmldQtRxj0gMl3p3ciSCdyMiCyDmpdE7O0mKTSiFDyl1kU4TfgEVf0r0vMkmYcw== dependencies: - "@jest/fake-timers" "^26.3.0" - "@jest/types" "^26.3.0" + "@jest/fake-timers" "^26.5.0" + "@jest/types" "^26.5.0" "@types/node" "*" - jest-mock "^26.3.0" + jest-mock "^26.5.0" -"@jest/fake-timers@^26.3.0": - version "26.3.0" - resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-26.3.0.tgz#f515d4667a6770f60ae06ae050f4e001126c666a" - integrity sha512-ZL9ytUiRwVP8ujfRepffokBvD2KbxbqMhrXSBhSdAhISCw3gOkuntisiSFv+A6HN0n0fF4cxzICEKZENLmW+1A== +"@jest/fake-timers@^26.5.0": + version "26.5.0" + resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-26.5.0.tgz#107ceeb580bc42dd6e0843df5bbc92cb4fe9cb00" + integrity sha512-sQK6xUembaZ0qLnZpSjJJuJiKvyrjCJhaYjbmatFpj5+cM8h2D7YEkeEBC26BMzvF1O3tNM9OL7roqyBmom0KA== dependencies: - "@jest/types" "^26.3.0" + "@jest/types" "^26.5.0" "@sinonjs/fake-timers" "^6.0.1" "@types/node" "*" - jest-message-util "^26.3.0" - jest-mock "^26.3.0" - jest-util "^26.3.0" + jest-message-util "^26.5.0" + jest-mock "^26.5.0" + jest-util "^26.5.0" -"@jest/globals@^26.4.2": - version "26.4.2" - resolved "https://registry.yarnpkg.com/@jest/globals/-/globals-26.4.2.tgz#73c2a862ac691d998889a241beb3dc9cada40d4a" - integrity sha512-Ot5ouAlehhHLRhc+sDz2/9bmNv9p5ZWZ9LE1pXGGTCXBasmi5jnYjlgYcYt03FBwLmZXCZ7GrL29c33/XRQiow== +"@jest/globals@^26.5.0": + version "26.5.0" + resolved "https://registry.yarnpkg.com/@jest/globals/-/globals-26.5.0.tgz#b9b7d05ee6722c894ce67aff216ed6b04d3fe187" + integrity sha512-TCKx3XWR9h/yyhQbz0C1sXkK2e8WJOnkP40T9bewNpf2Ahr1UEyKXnCoQO0JCpXFkWGTXBNo1QAgTQ3+LhXfcA== dependencies: - "@jest/environment" "^26.3.0" - "@jest/types" "^26.3.0" - expect "^26.4.2" + "@jest/environment" "^26.5.0" + "@jest/types" "^26.5.0" + expect "^26.5.0" -"@jest/reporters@^26.4.1": - version "26.4.1" - resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-26.4.1.tgz#3b4d6faf28650f3965f8b97bc3d114077fb71795" - integrity sha512-aROTkCLU8++yiRGVxLsuDmZsQEKO6LprlrxtAuzvtpbIFl3eIjgIf3EUxDKgomkS25R9ZzwGEdB5weCcBZlrpQ== +"@jest/reporters@^26.5.0": + version "26.5.0" + resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-26.5.0.tgz#07c7742993db9d680bcc6cda58106e8d283d2111" + integrity sha512-lUl5bbTHflDO9dQa85ZTHasPBVsyC48t9sg/VN2wC3OJryclFNqN4Xfo2FgnNl/pzCnzO2MVgMyIij5aNkod2w== dependencies: "@bcoe/v8-coverage" "^0.2.3" - "@jest/console" "^26.3.0" - "@jest/test-result" "^26.3.0" - "@jest/transform" "^26.3.0" - "@jest/types" "^26.3.0" + "@jest/console" "^26.5.0" + "@jest/test-result" "^26.5.0" + "@jest/transform" "^26.5.0" + "@jest/types" "^26.5.0" chalk "^4.0.0" collect-v8-coverage "^1.0.0" exit "^0.1.2" @@ -477,10 +477,10 @@ istanbul-lib-report "^3.0.0" istanbul-lib-source-maps "^4.0.0" istanbul-reports "^3.0.2" - jest-haste-map "^26.3.0" - jest-resolve "^26.4.0" - jest-util "^26.3.0" - jest-worker "^26.3.0" + jest-haste-map "^26.5.0" + jest-resolve "^26.5.0" + jest-util "^26.5.0" + jest-worker "^26.5.0" slash "^3.0.0" source-map "^0.6.0" string-length "^4.0.1" @@ -489,51 +489,51 @@ optionalDependencies: node-notifier "^8.0.0" -"@jest/source-map@^26.3.0": - version "26.3.0" - resolved "https://registry.yarnpkg.com/@jest/source-map/-/source-map-26.3.0.tgz#0e646e519883c14c551f7b5ae4ff5f1bfe4fc3d9" - integrity sha512-hWX5IHmMDWe1kyrKl7IhFwqOuAreIwHhbe44+XH2ZRHjrKIh0LO5eLQ/vxHFeAfRwJapmxuqlGAEYLadDq6ZGQ== +"@jest/source-map@^26.5.0": + version "26.5.0" + resolved "https://registry.yarnpkg.com/@jest/source-map/-/source-map-26.5.0.tgz#98792457c85bdd902365cd2847b58fff05d96367" + integrity sha512-jWAw9ZwYHJMe9eZq/WrsHlwF8E3hM9gynlcDpOyCb9bR8wEd9ZNBZCi7/jZyzHxC7t3thZ10gO2IDhu0bPKS5g== dependencies: callsites "^3.0.0" graceful-fs "^4.2.4" source-map "^0.6.0" -"@jest/test-result@^26.3.0": - version "26.3.0" - resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-26.3.0.tgz#46cde01fa10c0aaeb7431bf71e4a20d885bc7fdb" - integrity sha512-a8rbLqzW/q7HWheFVMtghXV79Xk+GWwOK1FrtimpI5n1la2SY0qHri3/b0/1F0Ve0/yJmV8pEhxDfVwiUBGtgg== +"@jest/test-result@^26.5.0": + version "26.5.0" + resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-26.5.0.tgz#d5bdf2eaf12ceddd359c2506fe806afafecc9a9e" + integrity sha512-CaVXxDQi31LPOsz5/+iajNHQlA1Je/jQ8uYH/lCa6Y/UrkO+sDHeEH3x/inbx06PctVDnTwIlCcBvNNbC4FCvQ== dependencies: - "@jest/console" "^26.3.0" - "@jest/types" "^26.3.0" + "@jest/console" "^26.5.0" + "@jest/types" "^26.5.0" "@types/istanbul-lib-coverage" "^2.0.0" collect-v8-coverage "^1.0.0" -"@jest/test-sequencer@^26.4.2": - version "26.4.2" - resolved "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-26.4.2.tgz#58a3760a61eec758a2ce6080201424580d97cbba" - integrity sha512-83DRD8N3M0tOhz9h0bn6Kl6dSp+US6DazuVF8J9m21WAp5x7CqSMaNycMP0aemC/SH/pDQQddbsfHRTBXVUgog== +"@jest/test-sequencer@^26.5.0": + version "26.5.0" + resolved "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-26.5.0.tgz#617808a1fa869c5181e43a5b841db084746b667e" + integrity sha512-23oofRXqPEy37HyHWIYf7lzzOqtGBkai5erZiL6RgxlyXE7a0lCihf6b5DfAvcD3yUtbXmh3EzpjJDVH57zQrg== dependencies: - "@jest/test-result" "^26.3.0" + "@jest/test-result" "^26.5.0" graceful-fs "^4.2.4" - jest-haste-map "^26.3.0" - jest-runner "^26.4.2" - jest-runtime "^26.4.2" + jest-haste-map "^26.5.0" + jest-runner "^26.5.0" + jest-runtime "^26.5.0" -"@jest/transform@^26.3.0": - version "26.3.0" - resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-26.3.0.tgz#c393e0e01459da8a8bfc6d2a7c2ece1a13e8ba55" - integrity sha512-Isj6NB68QorGoFWvcOjlUhpkT56PqNIsXKR7XfvoDlCANn/IANlh8DrKAA2l2JKC3yWSMH5wS0GwuQM20w3b2A== +"@jest/transform@^26.5.0": + version "26.5.0" + resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-26.5.0.tgz#16404eaddf6034fe713da37b236756fc6b956db0" + integrity sha512-Kt4WciOruTyTkJ2DZ+xtZiejRj3v22BrXCYZoGRbI0N6Q6tt2HdsWrrEtn6nlK24QWKC389xKkVk4Xr2gWBZQA== dependencies: "@babel/core" "^7.1.0" - "@jest/types" "^26.3.0" + "@jest/types" "^26.5.0" babel-plugin-istanbul "^6.0.0" chalk "^4.0.0" convert-source-map "^1.4.0" fast-json-stable-stringify "^2.0.0" graceful-fs "^4.2.4" - jest-haste-map "^26.3.0" + jest-haste-map "^26.5.0" jest-regex-util "^26.0.0" - jest-util "^26.3.0" + jest-util "^26.5.0" micromatch "^4.0.2" pirates "^4.0.1" slash "^3.0.0" @@ -561,6 +561,17 @@ "@types/yargs" "^15.0.0" chalk "^4.0.0" +"@jest/types@^26.5.0": + version "26.5.0" + resolved "https://registry.yarnpkg.com/@jest/types/-/types-26.5.0.tgz#163f6e00c5ac9bb6fc91c3802eaa9d0dd6e1474a" + integrity sha512-nH9DFLqaIhB+RVgjivemvMiFSWw/BKwbZGxBAMv8CCTvUyFoK8RwHhAlmlXIvMBrf5Z3YQ4p9cq3Qh9EDctGvA== + dependencies: + "@types/istanbul-lib-coverage" "^2.0.0" + "@types/istanbul-reports" "^3.0.0" + "@types/node" "*" + "@types/yargs" "^15.0.0" + chalk "^4.0.0" + "@lerna/add@3.21.0": version "3.21.0" resolved "https://registry.yarnpkg.com/@lerna/add/-/add-3.21.0.tgz#27007bde71cc7b0a2969ab3c2f0ae41578b4577b" @@ -1489,6 +1500,13 @@ dependencies: "@babel/types" "^7.3.0" +"@types/babel__traverse@^7.0.4": + version "7.0.15" + resolved "https://registry.yarnpkg.com/@types/babel__traverse/-/babel__traverse-7.0.15.tgz#db9e4238931eb69ef8aab0ad6523d4d4caa39d03" + integrity sha512-Pzh9O3sTK8V6I1olsXpCfj2k/ygO2q1X0vhhnDrEQyYLHZesWz+zMZMVcwXLCYf0U36EtmyYaFGPfXlTtDHe3A== + dependencies: + "@babel/types" "^7.3.0" + "@types/clone@^2.1.0": version "2.1.0" resolved "https://registry.yarnpkg.com/@types/clone/-/clone-2.1.0.tgz#cb888a3fe5319275b566ae3a9bc606e310c533d4" @@ -1647,10 +1665,10 @@ resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.3.4.tgz#43d7168fec6fa0988bb1a513a697b29296721afb" integrity sha512-+nVsLKlcUCeMzD2ufHEYuJ9a2ovstb6Dp52A5VsoKxDXgvE051XgHI/33I1EymwkRGQkwnA0LkhnUzituGs4EQ== -"@types/stack-utils@^1.0.1": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-1.0.1.tgz#0a851d3bd96498fa25c33ab7278ed3bd65f06c3e" - integrity sha512-l42BggppR6zLmpfU6fq9HEa2oGPEI8yrSPL3GITjfRInppYFahObbIQOQK3UGxEnyQpltZLaPe75046NOZQikw== +"@types/stack-utils@^2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.0.tgz#7036640b4e21cc2f259ae826ce843d277dad8cff" + integrity sha512-RJJrrySY7A8havqpGObOB4W92QXKJo63/jFLLgpvOtsGUqbQZ9Sbgl35KMm1DjC6j7AvmmU2bIno+3IyEaemaw== "@types/tar-fs@^2.0.0": version "2.0.0" @@ -2294,16 +2312,16 @@ aws4@^1.8.0: resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.10.1.tgz#e1e82e4f3e999e2cfd61b161280d16a111f86428" integrity sha512-zg7Hz2k5lI8kb7U32998pRRFin7zJlkfezGJjUc2heaD4Pw2wObakCDVzkKztTm/Ln7eiVvYsjqak0Ed4LkMDA== -babel-jest@^26.3.0: - version "26.3.0" - resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-26.3.0.tgz#10d0ca4b529ca3e7d1417855ef7d7bd6fc0c3463" - integrity sha512-sxPnQGEyHAOPF8NcUsD0g7hDCnvLL2XyblRBcgrzTWBB/mAIpWow3n1bEL+VghnnZfreLhFSBsFluRoK2tRK4g== +babel-jest@^26.5.0: + version "26.5.0" + resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-26.5.0.tgz#afe11a083b4e584f63e9de29d2075cb96f42d2a4" + integrity sha512-Cy16ZJrds81C+JASaOIGNlpCeqW3PTOq36owv+Zzwde5NiWz+zNduwxUNF57vxc/3SnIWo8HHqTczhN8GLoXTw== dependencies: - "@jest/transform" "^26.3.0" - "@jest/types" "^26.3.0" + "@jest/transform" "^26.5.0" + "@jest/types" "^26.5.0" "@types/babel__core" "^7.1.7" babel-plugin-istanbul "^6.0.0" - babel-preset-jest "^26.3.0" + babel-preset-jest "^26.5.0" chalk "^4.0.0" graceful-fs "^4.2.4" slash "^3.0.0" @@ -2319,10 +2337,10 @@ babel-plugin-istanbul@^6.0.0: istanbul-lib-instrument "^4.0.0" test-exclude "^6.0.0" -babel-plugin-jest-hoist@^26.2.0: - version "26.2.0" - resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-26.2.0.tgz#bdd0011df0d3d513e5e95f76bd53b51147aca2dd" - integrity sha512-B/hVMRv8Nh1sQ1a3EY8I0n4Y1Wty3NrR5ebOyVT302op+DOAau+xNEImGMsUWOC3++ZlMooCytKz+NgN8aKGbA== +babel-plugin-jest-hoist@^26.5.0: + version "26.5.0" + resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-26.5.0.tgz#3916b3a28129c29528de91e5784a44680db46385" + integrity sha512-ck17uZFD3CDfuwCLATWZxkkuGGFhMij8quP8CNhwj8ek1mqFgbFzRJ30xwC04LLscj/aKsVFfRST+b5PT7rSuw== dependencies: "@babel/template" "^7.3.3" "@babel/types" "^7.3.3" @@ -2346,12 +2364,12 @@ babel-preset-current-node-syntax@^0.1.3: "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" "@babel/plugin-syntax-optional-chaining" "^7.8.3" -babel-preset-jest@^26.3.0: - version "26.3.0" - resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-26.3.0.tgz#ed6344506225c065fd8a0b53e191986f74890776" - integrity sha512-5WPdf7nyYi2/eRxCbVrE1kKCWxgWY4RsPEbdJWFm7QsesFGqjdkyLeu1zRkwM1cxK6EPIlNd6d2AxLk7J+t4pw== +babel-preset-jest@^26.5.0: + version "26.5.0" + resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-26.5.0.tgz#f1b166045cd21437d1188d29f7fba470d5bdb0e7" + integrity sha512-F2vTluljhqkiGSJGBg/jOruA8vIIIL11YrxRcO7nviNTMbbofPSHwnm8mgP7d/wS7wRSexRoI6X1A6T74d4LQA== dependencies: - babel-plugin-jest-hoist "^26.2.0" + babel-plugin-jest-hoist "^26.5.0" babel-preset-current-node-syntax "^0.1.3" babylon@^7.0.0-beta.39: @@ -3617,10 +3635,10 @@ diff-sequences@^25.2.6: resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-25.2.6.tgz#5f467c00edd35352b7bca46d7927d60e687a76dd" integrity sha512-Hq8o7+6GaZeoFjtpgvRBUknSXNeJiCx7V9Fr94ZMljNiCr9n9L8H8aJqgWOQiDDGdyn29fRNcDdRVJ5fdyihfg== -diff-sequences@^26.3.0: - version "26.3.0" - resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-26.3.0.tgz#62a59b1b29ab7fd27cef2a33ae52abe73042d0a2" - integrity sha512-5j5vdRcw3CNctePNYN0Wy2e/JbWT6cAYnXv5OuqPhDpyCGc0uLu2TK0zOCJWNB9kOIfYMSpIulRaDgIi4HJ6Ig== +diff-sequences@^26.5.0: + version "26.5.0" + resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-26.5.0.tgz#ef766cf09d43ed40406611f11c6d8d9dd8b2fefd" + integrity sha512-ZXx86srb/iYy6jG71k++wBN9P9J05UNQ5hQHQd9MtMPvcqXPx/vKU69jfHV637D00Q2gSgPk2D+jSx3l1lDW/Q== diff@^4.0.1, diff@^4.0.2: version "4.0.2" @@ -3898,6 +3916,11 @@ escalade@^3.0.2: resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.0.2.tgz#6a580d70edb87880f22b4c91d0d56078df6962c4" integrity sha512-gPYAU37hYCUhW5euPeR+Y74F7BL+IBsV93j5cvGriSaD1aG6MGsqsV1yamRdrWrb2j3aiZvb0X+UBOWpx3JWtQ== +escalade@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.0.tgz#e8e2d7c7a8b76f6ee64c2181d6b8151441602d4e" + integrity sha512-mAk+hPSO8fLDkhV7V0dXazH5pDc6MrjBTPyD3VeKzxnVFjH1MIxbCdqGZB9O8+EwWakZs3ZCbDS4IpRt79V1ig== + escape-string-regexp@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" @@ -4187,16 +4210,16 @@ expand-tilde@^2.0.0, expand-tilde@^2.0.2: dependencies: homedir-polyfill "^1.0.1" -expect@^26.4.2: - version "26.4.2" - resolved "https://registry.yarnpkg.com/expect/-/expect-26.4.2.tgz#36db120928a5a2d7d9736643032de32f24e1b2a1" - integrity sha512-IlJ3X52Z0lDHm7gjEp+m76uX46ldH5VpqmU0006vqDju/285twh7zaWMRhs67VpQhBwjjMchk+p5aA0VkERCAA== +expect@^26.5.0: + version "26.5.0" + resolved "https://registry.yarnpkg.com/expect/-/expect-26.5.0.tgz#089c0cc4d6c545c7388ddefffa0f1e2e8e38d282" + integrity sha512-oIOy3mHWjnF5ZICuaui5kdtJZQ+D7XHWyUQDxk1WhIRCkcIYc24X23bOfikgCNU6i9wcSqLQhwPOqeRp09naxg== dependencies: - "@jest/types" "^26.3.0" + "@jest/types" "^26.5.0" ansi-styles "^4.0.0" jest-get-type "^26.3.0" - jest-matcher-utils "^26.4.2" - jest-message-util "^26.3.0" + jest-matcher-utils "^26.5.0" + jest-message-util "^26.5.0" jest-regex-util "^26.0.0" extend-shallow@^2.0.1: @@ -5592,57 +5615,57 @@ istanbul-reports@^3.0.2: html-escaper "^2.0.0" istanbul-lib-report "^3.0.0" -jest-changed-files@^26.3.0: - version "26.3.0" - resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-26.3.0.tgz#68fb2a7eb125f50839dab1f5a17db3607fe195b1" - integrity sha512-1C4R4nijgPltX6fugKxM4oQ18zimS7LqQ+zTTY8lMCMFPrxqBFb7KJH0Z2fRQJvw2Slbaipsqq7s1mgX5Iot+g== +jest-changed-files@^26.5.0: + version "26.5.0" + resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-26.5.0.tgz#181b901368decb4fc21d3cace9b4c4819232b667" + integrity sha512-RAHoXqxa7gO1rZz88qpsLpzJ2mQU12UaFWadacKHuMbBZwFK+yl0j9YoD9Y/wBpv1ILG2SdCuxFHggX+9VU7qA== dependencies: - "@jest/types" "^26.3.0" + "@jest/types" "^26.5.0" execa "^4.0.0" throat "^5.0.0" -jest-cli@^26.4.2: - version "26.4.2" - resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-26.4.2.tgz#24afc6e4dfc25cde4c7ec4226fb7db5f157c21da" - integrity sha512-zb+lGd/SfrPvoRSC/0LWdaWCnscXc1mGYW//NP4/tmBvRPT3VntZ2jtKUONsRi59zc5JqmsSajA9ewJKFYp8Cw== +jest-cli@^26.5.0: + version "26.5.0" + resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-26.5.0.tgz#4404fb5cbdfb250946160374d5e3fc9655f9b57f" + integrity sha512-bI0h6GQGbyN0SSZu3nPilwrkrZ8dBC93erwTiEoJ+kGjtNuXsB183hTZ0HCiHLzf88oE0SQB1hYp8RgyytH+Bg== dependencies: - "@jest/core" "^26.4.2" - "@jest/test-result" "^26.3.0" - "@jest/types" "^26.3.0" + "@jest/core" "^26.5.0" + "@jest/test-result" "^26.5.0" + "@jest/types" "^26.5.0" chalk "^4.0.0" exit "^0.1.2" graceful-fs "^4.2.4" import-local "^3.0.2" is-ci "^2.0.0" - jest-config "^26.4.2" - jest-util "^26.3.0" - jest-validate "^26.4.2" + jest-config "^26.5.0" + jest-util "^26.5.0" + jest-validate "^26.5.0" prompts "^2.0.1" - yargs "^15.3.1" + yargs "^16.0.3" -jest-config@^26.4.2: - version "26.4.2" - resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-26.4.2.tgz#da0cbb7dc2c131ffe831f0f7f2a36256e6086558" - integrity sha512-QBf7YGLuToiM8PmTnJEdRxyYy3mHWLh24LJZKVdXZ2PNdizSe1B/E8bVm+HYcjbEzGuVXDv/di+EzdO/6Gq80A== +jest-config@^26.5.0: + version "26.5.0" + resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-26.5.0.tgz#3959e47223496e2ae2605e073578a359cab99445" + integrity sha512-OM6eXIEmQXAuonCk8aNPMRjPFcKWa3IIoSlq5BPgIflmQBzM/COcI7XsWSIEPWPa9WcYTJBWj8kNqEYjczmIFw== dependencies: "@babel/core" "^7.1.0" - "@jest/test-sequencer" "^26.4.2" - "@jest/types" "^26.3.0" - babel-jest "^26.3.0" + "@jest/test-sequencer" "^26.5.0" + "@jest/types" "^26.5.0" + babel-jest "^26.5.0" chalk "^4.0.0" deepmerge "^4.2.2" glob "^7.1.1" graceful-fs "^4.2.4" - jest-environment-jsdom "^26.3.0" - jest-environment-node "^26.3.0" + jest-environment-jsdom "^26.5.0" + jest-environment-node "^26.5.0" jest-get-type "^26.3.0" - jest-jasmine2 "^26.4.2" + jest-jasmine2 "^26.5.0" jest-regex-util "^26.0.0" - jest-resolve "^26.4.0" - jest-util "^26.3.0" - jest-validate "^26.4.2" + jest-resolve "^26.5.0" + jest-util "^26.5.0" + jest-validate "^26.5.0" micromatch "^4.0.2" - pretty-format "^26.4.2" + pretty-format "^26.5.0" jest-diff@^25.2.1: version "25.5.0" @@ -5654,15 +5677,15 @@ jest-diff@^25.2.1: jest-get-type "^25.2.6" pretty-format "^25.5.0" -jest-diff@^26.4.2: - version "26.4.2" - resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-26.4.2.tgz#a1b7b303bcc534aabdb3bd4a7caf594ac059f5aa" - integrity sha512-6T1XQY8U28WH0Z5rGpQ+VqZSZz8EN8rZcBtfvXaOkbwxIEeRre6qnuZQlbY1AJ4MKDxQF8EkrCvK+hL/VkyYLQ== +jest-diff@^26.5.0: + version "26.5.0" + resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-26.5.0.tgz#bd01cef2d00b2668a0207ef47ab8eb1e33613253" + integrity sha512-CmDMMPkVMxrrh0Dv/4M9kh1tsYsZnYTQMMTvIFpePBSk9wMVfcyfg30TCq+oR9AzGbw8vsI50Gk1HmlMMlhoJg== dependencies: chalk "^4.0.0" - diff-sequences "^26.3.0" + diff-sequences "^26.5.0" jest-get-type "^26.3.0" - pretty-format "^26.4.2" + pretty-format "^26.5.0" jest-docblock@^26.0.0: version "26.0.0" @@ -5671,41 +5694,41 @@ jest-docblock@^26.0.0: dependencies: detect-newline "^3.0.0" -jest-each@^26.4.2: - version "26.4.2" - resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-26.4.2.tgz#bb14f7f4304f2bb2e2b81f783f989449b8b6ffae" - integrity sha512-p15rt8r8cUcRY0Mvo1fpkOGYm7iI8S6ySxgIdfh3oOIv+gHwrHTy5VWCGOecWUhDsit4Nz8avJWdT07WLpbwDA== +jest-each@^26.5.0: + version "26.5.0" + resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-26.5.0.tgz#39197a9d1abdd32ff5b8a9931507ab117c551c02" + integrity sha512-+oO3ykDgypHSyyK2xOsh8XDUwMtg3HoJ4wMNFNHxhcACFbUgaCOfLy+eTCn5pIKhtigU3BmkYt7k3MtTb5pJOQ== dependencies: - "@jest/types" "^26.3.0" + "@jest/types" "^26.5.0" chalk "^4.0.0" jest-get-type "^26.3.0" - jest-util "^26.3.0" - pretty-format "^26.4.2" + jest-util "^26.5.0" + pretty-format "^26.5.0" -jest-environment-jsdom@^26.3.0: - version "26.3.0" - resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-26.3.0.tgz#3b749ba0f3a78e92ba2c9ce519e16e5dd515220c" - integrity sha512-zra8He2btIMJkAzvLaiZ9QwEPGEetbxqmjEBQwhH3CA+Hhhu0jSiEJxnJMbX28TGUvPLxBt/zyaTLrOPF4yMJA== +jest-environment-jsdom@^26.5.0: + version "26.5.0" + resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-26.5.0.tgz#f9a6726402fde787632a69df5ff3390ab04337a3" + integrity sha512-Xuqh3bx8egymaJR566ECkiztIIVOIWWPGIxo++ziWyCOqQChUguRCH1hRXBbfINPbb/SRFe7GCD+SunaUgTmCw== dependencies: - "@jest/environment" "^26.3.0" - "@jest/fake-timers" "^26.3.0" - "@jest/types" "^26.3.0" + "@jest/environment" "^26.5.0" + "@jest/fake-timers" "^26.5.0" + "@jest/types" "^26.5.0" "@types/node" "*" - jest-mock "^26.3.0" - jest-util "^26.3.0" - jsdom "^16.2.2" - -jest-environment-node@^26.3.0: - version "26.3.0" - resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-26.3.0.tgz#56c6cfb506d1597f94ee8d717072bda7228df849" - integrity sha512-c9BvYoo+FGcMj5FunbBgtBnbR5qk3uky8PKyRVpSfe2/8+LrNQMiXX53z6q2kY+j15SkjQCOSL/6LHnCPLVHNw== - dependencies: - "@jest/environment" "^26.3.0" - "@jest/fake-timers" "^26.3.0" - "@jest/types" "^26.3.0" + jest-mock "^26.5.0" + jest-util "^26.5.0" + jsdom "^16.4.0" + +jest-environment-node@^26.5.0: + version "26.5.0" + resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-26.5.0.tgz#3f49ba40abe87209df96f7991015cac996e04563" + integrity sha512-LaYl/ek5mb1VDP1/+jMH2N1Ec4fFUhSYmc8EZqigBgMov/2US8U5l7D3IlOf78e+wARUxPxUpTcybVVzAOu3jg== + dependencies: + "@jest/environment" "^26.5.0" + "@jest/fake-timers" "^26.5.0" + "@jest/types" "^26.5.0" "@types/node" "*" - jest-mock "^26.3.0" - jest-util "^26.3.0" + jest-mock "^26.5.0" + jest-util "^26.5.0" jest-expect-message@^1.0.2: version "1.0.2" @@ -5722,89 +5745,89 @@ jest-get-type@^26.3.0: resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-26.3.0.tgz#e97dc3c3f53c2b406ca7afaed4493b1d099199e0" integrity sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig== -jest-haste-map@^26.3.0: - version "26.3.0" - resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-26.3.0.tgz#c51a3b40100d53ab777bfdad382d2e7a00e5c726" - integrity sha512-DHWBpTJgJhLLGwE5Z1ZaqLTYqeODQIZpby0zMBsCU9iRFHYyhklYqP4EiG73j5dkbaAdSZhgB938mL51Q5LeZA== +jest-haste-map@^26.5.0: + version "26.5.0" + resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-26.5.0.tgz#ba4c48dbf69e0529709bd0d76660d87eefce820a" + integrity sha512-AjB1b53uqN7Cf2VN80x0wJajVZ+BMZC+G2CmWoG143faaMw7IhIcs3FTPuSgOx7cn3/bag7lgCq93naAvLO6EQ== dependencies: - "@jest/types" "^26.3.0" + "@jest/types" "^26.5.0" "@types/graceful-fs" "^4.1.2" "@types/node" "*" anymatch "^3.0.3" fb-watchman "^2.0.0" graceful-fs "^4.2.4" jest-regex-util "^26.0.0" - jest-serializer "^26.3.0" - jest-util "^26.3.0" - jest-worker "^26.3.0" + jest-serializer "^26.5.0" + jest-util "^26.5.0" + jest-worker "^26.5.0" micromatch "^4.0.2" sane "^4.0.3" walker "^1.0.7" optionalDependencies: fsevents "^2.1.2" -jest-jasmine2@^26.4.2: - version "26.4.2" - resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-26.4.2.tgz#18a9d5bec30904267ac5e9797570932aec1e2257" - integrity sha512-z7H4EpCldHN1J8fNgsja58QftxBSL+JcwZmaXIvV9WKIM+x49F4GLHu/+BQh2kzRKHAgaN/E82od+8rTOBPyPA== +jest-jasmine2@^26.5.0: + version "26.5.0" + resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-26.5.0.tgz#49d57db63f49a183813263b41e61e2a5f988e6a3" + integrity sha512-NOA6PLORHTRTROOp5VysKCUVpFAjMMXUS1Xw7FvTMeYK5Ewx4rpxhFqiJ7JT4pENap9g9OuXo4cWR/MwCDTEeQ== dependencies: "@babel/traverse" "^7.1.0" - "@jest/environment" "^26.3.0" - "@jest/source-map" "^26.3.0" - "@jest/test-result" "^26.3.0" - "@jest/types" "^26.3.0" + "@jest/environment" "^26.5.0" + "@jest/source-map" "^26.5.0" + "@jest/test-result" "^26.5.0" + "@jest/types" "^26.5.0" "@types/node" "*" chalk "^4.0.0" co "^4.6.0" - expect "^26.4.2" + expect "^26.5.0" is-generator-fn "^2.0.0" - jest-each "^26.4.2" - jest-matcher-utils "^26.4.2" - jest-message-util "^26.3.0" - jest-runtime "^26.4.2" - jest-snapshot "^26.4.2" - jest-util "^26.3.0" - pretty-format "^26.4.2" + jest-each "^26.5.0" + jest-matcher-utils "^26.5.0" + jest-message-util "^26.5.0" + jest-runtime "^26.5.0" + jest-snapshot "^26.5.0" + jest-util "^26.5.0" + pretty-format "^26.5.0" throat "^5.0.0" -jest-leak-detector@^26.4.2: - version "26.4.2" - resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-26.4.2.tgz#c73e2fa8757bf905f6f66fb9e0070b70fa0f573f" - integrity sha512-akzGcxwxtE+9ZJZRW+M2o+nTNnmQZxrHJxX/HjgDaU5+PLmY1qnQPnMjgADPGCRPhB+Yawe1iij0REe+k/aHoA== +jest-leak-detector@^26.5.0: + version "26.5.0" + resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-26.5.0.tgz#a5671ffbc6308e45ad31b42cb2ef0722488a4e57" + integrity sha512-xZHvvTBbj3gUTtunLjPqP594BT6IUEpwA0AQpEQjVR8eBq8+R3qgU/KhoAcVcV0iqRM6pXtX7hKPZ5mLdynVSQ== dependencies: jest-get-type "^26.3.0" - pretty-format "^26.4.2" + pretty-format "^26.5.0" -jest-matcher-utils@^26.4.2: - version "26.4.2" - resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-26.4.2.tgz#fa81f3693f7cb67e5fc1537317525ef3b85f4b06" - integrity sha512-KcbNqWfWUG24R7tu9WcAOKKdiXiXCbMvQYT6iodZ9k1f7065k0keUOW6XpJMMvah+hTfqkhJhRXmA3r3zMAg0Q== +jest-matcher-utils@^26.5.0: + version "26.5.0" + resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-26.5.0.tgz#1195d6a35c4c710ad286b775b966f3fdb7a2102d" + integrity sha512-QgbbxqFT8wiTi4o/7MWj2vHlcmMjACG8vnJ9pJ7svVDmkzEnTUGdHXWLKB1aZhbnyXetMNRF+TSMcDS9aGfuzA== dependencies: chalk "^4.0.0" - jest-diff "^26.4.2" + jest-diff "^26.5.0" jest-get-type "^26.3.0" - pretty-format "^26.4.2" + pretty-format "^26.5.0" -jest-message-util@^26.3.0: - version "26.3.0" - resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-26.3.0.tgz#3bdb538af27bb417f2d4d16557606fd082d5841a" - integrity sha512-xIavRYqr4/otGOiLxLZGj3ieMmjcNE73Ui+LdSW/Y790j5acqCsAdDiLIbzHCZMpN07JOENRWX5DcU+OQ+TjTA== +jest-message-util@^26.5.0: + version "26.5.0" + resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-26.5.0.tgz#87f8c440dace55095d247442638c70b892836895" + integrity sha512-UEOqdoTfX0AFyReL4q5N3CfDBWt+AtQzeszZuuGapU39vwEk90rTSBghCA/3FFEZzvGfH2LE4+0NaBI81Cu2Ow== dependencies: "@babel/code-frame" "^7.0.0" - "@jest/types" "^26.3.0" - "@types/stack-utils" "^1.0.1" + "@jest/types" "^26.5.0" + "@types/stack-utils" "^2.0.0" chalk "^4.0.0" graceful-fs "^4.2.4" micromatch "^4.0.2" slash "^3.0.0" stack-utils "^2.0.2" -jest-mock@^26.3.0: - version "26.3.0" - resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-26.3.0.tgz#ee62207c3c5ebe5f35b760e1267fee19a1cfdeba" - integrity sha512-PeaRrg8Dc6mnS35gOo/CbZovoDPKAeB1FICZiuagAgGvbWdNNyjQjkOaGUa/3N3JtpQ/Mh9P4A2D4Fv51NnP8Q== +jest-mock@^26.5.0: + version "26.5.0" + resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-26.5.0.tgz#56efcea2dfd550b77ceb5ef280cf8c6114ef32db" + integrity sha512-8D1UmbnmjdkvTdYygTW26KZr95Aw0/3gEmMZQWkxIEAgEESVDbwDG8ygRlXSY214x9hFjtKezvfQUp36Ogl75w== dependencies: - "@jest/types" "^26.3.0" + "@jest/types" "^26.5.0" "@types/node" "*" jest-pnp-resolver@^1.2.2: @@ -5817,117 +5840,118 @@ jest-regex-util@^26.0.0: resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-26.0.0.tgz#d25e7184b36e39fd466c3bc41be0971e821fee28" integrity sha512-Gv3ZIs/nA48/Zvjrl34bf+oD76JHiGDUxNOVgUjh3j890sblXryjY4rss71fPtD/njchl6PSE2hIhvyWa1eT0A== -jest-resolve-dependencies@^26.4.2: - version "26.4.2" - resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-26.4.2.tgz#739bdb027c14befb2fe5aabbd03f7bab355f1dc5" - integrity sha512-ADHaOwqEcVc71uTfySzSowA/RdxUpCxhxa2FNLiin9vWLB1uLPad3we+JSSROq5+SrL9iYPdZZF8bdKM7XABTQ== +jest-resolve-dependencies@^26.5.0: + version "26.5.0" + resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-26.5.0.tgz#6c4a863685e6c63b225e903c6006a70fb8ecac0a" + integrity sha512-2e3YdS+dlTY00s0CEiMAa7Ap/mPfPaQV7d6Fzp7BQqHXO/2QhXn/yVTxnxR+dOIo/NOh7pqXZTQSn+2iWwPQQA== dependencies: - "@jest/types" "^26.3.0" + "@jest/types" "^26.5.0" jest-regex-util "^26.0.0" - jest-snapshot "^26.4.2" + jest-snapshot "^26.5.0" -jest-resolve@^26.4.0: - version "26.4.0" - resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-26.4.0.tgz#6dc0af7fb93e65b73fec0368ca2b76f3eb59a6d7" - integrity sha512-bn/JoZTEXRSlEx3+SfgZcJAVuTMOksYq9xe9O6s4Ekg84aKBObEaVXKOEilULRqviSLAYJldnoWV9c07kwtiCg== +jest-resolve@^26.5.0: + version "26.5.0" + resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-26.5.0.tgz#31f68344dd88af70f00bc8bb531de6687565c680" + integrity sha512-c34L8Lrw4fFzRiCLzwePziKRfHitjsAnY15ID0e9Se4ISikmZ5T9icLEFAGHnfaxfb+9r8EKdrbg89gjRdrQvw== dependencies: - "@jest/types" "^26.3.0" + "@jest/types" "^26.5.0" chalk "^4.0.0" + escalade "^3.1.0" graceful-fs "^4.2.4" jest-pnp-resolver "^1.2.2" - jest-util "^26.3.0" - read-pkg-up "^7.0.1" + jest-util "^26.5.0" resolve "^1.17.0" slash "^3.0.0" -jest-runner@^26.4.2: - version "26.4.2" - resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-26.4.2.tgz#c3ec5482c8edd31973bd3935df5a449a45b5b853" - integrity sha512-FgjDHeVknDjw1gRAYaoUoShe1K3XUuFMkIaXbdhEys+1O4bEJS8Avmn4lBwoMfL8O5oFTdWYKcf3tEJyyYyk8g== +jest-runner@^26.5.0: + version "26.5.1" + resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-26.5.1.tgz#a56c1e1fbed7470ae69ebd5456ba4d4443c8701f" + integrity sha512-gFHXehvMZD8qwNzaIl2MDFFI99m4kKk06H2xh2u4IkC+tHYIJjE5J175l9cbL3RuU2slfS2m57KZgcPZfbTavQ== dependencies: - "@jest/console" "^26.3.0" - "@jest/environment" "^26.3.0" - "@jest/test-result" "^26.3.0" - "@jest/types" "^26.3.0" + "@jest/console" "^26.5.0" + "@jest/environment" "^26.5.0" + "@jest/test-result" "^26.5.0" + "@jest/types" "^26.5.0" "@types/node" "*" chalk "^4.0.0" emittery "^0.7.1" exit "^0.1.2" graceful-fs "^4.2.4" - jest-config "^26.4.2" + jest-config "^26.5.0" jest-docblock "^26.0.0" - jest-haste-map "^26.3.0" - jest-leak-detector "^26.4.2" - jest-message-util "^26.3.0" - jest-resolve "^26.4.0" - jest-runtime "^26.4.2" - jest-util "^26.3.0" - jest-worker "^26.3.0" + jest-haste-map "^26.5.0" + jest-leak-detector "^26.5.0" + jest-message-util "^26.5.0" + jest-resolve "^26.5.0" + jest-runtime "^26.5.0" + jest-util "^26.5.0" + jest-worker "^26.5.0" source-map-support "^0.5.6" throat "^5.0.0" -jest-runtime@^26.4.2: - version "26.4.2" - resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-26.4.2.tgz#94ce17890353c92e4206580c73a8f0c024c33c42" - integrity sha512-4Pe7Uk5a80FnbHwSOk7ojNCJvz3Ks2CNQWT5Z7MJo4tX0jb3V/LThKvD9tKPNVNyeMH98J/nzGlcwc00R2dSHQ== - dependencies: - "@jest/console" "^26.3.0" - "@jest/environment" "^26.3.0" - "@jest/fake-timers" "^26.3.0" - "@jest/globals" "^26.4.2" - "@jest/source-map" "^26.3.0" - "@jest/test-result" "^26.3.0" - "@jest/transform" "^26.3.0" - "@jest/types" "^26.3.0" +jest-runtime@^26.5.0: + version "26.5.0" + resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-26.5.0.tgz#c9b3eeb5ead70710ea17f6058df405cac31bb926" + integrity sha512-CujjQWpMcsvSg0L+G3iEz6s7Th5IbiZseAaw/5R7Eb+IfnJdyPdjJ+EoXNV8n07snvW5nZTwV9QIfy6Vjris8A== + dependencies: + "@jest/console" "^26.5.0" + "@jest/environment" "^26.5.0" + "@jest/fake-timers" "^26.5.0" + "@jest/globals" "^26.5.0" + "@jest/source-map" "^26.5.0" + "@jest/test-result" "^26.5.0" + "@jest/transform" "^26.5.0" + "@jest/types" "^26.5.0" "@types/yargs" "^15.0.0" chalk "^4.0.0" collect-v8-coverage "^1.0.0" exit "^0.1.2" glob "^7.1.3" graceful-fs "^4.2.4" - jest-config "^26.4.2" - jest-haste-map "^26.3.0" - jest-message-util "^26.3.0" - jest-mock "^26.3.0" + jest-config "^26.5.0" + jest-haste-map "^26.5.0" + jest-message-util "^26.5.0" + jest-mock "^26.5.0" jest-regex-util "^26.0.0" - jest-resolve "^26.4.0" - jest-snapshot "^26.4.2" - jest-util "^26.3.0" - jest-validate "^26.4.2" + jest-resolve "^26.5.0" + jest-snapshot "^26.5.0" + jest-util "^26.5.0" + jest-validate "^26.5.0" slash "^3.0.0" strip-bom "^4.0.0" - yargs "^15.3.1" + yargs "^16.0.3" -jest-serializer@^26.3.0: - version "26.3.0" - resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-26.3.0.tgz#1c9d5e1b74d6e5f7e7f9627080fa205d976c33ef" - integrity sha512-IDRBQBLPlKa4flg77fqg0n/pH87tcRKwe8zxOVTWISxGpPHYkRZ1dXKyh04JOja7gppc60+soKVZ791mruVdow== +jest-serializer@^26.5.0: + version "26.5.0" + resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-26.5.0.tgz#f5425cc4c5f6b4b355f854b5f0f23ec6b962bc13" + integrity sha512-+h3Gf5CDRlSLdgTv7y0vPIAoLgX/SI7T4v6hy+TEXMgYbv+ztzbg5PSN6mUXAT/hXYHvZRWm+MaObVfqkhCGxA== dependencies: "@types/node" "*" graceful-fs "^4.2.4" -jest-snapshot@^26.4.2: - version "26.4.2" - resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-26.4.2.tgz#87d3ac2f2bd87ea8003602fbebd8fcb9e94104f6" - integrity sha512-N6Uub8FccKlf5SBFnL2Ri/xofbaA68Cc3MGjP/NuwgnsvWh+9hLIR/DhrxbSiKXMY9vUW5dI6EW1eHaDHqe9sg== +jest-snapshot@^26.5.0: + version "26.5.0" + resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-26.5.0.tgz#2b76366e2d621775f39733e5764492b2e44b0bcd" + integrity sha512-WTNJef67o7cCvwAe5foVCNqG3MzIW/CyU4FZvMrhBPZsJeXwfBY7kfOlydZigxtcytnvmNE2pqznOfD5EcQgrQ== dependencies: "@babel/types" "^7.0.0" - "@jest/types" "^26.3.0" + "@jest/types" "^26.5.0" + "@types/babel__traverse" "^7.0.4" "@types/prettier" "^2.0.0" chalk "^4.0.0" - expect "^26.4.2" + expect "^26.5.0" graceful-fs "^4.2.4" - jest-diff "^26.4.2" + jest-diff "^26.5.0" jest-get-type "^26.3.0" - jest-haste-map "^26.3.0" - jest-matcher-utils "^26.4.2" - jest-message-util "^26.3.0" - jest-resolve "^26.4.0" + jest-haste-map "^26.5.0" + jest-matcher-utils "^26.5.0" + jest-message-util "^26.5.0" + jest-resolve "^26.5.0" natural-compare "^1.4.0" - pretty-format "^26.4.2" + pretty-format "^26.5.0" semver "^7.3.2" -jest-util@^26.1.0, jest-util@^26.3.0: +jest-util@^26.1.0: version "26.3.0" resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-26.3.0.tgz#a8974b191df30e2bf523ebbfdbaeb8efca535b3e" integrity sha512-4zpn6bwV0+AMFN0IYhH/wnzIQzRaYVrz1A8sYnRnj4UXDXbOVtWmlaZkO9mipFqZ13okIfN87aDoJWB7VH6hcw== @@ -5939,48 +5963,60 @@ jest-util@^26.1.0, jest-util@^26.3.0: is-ci "^2.0.0" micromatch "^4.0.2" -jest-validate@^26.4.2: - version "26.4.2" - resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-26.4.2.tgz#e871b0dfe97747133014dcf6445ee8018398f39c" - integrity sha512-blft+xDX7XXghfhY0mrsBCYhX365n8K5wNDC4XAcNKqqjEzsRUSXP44m6PL0QJEW2crxQFLLztVnJ4j7oPlQrQ== +jest-util@^26.5.0: + version "26.5.0" + resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-26.5.0.tgz#f4e0fb80cf82db127d68c7c5b2749a427a80b450" + integrity sha512-CSQ0uzE7JdHDCQo3K8jlyWRIF2xNLdpu9nbjo8okGDanaNsF7WonhusFvjOg7QiWn1SThe7wFRh8Jx2ls1Gx4Q== dependencies: - "@jest/types" "^26.3.0" + "@jest/types" "^26.5.0" + "@types/node" "*" + chalk "^4.0.0" + graceful-fs "^4.2.4" + is-ci "^2.0.0" + micromatch "^4.0.2" + +jest-validate@^26.5.0: + version "26.5.0" + resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-26.5.0.tgz#6e417ec5066e315752da1350797a89fc5907f97a" + integrity sha512-603+CHUJD4nAZ+tY/A+wu3g8KEcBey2a7YOMU9W8e4u7mCezhaDasw20ITaZHoR2R2MZhThL6jApPSj0GvezrQ== + dependencies: + "@jest/types" "^26.5.0" camelcase "^6.0.0" chalk "^4.0.0" jest-get-type "^26.3.0" leven "^3.1.0" - pretty-format "^26.4.2" + pretty-format "^26.5.0" -jest-watcher@^26.3.0: - version "26.3.0" - resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-26.3.0.tgz#f8ef3068ddb8af160ef868400318dc4a898eed08" - integrity sha512-XnLdKmyCGJ3VoF6G/p5ohbJ04q/vv5aH9ENI+i6BL0uu9WWB6Z7Z2lhQQk0d2AVZcRGp1yW+/TsoToMhBFPRdQ== +jest-watcher@^26.5.0: + version "26.5.0" + resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-26.5.0.tgz#3aedd339ee3dfb5801e71ae9a00da08369679317" + integrity sha512-INLKhpc9QbO5zy2HkS1CJUncByrCLFDZQOY30d9ojiuGO02ofL1BygDRDRtFvT/oWSZ8Y0fbkrr1oXU2ay/MqA== dependencies: - "@jest/test-result" "^26.3.0" - "@jest/types" "^26.3.0" + "@jest/test-result" "^26.5.0" + "@jest/types" "^26.5.0" "@types/node" "*" ansi-escapes "^4.2.1" chalk "^4.0.0" - jest-util "^26.3.0" + jest-util "^26.5.0" string-length "^4.0.1" -jest-worker@^26.3.0: - version "26.3.0" - resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-26.3.0.tgz#7c8a97e4f4364b4f05ed8bca8ca0c24de091871f" - integrity sha512-Vmpn2F6IASefL+DVBhPzI2J9/GJUsqzomdeN+P+dK8/jKxbh8R3BtFnx3FIta7wYlPU62cpJMJQo4kuOowcMnw== +jest-worker@^26.5.0: + version "26.5.0" + resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-26.5.0.tgz#87deee86dbbc5f98d9919e0dadf2c40e3152fa30" + integrity sha512-kTw66Dn4ZX7WpjZ7T/SUDgRhapFRKWmisVAF0Rv4Fu8SLFD7eLbqpLvbxVqYhSgaWa7I+bW7pHnbyfNsH6stug== dependencies: "@types/node" "*" merge-stream "^2.0.0" supports-color "^7.0.0" -jest@^26.4.2: - version "26.4.2" - resolved "https://registry.yarnpkg.com/jest/-/jest-26.4.2.tgz#7e8bfb348ec33f5459adeaffc1a25d5752d9d312" - integrity sha512-LLCjPrUh98Ik8CzW8LLVnSCfLaiY+wbK53U7VxnFSX7Q+kWC4noVeDvGWIFw0Amfq1lq2VfGm7YHWSLBV62MJw== +jest@^26.5.0: + version "26.5.0" + resolved "https://registry.yarnpkg.com/jest/-/jest-26.5.0.tgz#d973c13a3843587b89b02dab1fbcd1f3bf111f09" + integrity sha512-yW1QTkdpxVWTV2M5cOwVdEww8dRGqL5bb7FOG3YQoMtf7oReCEawmU0+tOKkZUSfcOymbXmCfdBQLzuwOLCx0w== dependencies: - "@jest/core" "^26.4.2" + "@jest/core" "^26.5.0" import-local "^3.0.2" - jest-cli "^26.4.2" + jest-cli "^26.5.0" js-tokens@^4.0.0: version "4.0.0" @@ -6000,7 +6036,7 @@ jsbn@~0.1.0: resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" integrity sha1-peZUwuWi3rXyAdls77yoDA7y9RM= -jsdom@^16.2.2: +jsdom@^16.4.0: version "16.4.0" resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-16.4.0.tgz#36005bde2d136f73eee1a830c6d45e55408edddb" integrity sha512-lYMm3wYdgPhrl7pDcRmvzPhhrGVBeVhPIqeHjzeiHN3DFmD1RBpbExbi8vU7BJdH8VAZYovR8DMt0PNNDM7k8w== @@ -7576,12 +7612,12 @@ pretty-format@^25.2.1, pretty-format@^25.5.0: ansi-styles "^4.0.0" react-is "^16.12.0" -pretty-format@^26.4.2: - version "26.4.2" - resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-26.4.2.tgz#d081d032b398e801e2012af2df1214ef75a81237" - integrity sha512-zK6Gd8zDsEiVydOCGLkoBoZuqv8VTiHyAbKznXe/gaph/DAeZOmit9yMfgIz5adIgAMMs5XfoYSwAX3jcCO1tA== +pretty-format@^26.5.0: + version "26.5.0" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-26.5.0.tgz#3320e4952f8e6918fc8c26c6df7aad9734818ac2" + integrity sha512-NcgRuuTutUJ9+Br4P19DFThpJYnYBiugfRmZEA6pXrUeG+IcMSmppb88rU+iPA+XAJcjTYlCb5Ed6miHg/Qqqw== dependencies: - "@jest/types" "^26.3.0" + "@jest/types" "^26.5.0" ansi-regex "^5.0.0" ansi-styles "^4.0.0" react-is "^16.12.0" From 62d679111ca82021345eda46cacc969b8ebc8417 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 6 Oct 2020 07:54:14 +0000 Subject: [PATCH 13/16] chore(deps-dev): bump @typescript-eslint/eslint-plugin (#2080) --- package.json | 2 +- yarn.lock | 61 +++++++++++++++++++++++++++++++++++++++++----------- 2 files changed, 49 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index 974fd53a55..e59f984912 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "test:update": "lerna run test:update --concurrency=1 --stream" }, "devDependencies": { - "@typescript-eslint/eslint-plugin": "^4.3.0", + "@typescript-eslint/eslint-plugin": "^4.4.0", "@typescript-eslint/parser": "^4.3.0", "eslint": "^7.10.0", "eslint-config-prettier": "^6.12.0", diff --git a/yarn.lock b/yarn.lock index 17abbc8850..fa2c9ab834 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1712,28 +1712,28 @@ dependencies: "@types/yargs-parser" "*" -"@typescript-eslint/eslint-plugin@^4.3.0": - version "4.3.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.3.0.tgz#1a23d904bf8ea248d09dc3761af530d90f39c8fa" - integrity sha512-RqEcaHuEKnn3oPFislZ6TNzsBLqpZjN93G69SS+laav/I8w/iGMuMq97P0D2/2/kW4SCebHggqhbcCfbDaaX+g== +"@typescript-eslint/eslint-plugin@^4.4.0": + version "4.4.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.4.0.tgz#0321684dd2b902c89128405cf0385e9fe8561934" + integrity sha512-RVt5wU9H/2H+N/ZrCasTXdGbUTkbf7Hfi9eLiA8vPQkzUJ/bLDCC3CsoZioPrNcnoyN8r0gT153dC++A4hKBQQ== dependencies: - "@typescript-eslint/experimental-utils" "4.3.0" - "@typescript-eslint/scope-manager" "4.3.0" + "@typescript-eslint/experimental-utils" "4.4.0" + "@typescript-eslint/scope-manager" "4.4.0" debug "^4.1.1" functional-red-black-tree "^1.0.1" regexpp "^3.0.0" semver "^7.3.2" tsutils "^3.17.1" -"@typescript-eslint/experimental-utils@4.3.0": - version "4.3.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-4.3.0.tgz#3f3c6c508e01b8050d51b016e7f7da0e3aefcb87" - integrity sha512-cmmIK8shn3mxmhpKfzMMywqiEheyfXLV/+yPDnOTvQX/ztngx7Lg/OD26J8gTZfkLKUmaEBxO2jYP3keV7h2OQ== +"@typescript-eslint/experimental-utils@4.4.0": + version "4.4.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-4.4.0.tgz#62a05d3f543b8fc5dec4982830618ea4d030e1a9" + integrity sha512-01+OtK/oWeSJTjQcyzDztfLF1YjvKpLFo+JZmurK/qjSRcyObpIecJ4rckDoRCSh5Etw+jKfdSzVEHevh9gJ1w== dependencies: "@types/json-schema" "^7.0.3" - "@typescript-eslint/scope-manager" "4.3.0" - "@typescript-eslint/types" "4.3.0" - "@typescript-eslint/typescript-estree" "4.3.0" + "@typescript-eslint/scope-manager" "4.4.0" + "@typescript-eslint/types" "4.4.0" + "@typescript-eslint/typescript-estree" "4.4.0" eslint-scope "^5.0.0" eslint-utils "^2.0.0" @@ -1755,11 +1755,24 @@ "@typescript-eslint/types" "4.3.0" "@typescript-eslint/visitor-keys" "4.3.0" +"@typescript-eslint/scope-manager@4.4.0": + version "4.4.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.4.0.tgz#2f3dd27692a12cc9a046a90ba6a9d8cb7731190a" + integrity sha512-r2FIeeU1lmW4K3CxgOAt8djI5c6Q/5ULAgdVo9AF3hPMpu0B14WznBAtxrmB/qFVbVIB6fSx2a+EVXuhSVMEyA== + dependencies: + "@typescript-eslint/types" "4.4.0" + "@typescript-eslint/visitor-keys" "4.4.0" + "@typescript-eslint/types@4.3.0": version "4.3.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.3.0.tgz#1f0b2d5e140543e2614f06d48fb3ae95193c6ddf" integrity sha512-Cx9TpRvlRjOppGsU6Y6KcJnUDOelja2NNCX6AZwtVHRzaJkdytJWMuYiqi8mS35MRNA3cJSwDzXePfmhU6TANw== +"@typescript-eslint/types@4.4.0": + version "4.4.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.4.0.tgz#63440ef87a54da7399a13bdd4b82060776e9e621" + integrity sha512-nU0VUpzanFw3jjX+50OTQy6MehVvf8pkqFcURPAE06xFNFenMj1GPEI6IESvp7UOHAnq+n/brMirZdR+7rCrlA== + "@typescript-eslint/typescript-estree@4.3.0": version "4.3.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.3.0.tgz#0edc1068e6b2e4c7fdc54d61e329fce76241cee8" @@ -1774,6 +1787,20 @@ semver "^7.3.2" tsutils "^3.17.1" +"@typescript-eslint/typescript-estree@4.4.0": + version "4.4.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.4.0.tgz#16a2df7c16710ddd5406b32b86b9c1124b1ca526" + integrity sha512-Fh85feshKXwki4nZ1uhCJHmqKJqCMba+8ZicQIhNi5d5jSQFteWiGeF96DTjO8br7fn+prTP+t3Cz/a/3yOKqw== + dependencies: + "@typescript-eslint/types" "4.4.0" + "@typescript-eslint/visitor-keys" "4.4.0" + debug "^4.1.1" + globby "^11.0.1" + is-glob "^4.0.1" + lodash "^4.17.15" + semver "^7.3.2" + tsutils "^3.17.1" + "@typescript-eslint/visitor-keys@4.3.0": version "4.3.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.3.0.tgz#0e5ab0a09552903edeae205982e8521e17635ae0" @@ -1782,6 +1809,14 @@ "@typescript-eslint/types" "4.3.0" eslint-visitor-keys "^2.0.0" +"@typescript-eslint/visitor-keys@4.4.0": + version "4.4.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.4.0.tgz#0a9118344082f14c0f051342a74b42dfdb012640" + integrity sha512-oBWeroUZCVsHLiWRdcTXJB7s1nB3taFY8WGvS23tiAlT6jXVvsdAV4rs581bgdEjOhn43q6ro7NkOiLKu6kFqA== + dependencies: + "@typescript-eslint/types" "4.4.0" + eslint-visitor-keys "^2.0.0" + "@webassemblyjs/ast@1.9.0": version "1.9.0" resolved "https://registry.yarnpkg.com/@webassemblyjs/ast/-/ast-1.9.0.tgz#bd850604b4042459a5a41cd7d338cbed695ed964" From 8da88af1a6f6cd2cf2d7c9a921cadce9fb32319d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 6 Oct 2020 09:16:36 +0000 Subject: [PATCH 14/16] chore(deps-dev): bump @types/node from 10.17.35 to 10.17.37 (#2082) --- packages/@jsii/dotnet-runtime-test/package.json | 2 +- packages/@jsii/dotnet-runtime/package.json | 2 +- packages/@jsii/go-runtime/package.json | 2 +- packages/@jsii/integ-test/package.json | 2 +- packages/@jsii/java-runtime/package.json | 2 +- packages/@jsii/kernel/package.json | 2 +- packages/@jsii/runtime/package.json | 2 +- packages/@jsii/spec/package.json | 2 +- packages/@scope/jsii-calc-base-of-base/package.json | 2 +- packages/@scope/jsii-calc-base/package.json | 2 +- packages/@scope/jsii-calc-lib/package.json | 2 +- packages/codemaker/package.json | 2 +- packages/jsii-calc/package.json | 2 +- packages/jsii-config/package.json | 2 +- packages/jsii-diff/package.json | 2 +- packages/jsii-pacmak/package.json | 2 +- packages/jsii-reflect/package.json | 2 +- packages/jsii-rosetta/package.json | 2 +- packages/jsii/package.json | 2 +- packages/oo-ascii-tree/package.json | 2 +- yarn.lock | 8 ++++---- 21 files changed, 24 insertions(+), 24 deletions(-) diff --git a/packages/@jsii/dotnet-runtime-test/package.json b/packages/@jsii/dotnet-runtime-test/package.json index 1ec74e09e1..a1d9f9e397 100644 --- a/packages/@jsii/dotnet-runtime-test/package.json +++ b/packages/@jsii/dotnet-runtime-test/package.json @@ -31,7 +31,7 @@ }, "devDependencies": { "@jsii/dotnet-runtime": "^0.0.0", - "@types/node": "^10.17.35", + "@types/node": "^10.17.37", "jsii-calc": "^0.0.0", "jsii-pacmak": "^0.0.0", "typescript": "~3.9.7" diff --git a/packages/@jsii/dotnet-runtime/package.json b/packages/@jsii/dotnet-runtime/package.json index 4e4a7702bb..f53f748282 100644 --- a/packages/@jsii/dotnet-runtime/package.json +++ b/packages/@jsii/dotnet-runtime/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@jsii/runtime": "^0.0.0", - "@types/node": "^10.17.35", + "@types/node": "^10.17.37", "@types/semver": "^7.3.4", "jsii-build-tools": "^0.0.0", "semver": "^7.3.2", diff --git a/packages/@jsii/go-runtime/package.json b/packages/@jsii/go-runtime/package.json index 205567cc16..865ae6d94f 100644 --- a/packages/@jsii/go-runtime/package.json +++ b/packages/@jsii/go-runtime/package.json @@ -21,7 +21,7 @@ }, "devDependencies": { "@types/fs-extra": "^8.1.1", - "@types/node": "^10.17.35", + "@types/node": "^10.17.37", "codemaker": "^0.0.0", "fs-extra": "^9.0.1", "jsii-calc": "^0.0.0", diff --git a/packages/@jsii/integ-test/package.json b/packages/@jsii/integ-test/package.json index 641b753928..1a32a7c703 100644 --- a/packages/@jsii/integ-test/package.json +++ b/packages/@jsii/integ-test/package.json @@ -30,7 +30,7 @@ "@types/dotenv": "^8.2.0", "@types/fs-extra": "^8.1.1", "@types/jest": "^26.0.14", - "@types/node": "^10.17.35", + "@types/node": "^10.17.37", "@types/tar": "^4.0.3", "eslint": "^7.10.0", "prettier": "^2.1.2", diff --git a/packages/@jsii/java-runtime/package.json b/packages/@jsii/java-runtime/package.json index 521a811435..ca1512df2c 100644 --- a/packages/@jsii/java-runtime/package.json +++ b/packages/@jsii/java-runtime/package.json @@ -33,7 +33,7 @@ }, "devDependencies": { "@jsii/runtime": "^0.0.0", - "@types/node": "^10.17.35", + "@types/node": "^10.17.37", "jsii-build-tools": "^0.0.0", "typescript": "~3.9.7" } diff --git a/packages/@jsii/kernel/package.json b/packages/@jsii/kernel/package.json index f6fdd56586..461968ffa4 100644 --- a/packages/@jsii/kernel/package.json +++ b/packages/@jsii/kernel/package.json @@ -42,7 +42,7 @@ "@types/fs-extra": "^8.1.1", "@types/jest": "^26.0.14", "@types/jest-expect-message": "^1.0.2", - "@types/node": "^10.17.35", + "@types/node": "^10.17.37", "@types/tar": "^4.0.3", "eslint": "^7.10.0", "jest": "^26.5.0", diff --git a/packages/@jsii/runtime/package.json b/packages/@jsii/runtime/package.json index 745b6ebde6..18abcd66f4 100644 --- a/packages/@jsii/runtime/package.json +++ b/packages/@jsii/runtime/package.json @@ -41,7 +41,7 @@ "@scope/jsii-calc-base": "^0.0.0", "@scope/jsii-calc-lib": "^0.0.0", "@types/jest": "^26.0.14", - "@types/node": "^10.17.35", + "@types/node": "^10.17.37", "eslint": "^7.10.0", "jest": "^26.5.0", "jsii-build-tools": "^0.0.0", diff --git a/packages/@jsii/spec/package.json b/packages/@jsii/spec/package.json index 08833640d6..f2549e0b96 100644 --- a/packages/@jsii/spec/package.json +++ b/packages/@jsii/spec/package.json @@ -35,7 +35,7 @@ }, "devDependencies": { "@types/jest": "^26.0.14", - "@types/node": "^10.17.35", + "@types/node": "^10.17.37", "eslint": "^7.10.0", "jest": "^26.5.0", "jsii-build-tools": "^0.0.0", diff --git a/packages/@scope/jsii-calc-base-of-base/package.json b/packages/@scope/jsii-calc-base-of-base/package.json index 777678d360..040763c7a9 100644 --- a/packages/@scope/jsii-calc-base-of-base/package.json +++ b/packages/@scope/jsii-calc-base-of-base/package.json @@ -30,7 +30,7 @@ "test:update": "npm run build && UPDATE_DIFF=1 npm run test" }, "devDependencies": { - "@types/node": "^10.17.35", + "@types/node": "^10.17.37", "jsii": "^0.0.0", "jsii-build-tools": "^0.0.0", "jsii-rosetta": "^0.0.0", diff --git a/packages/@scope/jsii-calc-base/package.json b/packages/@scope/jsii-calc-base/package.json index 2ff763dc70..f9ff2894cd 100644 --- a/packages/@scope/jsii-calc-base/package.json +++ b/packages/@scope/jsii-calc-base/package.json @@ -35,7 +35,7 @@ "@scope/jsii-calc-base-of-base": "^0.0.0" }, "devDependencies": { - "@types/node": "^10.17.35", + "@types/node": "^10.17.37", "jsii": "^0.0.0", "jsii-build-tools": "^0.0.0", "jsii-rosetta": "^0.0.0", diff --git a/packages/@scope/jsii-calc-lib/package.json b/packages/@scope/jsii-calc-lib/package.json index 76972ab8fa..7aa8df8706 100644 --- a/packages/@scope/jsii-calc-lib/package.json +++ b/packages/@scope/jsii-calc-lib/package.json @@ -39,7 +39,7 @@ "@scope/jsii-calc-base-of-base": "^0.0.0" }, "devDependencies": { - "@types/node": "^10.17.35", + "@types/node": "^10.17.37", "jsii": "^0.0.0", "jsii-build-tools": "^0.0.0", "jsii-rosetta": "^0.0.0", diff --git a/packages/codemaker/package.json b/packages/codemaker/package.json index 779cc3943e..a7d2d00981 100644 --- a/packages/codemaker/package.json +++ b/packages/codemaker/package.json @@ -38,7 +38,7 @@ "devDependencies": { "@types/fs-extra": "^8.1.1", "@types/jest": "^26.0.14", - "@types/node": "^10.17.35", + "@types/node": "^10.17.37", "eslint": "^7.10.0", "jest": "^26.5.0", "prettier": "^2.1.2", diff --git a/packages/jsii-calc/package.json b/packages/jsii-calc/package.json index 6863d3c036..75923479de 100644 --- a/packages/jsii-calc/package.json +++ b/packages/jsii-calc/package.json @@ -49,7 +49,7 @@ "@scope/jsii-calc-lib": "^0.0.0" }, "devDependencies": { - "@types/node": "^10.17.35", + "@types/node": "^10.17.37", "eslint": "^7.10.0", "jsii": "^0.0.0", "jsii-build-tools": "^0.0.0", diff --git a/packages/jsii-config/package.json b/packages/jsii-config/package.json index 8ef904b756..e01887b16a 100644 --- a/packages/jsii-config/package.json +++ b/packages/jsii-config/package.json @@ -22,7 +22,7 @@ "@types/inquirer": "^7.3.1", "@types/jest": "^26.0.14", "@types/jest-expect-message": "^1.0.2", - "@types/node": "^10.17.35", + "@types/node": "^10.17.37", "@types/yargs": "^15.0.7", "eslint": "^7.10.0", "jest": "^26.5.0", diff --git a/packages/jsii-diff/package.json b/packages/jsii-diff/package.json index cce8f4ab5b..b67013c1a0 100644 --- a/packages/jsii-diff/package.json +++ b/packages/jsii-diff/package.json @@ -44,7 +44,7 @@ "@types/fs-extra": "^8.1.1", "@types/jest": "^26.0.14", "@types/jest-expect-message": "^1.0.2", - "@types/node": "^10.17.35", + "@types/node": "^10.17.37", "@types/tar-fs": "^2.0.0", "@types/yargs": "^15.0.7", "eslint": "^7.10.0", diff --git a/packages/jsii-pacmak/package.json b/packages/jsii-pacmak/package.json index 7e7f99e6ac..210fe81e22 100644 --- a/packages/jsii-pacmak/package.json +++ b/packages/jsii-pacmak/package.json @@ -58,7 +58,7 @@ "@types/fs-extra": "^8.1.1", "@types/jest": "^26.0.14", "@types/mock-fs": "^4.10.0", - "@types/node": "^10.17.35", + "@types/node": "^10.17.37", "@types/semver": "^7.3.4", "@types/yargs": "^15.0.7", "eslint": "^7.10.0", diff --git a/packages/jsii-reflect/package.json b/packages/jsii-reflect/package.json index 0fc54c0bbf..b2dd23ce2b 100644 --- a/packages/jsii-reflect/package.json +++ b/packages/jsii-reflect/package.json @@ -44,7 +44,7 @@ "@scope/jsii-calc-lib": "^0.0.0", "@types/fs-extra": "^8.1.1", "@types/jest": "^26.0.14", - "@types/node": "^10.17.35", + "@types/node": "^10.17.37", "@types/yargs": "^15.0.7", "eslint": "^7.10.0", "jest": "^26.5.0", diff --git a/packages/jsii-rosetta/package.json b/packages/jsii-rosetta/package.json index 19d68c0596..4a278c4ec4 100644 --- a/packages/jsii-rosetta/package.json +++ b/packages/jsii-rosetta/package.json @@ -20,7 +20,7 @@ "@types/fs-extra": "^8.1.1", "@types/jest": "^26.0.14", "@types/mock-fs": "^4.10.0", - "@types/node": "^10.17.35", + "@types/node": "^10.17.37", "@types/yargs": "^15.0.7", "eslint": "^7.10.0", "jest": "^26.5.0", diff --git a/packages/jsii/package.json b/packages/jsii/package.json index 315eb91c04..c347537353 100644 --- a/packages/jsii/package.json +++ b/packages/jsii/package.json @@ -53,7 +53,7 @@ "@types/fs-extra": "^8.1.1", "@types/jest": "^26.0.14", "@types/jest-expect-message": "^1.0.2", - "@types/node": "^10.17.35", + "@types/node": "^10.17.37", "@types/semver": "^7.3.4", "@types/yargs": "^15.0.7", "clone": "^2.1.2", diff --git a/packages/oo-ascii-tree/package.json b/packages/oo-ascii-tree/package.json index f4d8469c57..1dc7ea554c 100644 --- a/packages/oo-ascii-tree/package.json +++ b/packages/oo-ascii-tree/package.json @@ -32,7 +32,7 @@ }, "devDependencies": { "@types/jest": "^26.0.14", - "@types/node": "^10.17.35", + "@types/node": "^10.17.37", "eslint": "^7.10.0", "jest": "^26.5.0", "jsii-build-tools": "^0.0.0", diff --git a/yarn.lock b/yarn.lock index fa2c9ab834..42ff600322 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1645,10 +1645,10 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-14.0.27.tgz#a151873af5a5e851b51b3b065c9e63390a9e0eb1" integrity sha512-kVrqXhbclHNHGu9ztnAwSncIgJv/FaxmzXJvGXNdcCpV1b8u1/Mi6z6m0vwy0LzKeXFTPLH0NzwmoJ3fNCIq0g== -"@types/node@^10.17.35": - version "10.17.35" - resolved "https://registry.yarnpkg.com/@types/node/-/node-10.17.35.tgz#58058f29b870e6ae57b20e4f6e928f02b7129f56" - integrity sha512-gXx7jAWpMddu0f7a+L+txMplp3FnHl53OhQIF9puXKq3hDGY/GjH+MF04oWnV/adPSCrbtHumDCFwzq2VhltWA== +"@types/node@^10.17.37": + version "10.17.37" + resolved "https://registry.yarnpkg.com/@types/node/-/node-10.17.37.tgz#40d03db879993799c3819e298b003f055e8ecafe" + integrity sha512-4c38N7p9k9yqdcANh/WExTahkBgOTmggCyrTvVcbE8ByqO3g8evt/407v/I4X/gdfUkIyZBSQh/Rc3tvuwlVGw== "@types/normalize-package-data@^2.4.0": version "2.4.0" From 30d46583c3d195bbf9ca5e5226bb4a5cccdcb60d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 6 Oct 2020 10:35:51 +0000 Subject: [PATCH 15/16] chore(deps-dev): bump @typescript-eslint/parser from 4.3.0 to 4.4.0 (#2079) --- package.json | 2 +- yarn.lock | 49 +++++++------------------------------------------ 2 files changed, 8 insertions(+), 43 deletions(-) diff --git a/package.json b/package.json index e59f984912..f8e95e6736 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ }, "devDependencies": { "@typescript-eslint/eslint-plugin": "^4.4.0", - "@typescript-eslint/parser": "^4.3.0", + "@typescript-eslint/parser": "^4.4.0", "eslint": "^7.10.0", "eslint-config-prettier": "^6.12.0", "eslint-import-resolver-node": "^0.3.4", diff --git a/yarn.lock b/yarn.lock index 42ff600322..a9b060081b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1737,24 +1737,16 @@ eslint-scope "^5.0.0" eslint-utils "^2.0.0" -"@typescript-eslint/parser@^4.3.0": - version "4.3.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-4.3.0.tgz#684fc0be6551a2bfcb253991eec3c786a8c063a3" - integrity sha512-JyfRnd72qRuUwItDZ00JNowsSlpQGeKfl9jxwO0FHK1qQ7FbYdoy5S7P+5wh1ISkT2QyAvr2pc9dAemDxzt75g== +"@typescript-eslint/parser@^4.4.0": + version "4.4.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-4.4.0.tgz#65974db9a75f23b036f17b37e959b5f99b659ec0" + integrity sha512-yc14iEItCxoGb7W4Nx30FlTyGpU9r+j+n1LUK/exlq2eJeFxczrz/xFRZUk2f6yzWfK+pr1DOTyQnmDkcC4TnA== dependencies: - "@typescript-eslint/scope-manager" "4.3.0" - "@typescript-eslint/types" "4.3.0" - "@typescript-eslint/typescript-estree" "4.3.0" + "@typescript-eslint/scope-manager" "4.4.0" + "@typescript-eslint/types" "4.4.0" + "@typescript-eslint/typescript-estree" "4.4.0" debug "^4.1.1" -"@typescript-eslint/scope-manager@4.3.0": - version "4.3.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.3.0.tgz#c743227e087545968080d2362cfb1273842cb6a7" - integrity sha512-cTeyP5SCNE8QBRfc+Lgh4Xpzje46kNUhXYfc3pQWmJif92sjrFuHT9hH4rtOkDTo/si9Klw53yIr+djqGZS1ig== - dependencies: - "@typescript-eslint/types" "4.3.0" - "@typescript-eslint/visitor-keys" "4.3.0" - "@typescript-eslint/scope-manager@4.4.0": version "4.4.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.4.0.tgz#2f3dd27692a12cc9a046a90ba6a9d8cb7731190a" @@ -1763,30 +1755,11 @@ "@typescript-eslint/types" "4.4.0" "@typescript-eslint/visitor-keys" "4.4.0" -"@typescript-eslint/types@4.3.0": - version "4.3.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.3.0.tgz#1f0b2d5e140543e2614f06d48fb3ae95193c6ddf" - integrity sha512-Cx9TpRvlRjOppGsU6Y6KcJnUDOelja2NNCX6AZwtVHRzaJkdytJWMuYiqi8mS35MRNA3cJSwDzXePfmhU6TANw== - "@typescript-eslint/types@4.4.0": version "4.4.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.4.0.tgz#63440ef87a54da7399a13bdd4b82060776e9e621" integrity sha512-nU0VUpzanFw3jjX+50OTQy6MehVvf8pkqFcURPAE06xFNFenMj1GPEI6IESvp7UOHAnq+n/brMirZdR+7rCrlA== -"@typescript-eslint/typescript-estree@4.3.0": - version "4.3.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.3.0.tgz#0edc1068e6b2e4c7fdc54d61e329fce76241cee8" - integrity sha512-ZAI7xjkl+oFdLV/COEz2tAbQbR3XfgqHEGy0rlUXzfGQic6EBCR4s2+WS3cmTPG69aaZckEucBoTxW9PhzHxxw== - dependencies: - "@typescript-eslint/types" "4.3.0" - "@typescript-eslint/visitor-keys" "4.3.0" - debug "^4.1.1" - globby "^11.0.1" - is-glob "^4.0.1" - lodash "^4.17.15" - semver "^7.3.2" - tsutils "^3.17.1" - "@typescript-eslint/typescript-estree@4.4.0": version "4.4.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.4.0.tgz#16a2df7c16710ddd5406b32b86b9c1124b1ca526" @@ -1801,14 +1774,6 @@ semver "^7.3.2" tsutils "^3.17.1" -"@typescript-eslint/visitor-keys@4.3.0": - version "4.3.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.3.0.tgz#0e5ab0a09552903edeae205982e8521e17635ae0" - integrity sha512-xZxkuR7XLM6RhvLkgv9yYlTcBHnTULzfnw4i6+z2TGBLy9yljAypQaZl9c3zFvy7PNI7fYWyvKYtohyF8au3cw== - dependencies: - "@typescript-eslint/types" "4.3.0" - eslint-visitor-keys "^2.0.0" - "@typescript-eslint/visitor-keys@4.4.0": version "4.4.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.4.0.tgz#0a9118344082f14c0f051342a74b42dfdb012640" From 818ce231ec78b73a2a13f86f751b5aa2ba0a8b68 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 7 Oct 2020 06:33:58 +0000 Subject: [PATCH 16/16] chore(deps): bump jest from 26.5.0 to 26.5.2 (#2084) --- packages/@jsii/integ-test/package.json | 2 +- packages/@jsii/kernel/package.json | 2 +- packages/@jsii/runtime/package.json | 2 +- packages/@jsii/spec/package.json | 2 +- packages/codemaker/package.json | 2 +- packages/jsii-config/package.json | 2 +- packages/jsii-diff/package.json | 2 +- packages/jsii-pacmak/package.json | 2 +- packages/jsii-reflect/package.json | 2 +- packages/jsii-rosetta/package.json | 2 +- packages/jsii/package.json | 2 +- packages/oo-ascii-tree/package.json | 2 +- yarn.lock | 587 ++++++++++++------------- 13 files changed, 303 insertions(+), 308 deletions(-) diff --git a/packages/@jsii/integ-test/package.json b/packages/@jsii/integ-test/package.json index 1a32a7c703..f6496c0cce 100644 --- a/packages/@jsii/integ-test/package.json +++ b/packages/@jsii/integ-test/package.json @@ -20,7 +20,7 @@ "@octokit/rest": "^18.0.6", "dotenv": "^8.2.0", "fs-extra": "^9.0.1", - "jest": "^26.5.0", + "jest": "^26.5.2", "jsii": "^0.0.0", "jsii-pacmak": "^0.0.0", "jsii-rosetta": "^0.0.0", diff --git a/packages/@jsii/kernel/package.json b/packages/@jsii/kernel/package.json index 461968ffa4..809d83f5d7 100644 --- a/packages/@jsii/kernel/package.json +++ b/packages/@jsii/kernel/package.json @@ -45,7 +45,7 @@ "@types/node": "^10.17.37", "@types/tar": "^4.0.3", "eslint": "^7.10.0", - "jest": "^26.5.0", + "jest": "^26.5.2", "jest-expect-message": "^1.0.2", "jsii-build-tools": "^0.0.0", "jsii-calc": "^0.0.0", diff --git a/packages/@jsii/runtime/package.json b/packages/@jsii/runtime/package.json index 18abcd66f4..db1b6ef038 100644 --- a/packages/@jsii/runtime/package.json +++ b/packages/@jsii/runtime/package.json @@ -43,7 +43,7 @@ "@types/jest": "^26.0.14", "@types/node": "^10.17.37", "eslint": "^7.10.0", - "jest": "^26.5.0", + "jest": "^26.5.2", "jsii-build-tools": "^0.0.0", "jsii-calc": "^0.0.0", "prettier": "^2.1.2", diff --git a/packages/@jsii/spec/package.json b/packages/@jsii/spec/package.json index f2549e0b96..88cf8aace6 100644 --- a/packages/@jsii/spec/package.json +++ b/packages/@jsii/spec/package.json @@ -37,7 +37,7 @@ "@types/jest": "^26.0.14", "@types/node": "^10.17.37", "eslint": "^7.10.0", - "jest": "^26.5.0", + "jest": "^26.5.2", "jsii-build-tools": "^0.0.0", "prettier": "^2.1.2", "typescript": "~3.9.7", diff --git a/packages/codemaker/package.json b/packages/codemaker/package.json index a7d2d00981..72ec963a7e 100644 --- a/packages/codemaker/package.json +++ b/packages/codemaker/package.json @@ -40,7 +40,7 @@ "@types/jest": "^26.0.14", "@types/node": "^10.17.37", "eslint": "^7.10.0", - "jest": "^26.5.0", + "jest": "^26.5.2", "prettier": "^2.1.2", "typescript": "~3.9.7" }, diff --git a/packages/jsii-config/package.json b/packages/jsii-config/package.json index e01887b16a..c002d3cc1d 100644 --- a/packages/jsii-config/package.json +++ b/packages/jsii-config/package.json @@ -25,7 +25,7 @@ "@types/node": "^10.17.37", "@types/yargs": "^15.0.7", "eslint": "^7.10.0", - "jest": "^26.5.0", + "jest": "^26.5.2", "jest-expect-message": "^1.0.2", "prettier": "^2.1.2", "typescript": "~3.9.7" diff --git a/packages/jsii-diff/package.json b/packages/jsii-diff/package.json index b67013c1a0..d8cb9a3049 100644 --- a/packages/jsii-diff/package.json +++ b/packages/jsii-diff/package.json @@ -48,7 +48,7 @@ "@types/tar-fs": "^2.0.0", "@types/yargs": "^15.0.7", "eslint": "^7.10.0", - "jest": "^26.5.0", + "jest": "^26.5.2", "jest-expect-message": "^1.0.2", "jsii": "^0.0.0", "jsii-build-tools": "^0.0.0", diff --git a/packages/jsii-pacmak/package.json b/packages/jsii-pacmak/package.json index 210fe81e22..d4dfb8ac40 100644 --- a/packages/jsii-pacmak/package.json +++ b/packages/jsii-pacmak/package.json @@ -62,7 +62,7 @@ "@types/semver": "^7.3.4", "@types/yargs": "^15.0.7", "eslint": "^7.10.0", - "jest": "^26.5.0", + "jest": "^26.5.2", "jsii-build-tools": "^0.0.0", "jsii-calc": "^0.0.0", "mock-fs": "^4.13.0", diff --git a/packages/jsii-reflect/package.json b/packages/jsii-reflect/package.json index b2dd23ce2b..11a2335fe9 100644 --- a/packages/jsii-reflect/package.json +++ b/packages/jsii-reflect/package.json @@ -47,7 +47,7 @@ "@types/node": "^10.17.37", "@types/yargs": "^15.0.7", "eslint": "^7.10.0", - "jest": "^26.5.0", + "jest": "^26.5.2", "jsii": "^0.0.0", "jsii-build-tools": "^0.0.0", "jsii-calc": "^0.0.0", diff --git a/packages/jsii-rosetta/package.json b/packages/jsii-rosetta/package.json index 4a278c4ec4..17e7be950c 100644 --- a/packages/jsii-rosetta/package.json +++ b/packages/jsii-rosetta/package.json @@ -23,7 +23,7 @@ "@types/node": "^10.17.37", "@types/yargs": "^15.0.7", "eslint": "^7.10.0", - "jest": "^26.5.0", + "jest": "^26.5.2", "jsii": "^0.0.0", "jsii-build-tools": "^0.0.0", "memory-streams": "^0.1.3", diff --git a/packages/jsii/package.json b/packages/jsii/package.json index c347537353..213b008574 100644 --- a/packages/jsii/package.json +++ b/packages/jsii/package.json @@ -58,7 +58,7 @@ "@types/yargs": "^15.0.7", "clone": "^2.1.2", "eslint": "^7.10.0", - "jest": "^26.5.0", + "jest": "^26.5.2", "jest-expect-message": "^1.0.2", "jsii-build-tools": "^0.0.0", "prettier": "^2.1.2", diff --git a/packages/oo-ascii-tree/package.json b/packages/oo-ascii-tree/package.json index 1dc7ea554c..bcf95ac760 100644 --- a/packages/oo-ascii-tree/package.json +++ b/packages/oo-ascii-tree/package.json @@ -34,7 +34,7 @@ "@types/jest": "^26.0.14", "@types/node": "^10.17.37", "eslint": "^7.10.0", - "jest": "^26.5.0", + "jest": "^26.5.2", "jsii-build-tools": "^0.0.0", "prettier": "^2.1.2", "typescript": "~3.9.7" diff --git a/yarn.lock b/yarn.lock index a9b060081b..508bde14fe 100644 --- a/yarn.lock +++ b/yarn.lock @@ -380,93 +380,93 @@ resolved "https://registry.yarnpkg.com/@istanbuljs/schema/-/schema-0.1.2.tgz#26520bf09abe4a5644cd5414e37125a8954241dd" integrity sha512-tsAQNx32a8CoFhjhijUIhI4kccIAgmGhy8LZMZgGfmXcpMbPRUqn5LWmgRttILi6yeGmBJd2xsPkFMs0PzgPCw== -"@jest/console@^26.5.0": - version "26.5.0" - resolved "https://registry.yarnpkg.com/@jest/console/-/console-26.5.0.tgz#89a1c5ae8329907fda842ebc5b475d5c9f935766" - integrity sha512-oh59scth4yf8XUgMJb8ruY7BHm0X5JZDNgGGsVnlOt2XQuq9s2NMllIrN4n70Yds+++bjrTGZ9EoOKraaPKPlg== +"@jest/console@^26.5.2": + version "26.5.2" + resolved "https://registry.yarnpkg.com/@jest/console/-/console-26.5.2.tgz#94fc4865b1abed7c352b5e21e6c57be4b95604a6" + integrity sha512-lJELzKINpF1v74DXHbCRIkQ/+nUV1M+ntj+X1J8LxCgpmJZjfLmhFejiMSbjjD66fayxl5Z06tbs3HMyuik6rw== dependencies: - "@jest/types" "^26.5.0" + "@jest/types" "^26.5.2" "@types/node" "*" chalk "^4.0.0" - jest-message-util "^26.5.0" - jest-util "^26.5.0" + jest-message-util "^26.5.2" + jest-util "^26.5.2" slash "^3.0.0" -"@jest/core@^26.5.0": - version "26.5.0" - resolved "https://registry.yarnpkg.com/@jest/core/-/core-26.5.0.tgz#32d7caf46a49d4a14cbbd3a2eb3ef39f149e984d" - integrity sha512-hDtgfzYxnrQn54+0JlbqpXM4+bqDfK0ooMlNE4Nn3VBsB4RbmytAn4/kVVIcMa+aYwRr/fwzWuGJwBETVg1sDw== - dependencies: - "@jest/console" "^26.5.0" - "@jest/reporters" "^26.5.0" - "@jest/test-result" "^26.5.0" - "@jest/transform" "^26.5.0" - "@jest/types" "^26.5.0" +"@jest/core@^26.5.2": + version "26.5.2" + resolved "https://registry.yarnpkg.com/@jest/core/-/core-26.5.2.tgz#e39f14676f4ba4632ecabfdc374071ab22131f22" + integrity sha512-LLTo1LQMg7eJjG/+P1NYqFof2B25EV1EqzD5FonklihG4UJKiK2JBIvWonunws6W7e+DhNLoFD+g05tCY03eyA== + dependencies: + "@jest/console" "^26.5.2" + "@jest/reporters" "^26.5.2" + "@jest/test-result" "^26.5.2" + "@jest/transform" "^26.5.2" + "@jest/types" "^26.5.2" "@types/node" "*" ansi-escapes "^4.2.1" chalk "^4.0.0" exit "^0.1.2" graceful-fs "^4.2.4" - jest-changed-files "^26.5.0" - jest-config "^26.5.0" - jest-haste-map "^26.5.0" - jest-message-util "^26.5.0" + jest-changed-files "^26.5.2" + jest-config "^26.5.2" + jest-haste-map "^26.5.2" + jest-message-util "^26.5.2" jest-regex-util "^26.0.0" - jest-resolve "^26.5.0" - jest-resolve-dependencies "^26.5.0" - jest-runner "^26.5.0" - jest-runtime "^26.5.0" - jest-snapshot "^26.5.0" - jest-util "^26.5.0" - jest-validate "^26.5.0" - jest-watcher "^26.5.0" + jest-resolve "^26.5.2" + jest-resolve-dependencies "^26.5.2" + jest-runner "^26.5.2" + jest-runtime "^26.5.2" + jest-snapshot "^26.5.2" + jest-util "^26.5.2" + jest-validate "^26.5.2" + jest-watcher "^26.5.2" micromatch "^4.0.2" p-each-series "^2.1.0" rimraf "^3.0.0" slash "^3.0.0" strip-ansi "^6.0.0" -"@jest/environment@^26.5.0": - version "26.5.0" - resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-26.5.0.tgz#4381b6b2fc291dcff51e248780196bc035da7190" - integrity sha512-0F3G9EyZU2NAP0/c/5EqVx4DmldQtRxj0gMl3p3ciSCdyMiCyDmpdE7O0mKTSiFDyl1kU4TfgEVf0r0vMkmYcw== +"@jest/environment@^26.5.2": + version "26.5.2" + resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-26.5.2.tgz#eba3cfc698f6e03739628f699c28e8a07f5e65fe" + integrity sha512-YjhCD/Zhkz0/1vdlS/QN6QmuUdDkpgBdK4SdiVg4Y19e29g4VQYN5Xg8+YuHjdoWGY7wJHMxc79uDTeTOy9Ngw== dependencies: - "@jest/fake-timers" "^26.5.0" - "@jest/types" "^26.5.0" + "@jest/fake-timers" "^26.5.2" + "@jest/types" "^26.5.2" "@types/node" "*" - jest-mock "^26.5.0" + jest-mock "^26.5.2" -"@jest/fake-timers@^26.5.0": - version "26.5.0" - resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-26.5.0.tgz#107ceeb580bc42dd6e0843df5bbc92cb4fe9cb00" - integrity sha512-sQK6xUembaZ0qLnZpSjJJuJiKvyrjCJhaYjbmatFpj5+cM8h2D7YEkeEBC26BMzvF1O3tNM9OL7roqyBmom0KA== +"@jest/fake-timers@^26.5.2": + version "26.5.2" + resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-26.5.2.tgz#1291ac81680ceb0dc7daa1f92c059307eea6400a" + integrity sha512-09Hn5Oraqt36V1akxQeWMVL0fR9c6PnEhpgLaYvREXZJAh2H2Y+QLCsl0g7uMoJeoWJAuz4tozk1prbR1Fc1sw== dependencies: - "@jest/types" "^26.5.0" + "@jest/types" "^26.5.2" "@sinonjs/fake-timers" "^6.0.1" "@types/node" "*" - jest-message-util "^26.5.0" - jest-mock "^26.5.0" - jest-util "^26.5.0" + jest-message-util "^26.5.2" + jest-mock "^26.5.2" + jest-util "^26.5.2" -"@jest/globals@^26.5.0": - version "26.5.0" - resolved "https://registry.yarnpkg.com/@jest/globals/-/globals-26.5.0.tgz#b9b7d05ee6722c894ce67aff216ed6b04d3fe187" - integrity sha512-TCKx3XWR9h/yyhQbz0C1sXkK2e8WJOnkP40T9bewNpf2Ahr1UEyKXnCoQO0JCpXFkWGTXBNo1QAgTQ3+LhXfcA== +"@jest/globals@^26.5.2": + version "26.5.2" + resolved "https://registry.yarnpkg.com/@jest/globals/-/globals-26.5.2.tgz#c333f82c29e19ecb609a75d1a532915a5c956c59" + integrity sha512-9PmnFsAUJxpPt1s/stq02acS1YHliVBDNfAWMe1bwdRr1iTCfhbNt3ERQXrO/ZfZSweftoA26Q/2yhSVSWQ3sw== dependencies: - "@jest/environment" "^26.5.0" - "@jest/types" "^26.5.0" - expect "^26.5.0" + "@jest/environment" "^26.5.2" + "@jest/types" "^26.5.2" + expect "^26.5.2" -"@jest/reporters@^26.5.0": - version "26.5.0" - resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-26.5.0.tgz#07c7742993db9d680bcc6cda58106e8d283d2111" - integrity sha512-lUl5bbTHflDO9dQa85ZTHasPBVsyC48t9sg/VN2wC3OJryclFNqN4Xfo2FgnNl/pzCnzO2MVgMyIij5aNkod2w== +"@jest/reporters@^26.5.2": + version "26.5.2" + resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-26.5.2.tgz#0f1c900c6af712b46853d9d486c9c0382e4050f6" + integrity sha512-zvq6Wvy6MmJq/0QY0YfOPb49CXKSf42wkJbrBPkeypVa8I+XDxijvFuywo6TJBX/ILPrdrlE/FW9vJZh6Rf9vA== dependencies: "@bcoe/v8-coverage" "^0.2.3" - "@jest/console" "^26.5.0" - "@jest/test-result" "^26.5.0" - "@jest/transform" "^26.5.0" - "@jest/types" "^26.5.0" + "@jest/console" "^26.5.2" + "@jest/test-result" "^26.5.2" + "@jest/transform" "^26.5.2" + "@jest/types" "^26.5.2" chalk "^4.0.0" collect-v8-coverage "^1.0.0" exit "^0.1.2" @@ -477,9 +477,9 @@ istanbul-lib-report "^3.0.0" istanbul-lib-source-maps "^4.0.0" istanbul-reports "^3.0.2" - jest-haste-map "^26.5.0" - jest-resolve "^26.5.0" - jest-util "^26.5.0" + jest-haste-map "^26.5.2" + jest-resolve "^26.5.2" + jest-util "^26.5.2" jest-worker "^26.5.0" slash "^3.0.0" source-map "^0.6.0" @@ -498,42 +498,42 @@ graceful-fs "^4.2.4" source-map "^0.6.0" -"@jest/test-result@^26.5.0": - version "26.5.0" - resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-26.5.0.tgz#d5bdf2eaf12ceddd359c2506fe806afafecc9a9e" - integrity sha512-CaVXxDQi31LPOsz5/+iajNHQlA1Je/jQ8uYH/lCa6Y/UrkO+sDHeEH3x/inbx06PctVDnTwIlCcBvNNbC4FCvQ== +"@jest/test-result@^26.5.2": + version "26.5.2" + resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-26.5.2.tgz#cc1a44cfd4db2ecee3fb0bc4e9fe087aa54b5230" + integrity sha512-E/Zp6LURJEGSCWpoMGmCFuuEI1OWuI3hmZwmULV0GsgJBh7u0rwqioxhRU95euUuviqBDN8ruX/vP/4bwYolXw== dependencies: - "@jest/console" "^26.5.0" - "@jest/types" "^26.5.0" + "@jest/console" "^26.5.2" + "@jest/types" "^26.5.2" "@types/istanbul-lib-coverage" "^2.0.0" collect-v8-coverage "^1.0.0" -"@jest/test-sequencer@^26.5.0": - version "26.5.0" - resolved "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-26.5.0.tgz#617808a1fa869c5181e43a5b841db084746b667e" - integrity sha512-23oofRXqPEy37HyHWIYf7lzzOqtGBkai5erZiL6RgxlyXE7a0lCihf6b5DfAvcD3yUtbXmh3EzpjJDVH57zQrg== +"@jest/test-sequencer@^26.5.2": + version "26.5.2" + resolved "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-26.5.2.tgz#c4559c7e134b27b020317303ee5399bf62917a4b" + integrity sha512-XmGEh7hh07H2B8mHLFCIgr7gA5Y6Hw1ZATIsbz2fOhpnQ5AnQtZk0gmP0Q5/+mVB2xygO64tVFQxOajzoptkNA== dependencies: - "@jest/test-result" "^26.5.0" + "@jest/test-result" "^26.5.2" graceful-fs "^4.2.4" - jest-haste-map "^26.5.0" - jest-runner "^26.5.0" - jest-runtime "^26.5.0" + jest-haste-map "^26.5.2" + jest-runner "^26.5.2" + jest-runtime "^26.5.2" -"@jest/transform@^26.5.0": - version "26.5.0" - resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-26.5.0.tgz#16404eaddf6034fe713da37b236756fc6b956db0" - integrity sha512-Kt4WciOruTyTkJ2DZ+xtZiejRj3v22BrXCYZoGRbI0N6Q6tt2HdsWrrEtn6nlK24QWKC389xKkVk4Xr2gWBZQA== +"@jest/transform@^26.5.2": + version "26.5.2" + resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-26.5.2.tgz#6a0033a1d24316a1c75184d010d864f2c681bef5" + integrity sha512-AUNjvexh+APhhmS8S+KboPz+D3pCxPvEAGduffaAJYxIFxGi/ytZQkrqcKDUU0ERBAo5R7087fyOYr2oms1seg== dependencies: "@babel/core" "^7.1.0" - "@jest/types" "^26.5.0" + "@jest/types" "^26.5.2" babel-plugin-istanbul "^6.0.0" chalk "^4.0.0" convert-source-map "^1.4.0" fast-json-stable-stringify "^2.0.0" graceful-fs "^4.2.4" - jest-haste-map "^26.5.0" + jest-haste-map "^26.5.2" jest-regex-util "^26.0.0" - jest-util "^26.5.0" + jest-util "^26.5.2" micromatch "^4.0.2" pirates "^4.0.1" slash "^3.0.0" @@ -561,10 +561,10 @@ "@types/yargs" "^15.0.0" chalk "^4.0.0" -"@jest/types@^26.5.0": - version "26.5.0" - resolved "https://registry.yarnpkg.com/@jest/types/-/types-26.5.0.tgz#163f6e00c5ac9bb6fc91c3802eaa9d0dd6e1474a" - integrity sha512-nH9DFLqaIhB+RVgjivemvMiFSWw/BKwbZGxBAMv8CCTvUyFoK8RwHhAlmlXIvMBrf5Z3YQ4p9cq3Qh9EDctGvA== +"@jest/types@^26.5.2": + version "26.5.2" + resolved "https://registry.yarnpkg.com/@jest/types/-/types-26.5.2.tgz#44c24f30c8ee6c7f492ead9ec3f3c62a5289756d" + integrity sha512-QDs5d0gYiyetI8q+2xWdkixVQMklReZr4ltw7GFDtb4fuJIBCE6mzj2LnitGqCuAlLap6wPyb8fpoHgwZz5fdg== dependencies: "@types/istanbul-lib-coverage" "^2.0.0" "@types/istanbul-reports" "^3.0.0" @@ -2312,13 +2312,13 @@ aws4@^1.8.0: resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.10.1.tgz#e1e82e4f3e999e2cfd61b161280d16a111f86428" integrity sha512-zg7Hz2k5lI8kb7U32998pRRFin7zJlkfezGJjUc2heaD4Pw2wObakCDVzkKztTm/Ln7eiVvYsjqak0Ed4LkMDA== -babel-jest@^26.5.0: - version "26.5.0" - resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-26.5.0.tgz#afe11a083b4e584f63e9de29d2075cb96f42d2a4" - integrity sha512-Cy16ZJrds81C+JASaOIGNlpCeqW3PTOq36owv+Zzwde5NiWz+zNduwxUNF57vxc/3SnIWo8HHqTczhN8GLoXTw== +babel-jest@^26.5.2: + version "26.5.2" + resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-26.5.2.tgz#164f367a35946c6cf54eaccde8762dec50422250" + integrity sha512-U3KvymF3SczA3vOL/cgiUFOznfMET+XDIXiWnoJV45siAp2pLMG8i2+/MGZlAC3f/F6Q40LR4M4qDrWZ9wkK8A== dependencies: - "@jest/transform" "^26.5.0" - "@jest/types" "^26.5.0" + "@jest/transform" "^26.5.2" + "@jest/types" "^26.5.2" "@types/babel__core" "^7.1.7" babel-plugin-istanbul "^6.0.0" babel-preset-jest "^26.5.0" @@ -3916,11 +3916,6 @@ escalade@^3.0.2: resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.0.2.tgz#6a580d70edb87880f22b4c91d0d56078df6962c4" integrity sha512-gPYAU37hYCUhW5euPeR+Y74F7BL+IBsV93j5cvGriSaD1aG6MGsqsV1yamRdrWrb2j3aiZvb0X+UBOWpx3JWtQ== -escalade@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.0.tgz#e8e2d7c7a8b76f6ee64c2181d6b8151441602d4e" - integrity sha512-mAk+hPSO8fLDkhV7V0dXazH5pDc6MrjBTPyD3VeKzxnVFjH1MIxbCdqGZB9O8+EwWakZs3ZCbDS4IpRt79V1ig== - escape-string-regexp@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" @@ -4210,16 +4205,16 @@ expand-tilde@^2.0.0, expand-tilde@^2.0.2: dependencies: homedir-polyfill "^1.0.1" -expect@^26.5.0: - version "26.5.0" - resolved "https://registry.yarnpkg.com/expect/-/expect-26.5.0.tgz#089c0cc4d6c545c7388ddefffa0f1e2e8e38d282" - integrity sha512-oIOy3mHWjnF5ZICuaui5kdtJZQ+D7XHWyUQDxk1WhIRCkcIYc24X23bOfikgCNU6i9wcSqLQhwPOqeRp09naxg== +expect@^26.5.2: + version "26.5.2" + resolved "https://registry.yarnpkg.com/expect/-/expect-26.5.2.tgz#3e0631c4a657a83dbec769ad246a2998953a55a6" + integrity sha512-ccTGrXZd8DZCcvCz4htGXTkd/LOoy6OEtiDS38x3/VVf6E4AQL0QoeksBiw7BtGR5xDNiRYPB8GN6pfbuTOi7w== dependencies: - "@jest/types" "^26.5.0" + "@jest/types" "^26.5.2" ansi-styles "^4.0.0" jest-get-type "^26.3.0" - jest-matcher-utils "^26.5.0" - jest-message-util "^26.5.0" + jest-matcher-utils "^26.5.2" + jest-message-util "^26.5.2" jest-regex-util "^26.0.0" extend-shallow@^2.0.1: @@ -5615,57 +5610,57 @@ istanbul-reports@^3.0.2: html-escaper "^2.0.0" istanbul-lib-report "^3.0.0" -jest-changed-files@^26.5.0: - version "26.5.0" - resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-26.5.0.tgz#181b901368decb4fc21d3cace9b4c4819232b667" - integrity sha512-RAHoXqxa7gO1rZz88qpsLpzJ2mQU12UaFWadacKHuMbBZwFK+yl0j9YoD9Y/wBpv1ILG2SdCuxFHggX+9VU7qA== +jest-changed-files@^26.5.2: + version "26.5.2" + resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-26.5.2.tgz#330232c6a5c09a7f040a5870e8f0a9c6abcdbed5" + integrity sha512-qSmssmiIdvM5BWVtyK/nqVpN3spR5YyvkvPqz1x3BR1bwIxsWmU/MGwLoCrPNLbkG2ASAKfvmJpOduEApBPh2w== dependencies: - "@jest/types" "^26.5.0" + "@jest/types" "^26.5.2" execa "^4.0.0" throat "^5.0.0" -jest-cli@^26.5.0: - version "26.5.0" - resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-26.5.0.tgz#4404fb5cbdfb250946160374d5e3fc9655f9b57f" - integrity sha512-bI0h6GQGbyN0SSZu3nPilwrkrZ8dBC93erwTiEoJ+kGjtNuXsB183hTZ0HCiHLzf88oE0SQB1hYp8RgyytH+Bg== +jest-cli@^26.5.2: + version "26.5.2" + resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-26.5.2.tgz#0df114399b4036a3f046f0a9f25c50372c76b3a2" + integrity sha512-usm48COuUvRp8YEG5OWOaxbSM0my7eHn3QeBWxiGUuFhvkGVBvl1fic4UjC02EAEQtDv8KrNQUXdQTV6ZZBsoA== dependencies: - "@jest/core" "^26.5.0" - "@jest/test-result" "^26.5.0" - "@jest/types" "^26.5.0" + "@jest/core" "^26.5.2" + "@jest/test-result" "^26.5.2" + "@jest/types" "^26.5.2" chalk "^4.0.0" exit "^0.1.2" graceful-fs "^4.2.4" import-local "^3.0.2" is-ci "^2.0.0" - jest-config "^26.5.0" - jest-util "^26.5.0" - jest-validate "^26.5.0" + jest-config "^26.5.2" + jest-util "^26.5.2" + jest-validate "^26.5.2" prompts "^2.0.1" - yargs "^16.0.3" + yargs "^15.4.1" -jest-config@^26.5.0: - version "26.5.0" - resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-26.5.0.tgz#3959e47223496e2ae2605e073578a359cab99445" - integrity sha512-OM6eXIEmQXAuonCk8aNPMRjPFcKWa3IIoSlq5BPgIflmQBzM/COcI7XsWSIEPWPa9WcYTJBWj8kNqEYjczmIFw== +jest-config@^26.5.2: + version "26.5.2" + resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-26.5.2.tgz#6e828e25f10124433dd008fbd83348636de0972a" + integrity sha512-dqJOnSegNdE5yDiuGHsjTM5gec7Z4AcAMHiW+YscbOYJAlb3LEtDSobXCq0or9EmGQI5SFmKy4T7P1FxetJOfg== dependencies: "@babel/core" "^7.1.0" - "@jest/test-sequencer" "^26.5.0" - "@jest/types" "^26.5.0" - babel-jest "^26.5.0" + "@jest/test-sequencer" "^26.5.2" + "@jest/types" "^26.5.2" + babel-jest "^26.5.2" chalk "^4.0.0" deepmerge "^4.2.2" glob "^7.1.1" graceful-fs "^4.2.4" - jest-environment-jsdom "^26.5.0" - jest-environment-node "^26.5.0" + jest-environment-jsdom "^26.5.2" + jest-environment-node "^26.5.2" jest-get-type "^26.3.0" - jest-jasmine2 "^26.5.0" + jest-jasmine2 "^26.5.2" jest-regex-util "^26.0.0" - jest-resolve "^26.5.0" - jest-util "^26.5.0" - jest-validate "^26.5.0" + jest-resolve "^26.5.2" + jest-util "^26.5.2" + jest-validate "^26.5.2" micromatch "^4.0.2" - pretty-format "^26.5.0" + pretty-format "^26.5.2" jest-diff@^25.2.1: version "25.5.0" @@ -5677,15 +5672,15 @@ jest-diff@^25.2.1: jest-get-type "^25.2.6" pretty-format "^25.5.0" -jest-diff@^26.5.0: - version "26.5.0" - resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-26.5.0.tgz#bd01cef2d00b2668a0207ef47ab8eb1e33613253" - integrity sha512-CmDMMPkVMxrrh0Dv/4M9kh1tsYsZnYTQMMTvIFpePBSk9wMVfcyfg30TCq+oR9AzGbw8vsI50Gk1HmlMMlhoJg== +jest-diff@^26.5.2: + version "26.5.2" + resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-26.5.2.tgz#8e26cb32dc598e8b8a1b9deff55316f8313c8053" + integrity sha512-HCSWDUGwsov5oTlGzrRM+UPJI/Dpqi9jzeV0fdRNi3Ch5bnoXhnyJMmVg2juv9081zLIy3HGPI5mcuGgXM2xRA== dependencies: chalk "^4.0.0" diff-sequences "^26.5.0" jest-get-type "^26.3.0" - pretty-format "^26.5.0" + pretty-format "^26.5.2" jest-docblock@^26.0.0: version "26.0.0" @@ -5694,41 +5689,41 @@ jest-docblock@^26.0.0: dependencies: detect-newline "^3.0.0" -jest-each@^26.5.0: - version "26.5.0" - resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-26.5.0.tgz#39197a9d1abdd32ff5b8a9931507ab117c551c02" - integrity sha512-+oO3ykDgypHSyyK2xOsh8XDUwMtg3HoJ4wMNFNHxhcACFbUgaCOfLy+eTCn5pIKhtigU3BmkYt7k3MtTb5pJOQ== +jest-each@^26.5.2: + version "26.5.2" + resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-26.5.2.tgz#35e68d6906a7f826d3ca5803cfe91d17a5a34c31" + integrity sha512-w7D9FNe0m2D3yZ0Drj9CLkyF/mGhmBSULMQTypzAKR746xXnjUrK8GUJdlLTWUF6dd0ks3MtvGP7/xNFr9Aphg== dependencies: - "@jest/types" "^26.5.0" + "@jest/types" "^26.5.2" chalk "^4.0.0" jest-get-type "^26.3.0" - jest-util "^26.5.0" - pretty-format "^26.5.0" + jest-util "^26.5.2" + pretty-format "^26.5.2" -jest-environment-jsdom@^26.5.0: - version "26.5.0" - resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-26.5.0.tgz#f9a6726402fde787632a69df5ff3390ab04337a3" - integrity sha512-Xuqh3bx8egymaJR566ECkiztIIVOIWWPGIxo++ziWyCOqQChUguRCH1hRXBbfINPbb/SRFe7GCD+SunaUgTmCw== +jest-environment-jsdom@^26.5.2: + version "26.5.2" + resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-26.5.2.tgz#5feab05b828fd3e4b96bee5e0493464ddd2bb4bc" + integrity sha512-fWZPx0bluJaTQ36+PmRpvUtUlUFlGGBNyGX1SN3dLUHHMcQ4WseNEzcGGKOw4U5towXgxI4qDoI3vwR18H0RTw== dependencies: - "@jest/environment" "^26.5.0" - "@jest/fake-timers" "^26.5.0" - "@jest/types" "^26.5.0" + "@jest/environment" "^26.5.2" + "@jest/fake-timers" "^26.5.2" + "@jest/types" "^26.5.2" "@types/node" "*" - jest-mock "^26.5.0" - jest-util "^26.5.0" + jest-mock "^26.5.2" + jest-util "^26.5.2" jsdom "^16.4.0" -jest-environment-node@^26.5.0: - version "26.5.0" - resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-26.5.0.tgz#3f49ba40abe87209df96f7991015cac996e04563" - integrity sha512-LaYl/ek5mb1VDP1/+jMH2N1Ec4fFUhSYmc8EZqigBgMov/2US8U5l7D3IlOf78e+wARUxPxUpTcybVVzAOu3jg== +jest-environment-node@^26.5.2: + version "26.5.2" + resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-26.5.2.tgz#275a0f01b5e47447056f1541a15ed4da14acca03" + integrity sha512-YHjnDsf/GKFCYMGF1V+6HF7jhY1fcLfLNBDjhAOvFGvt6d8vXvNdJGVM7uTZ2VO/TuIyEFhPGaXMX5j3h7fsrA== dependencies: - "@jest/environment" "^26.5.0" - "@jest/fake-timers" "^26.5.0" - "@jest/types" "^26.5.0" + "@jest/environment" "^26.5.2" + "@jest/fake-timers" "^26.5.2" + "@jest/types" "^26.5.2" "@types/node" "*" - jest-mock "^26.5.0" - jest-util "^26.5.0" + jest-mock "^26.5.2" + jest-util "^26.5.2" jest-expect-message@^1.0.2: version "1.0.2" @@ -5745,12 +5740,12 @@ jest-get-type@^26.3.0: resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-26.3.0.tgz#e97dc3c3f53c2b406ca7afaed4493b1d099199e0" integrity sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig== -jest-haste-map@^26.5.0: - version "26.5.0" - resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-26.5.0.tgz#ba4c48dbf69e0529709bd0d76660d87eefce820a" - integrity sha512-AjB1b53uqN7Cf2VN80x0wJajVZ+BMZC+G2CmWoG143faaMw7IhIcs3FTPuSgOx7cn3/bag7lgCq93naAvLO6EQ== +jest-haste-map@^26.5.2: + version "26.5.2" + resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-26.5.2.tgz#a15008abfc502c18aa56e4919ed8c96304ceb23d" + integrity sha512-lJIAVJN3gtO3k4xy+7i2Xjtwh8CfPcH08WYjZpe9xzveDaqGw9fVNCpkYu6M525wKFVkLmyi7ku+DxCAP1lyMA== dependencies: - "@jest/types" "^26.5.0" + "@jest/types" "^26.5.2" "@types/graceful-fs" "^4.1.2" "@types/node" "*" anymatch "^3.0.3" @@ -5758,7 +5753,7 @@ jest-haste-map@^26.5.0: graceful-fs "^4.2.4" jest-regex-util "^26.0.0" jest-serializer "^26.5.0" - jest-util "^26.5.0" + jest-util "^26.5.2" jest-worker "^26.5.0" micromatch "^4.0.2" sane "^4.0.3" @@ -5766,55 +5761,55 @@ jest-haste-map@^26.5.0: optionalDependencies: fsevents "^2.1.2" -jest-jasmine2@^26.5.0: - version "26.5.0" - resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-26.5.0.tgz#49d57db63f49a183813263b41e61e2a5f988e6a3" - integrity sha512-NOA6PLORHTRTROOp5VysKCUVpFAjMMXUS1Xw7FvTMeYK5Ewx4rpxhFqiJ7JT4pENap9g9OuXo4cWR/MwCDTEeQ== +jest-jasmine2@^26.5.2: + version "26.5.2" + resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-26.5.2.tgz#0e33819d31b1f2aab5efd1e02ce502209c0e64a2" + integrity sha512-2J+GYcgLVPTkpmvHEj0/IDTIAuyblGNGlyGe4fLfDT2aktEPBYvoxUwFiOmDDxxzuuEAD2uxcYXr0+1Yw4tjFA== dependencies: "@babel/traverse" "^7.1.0" - "@jest/environment" "^26.5.0" + "@jest/environment" "^26.5.2" "@jest/source-map" "^26.5.0" - "@jest/test-result" "^26.5.0" - "@jest/types" "^26.5.0" + "@jest/test-result" "^26.5.2" + "@jest/types" "^26.5.2" "@types/node" "*" chalk "^4.0.0" co "^4.6.0" - expect "^26.5.0" + expect "^26.5.2" is-generator-fn "^2.0.0" - jest-each "^26.5.0" - jest-matcher-utils "^26.5.0" - jest-message-util "^26.5.0" - jest-runtime "^26.5.0" - jest-snapshot "^26.5.0" - jest-util "^26.5.0" - pretty-format "^26.5.0" + jest-each "^26.5.2" + jest-matcher-utils "^26.5.2" + jest-message-util "^26.5.2" + jest-runtime "^26.5.2" + jest-snapshot "^26.5.2" + jest-util "^26.5.2" + pretty-format "^26.5.2" throat "^5.0.0" -jest-leak-detector@^26.5.0: - version "26.5.0" - resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-26.5.0.tgz#a5671ffbc6308e45ad31b42cb2ef0722488a4e57" - integrity sha512-xZHvvTBbj3gUTtunLjPqP594BT6IUEpwA0AQpEQjVR8eBq8+R3qgU/KhoAcVcV0iqRM6pXtX7hKPZ5mLdynVSQ== +jest-leak-detector@^26.5.2: + version "26.5.2" + resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-26.5.2.tgz#83fcf9a4a6ef157549552cb4f32ca1d6221eea69" + integrity sha512-h7ia3dLzBFItmYERaLPEtEKxy3YlcbcRSjj0XRNJgBEyODuu+3DM2o62kvIFvs3PsaYoIIv+e+nLRI61Dj1CNw== dependencies: jest-get-type "^26.3.0" - pretty-format "^26.5.0" + pretty-format "^26.5.2" -jest-matcher-utils@^26.5.0: - version "26.5.0" - resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-26.5.0.tgz#1195d6a35c4c710ad286b775b966f3fdb7a2102d" - integrity sha512-QgbbxqFT8wiTi4o/7MWj2vHlcmMjACG8vnJ9pJ7svVDmkzEnTUGdHXWLKB1aZhbnyXetMNRF+TSMcDS9aGfuzA== +jest-matcher-utils@^26.5.2: + version "26.5.2" + resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-26.5.2.tgz#6aa2c76ce8b9c33e66f8856ff3a52bab59e6c85a" + integrity sha512-W9GO9KBIC4gIArsNqDUKsLnhivaqf8MSs6ujO/JDcPIQrmY+aasewweXVET8KdrJ6ADQaUne5UzysvF/RR7JYA== dependencies: chalk "^4.0.0" - jest-diff "^26.5.0" + jest-diff "^26.5.2" jest-get-type "^26.3.0" - pretty-format "^26.5.0" + pretty-format "^26.5.2" -jest-message-util@^26.5.0: - version "26.5.0" - resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-26.5.0.tgz#87f8c440dace55095d247442638c70b892836895" - integrity sha512-UEOqdoTfX0AFyReL4q5N3CfDBWt+AtQzeszZuuGapU39vwEk90rTSBghCA/3FFEZzvGfH2LE4+0NaBI81Cu2Ow== +jest-message-util@^26.5.2: + version "26.5.2" + resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-26.5.2.tgz#6c4c4c46dcfbabb47cd1ba2f6351559729bc11bb" + integrity sha512-Ocp9UYZ5Jl15C5PNsoDiGEk14A4NG0zZKknpWdZGoMzJuGAkVt10e97tnEVMYpk7LnQHZOfuK2j/izLBMcuCZw== dependencies: "@babel/code-frame" "^7.0.0" - "@jest/types" "^26.5.0" + "@jest/types" "^26.5.2" "@types/stack-utils" "^2.0.0" chalk "^4.0.0" graceful-fs "^4.2.4" @@ -5822,12 +5817,12 @@ jest-message-util@^26.5.0: slash "^3.0.0" stack-utils "^2.0.2" -jest-mock@^26.5.0: - version "26.5.0" - resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-26.5.0.tgz#56efcea2dfd550b77ceb5ef280cf8c6114ef32db" - integrity sha512-8D1UmbnmjdkvTdYygTW26KZr95Aw0/3gEmMZQWkxIEAgEESVDbwDG8ygRlXSY214x9hFjtKezvfQUp36Ogl75w== +jest-mock@^26.5.2: + version "26.5.2" + resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-26.5.2.tgz#c9302e8ef807f2bfc749ee52e65ad11166a1b6a1" + integrity sha512-9SiU4b5PtO51v0MtJwVRqeGEroH66Bnwtq4ARdNP7jNXbpT7+ByeWNAk4NeT/uHfNSVDXEXgQo1XRuwEqS6Rdw== dependencies: - "@jest/types" "^26.5.0" + "@jest/types" "^26.5.2" "@types/node" "*" jest-pnp-resolver@^1.2.2: @@ -5840,86 +5835,86 @@ jest-regex-util@^26.0.0: resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-26.0.0.tgz#d25e7184b36e39fd466c3bc41be0971e821fee28" integrity sha512-Gv3ZIs/nA48/Zvjrl34bf+oD76JHiGDUxNOVgUjh3j890sblXryjY4rss71fPtD/njchl6PSE2hIhvyWa1eT0A== -jest-resolve-dependencies@^26.5.0: - version "26.5.0" - resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-26.5.0.tgz#6c4a863685e6c63b225e903c6006a70fb8ecac0a" - integrity sha512-2e3YdS+dlTY00s0CEiMAa7Ap/mPfPaQV7d6Fzp7BQqHXO/2QhXn/yVTxnxR+dOIo/NOh7pqXZTQSn+2iWwPQQA== +jest-resolve-dependencies@^26.5.2: + version "26.5.2" + resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-26.5.2.tgz#ee30b7cfea81c81bf5e195a9287d7ec07f893170" + integrity sha512-LLkc8LuRtxqOx0AtX/Npa2C4I23WcIrwUgNtHYXg4owYF/ZDQShcwBAHjYZIFR06+HpQcZ43+kCTMlQ3aDCYTg== dependencies: - "@jest/types" "^26.5.0" + "@jest/types" "^26.5.2" jest-regex-util "^26.0.0" - jest-snapshot "^26.5.0" + jest-snapshot "^26.5.2" -jest-resolve@^26.5.0: - version "26.5.0" - resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-26.5.0.tgz#31f68344dd88af70f00bc8bb531de6687565c680" - integrity sha512-c34L8Lrw4fFzRiCLzwePziKRfHitjsAnY15ID0e9Se4ISikmZ5T9icLEFAGHnfaxfb+9r8EKdrbg89gjRdrQvw== +jest-resolve@^26.5.2: + version "26.5.2" + resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-26.5.2.tgz#0d719144f61944a428657b755a0e5c6af4fc8602" + integrity sha512-XsPxojXGRA0CoDD7Vis59ucz2p3cQFU5C+19tz3tLEAlhYKkK77IL0cjYjikY9wXnOaBeEdm1rOgSJjbZWpcZg== dependencies: - "@jest/types" "^26.5.0" + "@jest/types" "^26.5.2" chalk "^4.0.0" - escalade "^3.1.0" graceful-fs "^4.2.4" jest-pnp-resolver "^1.2.2" - jest-util "^26.5.0" + jest-util "^26.5.2" + read-pkg-up "^7.0.1" resolve "^1.17.0" slash "^3.0.0" -jest-runner@^26.5.0: - version "26.5.1" - resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-26.5.1.tgz#a56c1e1fbed7470ae69ebd5456ba4d4443c8701f" - integrity sha512-gFHXehvMZD8qwNzaIl2MDFFI99m4kKk06H2xh2u4IkC+tHYIJjE5J175l9cbL3RuU2slfS2m57KZgcPZfbTavQ== +jest-runner@^26.5.2: + version "26.5.2" + resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-26.5.2.tgz#4f9e6b0bb7eb4710c209a9e145b8a10894f4c19f" + integrity sha512-GKhYxtSX5+tXZsd2QwfkDqPIj5C2HqOdXLRc2x2qYqWE26OJh17xo58/fN/mLhRkO4y6o60ZVloan7Kk5YA6hg== dependencies: - "@jest/console" "^26.5.0" - "@jest/environment" "^26.5.0" - "@jest/test-result" "^26.5.0" - "@jest/types" "^26.5.0" + "@jest/console" "^26.5.2" + "@jest/environment" "^26.5.2" + "@jest/test-result" "^26.5.2" + "@jest/types" "^26.5.2" "@types/node" "*" chalk "^4.0.0" emittery "^0.7.1" exit "^0.1.2" graceful-fs "^4.2.4" - jest-config "^26.5.0" + jest-config "^26.5.2" jest-docblock "^26.0.0" - jest-haste-map "^26.5.0" - jest-leak-detector "^26.5.0" - jest-message-util "^26.5.0" - jest-resolve "^26.5.0" - jest-runtime "^26.5.0" - jest-util "^26.5.0" + jest-haste-map "^26.5.2" + jest-leak-detector "^26.5.2" + jest-message-util "^26.5.2" + jest-resolve "^26.5.2" + jest-runtime "^26.5.2" + jest-util "^26.5.2" jest-worker "^26.5.0" source-map-support "^0.5.6" throat "^5.0.0" -jest-runtime@^26.5.0: - version "26.5.0" - resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-26.5.0.tgz#c9b3eeb5ead70710ea17f6058df405cac31bb926" - integrity sha512-CujjQWpMcsvSg0L+G3iEz6s7Th5IbiZseAaw/5R7Eb+IfnJdyPdjJ+EoXNV8n07snvW5nZTwV9QIfy6Vjris8A== +jest-runtime@^26.5.2: + version "26.5.2" + resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-26.5.2.tgz#b72f5f79eb2fe0c46bfef4cdb9c1e01d1c69ba41" + integrity sha512-zArr4DatX/Sn0wswX/AnAuJgmwgAR5rNtrUz36HR8BfMuysHYNq5sDbYHuLC4ICyRdy5ae/KQ+sczxyS9G6Qvw== dependencies: - "@jest/console" "^26.5.0" - "@jest/environment" "^26.5.0" - "@jest/fake-timers" "^26.5.0" - "@jest/globals" "^26.5.0" + "@jest/console" "^26.5.2" + "@jest/environment" "^26.5.2" + "@jest/fake-timers" "^26.5.2" + "@jest/globals" "^26.5.2" "@jest/source-map" "^26.5.0" - "@jest/test-result" "^26.5.0" - "@jest/transform" "^26.5.0" - "@jest/types" "^26.5.0" + "@jest/test-result" "^26.5.2" + "@jest/transform" "^26.5.2" + "@jest/types" "^26.5.2" "@types/yargs" "^15.0.0" chalk "^4.0.0" collect-v8-coverage "^1.0.0" exit "^0.1.2" glob "^7.1.3" graceful-fs "^4.2.4" - jest-config "^26.5.0" - jest-haste-map "^26.5.0" - jest-message-util "^26.5.0" - jest-mock "^26.5.0" + jest-config "^26.5.2" + jest-haste-map "^26.5.2" + jest-message-util "^26.5.2" + jest-mock "^26.5.2" jest-regex-util "^26.0.0" - jest-resolve "^26.5.0" - jest-snapshot "^26.5.0" - jest-util "^26.5.0" - jest-validate "^26.5.0" + jest-resolve "^26.5.2" + jest-snapshot "^26.5.2" + jest-util "^26.5.2" + jest-validate "^26.5.2" slash "^3.0.0" strip-bom "^4.0.0" - yargs "^16.0.3" + yargs "^15.4.1" jest-serializer@^26.5.0: version "26.5.0" @@ -5929,26 +5924,26 @@ jest-serializer@^26.5.0: "@types/node" "*" graceful-fs "^4.2.4" -jest-snapshot@^26.5.0: - version "26.5.0" - resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-26.5.0.tgz#2b76366e2d621775f39733e5764492b2e44b0bcd" - integrity sha512-WTNJef67o7cCvwAe5foVCNqG3MzIW/CyU4FZvMrhBPZsJeXwfBY7kfOlydZigxtcytnvmNE2pqznOfD5EcQgrQ== +jest-snapshot@^26.5.2: + version "26.5.2" + resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-26.5.2.tgz#0cf7642eaf8e8d2736bd443f619959bf237f9ccf" + integrity sha512-MkXIDvEefzDubI/WaDVSRH4xnkuirP/Pz8LhAIDXcVQTmcEfwxywj5LGwBmhz+kAAIldA7XM4l96vbpzltSjqg== dependencies: "@babel/types" "^7.0.0" - "@jest/types" "^26.5.0" + "@jest/types" "^26.5.2" "@types/babel__traverse" "^7.0.4" "@types/prettier" "^2.0.0" chalk "^4.0.0" - expect "^26.5.0" + expect "^26.5.2" graceful-fs "^4.2.4" - jest-diff "^26.5.0" + jest-diff "^26.5.2" jest-get-type "^26.3.0" - jest-haste-map "^26.5.0" - jest-matcher-utils "^26.5.0" - jest-message-util "^26.5.0" - jest-resolve "^26.5.0" + jest-haste-map "^26.5.2" + jest-matcher-utils "^26.5.2" + jest-message-util "^26.5.2" + jest-resolve "^26.5.2" natural-compare "^1.4.0" - pretty-format "^26.5.0" + pretty-format "^26.5.2" semver "^7.3.2" jest-util@^26.1.0: @@ -5963,41 +5958,41 @@ jest-util@^26.1.0: is-ci "^2.0.0" micromatch "^4.0.2" -jest-util@^26.5.0: - version "26.5.0" - resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-26.5.0.tgz#f4e0fb80cf82db127d68c7c5b2749a427a80b450" - integrity sha512-CSQ0uzE7JdHDCQo3K8jlyWRIF2xNLdpu9nbjo8okGDanaNsF7WonhusFvjOg7QiWn1SThe7wFRh8Jx2ls1Gx4Q== +jest-util@^26.5.2: + version "26.5.2" + resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-26.5.2.tgz#8403f75677902cc52a1b2140f568e91f8ed4f4d7" + integrity sha512-WTL675bK+GSSAYgS8z9FWdCT2nccO1yTIplNLPlP0OD8tUk/H5IrWKMMRudIQQ0qp8bb4k+1Qa8CxGKq9qnYdg== dependencies: - "@jest/types" "^26.5.0" + "@jest/types" "^26.5.2" "@types/node" "*" chalk "^4.0.0" graceful-fs "^4.2.4" is-ci "^2.0.0" micromatch "^4.0.2" -jest-validate@^26.5.0: - version "26.5.0" - resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-26.5.0.tgz#6e417ec5066e315752da1350797a89fc5907f97a" - integrity sha512-603+CHUJD4nAZ+tY/A+wu3g8KEcBey2a7YOMU9W8e4u7mCezhaDasw20ITaZHoR2R2MZhThL6jApPSj0GvezrQ== +jest-validate@^26.5.2: + version "26.5.2" + resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-26.5.2.tgz#7ea266700b64234cd1c0cee982490c5a80e9b0f0" + integrity sha512-FmJks0zY36mp6Af/5sqO6CTL9bNMU45yKCJk3hrz8d2aIqQIlN1pr9HPIwZE8blLaewOla134nt5+xAmWsx3SQ== dependencies: - "@jest/types" "^26.5.0" + "@jest/types" "^26.5.2" camelcase "^6.0.0" chalk "^4.0.0" jest-get-type "^26.3.0" leven "^3.1.0" - pretty-format "^26.5.0" + pretty-format "^26.5.2" -jest-watcher@^26.5.0: - version "26.5.0" - resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-26.5.0.tgz#3aedd339ee3dfb5801e71ae9a00da08369679317" - integrity sha512-INLKhpc9QbO5zy2HkS1CJUncByrCLFDZQOY30d9ojiuGO02ofL1BygDRDRtFvT/oWSZ8Y0fbkrr1oXU2ay/MqA== +jest-watcher@^26.5.2: + version "26.5.2" + resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-26.5.2.tgz#2957f4461007e0769d74b537379ecf6b7c696916" + integrity sha512-i3m1NtWzF+FXfJ3ljLBB/WQEp4uaNhX7QcQUWMokcifFTUQBDFyUMEwk0JkJ1kopHbx7Een3KX0Q7+9koGM/Pw== dependencies: - "@jest/test-result" "^26.5.0" - "@jest/types" "^26.5.0" + "@jest/test-result" "^26.5.2" + "@jest/types" "^26.5.2" "@types/node" "*" ansi-escapes "^4.2.1" chalk "^4.0.0" - jest-util "^26.5.0" + jest-util "^26.5.2" string-length "^4.0.1" jest-worker@^26.5.0: @@ -6009,14 +6004,14 @@ jest-worker@^26.5.0: merge-stream "^2.0.0" supports-color "^7.0.0" -jest@^26.5.0: - version "26.5.0" - resolved "https://registry.yarnpkg.com/jest/-/jest-26.5.0.tgz#d973c13a3843587b89b02dab1fbcd1f3bf111f09" - integrity sha512-yW1QTkdpxVWTV2M5cOwVdEww8dRGqL5bb7FOG3YQoMtf7oReCEawmU0+tOKkZUSfcOymbXmCfdBQLzuwOLCx0w== +jest@^26.5.2: + version "26.5.2" + resolved "https://registry.yarnpkg.com/jest/-/jest-26.5.2.tgz#c6791642b331fe7abd2f993b0a74aa546f7be0fb" + integrity sha512-4HFabJVwsgDwul/7rhXJ3yFAF/aUkVIXiJWmgFxb+WMdZG39fVvOwYAs8/3r4AlFPc4m/n5sTMtuMbOL3kNtrQ== dependencies: - "@jest/core" "^26.5.0" + "@jest/core" "^26.5.2" import-local "^3.0.2" - jest-cli "^26.5.0" + jest-cli "^26.5.2" js-tokens@^4.0.0: version "4.0.0" @@ -7612,12 +7607,12 @@ pretty-format@^25.2.1, pretty-format@^25.5.0: ansi-styles "^4.0.0" react-is "^16.12.0" -pretty-format@^26.5.0: - version "26.5.0" - resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-26.5.0.tgz#3320e4952f8e6918fc8c26c6df7aad9734818ac2" - integrity sha512-NcgRuuTutUJ9+Br4P19DFThpJYnYBiugfRmZEA6pXrUeG+IcMSmppb88rU+iPA+XAJcjTYlCb5Ed6miHg/Qqqw== +pretty-format@^26.5.2: + version "26.5.2" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-26.5.2.tgz#5d896acfdaa09210683d34b6dc0e6e21423cd3e1" + integrity sha512-VizyV669eqESlkOikKJI8Ryxl/kPpbdLwNdPs2GrbQs18MpySB5S0Yo0N7zkg2xTRiFq4CFw8ct5Vg4a0xP0og== dependencies: - "@jest/types" "^26.5.0" + "@jest/types" "^26.5.2" ansi-regex "^5.0.0" ansi-styles "^4.0.0" react-is "^16.12.0"