All files / src/objects type_pool.ts

77.78% Statements 7/9
50% Branches 1/2
75% Functions 3/4
77.78% Lines 7/9

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     29x       2x 2x     2x       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();
    Iif (main === undefined) {
      return [];
    }
    return [main];
  }
 
  public getAllowedNaming() {
    return {
      maxLength: 5,
      allowNamespace: false,
    };
  }
 
  public getDescription(): string | undefined {
    // todo
    return undefined;
  }
}