import {ParsedMessagePart, ParsedMessagePartType} from './parsed-message-part'; /** * Created by martin on 05.05.2017. * A reference to an ICU message * icu references are numbered from 0 to n. */ export class ParsedMessagePartICUMessageRef extends ParsedMessagePart { // index 0 .. n private _index: number; // optional disp-Attribute value, contains the original expression. private _disp?: string; constructor(index: number, disp: string) { super(ParsedMessagePartType.ICU_MESSAGE_REF); this._index = index; this._disp = disp; } public asDisplayString(format?: string) { return ''; } public index(): number { return this._index; } public disp(): string { return this._disp; } }