Conflicts: src/compiler/checker.ts tests/baselines/reference/contextualTyping.js.map tests/baselines/reference/contextualTyping.sourcemap.txt tests/baselines/reference/out-flag.js.map tests/baselines/reference/properties.js.map tests/baselines/reference/recursiveClassReferenceTest.js.map tests/baselines/reference/sourceMap-FileWithComments.js.map tests/baselines/reference/sourceMap-FileWithComments.sourcemap.txt tests/baselines/reference/typeResolution.js.map
189 lines
No EOL
5 KiB
Text
189 lines
No EOL
5 KiB
Text
===================================================================
|
|
JsFile: out-flag.js
|
|
mapUrl: out-flag.js.map
|
|
sourceRoot:
|
|
sources: out-flag.ts
|
|
===================================================================
|
|
-------------------------------------------------------------------
|
|
emittedFile:tests/cases/compiler/out-flag.js
|
|
sourceFile:out-flag.ts
|
|
-------------------------------------------------------------------
|
|
>>>//// @out: bin\
|
|
1 >
|
|
2 >^^^^^^^^^^^^^^^
|
|
3 > ^^^^^^->
|
|
1 >
|
|
2 >//// @out: bin\
|
|
1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0)
|
|
2 >Emitted(1, 16) Source(1, 16) + SourceIndex(0)
|
|
---
|
|
>>>// my class comments
|
|
1->
|
|
2 >
|
|
3 >^^^^^^^^^^^^^^^^^^^^
|
|
4 > ^^^^^^^^^->
|
|
1->
|
|
>
|
|
>// my class comments
|
|
>
|
|
2 >
|
|
3 >// my class comments
|
|
1->Emitted(2, 1) Source(4, 1) + SourceIndex(0)
|
|
2 >Emitted(2, 1) Source(3, 1) + SourceIndex(0)
|
|
3 >Emitted(2, 21) Source(3, 21) + SourceIndex(0)
|
|
---
|
|
>>>var MyClass = (function () {
|
|
>>> function MyClass() {
|
|
1->^^^^
|
|
2 > ^^->
|
|
1->
|
|
>
|
|
1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (MyClass)
|
|
---
|
|
>>> }
|
|
1->^^^^
|
|
2 > ^
|
|
3 > ^^^^^^^^^^^^^^^^^^^^^^^->
|
|
1->class MyClass
|
|
>{
|
|
> // my function comments
|
|
> public Count(): number
|
|
> {
|
|
> return 42;
|
|
> }
|
|
>
|
|
> public SetCount(value: number)
|
|
> {
|
|
> //
|
|
> }
|
|
>
|
|
2 > }
|
|
1->Emitted(5, 5) Source(16, 1) + SourceIndex(0) name (MyClass.constructor)
|
|
2 >Emitted(5, 6) Source(16, 2) + SourceIndex(0) name (MyClass.constructor)
|
|
---
|
|
>>> // my function comments
|
|
1->^^^^
|
|
2 > ^^^^^^^^^^^^^^^^^^^^^^^
|
|
3 > ^^^^^^^^^^^^^^^^^->
|
|
1->
|
|
2 > // my function comments
|
|
1->Emitted(6, 5) Source(6, 5) + SourceIndex(0) name (MyClass)
|
|
2 >Emitted(6, 28) Source(6, 28) + SourceIndex(0) name (MyClass)
|
|
---
|
|
>>> MyClass.prototype.Count = function () {
|
|
1->^^^^
|
|
2 > ^^^^^^^^^^^^^^^^^^^^^^^
|
|
3 > ^^^
|
|
1->
|
|
> public
|
|
2 > Count
|
|
3 >
|
|
1->Emitted(7, 5) Source(7, 12) + SourceIndex(0) name (MyClass)
|
|
2 >Emitted(7, 28) Source(7, 17) + SourceIndex(0) name (MyClass)
|
|
3 >Emitted(7, 31) Source(7, 5) + SourceIndex(0) name (MyClass)
|
|
---
|
|
>>> return 42;
|
|
1 >^^^^^^^^
|
|
2 > ^^^^^^
|
|
3 > ^
|
|
4 > ^^
|
|
5 > ^
|
|
1 >public Count(): number
|
|
> {
|
|
>
|
|
2 > return
|
|
3 >
|
|
4 > 42
|
|
5 > ;
|
|
1 >Emitted(8, 9) Source(9, 9) + SourceIndex(0) name (MyClass.Count)
|
|
2 >Emitted(8, 15) Source(9, 15) + SourceIndex(0) name (MyClass.Count)
|
|
3 >Emitted(8, 16) Source(9, 16) + SourceIndex(0) name (MyClass.Count)
|
|
4 >Emitted(8, 18) Source(9, 18) + SourceIndex(0) name (MyClass.Count)
|
|
5 >Emitted(8, 19) Source(9, 19) + SourceIndex(0) name (MyClass.Count)
|
|
---
|
|
>>> };
|
|
1 >^^^^
|
|
2 > ^
|
|
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
|
1 >
|
|
>
|
|
2 > }
|
|
1 >Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (MyClass.Count)
|
|
2 >Emitted(9, 6) Source(10, 6) + SourceIndex(0) name (MyClass.Count)
|
|
---
|
|
>>> MyClass.prototype.SetCount = function (value) {
|
|
1->^^^^
|
|
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
3 > ^^^
|
|
4 > ^^^^^^^^^^
|
|
5 > ^^^^^
|
|
1->
|
|
>
|
|
> public
|
|
2 > SetCount
|
|
3 >
|
|
4 > public SetCount(
|
|
5 > value: number
|
|
1->Emitted(10, 5) Source(12, 12) + SourceIndex(0) name (MyClass)
|
|
2 >Emitted(10, 31) Source(12, 20) + SourceIndex(0) name (MyClass)
|
|
3 >Emitted(10, 34) Source(12, 5) + SourceIndex(0) name (MyClass)
|
|
4 >Emitted(10, 44) Source(12, 21) + SourceIndex(0) name (MyClass)
|
|
5 >Emitted(10, 49) Source(12, 34) + SourceIndex(0) name (MyClass)
|
|
---
|
|
>>> //
|
|
1 >^^^^^^^^
|
|
2 > ^^
|
|
1 >)
|
|
> {
|
|
>
|
|
2 > //
|
|
1 >Emitted(11, 9) Source(14, 9) + SourceIndex(0) name (MyClass.SetCount)
|
|
2 >Emitted(11, 11) Source(14, 11) + SourceIndex(0) name (MyClass.SetCount)
|
|
---
|
|
>>> };
|
|
1 >^^^^
|
|
2 > ^
|
|
3 > ^^^^^^^^^^^^^^^->
|
|
1 >
|
|
>
|
|
2 > }
|
|
1 >Emitted(12, 5) Source(15, 5) + SourceIndex(0) name (MyClass.SetCount)
|
|
2 >Emitted(12, 6) Source(15, 6) + SourceIndex(0) name (MyClass.SetCount)
|
|
---
|
|
>>> return MyClass;
|
|
1->^^^^
|
|
2 > ^^^^^^^^^^^^^^
|
|
1->
|
|
>
|
|
2 > }
|
|
1->Emitted(13, 5) Source(16, 1) + SourceIndex(0) name (MyClass)
|
|
2 >Emitted(13, 19) Source(16, 2) + SourceIndex(0) name (MyClass)
|
|
---
|
|
>>>})();
|
|
1 >
|
|
2 >^
|
|
3 >
|
|
4 > ^^^^
|
|
5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
|
1 >
|
|
2 >}
|
|
3 >
|
|
4 > class MyClass
|
|
> {
|
|
> // my function comments
|
|
> public Count(): number
|
|
> {
|
|
> return 42;
|
|
> }
|
|
>
|
|
> public SetCount(value: number)
|
|
> {
|
|
> //
|
|
> }
|
|
> }
|
|
1 >Emitted(14, 1) Source(16, 1) + SourceIndex(0) name (MyClass)
|
|
2 >Emitted(14, 2) Source(16, 2) + SourceIndex(0) name (MyClass)
|
|
3 >Emitted(14, 2) Source(4, 1) + SourceIndex(0)
|
|
4 >Emitted(14, 6) Source(16, 2) + SourceIndex(0)
|
|
---
|
|
>>>//# sourceMappingURL=out-flag.js.map |