diff --git a/arkoala/ets-plugin/src/StructTransformer.ts b/arkoala/ets-plugin/src/StructTransformer.ts index 729a97031bbe14c75213e98f84f4df8f5af1facc..74f6f9e7be1eec162f715957e0aceef380a86e7f 100644 --- a/arkoala/ets-plugin/src/StructTransformer.ts +++ b/arkoala/ets-plugin/src/StructTransformer.ts @@ -281,6 +281,20 @@ export class StructTransformer extends AbstractVisitor { ) ) ) + ), + prependDoubleLineMemoComment( + optionalParameter( + "content", + ts.factory.createFunctionTypeNode( + [], + [], + ts.factory.createKeywordTypeNode(ts.SyntaxKind.VoidKeyword) + ) + ) + ), + optionalParameter( + "initializers", + ts.factory.createTypeReferenceNode(adaptorClassName(structure.name)!) ) ] : [] diff --git a/arkoala/ets-plugin/test/golden/PropertyDeps.ts b/arkoala/ets-plugin/test/golden/PropertyDeps.ts index 8426fe12fc631ed2ba4a528d0ec7ddd933b30cb7..9218a91340049d14ab5501ed219aacd621fd97fa 100644 --- a/arkoala/ets-plugin/test/golden/PropertyDeps.ts +++ b/arkoala/ets-plugin/test/golden/PropertyDeps.ts @@ -24,7 +24,9 @@ class ArkStateToStateComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkStateToStateComponent) => void) | undefined) { + builder: ((instance: ArkStateToStateComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkStateToStateComponent) { ArkText(undefined, undefined, this.test); } } @@ -57,7 +59,9 @@ class ArkStateToPropComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkStateToPropComponent) => void) | undefined) { + builder: ((instance: ArkStateToPropComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkStateToPropComponent) { ArkText(undefined, undefined, this.test); } } @@ -86,7 +90,9 @@ class ArkStateToProvideComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkStateToProvideComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkStateToProvideComponent) { ArkText(undefined, undefined, this.test); } } @@ -115,7 +121,9 @@ class ArkStateToStorageLinkComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkStateToStorageLinkComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkStateToStorageLinkComponent) { ArkText(undefined, undefined, this.test); } } @@ -144,7 +152,9 @@ class ArkStateToLocalStorageLinkComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkStateToLocalStorageLinkComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkStateToLocalStorageLinkComponent) { ArkText(undefined, undefined, this.test); } } @@ -177,7 +187,9 @@ class ArkStateToStoragePropComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkStateToStoragePropComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkStateToStoragePropComponent) { ArkText(undefined, undefined, this.test); } } @@ -210,7 +222,9 @@ class ArkStateToLocalStoragePropComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkStateToLocalStoragePropComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkStateToLocalStoragePropComponent) { ArkText(undefined, undefined, this.test); } } @@ -245,7 +259,9 @@ class ArkStateToBuilderParamComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkStateToBuilderParamComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkStateToBuilderParamComponent) { ArkText(undefined, undefined, this.test); } } @@ -274,7 +290,9 @@ class ArkStateToPlainComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkStateToPlainComponent) => void) | undefined) { + builder: ((instance: ArkStateToPlainComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkStateToPlainComponent) { ArkText(undefined, undefined, this.test); } } @@ -307,7 +325,9 @@ class ArkPropToStateComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkPropToStateComponent) => void) | undefined) { + builder: ((instance: ArkPropToStateComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkPropToStateComponent) { ArkText(undefined, undefined, this.test); } } @@ -341,7 +361,9 @@ class ArkPropToPropComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkPropToPropComponent) => void) | undefined) { + builder: ((instance: ArkPropToPropComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkPropToPropComponent) { ArkText(undefined, undefined, this.test); } } @@ -374,7 +396,9 @@ class ArkPropToProvideComponent extends ArkStructBase /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkPropToProvideComponent) => void) | undefined) { + builder: ((instance: ArkPropToProvideComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkPropToProvideComponent) { ArkText(undefined, undefined, this.test); } } @@ -407,7 +431,9 @@ class ArkPropToStorageLinkComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkPropToStorageLinkComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkPropToStorageLinkComponent) { ArkText(undefined, undefined, this.test); } } @@ -440,7 +466,9 @@ class ArkPropToLocalStorageLinkComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkPropToLocalStorageLinkComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkPropToLocalStorageLinkComponent) { ArkText(undefined, undefined, this.test); } } @@ -474,7 +502,9 @@ class ArkPropToStoragePropComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkPropToStoragePropComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkPropToStoragePropComponent) { ArkText(undefined, undefined, this.test); } } @@ -508,7 +538,9 @@ class ArkPropToLocalStoragePropComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkPropToLocalStoragePropComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkPropToLocalStoragePropComponent) { ArkText(undefined, undefined, this.test); } } @@ -547,7 +579,9 @@ class ArkPropToBuilderParamComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkPropToBuilderParamComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkPropToBuilderParamComponent) { ArkText(undefined, undefined, this.test); } } @@ -580,7 +614,9 @@ class ArkPropToPlainComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkPropToPlainComponent) => void) | undefined) { + builder: ((instance: ArkPropToPlainComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkPropToPlainComponent) { ArkText(undefined, undefined, this.test); } } @@ -609,7 +645,9 @@ class ArkProvideToStateComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkProvideToStateComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkProvideToStateComponent) { ArkText(undefined, undefined, this.test); } } @@ -642,7 +680,9 @@ class ArkProvideToPropComponent extends ArkStructBase /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkProvideToPropComponent) => void) | undefined) { + builder: ((instance: ArkProvideToPropComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkProvideToPropComponent) { ArkText(undefined, undefined, this.test); } } @@ -671,7 +711,9 @@ class ArkProvideToProvideComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkProvideToProvideComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkProvideToProvideComponent) { ArkText(undefined, undefined, this.test); } } @@ -700,7 +742,9 @@ class ArkProvideToStorageLinkComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkProvideToStorageLinkComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkProvideToStorageLinkComponent) { ArkText(undefined, undefined, this.test); } } @@ -729,7 +773,9 @@ class ArkProvideToLocalStorageLinkComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkProvideToLocalStorageLinkComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkProvideToLocalStorageLinkComponent) { ArkText(undefined, undefined, this.test); } } @@ -762,7 +808,9 @@ class ArkProvideToStoragePropComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkProvideToStoragePropComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkProvideToStoragePropComponent) { ArkText(undefined, undefined, this.test); } } @@ -795,7 +843,9 @@ class ArkProvideToLocalStoragePropComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkProvideToLocalStoragePropComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkProvideToLocalStoragePropComponent) { ArkText(undefined, undefined, this.test); } } @@ -830,7 +880,9 @@ class ArkProvideToBuilderParamComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkProvideToBuilderParamComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkProvideToBuilderParamComponent) { ArkText(undefined, undefined, this.test); } } @@ -859,7 +911,9 @@ class ArkProvideToPlainComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkProvideToPlainComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkProvideToPlainComponent) { ArkText(undefined, undefined, this.test); } } @@ -888,7 +942,9 @@ class ArkStorageLinkToStateComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkStorageLinkToStateComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkStorageLinkToStateComponent) { ArkText(undefined, undefined, this.test); } } @@ -921,7 +977,9 @@ class ArkStorageLinkToPropComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkStorageLinkToPropComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkStorageLinkToPropComponent) { ArkText(undefined, undefined, this.test); } } @@ -950,7 +1008,9 @@ class ArkStorageLinkToProvideComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkStorageLinkToProvideComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkStorageLinkToProvideComponent) { ArkText(undefined, undefined, this.test); } } @@ -979,7 +1039,9 @@ class ArkStorageLinkToStorageLinkComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkStorageLinkToStorageLinkComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkStorageLinkToStorageLinkComponent) { ArkText(undefined, undefined, this.test); } } @@ -1008,7 +1070,9 @@ class ArkStorageLinkToLocalStorageLinkComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkStorageLinkToLocalStorageLinkComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkStorageLinkToLocalStorageLinkComponent) { ArkText(undefined, undefined, this.test); } } @@ -1041,7 +1105,9 @@ class ArkStorageLinkToStoragePropComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkStorageLinkToStoragePropComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkStorageLinkToStoragePropComponent) { ArkText(undefined, undefined, this.test); } } @@ -1074,7 +1140,9 @@ class ArkStorageLinkToLocalStoragePropComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkStorageLinkToLocalStoragePropComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkStorageLinkToLocalStoragePropComponent) { ArkText(undefined, undefined, this.test); } } @@ -1109,7 +1177,9 @@ class ArkStorageLinkToBuilderParamComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkStorageLinkToBuilderParamComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkStorageLinkToBuilderParamComponent) { ArkText(undefined, undefined, this.test); } } @@ -1138,7 +1208,9 @@ class ArkStorageLinkToPlainComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkStorageLinkToPlainComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkStorageLinkToPlainComponent) { ArkText(undefined, undefined, this.test); } } @@ -1167,7 +1239,9 @@ class ArkLocalStorageLinkToStateComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkLocalStorageLinkToStateComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkLocalStorageLinkToStateComponent) { ArkText(undefined, undefined, this.test); } } @@ -1200,7 +1274,9 @@ class ArkLocalStorageLinkToPropComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkLocalStorageLinkToPropComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkLocalStorageLinkToPropComponent) { ArkText(undefined, undefined, this.test); } } @@ -1229,7 +1305,9 @@ class ArkLocalStorageLinkToProvideComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkLocalStorageLinkToProvideComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkLocalStorageLinkToProvideComponent) { ArkText(undefined, undefined, this.test); } } @@ -1258,7 +1336,9 @@ class ArkLocalStorageLinkToStorageLinkComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkLocalStorageLinkToStorageLinkComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkLocalStorageLinkToStorageLinkComponent) { ArkText(undefined, undefined, this.test); } } @@ -1287,7 +1367,9 @@ class ArkLocalStorageLinkToLocalStorageLinkComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkLocalStorageLinkToLocalStorageLinkComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkLocalStorageLinkToLocalStorageLinkComponent) { ArkText(undefined, undefined, this.test); } } @@ -1320,7 +1402,9 @@ class ArkLocalStorageLinkToStoragePropComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkLocalStorageLinkToStoragePropComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkLocalStorageLinkToStoragePropComponent) { ArkText(undefined, undefined, this.test); } } @@ -1353,7 +1437,9 @@ class ArkLocalStorageLinkToLocalStoragePropComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkLocalStorageLinkToLocalStoragePropComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkLocalStorageLinkToLocalStoragePropComponent) { ArkText(undefined, undefined, this.test); } } @@ -1388,7 +1474,9 @@ class ArkLocalStorageLinkToBuilderParamComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkLocalStorageLinkToBuilderParamComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkLocalStorageLinkToBuilderParamComponent) { ArkText(undefined, undefined, this.test); } } @@ -1417,7 +1505,9 @@ class ArkLocalStorageLinkToPlainComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkLocalStorageLinkToPlainComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkLocalStorageLinkToPlainComponent) { ArkText(undefined, undefined, this.test); } } @@ -1450,7 +1540,9 @@ class ArkStoragePropToStateComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkStoragePropToStateComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkStoragePropToStateComponent) { ArkText(undefined, undefined, this.test); } } @@ -1484,7 +1576,9 @@ class ArkStoragePropToPropComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkStoragePropToPropComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkStoragePropToPropComponent) { ArkText(undefined, undefined, this.test); } } @@ -1517,7 +1611,9 @@ class ArkStoragePropToProvideComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkStoragePropToProvideComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkStoragePropToProvideComponent) { ArkText(undefined, undefined, this.test); } } @@ -1550,7 +1646,9 @@ class ArkStoragePropToStorageLinkComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkStoragePropToStorageLinkComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkStoragePropToStorageLinkComponent) { ArkText(undefined, undefined, this.test); } } @@ -1583,7 +1681,9 @@ class ArkStoragePropToLocalStorageLinkComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkStoragePropToLocalStorageLinkComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkStoragePropToLocalStorageLinkComponent) { ArkText(undefined, undefined, this.test); } } @@ -1617,7 +1717,9 @@ class ArkStoragePropToStoragePropComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkStoragePropToStoragePropComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkStoragePropToStoragePropComponent) { ArkText(undefined, undefined, this.test); } } @@ -1651,7 +1753,9 @@ class ArkStoragePropToLocalStoragePropComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkStoragePropToLocalStoragePropComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkStoragePropToLocalStoragePropComponent) { ArkText(undefined, undefined, this.test); } } @@ -1690,7 +1794,9 @@ class ArkStoragePropToBuilderParamComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkStoragePropToBuilderParamComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkStoragePropToBuilderParamComponent) { ArkText(undefined, undefined, this.test); } } @@ -1723,7 +1829,9 @@ class ArkStoragePropToPlainComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkStoragePropToPlainComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkStoragePropToPlainComponent) { ArkText(undefined, undefined, this.test); } } @@ -1756,7 +1864,9 @@ class ArkLocalStoragePropToStateComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkLocalStoragePropToStateComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkLocalStoragePropToStateComponent) { ArkText(undefined, undefined, this.test); } } @@ -1790,7 +1900,9 @@ class ArkLocalStoragePropToPropComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkLocalStoragePropToPropComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkLocalStoragePropToPropComponent) { ArkText(undefined, undefined, this.test); } } @@ -1823,7 +1935,9 @@ class ArkLocalStoragePropToProvideComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkLocalStoragePropToProvideComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkLocalStoragePropToProvideComponent) { ArkText(undefined, undefined, this.test); } } @@ -1856,7 +1970,9 @@ class ArkLocalStoragePropToStorageLinkComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkLocalStoragePropToStorageLinkComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkLocalStoragePropToStorageLinkComponent) { ArkText(undefined, undefined, this.test); } } @@ -1889,7 +2005,9 @@ class ArkLocalStoragePropToLocalStorageLinkComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkLocalStoragePropToLocalStorageLinkComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkLocalStoragePropToLocalStorageLinkComponent) { ArkText(undefined, undefined, this.test); } } @@ -1923,7 +2041,9 @@ class ArkLocalStoragePropToStoragePropComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkLocalStoragePropToStoragePropComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkLocalStoragePropToStoragePropComponent) { ArkText(undefined, undefined, this.test); } } @@ -1957,7 +2077,9 @@ class ArkLocalStoragePropToLocalStoragePropComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkLocalStoragePropToLocalStoragePropComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkLocalStoragePropToLocalStoragePropComponent) { ArkText(undefined, undefined, this.test); } } @@ -1996,7 +2118,9 @@ class ArkLocalStoragePropToBuilderParamComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkLocalStoragePropToBuilderParamComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkLocalStoragePropToBuilderParamComponent) { ArkText(undefined, undefined, this.test); } } @@ -2029,7 +2153,9 @@ class ArkLocalStoragePropToPlainComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkLocalStoragePropToPlainComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkLocalStoragePropToPlainComponent) { ArkText(undefined, undefined, this.test); } } @@ -2064,7 +2190,9 @@ class ArkBuilderParamToStateComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkBuilderParamToStateComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkBuilderParamToStateComponent) { ArkText(undefined, undefined, this.test); } } @@ -2103,7 +2231,9 @@ class ArkBuilderParamToPropComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkBuilderParamToPropComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkBuilderParamToPropComponent) { ArkText(undefined, undefined, this.test); } } @@ -2138,7 +2268,9 @@ class ArkBuilderParamToProvideComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkBuilderParamToProvideComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkBuilderParamToProvideComponent) { ArkText(undefined, undefined, this.test); } } @@ -2173,7 +2305,9 @@ class ArkBuilderParamToStorageLinkComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkBuilderParamToStorageLinkComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkBuilderParamToStorageLinkComponent) { ArkText(undefined, undefined, this.test); } } @@ -2208,7 +2342,9 @@ class ArkBuilderParamToLocalStorageLinkComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkBuilderParamToLocalStorageLinkComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkBuilderParamToLocalStorageLinkComponent) { ArkText(undefined, undefined, this.test); } } @@ -2247,7 +2383,9 @@ class ArkBuilderParamToStoragePropComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkBuilderParamToStoragePropComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkBuilderParamToStoragePropComponent) { ArkText(undefined, undefined, this.test); } } @@ -2286,7 +2424,9 @@ class ArkBuilderParamToLocalStoragePropComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkBuilderParamToLocalStoragePropComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkBuilderParamToLocalStoragePropComponent) { ArkText(undefined, undefined, this.test); } } @@ -2325,7 +2465,9 @@ class ArkBuilderParamToBuilderParamComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkBuilderParamToBuilderParamComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkBuilderParamToBuilderParamComponent) { ArkText(undefined, undefined, this.test); } } @@ -2360,7 +2502,9 @@ class ArkBuilderParamToPlainComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkBuilderParamToPlainComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkBuilderParamToPlainComponent) { ArkText(undefined, undefined, this.test); } } @@ -2389,7 +2533,9 @@ class ArkPlainToStateComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkPlainToStateComponent) => void) | undefined) { + builder: ((instance: ArkPlainToStateComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkPlainToStateComponent) { ArkText(undefined, undefined, this.test); } } @@ -2422,7 +2568,9 @@ class ArkPlainToPropComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkPlainToPropComponent) => void) | undefined) { + builder: ((instance: ArkPlainToPropComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkPlainToPropComponent) { ArkText(undefined, undefined, this.test); } } @@ -2451,7 +2599,9 @@ class ArkPlainToProvideComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkPlainToProvideComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkPlainToProvideComponent) { ArkText(undefined, undefined, this.test); } } @@ -2480,7 +2630,9 @@ class ArkPlainToStorageLinkComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkPlainToStorageLinkComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkPlainToStorageLinkComponent) { ArkText(undefined, undefined, this.test); } } @@ -2509,7 +2661,9 @@ class ArkPlainToLocalStorageLinkComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkPlainToLocalStorageLinkComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkPlainToLocalStorageLinkComponent) { ArkText(undefined, undefined, this.test); } } @@ -2542,7 +2696,9 @@ class ArkPlainToStoragePropComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkPlainToStoragePropComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkPlainToStoragePropComponent) { ArkText(undefined, undefined, this.test); } } @@ -2575,7 +2731,9 @@ class ArkPlainToLocalStoragePropComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkPlainToLocalStoragePropComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkPlainToLocalStoragePropComponent) { ArkText(undefined, undefined, this.test); } } @@ -2610,7 +2768,9 @@ class ArkPlainToBuilderParamComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkPlainToBuilderParamComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkPlainToBuilderParamComponent) { ArkText(undefined, undefined, this.test); } } @@ -2639,7 +2799,9 @@ class ArkPlainToPlainComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkPlainToPlainComponent) => void) | undefined) { + builder: ((instance: ArkPlainToPlainComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkPlainToPlainComponent) { ArkText(undefined, undefined, this.test); } } diff --git a/arkoala/ets-plugin/test/golden/Rewrite.ts b/arkoala/ets-plugin/test/golden/Rewrite.ts index f4e2612e0a800acf6e7142b774b9f43fa27bf80b..20ca57688d056062f759c2b346c43d80fc0430a0 100644 --- a/arkoala/ets-plugin/test/golden/Rewrite.ts +++ b/arkoala/ets-plugin/test/golden/Rewrite.ts @@ -9,7 +9,9 @@ export class ArkEntryExampleComponent extends ArkStructBase void) | undefined) { } + builder: ((instance: ArkEntryExampleComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkEntryExampleComponent) { } } class ArkComponentExampleComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); @@ -20,7 +22,9 @@ class ArkComponentExampleComponent extends ArkStructBase void) | undefined) { } + builder: ((instance: ArkComponentExampleComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkComponentExampleComponent) { } } class ArkBuildExampleComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); @@ -31,7 +35,9 @@ class ArkBuildExampleComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkBuildExampleComponent) => void) | undefined) { + builder: ((instance: ArkBuildExampleComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkBuildExampleComponent) { ArkText((instance: ArkTextComponent) => { instance.fontColor(Color.Red) .width(100); @@ -55,7 +61,9 @@ class ArkStateExampleComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkStateExampleComponent) => void) | undefined) { + builder: ((instance: ArkStateExampleComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkStateExampleComponent) { ArkText(undefined, undefined, this.x); } } @@ -76,7 +84,9 @@ class ArkLinkExampleComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkLinkExampleComponent) => void) | undefined) { + builder: ((instance: ArkLinkExampleComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkLinkExampleComponent) { ArkText(undefined, undefined, this.x); } } @@ -101,7 +111,9 @@ class ArkPropExampleComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkPropExampleComponent) => void) | undefined) { + builder: ((instance: ArkPropExampleComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkPropExampleComponent) { ArkText(undefined, undefined, this.x); } } @@ -126,7 +138,9 @@ class ArkPropInitializedExampleComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkPropInitializedExampleComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkPropInitializedExampleComponent) { ArkText(undefined, undefined, this.x); } } @@ -147,7 +161,9 @@ class ArkProvideExampleComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkProvideExampleComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkProvideExampleComponent) { ArkText(undefined, undefined, this.x); } } @@ -168,7 +184,9 @@ class ArkConsumeExampleComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkConsumeExampleComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkConsumeExampleComponent) { ArkText(undefined, undefined, this.x); } } @@ -185,7 +203,9 @@ class ArkBuilderExampleComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkBuilderExampleComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkBuilderExampleComponent) { this.foo(); } } @@ -202,7 +222,9 @@ class ArkGlobalBuilderExampleComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkGlobalBuilderExampleComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkGlobalBuilderExampleComponent) { bar(); } } @@ -231,7 +253,9 @@ class ArkBuilderParamExampleComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkBuilderParamExampleComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkBuilderParamExampleComponent) { this.foo(); } } @@ -250,7 +274,9 @@ class ArkStylesExampleComponent extends ArkStructBase /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkStylesExampleComponent) => void) | undefined) { + builder: ((instance: ArkStylesExampleComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkStylesExampleComponent) { ArkText((instance: ArkTextComponent) => { instance.width(17).__applyStyle(looks); }, undefined); @@ -271,7 +297,9 @@ class ArkStylesMethodExampleComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkStylesMethodExampleComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkStylesMethodExampleComponent) { ArkText((instance: ArkTextComponent) => { instance.width(17).__applyStyle(this.nice.bind(this)); }, undefined); @@ -292,7 +320,9 @@ class ArkExtendExampleComponent extends ArkStructBase /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkExtendExampleComponent) => void) | undefined) { + builder: ((instance: ArkExtendExampleComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkExtendExampleComponent) { ArkColumn((instance: ArkColumnComponent) => { instance.width(17).__applyStyle(clown__Column); }, undefined); @@ -311,7 +341,9 @@ class ArkAnimatableExtendExampleComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkAnimatableExtendExampleComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkAnimatableExtendExampleComponent) { ArkText((instance: ArkTextComponent) => { instance.width(17).__applyAnimatableExtend(attributeExtend__Text, 50, "unused"); }, undefined); @@ -341,7 +373,9 @@ class ArkWatchExampleComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkWatchExampleComponent) => void) | undefined) { + builder: ((instance: ArkWatchExampleComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkWatchExampleComponent) { } } class ArkStorageLinkExampleComponent extends ArkStructBase { @@ -361,7 +395,9 @@ class ArkStorageLinkExampleComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkStorageLinkExampleComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkStorageLinkExampleComponent) { } } class ArkStoragePropExampleComponent extends ArkStructBase { @@ -385,7 +421,9 @@ class ArkStoragePropExampleComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkStoragePropExampleComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkStoragePropExampleComponent) { } } class ArkCustomDialogExampleComponent extends ArkStructBase { @@ -407,7 +445,9 @@ class ArkCustomDialogExampleComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkCustomDialogExampleComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkCustomDialogExampleComponent) { } } export class ArkCustomDialogControllerExampleComponent extends ArkStructBase { @@ -440,7 +480,9 @@ export class ArkCustomDialogControllerExampleComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkCustomDialogControllerExampleComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkCustomDialogControllerExampleComponent) { } } // ObjectLink and Observed @@ -472,7 +514,9 @@ class ArkObjectLinkExampleComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkObjectLinkExampleComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkObjectLinkExampleComponent) { ArkButton((instance: ArkButtonComponent) => { instance.onClick(() => { this.a.c += 1; @@ -497,7 +541,9 @@ class ArkObjectLinkExampleParentComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkObjectLinkExampleParentComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkObjectLinkExampleParentComponent) { ObjectLinkExample(undefined, undefined); } } @@ -533,7 +579,9 @@ class ArkCallExampleComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkCallExampleComponent) => void) | undefined) { + builder: ((instance: ArkCallExampleComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkCallExampleComponent) { Child(undefined, undefined, { _counter: this._state }); } } @@ -554,7 +602,9 @@ class ArkChildComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkChildComponent) => void) | undefined) { } + builder: ((instance: ArkChildComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkChildComponent) { } } /** @memo */ export function EntryExample(/**/ diff --git a/arkoala/ets-plugin/test/golden/Rewrite2.ts b/arkoala/ets-plugin/test/golden/Rewrite2.ts index 7fc3b1b0b1589f9ef3c9469eafb9e661a7a9aa6e..42ff609700b622d5c00d1f14411b8d7f80c24fc1 100644 --- a/arkoala/ets-plugin/test/golden/Rewrite2.ts +++ b/arkoala/ets-plugin/test/golden/Rewrite2.ts @@ -32,7 +32,9 @@ class ArkLocalStorageLinkExampleComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkLocalStorageLinkExampleComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkLocalStorageLinkExampleComponent) { ArkText(undefined, undefined, "LocalStorage entry = " + storage.get("storage")); } } diff --git a/arkoala/ets-plugin/test/golden/Rewrite3.ts b/arkoala/ets-plugin/test/golden/Rewrite3.ts index c8d24a6aed9e076648f310e24b44a14c8d7ee22b..f5d76e8e534523dac18844aca56a99c757a8845d 100644 --- a/arkoala/ets-plugin/test/golden/Rewrite3.ts +++ b/arkoala/ets-plugin/test/golden/Rewrite3.ts @@ -36,7 +36,9 @@ class ArkLocalStoragePropExampleComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkLocalStoragePropExampleComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkLocalStoragePropExampleComponent) { } } /** @memo */ diff --git a/arkoala/ets-plugin/test/golden/ets-component-call/user-function-declaration.ts b/arkoala/ets-plugin/test/golden/ets-component-call/user-function-declaration.ts index 503ff2c3e6914fb50a4c017484086c90015fedf7..04e771aaefa8c1419cd631a9d08c0eb5a6e519cf 100644 --- a/arkoala/ets-plugin/test/golden/ets-component-call/user-function-declaration.ts +++ b/arkoala/ets-plugin/test/golden/ets-component-call/user-function-declaration.ts @@ -36,7 +36,9 @@ export class ArkStructComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkStructComponent) => void) | undefined) { } + builder: ((instance: ArkStructComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkStructComponent) { } } export class ArkStructWithContentComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); @@ -71,7 +73,9 @@ export class ArkStructWithContentComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkStructWithContentComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkStructWithContentComponent) { this.content(); } } diff --git a/arkoala/ets-plugin/test/golden/specification/@builder.ts b/arkoala/ets-plugin/test/golden/specification/@builder.ts index 831f057b5de152e7bc5adbaff82cf876a8a14885..09dfc523a283c661abf6662ed7e17aa6a8b9966e 100644 --- a/arkoala/ets-plugin/test/golden/specification/@builder.ts +++ b/arkoala/ets-plugin/test/golden/specification/@builder.ts @@ -78,7 +78,9 @@ class ArkMyComponentComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkMyComponentComponent) => void) | undefined) { + builder: ((instance: ArkMyComponentComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkMyComponentComponent) { ArkColumn(undefined, () => { ArkRow((instance: ArkRowComponent) => { instance.padding(10) diff --git a/arkoala/ets-plugin/test/golden/specification/@builderParam.ts b/arkoala/ets-plugin/test/golden/specification/@builderParam.ts index 39ef5a8476d120808f6365f2c2acc2c9ecbb1cbc..e8350baf2e2f499778cd86ad86fbf23c66041cde 100644 --- a/arkoala/ets-plugin/test/golden/specification/@builderParam.ts +++ b/arkoala/ets-plugin/test/golden/specification/@builderParam.ts @@ -57,7 +57,9 @@ class ArkCustomContainerComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkCustomContainerComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkCustomContainerComponent) { ArkColumn(undefined, () => { ArkText(undefined, undefined, this.header); this.content(); @@ -99,7 +101,9 @@ class ArkCustomContainer2Component extends ArkStructBase void) | undefined) { + builder: ((instance: ArkCustomContainer2Component) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkCustomContainer2Component) { ArkColumn(undefined, () => { ArkText(undefined, undefined, this.header); this.content(); @@ -153,7 +157,9 @@ class ArkCustomContainerUserComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkCustomContainerUserComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkCustomContainerUserComponent) { ArkColumn(undefined, () => { CustomContainerExport(undefined, () => { ArkColumn((instance: ArkColumnComponent) => { diff --git a/arkoala/ets-plugin/test/golden/specification/@builderWithComponent.ts b/arkoala/ets-plugin/test/golden/specification/@builderWithComponent.ts index 5731b27e7a557e459fd608deb2ac01be0ceb8c2d..2519da28bde326488e58bb21cf1809db7b3f65ff 100644 --- a/arkoala/ets-plugin/test/golden/specification/@builderWithComponent.ts +++ b/arkoala/ets-plugin/test/golden/specification/@builderWithComponent.ts @@ -17,7 +17,9 @@ class ArkIndexComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkIndexComponent) => void) | undefined) { + builder: ((instance: ArkIndexComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkIndexComponent) { ArkRow(undefined, () => { myBuilder(); this.Builder1(); @@ -34,7 +36,9 @@ class ArkchildComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkchildComponent) => void) | undefined) { + builder: ((instance: ArkchildComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkchildComponent) { ArkText(undefined, undefined, 'Hello'); } } diff --git a/arkoala/ets-plugin/test/golden/specification/@builderWithForEach.ts b/arkoala/ets-plugin/test/golden/specification/@builderWithForEach.ts index c86b5ad868fb3f4b870665a301357288337d5fd0..a33dbbe97453bec66c5a6d168c64cb840d4f3935 100644 --- a/arkoala/ets-plugin/test/golden/specification/@builderWithForEach.ts +++ b/arkoala/ets-plugin/test/golden/specification/@builderWithForEach.ts @@ -24,7 +24,9 @@ class ArkIndexComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkIndexComponent) => void) | undefined) { + builder: ((instance: ArkIndexComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkIndexComponent) { ArkColumn(undefined, () => { ComB(this.arr); }); @@ -39,7 +41,9 @@ class ArkComAComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkComAComponent) => void) | undefined) { + builder: ((instance: ArkComAComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkComAComponent) { ArkRow(undefined, () => { ArkText((instance: ArkTextComponent) => { instance.fontSize(30); diff --git a/arkoala/ets-plugin/test/golden/specification/@builderWithLinkData.ts b/arkoala/ets-plugin/test/golden/specification/@builderWithLinkData.ts index 13d9b734b858669716147947bd008931954e7dcf..03306d469eb4bf4e6008affef674e1177c3d3baa 100644 --- a/arkoala/ets-plugin/test/golden/specification/@builderWithLinkData.ts +++ b/arkoala/ets-plugin/test/golden/specification/@builderWithLinkData.ts @@ -18,7 +18,9 @@ class ArkTitleCompComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkTitleCompComponent) => void) | undefined) { + builder: ((instance: ArkTitleCompComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkTitleCompComponent) { ArkText(undefined, undefined, this.title); } } @@ -43,7 +45,9 @@ class ArkTestPageComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkTestPageComponent) => void) | undefined) { + builder: ((instance: ArkTestPageComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkTestPageComponent) { ArkFlex(undefined, () => { this.TitleCompView(); }); diff --git a/arkoala/ets-plugin/test/golden/specification/@consume_@provide.ts b/arkoala/ets-plugin/test/golden/specification/@consume_@provide.ts index fab4a76ac12cbcfcba73b881ea88c17aa7474299..49fa024c1db735c654f5ab28a299e246e58e857d 100644 --- a/arkoala/ets-plugin/test/golden/specification/@consume_@provide.ts +++ b/arkoala/ets-plugin/test/golden/specification/@consume_@provide.ts @@ -18,7 +18,9 @@ class ArkCompAComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkCompAComponent) => void) | undefined) { + builder: ((instance: ArkCompAComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkCompAComponent) { ArkColumn(undefined, () => { CompB(undefined, undefined); ArkButton((instance: ArkButtonComponent) => { @@ -42,7 +44,9 @@ class ArkCompBComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkCompBComponent) => void) | undefined) { + builder: ((instance: ArkCompBComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkCompBComponent) { ArkColumn(undefined, () => { CompC(undefined, undefined); }); @@ -65,7 +69,9 @@ class ArkCompCComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkCompCComponent) => void) | undefined) { + builder: ((instance: ArkCompCComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkCompCComponent) { ArkColumn(undefined, () => { ArkButton((instance: ArkButtonComponent) => { instance.onClick(() => { diff --git a/arkoala/ets-plugin/test/golden/specification/@customDialog.ts b/arkoala/ets-plugin/test/golden/specification/@customDialog.ts index 70e1d8ceff3686d4510b06bc632bd84abc2530b7..113cd55cef6786d02fc23f619caa93c8675f5227 100644 --- a/arkoala/ets-plugin/test/golden/specification/@customDialog.ts +++ b/arkoala/ets-plugin/test/golden/specification/@customDialog.ts @@ -68,7 +68,9 @@ class ArkDialogExampleComponent extends ArkStructBase /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkDialogExampleComponent) => void) | undefined) { + builder: ((instance: ArkDialogExampleComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkDialogExampleComponent) { ArkColumn(undefined, () => { ArkRow(undefined, () => { ArkButton((instance: ArkButtonComponent) => { @@ -150,7 +152,9 @@ class ArkCustomDialogUserComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkCustomDialogUserComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkCustomDialogUserComponent) { ArkColumn(undefined, () => { ArkText((instance: ArkTextComponent) => { instance.fontSize(20); diff --git a/arkoala/ets-plugin/test/golden/specification/@link.ts b/arkoala/ets-plugin/test/golden/specification/@link.ts index 655af1f3503194a7677a8dad0a6d6b6f6c709e16..a435fe1cc3967d0c10ec7d8df3f13fcfe947a4fd 100644 --- a/arkoala/ets-plugin/test/golden/specification/@link.ts +++ b/arkoala/ets-plugin/test/golden/specification/@link.ts @@ -18,7 +18,9 @@ class ArkLinkComponentComponent extends ArkStructBase /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkLinkComponentComponent) => void) | undefined) { + builder: ((instance: ArkLinkComponentComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkLinkComponentComponent) { ArkText(undefined, undefined, this.counter); } } @@ -39,7 +41,9 @@ class ArkParentComponentComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkParentComponentComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkParentComponentComponent) { ArkColumn(undefined, () => { LinkComponent(undefined, undefined, { _counter: this._value }); }); diff --git a/arkoala/ets-plugin/test/golden/specification/@objectLink.ts b/arkoala/ets-plugin/test/golden/specification/@objectLink.ts index c738067b3e54003c160639df79e02a49684c796c..f7762f56236c0ac4007c219500be491f2adfd063 100644 --- a/arkoala/ets-plugin/test/golden/specification/@objectLink.ts +++ b/arkoala/ets-plugin/test/golden/specification/@objectLink.ts @@ -32,7 +32,9 @@ class ArkCustomTextComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkCustomTextComponent) => void) | undefined) { + builder: ((instance: ArkCustomTextComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkCustomTextComponent) { ArkRow(undefined, () => { ArkText(undefined, undefined, this.model.text); }); @@ -63,7 +65,9 @@ class ArkParentComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkParentComponent) => void) | undefined) { + builder: ((instance: ArkParentComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkParentComponent) { ArkColumn(undefined, () => { ForEach(this.models, (item) => { CustomText(undefined, undefined, { model: item }); diff --git a/arkoala/ets-plugin/test/golden/specification/@observed_@objectLink.ts b/arkoala/ets-plugin/test/golden/specification/@observed_@objectLink.ts index 392fb1e07053480a7b8913c0edcaaa8d7ef6c8c8..10ae0fed806fc91d0c7b4a9588812068becd4075 100644 --- a/arkoala/ets-plugin/test/golden/specification/@observed_@objectLink.ts +++ b/arkoala/ets-plugin/test/golden/specification/@observed_@objectLink.ts @@ -39,7 +39,9 @@ class ArkViewAComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkViewAComponent) => void) | undefined) { + builder: ((instance: ArkViewAComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkViewAComponent) { ArkRow(undefined, () => { ArkText(undefined, undefined, 'ViewA-' + this.varA.id); }); @@ -62,7 +64,9 @@ class ArkViewBComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkViewBComponent) => void) | undefined) { + builder: ((instance: ArkViewBComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkViewBComponent) { ArkColumn(undefined, () => { ArkRow(undefined, () => { ViewA(undefined, undefined, { varA: this.varB.a }); diff --git a/arkoala/ets-plugin/test/golden/specification/@preview.ts b/arkoala/ets-plugin/test/golden/specification/@preview.ts index 19cec86fc3f26973c3fee5c0010c4e6f52347062..b72052e233a1eaea96833662b86fa30ff0302296 100644 --- a/arkoala/ets-plugin/test/golden/specification/@preview.ts +++ b/arkoala/ets-plugin/test/golden/specification/@preview.ts @@ -17,7 +17,9 @@ class ArkHomePreviewComponentComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkHomePreviewComponentComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkHomePreviewComponentComponent) { ArkText((instance: ArkTextComponent) => { instance.fontSize(50); }, undefined, this.value); @@ -32,7 +34,9 @@ class ArkHomePreviewComponent_PreviewComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkHomePreviewComponent_PreviewComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkHomePreviewComponent_PreviewComponent) { ArkColumn(undefined, () => { HomePreviewComponent(undefined, undefined); }); diff --git a/arkoala/ets-plugin/test/golden/specification/@prop.ts b/arkoala/ets-plugin/test/golden/specification/@prop.ts index 2d82596065569f96d8bd28c6dd1e53325989d5be..f5a7bf213db4303251a994a30a36c7ef2875d4d3 100644 --- a/arkoala/ets-plugin/test/golden/specification/@prop.ts +++ b/arkoala/ets-plugin/test/golden/specification/@prop.ts @@ -22,7 +22,9 @@ class ArkCustomXComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkCustomXComponent) => void) | undefined) { + builder: ((instance: ArkCustomXComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkCustomXComponent) { } } class ArkCustomYComponent extends ArkStructBase { @@ -42,7 +44,9 @@ class ArkCustomYComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkCustomYComponent) => void) | undefined) { + builder: ((instance: ArkCustomYComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkCustomYComponent) { ArkRow(undefined, () => { CustomX(undefined, undefined, { fruit: this.parentFruit }); CustomX(undefined, undefined, {}); diff --git a/arkoala/ets-plugin/test/golden/specification/@propComplexType.ts b/arkoala/ets-plugin/test/golden/specification/@propComplexType.ts index 0dd5938341cbe84efe3eff4df6cc8f4fc611c2ed..1ffa7b478c6282fbf5f8f3addabe794cd328445d 100644 --- a/arkoala/ets-plugin/test/golden/specification/@propComplexType.ts +++ b/arkoala/ets-plugin/test/golden/specification/@propComplexType.ts @@ -34,7 +34,9 @@ class ArkCustomXComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkCustomXComponent) => void) | undefined) { + builder: ((instance: ArkCustomXComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkCustomXComponent) { ArkRow(undefined, () => { ArkText(undefined, undefined, JSON.stringify(this.fruit.c)); }); @@ -57,7 +59,9 @@ class ArkIndexComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkIndexComponent) => void) | undefined) { + builder: ((instance: ArkIndexComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkIndexComponent) { ArkRow(undefined, () => { CustomX(undefined, undefined, { fruit: this.arrA[0] }); CustomX(undefined, undefined, {}); diff --git a/arkoala/ets-plugin/test/golden/specification/@state.ts b/arkoala/ets-plugin/test/golden/specification/@state.ts index 98902d6aa0a1ddd6e655f0f2ef292517545616ee..617b58dedd0b4fc663a17ba7e29e528fe83717ce 100644 --- a/arkoala/ets-plugin/test/golden/specification/@state.ts +++ b/arkoala/ets-plugin/test/golden/specification/@state.ts @@ -18,7 +18,9 @@ class ArkStatePageComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkStatePageComponent) => void) | undefined) { + builder: ((instance: ArkStatePageComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkStatePageComponent) { ArkColumn(undefined, () => { ArkText(undefined, undefined, "counter:" + this.counter); }); diff --git a/arkoala/ets-plugin/test/golden/specification/@storageLink.ts b/arkoala/ets-plugin/test/golden/specification/@storageLink.ts index 95423834cad0bfb12187333f9dd43c4dce64352b..a5210daf845fb181504dcab594fbe9dd8baa07e2 100644 --- a/arkoala/ets-plugin/test/golden/specification/@storageLink.ts +++ b/arkoala/ets-plugin/test/golden/specification/@storageLink.ts @@ -43,7 +43,9 @@ class ArkMyComponentComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkMyComponentComponent) => void) | undefined) { + builder: ((instance: ArkMyComponentComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkMyComponentComponent) { ArkRow(undefined, () => { ArkButton((instance: ArkButtonComponent) => { instance.onClick(() => { diff --git a/arkoala/ets-plugin/test/golden/specification/@storageProp.ts b/arkoala/ets-plugin/test/golden/specification/@storageProp.ts index 34bea19dd744483f792b3f8076add7e3d1b9d288..44ef9a30e672ac60ad7df699bcdb6a4c01a441d5 100644 --- a/arkoala/ets-plugin/test/golden/specification/@storageProp.ts +++ b/arkoala/ets-plugin/test/golden/specification/@storageProp.ts @@ -43,7 +43,9 @@ class ArkMyComponentComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkMyComponentComponent) => void) | undefined) { + builder: ((instance: ArkMyComponentComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkMyComponentComponent) { ArkRow(undefined, () => { ArkButton((instance: ArkButtonComponent) => { instance.onClick(() => { diff --git a/arkoala/ets-plugin/test/golden/specification/@styles.ts b/arkoala/ets-plugin/test/golden/specification/@styles.ts index c60b2723c85cc7c66577340dc3f69028730d8657..81ab0ddffcfa907d2d5cb50bcbe7e79b41ca806a 100644 --- a/arkoala/ets-plugin/test/golden/specification/@styles.ts +++ b/arkoala/ets-plugin/test/golden/specification/@styles.ts @@ -24,7 +24,9 @@ class ArkFancyUseComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkFancyUseComponent) => void) | undefined) { + builder: ((instance: ArkFancyUseComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkFancyUseComponent) { ArkColumn(undefined, () => { ArkText((instance: ArkTextComponent) => { instance.__applyStyle(globalFancy) diff --git a/arkoala/ets-plugin/test/golden/specification/@stylesExport.ts b/arkoala/ets-plugin/test/golden/specification/@stylesExport.ts index 887b77f538afa630619ba1e31690bfd3de1f45ed..50b31b663f3c38490b44c55f67908881902f75c0 100644 --- a/arkoala/ets-plugin/test/golden/specification/@stylesExport.ts +++ b/arkoala/ets-plugin/test/golden/specification/@stylesExport.ts @@ -24,7 +24,9 @@ export class ArkFancyUseExpComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkFancyUseExpComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkFancyUseExpComponent) { ArkColumn(undefined, () => { ArkText((instance: ArkTextComponent) => { instance.__applyStyle(globalFancy) diff --git a/arkoala/ets-plugin/test/golden/specification/@watch.ts b/arkoala/ets-plugin/test/golden/specification/@watch.ts index 4be6fea878e17ba05690d10c7b0e58ddd99a9f32..cf1843cc89ef12debd00f43cd3b756b1e0f01ebc 100644 --- a/arkoala/ets-plugin/test/golden/specification/@watch.ts +++ b/arkoala/ets-plugin/test/golden/specification/@watch.ts @@ -69,7 +69,9 @@ class ArkCompAComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkCompAComponent) => void) | undefined) { + builder: ((instance: ArkCompAComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkCompAComponent) { ArkColumn(undefined, () => { ArkButton((instance: ArkButtonComponent) => { instance.onClick(() => { diff --git a/arkoala/ets-plugin/test/golden/specification/GridItem.ts b/arkoala/ets-plugin/test/golden/specification/GridItem.ts index d0cafd42f2081e1862c30f4eebf1fa3f1806095a..bd4226e4603a89f7bbe96a84858fdca665ab488e 100644 --- a/arkoala/ets-plugin/test/golden/specification/GridItem.ts +++ b/arkoala/ets-plugin/test/golden/specification/GridItem.ts @@ -9,7 +9,9 @@ class ArkParentViewComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkParentViewComponent) => void) | undefined) { + builder: ((instance: ArkParentViewComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkParentViewComponent) { ArkGrid(undefined, () => { ArkGridItem((instance: ArkGridItemComponent) => { instance.width(200).height(100); diff --git a/arkoala/ets-plugin/test/golden/specification/ListItem.ts b/arkoala/ets-plugin/test/golden/specification/ListItem.ts index d06de6876021647cb863fa15ab36368782cf0cf0..a0a801bc29c43a7f8b2c3121ab28b83805c06106 100644 --- a/arkoala/ets-plugin/test/golden/specification/ListItem.ts +++ b/arkoala/ets-plugin/test/golden/specification/ListItem.ts @@ -9,7 +9,9 @@ class ArkParentViewComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkParentViewComponent) => void) | undefined) { + builder: ((instance: ArkParentViewComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkParentViewComponent) { ArkList(undefined, () => { ArkListItem((instance: ArkListItemComponent) => { instance.width(200).height(100); diff --git a/arkoala/ets-plugin/test/golden/specification/XComponentContainer.ts b/arkoala/ets-plugin/test/golden/specification/XComponentContainer.ts index 69773611f1bf9b524d5cc5e7411a073732f8afca..f9a6aa44a598271031381ae9378fcd782d63b24a 100644 --- a/arkoala/ets-plugin/test/golden/specification/XComponentContainer.ts +++ b/arkoala/ets-plugin/test/golden/specification/XComponentContainer.ts @@ -9,7 +9,9 @@ class ArkHomeComponentComponent extends ArkStructBase /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkHomeComponentComponent) => void) | undefined) { + builder: ((instance: ArkHomeComponentComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkHomeComponentComponent) { ArkColumn(undefined, () => { ArkXComponent(undefined, undefined, { id: '1', type: 'component' }); ArkXComponent(undefined, undefined, { id: '2', type: 1 }); diff --git a/arkoala/ets-plugin/test/golden/specification/animatableExtend.ts b/arkoala/ets-plugin/test/golden/specification/animatableExtend.ts index 987b21fb692704065136f796e2997d97daedfcf5..bdfabb2542df45531a0ed3e484710b64a1713c73 100644 --- a/arkoala/ets-plugin/test/golden/specification/animatableExtend.ts +++ b/arkoala/ets-plugin/test/golden/specification/animatableExtend.ts @@ -24,7 +24,9 @@ class ArkHomeComponentComponent extends ArkStructBase /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkHomeComponentComponent) => void) | undefined) { + builder: ((instance: ArkHomeComponentComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkHomeComponentComponent) { ArkColumn(undefined, () => { ArkPolyline((instance: ArkPolylineComponent) => { instance.__applyAnimatableExtend(animatablePoints__Polyline, this.points) diff --git a/arkoala/ets-plugin/test/golden/specification/animateTo.ts b/arkoala/ets-plugin/test/golden/specification/animateTo.ts index bcb227a083031c8357283333945b907ff766a94d..1dd1200a3cc032da72b549a76f8d88573179994c 100644 --- a/arkoala/ets-plugin/test/golden/specification/animateTo.ts +++ b/arkoala/ets-plugin/test/golden/specification/animateTo.ts @@ -82,7 +82,9 @@ class ArkTransitionExampleComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkTransitionExampleComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkTransitionExampleComponent) { ArkFlex((instance: ArkFlexComponent) => { instance.height(400).width("100%").padding({ top: 100 }); }, () => { diff --git a/arkoala/ets-plugin/test/golden/specification/appStorage.ts b/arkoala/ets-plugin/test/golden/specification/appStorage.ts index e7ce5166e4a5a457057402047de11933c6da8843..dd19540df28dc3233ec6502f71f1452bf6816b47 100644 --- a/arkoala/ets-plugin/test/golden/specification/appStorage.ts +++ b/arkoala/ets-plugin/test/golden/specification/appStorage.ts @@ -43,7 +43,9 @@ class ArkMyComponentComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkMyComponentComponent) => void) | undefined) { + builder: ((instance: ArkMyComponentComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkMyComponentComponent) { ArkRow(undefined, () => { ArkButton((instance: ArkButtonComponent) => { instance.onClick(() => { diff --git a/arkoala/ets-plugin/test/golden/specification/button.ts b/arkoala/ets-plugin/test/golden/specification/button.ts index 8aa20636d6e143edd21297bc6e8681960819d5e0..465659395c6eb3677c0b81a91053d01d2534571b 100644 --- a/arkoala/ets-plugin/test/golden/specification/button.ts +++ b/arkoala/ets-plugin/test/golden/specification/button.ts @@ -9,7 +9,9 @@ class ArkButtonExampleComponent extends ArkStructBase /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkButtonExampleComponent) => void) | undefined) { + builder: ((instance: ArkButtonExampleComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkButtonExampleComponent) { ArkFlex(undefined, () => { ArkFlex(undefined, () => { ArkButton((instance: ArkButtonComponent) => { diff --git a/arkoala/ets-plugin/test/golden/specification/component_object.ts b/arkoala/ets-plugin/test/golden/specification/component_object.ts index d320a0769b6767494b1142b37c3262c44f7d65bb..dc77d62657251b51f033a5d092ad554a4b1475f4 100644 --- a/arkoala/ets-plugin/test/golden/specification/component_object.ts +++ b/arkoala/ets-plugin/test/golden/specification/component_object.ts @@ -30,7 +30,9 @@ class ArkIndexComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkIndexComponent) => void) | undefined) { + builder: ((instance: ArkIndexComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkIndexComponent) { ArkRow(undefined, () => { Child(undefined, undefined, { options, message1: this.message1, message2: this.message2 }); Child2(undefined, undefined, options); @@ -76,7 +78,9 @@ class ArkChildComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkChildComponent) => void) | undefined) { + builder: ((instance: ArkChildComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkChildComponent) { ArkColumn(undefined, () => { ArkText(undefined, undefined, this.message1); }); @@ -101,7 +105,9 @@ class ArkChild2Component extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkChild2Component) => void) | undefined) { + builder: ((instance: ArkChild2Component) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkChild2Component) { ArkColumn(undefined, () => { ArkText(undefined, undefined, this.message); }); diff --git a/arkoala/ets-plugin/test/golden/specification/custom_component.ts b/arkoala/ets-plugin/test/golden/specification/custom_component.ts index e917da2f3e1f9a1284faa06f6a5b9a8c8907a41b..d394cdca61753c9d2f481d9b717c1de95e86e8a0 100644 --- a/arkoala/ets-plugin/test/golden/specification/custom_component.ts +++ b/arkoala/ets-plugin/test/golden/specification/custom_component.ts @@ -9,7 +9,9 @@ class ArkMyComponentComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkMyComponentComponent) => void) | undefined) { + builder: ((instance: ArkMyComponentComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkMyComponentComponent) { ArkColumn(undefined, () => { Banner(undefined, undefined); Banner(undefined, undefined) @@ -43,7 +45,9 @@ class ArkBannerComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkBannerComponent) => void) | undefined) { + builder: ((instance: ArkBannerComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkBannerComponent) { ArkColumn(undefined, () => { ArkText(undefined, undefined, this.value); }); diff --git a/arkoala/ets-plugin/test/golden/specification/decoratorKeyCheck.ts b/arkoala/ets-plugin/test/golden/specification/decoratorKeyCheck.ts index 997530151725533d0cf2fd7c830fc45ad521f783..252cb5b42001a9db7fc0f7cc8094d0e6b02508b5 100644 --- a/arkoala/ets-plugin/test/golden/specification/decoratorKeyCheck.ts +++ b/arkoala/ets-plugin/test/golden/specification/decoratorKeyCheck.ts @@ -200,7 +200,9 @@ class ArkIndexComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkIndexComponent) => void) | undefined) { + builder: ((instance: ArkIndexComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkIndexComponent) { ArkRow(undefined, undefined); } } diff --git a/arkoala/ets-plugin/test/golden/specification/forEachSecondFunction.ts b/arkoala/ets-plugin/test/golden/specification/forEachSecondFunction.ts index 5b4714624372a1b6c255e7581a8f73d8a275c938..316b8c318946550d790e9b52e79390d9ddd003e1 100644 --- a/arkoala/ets-plugin/test/golden/specification/forEachSecondFunction.ts +++ b/arkoala/ets-plugin/test/golden/specification/forEachSecondFunction.ts @@ -18,7 +18,9 @@ class ArkMyComponentComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkMyComponentComponent) => void) | undefined) { + builder: ((instance: ArkMyComponentComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkMyComponentComponent) { ArkColumn((instance: ArkColumnComponent) => { instance.width("100%").height("100%"); }, () => { diff --git a/arkoala/ets-plugin/test/golden/specification/forEachTwo.ts b/arkoala/ets-plugin/test/golden/specification/forEachTwo.ts index 341905bc8a9b487645a7931bc9a397bb63899cb0..61f5d1a7798d60d7b49d9384c5c13c9585ce76cc 100644 --- a/arkoala/ets-plugin/test/golden/specification/forEachTwo.ts +++ b/arkoala/ets-plugin/test/golden/specification/forEachTwo.ts @@ -36,7 +36,9 @@ class ArkIndexComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkIndexComponent) => void) | undefined) { + builder: ((instance: ArkIndexComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkIndexComponent) { ArkRow((instance: ArkRowComponent) => { instance.height('100%'); }, () => { diff --git a/arkoala/ets-plugin/test/golden/specification/foreach.ts b/arkoala/ets-plugin/test/golden/specification/foreach.ts index 288a6593c78d66b01940524adf3705776cba39f0..fe1eabbb7df7ef84383d393745258734da4d275a 100644 --- a/arkoala/ets-plugin/test/golden/specification/foreach.ts +++ b/arkoala/ets-plugin/test/golden/specification/foreach.ts @@ -18,7 +18,9 @@ class ArkParentViewComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkParentViewComponent) => void) | undefined) { + builder: ((instance: ArkParentViewComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkParentViewComponent) { ArkList(undefined, () => { ForEach(this.arr, item => { ArkText(undefined, undefined, item); @@ -43,7 +45,9 @@ class ArkParentView1Component extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkParentView1Component) => void) | undefined) { + builder: ((instance: ArkParentView1Component) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkParentView1Component) { ArkList(undefined, () => { ForEach(this.arr, (item, index) => { ArkText(undefined, undefined, item); @@ -68,7 +72,9 @@ class ArkParentView2Component extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkParentView2Component) => void) | undefined) { + builder: ((instance: ArkParentView2Component) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkParentView2Component) { ArkList(undefined, () => { ForEach(this.arr, (item, index) => { ArkText(undefined, undefined, item); @@ -93,7 +99,9 @@ class ArkParentView3Component extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkParentView3Component) => void) | undefined) { + builder: ((instance: ArkParentView3Component) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkParentView3Component) { ArkList(undefined, () => { ForEach(this.arr, (item, index) => { ArkText(undefined, undefined, item); @@ -118,7 +126,9 @@ class ArkParentView4Component extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkParentView4Component) => void) | undefined) { + builder: ((instance: ArkParentView4Component) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkParentView4Component) { ArkList(undefined, () => { ForEach(this.arr, item => { ArkText(undefined, undefined, item); @@ -143,7 +153,9 @@ class ArkParentView5Component extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkParentView5Component) => void) | undefined) { + builder: ((instance: ArkParentView5Component) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkParentView5Component) { ArkList(undefined, () => { ForEach(this.arr, item => { ArkText(undefined, undefined, item); diff --git a/arkoala/ets-plugin/test/golden/specification/handleCustomBuilder.ts b/arkoala/ets-plugin/test/golden/specification/handleCustomBuilder.ts index e8e6946379649090e992f87f886e6ef8ec5d3afe..9617f7ffe741a197f33af74bcca6ffcfa962f6de 100644 --- a/arkoala/ets-plugin/test/golden/specification/handleCustomBuilder.ts +++ b/arkoala/ets-plugin/test/golden/specification/handleCustomBuilder.ts @@ -38,7 +38,9 @@ class ArkIndexComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkIndexComponent) => void) | undefined) { + builder: ((instance: ArkIndexComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkIndexComponent) { ArkColumn(undefined, () => { ArkRow((instance: ArkRowComponent) => { instance.bindMenu(/* */ diff --git a/arkoala/ets-plugin/test/golden/specification/id_if.ts b/arkoala/ets-plugin/test/golden/specification/id_if.ts index eede9bc6089b443c3611050016160f620b0efa6d..d684f403e0faf79a8cd1edf5cd6dae4d5f54870e 100644 --- a/arkoala/ets-plugin/test/golden/specification/id_if.ts +++ b/arkoala/ets-plugin/test/golden/specification/id_if.ts @@ -33,7 +33,9 @@ class ArkMyComponentComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkMyComponentComponent) => void) | undefined) { + builder: ((instance: ArkMyComponentComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkMyComponentComponent) { ArkColumn(undefined, () => { if (this.pass) { if (this.count < 0) { @@ -137,7 +139,9 @@ class ArkChildComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkChildComponent) => void) | undefined) { + builder: ((instance: ArkChildComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkChildComponent) { ArkColumn(undefined, () => { ArkText((instance: ArkTextComponent) => { instance.fontSize(50); diff --git a/arkoala/ets-plugin/test/golden/specification/if.ts b/arkoala/ets-plugin/test/golden/specification/if.ts index 269218d4c5337c6e2a8c21e5e90d5fe180dbafcb..5a97b2ac833a28ca7d878dc35d5fd0f45c1c8407 100644 --- a/arkoala/ets-plugin/test/golden/specification/if.ts +++ b/arkoala/ets-plugin/test/golden/specification/if.ts @@ -34,7 +34,9 @@ class ArkIFViewComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkIFViewComponent) => void) | undefined) { + builder: ((instance: ArkIFViewComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkIFViewComponent) { ArkColumn(undefined, () => { if (this.toggle1) { ArkText(undefined, undefined, 'toggle1'); diff --git a/arkoala/ets-plugin/test/golden/specification/import@CustomDialog.ts b/arkoala/ets-plugin/test/golden/specification/import@CustomDialog.ts index 9700920803912cc1c997ab42ff1a48444edc5229..a20a9b13df834870d1a8b37eceb609480fa8f9d2 100644 --- a/arkoala/ets-plugin/test/golden/specification/import@CustomDialog.ts +++ b/arkoala/ets-plugin/test/golden/specification/import@CustomDialog.ts @@ -57,7 +57,9 @@ class ArkCustomDialogUserComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkCustomDialogUserComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkCustomDialogUserComponent) { ArkColumn((instance: ArkColumnComponent) => { instance.width('100%').margin({ top: 5 }); }, () => { diff --git a/arkoala/ets-plugin/test/golden/specification/import@Observed.ts b/arkoala/ets-plugin/test/golden/specification/import@Observed.ts index f2246930bcdc613cc5c1a89f6fb3f5de33d0fb29..d6061fa3a2a077208fde97e5c20cb2fad6e208b6 100644 --- a/arkoala/ets-plugin/test/golden/specification/import@Observed.ts +++ b/arkoala/ets-plugin/test/golden/specification/import@Observed.ts @@ -31,7 +31,9 @@ class ArkViewAComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkViewAComponent) => void) | undefined) { + builder: ((instance: ArkViewAComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkViewAComponent) { ArkRow((instance: ArkRowComponent) => { instance.margin({ top: 10 }); }, () => { @@ -60,7 +62,9 @@ class ArkViewBComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkViewBComponent) => void) | undefined) { + builder: ((instance: ArkViewBComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkViewBComponent) { ArkColumn((instance: ArkColumnComponent) => { instance.width('100%'); }, () => { diff --git a/arkoala/ets-plugin/test/golden/specification/importAllEts.ts b/arkoala/ets-plugin/test/golden/specification/importAllEts.ts index 4b74e11ce2b8536d8b9b4d45143df8479d7b6b94..78d8d454eb7feee24c5b25547800798ad8ca1106 100644 --- a/arkoala/ets-plugin/test/golden/specification/importAllEts.ts +++ b/arkoala/ets-plugin/test/golden/specification/importAllEts.ts @@ -44,7 +44,9 @@ class ArkImportTestComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkImportTestComponent) => void) | undefined) { + builder: ((instance: ArkImportTestComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkImportTestComponent) { ArkColumn(undefined, () => { AllComponent.NamespaceComponent1({ _NamespaceComponent1Link1: this._myState1, diff --git a/arkoala/ets-plugin/test/golden/specification/importEts.ts b/arkoala/ets-plugin/test/golden/specification/importEts.ts index 2d11d01056e2a61646f39305d177ca9863756afb..4dbd618d6dab715d1710a1bc1534a07e6ccd87c9 100644 --- a/arkoala/ets-plugin/test/golden/specification/importEts.ts +++ b/arkoala/ets-plugin/test/golden/specification/importEts.ts @@ -46,7 +46,9 @@ class ArkImportTestComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkImportTestComponent) => void) | undefined) { + builder: ((instance: ArkImportTestComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkImportTestComponent) { ArkColumn(undefined, () => { LinkComponent2Ref({ _LinkComponent2Link1: this._myState1, diff --git a/arkoala/ets-plugin/test/golden/specification/importExportEts.ts b/arkoala/ets-plugin/test/golden/specification/importExportEts.ts index cf15e5eca24c96b7c661555d15b9a11141b2e9be..08d11be749346a631d67ca57efd2a5559c9b37c3 100644 --- a/arkoala/ets-plugin/test/golden/specification/importExportEts.ts +++ b/arkoala/ets-plugin/test/golden/specification/importExportEts.ts @@ -44,7 +44,9 @@ class ArkImportTestComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkImportTestComponent) => void) | undefined) { + builder: ((instance: ArkImportTestComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkImportTestComponent) { ArkColumn(undefined, () => { AllStarComponent.ExportComponent({ _ExportComponent1Link1: this._myState1, diff --git a/arkoala/ets-plugin/test/golden/specification/importExportNest.ts b/arkoala/ets-plugin/test/golden/specification/importExportNest.ts index ef395a4b61d90fdee590effbff84cdf2297a7ccd..997c4122c9e7643e94a03e017b127f35dbbd2497 100644 --- a/arkoala/ets-plugin/test/golden/specification/importExportNest.ts +++ b/arkoala/ets-plugin/test/golden/specification/importExportNest.ts @@ -83,7 +83,9 @@ class ArkImportTestComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkImportTestComponent) => void) | undefined) { + builder: ((instance: ArkImportTestComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkImportTestComponent) { ArkColumn(undefined, () => { ArkText((instance: ArkTextComponent) => { instance.fontSize(50); diff --git a/arkoala/ets-plugin/test/golden/specification/importTs.ts b/arkoala/ets-plugin/test/golden/specification/importTs.ts index d78d6a83c0c4145de44b7cea28f8b95bb979ef16..a703ed48c5370b3a5a0a85189760d5fc2380f6c3 100644 --- a/arkoala/ets-plugin/test/golden/specification/importTs.ts +++ b/arkoala/ets-plugin/test/golden/specification/importTs.ts @@ -44,7 +44,9 @@ class ArkImportTestComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkImportTestComponent) => void) | undefined) { + builder: ((instance: ArkImportTestComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkImportTestComponent) { ArkColumn(undefined, () => { AllStarComponent.ExportComponent({ _ExportComponent1Link1: this._myState1, diff --git a/arkoala/ets-plugin/test/golden/specification/lazyforeach.ts b/arkoala/ets-plugin/test/golden/specification/lazyforeach.ts index e624e3caf6fc375e92f870cfe476776c42ab7802..5ccbb766d3df3fa4c14ef941f0b361d51f56f3b3 100644 --- a/arkoala/ets-plugin/test/golden/specification/lazyforeach.ts +++ b/arkoala/ets-plugin/test/golden/specification/lazyforeach.ts @@ -81,7 +81,9 @@ class ArkTestComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkTestComponent) => void) | undefined) { + builder: ((instance: ArkTestComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkTestComponent) { ArkLazyGrid(undefined, () => { LazyForEach(this.data, (row) => { ArkGridItem(undefined, () => { diff --git a/arkoala/ets-plugin/test/golden/specification/localStorage.ts b/arkoala/ets-plugin/test/golden/specification/localStorage.ts index d8cdf2d79a95c2378caa877a79bd3d55f2689a8e..81111b8b0aee1081bbb47eaf1d2301184a30df57 100644 --- a/arkoala/ets-plugin/test/golden/specification/localStorage.ts +++ b/arkoala/ets-plugin/test/golden/specification/localStorage.ts @@ -39,7 +39,9 @@ class ArkLocalStorageComponentComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkLocalStorageComponentComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkLocalStorageComponentComponent) { ArkColumn((instance: ArkColumnComponent) => { instance.height(500); }, () => { diff --git a/arkoala/ets-plugin/test/golden/specification/localStorageForBoth.ts b/arkoala/ets-plugin/test/golden/specification/localStorageForBoth.ts index e17b117e3d25705a014051f2048f2b0a9efd051f..10908ce33b8e923687e846acdf2ff47a3d164369 100644 --- a/arkoala/ets-plugin/test/golden/specification/localStorageForBoth.ts +++ b/arkoala/ets-plugin/test/golden/specification/localStorageForBoth.ts @@ -43,7 +43,9 @@ class ArkLocalStorageComponentComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkLocalStorageComponentComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkLocalStorageComponentComponent) { ArkColumn((instance: ArkColumnComponent) => { instance.height(500); }, () => { diff --git a/arkoala/ets-plugin/test/golden/specification/localStorageForRoute.ts b/arkoala/ets-plugin/test/golden/specification/localStorageForRoute.ts index a5ae5593cf80753a97f0f47ed827f87b516cf9e4..13f54a333f0ca6685f4de8ed8ae7d83e5d880f3d 100644 --- a/arkoala/ets-plugin/test/golden/specification/localStorageForRoute.ts +++ b/arkoala/ets-plugin/test/golden/specification/localStorageForRoute.ts @@ -12,7 +12,9 @@ class ArkLocalStorageComponentComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkLocalStorageComponentComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkLocalStorageComponentComponent) { ArkColumn((instance: ArkColumnComponent) => { instance.height(500); }, undefined); diff --git a/arkoala/ets-plugin/test/golden/specification/localStorageForStorage.ts b/arkoala/ets-plugin/test/golden/specification/localStorageForStorage.ts index abe10a56cd21e7a5592d29197802b18485884882..9814b9e1a4fca69a0d132109223717091e84cf0c 100644 --- a/arkoala/ets-plugin/test/golden/specification/localStorageForStorage.ts +++ b/arkoala/ets-plugin/test/golden/specification/localStorageForStorage.ts @@ -41,7 +41,9 @@ class ArkLocalStorageComponentComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkLocalStorageComponentComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkLocalStorageComponentComponent) { ArkColumn((instance: ArkColumnComponent) => { instance.height(500); }, () => { diff --git a/arkoala/ets-plugin/test/golden/specification/longPressGesture.ts b/arkoala/ets-plugin/test/golden/specification/longPressGesture.ts index 26ec6e9303c402b97d80f349c395b13d2f70408f..6080331c7face809f730e2c91d852fef97e31c5b 100644 --- a/arkoala/ets-plugin/test/golden/specification/longPressGesture.ts +++ b/arkoala/ets-plugin/test/golden/specification/longPressGesture.ts @@ -18,7 +18,9 @@ class ArkLongPressGestureExampleComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkLongPressGestureExampleComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkLongPressGestureExampleComponent) { ArkFlex((instance: ArkFlexComponent) => { instance.height(200).width(300).padding(60).border({ width: 1 }).margin(30) .gesture(LongPressGesture({ repeat: true }) diff --git a/arkoala/ets-plugin/test/golden/specification/pageTransition.ts b/arkoala/ets-plugin/test/golden/specification/pageTransition.ts index 990ea225646b79697ff8f53d77dcab542fa8cc86..d92c7c454c94394e3db4283ed02cbfc3595f970c 100644 --- a/arkoala/ets-plugin/test/golden/specification/pageTransition.ts +++ b/arkoala/ets-plugin/test/golden/specification/pageTransition.ts @@ -34,7 +34,9 @@ class ArkPageTransitionExample1Component extends ArkStructBase void) | undefined) { + builder: ((instance: ArkPageTransitionExample1Component) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkPageTransitionExample1Component) { ArkColumn((instance: ArkColumnComponent) => { instance.scale({ x: this.scale2 }).opacity(this.opacity2); }, () => { diff --git a/arkoala/ets-plugin/test/golden/specification/panGestrue.ts b/arkoala/ets-plugin/test/golden/specification/panGestrue.ts index fadf1d391376593df28a682e268ca94cf5d72ad1..a7a743e4febf3d754f02695f50bbd127689f3c35 100644 --- a/arkoala/ets-plugin/test/golden/specification/panGestrue.ts +++ b/arkoala/ets-plugin/test/golden/specification/panGestrue.ts @@ -26,7 +26,9 @@ class ArkPanGestureExampleComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkPanGestureExampleComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkPanGestureExampleComponent) { ArkFlex((instance: ArkFlexComponent) => { instance.height(100).width(200).padding(20).border({ width: 1 }).margin(80) .translate({ x: this.offsetX, y: this.offsetY, z: 5 }) diff --git a/arkoala/ets-plugin/test/golden/specification/pinchGesture.ts b/arkoala/ets-plugin/test/golden/specification/pinchGesture.ts index b886b7d19dce511e9cff186c6f881c04bfc816bf..d3b432176246236753ee3641df78ad48a2f03d94 100644 --- a/arkoala/ets-plugin/test/golden/specification/pinchGesture.ts +++ b/arkoala/ets-plugin/test/golden/specification/pinchGesture.ts @@ -18,7 +18,9 @@ class ArkPinchGestureExampleComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkPinchGestureExampleComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkPinchGestureExampleComponent) { ArkFlex((instance: ArkFlexComponent) => { instance.height(100).width(200).padding(20).border({ width: 1 }).margin(80) .scale({ x: this.scale2, y: this.scale2, z: this.scale2 }) diff --git a/arkoala/ets-plugin/test/golden/specification/recycle.ts b/arkoala/ets-plugin/test/golden/specification/recycle.ts index fd065861d847ac917eb8d651a566aa0ee3efeba9..a89dcf8142ff32e00a95725e623a8e06cf4aca8d 100644 --- a/arkoala/ets-plugin/test/golden/specification/recycle.ts +++ b/arkoala/ets-plugin/test/golden/specification/recycle.ts @@ -26,7 +26,9 @@ class ArkHomeComponentComponent extends ArkStructBase /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkHomeComponentComponent) => void) | undefined) { + builder: ((instance: ArkHomeComponentComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkHomeComponentComponent) { ArkColumn((instance: ArkColumnComponent) => { instance.width(this.state_value) .height(100); @@ -110,7 +112,9 @@ class ArkchildComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkchildComponent) => void) | undefined) { + builder: ((instance: ArkchildComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkchildComponent) { ArkColumn(undefined, () => { AnimationTest(undefined, undefined) .border({ width: 3, color: Color.Red }) @@ -202,7 +206,9 @@ class ArkNormalComponentComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkNormalComponentComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkNormalComponentComponent) { ArkColumn(undefined, () => { ArkText((instance: ArkTextComponent) => { instance.width(this.width_value) @@ -228,7 +234,9 @@ class ArkAnimationTestComponent extends ArkStructBase /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkAnimationTestComponent) => void) | undefined) { + builder: ((instance: ArkAnimationTestComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkAnimationTestComponent) { ArkColumn(undefined, () => { ArkText((instance: ArkTextComponent) => { instance.height(100) diff --git a/arkoala/ets-plugin/test/golden/specification/recycle_extend_styles.ts b/arkoala/ets-plugin/test/golden/specification/recycle_extend_styles.ts index 657ae27ed5dc9006931964c47a1d3dbefe2c5289..dea765cc90b1065a15146ab16f07bfbf0b97eac0 100644 --- a/arkoala/ets-plugin/test/golden/specification/recycle_extend_styles.ts +++ b/arkoala/ets-plugin/test/golden/specification/recycle_extend_styles.ts @@ -22,7 +22,9 @@ class ArkExtendComponentComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkExtendComponentComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkExtendComponentComponent) { ArkColumn(undefined, () => { ArkButton((instance: ArkButtonComponent) => { instance.__applyStyle(fancybut__Button, Color.Green); @@ -73,7 +75,9 @@ class ArkStylesComponentComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkStylesComponentComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkStylesComponentComponent) { ArkColumn(undefined, () => { ArkText((instance: ArkTextComponent) => { instance.__applyStyle(globalFancy) diff --git a/arkoala/ets-plugin/test/golden/specification/recycle_function_array.ts b/arkoala/ets-plugin/test/golden/specification/recycle_function_array.ts index eaee7aa4004b315d8209762f813bf18c9d884a66..1cca216f27857e1230804a197a63a472ca96a8ff 100644 --- a/arkoala/ets-plugin/test/golden/specification/recycle_function_array.ts +++ b/arkoala/ets-plugin/test/golden/specification/recycle_function_array.ts @@ -18,7 +18,9 @@ class ArkHomeComponentComponent extends ArkStructBase /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkHomeComponentComponent) => void) | undefined) { + builder: ((instance: ArkHomeComponentComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkHomeComponentComponent) { ArkColumn(undefined, () => { child(undefined, undefined); }); @@ -49,7 +51,9 @@ class ArkchildComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkchildComponent) => void) | undefined) { + builder: ((instance: ArkchildComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkchildComponent) { ArkColumn(undefined, () => { ArkCircle((instance: ArkCircleComponent) => { instance.onClick(() => { diff --git a/arkoala/ets-plugin/test/golden/specification/recycle_gesture.ts b/arkoala/ets-plugin/test/golden/specification/recycle_gesture.ts index d19e893c8505c3d617e78b7722f203c1ad9df708..d9d0aaf08683fcd4ca329ec52e2fc8da32788944 100644 --- a/arkoala/ets-plugin/test/golden/specification/recycle_gesture.ts +++ b/arkoala/ets-plugin/test/golden/specification/recycle_gesture.ts @@ -25,7 +25,9 @@ class ArkGestureTestComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkGestureTestComponent) => void) | undefined) { + builder: ((instance: ArkGestureTestComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkGestureTestComponent) { ArkFlex((instance: ArkFlexComponent) => { instance.height(100).width(this.width_value).padding(60).border({ width: 1 }).margin(30) .gesture(LongPressGesture({ repeat: true }) diff --git a/arkoala/ets-plugin/test/golden/specification/recycle_reuseId.ts b/arkoala/ets-plugin/test/golden/specification/recycle_reuseId.ts index 78b01e1441adaec22f9ef7d16df23a162a2b9e64..36ff0f9997406d57f028ed85ebf037575034d5a6 100644 --- a/arkoala/ets-plugin/test/golden/specification/recycle_reuseId.ts +++ b/arkoala/ets-plugin/test/golden/specification/recycle_reuseId.ts @@ -27,7 +27,9 @@ class ArkHomeComponentComponent extends ArkStructBase /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkHomeComponentComponent) => void) | undefined) { + builder: ((instance: ArkHomeComponentComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkHomeComponentComponent) { ArkColumn(undefined, () => { child(undefined, undefined, { propvalue: this.value, linkvalue: this.value }) .border({ width: 3, color: Color.Red }) @@ -75,7 +77,9 @@ class ArkchildComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkchildComponent) => void) | undefined) { + builder: ((instance: ArkchildComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkchildComponent) { ArkColumn(undefined, undefined); } } diff --git a/arkoala/ets-plugin/test/golden/specification/rotationGesture.ts b/arkoala/ets-plugin/test/golden/specification/rotationGesture.ts index ff869d0b1e4bb2f84a20e6a474c06adf98f6c481..e9822819559d74b6da6b06b66ec298ccef0decb9 100644 --- a/arkoala/ets-plugin/test/golden/specification/rotationGesture.ts +++ b/arkoala/ets-plugin/test/golden/specification/rotationGesture.ts @@ -18,7 +18,9 @@ class ArkRotationGestureExampleComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkRotationGestureExampleComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkRotationGestureExampleComponent) { ArkFlex((instance: ArkFlexComponent) => { instance.height(100).width(200).padding(20).border({ width: 1 }) .margin(80).rotate({ x: 1, y: 2, z: 3, angle: this.angle }) diff --git a/arkoala/ets-plugin/test/golden/specification/swipeGesture.ts b/arkoala/ets-plugin/test/golden/specification/swipeGesture.ts index 9cff2c52a3f68c0c6f8a3b206b2d3e622e2587b2..5befb316e876fcd8a6e77c9b9f5b2936f487f349 100644 --- a/arkoala/ets-plugin/test/golden/specification/swipeGesture.ts +++ b/arkoala/ets-plugin/test/golden/specification/swipeGesture.ts @@ -26,7 +26,9 @@ class ArkSwipeGestureExampleComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkSwipeGestureExampleComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkSwipeGestureExampleComponent) { ArkColumn((instance: ArkColumnComponent) => { instance.border({ width: 2 }) .width(260).height(260) diff --git a/arkoala/ets-plugin/test/golden/specification/tab.ts b/arkoala/ets-plugin/test/golden/specification/tab.ts index 3dd70c88919f7947eacb73bc019cee3f580f22fa..89cc07f4782a7e12fe4d436f73c5e27c542e93f3 100644 --- a/arkoala/ets-plugin/test/golden/specification/tab.ts +++ b/arkoala/ets-plugin/test/golden/specification/tab.ts @@ -17,7 +17,9 @@ class ArkTabSimpleComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkTabSimpleComponent) => void) | undefined) { + builder: ((instance: ArkTabSimpleComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkTabSimpleComponent) { ArkColumn(undefined, () => { ArkTabs(undefined, () => { ArkTabContent((instance: ArkTabContentComponent) => { diff --git a/arkoala/ets-plugin/test/golden/specification/tapGesture.ts b/arkoala/ets-plugin/test/golden/specification/tapGesture.ts index 73f3f09936fbc1d78b2260d8ae62dbe39fcea05e..ed550ff19561061d0dcdd4853b694c1a4c104c73 100644 --- a/arkoala/ets-plugin/test/golden/specification/tapGesture.ts +++ b/arkoala/ets-plugin/test/golden/specification/tapGesture.ts @@ -18,7 +18,9 @@ class ArkTapGestureExampleComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkTapGestureExampleComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkTapGestureExampleComponent) { ArkFlex((instance: ArkFlexComponent) => { instance.height(200).width(300).padding(60).border({ width: 1 }).margin(30) .gesture(TapGesture({ count: 2 }) diff --git a/arkoala/ets-plugin/test/golden/specification/test/pages/AMDComponent.ts b/arkoala/ets-plugin/test/golden/specification/test/pages/AMDComponent.ts index a1c97603fdd489188f8c06612a64afb1e9fe597e..c9e667c16d3b94f6b924bb70c8c6c797048691b6 100644 --- a/arkoala/ets-plugin/test/golden/specification/test/pages/AMDComponent.ts +++ b/arkoala/ets-plugin/test/golden/specification/test/pages/AMDComponent.ts @@ -59,7 +59,9 @@ class ArkAMDComponentComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkAMDComponentComponent) => void) | undefined) { + builder: ((instance: ArkAMDComponentComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkAMDComponentComponent) { ArkColumn(undefined, () => { ArkText((instance: ArkTextComponent) => { instance.fontSize(20); diff --git a/arkoala/ets-plugin/test/golden/specification/test/pages/BaseComponent.ts b/arkoala/ets-plugin/test/golden/specification/test/pages/BaseComponent.ts index f4519c4ea33c223387c023bffe8df9090aec252b..0628dfb3f7adec9d5e8f9286c96f9e9334b78c03 100644 --- a/arkoala/ets-plugin/test/golden/specification/test/pages/BaseComponent.ts +++ b/arkoala/ets-plugin/test/golden/specification/test/pages/BaseComponent.ts @@ -39,7 +39,9 @@ class ArkBaseComponentComponent extends ArkStructBase /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkBaseComponentComponent) => void) | undefined) { + builder: ((instance: ArkBaseComponentComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkBaseComponentComponent) { ArkColumn(undefined, () => { ArkText((instance: ArkTextComponent) => { instance.fontSize(20); diff --git a/arkoala/ets-plugin/test/golden/specification/test/pages/DefaultComponent.ts b/arkoala/ets-plugin/test/golden/specification/test/pages/DefaultComponent.ts index 85161f1356f41bb455f20637d473ba1b3b604fe5..268790ba123151bf6531a734683cda2099d1662c 100644 --- a/arkoala/ets-plugin/test/golden/specification/test/pages/DefaultComponent.ts +++ b/arkoala/ets-plugin/test/golden/specification/test/pages/DefaultComponent.ts @@ -59,7 +59,9 @@ class ArkDefaultComponentComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkDefaultComponentComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkDefaultComponentComponent) { ArkColumn(undefined, () => { ArkText((instance: ArkTextComponent) => { instance.fontSize(20); diff --git a/arkoala/ets-plugin/test/golden/specification/test/pages/DivideComponent.ts b/arkoala/ets-plugin/test/golden/specification/test/pages/DivideComponent.ts index 6088d5fb5323a4d42e7529cccd661efdfb9580a5..9665fe7c0e66a1cdc10746d797f2f0c58d8ad0e1 100644 --- a/arkoala/ets-plugin/test/golden/specification/test/pages/DivideComponent.ts +++ b/arkoala/ets-plugin/test/golden/specification/test/pages/DivideComponent.ts @@ -31,7 +31,9 @@ class ArkDivideComponentComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkDivideComponentComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkDivideComponentComponent) { ArkColumn(undefined, () => { ArkText((instance: ArkTextComponent) => { instance.fontSize(20); diff --git a/arkoala/ets-plugin/test/golden/specification/test/pages/ExportComponent.ts b/arkoala/ets-plugin/test/golden/specification/test/pages/ExportComponent.ts index c0106b54e5d6872ba1b70637e1a747527dd94aae..8608f4e75a8d90f9036f85581d64f390536d28b8 100644 --- a/arkoala/ets-plugin/test/golden/specification/test/pages/ExportComponent.ts +++ b/arkoala/ets-plugin/test/golden/specification/test/pages/ExportComponent.ts @@ -88,7 +88,9 @@ class ArkExportComponent1Component extends ArkStructBase void) | undefined) { + builder: ((instance: ArkExportComponent1Component) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkExportComponent1Component) { ArkRow(undefined, () => { DefaultComponent({ _DefaultComponentLink1: this._indexState1, @@ -174,7 +176,9 @@ class ArkExportComponent2Component extends ArkStructBase void) | undefined) { + builder: ((instance: ArkExportComponent2Component) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkExportComponent2Component) { ArkRow(undefined, () => { DefaultComponent({ _DefaultComponentLink1: this._indexState1, @@ -260,7 +264,9 @@ class ArkExportComponent3Component extends ArkStructBase void) | undefined) { + builder: ((instance: ArkExportComponent3Component) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkExportComponent3Component) { ArkRow(undefined, () => { DefaultComponent({ _DefaultComponentLink1: this._indexState1, @@ -346,7 +352,9 @@ export default class ArkExportComponent4Component extends ArkStructBase void) | undefined) { + builder: ((instance: ArkExportComponent4Component) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkExportComponent4Component) { ArkRow(undefined, () => { DefaultComponent({ _DefaultComponentLink1: this._indexState1, diff --git a/arkoala/ets-plugin/test/golden/specification/test/pages/LinkComponent.ts b/arkoala/ets-plugin/test/golden/specification/test/pages/LinkComponent.ts index f08092113ea06dbf2ccf1ab13a47e5c67b1e75a5..f8f9795584053e266afc3089224c6b557422e4e3 100644 --- a/arkoala/ets-plugin/test/golden/specification/test/pages/LinkComponent.ts +++ b/arkoala/ets-plugin/test/golden/specification/test/pages/LinkComponent.ts @@ -88,7 +88,9 @@ class ArkLinkComponent1Component extends ArkStructBase void) | undefined) { + builder: ((instance: ArkLinkComponent1Component) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkLinkComponent1Component) { ArkRow(undefined, () => { DefaultComponent({ _DefaultComponentLink1: this._indexState1, @@ -174,7 +176,9 @@ class ArkLinkComponent2Component extends ArkStructBase void) | undefined) { + builder: ((instance: ArkLinkComponent2Component) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkLinkComponent2Component) { ArkRow(undefined, () => { DefaultComponent({ _DefaultComponentLink1: this._indexState1, @@ -260,7 +264,9 @@ class ArkLinkComponent3Component extends ArkStructBase void) | undefined) { + builder: ((instance: ArkLinkComponent3Component) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkLinkComponent3Component) { ArkRow(undefined, () => { DefaultComponent({ _DefaultComponentLink1: this._indexState1, @@ -346,7 +352,9 @@ class ArkLinkComponent4Component extends ArkStructBase void) | undefined) { + builder: ((instance: ArkLinkComponent4Component) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkLinkComponent4Component) { ArkRow(undefined, () => { DefaultComponent({ _DefaultComponentLink1: this._indexState1, diff --git a/arkoala/ets-plugin/test/golden/specification/test/pages/NamespaceComponent.ts b/arkoala/ets-plugin/test/golden/specification/test/pages/NamespaceComponent.ts index 02f25f4c341e26e72ecff975fdab584b90c8af52..542e6829cb7d66ee6a3e6716ab6ee4a25b570f2a 100644 --- a/arkoala/ets-plugin/test/golden/specification/test/pages/NamespaceComponent.ts +++ b/arkoala/ets-plugin/test/golden/specification/test/pages/NamespaceComponent.ts @@ -59,7 +59,9 @@ class ArkNamespaceComponent1Component extends ArkStructBase void) | undefined) { + builder: ((instance: ArkNamespaceComponent1Component) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkNamespaceComponent1Component) { ArkColumn(undefined, () => { ArkText((instance: ArkTextComponent) => { instance.fontSize(20); @@ -144,7 +146,9 @@ class ArkNamespaceComponent2Component extends ArkStructBase void) | undefined) { + builder: ((instance: ArkNamespaceComponent2Component) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkNamespaceComponent2Component) { ArkColumn(undefined, () => { ArkText((instance: ArkTextComponent) => { instance.fontSize(20); @@ -229,7 +233,9 @@ class ArkNamespaceComponent3Component extends ArkStructBase void) | undefined) { + builder: ((instance: ArkNamespaceComponent3Component) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkNamespaceComponent3Component) { ArkColumn(undefined, () => { ArkText((instance: ArkTextComponent) => { instance.fontSize(20); diff --git a/arkoala/ets-plugin/test/golden/specification/test/pages/TestComponent.ts b/arkoala/ets-plugin/test/golden/specification/test/pages/TestComponent.ts index ba2eeee279647befb27c014002b2f0dad4d6b797..9b1e335817c7f032d81e4df08500e0cf56a08588 100644 --- a/arkoala/ets-plugin/test/golden/specification/test/pages/TestComponent.ts +++ b/arkoala/ets-plugin/test/golden/specification/test/pages/TestComponent.ts @@ -16,7 +16,9 @@ export class ArkTestComponentComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkTestComponentComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkTestComponentComponent) { ArkColumn(undefined, () => { ArkText((instance: ArkTextComponent) => { instance.fontSize(32); @@ -57,7 +59,9 @@ export class ArkCustomContainerExportComponent extends ArkStructBase void) | undefined) { + builder: ((instance: ArkCustomContainerExportComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkCustomContainerExportComponent) { ArkColumn(undefined, () => { ArkText((instance: ArkTextComponent) => { instance.fontSize(50); diff --git a/arkoala/ets-plugin/test/golden/specification/test/pages/import@CustomDialog.ts b/arkoala/ets-plugin/test/golden/specification/test/pages/import@CustomDialog.ts index 3f9af7ab5e9c7408112bba692e89e2489be7b381..1bc5df0464d1846311f8be6f0389ff7358e59706 100644 --- a/arkoala/ets-plugin/test/golden/specification/test/pages/import@CustomDialog.ts +++ b/arkoala/ets-plugin/test/golden/specification/test/pages/import@CustomDialog.ts @@ -55,7 +55,9 @@ export class ArkCustomDialogExample1Component extends ArkStructBase void) | undefined) { + builder: ((instance: ArkCustomDialogExample1Component) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkCustomDialogExample1Component) { ArkColumn(undefined, () => { ArkText((instance: ArkTextComponent) => { instance.fontSize(20).margin({ top: 10, bottom: 10 }); diff --git a/arkoala/ets-plugin/test/golden/trailing-block.ts b/arkoala/ets-plugin/test/golden/trailing-block.ts index 659f00e52ef19e8071490eef4c4dc251d2fc8246..f796160608feb0e51396318c1d02dedd643ce04c 100644 --- a/arkoala/ets-plugin/test/golden/trailing-block.ts +++ b/arkoala/ets-plugin/test/golden/trailing-block.ts @@ -8,7 +8,9 @@ class ArkParentStructComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkParentStructComponent) => void) | undefined) { + builder: ((instance: ArkParentStructComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkParentStructComponent) { ArkColumn(undefined, () => { ChildStruct(undefined, () => { ArkText(undefined, undefined, "xxx"); @@ -41,7 +43,9 @@ class ArkChildStructComponent extends ArkStructBase { /** @memo */ _build(/**/ /** @memo */ - builder: ((instance: ArkChildStructComponent) => void) | undefined) { + builder: ((instance: ArkChildStructComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: ArkChildStructComponent) { this.content(); } }