Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 | 1x 1x 2x 2x 2x 2x 2x 2x 2x 2x 1x 1x 1x 1x 1x 1x 1x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 12x 12x 12x 12x 2x 12x 12x 12x 12x 2x 12x 12x 12x 12x 2x 20x 20x 2x 20x 20x 20x 20x 20x 20x 20x 20x 20x 10x 10x 4x 10x 6x 6x 10x 20x 2x 12x 12x 12x 12x 2x 5x 5x 5x 5x 5x 5x 5x 2x 5x 5x 5x 5x 5x 5x 5x 2x 1x 1x | const {cx_root} = await import("./cx_root.clas.mjs"); // zcl_abapgit_repo_item_state.clas.abap class zcl_abapgit_repo_item_state { static INTERNAL_TYPE = 'CLAS'; static INTERNAL_NAME = 'ZCL_ABAPGIT_REPO_ITEM_STATE'; static IMPLEMENTED_INTERFACES = []; static ATTRIBUTES = {"MV_LSTATE": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"});}, "visibility": "I", "is_constant": " ", "is_class": " "}, "MV_RSTATE": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"});}, "visibility": "I", "is_constant": " ", "is_class": " "}, "MV_IS_REASSIGNED": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "visibility": "I", "is_constant": " ", "is_class": " "}}; static METHODS = {"REDUCE": {"visibility": "I", "parameters": {"RV_NEW": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"});}, "is_optional": " "}, "IV_PREV": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"});}, "is_optional": " "}, "IV_CUR": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"});}, "is_optional": " "}}}, "LOCAL": {"visibility": "U", "parameters": {"RV_STATE": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"});}, "is_optional": " "}}}, "REMOTE": {"visibility": "U", "parameters": {"RV_STATE": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"});}, "is_optional": " "}}}, "IS_REASSIGNED": {"visibility": "U", "parameters": {"RV_IS_REASSIGNED": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}}}, "IS_UNCHANGED": {"visibility": "U", "parameters": {"RV_IS_UNCHANGED": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}}}, "SUM_WITH_REPO_ITEM": {"visibility": "U", "parameters": {"IS_REPO_ITEM": {"type": () => {return new abap.types.Structure({ "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "sortkey": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-SORTKEY"}), "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-PATH"}), "is_dir": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "changes": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-CHANGES"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "files": abap.types.TableFactory.construct(new abap.types.Structure({ "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-PATH"}), "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-FILENAME"}), "is_changed": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"})}, "zif_abapgit_definitions=>ty_repo_file", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_repo_file_tt"), "changed_by": new abap.types.Character(12, {"qualifiedName":"SYUNAME","ddicName":"SYUNAME","description":"SYUNAME"}), "transport": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}), "packmove": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "srcsystem": new abap.types.Character(5, {}), "origlang": new abap.types.Character(1, {})}, "zif_abapgit_definitions=>ty_repo_item", undefined, {}, {});}, "is_optional": " "}}}, "SUM_WITH_STATUS_ITEM": {"visibility": "U", "parameters": {"IS_STATUS_ITEM": {"type": () => {return new abap.types.Structure({ "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_RESULT-PATH"}), "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_RESULT-FILENAME"}), "package": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}), "match": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "packmove": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "srcsystem": new abap.types.Character(5, {}), "origlang": new abap.types.Character(1, {})}, "zif_abapgit_definitions=>ty_result", undefined, {}, {});}, "is_optional": " "}}}}; #mv_lstate; #mv_rstate; #mv_is_reassigned; constructor() { this.me = new abap.types.ABAPObject(); this.me.set(this); this.INTERNAL_ID = abap.internalIdCounter++; this.FRIENDS_ACCESS_INSTANCE = { "local": this.local.bind(this), "remote": this.remote.bind(this), "is_reassigned": this.is_reassigned.bind(this), "is_unchanged": this.is_unchanged.bind(this), "sum_with_repo_item": this.sum_with_repo_item.bind(this), "sum_with_status_item": this.sum_with_status_item.bind(this), }; this.#mv_lstate = new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}); this.FRIENDS_ACCESS_INSTANCE["mv_lstate"] = this.#mv_lstate; this.#mv_rstate = new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}); this.FRIENDS_ACCESS_INSTANCE["mv_rstate"] = this.#mv_rstate; this.#mv_is_reassigned = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}); this.FRIENDS_ACCESS_INSTANCE["mv_is_reassigned"] = this.#mv_is_reassigned; } async constructor_(INPUT) { if (super.constructor_) { await super.constructor_(INPUT); } return this; } async is_reassigned() { let rv_is_reassigned = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}); rv_is_reassigned.set(this.#mv_is_reassigned); return rv_is_reassigned; } async is_unchanged() { let rv_is_unchanged = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}); rv_is_unchanged.set(abap.builtin.boolc(abap.compare.eq(this.#mv_is_reassigned, abap.builtin.abap_false) && abap.compare.eq(this.#mv_lstate, abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_state.get().unchanged) && abap.compare.eq(this.#mv_rstate, abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_state.get().unchanged))); return rv_is_unchanged; } async local() { let rv_state = new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}); rv_state.set(this.#mv_lstate); return rv_state; } async reduce(INPUT) { return zcl_abapgit_repo_item_state.reduce(INPUT); } static async reduce(INPUT) { let rv_new = new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}); let iv_prev = INPUT?.iv_prev; if (iv_prev?.getQualifiedName === undefined || iv_prev.getQualifiedName() !== "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_ITEM_STATE") { iv_prev = undefined; } if (iv_prev === undefined) { iv_prev = new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}).set(INPUT.iv_prev); } let iv_cur = INPUT?.iv_cur; if (iv_cur?.getQualifiedName === undefined || iv_cur.getQualifiedName() !== "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_ITEM_STATE") { iv_cur = undefined; } if (iv_cur === undefined) { iv_cur = new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}).set(INPUT.iv_cur); } rv_new.set(iv_prev); if (abap.compare.eq(rv_new, iv_cur) || abap.compare.initial(iv_cur)) { return rv_new; } else if (abap.compare.initial(rv_new)) { rv_new.set(iv_cur); } else { rv_new.set(abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_state.get().mixed); } return rv_new; } async remote() { let rv_state = new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}); rv_state.set(this.#mv_rstate); return rv_state; } async sum_with_repo_item(INPUT) { let is_repo_item = INPUT?.is_repo_item; if (is_repo_item?.getQualifiedName === undefined || is_repo_item.getQualifiedName() !== "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM") { is_repo_item = undefined; } if (is_repo_item === undefined) { is_repo_item = new abap.types.Structure({ "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "sortkey": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-SORTKEY"}), "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-PATH"}), "is_dir": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "changes": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-CHANGES"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "files": abap.types.TableFactory.construct(new abap.types.Structure({ "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-PATH"}), "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-FILENAME"}), "is_changed": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"})}, "zif_abapgit_definitions=>ty_repo_file", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_repo_file_tt"), "changed_by": new abap.types.Character(12, {"qualifiedName":"SYUNAME","ddicName":"SYUNAME","description":"SYUNAME"}), "transport": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}), "packmove": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "srcsystem": new abap.types.Character(5, {}), "origlang": new abap.types.Character(1, {})}, "zif_abapgit_definitions=>ty_repo_item", undefined, {}, {}).set(INPUT.is_repo_item); } this.#mv_lstate.set((await this.reduce({iv_prev: this.#mv_lstate, iv_cur: is_repo_item.get().lstate}))); this.#mv_rstate.set((await this.reduce({iv_prev: this.#mv_rstate, iv_cur: is_repo_item.get().rstate}))); this.#mv_is_reassigned.set(abap.builtin.boolc(abap.compare.eq(this.#mv_is_reassigned, abap.builtin.abap_true) || abap.compare.eq(is_repo_item.get().packmove, abap.builtin.abap_true))); } async sum_with_status_item(INPUT) { let is_status_item = INPUT?.is_status_item; if (is_status_item?.getQualifiedName === undefined || is_status_item.getQualifiedName() !== "ZIF_ABAPGIT_DEFINITIONS=>TY_RESULT") { is_status_item = undefined; } if (is_status_item === undefined) { is_status_item = new abap.types.Structure({ "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_RESULT-PATH"}), "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_RESULT-FILENAME"}), "package": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}), "match": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "packmove": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "srcsystem": new abap.types.Character(5, {}), "origlang": new abap.types.Character(1, {})}, "zif_abapgit_definitions=>ty_result", undefined, {}, {}).set(INPUT.is_status_item); } this.#mv_lstate.set((await this.reduce({iv_prev: this.#mv_lstate, iv_cur: is_status_item.get().lstate}))); this.#mv_rstate.set((await this.reduce({iv_prev: this.#mv_rstate, iv_cur: is_status_item.get().rstate}))); this.#mv_is_reassigned.set(abap.builtin.boolc(abap.compare.eq(this.#mv_is_reassigned, abap.builtin.abap_true) || abap.compare.eq(is_status_item.get().packmove, abap.builtin.abap_true))); } } abap.Classes['ZCL_ABAPGIT_REPO_ITEM_STATE'] = zcl_abapgit_repo_item_state; export {zcl_abapgit_repo_item_state}; |