All files / src/objects type_pool.ts

93.1% Statements 27/29
40% Branches 4/10
100% Functions 4/4
93.1% Lines 27/29

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 291x 1x 1x 1x 1x 1x 174x 174x 1x 1x 7x 7x     7x 7x 1x 1x 3x 3x 3x 3x 3x 1x 1x 1x 1x 1x 1x
import {ABAPObject} from "./_abap_object";
import {ABAPFile} from "../abap/abap_file";
 
export class TypePool extends ABAPObject {
 
  public getType(): string {
    return "TYPE";
  }
 
  public getSequencedFiles(): readonly ABAPFile[] {
    const main = this.getMainABAPFile();
    if (main === undefined) {
      return [];
    }
    return [main];
  }
 
  public getAllowedNaming() {
    return {
      maxLength: 5,
      allowNamespace: false,
    };
  }
 
  public getDescription(): string | undefined {
    const parsed = super.parseRaw2();
    return parsed?.abapGit?.["asx:abap"]?.["asx:values"]?.DDTEXT || "";
  }
}