All files / src/abap/types/basic ngeneric_type.ts

91.3% Statements 21/23
100% Branches 3/3
75% Functions 3/4
91.3% Lines 21/23

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 241x 1x 1x 1x 1x 1x 1x 1x 11x 11x 1x 1x 1x 1x 1x 1x     1x 1x 2x 2x 1x  
import {NumericType} from "./numeric_type";
 
// "TYPE n" of a method or FORM parameter, where no length can be given.
// It is a NumericType, so everything that handles n keeps treating it as such
export class NGenericType extends NumericType {
  private static readonly singleton = new NGenericType();
 
  public static get(): NGenericType {
    return this.singleton;
  }
 
  private constructor() {
    super(1);
  }
 
  public toText() {
    return "```n```";
  }
 
  public isGeneric() {
    return true;
  }
}