TypeScript/tests/baselines/reference/sourceMapValidationDecorators.sourcemap.txt
Wenlu Wang dc237b317e
Change static fields emits (#43114)
* use emit into iife

* Update emit

* Revert un-related changes

* Allow super in static context

* Allow this and super in static property declaration

* Add more tests

* Avoid errors

* Accept baseline

* Accept baseline

* Add decorated classes test

* Add errors

* Avoid this in emitter

* make lint happy

* Add class expression tests

* Add computed name test

* Avoid super if target below es6

* Adjust function boundary

* Add internal

* Fix minor CR issues

* accept baseline

* Update behavior

* Avoid spaces

* Make lint happy

* Avoid function boundary utils

* Update baseline

* Avoid errors

* Accept baseline

* Accept baseline

* Accept baseline

* Accept baseline

* Use substitutions

* Full coverage for super, this, merge static and private context

* Fix use-before-def in static fields

Co-authored-by: Ron Buckton <ron.buckton@microsoft.com>
2021-06-25 15:49:27 -07:00

887 lines
28 KiB
Plaintext

===================================================================
JsFile: sourceMapValidationDecorators.js
mapUrl: sourceMapValidationDecorators.js.map
sourceRoot:
sources: sourceMapValidationDecorators.ts
===================================================================
-------------------------------------------------------------------
emittedFile:tests/cases/compiler/sourceMapValidationDecorators.js
sourceFile:sourceMapValidationDecorators.ts
-------------------------------------------------------------------
>>>var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
>>> var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
>>> if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
>>> else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
>>> return c > 3 && r && Object.defineProperty(target, key, r), r;
>>>};
>>>var __param = (this && this.__param) || function (paramIndex, decorator) {
>>> return function (target, key) { decorator(target, key, paramIndex); }
>>>};
>>>var Greeter = /** @class */ (function () {
1 >
2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >declare function ClassDecorator1(target: Function): void;
>declare function ClassDecorator2(x: number): (target: Function) => void;
>declare function PropertyDecorator1(target: Object, key: string | symbol, descriptor?: PropertyDescriptor): void;
>declare function PropertyDecorator2(x: number): (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void;
>declare function ParameterDecorator1(target: Object, key: string | symbol, paramIndex: number): void;
>declare function ParameterDecorator2(x: number): (target: Object, key: string | symbol, paramIndex: number) => void;
>
>@ClassDecorator1
>@ClassDecorator2(10)
>
1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0)
---
>>> function Greeter(greeting) {
1->^^^^
2 > ^^^^^^^^^^^^^^^^^
3 > ^^^^^^^^
1->class Greeter {
>
2 > constructor(
> @ParameterDecorator1
> @ParameterDecorator2(20)
> public
3 > greeting: string
1->Emitted(11, 5) Source(11, 5) + SourceIndex(0)
2 >Emitted(11, 22) Source(14, 14) + SourceIndex(0)
3 >Emitted(11, 30) Source(14, 30) + SourceIndex(0)
---
>>> var b = [];
1 >^^^^^^^^
2 > ^^^^^^^^^^^
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >,
>
> @ParameterDecorator1
> @ParameterDecorator2(30)
>
2 > ...b: string[]
1 >Emitted(12, 9) Source(18, 7) + SourceIndex(0)
2 >Emitted(12, 20) Source(18, 21) + SourceIndex(0)
---
>>> for (var _i = 1; _i < arguments.length; _i++) {
1->^^^^^^^^^^^^^
2 > ^^^^^^^^^^
3 > ^^
4 > ^^^^^^^^^^^^^^^^^^^^^
5 > ^^
6 > ^^^^
1->
2 > ...b: string[]
3 >
4 > ...b: string[]
5 >
6 > ...b: string[]
1->Emitted(13, 14) Source(18, 7) + SourceIndex(0)
2 >Emitted(13, 24) Source(18, 21) + SourceIndex(0)
3 >Emitted(13, 26) Source(18, 7) + SourceIndex(0)
4 >Emitted(13, 47) Source(18, 21) + SourceIndex(0)
5 >Emitted(13, 49) Source(18, 7) + SourceIndex(0)
6 >Emitted(13, 53) Source(18, 21) + SourceIndex(0)
---
>>> b[_i - 1] = arguments[_i];
1 >^^^^^^^^^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^
1 >
2 > ...b: string[]
1 >Emitted(14, 13) Source(18, 7) + SourceIndex(0)
2 >Emitted(14, 39) Source(18, 21) + SourceIndex(0)
---
>>> }
>>> this.greeting = greeting;
1 >^^^^^^^^
2 > ^^^^^^^^^^^^^
3 > ^^^
4 > ^^^^^^^^
5 > ^
1 >
2 > greeting
3 >
4 > greeting
5 > : string
1 >Emitted(16, 9) Source(14, 14) + SourceIndex(0)
2 >Emitted(16, 22) Source(14, 22) + SourceIndex(0)
3 >Emitted(16, 25) Source(14, 14) + SourceIndex(0)
4 >Emitted(16, 33) Source(14, 22) + SourceIndex(0)
5 >Emitted(16, 34) Source(14, 30) + SourceIndex(0)
---
>>> }
1 >^^^^
2 > ^
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >,
>
> @ParameterDecorator1
> @ParameterDecorator2(30)
> ...b: string[]) {
>
2 > }
1 >Emitted(17, 5) Source(19, 5) + SourceIndex(0)
2 >Emitted(17, 6) Source(19, 6) + SourceIndex(0)
---
>>> Greeter.prototype.greet = function () {
1->^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^^
3 > ^^^
4 > ^^^^^^^^^^^^^^^^^^^->
1->
>
> @PropertyDecorator1
> @PropertyDecorator2(40)
>
2 > greet
3 >
1->Emitted(18, 5) Source(23, 5) + SourceIndex(0)
2 >Emitted(18, 28) Source(23, 10) + SourceIndex(0)
3 >Emitted(18, 31) Source(23, 5) + SourceIndex(0)
---
>>> return "<h1>" + this.greeting + "</h1>";
1->^^^^^^^^
2 > ^^^^^^^
3 > ^^^^^^
4 > ^^^
5 > ^^^^
6 > ^
7 > ^^^^^^^^
8 > ^^^
9 > ^^^^^^^
10> ^
1->greet() {
>
2 > return
3 > "<h1>"
4 > +
5 > this
6 > .
7 > greeting
8 > +
9 > "</h1>"
10> ;
1->Emitted(19, 9) Source(24, 9) + SourceIndex(0)
2 >Emitted(19, 16) Source(24, 16) + SourceIndex(0)
3 >Emitted(19, 22) Source(24, 22) + SourceIndex(0)
4 >Emitted(19, 25) Source(24, 25) + SourceIndex(0)
5 >Emitted(19, 29) Source(24, 29) + SourceIndex(0)
6 >Emitted(19, 30) Source(24, 30) + SourceIndex(0)
7 >Emitted(19, 38) Source(24, 38) + SourceIndex(0)
8 >Emitted(19, 41) Source(24, 41) + SourceIndex(0)
9 >Emitted(19, 48) Source(24, 48) + SourceIndex(0)
10>Emitted(19, 49) Source(24, 49) + SourceIndex(0)
---
>>> };
1 >^^^^
2 > ^
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
>
2 > }
1 >Emitted(20, 5) Source(25, 5) + SourceIndex(0)
2 >Emitted(20, 6) Source(25, 6) + SourceIndex(0)
---
>>> Greeter.prototype.fn = function (x) {
1->^^^^
2 > ^^^^^^^^^^^^^^^^^^^^
3 > ^^^
4 > ^^^^^^^^^^
5 > ^
1->
>
> @PropertyDecorator1
> @PropertyDecorator2(50)
> private x: string;
>
> @PropertyDecorator1
> @PropertyDecorator2(60)
> private static x1: number = 10;
>
> private
2 > fn
3 >
4 > private fn(
> @ParameterDecorator1
> @ParameterDecorator2(70)
>
5 > x: number
1->Emitted(21, 5) Source(35, 13) + SourceIndex(0)
2 >Emitted(21, 25) Source(35, 15) + SourceIndex(0)
3 >Emitted(21, 28) Source(35, 5) + SourceIndex(0)
4 >Emitted(21, 38) Source(38, 7) + SourceIndex(0)
5 >Emitted(21, 39) Source(38, 16) + SourceIndex(0)
---
>>> return this.greeting;
1 >^^^^^^^^
2 > ^^^^^^^
3 > ^^^^
4 > ^
5 > ^^^^^^^^
6 > ^
1 >) {
>
2 > return
3 > this
4 > .
5 > greeting
6 > ;
1 >Emitted(22, 9) Source(39, 9) + SourceIndex(0)
2 >Emitted(22, 16) Source(39, 16) + SourceIndex(0)
3 >Emitted(22, 20) Source(39, 20) + SourceIndex(0)
4 >Emitted(22, 21) Source(39, 21) + SourceIndex(0)
5 >Emitted(22, 29) Source(39, 29) + SourceIndex(0)
6 >Emitted(22, 30) Source(39, 30) + SourceIndex(0)
---
>>> };
1 >^^^^
2 > ^
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
>
2 > }
1 >Emitted(23, 5) Source(40, 5) + SourceIndex(0)
2 >Emitted(23, 6) Source(40, 6) + SourceIndex(0)
---
>>> Object.defineProperty(Greeter.prototype, "greetings", {
1->^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1->
>
> @PropertyDecorator1
> @PropertyDecorator2(80)
>
2 > get
3 > greetings
1->Emitted(24, 5) Source(44, 5) + SourceIndex(0)
2 >Emitted(24, 27) Source(44, 9) + SourceIndex(0)
3 >Emitted(24, 57) Source(44, 18) + SourceIndex(0)
---
>>> get: function () {
1 >^^^^^^^^^^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^->
1 >
1 >Emitted(25, 14) Source(44, 5) + SourceIndex(0)
---
>>> return this.greeting;
1->^^^^^^^^^^^^
2 > ^^^^^^^
3 > ^^^^
4 > ^
5 > ^^^^^^^^
6 > ^
1->get greetings() {
>
2 > return
3 > this
4 > .
5 > greeting
6 > ;
1->Emitted(26, 13) Source(45, 9) + SourceIndex(0)
2 >Emitted(26, 20) Source(45, 16) + SourceIndex(0)
3 >Emitted(26, 24) Source(45, 20) + SourceIndex(0)
4 >Emitted(26, 25) Source(45, 21) + SourceIndex(0)
5 >Emitted(26, 33) Source(45, 29) + SourceIndex(0)
6 >Emitted(26, 34) Source(45, 30) + SourceIndex(0)
---
>>> },
1 >^^^^^^^^
2 > ^
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
>
2 > }
1 >Emitted(27, 9) Source(46, 5) + SourceIndex(0)
2 >Emitted(27, 10) Source(46, 6) + SourceIndex(0)
---
>>> set: function (greetings) {
1->^^^^^^^^^^^^^
2 > ^^^^^^^^^^
3 > ^^^^^^^^^
4 > ^^^^^^^->
1->
>
>
2 > set greetings(
> @ParameterDecorator1
> @ParameterDecorator2(90)
>
3 > greetings: string
1->Emitted(28, 14) Source(48, 5) + SourceIndex(0)
2 >Emitted(28, 24) Source(51, 7) + SourceIndex(0)
3 >Emitted(28, 33) Source(51, 24) + SourceIndex(0)
---
>>> this.greeting = greetings;
1->^^^^^^^^^^^^
2 > ^^^^
3 > ^
4 > ^^^^^^^^
5 > ^^^
6 > ^^^^^^^^^
7 > ^
1->) {
>
2 > this
3 > .
4 > greeting
5 > =
6 > greetings
7 > ;
1->Emitted(29, 13) Source(52, 9) + SourceIndex(0)
2 >Emitted(29, 17) Source(52, 13) + SourceIndex(0)
3 >Emitted(29, 18) Source(52, 14) + SourceIndex(0)
4 >Emitted(29, 26) Source(52, 22) + SourceIndex(0)
5 >Emitted(29, 29) Source(52, 25) + SourceIndex(0)
6 >Emitted(29, 38) Source(52, 34) + SourceIndex(0)
7 >Emitted(29, 39) Source(52, 35) + SourceIndex(0)
---
>>> },
1 >^^^^^^^^
2 > ^
3 > ^^^^^^^^^^^^^^^^^^->
1 >
>
2 > }
1 >Emitted(30, 9) Source(53, 5) + SourceIndex(0)
2 >Emitted(30, 10) Source(53, 6) + SourceIndex(0)
---
>>> enumerable: false,
>>> configurable: true
>>> });
1->^^^^^^^
2 > ^^^^^^^^^^^^^^->
1->
1->Emitted(33, 8) Source(46, 6) + SourceIndex(0)
---
>>> Greeter.x1 = 10;
1->^^^^
2 > ^^^^^^^^^^
3 > ^^^
4 > ^^
5 > ^
1->
2 > x1
3 > : number =
4 > 10;
5 >
1->Emitted(34, 5) Source(33, 20) + SourceIndex(0)
2 >Emitted(34, 15) Source(33, 22) + SourceIndex(0)
3 >Emitted(34, 18) Source(33, 33) + SourceIndex(0)
4 >Emitted(34, 20) Source(33, 36) + SourceIndex(0)
5 >Emitted(34, 21) Source(33, 36) + SourceIndex(0)
---
>>> __decorate([
1 >^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
1 >Emitted(35, 5) Source(23, 5) + SourceIndex(0)
---
>>> PropertyDecorator1,
1->^^^^^^^^
2 > ^^^^^^^^^^^^^^^^^^
3 > ^^^^^->
1->
2 > PropertyDecorator1
1->Emitted(36, 9) Source(21, 6) + SourceIndex(0)
2 >Emitted(36, 27) Source(21, 24) + SourceIndex(0)
---
>>> PropertyDecorator2(40)
1->^^^^^^^^
2 > ^^^^^^^^^^^^^^^^^^
3 > ^
4 > ^^
5 > ^
6 > ^^^^^^^^^^^^->
1->
> @
2 > PropertyDecorator2
3 > (
4 > 40
5 > )
1->Emitted(37, 9) Source(22, 6) + SourceIndex(0)
2 >Emitted(37, 27) Source(22, 24) + SourceIndex(0)
3 >Emitted(37, 28) Source(22, 25) + SourceIndex(0)
4 >Emitted(37, 30) Source(22, 27) + SourceIndex(0)
5 >Emitted(37, 31) Source(22, 28) + SourceIndex(0)
---
>>> ], Greeter.prototype, "greet", null);
1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1->
> greet() {
> return "<h1>" + this.greeting + "</h1>";
> }
1->Emitted(38, 41) Source(25, 6) + SourceIndex(0)
---
>>> __decorate([
1 >^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
>
> @PropertyDecorator1
> @PropertyDecorator2(50)
>
1 >Emitted(39, 5) Source(29, 5) + SourceIndex(0)
---
>>> PropertyDecorator1,
1->^^^^^^^^
2 > ^^^^^^^^^^^^^^^^^^
3 > ^^^^^->
1->
2 > PropertyDecorator1
1->Emitted(40, 9) Source(27, 6) + SourceIndex(0)
2 >Emitted(40, 27) Source(27, 24) + SourceIndex(0)
---
>>> PropertyDecorator2(50)
1->^^^^^^^^
2 > ^^^^^^^^^^^^^^^^^^
3 > ^
4 > ^^
5 > ^
6 > ^^^^^^^^^^->
1->
> @
2 > PropertyDecorator2
3 > (
4 > 50
5 > )
1->Emitted(41, 9) Source(28, 6) + SourceIndex(0)
2 >Emitted(41, 27) Source(28, 24) + SourceIndex(0)
3 >Emitted(41, 28) Source(28, 25) + SourceIndex(0)
4 >Emitted(41, 30) Source(28, 27) + SourceIndex(0)
5 >Emitted(41, 31) Source(28, 28) + SourceIndex(0)
---
>>> ], Greeter.prototype, "x", void 0);
1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1->
> private x: string;
1->Emitted(42, 39) Source(29, 23) + SourceIndex(0)
---
>>> __decorate([
1 >^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
>
> @PropertyDecorator1
> @PropertyDecorator2(60)
> private static x1: number = 10;
>
>
1 >Emitted(43, 5) Source(35, 5) + SourceIndex(0)
---
>>> __param(0, ParameterDecorator1),
1->^^^^^^^^
2 > ^^^^^^^^^^^
3 > ^^^^^^^^^^^^^^^^^^^
4 > ^
5 > ^^^^^->
1->private fn(
> @
2 >
3 > ParameterDecorator1
4 >
1->Emitted(44, 9) Source(36, 8) + SourceIndex(0)
2 >Emitted(44, 20) Source(36, 8) + SourceIndex(0)
3 >Emitted(44, 39) Source(36, 27) + SourceIndex(0)
4 >Emitted(44, 40) Source(36, 27) + SourceIndex(0)
---
>>> __param(0, ParameterDecorator2(70))
1->^^^^^^^^
2 > ^^^^^^^^^^^
3 > ^^^^^^^^^^^^^^^^^^^
4 > ^
5 > ^^
6 > ^
7 > ^
1->
> @
2 >
3 > ParameterDecorator2
4 > (
5 > 70
6 > )
7 >
1->Emitted(45, 9) Source(37, 8) + SourceIndex(0)
2 >Emitted(45, 20) Source(37, 8) + SourceIndex(0)
3 >Emitted(45, 39) Source(37, 27) + SourceIndex(0)
4 >Emitted(45, 40) Source(37, 28) + SourceIndex(0)
5 >Emitted(45, 42) Source(37, 30) + SourceIndex(0)
6 >Emitted(45, 43) Source(37, 31) + SourceIndex(0)
7 >Emitted(45, 44) Source(37, 31) + SourceIndex(0)
---
>>> ], Greeter.prototype, "fn", null);
1 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1 >
> x: number) {
> return this.greeting;
> }
1 >Emitted(46, 38) Source(40, 6) + SourceIndex(0)
---
>>> __decorate([
1 >^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
>
> @PropertyDecorator1
> @PropertyDecorator2(80)
>
1 >Emitted(47, 5) Source(44, 5) + SourceIndex(0)
---
>>> PropertyDecorator1,
1->^^^^^^^^
2 > ^^^^^^^^^^^^^^^^^^
3 > ^^^^^^->
1->
2 > PropertyDecorator1
1->Emitted(48, 9) Source(42, 6) + SourceIndex(0)
2 >Emitted(48, 27) Source(42, 24) + SourceIndex(0)
---
>>> PropertyDecorator2(80),
1->^^^^^^^^
2 > ^^^^^^^^^^^^^^^^^^
3 > ^
4 > ^^
5 > ^
6 > ^^^^^^^^^^^->
1->
> @
2 > PropertyDecorator2
3 > (
4 > 80
5 > )
1->Emitted(49, 9) Source(43, 6) + SourceIndex(0)
2 >Emitted(49, 27) Source(43, 24) + SourceIndex(0)
3 >Emitted(49, 28) Source(43, 25) + SourceIndex(0)
4 >Emitted(49, 30) Source(43, 27) + SourceIndex(0)
5 >Emitted(49, 31) Source(43, 28) + SourceIndex(0)
---
>>> __param(0, ParameterDecorator1),
1->^^^^^^^^
2 > ^^^^^^^^^^^
3 > ^^^^^^^^^^^^^^^^^^^
4 > ^
5 > ^^^^^->
1->
> get greetings() {
> return this.greeting;
> }
>
> set greetings(
> @
2 >
3 > ParameterDecorator1
4 >
1->Emitted(50, 9) Source(49, 8) + SourceIndex(0)
2 >Emitted(50, 20) Source(49, 8) + SourceIndex(0)
3 >Emitted(50, 39) Source(49, 27) + SourceIndex(0)
4 >Emitted(50, 40) Source(49, 27) + SourceIndex(0)
---
>>> __param(0, ParameterDecorator2(90))
1->^^^^^^^^
2 > ^^^^^^^^^^^
3 > ^^^^^^^^^^^^^^^^^^^
4 > ^
5 > ^^
6 > ^
7 > ^
8 > ^^^->
1->
> @
2 >
3 > ParameterDecorator2
4 > (
5 > 90
6 > )
7 >
1->Emitted(51, 9) Source(50, 8) + SourceIndex(0)
2 >Emitted(51, 20) Source(50, 8) + SourceIndex(0)
3 >Emitted(51, 39) Source(50, 27) + SourceIndex(0)
4 >Emitted(51, 40) Source(50, 28) + SourceIndex(0)
5 >Emitted(51, 42) Source(50, 30) + SourceIndex(0)
6 >Emitted(51, 43) Source(50, 31) + SourceIndex(0)
7 >Emitted(51, 44) Source(50, 31) + SourceIndex(0)
---
>>> ], Greeter.prototype, "greetings", null);
1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1->
1->Emitted(52, 45) Source(46, 6) + SourceIndex(0)
---
>>> __decorate([
1 >^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
1 >Emitted(53, 5) Source(33, 5) + SourceIndex(0)
---
>>> PropertyDecorator1,
1->^^^^^^^^
2 > ^^^^^^^^^^^^^^^^^^
3 > ^^^^^->
1->
2 > PropertyDecorator1
1->Emitted(54, 9) Source(31, 6) + SourceIndex(0)
2 >Emitted(54, 27) Source(31, 24) + SourceIndex(0)
---
>>> PropertyDecorator2(60)
1->^^^^^^^^
2 > ^^^^^^^^^^^^^^^^^^
3 > ^
4 > ^^
5 > ^
6 > ^->
1->
> @
2 > PropertyDecorator2
3 > (
4 > 60
5 > )
1->Emitted(55, 9) Source(32, 6) + SourceIndex(0)
2 >Emitted(55, 27) Source(32, 24) + SourceIndex(0)
3 >Emitted(55, 28) Source(32, 25) + SourceIndex(0)
4 >Emitted(55, 30) Source(32, 27) + SourceIndex(0)
5 >Emitted(55, 31) Source(32, 28) + SourceIndex(0)
---
>>> ], Greeter, "x1", void 0);
1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1->
> private static x1: number = 10;
1->Emitted(56, 30) Source(33, 36) + SourceIndex(0)
---
>>> Greeter = __decorate([
1 >^^^^
2 > ^^^^^^^
3 > ^^^^^^^^^^^^^^->
1 >
2 > Greeter
1 >Emitted(57, 5) Source(10, 7) + SourceIndex(0)
2 >Emitted(57, 12) Source(10, 14) + SourceIndex(0)
---
>>> ClassDecorator1,
1->^^^^^^^^
2 > ^^^^^^^^^^^^^^^
3 > ^^^^^^->
1->
2 > ClassDecorator1
1->Emitted(58, 9) Source(8, 2) + SourceIndex(0)
2 >Emitted(58, 24) Source(8, 17) + SourceIndex(0)
---
>>> ClassDecorator2(10),
1->^^^^^^^^
2 > ^^^^^^^^^^^^^^^
3 > ^
4 > ^^
5 > ^
6 > ^^^^^^^^^^^^^^->
1->
>@
2 > ClassDecorator2
3 > (
4 > 10
5 > )
1->Emitted(59, 9) Source(9, 2) + SourceIndex(0)
2 >Emitted(59, 24) Source(9, 17) + SourceIndex(0)
3 >Emitted(59, 25) Source(9, 18) + SourceIndex(0)
4 >Emitted(59, 27) Source(9, 20) + SourceIndex(0)
5 >Emitted(59, 28) Source(9, 21) + SourceIndex(0)
---
>>> __param(0, ParameterDecorator1),
1->^^^^^^^^
2 > ^^^^^^^^^^^
3 > ^^^^^^^^^^^^^^^^^^^
4 > ^
5 > ^^^^^^->
1->
>class Greeter {
> constructor(
> @
2 >
3 > ParameterDecorator1
4 >
1->Emitted(60, 9) Source(12, 8) + SourceIndex(0)
2 >Emitted(60, 20) Source(12, 8) + SourceIndex(0)
3 >Emitted(60, 39) Source(12, 27) + SourceIndex(0)
4 >Emitted(60, 40) Source(12, 27) + SourceIndex(0)
---
>>> __param(0, ParameterDecorator2(20)),
1->^^^^^^^^
2 > ^^^^^^^^^^^
3 > ^^^^^^^^^^^^^^^^^^^
4 > ^
5 > ^^
6 > ^
7 > ^
1->
> @
2 >
3 > ParameterDecorator2
4 > (
5 > 20
6 > )
7 >
1->Emitted(61, 9) Source(13, 8) + SourceIndex(0)
2 >Emitted(61, 20) Source(13, 8) + SourceIndex(0)
3 >Emitted(61, 39) Source(13, 27) + SourceIndex(0)
4 >Emitted(61, 40) Source(13, 28) + SourceIndex(0)
5 >Emitted(61, 42) Source(13, 30) + SourceIndex(0)
6 >Emitted(61, 43) Source(13, 31) + SourceIndex(0)
7 >Emitted(61, 44) Source(13, 31) + SourceIndex(0)
---
>>> __param(1, ParameterDecorator1),
1 >^^^^^^^^
2 > ^^^^^^^^^^^
3 > ^^^^^^^^^^^^^^^^^^^
4 > ^
5 > ^^^^^->
1 >
> public greeting: string,
>
> @
2 >
3 > ParameterDecorator1
4 >
1 >Emitted(62, 9) Source(16, 8) + SourceIndex(0)
2 >Emitted(62, 20) Source(16, 8) + SourceIndex(0)
3 >Emitted(62, 39) Source(16, 27) + SourceIndex(0)
4 >Emitted(62, 40) Source(16, 27) + SourceIndex(0)
---
>>> __param(1, ParameterDecorator2(30))
1->^^^^^^^^
2 > ^^^^^^^^^^^
3 > ^^^^^^^^^^^^^^^^^^^
4 > ^
5 > ^^
6 > ^
7 > ^
1->
> @
2 >
3 > ParameterDecorator2
4 > (
5 > 30
6 > )
7 >
1->Emitted(63, 9) Source(17, 8) + SourceIndex(0)
2 >Emitted(63, 20) Source(17, 8) + SourceIndex(0)
3 >Emitted(63, 39) Source(17, 27) + SourceIndex(0)
4 >Emitted(63, 40) Source(17, 28) + SourceIndex(0)
5 >Emitted(63, 42) Source(17, 30) + SourceIndex(0)
6 >Emitted(63, 43) Source(17, 31) + SourceIndex(0)
7 >Emitted(63, 44) Source(17, 31) + SourceIndex(0)
---
>>> ], Greeter);
1 >^^^^^^^
2 > ^^^^^^^
3 > ^
4 > ^^^^^->
1 >
2 > Greeter
3 > {
> constructor(
> @ParameterDecorator1
> @ParameterDecorator2(20)
> public greeting: string,
>
> @ParameterDecorator1
> @ParameterDecorator2(30)
> ...b: string[]) {
> }
>
> @PropertyDecorator1
> @PropertyDecorator2(40)
> greet() {
> return "<h1>" + this.greeting + "</h1>";
> }
>
> @PropertyDecorator1
> @PropertyDecorator2(50)
> private x: string;
>
> @PropertyDecorator1
> @PropertyDecorator2(60)
> private static x1: number = 10;
>
> private fn(
> @ParameterDecorator1
> @ParameterDecorator2(70)
> x: number) {
> return this.greeting;
> }
>
> @PropertyDecorator1
> @PropertyDecorator2(80)
> get greetings() {
> return this.greeting;
> }
>
> set greetings(
> @ParameterDecorator1
> @ParameterDecorator2(90)
> greetings: string) {
> this.greeting = greetings;
> }
> }
1 >Emitted(64, 8) Source(10, 7) + SourceIndex(0)
2 >Emitted(64, 15) Source(10, 14) + SourceIndex(0)
3 >Emitted(64, 16) Source(54, 2) + SourceIndex(0)
---
>>> return Greeter;
1->^^^^
2 > ^^^^^^^^^^^^^^
1->
2 > }
1->Emitted(65, 5) Source(54, 1) + SourceIndex(0)
2 >Emitted(65, 19) Source(54, 2) + SourceIndex(0)
---
>>>}());
1 >^
2 >
3 > ^^^^
4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
2 >
3 > class Greeter {
> constructor(
> @ParameterDecorator1
> @ParameterDecorator2(20)
> public greeting: string,
>
> @ParameterDecorator1
> @ParameterDecorator2(30)
> ...b: string[]) {
> }
>
> @PropertyDecorator1
> @PropertyDecorator2(40)
> greet() {
> return "<h1>" + this.greeting + "</h1>";
> }
>
> @PropertyDecorator1
> @PropertyDecorator2(50)
> private x: string;
>
> @PropertyDecorator1
> @PropertyDecorator2(60)
> private static x1: number = 10;
>
> private fn(
> @ParameterDecorator1
> @ParameterDecorator2(70)
> x: number) {
> return this.greeting;
> }
>
> @PropertyDecorator1
> @PropertyDecorator2(80)
> get greetings() {
> return this.greeting;
> }
>
> set greetings(
> @ParameterDecorator1
> @ParameterDecorator2(90)
> greetings: string) {
> this.greeting = greetings;
> }
> }
1 >Emitted(66, 2) Source(54, 2) + SourceIndex(0)
2 >Emitted(66, 2) Source(10, 1) + SourceIndex(0)
3 >Emitted(66, 6) Source(54, 2) + SourceIndex(0)
---
>>>//# sourceMappingURL=sourceMapValidationDecorators.js.map