972 lines
No EOL
36 KiB
Text
972 lines
No EOL
36 KiB
Text
===================================================================
|
|
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) {
|
|
>>> if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc);
|
|
>>> switch (arguments.length) {
|
|
>>> case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target);
|
|
>>> case 3: return decorators.reduceRight(function(o, d) { return (d && d(target, key)), void 0; }, void 0);
|
|
>>> case 4: return decorators.reduceRight(function(o, d) { return (d && d(target, key, o)) || o; }, desc);
|
|
>>> }
|
|
>>>};
|
|
>>>var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
>>> return function (target, key) { decorator(target, key, paramIndex); }
|
|
>>>};
|
|
>>>var Greeter = (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: Function, key: string | symbol, paramIndex: number): void;
|
|
>declare function ParameterDecorator2(x: number): (target: Function, key: string | symbol, paramIndex: number) => void;
|
|
>
|
|
>
|
|
1 >Emitted(12, 1) Source(8, 1) + SourceIndex(0)
|
|
---
|
|
>>> function Greeter(greeting) {
|
|
1->^^^^
|
|
2 > ^^^^^^^^^^^^^^^^^
|
|
3 > ^^^^^^^^
|
|
1->@ClassDecorator1
|
|
>@ClassDecorator2(10)
|
|
>class Greeter {
|
|
>
|
|
2 > constructor(
|
|
> @ParameterDecorator1
|
|
> @ParameterDecorator2(20)
|
|
> public
|
|
3 > greeting: string
|
|
1->Emitted(13, 5) Source(11, 5) + SourceIndex(0) name (Greeter)
|
|
2 >Emitted(13, 22) Source(14, 14) + SourceIndex(0) name (Greeter)
|
|
3 >Emitted(13, 30) Source(14, 30) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>> var b = [];
|
|
1 >^^^^^^^^
|
|
2 > ^^^^^^^^^^^
|
|
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
|
1 >,
|
|
>
|
|
>
|
|
2 > @ParameterDecorator1
|
|
> @ParameterDecorator2(30)
|
|
> ...b: string[]
|
|
1 >Emitted(14, 9) Source(16, 7) + SourceIndex(0) name (Greeter.constructor)
|
|
2 >Emitted(14, 20) Source(18, 21) + SourceIndex(0) name (Greeter.constructor)
|
|
---
|
|
>>> for (var _i = 1; _i < arguments.length; _i++) {
|
|
1->^^^^^^^^^^^^^
|
|
2 > ^^^^^^^^^^^
|
|
3 > ^
|
|
4 > ^^^^^^^^^^^^^^^^^^^^^^
|
|
5 > ^
|
|
6 > ^^^^
|
|
1->
|
|
2 > @ParameterDecorator1
|
|
> @ParameterDecorator2(30)
|
|
> ...b: string[]
|
|
3 >
|
|
4 > @ParameterDecorator1
|
|
> @ParameterDecorator2(30)
|
|
> ...b: string[]
|
|
5 >
|
|
6 > @ParameterDecorator1
|
|
> @ParameterDecorator2(30)
|
|
> ...b: string[]
|
|
1->Emitted(15, 14) Source(16, 7) + SourceIndex(0) name (Greeter.constructor)
|
|
2 >Emitted(15, 25) Source(18, 21) + SourceIndex(0) name (Greeter.constructor)
|
|
3 >Emitted(15, 26) Source(16, 7) + SourceIndex(0) name (Greeter.constructor)
|
|
4 >Emitted(15, 48) Source(18, 21) + SourceIndex(0) name (Greeter.constructor)
|
|
5 >Emitted(15, 49) Source(16, 7) + SourceIndex(0) name (Greeter.constructor)
|
|
6 >Emitted(15, 53) Source(18, 21) + SourceIndex(0) name (Greeter.constructor)
|
|
---
|
|
>>> b[_i - 1] = arguments[_i];
|
|
1 >^^^^^^^^^^^^
|
|
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
1 >
|
|
2 > @ParameterDecorator1
|
|
> @ParameterDecorator2(30)
|
|
> ...b: string[]
|
|
1 >Emitted(16, 13) Source(16, 7) + SourceIndex(0) name (Greeter.constructor)
|
|
2 >Emitted(16, 39) Source(18, 21) + SourceIndex(0) name (Greeter.constructor)
|
|
---
|
|
>>> }
|
|
>>> this.greeting = greeting;
|
|
1 >^^^^^^^^
|
|
2 > ^^^^^^^^^^^^^
|
|
3 > ^^^
|
|
4 > ^^^^^^^^
|
|
5 > ^
|
|
1 >
|
|
2 > greeting
|
|
3 >
|
|
4 > greeting
|
|
5 > : string
|
|
1 >Emitted(18, 9) Source(14, 14) + SourceIndex(0) name (Greeter.constructor)
|
|
2 >Emitted(18, 22) Source(14, 22) + SourceIndex(0) name (Greeter.constructor)
|
|
3 >Emitted(18, 25) Source(14, 14) + SourceIndex(0) name (Greeter.constructor)
|
|
4 >Emitted(18, 33) Source(14, 22) + SourceIndex(0) name (Greeter.constructor)
|
|
5 >Emitted(18, 34) Source(14, 30) + SourceIndex(0) name (Greeter.constructor)
|
|
---
|
|
>>> }
|
|
1 >^^^^
|
|
2 > ^
|
|
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
|
1 >,
|
|
>
|
|
> @ParameterDecorator1
|
|
> @ParameterDecorator2(30)
|
|
> ...b: string[]) {
|
|
>
|
|
2 > }
|
|
1 >Emitted(19, 5) Source(19, 5) + SourceIndex(0) name (Greeter.constructor)
|
|
2 >Emitted(19, 6) Source(19, 6) + SourceIndex(0) name (Greeter.constructor)
|
|
---
|
|
>>> Greeter.prototype.greet = function () {
|
|
1->^^^^
|
|
2 > ^^^^^^^^^^^^^^^^^^^^^^^
|
|
3 > ^^^
|
|
4 > ^^^^^^^^^^^^^^^^^^^->
|
|
1->
|
|
>
|
|
> @PropertyDecorator1
|
|
> @PropertyDecorator2(40)
|
|
>
|
|
2 > greet
|
|
3 >
|
|
1->Emitted(20, 5) Source(23, 5) + SourceIndex(0) name (Greeter)
|
|
2 >Emitted(20, 28) Source(23, 10) + SourceIndex(0) name (Greeter)
|
|
3 >Emitted(20, 31) Source(21, 5) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>> return "<h1>" + this.greeting + "</h1>";
|
|
1->^^^^^^^^
|
|
2 > ^^^^^^
|
|
3 > ^
|
|
4 > ^^^^^^
|
|
5 > ^^^
|
|
6 > ^^^^
|
|
7 > ^
|
|
8 > ^^^^^^^^
|
|
9 > ^^^
|
|
10> ^^^^^^^
|
|
11> ^
|
|
1->@PropertyDecorator1
|
|
> @PropertyDecorator2(40)
|
|
> greet() {
|
|
>
|
|
2 > return
|
|
3 >
|
|
4 > "<h1>"
|
|
5 > +
|
|
6 > this
|
|
7 > .
|
|
8 > greeting
|
|
9 > +
|
|
10> "</h1>"
|
|
11> ;
|
|
1->Emitted(21, 9) Source(24, 9) + SourceIndex(0) name (Greeter.greet)
|
|
2 >Emitted(21, 15) Source(24, 15) + SourceIndex(0) name (Greeter.greet)
|
|
3 >Emitted(21, 16) Source(24, 16) + SourceIndex(0) name (Greeter.greet)
|
|
4 >Emitted(21, 22) Source(24, 22) + SourceIndex(0) name (Greeter.greet)
|
|
5 >Emitted(21, 25) Source(24, 25) + SourceIndex(0) name (Greeter.greet)
|
|
6 >Emitted(21, 29) Source(24, 29) + SourceIndex(0) name (Greeter.greet)
|
|
7 >Emitted(21, 30) Source(24, 30) + SourceIndex(0) name (Greeter.greet)
|
|
8 >Emitted(21, 38) Source(24, 38) + SourceIndex(0) name (Greeter.greet)
|
|
9 >Emitted(21, 41) Source(24, 41) + SourceIndex(0) name (Greeter.greet)
|
|
10>Emitted(21, 48) Source(24, 48) + SourceIndex(0) name (Greeter.greet)
|
|
11>Emitted(21, 49) Source(24, 49) + SourceIndex(0) name (Greeter.greet)
|
|
---
|
|
>>> };
|
|
1 >^^^^
|
|
2 > ^
|
|
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
|
1 >
|
|
>
|
|
2 > }
|
|
1 >Emitted(22, 5) Source(25, 5) + SourceIndex(0) name (Greeter.greet)
|
|
2 >Emitted(22, 6) Source(25, 6) + SourceIndex(0) name (Greeter.greet)
|
|
---
|
|
>>> 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(23, 5) Source(35, 13) + SourceIndex(0) name (Greeter)
|
|
2 >Emitted(23, 25) Source(35, 15) + SourceIndex(0) name (Greeter)
|
|
3 >Emitted(23, 28) Source(35, 5) + SourceIndex(0) name (Greeter)
|
|
4 >Emitted(23, 38) Source(38, 7) + SourceIndex(0) name (Greeter)
|
|
5 >Emitted(23, 39) Source(38, 16) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>> return this.greeting;
|
|
1 >^^^^^^^^
|
|
2 > ^^^^^^
|
|
3 > ^
|
|
4 > ^^^^
|
|
5 > ^
|
|
6 > ^^^^^^^^
|
|
7 > ^
|
|
1 >) {
|
|
>
|
|
2 > return
|
|
3 >
|
|
4 > this
|
|
5 > .
|
|
6 > greeting
|
|
7 > ;
|
|
1 >Emitted(24, 9) Source(39, 9) + SourceIndex(0) name (Greeter.fn)
|
|
2 >Emitted(24, 15) Source(39, 15) + SourceIndex(0) name (Greeter.fn)
|
|
3 >Emitted(24, 16) Source(39, 16) + SourceIndex(0) name (Greeter.fn)
|
|
4 >Emitted(24, 20) Source(39, 20) + SourceIndex(0) name (Greeter.fn)
|
|
5 >Emitted(24, 21) Source(39, 21) + SourceIndex(0) name (Greeter.fn)
|
|
6 >Emitted(24, 29) Source(39, 29) + SourceIndex(0) name (Greeter.fn)
|
|
7 >Emitted(24, 30) Source(39, 30) + SourceIndex(0) name (Greeter.fn)
|
|
---
|
|
>>> };
|
|
1 >^^^^
|
|
2 > ^
|
|
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
|
1 >
|
|
>
|
|
2 > }
|
|
1 >Emitted(25, 5) Source(40, 5) + SourceIndex(0) name (Greeter.fn)
|
|
2 >Emitted(25, 6) Source(40, 6) + SourceIndex(0) name (Greeter.fn)
|
|
---
|
|
>>> Object.defineProperty(Greeter.prototype, "greetings", {
|
|
1->^^^^
|
|
2 > ^^^^^^^^^^^^^^^^^^^^^^
|
|
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
1->
|
|
>
|
|
>
|
|
2 > @PropertyDecorator1
|
|
> @PropertyDecorator2(80)
|
|
> get
|
|
3 > greetings
|
|
1->Emitted(26, 5) Source(42, 5) + SourceIndex(0) name (Greeter)
|
|
2 >Emitted(26, 27) Source(44, 9) + SourceIndex(0) name (Greeter)
|
|
3 >Emitted(26, 57) Source(44, 18) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>> get: function () {
|
|
1 >^^^^^^^^^^^^^
|
|
2 > ^^^^^^^^^^^^^^^^^^^^^->
|
|
1 >
|
|
1 >Emitted(27, 14) Source(42, 5) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>> return this.greeting;
|
|
1->^^^^^^^^^^^^
|
|
2 > ^^^^^^
|
|
3 > ^
|
|
4 > ^^^^
|
|
5 > ^
|
|
6 > ^^^^^^^^
|
|
7 > ^
|
|
1->@PropertyDecorator1
|
|
> @PropertyDecorator2(80)
|
|
> get greetings() {
|
|
>
|
|
2 > return
|
|
3 >
|
|
4 > this
|
|
5 > .
|
|
6 > greeting
|
|
7 > ;
|
|
1->Emitted(28, 13) Source(45, 9) + SourceIndex(0) name (Greeter.greetings)
|
|
2 >Emitted(28, 19) Source(45, 15) + SourceIndex(0) name (Greeter.greetings)
|
|
3 >Emitted(28, 20) Source(45, 16) + SourceIndex(0) name (Greeter.greetings)
|
|
4 >Emitted(28, 24) Source(45, 20) + SourceIndex(0) name (Greeter.greetings)
|
|
5 >Emitted(28, 25) Source(45, 21) + SourceIndex(0) name (Greeter.greetings)
|
|
6 >Emitted(28, 33) Source(45, 29) + SourceIndex(0) name (Greeter.greetings)
|
|
7 >Emitted(28, 34) Source(45, 30) + SourceIndex(0) name (Greeter.greetings)
|
|
---
|
|
>>> },
|
|
1 >^^^^^^^^
|
|
2 > ^
|
|
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
|
1 >
|
|
>
|
|
2 > }
|
|
1 >Emitted(29, 9) Source(46, 5) + SourceIndex(0) name (Greeter.greetings)
|
|
2 >Emitted(29, 10) Source(46, 6) + SourceIndex(0) name (Greeter.greetings)
|
|
---
|
|
>>> set: function (greetings) {
|
|
1->^^^^^^^^^^^^^
|
|
2 > ^^^^^^^^^^
|
|
3 > ^^^^^^^^^
|
|
4 > ^^^^^^^->
|
|
1->
|
|
>
|
|
>
|
|
2 > set greetings(
|
|
> @ParameterDecorator1
|
|
> @ParameterDecorator2(90)
|
|
>
|
|
3 > greetings: string
|
|
1->Emitted(30, 14) Source(48, 5) + SourceIndex(0) name (Greeter)
|
|
2 >Emitted(30, 24) Source(51, 7) + SourceIndex(0) name (Greeter)
|
|
3 >Emitted(30, 33) Source(51, 24) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>> this.greeting = greetings;
|
|
1->^^^^^^^^^^^^
|
|
2 > ^^^^
|
|
3 > ^
|
|
4 > ^^^^^^^^
|
|
5 > ^^^
|
|
6 > ^^^^^^^^^
|
|
7 > ^
|
|
1->) {
|
|
>
|
|
2 > this
|
|
3 > .
|
|
4 > greeting
|
|
5 > =
|
|
6 > greetings
|
|
7 > ;
|
|
1->Emitted(31, 13) Source(52, 9) + SourceIndex(0) name (Greeter.greetings)
|
|
2 >Emitted(31, 17) Source(52, 13) + SourceIndex(0) name (Greeter.greetings)
|
|
3 >Emitted(31, 18) Source(52, 14) + SourceIndex(0) name (Greeter.greetings)
|
|
4 >Emitted(31, 26) Source(52, 22) + SourceIndex(0) name (Greeter.greetings)
|
|
5 >Emitted(31, 29) Source(52, 25) + SourceIndex(0) name (Greeter.greetings)
|
|
6 >Emitted(31, 38) Source(52, 34) + SourceIndex(0) name (Greeter.greetings)
|
|
7 >Emitted(31, 39) Source(52, 35) + SourceIndex(0) name (Greeter.greetings)
|
|
---
|
|
>>> },
|
|
1 >^^^^^^^^
|
|
2 > ^
|
|
3 > ^^^^^^^^^^^^^^^^^->
|
|
1 >
|
|
>
|
|
2 > }
|
|
1 >Emitted(32, 9) Source(53, 5) + SourceIndex(0) name (Greeter.greetings)
|
|
2 >Emitted(32, 10) Source(53, 6) + SourceIndex(0) name (Greeter.greetings)
|
|
---
|
|
>>> enumerable: true,
|
|
>>> configurable: true
|
|
>>> });
|
|
1->^^^^^^^
|
|
2 > ^^^^^^^^^^^^^^->
|
|
1->
|
|
1->Emitted(35, 8) Source(46, 6) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>> Greeter.x1 = 10;
|
|
1->^^^^
|
|
2 > ^^^^^^^^^^
|
|
3 > ^^^
|
|
4 > ^^
|
|
5 > ^
|
|
6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
|
1->
|
|
2 > x1
|
|
3 > : number =
|
|
4 > 10
|
|
5 > ;
|
|
1->Emitted(36, 5) Source(33, 20) + SourceIndex(0) name (Greeter)
|
|
2 >Emitted(36, 15) Source(33, 22) + SourceIndex(0) name (Greeter)
|
|
3 >Emitted(36, 18) Source(33, 33) + SourceIndex(0) name (Greeter)
|
|
4 >Emitted(36, 20) Source(33, 35) + SourceIndex(0) name (Greeter)
|
|
5 >Emitted(36, 21) Source(33, 36) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>> Object.defineProperty(Greeter.prototype, "greet",
|
|
1->^^^^
|
|
2 > ^^^^^^^^^^^^^^^^^^^^^^
|
|
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
1->
|
|
2 > @PropertyDecorator1
|
|
> @PropertyDecorator2(40)
|
|
>
|
|
3 > greet
|
|
1->Emitted(37, 5) Source(21, 5) + SourceIndex(0) name (Greeter)
|
|
2 >Emitted(37, 27) Source(23, 5) + SourceIndex(0) name (Greeter)
|
|
3 >Emitted(37, 53) Source(23, 10) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>> __decorate([
|
|
>>> PropertyDecorator1,
|
|
1 >^^^^^^^^^^^^
|
|
2 > ^^^^^^^^^^^^^^^^^^
|
|
3 > ^^^^^->
|
|
1 >
|
|
2 > PropertyDecorator1
|
|
1 >Emitted(39, 13) Source(21, 6) + SourceIndex(0) name (Greeter)
|
|
2 >Emitted(39, 31) Source(21, 24) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>> PropertyDecorator2(40)
|
|
1->^^^^^^^^^^^^
|
|
2 > ^^^^^^^^^^^^^^^^^^
|
|
3 > ^
|
|
4 > ^^
|
|
5 > ^
|
|
6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
|
1->
|
|
> @
|
|
2 > PropertyDecorator2
|
|
3 > (
|
|
4 > 40
|
|
5 > )
|
|
1->Emitted(40, 13) Source(22, 6) + SourceIndex(0) name (Greeter)
|
|
2 >Emitted(40, 31) Source(22, 24) + SourceIndex(0) name (Greeter)
|
|
3 >Emitted(40, 32) Source(22, 25) + SourceIndex(0) name (Greeter)
|
|
4 >Emitted(40, 34) Source(22, 27) + SourceIndex(0) name (Greeter)
|
|
5 >Emitted(40, 35) Source(22, 28) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>> ], Greeter.prototype, "greet", Object.getOwnPropertyDescriptor(Greeter.prototype, "greet")));
|
|
1->^^^^^^^^^^^
|
|
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
5 > ^^^^
|
|
1->
|
|
>
|
|
2 > greet
|
|
3 >
|
|
4 > greet
|
|
5 > () {
|
|
> return "<h1>" + this.greeting + "</h1>";
|
|
> }
|
|
1->Emitted(41, 12) Source(23, 5) + SourceIndex(0) name (Greeter)
|
|
2 >Emitted(41, 38) Source(23, 10) + SourceIndex(0) name (Greeter)
|
|
3 >Emitted(41, 72) Source(23, 5) + SourceIndex(0) name (Greeter)
|
|
4 >Emitted(41, 98) Source(23, 10) + SourceIndex(0) name (Greeter)
|
|
5 >Emitted(41, 102) Source(25, 6) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>> __decorate([
|
|
1 >^^^^
|
|
2 > ^^^^^^^^^^^^^^^^^^^^^^^^->
|
|
1 >
|
|
>
|
|
>
|
|
1 >Emitted(42, 5) Source(27, 5) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>> PropertyDecorator1,
|
|
1->^^^^^^^^
|
|
2 > ^^^^^^^^^^^^^^^^^^
|
|
3 > ^^^^^->
|
|
1->@
|
|
2 > PropertyDecorator1
|
|
1->Emitted(43, 9) Source(27, 6) + SourceIndex(0) name (Greeter)
|
|
2 >Emitted(43, 27) Source(27, 24) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>> PropertyDecorator2(50)
|
|
1->^^^^^^^^
|
|
2 > ^^^^^^^^^^^^^^^^^^
|
|
3 > ^
|
|
4 > ^^
|
|
5 > ^
|
|
6 > ^^->
|
|
1->
|
|
> @
|
|
2 > PropertyDecorator2
|
|
3 > (
|
|
4 > 50
|
|
5 > )
|
|
1->Emitted(44, 9) Source(28, 6) + SourceIndex(0) name (Greeter)
|
|
2 >Emitted(44, 27) Source(28, 24) + SourceIndex(0) name (Greeter)
|
|
3 >Emitted(44, 28) Source(28, 25) + SourceIndex(0) name (Greeter)
|
|
4 >Emitted(44, 30) Source(28, 27) + SourceIndex(0) name (Greeter)
|
|
5 >Emitted(44, 31) Source(28, 28) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>> ], Greeter.prototype, "x");
|
|
1->^^^^^^^
|
|
2 > ^^^^^^^^^^^^^^^^^^^^^^
|
|
3 > ^^
|
|
4 > ^^^^^^^^^^^^^^^^^^^^->
|
|
1->
|
|
> private
|
|
2 > x
|
|
3 > : string;
|
|
1->Emitted(45, 8) Source(29, 13) + SourceIndex(0) name (Greeter)
|
|
2 >Emitted(45, 30) Source(29, 14) + SourceIndex(0) name (Greeter)
|
|
3 >Emitted(45, 32) Source(29, 23) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>> Object.defineProperty(Greeter.prototype, "fn",
|
|
1->^^^^
|
|
2 > ^^^^^^^^^^^^^^^^^^^^^^
|
|
3 > ^^^^^^^^^^^^^^^^^^^^^^^
|
|
1->
|
|
>
|
|
> @PropertyDecorator1
|
|
> @PropertyDecorator2(60)
|
|
> private static x1: number = 10;
|
|
>
|
|
>
|
|
2 > private
|
|
3 > fn
|
|
1->Emitted(46, 5) Source(35, 5) + SourceIndex(0) name (Greeter)
|
|
2 >Emitted(46, 27) Source(35, 13) + SourceIndex(0) name (Greeter)
|
|
3 >Emitted(46, 50) Source(35, 15) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>> __decorate([
|
|
>>> __param(0, ParameterDecorator1),
|
|
1 >^^^^^^^^^^^^
|
|
2 > ^^^^^^^^^^^
|
|
3 > ^^^^^^^^^^^^^^^^^^^
|
|
4 > ^
|
|
5 > ^^^^^->
|
|
1 >(
|
|
>
|
|
2 > @
|
|
3 > ParameterDecorator1
|
|
4 >
|
|
1 >Emitted(48, 13) Source(36, 7) + SourceIndex(0) name (Greeter)
|
|
2 >Emitted(48, 24) Source(36, 8) + SourceIndex(0) name (Greeter)
|
|
3 >Emitted(48, 43) Source(36, 27) + SourceIndex(0) name (Greeter)
|
|
4 >Emitted(48, 44) Source(36, 27) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>> __param(0, ParameterDecorator2(70))
|
|
1->^^^^^^^^^^^^
|
|
2 > ^^^^^^^^^^^
|
|
3 > ^^^^^^^^^^^^^^^^^^^
|
|
4 > ^
|
|
5 > ^^
|
|
6 > ^
|
|
7 > ^
|
|
8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
|
1->
|
|
>
|
|
2 > @
|
|
3 > ParameterDecorator2
|
|
4 > (
|
|
5 > 70
|
|
6 > )
|
|
7 >
|
|
1->Emitted(49, 13) Source(37, 7) + SourceIndex(0) name (Greeter)
|
|
2 >Emitted(49, 24) Source(37, 8) + SourceIndex(0) name (Greeter)
|
|
3 >Emitted(49, 43) Source(37, 27) + SourceIndex(0) name (Greeter)
|
|
4 >Emitted(49, 44) Source(37, 28) + SourceIndex(0) name (Greeter)
|
|
5 >Emitted(49, 46) Source(37, 30) + SourceIndex(0) name (Greeter)
|
|
6 >Emitted(49, 47) Source(37, 31) + SourceIndex(0) name (Greeter)
|
|
7 >Emitted(49, 48) Source(37, 31) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>> ], Greeter.prototype, "fn", Object.getOwnPropertyDescriptor(Greeter.prototype, "fn")));
|
|
1->^^^^^^^^^^^
|
|
2 > ^^^^^^^^^^^^^^^^^^^^^^^
|
|
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
4 > ^^^^^^^^^^^^^^^^^^^^^^^
|
|
5 > ^^^^
|
|
1->
|
|
2 > fn
|
|
3 >
|
|
4 > fn
|
|
5 > (
|
|
> @ParameterDecorator1
|
|
> @ParameterDecorator2(70)
|
|
> x: number) {
|
|
> return this.greeting;
|
|
> }
|
|
1->Emitted(50, 12) Source(35, 13) + SourceIndex(0) name (Greeter)
|
|
2 >Emitted(50, 35) Source(35, 15) + SourceIndex(0) name (Greeter)
|
|
3 >Emitted(50, 69) Source(35, 13) + SourceIndex(0) name (Greeter)
|
|
4 >Emitted(50, 92) Source(35, 15) + SourceIndex(0) name (Greeter)
|
|
5 >Emitted(50, 96) Source(40, 6) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>> Object.defineProperty(Greeter.prototype, "greetings",
|
|
1 >^^^^
|
|
2 > ^^^^^^^^^^^^^^^^^^^^^^
|
|
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
1 >
|
|
>
|
|
>
|
|
2 > @PropertyDecorator1
|
|
> @PropertyDecorator2(80)
|
|
> get
|
|
3 > greetings
|
|
1 >Emitted(51, 5) Source(42, 5) + SourceIndex(0) name (Greeter)
|
|
2 >Emitted(51, 27) Source(44, 9) + SourceIndex(0) name (Greeter)
|
|
3 >Emitted(51, 57) Source(44, 18) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>> __decorate([
|
|
>>> PropertyDecorator1,
|
|
1 >^^^^^^^^^^^^
|
|
2 > ^^^^^^^^^^^^^^^^^^
|
|
3 > ^^^^^^->
|
|
1 >
|
|
2 > PropertyDecorator1
|
|
1 >Emitted(53, 13) Source(42, 6) + SourceIndex(0) name (Greeter)
|
|
2 >Emitted(53, 31) Source(42, 24) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>> PropertyDecorator2(80),
|
|
1->^^^^^^^^^^^^
|
|
2 > ^^^^^^^^^^^^^^^^^^
|
|
3 > ^
|
|
4 > ^^
|
|
5 > ^
|
|
6 > ^^^^^^^^^^^->
|
|
1->
|
|
> @
|
|
2 > PropertyDecorator2
|
|
3 > (
|
|
4 > 80
|
|
5 > )
|
|
1->Emitted(54, 13) Source(43, 6) + SourceIndex(0) name (Greeter)
|
|
2 >Emitted(54, 31) Source(43, 24) + SourceIndex(0) name (Greeter)
|
|
3 >Emitted(54, 32) Source(43, 25) + SourceIndex(0) name (Greeter)
|
|
4 >Emitted(54, 34) Source(43, 27) + SourceIndex(0) name (Greeter)
|
|
5 >Emitted(54, 35) Source(43, 28) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>> __param(0, ParameterDecorator1),
|
|
1->^^^^^^^^^^^^
|
|
2 > ^^^^^^^^^^^
|
|
3 > ^^^^^^^^^^^^^^^^^^^
|
|
4 > ^
|
|
5 > ^^^^^->
|
|
1->
|
|
> get greetings() {
|
|
> return this.greeting;
|
|
> }
|
|
>
|
|
> set greetings(
|
|
>
|
|
2 > @
|
|
3 > ParameterDecorator1
|
|
4 >
|
|
1->Emitted(55, 13) Source(49, 7) + SourceIndex(0) name (Greeter)
|
|
2 >Emitted(55, 24) Source(49, 8) + SourceIndex(0) name (Greeter)
|
|
3 >Emitted(55, 43) Source(49, 27) + SourceIndex(0) name (Greeter)
|
|
4 >Emitted(55, 44) Source(49, 27) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>> __param(0, ParameterDecorator2(90))
|
|
1->^^^^^^^^^^^^
|
|
2 > ^^^^^^^^^^^
|
|
3 > ^^^^^^^^^^^^^^^^^^^
|
|
4 > ^
|
|
5 > ^^
|
|
6 > ^
|
|
7 > ^
|
|
8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
|
1->
|
|
>
|
|
2 > @
|
|
3 > ParameterDecorator2
|
|
4 > (
|
|
5 > 90
|
|
6 > )
|
|
7 >
|
|
1->Emitted(56, 13) Source(50, 7) + SourceIndex(0) name (Greeter)
|
|
2 >Emitted(56, 24) Source(50, 8) + SourceIndex(0) name (Greeter)
|
|
3 >Emitted(56, 43) Source(50, 27) + SourceIndex(0) name (Greeter)
|
|
4 >Emitted(56, 44) Source(50, 28) + SourceIndex(0) name (Greeter)
|
|
5 >Emitted(56, 46) Source(50, 30) + SourceIndex(0) name (Greeter)
|
|
6 >Emitted(56, 47) Source(50, 31) + SourceIndex(0) name (Greeter)
|
|
7 >Emitted(56, 48) Source(50, 31) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>> ], Greeter.prototype, "greetings", Object.getOwnPropertyDescriptor(Greeter.prototype, "greetings")));
|
|
1->^^^^^^^^^^^
|
|
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
5 > ^^^^
|
|
1->
|
|
2 > greetings
|
|
3 >
|
|
4 > greetings
|
|
5 > () {
|
|
> return this.greeting;
|
|
> }
|
|
1->Emitted(57, 12) Source(44, 9) + SourceIndex(0) name (Greeter)
|
|
2 >Emitted(57, 42) Source(44, 18) + SourceIndex(0) name (Greeter)
|
|
3 >Emitted(57, 76) Source(44, 9) + SourceIndex(0) name (Greeter)
|
|
4 >Emitted(57, 106) Source(44, 18) + SourceIndex(0) name (Greeter)
|
|
5 >Emitted(57, 110) Source(46, 6) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>> __decorate([
|
|
1 >^^^^
|
|
2 > ^^^^^^^^^^^^^^^^^^^^^^^^->
|
|
1 >
|
|
1 >Emitted(58, 5) Source(31, 5) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>> PropertyDecorator1,
|
|
1->^^^^^^^^
|
|
2 > ^^^^^^^^^^^^^^^^^^
|
|
3 > ^^^^^->
|
|
1->@
|
|
2 > PropertyDecorator1
|
|
1->Emitted(59, 9) Source(31, 6) + SourceIndex(0) name (Greeter)
|
|
2 >Emitted(59, 27) Source(31, 24) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>> PropertyDecorator2(60)
|
|
1->^^^^^^^^
|
|
2 > ^^^^^^^^^^^^^^^^^^
|
|
3 > ^
|
|
4 > ^^
|
|
5 > ^
|
|
1->
|
|
> @
|
|
2 > PropertyDecorator2
|
|
3 > (
|
|
4 > 60
|
|
5 > )
|
|
1->Emitted(60, 9) Source(32, 6) + SourceIndex(0) name (Greeter)
|
|
2 >Emitted(60, 27) Source(32, 24) + SourceIndex(0) name (Greeter)
|
|
3 >Emitted(60, 28) Source(32, 25) + SourceIndex(0) name (Greeter)
|
|
4 >Emitted(60, 30) Source(32, 27) + SourceIndex(0) name (Greeter)
|
|
5 >Emitted(60, 31) Source(32, 28) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>> ], Greeter, "x1");
|
|
1 >^^^^^^^
|
|
2 > ^^^^^^^^^^^^^
|
|
3 > ^^
|
|
4 > ^^^^^->
|
|
1 >
|
|
> private static
|
|
2 > x1
|
|
3 > : number = 10;
|
|
1 >Emitted(61, 8) Source(33, 20) + SourceIndex(0) name (Greeter)
|
|
2 >Emitted(61, 21) Source(33, 22) + SourceIndex(0) name (Greeter)
|
|
3 >Emitted(61, 23) Source(33, 36) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>> Greeter = __decorate([
|
|
1->^^^^
|
|
2 > ^^^^^^^^^^^^^^^^^^^^^->
|
|
1->
|
|
1->Emitted(62, 5) Source(8, 1) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>> ClassDecorator1,
|
|
1->^^^^^^^^
|
|
2 > ^^^^^^^^^^^^^^^
|
|
3 > ^^^^^^->
|
|
1->@
|
|
2 > ClassDecorator1
|
|
1->Emitted(63, 9) Source(8, 2) + SourceIndex(0) name (Greeter)
|
|
2 >Emitted(63, 24) Source(8, 17) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>> ClassDecorator2(10),
|
|
1->^^^^^^^^
|
|
2 > ^^^^^^^^^^^^^^^
|
|
3 > ^
|
|
4 > ^^
|
|
5 > ^
|
|
6 > ^^^^^^^^^^^^^^->
|
|
1->
|
|
>@
|
|
2 > ClassDecorator2
|
|
3 > (
|
|
4 > 10
|
|
5 > )
|
|
1->Emitted(64, 9) Source(9, 2) + SourceIndex(0) name (Greeter)
|
|
2 >Emitted(64, 24) Source(9, 17) + SourceIndex(0) name (Greeter)
|
|
3 >Emitted(64, 25) Source(9, 18) + SourceIndex(0) name (Greeter)
|
|
4 >Emitted(64, 27) Source(9, 20) + SourceIndex(0) name (Greeter)
|
|
5 >Emitted(64, 28) Source(9, 21) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>> __param(0, ParameterDecorator1),
|
|
1->^^^^^^^^
|
|
2 > ^^^^^^^^^^^
|
|
3 > ^^^^^^^^^^^^^^^^^^^
|
|
4 > ^
|
|
5 > ^^^^^^->
|
|
1->
|
|
>class Greeter {
|
|
> constructor(
|
|
>
|
|
2 > @
|
|
3 > ParameterDecorator1
|
|
4 >
|
|
1->Emitted(65, 9) Source(12, 7) + SourceIndex(0) name (Greeter)
|
|
2 >Emitted(65, 20) Source(12, 8) + SourceIndex(0) name (Greeter)
|
|
3 >Emitted(65, 39) Source(12, 27) + SourceIndex(0) name (Greeter)
|
|
4 >Emitted(65, 40) Source(12, 27) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>> __param(0, ParameterDecorator2(20)),
|
|
1->^^^^^^^^
|
|
2 > ^^^^^^^^^^^
|
|
3 > ^^^^^^^^^^^^^^^^^^^
|
|
4 > ^
|
|
5 > ^^
|
|
6 > ^
|
|
7 > ^
|
|
1->
|
|
>
|
|
2 > @
|
|
3 > ParameterDecorator2
|
|
4 > (
|
|
5 > 20
|
|
6 > )
|
|
7 >
|
|
1->Emitted(66, 9) Source(13, 7) + SourceIndex(0) name (Greeter)
|
|
2 >Emitted(66, 20) Source(13, 8) + SourceIndex(0) name (Greeter)
|
|
3 >Emitted(66, 39) Source(13, 27) + SourceIndex(0) name (Greeter)
|
|
4 >Emitted(66, 40) Source(13, 28) + SourceIndex(0) name (Greeter)
|
|
5 >Emitted(66, 42) Source(13, 30) + SourceIndex(0) name (Greeter)
|
|
6 >Emitted(66, 43) Source(13, 31) + SourceIndex(0) name (Greeter)
|
|
7 >Emitted(66, 44) Source(13, 31) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>> __param(1, ParameterDecorator1),
|
|
1 >^^^^^^^^
|
|
2 > ^^^^^^^^^^^
|
|
3 > ^^^^^^^^^^^^^^^^^^^
|
|
4 > ^
|
|
5 > ^^^^^->
|
|
1 >
|
|
> public greeting: string,
|
|
>
|
|
>
|
|
2 > @
|
|
3 > ParameterDecorator1
|
|
4 >
|
|
1 >Emitted(67, 9) Source(16, 7) + SourceIndex(0) name (Greeter)
|
|
2 >Emitted(67, 20) Source(16, 8) + SourceIndex(0) name (Greeter)
|
|
3 >Emitted(67, 39) Source(16, 27) + SourceIndex(0) name (Greeter)
|
|
4 >Emitted(67, 40) Source(16, 27) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>> __param(1, ParameterDecorator2(30))
|
|
1->^^^^^^^^
|
|
2 > ^^^^^^^^^^^
|
|
3 > ^^^^^^^^^^^^^^^^^^^
|
|
4 > ^
|
|
5 > ^^
|
|
6 > ^
|
|
7 > ^
|
|
1->
|
|
>
|
|
2 > @
|
|
3 > ParameterDecorator2
|
|
4 > (
|
|
5 > 30
|
|
6 > )
|
|
7 >
|
|
1->Emitted(68, 9) Source(17, 7) + SourceIndex(0) name (Greeter)
|
|
2 >Emitted(68, 20) Source(17, 8) + SourceIndex(0) name (Greeter)
|
|
3 >Emitted(68, 39) Source(17, 27) + SourceIndex(0) name (Greeter)
|
|
4 >Emitted(68, 40) Source(17, 28) + SourceIndex(0) name (Greeter)
|
|
5 >Emitted(68, 42) Source(17, 30) + SourceIndex(0) name (Greeter)
|
|
6 >Emitted(68, 43) Source(17, 31) + SourceIndex(0) name (Greeter)
|
|
7 >Emitted(68, 44) Source(17, 31) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>> ], Greeter);
|
|
1 >^^^^^^^^^^^^^^^^
|
|
2 > ^^^^->
|
|
1 >
|
|
> ...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(69, 17) Source(54, 2) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>> return Greeter;
|
|
1->^^^^
|
|
2 > ^^^^^^^^^^^^^^
|
|
1->
|
|
2 > }
|
|
1->Emitted(70, 5) Source(54, 1) + SourceIndex(0) name (Greeter)
|
|
2 >Emitted(70, 19) Source(54, 2) + SourceIndex(0) name (Greeter)
|
|
---
|
|
>>>})();
|
|
1 >
|
|
2 >^
|
|
3 >
|
|
4 > ^^^^
|
|
5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
|
1 >
|
|
2 >}
|
|
3 >
|
|
4 > @ClassDecorator1
|
|
> @ClassDecorator2(10)
|
|
> 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(71, 1) Source(54, 1) + SourceIndex(0) name (Greeter)
|
|
2 >Emitted(71, 2) Source(54, 2) + SourceIndex(0) name (Greeter)
|
|
3 >Emitted(71, 2) Source(8, 1) + SourceIndex(0)
|
|
4 >Emitted(71, 6) Source(54, 2) + SourceIndex(0)
|
|
---
|
|
>>>//# sourceMappingURL=sourceMapValidationDecorators.js.map |