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 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 26x 26x 26x 26x 26x 26x 1x 26x 26x 26x 1x 8x 8x 1x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 1x 1x 1x 1x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 42x 42x 42x 42x 42x 42x 18x 18x 1x 18x 18x 1x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x 42x 42x 42x 42x 4x 4x 42x 4x 4x 38x 2x 2x 34x 3x 3x 32x 29x 1x 1x 29x 2x 2x 28x 2x 2x 26x 24x 2x 2x 24x 1x 1x 22x 1x 1x 21x 1x 1x 20x 2x 2x 19x 1x 1x 17x 1x 1x 16x 2x 2x 15x 2x 2x 13x 11x 11x 42x 32x 32x 32x 42x 18x 18x 18x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 18x 18x 18x 1x 1x 1x | const {cx_root} = await import("./cx_root.clas.mjs"); // zcl_abapgit_file_deserialize.clas.abap class zcl_abapgit_file_deserialize { static INTERNAL_TYPE = 'CLAS'; static INTERNAL_NAME = 'ZCL_ABAPGIT_FILE_DESERIALIZE'; static IMPLEMENTED_INTERFACES = []; static ATTRIBUTES = {}; static METHODS = {"FILTER_FILES_TO_DESERIALIZE": {"visibility": "I", "parameters": {"RT_RESULTS": {"type": () => {return abap.types.TableFactory.construct(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, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"sec_key","type":"SORTED","isUnique":false,"keyFields":["OBJ_TYPE","OBJ_NAME"]}]}, "zif_abapgit_definitions=>ty_results_tt");}, "is_optional": " "}, "IT_RESULTS": {"type": () => {return abap.types.TableFactory.construct(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, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"sec_key","type":"SORTED","isUnique":false,"keyFields":["OBJ_TYPE","OBJ_NAME"]}]}, "zif_abapgit_definitions=>ty_results_tt");}, "is_optional": " "}, "II_LOG": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_LOG", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_LOG"});}, "is_optional": " "}}}, "PRIORITIZE_DESER": {"visibility": "I", "parameters": {"RT_RESULTS": {"type": () => {return abap.types.TableFactory.construct(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, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"sec_key","type":"SORTED","isUnique":false,"keyFields":["OBJ_TYPE","OBJ_NAME"]}]}, "zif_abapgit_definitions=>ty_results_tt");}, "is_optional": " "}, "II_LOG": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_LOG", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_LOG"});}, "is_optional": " "}, "IT_RESULTS": {"type": () => {return abap.types.TableFactory.construct(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, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"sec_key","type":"SORTED","isUnique":false,"keyFields":["OBJ_TYPE","OBJ_NAME"]}]}, "zif_abapgit_definitions=>ty_results_tt");}, "is_optional": " "}}}, "MAP_RESULTS_TO_ITEMS": {"visibility": "I", "parameters": {"RT_ITEMS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({ "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}), "srcsystem": new abap.types.Character(5, {}), "origlang": new abap.types.Character(1, {}), "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_items_tt");}, "is_optional": " "}, "IT_RESULTS": {"type": () => {return abap.types.TableFactory.construct(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, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"sec_key","type":"SORTED","isUnique":false,"keyFields":["OBJ_TYPE","OBJ_NAME"]}]}, "zif_abapgit_definitions=>ty_results_tt");}, "is_optional": " "}}}, "GET_RESULTS": {"visibility": "U", "parameters": {"RT_RESULTS": {"type": () => {return abap.types.TableFactory.construct(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, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"sec_key","type":"SORTED","isUnique":false,"keyFields":["OBJ_TYPE","OBJ_NAME"]}]}, "zif_abapgit_definitions=>ty_results_tt");}, "is_optional": " "}, "II_REPO": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_REPO", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_REPO"});}, "is_optional": " "}, "II_LOG": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_LOG", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_LOG"});}, "is_optional": " "}}}}; constructor() { this.me = new abap.types.ABAPObject(); this.me.set(this); this.INTERNAL_ID = abap.internalIdCounter++; this.FRIENDS_ACCESS_INSTANCE = { }; } async constructor_(INPUT) { if (super.constructor_) { await super.constructor_(INPUT); } return this; } async filter_files_to_deserialize(INPUT) { return zcl_abapgit_file_deserialize.filter_files_to_deserialize(INPUT); } static async filter_files_to_deserialize(INPUT) { let rt_results = abap.types.TableFactory.construct(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, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"sec_key","type":"SORTED","isUnique":false,"keyFields":["OBJ_TYPE","OBJ_NAME"]}]}, "zif_abapgit_definitions=>ty_results_tt"); let it_results = INPUT?.it_results; if (it_results?.getQualifiedName === undefined || it_results.getQualifiedName() !== "ZIF_ABAPGIT_DEFINITIONS=>TY_RESULTS_TT") { it_results = undefined; } if (it_results === undefined) { it_results = abap.types.TableFactory.construct(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, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"sec_key","type":"SORTED","isUnique":false,"keyFields":["OBJ_TYPE","OBJ_NAME"]}]}, "zif_abapgit_definitions=>ty_results_tt").set(INPUT.it_results); } let ii_log = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_LOG", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_LOG"}); if (INPUT && INPUT.ii_log) {ii_log.set(INPUT.ii_log);} let lt_objects = abap.types.TableFactory.construct(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, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"sec_key","type":"SORTED","isUnique":false,"keyFields":["OBJ_TYPE","OBJ_NAME"]}]}, "zif_abapgit_definitions=>ty_results_tt"); let lr_object = new abap.types.DataReference(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, {}, {})); let ls_item = new abap.types.Structure({ "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}), "srcsystem": new abap.types.Character(5, {}), "origlang": new abap.types.Character(1, {}), "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {}); let lv_tabix = new abap.types.Integer({qualifiedName: "I"}); rt_results.set(it_results); if (abap.compare.initial(ii_log) === false) { lt_objects.set(rt_results); abap.statements.sort(lt_objects,{by: [{component: "obj_type"},{component: "obj_name"}]}); await abap.statements.deleteInternal(lt_objects,{adjacent: true,comparing: ['obj_type','obj_name']}); await abap.statements.deleteInternal(lt_objects,{where: async (I) => {return abap.compare.initial(I.obj_type) && abap.compare.initial(I.obj_name);}}); } await abap.statements.deleteInternal(rt_results,{where: async (I) => {return abap.compare.eq(I.match, abap.builtin.abap_true);}}); if (abap.compare.eq(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0)) && abap.compare.initial(ii_log) === false) { abap.statements.sort(rt_results,{by: [{component: "obj_type"},{component: "obj_name"}]}); for await (const unique325 of abap.statements.loop(lt_objects)) { lr_object.assign(unique325); lv_tabix.set(abap.builtin.sy.get().tabix); abap.statements.readTable(rt_results,{binarySearch: true, withKey: (i) => {return abap.compare.eq(i.obj_type, lr_object.get().obj_type) && abap.compare.eq(i.obj_name, lr_object.get().obj_name);}, withKeyValue: [{key: (i) => {return i.obj_type}, value: lr_object.get().obj_type},{key: (i) => {return i.obj_name}, value: lr_object.get().obj_name}], usesTableLine: false, withKeySimple: {"obj_type": lr_object.get().obj_type,"obj_name": lr_object.get().obj_name}}); if (abap.compare.ne(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) { ls_item.get().devclass.set(lr_object.get().package); ls_item.get().obj_type.set(lr_object.get().obj_type); ls_item.get().obj_name.set(lr_object.get().obj_name); await ii_log.get().zif_abapgit_log$add_success({iv_msg: new abap.types.String().set(`Object ${abap.templateFormatting(ls_item.get().obj_name)} (type ${abap.templateFormatting(ls_item.get().obj_type)}) not changed; no import required`), is_item: ls_item}); await abap.statements.deleteInternal(lt_objects,{index: lv_tabix}); } } } await abap.statements.deleteInternal(rt_results,{where: async (I) => {return abap.compare.initial(I.obj_type);}}); if (abap.compare.eq(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0)) && abap.compare.initial(ii_log) === false) { for await (const unique326 of abap.statements.loop(lt_objects)) { lr_object.assign(unique326); if (!(abap.compare.initial(lr_object.get().obj_type) && abap.compare.initial(lr_object.get().obj_name) === false)) { continue; } ls_item.get().devclass.set(lr_object.get().package); ls_item.get().obj_type.set(lr_object.get().obj_type); ls_item.get().obj_name.set(lr_object.get().obj_name); await ii_log.get().zif_abapgit_log$add_warning({iv_msg: new abap.types.String().set(`Object type for ${abap.templateFormatting(ls_item.get().obj_name)} not defined - will be ignored by abapGit`), is_item: ls_item}); } await abap.statements.deleteInternal(lt_objects,{where: async (I) => {return abap.compare.initial(I.obj_type);}}); } await abap.statements.deleteInternal(rt_results,{where: async (I) => {return abap.compare.eq(I.lstate, abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_state.get().added) && abap.compare.initial(I.rstate);}}); await abap.statements.deleteInternal(rt_results,{where: async (I) => {return abap.compare.eq(I.rstate, abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_state.get().deleted);}}); if (abap.compare.eq(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0)) && abap.compare.initial(ii_log) === false) { abap.statements.sort(rt_results,{by: [{component: "obj_type"},{component: "obj_name"}]}); for await (const unique327 of abap.statements.loop(lt_objects)) { lr_object.assign(unique327); lv_tabix.set(abap.builtin.sy.get().tabix); abap.statements.readTable(rt_results,{binarySearch: true, withKey: (i) => {return abap.compare.eq(i.obj_type, lr_object.get().obj_type) && abap.compare.eq(i.obj_name, lr_object.get().obj_name);}, withKeyValue: [{key: (i) => {return i.obj_type}, value: lr_object.get().obj_type},{key: (i) => {return i.obj_name}, value: lr_object.get().obj_name}], usesTableLine: false, withKeySimple: {"obj_type": lr_object.get().obj_type,"obj_name": lr_object.get().obj_name}}); if (abap.compare.ne(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) { await abap.statements.deleteInternal(lt_objects,{index: lv_tabix}); } } } await abap.statements.deleteInternal(rt_results,{where: async (I) => {return abap.compare.eq(I.path, abap.Classes['ZIF_ABAPGIT_DATA_CONFIG'].zif_abapgit_data_config$c_default_path);}}); abap.statements.sort(rt_results,{by: [{component: "obj_type"},{component: "obj_name"},{component: "rstate", descending: true},{component: "lstate", descending: true}]}); await abap.statements.deleteInternal(rt_results,{adjacent: true,comparing: ['obj_type','obj_name']}); return rt_results; } async get_results(INPUT) { return zcl_abapgit_file_deserialize.get_results(INPUT); } static async get_results(INPUT) { let rt_results = abap.types.TableFactory.construct(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, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"sec_key","type":"SORTED","isUnique":false,"keyFields":["OBJ_TYPE","OBJ_NAME"]}]}, "zif_abapgit_definitions=>ty_results_tt"); let ii_repo = INPUT?.ii_repo; if (ii_repo?.getQualifiedName === undefined || ii_repo.getQualifiedName() !== "ZIF_ABAPGIT_REPO") { ii_repo = undefined; } if (ii_repo === undefined) { ii_repo = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_REPO", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_REPO"}).set(INPUT.ii_repo); } let ii_log = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_LOG", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_LOG"}); if (INPUT && INPUT.ii_log) {ii_log.set(INPUT.ii_log);} let lt_results = abap.types.TableFactory.construct(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, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"sec_key","type":"SORTED","isUnique":false,"keyFields":["OBJ_TYPE","OBJ_NAME"]}]}, "zif_abapgit_definitions=>ty_results_tt"); lt_results.set((await this.filter_files_to_deserialize({it_results: (await abap.Classes['ZCL_ABAPGIT_REPO_STATUS'].calculate({ii_repo: ii_repo})), ii_log: ii_log}))); rt_results.set((await this.prioritize_deser({ii_log: ii_log, it_results: lt_results}))); return rt_results; } async map_results_to_items(INPUT) { return zcl_abapgit_file_deserialize.map_results_to_items(INPUT); } static async map_results_to_items(INPUT) { let rt_items = abap.types.TableFactory.construct(new abap.types.Structure({ "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}), "srcsystem": new abap.types.Character(5, {}), "origlang": new abap.types.Character(1, {}), "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_items_tt"); let it_results = INPUT?.it_results; if (it_results?.getQualifiedName === undefined || it_results.getQualifiedName() !== "ZIF_ABAPGIT_DEFINITIONS=>TY_RESULTS_TT") { it_results = undefined; } if (it_results === undefined) { it_results = abap.types.TableFactory.construct(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, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"sec_key","type":"SORTED","isUnique":false,"keyFields":["OBJ_TYPE","OBJ_NAME"]}]}, "zif_abapgit_definitions=>ty_results_tt").set(INPUT.it_results); } let ls_item = new abap.types.Structure({ "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}), "srcsystem": new abap.types.Character(5, {}), "origlang": new abap.types.Character(1, {}), "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {}); let fs_ls_result_ = new abap.types.FieldSymbol(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, {}, {})); for await (const unique328 of abap.statements.loop(it_results)) { fs_ls_result_.assign(unique328); ls_item.get().devclass.set(fs_ls_result_.get().package); ls_item.get().obj_type.set(fs_ls_result_.get().obj_type); ls_item.get().obj_name.set(fs_ls_result_.get().obj_name); abap.statements.insertInternal({data: ls_item, table: rt_items}); } return rt_items; } async prioritize_deser(INPUT) { return zcl_abapgit_file_deserialize.prioritize_deser(INPUT); } static async prioritize_deser(INPUT) { let rt_results = abap.types.TableFactory.construct(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, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"sec_key","type":"SORTED","isUnique":false,"keyFields":["OBJ_TYPE","OBJ_NAME"]}]}, "zif_abapgit_definitions=>ty_results_tt"); let ii_log = INPUT?.ii_log; if (ii_log?.getQualifiedName === undefined || ii_log.getQualifiedName() !== "ZIF_ABAPGIT_LOG") { ii_log = undefined; } if (ii_log === undefined) { ii_log = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_LOG", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_LOG"}).set(INPUT.ii_log); } let it_results = INPUT?.it_results; if (it_results?.getQualifiedName === undefined || it_results.getQualifiedName() !== "ZIF_ABAPGIT_DEFINITIONS=>TY_RESULTS_TT") { it_results = undefined; } if (it_results === undefined) { it_results = abap.types.TableFactory.construct(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, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"sec_key","type":"SORTED","isUnique":false,"keyFields":["OBJ_TYPE","OBJ_NAME"]}]}, "zif_abapgit_definitions=>ty_results_tt").set(INPUT.it_results); } let lt_items = abap.types.TableFactory.construct(new abap.types.Structure({ "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}), "srcsystem": new abap.types.Character(5, {}), "origlang": new abap.types.Character(1, {}), "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_items_tt"); let ls_item = new abap.types.Structure({ "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}), "srcsystem": new abap.types.Character(5, {}), "origlang": new abap.types.Character(1, {}), "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {}); let lt_requires = abap.types.TableFactory.construct(new abap.types.Structure({ "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}), "srcsystem": new abap.types.Character(5, {}), "origlang": new abap.types.Character(1, {}), "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_items_tt"); let ls_require = new abap.types.Structure({ "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}), "srcsystem": new abap.types.Character(5, {}), "origlang": new abap.types.Character(1, {}), "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {}); let ls_result = 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, {}, {}); let lo_graph = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_ITEM_GRAPH", RTTIName: "\\CLASS=ZCL_ABAPGIT_ITEM_GRAPH"}); lt_items.set((await this.map_results_to_items({it_results: it_results}))); lo_graph.set(await (new abap.Classes['ZCL_ABAPGIT_ITEM_GRAPH']()).constructor_({it_items: lt_items})); for await (const unique329 of abap.statements.loop(lt_items)) { ls_item.set(unique329); lt_requires.clear(); let unique330 = ls_item.get().obj_type; if (abap.compare.eq(unique330, abap.CharacterFactory.get(4, 'SPRX'))) { lt_requires.set(lt_items); await abap.statements.deleteInternal(lt_requires,{where: async (I) => {return abap.compare.ne(I.obj_type, abap.CharacterFactory.get(4, 'WEBI'));}}); } else if (abap.compare.eq(unique330, abap.CharacterFactory.get(4, 'CLAS'))) { lt_requires.set(lt_items); await abap.statements.deleteInternal(lt_requires,{where: async (I) => {return abap.compare.ne(I.obj_type, abap.CharacterFactory.get(4, 'SPRX')) && abap.compare.ne(I.obj_type, abap.CharacterFactory.get(4, 'INTF')) && abap.compare.ne(I.obj_type, abap.CharacterFactory.get(4, 'XSLT'));}}); } else if (abap.compare.eq(unique330, abap.CharacterFactory.get(4, 'PROG'))) { lt_requires.set(lt_items); await abap.statements.deleteInternal(lt_requires,{where: async (I) => {return abap.compare.ne(I.obj_type, abap.CharacterFactory.get(4, 'XSLT'));}}); } else if (abap.compare.eq(unique330, abap.CharacterFactory.get(4, 'INTF'))) { lt_requires.set(lt_items); await abap.statements.deleteInternal(lt_requires,{where: async (I) => {return abap.compare.ne(I.obj_type, abap.CharacterFactory.get(4, 'SPRX')) && abap.compare.ne(I.obj_type, abap.CharacterFactory.get(4, 'XSLT'));}}); } else if (abap.compare.eq(unique330, abap.CharacterFactory.get(4, 'HTTP'))) { lt_requires.set(lt_items); await abap.statements.deleteInternal(lt_requires,{where: async (I) => {return abap.compare.ne(I.obj_type, abap.CharacterFactory.get(4, 'CLAS')) && abap.compare.ne(I.obj_type, abap.CharacterFactory.get(4, 'INTF'));}}); } else if (abap.compare.eq(unique330, abap.CharacterFactory.get(4, 'TABL'))) { lt_requires.set(lt_items); await abap.statements.deleteInternal(lt_requires,{where: async (I) => {return abap.compare.ne(I.obj_type, abap.CharacterFactory.get(4, 'SPRX'));}}); } else if (abap.compare.eq(unique330, abap.CharacterFactory.get(4, 'IARP'))) { lt_requires.set(lt_items); await abap.statements.deleteInternal(lt_requires,{where: async (I) => {return abap.compare.ne(I.obj_type, abap.CharacterFactory.get(4, 'IASP'));}}); } else if (abap.compare.eq(unique330, abap.CharacterFactory.get(4, 'IATU')) || abap.compare.eq(unique330, abap.CharacterFactory.get(4, 'IAXU')) || abap.compare.eq(unique330, abap.CharacterFactory.get(4, 'IAMU'))) { lt_requires.set(lt_items); await abap.statements.deleteInternal(lt_requires,{where: async (I) => {return abap.compare.ne(I.obj_type, abap.CharacterFactory.get(4, 'IASP')) && abap.compare.ne(I.obj_type, abap.CharacterFactory.get(4, 'PROG')) && abap.compare.ne(I.obj_type, abap.CharacterFactory.get(4, 'IARP'));}}); } else if (abap.compare.eq(unique330, abap.CharacterFactory.get(4, 'IDOC')) || abap.compare.eq(unique330, abap.CharacterFactory.get(4, 'IEXT'))) { lt_requires.set(lt_items); await abap.statements.deleteInternal(lt_requires,{where: async (I) => {return abap.compare.ne(I.obj_type, abap.CharacterFactory.get(4, 'TABL'));}}); } else if (abap.compare.eq(unique330, abap.CharacterFactory.get(4, 'DCLS'))) { lt_requires.set(lt_items); await abap.statements.deleteInternal(lt_requires,{where: async (I) => {return abap.compare.ne(I.obj_type, abap.CharacterFactory.get(4, 'DDLS'));}}); } else if (abap.compare.eq(unique330, abap.CharacterFactory.get(4, 'ODSO'))) { lt_requires.set(lt_items); await abap.statements.deleteInternal(lt_requires,{where: async (I) => {return abap.compare.ne(I.obj_type, abap.CharacterFactory.get(4, 'IOBJ'));}}); } else if (abap.compare.eq(unique330, abap.CharacterFactory.get(4, 'SCP1'))) { lt_requires.set(lt_items); await abap.statements.deleteInternal(lt_requires,{where: async (I) => {return abap.compare.ne(I.obj_type, abap.CharacterFactory.get(4, 'TOBJ'));}}); } else if (abap.compare.eq(unique330, abap.CharacterFactory.get(4, 'CHAR'))) { lt_requires.set(lt_items); await abap.statements.deleteInternal(lt_requires,{where: async (I) => {return abap.compare.ne(I.obj_type, abap.CharacterFactory.get(4, 'OTGR'));}}); } else if (abap.compare.eq(unique330, abap.CharacterFactory.get(4, 'PINF'))) { lt_requires.set(lt_items); await abap.statements.deleteInternal(lt_requires,{where: async (I) => {return abap.compare.ne(I.obj_type, abap.CharacterFactory.get(4, 'CLAS')) && abap.compare.ne(I.obj_type, abap.CharacterFactory.get(4, 'INTF')) && abap.compare.ne(I.obj_type, abap.CharacterFactory.get(4, 'TABL')) && abap.compare.ne(I.obj_type, abap.CharacterFactory.get(4, 'DOMA')) && abap.compare.ne(I.obj_type, abap.CharacterFactory.get(4, 'DTEL'));}}); } else if (abap.compare.eq(unique330, abap.CharacterFactory.get(4, 'DEVC'))) { lt_requires.set(lt_items); await abap.statements.deleteInternal(lt_requires,{where: async (I) => {return abap.compare.ne(I.obj_type, abap.CharacterFactory.get(4, 'PINF'));}}); } else if (abap.compare.eq(unique330, abap.CharacterFactory.get(4, 'ENHC'))) { lt_requires.set(lt_items); await abap.statements.deleteInternal(lt_requires,{where: async (I) => {return abap.compare.ne(I.obj_type, abap.CharacterFactory.get(4, 'ENHO'));}}); } else if (abap.compare.eq(unique330, abap.CharacterFactory.get(4, 'ENHO'))) { lt_requires.set(lt_items); await abap.statements.deleteInternal(lt_requires,{where: async (I) => {return abap.compare.ne(I.obj_type, abap.CharacterFactory.get(4, 'ENSC')) && abap.compare.ne(I.obj_type, abap.CharacterFactory.get(4, 'ENHS'));}}); } else if (abap.compare.eq(unique330, abap.CharacterFactory.get(4, 'ENSC'))) { lt_requires.set(lt_items); await abap.statements.deleteInternal(lt_requires,{where: async (I) => {return abap.compare.ne(I.obj_type, abap.CharacterFactory.get(4, 'ENHS'));}}); } else if (abap.compare.eq(unique330, abap.CharacterFactory.get(4, 'IWMO')) || abap.compare.eq(unique330, abap.CharacterFactory.get(4, 'IWSV')) || abap.compare.eq(unique330, abap.CharacterFactory.get(4, 'IWVB'))) { lt_requires.set(lt_items); await abap.statements.deleteInternal(lt_requires,{where: async (I) => {return abap.compare.ne(I.obj_type, abap.CharacterFactory.get(4, 'SRVB'));}}); } else if (abap.compare.eq(unique330, abap.CharacterFactory.get(4, 'SUSH'))) { lt_requires.set(lt_items); await abap.statements.deleteInternal(lt_requires,{where: async (I) => {return abap.compare.ne(I.obj_type, abap.CharacterFactory.get(4, 'SRVB')) && abap.compare.ne(I.obj_type, abap.CharacterFactory.get(4, 'HTTP'));}}); } else if (abap.compare.eq(unique330, abap.CharacterFactory.get(4, 'SRVB'))) { lt_requires.set(lt_items); await abap.statements.deleteInternal(lt_requires,{where: async (I) => {return abap.compare.ne(I.obj_type, abap.CharacterFactory.get(4, 'SRVD'));}}); } for await (const unique331 of abap.statements.loop(lt_requires)) { ls_require.set(unique331); await lo_graph.get().add_edge({is_from: ls_require, is_to: ls_item}); } } const indexBackup1 = abap.builtin.sy.get().index.get(); let unique332 = 1; while (abap.compare.eq((await lo_graph.get().has_vertices()), abap.builtin.abap_true)) { abap.builtin.sy.get().index.set(unique332++); ls_item.set((await lo_graph.get().get_next({ii_log: ii_log}))); abap.statements.readTable(it_results,{keyName: "sec_key", into: ls_result, withKey: (i) => {return abap.compare.eq(i.obj_name, ls_item.get().obj_name) && abap.compare.eq(i.obj_type, ls_item.get().obj_type);}, withKeyValue: [{key: (i) => {return i.obj_name}, value: ls_item.get().obj_name},{key: (i) => {return i.obj_type}, value: ls_item.get().obj_type}], usesTableLine: false, withKeySimple: {"obj_name": ls_item.get().obj_name,"obj_type": ls_item.get().obj_type}}); abap.statements.assert(abap.compare.eq(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))); abap.statements.append({source: ls_result, target: rt_results}); } abap.builtin.sy.get().index.set(indexBackup1); return rt_results; } } abap.Classes['ZCL_ABAPGIT_FILE_DESERIALIZE'] = zcl_abapgit_file_deserialize; export {zcl_abapgit_file_deserialize}; |