All files / output zcl_abapgit_ui_core_injector.clas.mjs

48.38% Statements 15/31
100% Branches 2/2
16.66% Functions 1/6
48.38% Lines 15/31

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 311x 1x 1x 1x 1x 1x 1x 1x 1x             1x       1x     1x           1x 1x 1x
const {cx_root} = await import("./cx_root.clas.mjs");
// zcl_abapgit_ui_core_injector.clas.abap
class zcl_abapgit_ui_core_injector {
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'ZCL_ABAPGIT_UI_CORE_INJECTOR';
  static IMPLEMENTED_INTERFACES = [];
  static ATTRIBUTES = {};
  static METHODS = {"SET_HTML_VIEWER": {"visibility": "U", "parameters": {"II_HTML_VIEWER": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML_VIEWER", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML_VIEWER"});}, "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 set_html_viewer(INPUT) {
    return zcl_abapgit_ui_core_injector.set_html_viewer(INPUT);
  }
  static async set_html_viewer(INPUT) {
    let ii_html_viewer = INPUT?.ii_html_viewer;
    if (ii_html_viewer?.getQualifiedName === undefined || ii_html_viewer.getQualifiedName() !== "ZIF_ABAPGIT_HTML_VIEWER") { ii_html_viewer = undefined; }
    if (ii_html_viewer === undefined) { ii_html_viewer = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_HTML_VIEWER", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_HTML_VIEWER"}).set(INPUT.ii_html_viewer); }
    abap.Classes['ZCL_ABAPGIT_UI_CORE_FACTORY'].gi_html_viewer.set(ii_html_viewer);
  }
}
abap.Classes['ZCL_ABAPGIT_UI_CORE_INJECTOR'] = zcl_abapgit_ui_core_injector;
export {zcl_abapgit_ui_core_injector};