All files / src/abap/types alias.ts

100% Statements 22/22
100% Branches 3/3
100% Functions 3/3
100% Lines 22/22

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 221x 1x 1x 1x 1x 1x 1x 1x 1x 26x 26x 26x 26x 1x 1x 30x 30x 1x 1x 1x 1x 1x
import {Identifier} from "../4_file_information/_identifier";
import {AbstractToken} from "../1_lexer/tokens/abstract_token";
import {Visibility} from "../4_file_information/visibility";
 
export class Alias extends Identifier {
  private readonly visibility: Visibility;
  private readonly component: string;
 
  public constructor(token: AbstractToken, visibility: Visibility, component: string, filename: string) {
    super(token, filename);
    this.component = component;
    this.visibility = visibility;
  }
 
  public getComponent(): string {
    return this.component;
  }
 
  public getVisibility(): Visibility {
    return this.visibility;
  }
}