"Fossies" - the Fresh Open Source Software Archive

Member "prettier-1.18.2/tests/decorators-ts/accessor-decorator.ts" (7 Jun 2019, 256 Bytes) of package /linux/misc/prettier-1.18.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) TypeScript source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 class Point {
    2   private _x: number;
    3   private _y: number;
    4   constructor(x: number, y: number) {
    5     this._x = x;
    6     this._y = y;
    7   }
    8 
    9   @configurable(false)
   10   get x() {
   11     return this._x;
   12   }
   13 
   14   @configurable(false)
   15   get y() {
   16     return this._y;
   17   }
   18 }