2014-07-13 01:04:16 +02:00
|
|
|
===================================================================
|
|
|
|
JsFile: properties.js
|
|
|
|
mapUrl: properties.js.map
|
|
|
|
sourceRoot:
|
|
|
|
sources: properties.ts
|
|
|
|
===================================================================
|
|
|
|
-------------------------------------------------------------------
|
|
|
|
emittedFile:tests/cases/compiler/properties.js
|
|
|
|
sourceFile:properties.ts
|
|
|
|
-------------------------------------------------------------------
|
|
|
|
>>>var MyClass = (function () {
|
|
|
|
1 >
|
|
|
|
2 >^^^^
|
|
|
|
3 > ^^^^^^^
|
|
|
|
4 > ^^^^^^^^^^^^^^->
|
|
|
|
1 >
|
|
|
|
>
|
|
|
|
2 >class
|
|
|
|
3 > MyClass
|
|
|
|
1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0)
|
|
|
|
2 >Emitted(1, 5) Source(2, 7) + SourceIndex(0)
|
|
|
|
3 >Emitted(1, 12) Source(2, 14) + SourceIndex(0)
|
|
|
|
---
|
|
|
|
>>> function MyClass() {
|
|
|
|
1->^^^^
|
|
|
|
2 > ^^^^^^^^^
|
|
|
|
3 > ^^^^^^^
|
|
|
|
1->
|
|
|
|
2 > class
|
|
|
|
3 > MyClass
|
|
|
|
1->Emitted(2, 5) Source(2, 1) + SourceIndex(0) name (MyClass)
|
|
|
|
2 >Emitted(2, 14) Source(2, 7) + SourceIndex(0) name (MyClass)
|
|
|
|
3 >Emitted(2, 21) Source(2, 14) + SourceIndex(0) name (MyClass)
|
|
|
|
---
|
|
|
|
>>> }
|
|
|
|
1 >^^^^
|
|
|
|
2 > ^
|
|
|
|
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
|
|
|
1 >
|
|
|
|
>{
|
|
|
|
> public get Count(): number
|
|
|
|
> {
|
|
|
|
> return 42;
|
|
|
|
> }
|
|
|
|
>
|
|
|
|
> public set Count(value: number)
|
|
|
|
> {
|
|
|
|
> //
|
|
|
|
> }
|
|
|
|
>
|
|
|
|
2 > }
|
|
|
|
1 >Emitted(3, 5) Source(13, 1) + SourceIndex(0) name (MyClass.constructor)
|
|
|
|
2 >Emitted(3, 6) Source(13, 2) + SourceIndex(0) name (MyClass.constructor)
|
|
|
|
---
|
|
|
|
>>> Object.defineProperty(MyClass.prototype, "Count", {
|
|
|
|
1->^^^^
|
|
|
|
2 > ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
1->
|
|
|
|
2 > public get
|
|
|
|
3 > Count
|
|
|
|
1->Emitted(4, 5) Source(4, 5) + SourceIndex(0) name (MyClass)
|
|
|
|
2 >Emitted(4, 27) Source(4, 16) + SourceIndex(0) name (MyClass)
|
|
|
|
3 >Emitted(4, 53) Source(4, 21) + SourceIndex(0) name (MyClass)
|
|
|
|
---
|
|
|
|
>>> get: function () {
|
|
|
|
1 >^^^^^^^^^^^^^
|
|
|
|
2 > ^^^^^^^^^^->
|
|
|
|
1 >
|
|
|
|
1 >Emitted(5, 14) Source(4, 5) + SourceIndex(0) name (MyClass)
|
|
|
|
---
|
|
|
|
>>> return 42;
|
|
|
|
1->^^^^^^^^^^^^
|
|
|
|
2 > ^^^^^^
|
|
|
|
3 > ^
|
|
|
|
4 > ^^
|
|
|
|
5 > ^
|
|
|
|
1->public get Count(): number
|
|
|
|
> {
|
|
|
|
>
|
|
|
|
2 > return
|
|
|
|
3 >
|
|
|
|
4 > 42
|
|
|
|
5 > ;
|
|
|
|
1->Emitted(6, 13) Source(6, 9) + SourceIndex(0) name (MyClass.Count)
|
|
|
|
2 >Emitted(6, 19) Source(6, 15) + SourceIndex(0) name (MyClass.Count)
|
|
|
|
3 >Emitted(6, 20) Source(6, 16) + SourceIndex(0) name (MyClass.Count)
|
|
|
|
4 >Emitted(6, 22) Source(6, 18) + SourceIndex(0) name (MyClass.Count)
|
|
|
|
5 >Emitted(6, 23) Source(6, 19) + SourceIndex(0) name (MyClass.Count)
|
|
|
|
---
|
|
|
|
>>> },
|
|
|
|
1 >^^^^^^^^
|
|
|
|
2 > ^
|
|
|
|
3 > ^^^^^^^^^^^^^^^^^^^^^^^->
|
|
|
|
1 >
|
|
|
|
>
|
|
|
|
2 > }
|
|
|
|
1 >Emitted(7, 9) Source(7, 5) + SourceIndex(0) name (MyClass.Count)
|
|
|
|
2 >Emitted(7, 10) Source(7, 6) + SourceIndex(0) name (MyClass.Count)
|
|
|
|
---
|
|
|
|
>>> set: function (value) {
|
|
|
|
1->^^^^^^^^^^^^^
|
|
|
|
2 > ^^^^^^^^^^
|
|
|
|
3 > ^^^^^
|
|
|
|
1->
|
|
|
|
>
|
|
|
|
>
|
|
|
|
2 > public set Count(
|
|
|
|
3 > value: number
|
|
|
|
1->Emitted(8, 14) Source(9, 5) + SourceIndex(0) name (MyClass)
|
|
|
|
2 >Emitted(8, 24) Source(9, 22) + SourceIndex(0) name (MyClass)
|
|
|
|
3 >Emitted(8, 29) Source(9, 35) + SourceIndex(0) name (MyClass)
|
|
|
|
---
|
2014-08-22 02:17:02 +02:00
|
|
|
>>> //
|
|
|
|
1 >^^^^^^^^^^^^
|
|
|
|
2 > ^^
|
|
|
|
1 >)
|
|
|
|
> {
|
|
|
|
>
|
|
|
|
2 > //
|
2015-02-23 02:59:24 +01:00
|
|
|
1 >Emitted(9, 13) Source(11, 9) + SourceIndex(0) name (MyClass)
|
|
|
|
2 >Emitted(9, 15) Source(11, 11) + SourceIndex(0) name (MyClass)
|
2014-08-22 02:17:02 +02:00
|
|
|
---
|
2014-07-13 01:04:16 +02:00
|
|
|
>>> },
|
|
|
|
1 >^^^^^^^^
|
|
|
|
2 > ^
|
|
|
|
3 > ^^^^^^^^^^^^^^^^^->
|
2014-08-22 02:17:02 +02:00
|
|
|
1 >
|
2014-07-13 01:04:16 +02:00
|
|
|
>
|
|
|
|
2 > }
|
2015-02-23 02:59:24 +01:00
|
|
|
1 >Emitted(10, 9) Source(12, 5) + SourceIndex(0) name (MyClass)
|
|
|
|
2 >Emitted(10, 10) Source(12, 6) + SourceIndex(0) name (MyClass)
|
2014-07-13 01:04:16 +02:00
|
|
|
---
|
|
|
|
>>> enumerable: true,
|
|
|
|
>>> configurable: true
|
|
|
|
>>> });
|
|
|
|
1->^^^^^^^
|
|
|
|
2 > ^^^^^^^^^^^^^->
|
|
|
|
1->
|
2014-08-22 02:17:02 +02:00
|
|
|
1->Emitted(13, 8) Source(7, 6) + SourceIndex(0) name (MyClass)
|
2014-07-13 01:04:16 +02:00
|
|
|
---
|
|
|
|
>>> return MyClass;
|
|
|
|
1->^^^^
|
|
|
|
2 > ^^^^^^^^^^^^^^
|
|
|
|
1->
|
|
|
|
>
|
|
|
|
> public set Count(value: number)
|
|
|
|
> {
|
|
|
|
> //
|
|
|
|
> }
|
|
|
|
>
|
|
|
|
2 > }
|
2014-08-22 02:17:02 +02:00
|
|
|
1->Emitted(14, 5) Source(13, 1) + SourceIndex(0) name (MyClass)
|
|
|
|
2 >Emitted(14, 19) Source(13, 2) + SourceIndex(0) name (MyClass)
|
2014-07-13 01:04:16 +02:00
|
|
|
---
|
|
|
|
>>>})();
|
|
|
|
1 >
|
|
|
|
2 >^
|
|
|
|
3 >
|
|
|
|
4 > ^^^^
|
|
|
|
5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
|
|
|
1 >
|
|
|
|
2 >}
|
|
|
|
3 >
|
|
|
|
4 > class MyClass
|
|
|
|
> {
|
|
|
|
> public get Count(): number
|
|
|
|
> {
|
|
|
|
> return 42;
|
|
|
|
> }
|
|
|
|
>
|
|
|
|
> public set Count(value: number)
|
|
|
|
> {
|
|
|
|
> //
|
|
|
|
> }
|
|
|
|
> }
|
2014-08-22 02:17:02 +02:00
|
|
|
1 >Emitted(15, 1) Source(13, 1) + SourceIndex(0) name (MyClass)
|
|
|
|
2 >Emitted(15, 2) Source(13, 2) + SourceIndex(0) name (MyClass)
|
|
|
|
3 >Emitted(15, 2) Source(2, 1) + SourceIndex(0)
|
|
|
|
4 >Emitted(15, 6) Source(13, 2) + SourceIndex(0)
|
2014-07-13 01:04:16 +02:00
|
|
|
---
|
|
|
|
>>>//# sourceMappingURL=properties.js.map
|