All files / output zcl_abapgit_syntax_txt.clas.mjs

45.71% Statements 16/35
100% Branches 2/2
25% Functions 1/4
45.71% Lines 16/35

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 351x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x                   1x       1x               1x 1x 1x
const {zcl_abapgit_syntax_highlighter} = await import("./zcl_abapgit_syntax_highlighter.clas.mjs");
const {cx_root} = await import("./cx_root.clas.mjs");
// zcl_abapgit_syntax_txt.clas.abap
class zcl_abapgit_syntax_txt extends zcl_abapgit_syntax_highlighter {
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'ZCL_ABAPGIT_SYNTAX_TXT';
  static IMPLEMENTED_INTERFACES = [];
  static ATTRIBUTES = {};
  static METHODS = {"CONSTRUCTOR": {"visibility": "U", "parameters": {}},
  "PROCESS_LINE": {"visibility": "U", "parameters": {}}};
  constructor() {
    const sup = super();
    this.me = new abap.types.ABAPObject();
    this.me.set(this);
    this.INTERNAL_ID = abap.internalIdCounter++;
    this.FRIENDS_ACCESS_INSTANCE = {
      "SUPER": sup.FRIENDS_ACCESS_INSTANCE,
      "process_line": this.process_line.bind(this),
    };
  }
  async constructor_(INPUT) {
    await super.constructor_();
    return this;
  }
  async process_line(INPUT) {
    let rv_line = new abap.types.String({qualifiedName: "STRING"});
    let iv_line = INPUT?.iv_line;
    if (iv_line?.getQualifiedName === undefined || iv_line.getQualifiedName() !== "STRING") { iv_line = undefined; }
    if (iv_line === undefined) { iv_line = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_line); }
    rv_line.set((await this.apply_style({iv_line: iv_line, iv_class: abap.CharacterFactory.get(1, '')})));
    return rv_line;
  }
}
abap.Classes['ZCL_ABAPGIT_SYNTAX_TXT'] = zcl_abapgit_syntax_txt;
export {zcl_abapgit_syntax_txt};