From f9135bc8f5e0dade131f0157ffa47654220dcdec Mon Sep 17 00:00:00 2001 From: Semenov Aleksandr Date: Wed, 30 Jul 2025 16:52:58 +0300 Subject: [PATCH] NOT MERGE! Higlight aot issues Signed-off-by: Semenov Aleksandr --- arkoala-arkts/arkui/src/Storage.ets | 2 +- .../arkui/src/component/gesture.extra.ets | 30 +-- arkoala-arkts/arkui/src/component/sidebar.ets | 246 +++++++++--------- 3 files changed, 139 insertions(+), 139 deletions(-) diff --git a/arkoala-arkts/arkui/src/Storage.ets b/arkoala-arkts/arkui/src/Storage.ets index d55dc7847..706819483 100644 --- a/arkoala-arkts/arkui/src/Storage.ets +++ b/arkoala-arkts/arkui/src/Storage.ets @@ -339,7 +339,7 @@ export class Environment { * @crossplatform * @since 10 */ -declare interface PersistPropsOptions { +interface PersistPropsOptions { /** * Property name * diff --git a/arkoala-arkts/arkui/src/component/gesture.extra.ets b/arkoala-arkts/arkui/src/component/gesture.extra.ets index 661dea5fe..87475728d 100644 --- a/arkoala-arkts/arkui/src/component/gesture.extra.ets +++ b/arkoala-arkts/arkui/src/component/gesture.extra.ets @@ -79,7 +79,7 @@ export class GestureGroupInterfaceInternal implements MaterializedBase,GestureGr export interface LongPressGestureInterface { onAction(event: ((event: GestureEvent) => void)): LongPressGestureInterface onActionEnd(event: ((event: GestureEvent) => void)): LongPressGestureInterface - onActionCancel(event: (() => void)): LongPressGestureInterface + // onActionCancel(event: (() => void)): LongPressGestureInterface onActionCancel(event: ((event: GestureEvent) => void)): LongPressGestureInterface } export class LongPressGestureInterfaceInternal implements MaterializedBase,GestureInterface,LongPressGestureInterface { @@ -114,10 +114,10 @@ export class LongPressGestureInterfaceInternal implements MaterializedBase,Gestu const event_casted = event as (((event: GestureEvent) => void)) return this.onActionEnd_serialize(event_casted) } - public onActionCancel(event: (() => void)): LongPressGestureInterface { - const event_casted = event as ((() => void)) - return this.onActionCancel0_serialize(event_casted) - } + // public onActionCancel(event: (() => void)): LongPressGestureInterface { + // const event_casted = event as ((() => void)) + // return this.onActionCancel0_serialize(event_casted) + // } public onActionCancel(event: ((event: GestureEvent) => void)): LongPressGestureInterface { const event_casted = event as (((event: GestureEvent) => void)) return this.onActionCancel1_serialize(event_casted) @@ -159,7 +159,7 @@ export interface PanGestureInterface { onActionStart(event: ((event: GestureEvent) => void)): PanGestureInterface onActionUpdate(event: ((event: GestureEvent) => void)): PanGestureInterface onActionEnd(event: ((event: GestureEvent) => void)): PanGestureInterface - onActionCancel(event: (() => void)): PanGestureInterface + // onActionCancel(event: (() => void)): PanGestureInterface onActionCancel(event: ((event: GestureEvent) => void)): PanGestureInterface } export class PanGestureInterfaceInternal implements MaterializedBase,GestureInterface,PanGestureInterface { @@ -206,10 +206,10 @@ export class PanGestureInterfaceInternal implements MaterializedBase,GestureInte const event_casted = event as (((event: GestureEvent) => void)) return this.onActionEnd_serialize(event_casted) } - public onActionCancel(event: (() => void)): PanGestureInterface { - const event_casted = event as ((() => void)) - return this.onActionCancel0_serialize(event_casted) - } + // public onActionCancel(event: (() => void)): PanGestureInterface { + // const event_casted = event as ((() => void)) + // return this.onActionCancel0_serialize(event_casted) + // } public onActionCancel(event: ((event: GestureEvent) => void)): PanGestureInterface { const event_casted = event as (((event: GestureEvent) => void)) return this.onActionCancel1_serialize(event_casted) @@ -259,7 +259,7 @@ export interface PinchGestureInterface { onActionStart(event: ((event: GestureEvent) => void)): PinchGestureInterface onActionUpdate(event: ((event: GestureEvent) => void)): PinchGestureInterface onActionEnd(event: ((event: GestureEvent) => void)): PinchGestureInterface - onActionCancel(event: (() => void)): PinchGestureInterface + // onActionCancel(event: (() => void)): PinchGestureInterface onActionCancel(event: ((event: GestureEvent) => void)): PinchGestureInterface } export class PinchGestureInterfaceInternal implements MaterializedBase,GestureInterface,PinchGestureInterface { @@ -298,10 +298,10 @@ export class PinchGestureInterfaceInternal implements MaterializedBase,GestureIn const event_casted = event as (((event: GestureEvent) => void)) return this.onActionEnd_serialize(event_casted) } - public onActionCancel(event: (() => void)): PinchGestureInterface { - const event_casted = event as ((() => void)) - return this.onActionCancel0_serialize(event_casted) - } + // public onActionCancel(event: (() => void)): PinchGestureInterface { + // const event_casted = event as ((() => void)) + // return this.onActionCancel0_serialize(event_casted) + // } public onActionCancel(event: ((event: GestureEvent) => void)): PinchGestureInterface { const event_casted = event as (((event: GestureEvent) => void)) return this.onActionCancel1_serialize(event_casted) diff --git a/arkoala-arkts/arkui/src/component/sidebar.ets b/arkoala-arkts/arkui/src/component/sidebar.ets index b3555ccb2..c21f0363c 100644 --- a/arkoala-arkts/arkui/src/component/sidebar.ets +++ b/arkoala-arkts/arkui/src/component/sidebar.ets @@ -335,15 +335,15 @@ export interface SideBarContainerAttribute extends CommonMethod { maxSideBarWidth(value: number | undefined): this { throw new Error("Unimplemented method maxSideBarWidth") } - sideBarWidth(value: Length | undefined): this { - throw new Error("Unimplemented method sideBarWidth") - } - minSideBarWidth(value: Length | undefined): this { - throw new Error("Unimplemented method minSideBarWidth") - } - maxSideBarWidth(value: Length | undefined): this { - throw new Error("Unimplemented method maxSideBarWidth") - } + // sideBarWidth(value: Length | undefined): this { + // throw new Error("Unimplemented method sideBarWidth") + // } + // minSideBarWidth(value: Length | undefined): this { + // throw new Error("Unimplemented method minSideBarWidth") + // } + // maxSideBarWidth(value: Length | undefined): this { + // throw new Error("Unimplemented method maxSideBarWidth") + // } autoHide(value: boolean | undefined): this { throw new Error("Unimplemented method autoHide") } @@ -356,9 +356,9 @@ export interface SideBarContainerAttribute extends CommonMethod { minContentWidth(value: Dimension | undefined): this { throw new Error("Unimplemented method minContentWidth") } - attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Unimplemented method attributeModifier") - } + // attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + // throw new Error("Unimplemented method attributeModifier") + // } } export class ArkSideBarContainerStyle extends ArkCommonMethodStyle implements SideBarContainerAttribute { showSideBar_value?: boolean | Bindable | undefined @@ -394,15 +394,15 @@ export class ArkSideBarContainerStyle extends ArkCommonMethodStyle implements Si public maxSideBarWidth(value: number | undefined): this { return this } - public sideBarWidth(value: Length | undefined): this { - return this - } - public minSideBarWidth(value: Length | undefined): this { - return this - } - public maxSideBarWidth(value: Length | undefined): this { - return this - } + // public sideBarWidth(value: Length | undefined): this { + // return this + // } + // public minSideBarWidth(value: Length | undefined): this { + // return this + // } + // public maxSideBarWidth(value: Length | undefined): this { + // return this + // } public autoHide(value: boolean | undefined): this { return this } @@ -488,30 +488,30 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent imple } return this } - public sideBarWidth(value: Length | undefined): this { - if (this.checkPriority("sideBarWidth")) { - const value_casted = value as (Length | undefined) - this.getPeer()?.setSideBarWidth1Attribute(value_casted) - return this - } - return this - } - public minSideBarWidth(value: Length | undefined): this { - if (this.checkPriority("minSideBarWidth")) { - const value_casted = value as (Length | undefined) - this.getPeer()?.setMinSideBarWidth1Attribute(value_casted) - return this - } - return this - } - public maxSideBarWidth(value: Length | undefined): this { - if (this.checkPriority("maxSideBarWidth")) { - const value_casted = value as (Length | undefined) - this.getPeer()?.setMaxSideBarWidth1Attribute(value_casted) - return this - } - return this - } + // public sideBarWidth(value: Length | undefined): this { + // if (this.checkPriority("sideBarWidth")) { + // const value_casted = value as (Length | undefined) + // this.getPeer()?.setSideBarWidth1Attribute(value_casted) + // return this + // } + // return this + // } + // public minSideBarWidth(value: Length | undefined): this { + // if (this.checkPriority("minSideBarWidth")) { + // const value_casted = value as (Length | undefined) + // this.getPeer()?.setMinSideBarWidth1Attribute(value_casted) + // return this + // } + // return this + // } + // public maxSideBarWidth(value: Length | undefined): this { + // if (this.checkPriority("maxSideBarWidth")) { + // const value_casted = value as (Length | undefined) + // this.getPeer()?.setMaxSideBarWidth1Attribute(value_casted) + // return this + // } + // return this + // } public autoHide(value: boolean | undefined): this { if (this.checkPriority("autoHide")) { const value_casted = value as (boolean | undefined) @@ -544,9 +544,9 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent imple } return this } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - return this - } + // public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + // return this + // } public applyAttributesFinish(): void { // we call this function outside of class, so need to make it public super.applyAttributesFinish() @@ -962,45 +962,45 @@ export class SideBarContainerModifier extends CommonMethodModifier implements Si } } } - if (modifier._sideBarWidth_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._sideBarWidth_1_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.sideBarWidth(modifier._sideBarWidth_1_0value); - break; - } - default: { - this.sideBarWidth((undefined as Length | undefined)); - } - } - } - if (modifier._minSideBarWidth_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._minSideBarWidth_1_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.minSideBarWidth(modifier._minSideBarWidth_1_0value); - break; - } - default: { - this.minSideBarWidth((undefined as Length | undefined)); - } - } - } - if (modifier._maxSideBarWidth_1_flag != AttributeUpdaterFlag.INITIAL) - { - switch (modifier._maxSideBarWidth_1_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.maxSideBarWidth(modifier._maxSideBarWidth_1_0value); - break; - } - default: { - this.maxSideBarWidth((undefined as Length | undefined)); - } - } - } + // if (modifier._sideBarWidth_1_flag != AttributeUpdaterFlag.INITIAL) + // { + // switch (modifier._sideBarWidth_1_flag) { + // case AttributeUpdaterFlag.UPDATE: + // case AttributeUpdaterFlag.SKIP: { + // this.sideBarWidth(modifier._sideBarWidth_1_0value); + // break; + // } + // default: { + // this.sideBarWidth((undefined as Length | undefined)); + // } + // } + // } + // if (modifier._minSideBarWidth_1_flag != AttributeUpdaterFlag.INITIAL) + // { + // switch (modifier._minSideBarWidth_1_flag) { + // case AttributeUpdaterFlag.UPDATE: + // case AttributeUpdaterFlag.SKIP: { + // this.minSideBarWidth(modifier._minSideBarWidth_1_0value); + // break; + // } + // default: { + // this.minSideBarWidth((undefined as Length | undefined)); + // } + // } + // } + // if (modifier._maxSideBarWidth_1_flag != AttributeUpdaterFlag.INITIAL) + // { + // switch (modifier._maxSideBarWidth_1_flag) { + // case AttributeUpdaterFlag.UPDATE: + // case AttributeUpdaterFlag.SKIP: { + // this.maxSideBarWidth(modifier._maxSideBarWidth_1_0value); + // break; + // } + // default: { + // this.maxSideBarWidth((undefined as Length | undefined)); + // } + // } + // } if (modifier._autoHide_0_flag != AttributeUpdaterFlag.INITIAL) { switch (modifier._autoHide_0_flag) { @@ -1131,39 +1131,39 @@ export class SideBarContainerModifier extends CommonMethodModifier implements Si } return this } - sideBarWidth(value: Length | undefined): this { - if (((this._sideBarWidth_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._sideBarWidth_1_flag = AttributeUpdaterFlag.UPDATE - this._sideBarWidth_1_0value = value - } else - { - this._sideBarWidth_1_flag = AttributeUpdaterFlag.SKIP - } - return this - } - minSideBarWidth(value: Length | undefined): this { - if (((this._minSideBarWidth_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._minSideBarWidth_1_flag = AttributeUpdaterFlag.UPDATE - this._minSideBarWidth_1_0value = value - } else - { - this._minSideBarWidth_1_flag = AttributeUpdaterFlag.SKIP - } - return this - } - maxSideBarWidth(value: Length | undefined): this { - if (((this._maxSideBarWidth_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) - { - this._maxSideBarWidth_1_flag = AttributeUpdaterFlag.UPDATE - this._maxSideBarWidth_1_0value = value - } else - { - this._maxSideBarWidth_1_flag = AttributeUpdaterFlag.SKIP - } - return this - } + // sideBarWidth(value: Length | undefined): this { + // if (((this._sideBarWidth_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + // { + // this._sideBarWidth_1_flag = AttributeUpdaterFlag.UPDATE + // this._sideBarWidth_1_0value = value + // } else + // { + // this._sideBarWidth_1_flag = AttributeUpdaterFlag.SKIP + // } + // return this + // } + // minSideBarWidth(value: Length | undefined): this { + // if (((this._minSideBarWidth_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + // { + // this._minSideBarWidth_1_flag = AttributeUpdaterFlag.UPDATE + // this._minSideBarWidth_1_0value = value + // } else + // { + // this._minSideBarWidth_1_flag = AttributeUpdaterFlag.SKIP + // } + // return this + // } + // maxSideBarWidth(value: Length | undefined): this { + // if (((this._maxSideBarWidth_1_flag) == (AttributeUpdaterFlag.INITIAL)) || (true)) + // { + // this._maxSideBarWidth_1_flag = AttributeUpdaterFlag.UPDATE + // this._maxSideBarWidth_1_0value = value + // } else + // { + // this._maxSideBarWidth_1_flag = AttributeUpdaterFlag.SKIP + // } + // return this + // } autoHide(value: boolean | undefined): this { if (((this._autoHide_0_flag) == (AttributeUpdaterFlag.INITIAL)) || ((this._autoHide_0_0value) !== (value))) { @@ -1208,9 +1208,9 @@ export class SideBarContainerModifier extends CommonMethodModifier implements Si } return this } - public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { - throw new Error("Not implemented") - } + // public attributeModifier(value: AttributeModifier | AttributeModifier | undefined): this { + // throw new Error("Not implemented") + // } } export class ButtonIconOptions_serializer { public static write(buffer: SerializerBase, value: ButtonIconOptions): void { -- Gitee