All files / src/objects type_pool.ts

82.75% Statements 24/29
75% Branches 3/4
75% Functions 3/4
82.75% Lines 24/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 171x 171x 1x 1x 7x 7x     7x 7x 1x 1x 3x 3x 3x 3x 3x 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 {
    // todo
    return undefined;
  }
}