Merge remote-tracking branch 'origin/master' into javaScriptModules

# Conflicts:
#	src/compiler/parser.ts
This commit is contained in:
Ryan Cavanaugh
2015-11-09 14:48:37 -08:00
1018 changed files with 13255 additions and 24717 deletions
@@ -4,6 +4,7 @@ tests/cases/compiler/fuzzy.ts(21,20): error TS2322: Type '{ anything: number; on
Types of property 'oneI' are incompatible.
Type 'this' is not assignable to type 'I'.
Type 'C' is not assignable to type 'I'.
Property 'alsoWorks' is missing in type 'C'.
tests/cases/compiler/fuzzy.ts(25,20): error TS2352: Neither type '{ oneI: this; }' nor type 'R' is assignable to the other.
Property 'anything' is missing in type '{ oneI: this; }'.
@@ -38,6 +39,7 @@ tests/cases/compiler/fuzzy.ts(25,20): error TS2352: Neither type '{ oneI: this;
!!! error TS2322: Types of property 'oneI' are incompatible.
!!! error TS2322: Type 'this' is not assignable to type 'I'.
!!! error TS2322: Type 'C' is not assignable to type 'I'.
!!! error TS2322: Property 'alsoWorks' is missing in type 'C'.
}
worksToo():R {
@@ -1,6 +1,6 @@
EmitSkipped: false
FileName : declSingleFile.js.map
{"version":3,"file":"declSingleFile.js","sourceRoot":"","sources":["../tests/cases/fourslash/inputFile.ts"],"names":["M","M.constructor"],"mappings":"AAAA,IAAI,CAAC,GAAG,GAAG,CAAC;AACZ,IAAI,GAAG,GAAG,aAAa,CAAC;AACxB;IAAAA;IAGAC,CAACA;IAADD,QAACA;AAADA,CAACA,AAHD,IAGC"}FileName : declSingleFile.js
{"version":3,"file":"declSingleFile.js","sourceRoot":"","sources":["../inputFile.ts"],"names":["M","M.constructor"],"mappings":"AAAA,IAAI,CAAC,GAAG,GAAG,CAAC;AACZ,IAAI,GAAG,GAAG,aAAa,CAAC;AACxB;IAAAA;IAGAC,CAACA;IAADD,QAACA;AAADA,CAACA,AAHD,IAGC"}FileName : declSingleFile.js
var x = 109;
var foo = "hello world";
var M = (function () {
@@ -8,4 +8,4 @@ var M = (function () {
}
return M;
})();
//# sourceMappingURL=mapRootDir/declSingleFile.js.map
//# sourceMappingURL=tests/cases/fourslash/mapRootDir/declSingleFile.js.map
@@ -6,7 +6,5 @@ export var x;
//// [file2.ts]
var y;
//// [file1.js]
export var x;
//// [all.js]
var y;
@@ -63,7 +63,7 @@ if (elementA instanceof FileMatch && elementB instanceof FileMatch) {
} else if (elementA instanceof Match && elementB instanceof Match) {
>elementA instanceof Match && elementB instanceof Match : boolean
>elementA instanceof Match : boolean
>elementA : FileMatch | Match
>elementA : Match | FileMatch
>Match : typeof Match
>elementB instanceof Match : boolean
>elementB : FileMatch | Match
@@ -0,0 +1,10 @@
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== tests/cases/compiler/a.ts (0 errors) ====
class A { }
==== tests/cases/compiler/b.ts (0 errors) ====
class B { }
@@ -1,9 +0,0 @@
=== tests/cases/compiler/a.ts ===
class A { }
>A : Symbol(A, Decl(a.ts, 0, 0))
=== tests/cases/compiler/b.ts ===
class B { }
>B : Symbol(B, Decl(b.ts, 0, 0))
@@ -1,9 +0,0 @@
=== tests/cases/compiler/a.ts ===
class A { }
>A : A
=== tests/cases/compiler/b.ts ===
class B { }
>B : B
@@ -1,7 +1,9 @@
error TS5053: Option 'out' cannot be specified with option 'outFile'.
error TS6082: Only 'amd' and 'system' modules are supported alongside --out.
!!! error TS5053: Option 'out' cannot be specified with option 'outFile'.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out.
==== tests/cases/compiler/a.ts (0 errors) ====
// --out and --outFile error
@@ -0,0 +1,46 @@
//// [tests/cases/compiler/outModuleConcatAmd.ts] ////
//// [a.ts]
export class A { }
//// [b.ts]
import {A} from "./ref/a";
export class B extends A { }
//// [all.js]
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
define("tests/cases/compiler/ref/a", ["require", "exports"], function (require, exports) {
var A = (function () {
function A() {
}
return A;
})();
exports.A = A;
});
define("tests/cases/compiler/b", ["require", "exports", "tests/cases/compiler/ref/a"], function (require, exports, a_1) {
var B = (function (_super) {
__extends(B, _super);
function B() {
_super.apply(this, arguments);
}
return B;
})(a_1.A);
exports.B = B;
});
//# sourceMappingURL=all.js.map
//// [all.d.ts]
declare module "tests/cases/compiler/ref/a" {
export class A {
}
}
declare module "tests/cases/compiler/b" {
import { A } from "tests/cases/compiler/ref/a";
export class B extends A {
}
}
@@ -0,0 +1,2 @@
//// [all.js.map]
{"version":3,"file":"all.js","sourceRoot":"","sources":["tests/cases/compiler/ref/a.ts","tests/cases/compiler/b.ts"],"names":["A","A.constructor","B","B.constructor"],"mappings":";;;;;;IACA;QAAAA;QAAiBC,CAACA;QAADD,QAACA;IAADA,CAACA,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;;;ICAlB;QAAuBE,qBAACA;QAAxBA;YAAuBC,8BAACA;QAAGA,CAACA;QAADD,QAACA;IAADA,CAACA,AAA5B,EAAuB,KAAC,EAAI;IAAf,SAAC,IAAc,CAAA"}
@@ -0,0 +1,164 @@
===================================================================
JsFile: all.js
mapUrl: all.js.map
sourceRoot:
sources: tests/cases/compiler/ref/a.ts,tests/cases/compiler/b.ts
===================================================================
-------------------------------------------------------------------
emittedFile:all.js
sourceFile:tests/cases/compiler/ref/a.ts
-------------------------------------------------------------------
>>>var __extends = (this && this.__extends) || function (d, b) {
>>> for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
>>> function __() { this.constructor = d; }
>>> d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
>>>};
>>>define("tests/cases/compiler/ref/a", ["require", "exports"], function (require, exports) {
>>> var A = (function () {
1 >^^^^
2 > ^^^^^^^^^^^^^^^^^^^->
1 >
>
1 >Emitted(7, 5) Source(2, 1) + SourceIndex(0)
---
>>> function A() {
1->^^^^^^^^
2 > ^^->
1->
1->Emitted(8, 9) Source(2, 1) + SourceIndex(0) name (A)
---
>>> }
1->^^^^^^^^
2 > ^
3 > ^^^^^^^^^->
1->export class A {
2 > }
1->Emitted(9, 9) Source(2, 18) + SourceIndex(0) name (A.constructor)
2 >Emitted(9, 10) Source(2, 19) + SourceIndex(0) name (A.constructor)
---
>>> return A;
1->^^^^^^^^
2 > ^^^^^^^^
1->
2 > }
1->Emitted(10, 9) Source(2, 18) + SourceIndex(0) name (A)
2 >Emitted(10, 17) Source(2, 19) + SourceIndex(0) name (A)
---
>>> })();
1 >^^^^
2 > ^
3 >
4 > ^^^^
5 > ^^^^^^^^^^->
1 >
2 > }
3 >
4 > export class A { }
1 >Emitted(11, 5) Source(2, 18) + SourceIndex(0) name (A)
2 >Emitted(11, 6) Source(2, 19) + SourceIndex(0) name (A)
3 >Emitted(11, 6) Source(2, 1) + SourceIndex(0)
4 >Emitted(11, 10) Source(2, 19) + SourceIndex(0)
---
>>> exports.A = A;
1->^^^^
2 > ^^^^^^^^^
3 > ^^^^
4 > ^
1->
2 > A
3 > { }
4 >
1->Emitted(12, 5) Source(2, 14) + SourceIndex(0)
2 >Emitted(12, 14) Source(2, 15) + SourceIndex(0)
3 >Emitted(12, 18) Source(2, 19) + SourceIndex(0)
4 >Emitted(12, 19) Source(2, 19) + SourceIndex(0)
---
-------------------------------------------------------------------
emittedFile:all.js
sourceFile:tests/cases/compiler/b.ts
-------------------------------------------------------------------
>>>});
>>>define("tests/cases/compiler/b", ["require", "exports", "tests/cases/compiler/ref/a"], function (require, exports, a_1) {
>>> var B = (function (_super) {
1 >^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >import {A} from "./ref/a";
>
1 >Emitted(15, 5) Source(2, 1) + SourceIndex(1)
---
>>> __extends(B, _super);
1->^^^^^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^
1->export class B extends
2 > A
1->Emitted(16, 9) Source(2, 24) + SourceIndex(1) name (B)
2 >Emitted(16, 30) Source(2, 25) + SourceIndex(1) name (B)
---
>>> function B() {
1 >^^^^^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
1 >Emitted(17, 9) Source(2, 1) + SourceIndex(1) name (B)
---
>>> _super.apply(this, arguments);
1->^^^^^^^^^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1->export class B extends
2 > A
1->Emitted(18, 13) Source(2, 24) + SourceIndex(1) name (B.constructor)
2 >Emitted(18, 43) Source(2, 25) + SourceIndex(1) name (B.constructor)
---
>>> }
1 >^^^^^^^^
2 > ^
3 > ^^^^^^^^^->
1 > {
2 > }
1 >Emitted(19, 9) Source(2, 28) + SourceIndex(1) name (B.constructor)
2 >Emitted(19, 10) Source(2, 29) + SourceIndex(1) name (B.constructor)
---
>>> return B;
1->^^^^^^^^
2 > ^^^^^^^^
1->
2 > }
1->Emitted(20, 9) Source(2, 28) + SourceIndex(1) name (B)
2 >Emitted(20, 17) Source(2, 29) + SourceIndex(1) name (B)
---
>>> })(a_1.A);
1 >^^^^
2 > ^
3 >
4 > ^^
5 > ^^^^^
6 > ^^
7 > ^^^^^->
1 >
2 > }
3 >
4 > export class B extends
5 > A
6 > { }
1 >Emitted(21, 5) Source(2, 28) + SourceIndex(1) name (B)
2 >Emitted(21, 6) Source(2, 29) + SourceIndex(1) name (B)
3 >Emitted(21, 6) Source(2, 1) + SourceIndex(1)
4 >Emitted(21, 8) Source(2, 24) + SourceIndex(1)
5 >Emitted(21, 13) Source(2, 25) + SourceIndex(1)
6 >Emitted(21, 15) Source(2, 29) + SourceIndex(1)
---
>>> exports.B = B;
1->^^^^
2 > ^^^^^^^^^
3 > ^^^^
4 > ^
1->
2 > B
3 > extends A { }
4 >
1->Emitted(22, 5) Source(2, 14) + SourceIndex(1)
2 >Emitted(22, 14) Source(2, 15) + SourceIndex(1)
3 >Emitted(22, 18) Source(2, 29) + SourceIndex(1)
4 >Emitted(22, 19) Source(2, 29) + SourceIndex(1)
---
>>>});
>>>//# sourceMappingURL=all.js.map
@@ -0,0 +1,13 @@
=== tests/cases/compiler/ref/a.ts ===
export class A { }
>A : Symbol(A, Decl(a.ts, 0, 0))
=== tests/cases/compiler/b.ts ===
import {A} from "./ref/a";
>A : Symbol(A, Decl(b.ts, 0, 8))
export class B extends A { }
>B : Symbol(B, Decl(b.ts, 0, 26))
>A : Symbol(A, Decl(b.ts, 0, 8))
@@ -0,0 +1,13 @@
=== tests/cases/compiler/ref/a.ts ===
export class A { }
>A : A
=== tests/cases/compiler/b.ts ===
import {A} from "./ref/a";
>A : typeof A
export class B extends A { }
>B : B
>A : A
@@ -0,0 +1,13 @@
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== tests/cases/compiler/ref/a.ts (0 errors) ====
// This should be an error
export class A { }
==== tests/cases/compiler/b.ts (0 errors) ====
import {A} from "./ref/a";
export class B extends A { }
@@ -0,0 +1,31 @@
//// [tests/cases/compiler/outModuleConcatCommonjs.ts] ////
//// [a.ts]
// This should be an error
export class A { }
//// [b.ts]
import {A} from "./ref/a";
export class B extends A { }
//// [all.js]
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
// This should be an error
//# sourceMappingURL=all.js.map
//// [all.d.ts]
declare module "tests/cases/compiler/ref/a" {
export class A {
}
}
declare module "tests/cases/compiler/b" {
import { A } from "tests/cases/compiler/ref/a";
export class B extends A {
}
}
@@ -0,0 +1,2 @@
//// [all.js.map]
{"version":3,"file":"all.js","sourceRoot":"","sources":["tests/cases/compiler/ref/a.ts","tests/cases/compiler/b.ts"],"names":[],"mappings":";;;;;AACA,0BAA0B"}
@@ -0,0 +1,26 @@
===================================================================
JsFile: all.js
mapUrl: all.js.map
sourceRoot:
sources: tests/cases/compiler/ref/a.ts,tests/cases/compiler/b.ts
===================================================================
-------------------------------------------------------------------
emittedFile:all.js
sourceFile:tests/cases/compiler/ref/a.ts
-------------------------------------------------------------------
>>>var __extends = (this && this.__extends) || function (d, b) {
>>> for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
>>> function __() { this.constructor = d; }
>>> d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
>>>};
>>>// This should be an error
1 >
2 >^^^^^^^^^^^^^^^^^^^^^^^^^^
3 > ^^^^->
1 >
>
2 >// This should be an error
1 >Emitted(6, 1) Source(2, 1) + SourceIndex(0)
2 >Emitted(6, 27) Source(2, 27) + SourceIndex(0)
---
>>>//# sourceMappingURL=all.js.map
@@ -0,0 +1,13 @@
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== tests/cases/compiler/ref/a.ts (0 errors) ====
// This should be an error
export class A { }
==== tests/cases/compiler/b.ts (0 errors) ====
import {A} from "./ref/a";
export class B extends A { }
@@ -0,0 +1,26 @@
//// [tests/cases/compiler/outModuleConcatES6.ts] ////
//// [a.ts]
// This should be an error
export class A { }
//// [b.ts]
import {A} from "./ref/a";
export class B extends A { }
//// [all.js]
// This should be an error
//# sourceMappingURL=all.js.map
//// [all.d.ts]
declare module "tests/cases/compiler/ref/a" {
export class A {
}
}
declare module "tests/cases/compiler/b" {
import { A } from "tests/cases/compiler/ref/a";
export class B extends A {
}
}
@@ -0,0 +1,2 @@
//// [all.js.map]
{"version":3,"file":"all.js","sourceRoot":"","sources":["tests/cases/compiler/ref/a.ts","tests/cases/compiler/b.ts"],"names":[],"mappings":"AACA,0BAA0B"}
@@ -0,0 +1,21 @@
===================================================================
JsFile: all.js
mapUrl: all.js.map
sourceRoot:
sources: tests/cases/compiler/ref/a.ts,tests/cases/compiler/b.ts
===================================================================
-------------------------------------------------------------------
emittedFile:all.js
sourceFile:tests/cases/compiler/ref/a.ts
-------------------------------------------------------------------
>>>// This should be an error
1 >
2 >^^^^^^^^^^^^^^^^^^^^^^^^^^
3 > ^^^^->
1 >
>
2 >// This should be an error
1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0)
2 >Emitted(1, 27) Source(2, 27) + SourceIndex(0)
---
>>>//# sourceMappingURL=all.js.map
@@ -0,0 +1,62 @@
//// [tests/cases/compiler/outModuleConcatSystem.ts] ////
//// [a.ts]
export class A { }
//// [b.ts]
import {A} from "./ref/a";
export class B extends A { }
//// [all.js]
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
System.register("tests/cases/compiler/ref/a", [], function(exports_1) {
var A;
return {
setters:[],
execute: function() {
A = (function () {
function A() {
}
return A;
})();
exports_1("A", A);
}
}
});
System.register("tests/cases/compiler/b", ["tests/cases/compiler/ref/a"], function(exports_2) {
var a_1;
var B;
return {
setters:[
function (a_1_1) {
a_1 = a_1_1;
}],
execute: function() {
B = (function (_super) {
__extends(B, _super);
function B() {
_super.apply(this, arguments);
}
return B;
})(a_1.A);
exports_2("B", B);
}
}
});
//# sourceMappingURL=all.js.map
//// [all.d.ts]
declare module "tests/cases/compiler/ref/a" {
export class A {
}
}
declare module "tests/cases/compiler/b" {
import { A } from "tests/cases/compiler/ref/a";
export class B extends A {
}
}
@@ -0,0 +1,2 @@
//// [all.js.map]
{"version":3,"file":"all.js","sourceRoot":"","sources":["tests/cases/compiler/ref/a.ts","tests/cases/compiler/b.ts"],"names":["A","A.constructor","B","B.constructor"],"mappings":";;;;;;;;;;YACA;gBAAAA;gBAAiBC,CAACA;gBAADD,QAACA;YAADA,CAACA,AAAlB,IAAkB;YAAlB,iBAAkB,CAAA;;;;;;;;;;;;;YCAlB;gBAAuBE,qBAACA;gBAAxBA;oBAAuBC,8BAACA;gBAAGA,CAACA;gBAADD,QAACA;YAADA,CAACA,AAA5B,EAAuB,KAAC,EAAI;YAA5B,iBAA4B,CAAA"}
@@ -0,0 +1,174 @@
===================================================================
JsFile: all.js
mapUrl: all.js.map
sourceRoot:
sources: tests/cases/compiler/ref/a.ts,tests/cases/compiler/b.ts
===================================================================
-------------------------------------------------------------------
emittedFile:all.js
sourceFile:tests/cases/compiler/ref/a.ts
-------------------------------------------------------------------
>>>var __extends = (this && this.__extends) || function (d, b) {
>>> for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
>>> function __() { this.constructor = d; }
>>> d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
>>>};
>>>System.register("tests/cases/compiler/ref/a", [], function(exports_1) {
>>> var A;
>>> return {
>>> setters:[],
>>> execute: function() {
>>> A = (function () {
1 >^^^^^^^^^^^^
2 > ^^^^^^^^^^^^^^^^^^^->
1 >
>
1 >Emitted(11, 13) Source(2, 1) + SourceIndex(0)
---
>>> function A() {
1->^^^^^^^^^^^^^^^^
2 > ^^->
1->
1->Emitted(12, 17) Source(2, 1) + SourceIndex(0) name (A)
---
>>> }
1->^^^^^^^^^^^^^^^^
2 > ^
3 > ^^^^^^^^^->
1->export class A {
2 > }
1->Emitted(13, 17) Source(2, 18) + SourceIndex(0) name (A.constructor)
2 >Emitted(13, 18) Source(2, 19) + SourceIndex(0) name (A.constructor)
---
>>> return A;
1->^^^^^^^^^^^^^^^^
2 > ^^^^^^^^
1->
2 > }
1->Emitted(14, 17) Source(2, 18) + SourceIndex(0) name (A)
2 >Emitted(14, 25) Source(2, 19) + SourceIndex(0) name (A)
---
>>> })();
1 >^^^^^^^^^^^^
2 > ^
3 >
4 > ^^^^
5 > ^^^^^^^^^^^^^^->
1 >
2 > }
3 >
4 > export class A { }
1 >Emitted(15, 13) Source(2, 18) + SourceIndex(0) name (A)
2 >Emitted(15, 14) Source(2, 19) + SourceIndex(0) name (A)
3 >Emitted(15, 14) Source(2, 1) + SourceIndex(0)
4 >Emitted(15, 18) Source(2, 19) + SourceIndex(0)
---
>>> exports_1("A", A);
1->^^^^^^^^^^^^
2 > ^^^^^^^^^^^^^^^^^
3 > ^
1->
2 > export class A { }
3 >
1->Emitted(16, 13) Source(2, 1) + SourceIndex(0)
2 >Emitted(16, 30) Source(2, 19) + SourceIndex(0)
3 >Emitted(16, 31) Source(2, 19) + SourceIndex(0)
---
-------------------------------------------------------------------
emittedFile:all.js
sourceFile:tests/cases/compiler/b.ts
-------------------------------------------------------------------
>>> }
>>> }
>>>});
>>>System.register("tests/cases/compiler/b", ["tests/cases/compiler/ref/a"], function(exports_2) {
>>> var a_1;
>>> var B;
>>> return {
>>> setters:[
>>> function (a_1_1) {
>>> a_1 = a_1_1;
>>> }],
>>> execute: function() {
>>> B = (function (_super) {
1 >^^^^^^^^^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >import {A} from "./ref/a";
>
1 >Emitted(29, 13) Source(2, 1) + SourceIndex(1)
---
>>> __extends(B, _super);
1->^^^^^^^^^^^^^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^
1->export class B extends
2 > A
1->Emitted(30, 17) Source(2, 24) + SourceIndex(1) name (B)
2 >Emitted(30, 38) Source(2, 25) + SourceIndex(1) name (B)
---
>>> function B() {
1 >^^^^^^^^^^^^^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
1 >Emitted(31, 17) Source(2, 1) + SourceIndex(1) name (B)
---
>>> _super.apply(this, arguments);
1->^^^^^^^^^^^^^^^^^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1->export class B extends
2 > A
1->Emitted(32, 21) Source(2, 24) + SourceIndex(1) name (B.constructor)
2 >Emitted(32, 51) Source(2, 25) + SourceIndex(1) name (B.constructor)
---
>>> }
1 >^^^^^^^^^^^^^^^^
2 > ^
3 > ^^^^^^^^^->
1 > {
2 > }
1 >Emitted(33, 17) Source(2, 28) + SourceIndex(1) name (B.constructor)
2 >Emitted(33, 18) Source(2, 29) + SourceIndex(1) name (B.constructor)
---
>>> return B;
1->^^^^^^^^^^^^^^^^
2 > ^^^^^^^^
1->
2 > }
1->Emitted(34, 17) Source(2, 28) + SourceIndex(1) name (B)
2 >Emitted(34, 25) Source(2, 29) + SourceIndex(1) name (B)
---
>>> })(a_1.A);
1 >^^^^^^^^^^^^
2 > ^
3 >
4 > ^^
5 > ^^^^^
6 > ^^
7 > ^^^^^^^^^->
1 >
2 > }
3 >
4 > export class B extends
5 > A
6 > { }
1 >Emitted(35, 13) Source(2, 28) + SourceIndex(1) name (B)
2 >Emitted(35, 14) Source(2, 29) + SourceIndex(1) name (B)
3 >Emitted(35, 14) Source(2, 1) + SourceIndex(1)
4 >Emitted(35, 16) Source(2, 24) + SourceIndex(1)
5 >Emitted(35, 21) Source(2, 25) + SourceIndex(1)
6 >Emitted(35, 23) Source(2, 29) + SourceIndex(1)
---
>>> exports_2("B", B);
1->^^^^^^^^^^^^
2 > ^^^^^^^^^^^^^^^^^
3 > ^
1->
2 > export class B extends A { }
3 >
1->Emitted(36, 13) Source(2, 1) + SourceIndex(1)
2 >Emitted(36, 30) Source(2, 29) + SourceIndex(1)
3 >Emitted(36, 31) Source(2, 29) + SourceIndex(1)
---
>>> }
>>> }
>>>});
>>>//# sourceMappingURL=all.js.map
@@ -0,0 +1,13 @@
=== tests/cases/compiler/ref/a.ts ===
export class A { }
>A : Symbol(A, Decl(a.ts, 0, 0))
=== tests/cases/compiler/b.ts ===
import {A} from "./ref/a";
>A : Symbol(A, Decl(b.ts, 0, 8))
export class B extends A { }
>B : Symbol(B, Decl(b.ts, 0, 26))
>A : Symbol(A, Decl(b.ts, 0, 8))
@@ -0,0 +1,13 @@
=== tests/cases/compiler/ref/a.ts ===
export class A { }
>A : A
=== tests/cases/compiler/b.ts ===
import {A} from "./ref/a";
>A : typeof A
export class B extends A { }
>B : B
>A : A
@@ -0,0 +1,13 @@
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== tests/cases/compiler/ref/a.ts (0 errors) ====
// This should error
export class A { }
==== tests/cases/compiler/b.ts (0 errors) ====
import {A} from "./ref/a";
export class B extends A { }
@@ -0,0 +1,31 @@
//// [tests/cases/compiler/outModuleConcatUmd.ts] ////
//// [a.ts]
// This should error
export class A { }
//// [b.ts]
import {A} from "./ref/a";
export class B extends A { }
//// [all.js]
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
// This should error
//# sourceMappingURL=all.js.map
//// [all.d.ts]
declare module "tests/cases/compiler/ref/a" {
export class A {
}
}
declare module "tests/cases/compiler/b" {
import { A } from "tests/cases/compiler/ref/a";
export class B extends A {
}
}
@@ -0,0 +1,2 @@
//// [all.js.map]
{"version":3,"file":"all.js","sourceRoot":"","sources":["tests/cases/compiler/ref/a.ts","tests/cases/compiler/b.ts"],"names":[],"mappings":";;;;;AACA,oBAAoB"}
@@ -0,0 +1,26 @@
===================================================================
JsFile: all.js
mapUrl: all.js.map
sourceRoot:
sources: tests/cases/compiler/ref/a.ts,tests/cases/compiler/b.ts
===================================================================
-------------------------------------------------------------------
emittedFile:all.js
sourceFile:tests/cases/compiler/ref/a.ts
-------------------------------------------------------------------
>>>var __extends = (this && this.__extends) || function (d, b) {
>>> for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
>>> function __() { this.constructor = d; }
>>> d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
>>>};
>>>// This should error
1 >
2 >^^^^^^^^^^^^^^^^^^^^
3 > ^^^^^^^^^^->
1 >
>
2 >// This should error
1 >Emitted(6, 1) Source(2, 1) + SourceIndex(0)
2 >Emitted(6, 21) Source(2, 21) + SourceIndex(0)
---
>>>//# sourceMappingURL=all.js.map
@@ -0,0 +1,81 @@
//// [tests/cases/compiler/outModuleTripleSlashRefs.ts] ////
//// [a.ts]
/// <reference path="./b.ts" />
export class A {
member: typeof GlobalFoo;
}
//// [b.ts]
/// <reference path="./c.d.ts" />
class Foo {
member: Bar;
}
declare var GlobalFoo: Foo;
//// [c.d.ts]
/// <reference path="./d.d.ts" />
declare class Bar {
member: Baz;
}
//// [d.d.ts]
declare class Baz {
member: number;
}
//// [b.ts]
import {A} from "./ref/a";
export class B extends A { }
//// [all.js]
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
/// <reference path="./c.d.ts" />
var Foo = (function () {
function Foo() {
}
return Foo;
})();
define("tests/cases/compiler/ref/a", ["require", "exports"], function (require, exports) {
/// <reference path="./b.ts" />
var A = (function () {
function A() {
}
return A;
})();
exports.A = A;
});
define("tests/cases/compiler/b", ["require", "exports", "tests/cases/compiler/ref/a"], function (require, exports, a_1) {
var B = (function (_super) {
__extends(B, _super);
function B() {
_super.apply(this, arguments);
}
return B;
})(a_1.A);
exports.B = B;
});
//# sourceMappingURL=all.js.map
//// [all.d.ts]
/// <reference path="tests/cases/compiler/ref/c.d.ts" />
declare class Foo {
member: Bar;
}
declare var GlobalFoo: Foo;
declare module "tests/cases/compiler/ref/a" {
export class A {
member: typeof GlobalFoo;
}
}
declare module "tests/cases/compiler/b" {
import { A } from "tests/cases/compiler/ref/a";
export class B extends A {
}
}
@@ -0,0 +1,2 @@
//// [all.js.map]
{"version":3,"file":"all.js","sourceRoot":"","sources":["tests/cases/compiler/ref/b.ts","tests/cases/compiler/ref/a.ts","tests/cases/compiler/b.ts"],"names":["Foo","Foo.constructor","A","A.constructor","B","B.constructor"],"mappings":";;;;;AAAA,iCAAiC;AACjC;IAAAA;IAEAC,CAACA;IAADD,UAACA;AAADA,CAACA,AAFD,IAEC;;ICFD,+BAA+B;IAC/B;QAAAE;QAEAC,CAACA;QAADD,QAACA;IAADA,CAACA,AAFD,IAEC;IAFY,SAAC,IAEb,CAAA;;;ICHD;QAAuBE,qBAACA;QAAxBA;YAAuBC,8BAACA;QAAGA,CAACA;QAADD,QAACA;IAADA,CAACA,AAA5B,EAAuB,KAAC,EAAI;IAAf,SAAC,IAAc,CAAA"}
@@ -0,0 +1,240 @@
===================================================================
JsFile: all.js
mapUrl: all.js.map
sourceRoot:
sources: tests/cases/compiler/ref/b.ts,tests/cases/compiler/ref/a.ts,tests/cases/compiler/b.ts
===================================================================
-------------------------------------------------------------------
emittedFile:all.js
sourceFile:tests/cases/compiler/ref/b.ts
-------------------------------------------------------------------
>>>var __extends = (this && this.__extends) || function (d, b) {
>>> for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
>>> function __() { this.constructor = d; }
>>> d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
>>>};
>>>/// <reference path="./c.d.ts" />
1 >
2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1 >
2 >/// <reference path="./c.d.ts" />
1 >Emitted(6, 1) Source(1, 1) + SourceIndex(0)
2 >Emitted(6, 34) Source(1, 34) + SourceIndex(0)
---
>>>var Foo = (function () {
1 >
2 >^^^^^^^^^^^^^^^^^^^^^->
1 >
>
1 >Emitted(7, 1) Source(2, 1) + SourceIndex(0)
---
>>> function Foo() {
1->^^^^
2 > ^^->
1->
1->Emitted(8, 5) Source(2, 1) + SourceIndex(0) name (Foo)
---
>>> }
1->^^^^
2 > ^
3 > ^^^^^^^^^^^->
1->class Foo {
> member: Bar;
>
2 > }
1->Emitted(9, 5) Source(4, 1) + SourceIndex(0) name (Foo.constructor)
2 >Emitted(9, 6) Source(4, 2) + SourceIndex(0) name (Foo.constructor)
---
>>> return Foo;
1->^^^^
2 > ^^^^^^^^^^
1->
2 > }
1->Emitted(10, 5) Source(4, 1) + SourceIndex(0) name (Foo)
2 >Emitted(10, 15) Source(4, 2) + SourceIndex(0) name (Foo)
---
>>>})();
1 >
2 >^
3 >
4 > ^^^^
5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
2 >}
3 >
4 > class Foo {
> member: Bar;
> }
1 >Emitted(11, 1) Source(4, 1) + SourceIndex(0) name (Foo)
2 >Emitted(11, 2) Source(4, 2) + SourceIndex(0) name (Foo)
3 >Emitted(11, 2) Source(2, 1) + SourceIndex(0)
4 >Emitted(11, 6) Source(4, 2) + SourceIndex(0)
---
-------------------------------------------------------------------
emittedFile:all.js
sourceFile:tests/cases/compiler/ref/a.ts
-------------------------------------------------------------------
>>>define("tests/cases/compiler/ref/a", ["require", "exports"], function (require, exports) {
>>> /// <reference path="./b.ts" />
1->^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1->
>
2 > /// <reference path="./b.ts" />
1->Emitted(13, 5) Source(2, 1) + SourceIndex(1)
2 >Emitted(13, 36) Source(2, 32) + SourceIndex(1)
---
>>> var A = (function () {
1 >^^^^
2 > ^^^^^^^^^^^^^^^^^^^->
1 >
>
1 >Emitted(14, 5) Source(3, 1) + SourceIndex(1)
---
>>> function A() {
1->^^^^^^^^
2 > ^^->
1->
1->Emitted(15, 9) Source(3, 1) + SourceIndex(1) name (A)
---
>>> }
1->^^^^^^^^
2 > ^
3 > ^^^^^^^^^->
1->export class A {
> member: typeof GlobalFoo;
>
2 > }
1->Emitted(16, 9) Source(5, 1) + SourceIndex(1) name (A.constructor)
2 >Emitted(16, 10) Source(5, 2) + SourceIndex(1) name (A.constructor)
---
>>> return A;
1->^^^^^^^^
2 > ^^^^^^^^
1->
2 > }
1->Emitted(17, 9) Source(5, 1) + SourceIndex(1) name (A)
2 >Emitted(17, 17) Source(5, 2) + SourceIndex(1) name (A)
---
>>> })();
1 >^^^^
2 > ^
3 >
4 > ^^^^
5 > ^^^^^^^^^^->
1 >
2 > }
3 >
4 > export class A {
> member: typeof GlobalFoo;
> }
1 >Emitted(18, 5) Source(5, 1) + SourceIndex(1) name (A)
2 >Emitted(18, 6) Source(5, 2) + SourceIndex(1) name (A)
3 >Emitted(18, 6) Source(3, 1) + SourceIndex(1)
4 >Emitted(18, 10) Source(5, 2) + SourceIndex(1)
---
>>> exports.A = A;
1->^^^^
2 > ^^^^^^^^^
3 > ^^^^
4 > ^
1->
2 > A
3 > {
> member: typeof GlobalFoo;
> }
4 >
1->Emitted(19, 5) Source(3, 14) + SourceIndex(1)
2 >Emitted(19, 14) Source(3, 15) + SourceIndex(1)
3 >Emitted(19, 18) Source(5, 2) + SourceIndex(1)
4 >Emitted(19, 19) Source(5, 2) + SourceIndex(1)
---
-------------------------------------------------------------------
emittedFile:all.js
sourceFile:tests/cases/compiler/b.ts
-------------------------------------------------------------------
>>>});
>>>define("tests/cases/compiler/b", ["require", "exports", "tests/cases/compiler/ref/a"], function (require, exports, a_1) {
>>> var B = (function (_super) {
1 >^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >import {A} from "./ref/a";
>
1 >Emitted(22, 5) Source(2, 1) + SourceIndex(2)
---
>>> __extends(B, _super);
1->^^^^^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^
1->export class B extends
2 > A
1->Emitted(23, 9) Source(2, 24) + SourceIndex(2) name (B)
2 >Emitted(23, 30) Source(2, 25) + SourceIndex(2) name (B)
---
>>> function B() {
1 >^^^^^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
1 >Emitted(24, 9) Source(2, 1) + SourceIndex(2) name (B)
---
>>> _super.apply(this, arguments);
1->^^^^^^^^^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1->export class B extends
2 > A
1->Emitted(25, 13) Source(2, 24) + SourceIndex(2) name (B.constructor)
2 >Emitted(25, 43) Source(2, 25) + SourceIndex(2) name (B.constructor)
---
>>> }
1 >^^^^^^^^
2 > ^
3 > ^^^^^^^^^->
1 > {
2 > }
1 >Emitted(26, 9) Source(2, 28) + SourceIndex(2) name (B.constructor)
2 >Emitted(26, 10) Source(2, 29) + SourceIndex(2) name (B.constructor)
---
>>> return B;
1->^^^^^^^^
2 > ^^^^^^^^
1->
2 > }
1->Emitted(27, 9) Source(2, 28) + SourceIndex(2) name (B)
2 >Emitted(27, 17) Source(2, 29) + SourceIndex(2) name (B)
---
>>> })(a_1.A);
1 >^^^^
2 > ^
3 >
4 > ^^
5 > ^^^^^
6 > ^^
7 > ^^^^^->
1 >
2 > }
3 >
4 > export class B extends
5 > A
6 > { }
1 >Emitted(28, 5) Source(2, 28) + SourceIndex(2) name (B)
2 >Emitted(28, 6) Source(2, 29) + SourceIndex(2) name (B)
3 >Emitted(28, 6) Source(2, 1) + SourceIndex(2)
4 >Emitted(28, 8) Source(2, 24) + SourceIndex(2)
5 >Emitted(28, 13) Source(2, 25) + SourceIndex(2)
6 >Emitted(28, 15) Source(2, 29) + SourceIndex(2)
---
>>> exports.B = B;
1->^^^^
2 > ^^^^^^^^^
3 > ^^^^
4 > ^
1->
2 > B
3 > extends A { }
4 >
1->Emitted(29, 5) Source(2, 14) + SourceIndex(2)
2 >Emitted(29, 14) Source(2, 15) + SourceIndex(2)
3 >Emitted(29, 18) Source(2, 29) + SourceIndex(2)
4 >Emitted(29, 19) Source(2, 29) + SourceIndex(2)
---
>>>});
>>>//# sourceMappingURL=all.js.map
@@ -0,0 +1,50 @@
=== tests/cases/compiler/ref/a.ts ===
/// <reference path="./b.ts" />
export class A {
>A : Symbol(A, Decl(a.ts, 0, 0))
member: typeof GlobalFoo;
>member : Symbol(member, Decl(a.ts, 2, 16))
>GlobalFoo : Symbol(GlobalFoo, Decl(b.ts, 4, 11))
}
=== tests/cases/compiler/ref/b.ts ===
/// <reference path="./c.d.ts" />
class Foo {
>Foo : Symbol(Foo, Decl(b.ts, 0, 0))
member: Bar;
>member : Symbol(member, Decl(b.ts, 1, 11))
>Bar : Symbol(Bar, Decl(c.d.ts, 0, 0))
}
declare var GlobalFoo: Foo;
>GlobalFoo : Symbol(GlobalFoo, Decl(b.ts, 4, 11))
>Foo : Symbol(Foo, Decl(b.ts, 0, 0))
=== tests/cases/compiler/ref/c.d.ts ===
/// <reference path="./d.d.ts" />
declare class Bar {
>Bar : Symbol(Bar, Decl(c.d.ts, 0, 0))
member: Baz;
>member : Symbol(member, Decl(c.d.ts, 1, 19))
>Baz : Symbol(Baz, Decl(d.d.ts, 0, 0))
}
=== tests/cases/compiler/ref/d.d.ts ===
declare class Baz {
>Baz : Symbol(Baz, Decl(d.d.ts, 0, 0))
member: number;
>member : Symbol(member, Decl(d.d.ts, 0, 19))
}
=== tests/cases/compiler/b.ts ===
import {A} from "./ref/a";
>A : Symbol(A, Decl(b.ts, 0, 8))
export class B extends A { }
>B : Symbol(B, Decl(b.ts, 0, 26))
>A : Symbol(A, Decl(b.ts, 0, 8))
@@ -0,0 +1,50 @@
=== tests/cases/compiler/ref/a.ts ===
/// <reference path="./b.ts" />
export class A {
>A : A
member: typeof GlobalFoo;
>member : Foo
>GlobalFoo : Foo
}
=== tests/cases/compiler/ref/b.ts ===
/// <reference path="./c.d.ts" />
class Foo {
>Foo : Foo
member: Bar;
>member : Bar
>Bar : Bar
}
declare var GlobalFoo: Foo;
>GlobalFoo : Foo
>Foo : Foo
=== tests/cases/compiler/ref/c.d.ts ===
/// <reference path="./d.d.ts" />
declare class Bar {
>Bar : Bar
member: Baz;
>member : Baz
>Baz : Baz
}
=== tests/cases/compiler/ref/d.d.ts ===
declare class Baz {
>Baz : Baz
member: number;
>member : number
}
=== tests/cases/compiler/b.ts ===
import {A} from "./ref/a";
>A : typeof A
export class B extends A { }
>B : B
>A : A
@@ -1,10 +1,17 @@
/// <reference path="../ref/m2.d.ts" />
declare var m1_a1: number;
declare class m1_c1 {
m1_c1_p1: number;
}
declare var m1_instance1: m1_c1;
declare function m1_f1(): m1_c1;
declare module "ref/m2" {
export var m2_a1: number;
export class m2_c1 {
m2_c1_p1: number;
}
export var m2_instance1: m2_c1;
export function m2_f1(): m2_c1;
}
declare var a1: number;
declare class c1 {
p1: number;
@@ -8,6 +8,20 @@ var m1_instance1 = new m1_c1();
function m1_f1() {
return m1_instance1;
}
define("ref/m2", ["require", "exports"], function (require, exports) {
exports.m2_a1 = 10;
var m2_c1 = (function () {
function m2_c1() {
}
return m2_c1;
})();
exports.m2_c1 = m2_c1;
exports.m2_instance1 = new m2_c1();
function m2_f1() {
return exports.m2_instance1;
}
exports.m2_f1 = m2_f1;
});
/// <reference path='ref/m1.ts'/>
/// <reference path='ref/m2.ts'/>
var a1 = 10;
@@ -1 +1 @@
{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"}
{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../ref/m2.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAC;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;ACRD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"}
@@ -17,9 +17,6 @@
"test.ts"
],
"emittedFiles": [
"ref/m2.js.map",
"ref/m2.js",
"ref/m2.d.ts",
"bin/test.js.map",
"bin/test.js",
"bin/test.d.ts"
@@ -1,180 +1,8 @@
===================================================================
JsFile: m2.js
mapUrl: /tests/cases/projects/outputdir_mixed_subfolder/mapFiles/ref/m2.js.map
sourceRoot:
sources: ../../ref/m2.ts
===================================================================
-------------------------------------------------------------------
emittedFile:ref/m2.js
sourceFile:../../ref/m2.ts
-------------------------------------------------------------------
>>>define(["require", "exports"], function (require, exports) {
>>> exports.m2_a1 = 10;
1 >^^^^
2 > ^^^^^^^^^^^^^
3 > ^^^
4 > ^^
5 > ^
6 > ^^^^^^^^->
1 >export var
2 > m2_a1
3 > =
4 > 10
5 > ;
1 >Emitted(2, 5) Source(1, 12) + SourceIndex(0)
2 >Emitted(2, 18) Source(1, 17) + SourceIndex(0)
3 >Emitted(2, 21) Source(1, 20) + SourceIndex(0)
4 >Emitted(2, 23) Source(1, 22) + SourceIndex(0)
5 >Emitted(2, 24) Source(1, 23) + SourceIndex(0)
---
>>> var m2_c1 = (function () {
1->^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^^->
1->
>
1->Emitted(3, 5) Source(2, 1) + SourceIndex(0)
---
>>> function m2_c1() {
1->^^^^^^^^
2 > ^^->
1->
1->Emitted(4, 9) Source(2, 1) + SourceIndex(0) name (m2_c1)
---
>>> }
1->^^^^^^^^
2 > ^
3 > ^^^^^^^^^^^^^->
1->export class m2_c1 {
> public m2_c1_p1: number;
>
2 > }
1->Emitted(5, 9) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor)
2 >Emitted(5, 10) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor)
---
>>> return m2_c1;
1->^^^^^^^^
2 > ^^^^^^^^^^^^
1->
2 > }
1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m2_c1)
2 >Emitted(6, 21) Source(4, 2) + SourceIndex(0) name (m2_c1)
---
>>> })();
1 >^^^^
2 > ^
3 >
4 > ^^^^
5 > ^^^^^^^^^^^^^^^^^^->
1 >
2 > }
3 >
4 > export class m2_c1 {
> public m2_c1_p1: number;
> }
1 >Emitted(7, 5) Source(4, 1) + SourceIndex(0) name (m2_c1)
2 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) name (m2_c1)
3 >Emitted(7, 6) Source(2, 1) + SourceIndex(0)
4 >Emitted(7, 10) Source(4, 2) + SourceIndex(0)
---
>>> exports.m2_c1 = m2_c1;
1->^^^^
2 > ^^^^^^^^^^^^^
3 > ^^^^^^^^
4 > ^
5 > ^^^^^^^^^^^^^^->
1->
2 > m2_c1
3 > {
> public m2_c1_p1: number;
> }
4 >
1->Emitted(8, 5) Source(2, 14) + SourceIndex(0)
2 >Emitted(8, 18) Source(2, 19) + SourceIndex(0)
3 >Emitted(8, 26) Source(4, 2) + SourceIndex(0)
4 >Emitted(8, 27) Source(4, 2) + SourceIndex(0)
---
>>> exports.m2_instance1 = new m2_c1();
1->^^^^
2 > ^^^^^^^^^^^^^^^^^^^^
3 > ^^^
4 > ^^^^
5 > ^^^^^
6 > ^^
7 > ^
1->
>
>export var
2 > m2_instance1
3 > =
4 > new
5 > m2_c1
6 > ()
7 > ;
1->Emitted(9, 5) Source(6, 12) + SourceIndex(0)
2 >Emitted(9, 25) Source(6, 24) + SourceIndex(0)
3 >Emitted(9, 28) Source(6, 27) + SourceIndex(0)
4 >Emitted(9, 32) Source(6, 31) + SourceIndex(0)
5 >Emitted(9, 37) Source(6, 36) + SourceIndex(0)
6 >Emitted(9, 39) Source(6, 38) + SourceIndex(0)
7 >Emitted(9, 40) Source(6, 39) + SourceIndex(0)
---
>>> function m2_f1() {
1 >^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
>
1 >Emitted(10, 5) Source(7, 1) + SourceIndex(0)
---
>>> return exports.m2_instance1;
1->^^^^^^^^
2 > ^^^^^^
3 > ^
4 > ^^^^^^^^^^^^^^^^^^^^
5 > ^
1->export function m2_f1() {
>
2 > return
3 >
4 > m2_instance1
5 > ;
1->Emitted(11, 9) Source(8, 5) + SourceIndex(0) name (m2_f1)
2 >Emitted(11, 15) Source(8, 11) + SourceIndex(0) name (m2_f1)
3 >Emitted(11, 16) Source(8, 12) + SourceIndex(0) name (m2_f1)
4 >Emitted(11, 36) Source(8, 24) + SourceIndex(0) name (m2_f1)
5 >Emitted(11, 37) Source(8, 25) + SourceIndex(0) name (m2_f1)
---
>>> }
1 >^^^^
2 > ^
3 > ^^^^^^^^^^^^^^^^^^^^^^->
1 >
>
2 > }
1 >Emitted(12, 5) Source(9, 1) + SourceIndex(0) name (m2_f1)
2 >Emitted(12, 6) Source(9, 2) + SourceIndex(0) name (m2_f1)
---
>>> exports.m2_f1 = m2_f1;
1->^^^^
2 > ^^^^^^^^^^^^^
3 > ^^^^^^^^
4 > ^
1->
2 > m2_f1
3 > () {
> return m2_instance1;
> }
4 >
1->Emitted(13, 5) Source(7, 17) + SourceIndex(0)
2 >Emitted(13, 18) Source(7, 22) + SourceIndex(0)
3 >Emitted(13, 26) Source(9, 2) + SourceIndex(0)
4 >Emitted(13, 27) Source(9, 2) + SourceIndex(0)
---
>>>});
>>>//# sourceMappingURL=/tests/cases/projects/outputdir_mixed_subfolder/mapFiles/ref/m2.js.map===================================================================
JsFile: test.js
mapUrl: /tests/cases/projects/outputdir_mixed_subfolder/mapFiles/test.js.map
sourceRoot:
sources: ../ref/m1.ts,../test.ts
sources: ../ref/m1.ts,../ref/m2.ts,../test.ts
===================================================================
-------------------------------------------------------------------
emittedFile:bin/test.js
@@ -306,7 +134,7 @@ sourceFile:../ref/m1.ts
>>>}
1 >
2 >^
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
>
2 >}
@@ -315,16 +143,182 @@ sourceFile:../ref/m1.ts
---
-------------------------------------------------------------------
emittedFile:bin/test.js
sourceFile:../ref/m2.ts
-------------------------------------------------------------------
>>>define("ref/m2", ["require", "exports"], function (require, exports) {
>>> exports.m2_a1 = 10;
1->^^^^
2 > ^^^^^^^^^^^^^
3 > ^^^
4 > ^^
5 > ^
6 > ^^^^^^^^->
1->export var
2 > m2_a1
3 > =
4 > 10
5 > ;
1->Emitted(12, 5) Source(1, 12) + SourceIndex(1)
2 >Emitted(12, 18) Source(1, 17) + SourceIndex(1)
3 >Emitted(12, 21) Source(1, 20) + SourceIndex(1)
4 >Emitted(12, 23) Source(1, 22) + SourceIndex(1)
5 >Emitted(12, 24) Source(1, 23) + SourceIndex(1)
---
>>> var m2_c1 = (function () {
1->^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^^->
1->
>
1->Emitted(13, 5) Source(2, 1) + SourceIndex(1)
---
>>> function m2_c1() {
1->^^^^^^^^
2 > ^^->
1->
1->Emitted(14, 9) Source(2, 1) + SourceIndex(1) name (m2_c1)
---
>>> }
1->^^^^^^^^
2 > ^
3 > ^^^^^^^^^^^^^->
1->export class m2_c1 {
> public m2_c1_p1: number;
>
2 > }
1->Emitted(15, 9) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor)
2 >Emitted(15, 10) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor)
---
>>> return m2_c1;
1->^^^^^^^^
2 > ^^^^^^^^^^^^
1->
2 > }
1->Emitted(16, 9) Source(4, 1) + SourceIndex(1) name (m2_c1)
2 >Emitted(16, 21) Source(4, 2) + SourceIndex(1) name (m2_c1)
---
>>> })();
1 >^^^^
2 > ^
3 >
4 > ^^^^
5 > ^^^^^^^^^^^^^^^^^^->
1 >
2 > }
3 >
4 > export class m2_c1 {
> public m2_c1_p1: number;
> }
1 >Emitted(17, 5) Source(4, 1) + SourceIndex(1) name (m2_c1)
2 >Emitted(17, 6) Source(4, 2) + SourceIndex(1) name (m2_c1)
3 >Emitted(17, 6) Source(2, 1) + SourceIndex(1)
4 >Emitted(17, 10) Source(4, 2) + SourceIndex(1)
---
>>> exports.m2_c1 = m2_c1;
1->^^^^
2 > ^^^^^^^^^^^^^
3 > ^^^^^^^^
4 > ^
5 > ^^^^^^^^^^^^^^->
1->
2 > m2_c1
3 > {
> public m2_c1_p1: number;
> }
4 >
1->Emitted(18, 5) Source(2, 14) + SourceIndex(1)
2 >Emitted(18, 18) Source(2, 19) + SourceIndex(1)
3 >Emitted(18, 26) Source(4, 2) + SourceIndex(1)
4 >Emitted(18, 27) Source(4, 2) + SourceIndex(1)
---
>>> exports.m2_instance1 = new m2_c1();
1->^^^^
2 > ^^^^^^^^^^^^^^^^^^^^
3 > ^^^
4 > ^^^^
5 > ^^^^^
6 > ^^
7 > ^
1->
>
>export var
2 > m2_instance1
3 > =
4 > new
5 > m2_c1
6 > ()
7 > ;
1->Emitted(19, 5) Source(6, 12) + SourceIndex(1)
2 >Emitted(19, 25) Source(6, 24) + SourceIndex(1)
3 >Emitted(19, 28) Source(6, 27) + SourceIndex(1)
4 >Emitted(19, 32) Source(6, 31) + SourceIndex(1)
5 >Emitted(19, 37) Source(6, 36) + SourceIndex(1)
6 >Emitted(19, 39) Source(6, 38) + SourceIndex(1)
7 >Emitted(19, 40) Source(6, 39) + SourceIndex(1)
---
>>> function m2_f1() {
1 >^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
>
1 >Emitted(20, 5) Source(7, 1) + SourceIndex(1)
---
>>> return exports.m2_instance1;
1->^^^^^^^^
2 > ^^^^^^
3 > ^
4 > ^^^^^^^^^^^^^^^^^^^^
5 > ^
1->export function m2_f1() {
>
2 > return
3 >
4 > m2_instance1
5 > ;
1->Emitted(21, 9) Source(8, 5) + SourceIndex(1) name (m2_f1)
2 >Emitted(21, 15) Source(8, 11) + SourceIndex(1) name (m2_f1)
3 >Emitted(21, 16) Source(8, 12) + SourceIndex(1) name (m2_f1)
4 >Emitted(21, 36) Source(8, 24) + SourceIndex(1) name (m2_f1)
5 >Emitted(21, 37) Source(8, 25) + SourceIndex(1) name (m2_f1)
---
>>> }
1 >^^^^
2 > ^
3 > ^^^^^^^^^^^^^^^^^^^^^^->
1 >
>
2 > }
1 >Emitted(22, 5) Source(9, 1) + SourceIndex(1) name (m2_f1)
2 >Emitted(22, 6) Source(9, 2) + SourceIndex(1) name (m2_f1)
---
>>> exports.m2_f1 = m2_f1;
1->^^^^
2 > ^^^^^^^^^^^^^
3 > ^^^^^^^^
4 > ^
1->
2 > m2_f1
3 > () {
> return m2_instance1;
> }
4 >
1->Emitted(23, 5) Source(7, 17) + SourceIndex(1)
2 >Emitted(23, 18) Source(7, 22) + SourceIndex(1)
3 >Emitted(23, 26) Source(9, 2) + SourceIndex(1)
4 >Emitted(23, 27) Source(9, 2) + SourceIndex(1)
---
-------------------------------------------------------------------
emittedFile:bin/test.js
sourceFile:../test.ts
-------------------------------------------------------------------
>>>});
>>>/// <reference path='ref/m1.ts'/>
1->
1 >
2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3 > ^->
1->
1 >
2 >/// <reference path='ref/m1.ts'/>
1->Emitted(11, 1) Source(1, 1) + SourceIndex(1)
2 >Emitted(11, 34) Source(1, 34) + SourceIndex(1)
1 >Emitted(25, 1) Source(1, 1) + SourceIndex(2)
2 >Emitted(25, 34) Source(1, 34) + SourceIndex(2)
---
>>>/// <reference path='ref/m2.ts'/>
1->
@@ -332,8 +326,8 @@ sourceFile:../test.ts
1->
>
2 >/// <reference path='ref/m2.ts'/>
1->Emitted(12, 1) Source(2, 1) + SourceIndex(1)
2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1)
1->Emitted(26, 1) Source(2, 1) + SourceIndex(2)
2 >Emitted(26, 34) Source(2, 34) + SourceIndex(2)
---
>>>var a1 = 10;
1 >
@@ -350,25 +344,25 @@ sourceFile:../test.ts
4 > =
5 > 10
6 > ;
1 >Emitted(13, 1) Source(3, 1) + SourceIndex(1)
2 >Emitted(13, 5) Source(3, 5) + SourceIndex(1)
3 >Emitted(13, 7) Source(3, 7) + SourceIndex(1)
4 >Emitted(13, 10) Source(3, 10) + SourceIndex(1)
5 >Emitted(13, 12) Source(3, 12) + SourceIndex(1)
6 >Emitted(13, 13) Source(3, 13) + SourceIndex(1)
1 >Emitted(27, 1) Source(3, 1) + SourceIndex(2)
2 >Emitted(27, 5) Source(3, 5) + SourceIndex(2)
3 >Emitted(27, 7) Source(3, 7) + SourceIndex(2)
4 >Emitted(27, 10) Source(3, 10) + SourceIndex(2)
5 >Emitted(27, 12) Source(3, 12) + SourceIndex(2)
6 >Emitted(27, 13) Source(3, 13) + SourceIndex(2)
---
>>>var c1 = (function () {
1->
2 >^^^^^^^^^^^^^^^^^^^^->
1->
>
1->Emitted(14, 1) Source(4, 1) + SourceIndex(1)
1->Emitted(28, 1) Source(4, 1) + SourceIndex(2)
---
>>> function c1() {
1->^^^^
2 > ^^->
1->
1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1)
1->Emitted(29, 5) Source(4, 1) + SourceIndex(2) name (c1)
---
>>> }
1->^^^^
@@ -378,16 +372,16 @@ sourceFile:../test.ts
> public p1: number;
>
2 > }
1->Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor)
2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor)
1->Emitted(30, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor)
2 >Emitted(30, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor)
---
>>> return c1;
1->^^^^
2 > ^^^^^^^^^
1->
2 > }
1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1)
2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1)
1->Emitted(31, 5) Source(6, 1) + SourceIndex(2) name (c1)
2 >Emitted(31, 14) Source(6, 2) + SourceIndex(2) name (c1)
---
>>>})();
1 >
@@ -401,10 +395,10 @@ sourceFile:../test.ts
4 > class c1 {
> public p1: number;
> }
1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1)
2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1)
3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1)
4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1)
1 >Emitted(32, 1) Source(6, 1) + SourceIndex(2) name (c1)
2 >Emitted(32, 2) Source(6, 2) + SourceIndex(2) name (c1)
3 >Emitted(32, 2) Source(4, 1) + SourceIndex(2)
4 >Emitted(32, 6) Source(6, 2) + SourceIndex(2)
---
>>>var instance1 = new c1();
1->
@@ -425,21 +419,21 @@ sourceFile:../test.ts
6 > c1
7 > ()
8 > ;
1->Emitted(19, 1) Source(8, 1) + SourceIndex(1)
2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1)
3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1)
4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1)
5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1)
6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1)
7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1)
8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1)
1->Emitted(33, 1) Source(8, 1) + SourceIndex(2)
2 >Emitted(33, 5) Source(8, 5) + SourceIndex(2)
3 >Emitted(33, 14) Source(8, 14) + SourceIndex(2)
4 >Emitted(33, 17) Source(8, 17) + SourceIndex(2)
5 >Emitted(33, 21) Source(8, 21) + SourceIndex(2)
6 >Emitted(33, 23) Source(8, 23) + SourceIndex(2)
7 >Emitted(33, 25) Source(8, 25) + SourceIndex(2)
8 >Emitted(33, 26) Source(8, 26) + SourceIndex(2)
---
>>>function f1() {
1 >
2 >^^^^^^^^^^^^^^^^^^^^^^->
1 >
>
1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1)
1 >Emitted(34, 1) Source(9, 1) + SourceIndex(2)
---
>>> return instance1;
1->^^^^
@@ -453,11 +447,11 @@ sourceFile:../test.ts
3 >
4 > instance1
5 > ;
1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1)
2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1)
3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1)
4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1)
5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1)
1->Emitted(35, 5) Source(10, 5) + SourceIndex(2) name (f1)
2 >Emitted(35, 11) Source(10, 11) + SourceIndex(2) name (f1)
3 >Emitted(35, 12) Source(10, 12) + SourceIndex(2) name (f1)
4 >Emitted(35, 21) Source(10, 21) + SourceIndex(2) name (f1)
5 >Emitted(35, 22) Source(10, 22) + SourceIndex(2) name (f1)
---
>>>}
1 >
@@ -466,7 +460,7 @@ sourceFile:../test.ts
1 >
>
2 >}
1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1)
2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1)
1 >Emitted(36, 1) Source(11, 1) + SourceIndex(2) name (f1)
2 >Emitted(36, 2) Source(11, 2) + SourceIndex(2) name (f1)
---
>>>//# sourceMappingURL=/tests/cases/projects/outputdir_mixed_subfolder/mapFiles/test.js.map
@@ -1,6 +0,0 @@
export declare var m2_a1: number;
export declare class m2_c1 {
m2_c1_p1: number;
}
export declare var m2_instance1: m2_c1;
export declare function m2_f1(): m2_c1;
@@ -1,15 +0,0 @@
define(["require", "exports"], function (require, exports) {
exports.m2_a1 = 10;
var m2_c1 = (function () {
function m2_c1() {
}
return m2_c1;
})();
exports.m2_c1 = m2_c1;
exports.m2_instance1 = new m2_c1();
function m2_f1() {
return exports.m2_instance1;
}
exports.m2_f1 = m2_f1;
});
//# sourceMappingURL=/tests/cases/projects/outputdir_mixed_subfolder/mapFiles/ref/m2.js.map
@@ -1 +0,0 @@
{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"}
@@ -1,10 +1,17 @@
/// <reference path="../ref/m2.d.ts" />
declare var m1_a1: number;
declare class m1_c1 {
m1_c1_p1: number;
}
declare var m1_instance1: m1_c1;
declare function m1_f1(): m1_c1;
declare module "ref/m2" {
export var m2_a1: number;
export class m2_c1 {
m2_c1_p1: number;
}
export var m2_instance1: m2_c1;
export function m2_f1(): m2_c1;
}
declare var a1: number;
declare class c1 {
p1: number;
@@ -1 +1 @@
{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"}
{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../ref/m2.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;AERD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"}
@@ -0,0 +1,36 @@
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
var m1_a1 = 10;
class m1_c1 {
public m1_c1_p1: number;
}
var m1_instance1 = new m1_c1();
function m1_f1() {
return m1_instance1;
}
==== m2.ts (0 errors) ====
export var m2_a1 = 10;
export class m2_c1 {
public m2_c1_p1: number;
}
export var m2_instance1 = new m2_c1();
export function m2_f1() {
return m2_instance1;
}
==== test.ts (0 errors) ====
/// <reference path='ref/m1.ts'/>
/// <reference path='ref/m2.ts'/>
var a1 = 10;
class c1 {
public p1: number;
}
var instance1 = new c1();
function f1() {
return instance1;
}
@@ -17,9 +17,6 @@
"test.ts"
],
"emittedFiles": [
"ref/m2.js.map",
"ref/m2.js",
"ref/m2.d.ts",
"bin/test.js.map",
"bin/test.js",
"bin/test.d.ts"
@@ -1,179 +1,8 @@
===================================================================
JsFile: m2.js
mapUrl: /tests/cases/projects/outputdir_mixed_subfolder/mapFiles/ref/m2.js.map
sourceRoot:
sources: ../../ref/m2.ts
===================================================================
-------------------------------------------------------------------
emittedFile:ref/m2.js
sourceFile:../../ref/m2.ts
-------------------------------------------------------------------
>>>exports.m2_a1 = 10;
1 >
2 >^^^^^^^^^^^^^
3 > ^^^
4 > ^^
5 > ^
6 > ^^^^^^^^->
1 >export var
2 >m2_a1
3 > =
4 > 10
5 > ;
1 >Emitted(1, 1) Source(1, 12) + SourceIndex(0)
2 >Emitted(1, 14) Source(1, 17) + SourceIndex(0)
3 >Emitted(1, 17) Source(1, 20) + SourceIndex(0)
4 >Emitted(1, 19) Source(1, 22) + SourceIndex(0)
5 >Emitted(1, 20) Source(1, 23) + SourceIndex(0)
---
>>>var m2_c1 = (function () {
1->
2 >^^^^^^^^^^^^^^^^^^^^^^^->
1->
>
1->Emitted(2, 1) Source(2, 1) + SourceIndex(0)
---
>>> function m2_c1() {
1->^^^^
2 > ^^->
1->
1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m2_c1)
---
>>> }
1->^^^^
2 > ^
3 > ^^^^^^^^^^^^^->
1->export class m2_c1 {
> public m2_c1_p1: number;
>
2 > }
1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor)
2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor)
---
>>> return m2_c1;
1->^^^^
2 > ^^^^^^^^^^^^
1->
2 > }
1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1)
2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m2_c1)
---
>>>})();
1 >
2 >^
3 >
4 > ^^^^
5 > ^^^^^^^^^^^^^^^^^^->
1 >
2 >}
3 >
4 > export class m2_c1 {
> public m2_c1_p1: number;
> }
1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m2_c1)
2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m2_c1)
3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0)
4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0)
---
>>>exports.m2_c1 = m2_c1;
1->
2 >^^^^^^^^^^^^^
3 > ^^^^^^^^
4 > ^
5 > ^^^^^^^^^^^^^^->
1->
2 >m2_c1
3 > {
> public m2_c1_p1: number;
> }
4 >
1->Emitted(7, 1) Source(2, 14) + SourceIndex(0)
2 >Emitted(7, 14) Source(2, 19) + SourceIndex(0)
3 >Emitted(7, 22) Source(4, 2) + SourceIndex(0)
4 >Emitted(7, 23) Source(4, 2) + SourceIndex(0)
---
>>>exports.m2_instance1 = new m2_c1();
1->
2 >^^^^^^^^^^^^^^^^^^^^
3 > ^^^
4 > ^^^^
5 > ^^^^^
6 > ^^
7 > ^
1->
>
>export var
2 >m2_instance1
3 > =
4 > new
5 > m2_c1
6 > ()
7 > ;
1->Emitted(8, 1) Source(6, 12) + SourceIndex(0)
2 >Emitted(8, 21) Source(6, 24) + SourceIndex(0)
3 >Emitted(8, 24) Source(6, 27) + SourceIndex(0)
4 >Emitted(8, 28) Source(6, 31) + SourceIndex(0)
5 >Emitted(8, 33) Source(6, 36) + SourceIndex(0)
6 >Emitted(8, 35) Source(6, 38) + SourceIndex(0)
7 >Emitted(8, 36) Source(6, 39) + SourceIndex(0)
---
>>>function m2_f1() {
1 >
2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
>
1 >Emitted(9, 1) Source(7, 1) + SourceIndex(0)
---
>>> return exports.m2_instance1;
1->^^^^
2 > ^^^^^^
3 > ^
4 > ^^^^^^^^^^^^^^^^^^^^
5 > ^
1->export function m2_f1() {
>
2 > return
3 >
4 > m2_instance1
5 > ;
1->Emitted(10, 5) Source(8, 5) + SourceIndex(0) name (m2_f1)
2 >Emitted(10, 11) Source(8, 11) + SourceIndex(0) name (m2_f1)
3 >Emitted(10, 12) Source(8, 12) + SourceIndex(0) name (m2_f1)
4 >Emitted(10, 32) Source(8, 24) + SourceIndex(0) name (m2_f1)
5 >Emitted(10, 33) Source(8, 25) + SourceIndex(0) name (m2_f1)
---
>>>}
1 >
2 >^
3 > ^^^^^^^^^^^^^^^^^^^^^^->
1 >
>
2 >}
1 >Emitted(11, 1) Source(9, 1) + SourceIndex(0) name (m2_f1)
2 >Emitted(11, 2) Source(9, 2) + SourceIndex(0) name (m2_f1)
---
>>>exports.m2_f1 = m2_f1;
1->
2 >^^^^^^^^^^^^^
3 > ^^^^^^^^
4 > ^
5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1->
2 >m2_f1
3 > () {
> return m2_instance1;
> }
4 >
1->Emitted(12, 1) Source(7, 17) + SourceIndex(0)
2 >Emitted(12, 14) Source(7, 22) + SourceIndex(0)
3 >Emitted(12, 22) Source(9, 2) + SourceIndex(0)
4 >Emitted(12, 23) Source(9, 2) + SourceIndex(0)
---
>>>//# sourceMappingURL=/tests/cases/projects/outputdir_mixed_subfolder/mapFiles/ref/m2.js.map===================================================================
JsFile: test.js
mapUrl: /tests/cases/projects/outputdir_mixed_subfolder/mapFiles/test.js.map
sourceRoot:
sources: ../ref/m1.ts,../test.ts
sources: ../ref/m1.ts,../ref/m2.ts,../test.ts
===================================================================
-------------------------------------------------------------------
emittedFile:bin/test.js
@@ -322,8 +151,8 @@ sourceFile:../test.ts
3 > ^->
1->
2 >/// <reference path='ref/m1.ts'/>
1->Emitted(11, 1) Source(1, 1) + SourceIndex(1)
2 >Emitted(11, 34) Source(1, 34) + SourceIndex(1)
1->Emitted(11, 1) Source(1, 1) + SourceIndex(2)
2 >Emitted(11, 34) Source(1, 34) + SourceIndex(2)
---
>>>/// <reference path='ref/m2.ts'/>
1->
@@ -331,8 +160,8 @@ sourceFile:../test.ts
1->
>
2 >/// <reference path='ref/m2.ts'/>
1->Emitted(12, 1) Source(2, 1) + SourceIndex(1)
2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1)
1->Emitted(12, 1) Source(2, 1) + SourceIndex(2)
2 >Emitted(12, 34) Source(2, 34) + SourceIndex(2)
---
>>>var a1 = 10;
1 >
@@ -349,25 +178,25 @@ sourceFile:../test.ts
4 > =
5 > 10
6 > ;
1 >Emitted(13, 1) Source(3, 1) + SourceIndex(1)
2 >Emitted(13, 5) Source(3, 5) + SourceIndex(1)
3 >Emitted(13, 7) Source(3, 7) + SourceIndex(1)
4 >Emitted(13, 10) Source(3, 10) + SourceIndex(1)
5 >Emitted(13, 12) Source(3, 12) + SourceIndex(1)
6 >Emitted(13, 13) Source(3, 13) + SourceIndex(1)
1 >Emitted(13, 1) Source(3, 1) + SourceIndex(2)
2 >Emitted(13, 5) Source(3, 5) + SourceIndex(2)
3 >Emitted(13, 7) Source(3, 7) + SourceIndex(2)
4 >Emitted(13, 10) Source(3, 10) + SourceIndex(2)
5 >Emitted(13, 12) Source(3, 12) + SourceIndex(2)
6 >Emitted(13, 13) Source(3, 13) + SourceIndex(2)
---
>>>var c1 = (function () {
1->
2 >^^^^^^^^^^^^^^^^^^^^->
1->
>
1->Emitted(14, 1) Source(4, 1) + SourceIndex(1)
1->Emitted(14, 1) Source(4, 1) + SourceIndex(2)
---
>>> function c1() {
1->^^^^
2 > ^^->
1->
1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1)
1->Emitted(15, 5) Source(4, 1) + SourceIndex(2) name (c1)
---
>>> }
1->^^^^
@@ -377,16 +206,16 @@ sourceFile:../test.ts
> public p1: number;
>
2 > }
1->Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor)
2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor)
1->Emitted(16, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor)
2 >Emitted(16, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor)
---
>>> return c1;
1->^^^^
2 > ^^^^^^^^^
1->
2 > }
1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1)
2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1)
1->Emitted(17, 5) Source(6, 1) + SourceIndex(2) name (c1)
2 >Emitted(17, 14) Source(6, 2) + SourceIndex(2) name (c1)
---
>>>})();
1 >
@@ -400,10 +229,10 @@ sourceFile:../test.ts
4 > class c1 {
> public p1: number;
> }
1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1)
2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1)
3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1)
4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1)
1 >Emitted(18, 1) Source(6, 1) + SourceIndex(2) name (c1)
2 >Emitted(18, 2) Source(6, 2) + SourceIndex(2) name (c1)
3 >Emitted(18, 2) Source(4, 1) + SourceIndex(2)
4 >Emitted(18, 6) Source(6, 2) + SourceIndex(2)
---
>>>var instance1 = new c1();
1->
@@ -424,21 +253,21 @@ sourceFile:../test.ts
6 > c1
7 > ()
8 > ;
1->Emitted(19, 1) Source(8, 1) + SourceIndex(1)
2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1)
3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1)
4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1)
5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1)
6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1)
7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1)
8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1)
1->Emitted(19, 1) Source(8, 1) + SourceIndex(2)
2 >Emitted(19, 5) Source(8, 5) + SourceIndex(2)
3 >Emitted(19, 14) Source(8, 14) + SourceIndex(2)
4 >Emitted(19, 17) Source(8, 17) + SourceIndex(2)
5 >Emitted(19, 21) Source(8, 21) + SourceIndex(2)
6 >Emitted(19, 23) Source(8, 23) + SourceIndex(2)
7 >Emitted(19, 25) Source(8, 25) + SourceIndex(2)
8 >Emitted(19, 26) Source(8, 26) + SourceIndex(2)
---
>>>function f1() {
1 >
2 >^^^^^^^^^^^^^^^^^^^^^^->
1 >
>
1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1)
1 >Emitted(20, 1) Source(9, 1) + SourceIndex(2)
---
>>> return instance1;
1->^^^^
@@ -452,11 +281,11 @@ sourceFile:../test.ts
3 >
4 > instance1
5 > ;
1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1)
2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1)
3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1)
4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1)
5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1)
1->Emitted(21, 5) Source(10, 5) + SourceIndex(2) name (f1)
2 >Emitted(21, 11) Source(10, 11) + SourceIndex(2) name (f1)
3 >Emitted(21, 12) Source(10, 12) + SourceIndex(2) name (f1)
4 >Emitted(21, 21) Source(10, 21) + SourceIndex(2) name (f1)
5 >Emitted(21, 22) Source(10, 22) + SourceIndex(2) name (f1)
---
>>>}
1 >
@@ -465,7 +294,7 @@ sourceFile:../test.ts
1 >
>
2 >}
1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1)
2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1)
1 >Emitted(22, 1) Source(11, 1) + SourceIndex(2) name (f1)
2 >Emitted(22, 2) Source(11, 2) + SourceIndex(2) name (f1)
---
>>>//# sourceMappingURL=/tests/cases/projects/outputdir_mixed_subfolder/mapFiles/test.js.map
@@ -1,6 +0,0 @@
export declare var m2_a1: number;
export declare class m2_c1 {
m2_c1_p1: number;
}
export declare var m2_instance1: m2_c1;
export declare function m2_f1(): m2_c1;
@@ -1,13 +0,0 @@
exports.m2_a1 = 10;
var m2_c1 = (function () {
function m2_c1() {
}
return m2_c1;
})();
exports.m2_c1 = m2_c1;
exports.m2_instance1 = new m2_c1();
function m2_f1() {
return exports.m2_instance1;
}
exports.m2_f1 = m2_f1;
//# sourceMappingURL=/tests/cases/projects/outputdir_mixed_subfolder/mapFiles/ref/m2.js.map
@@ -1 +0,0 @@
{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":"AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"}
@@ -1,10 +1,17 @@
/// <reference path="../outdir/outAndOutDirFolder/ref/m2.d.ts" />
declare var m1_a1: number;
declare class m1_c1 {
m1_c1_p1: number;
}
declare var m1_instance1: m1_c1;
declare function m1_f1(): m1_c1;
declare module "ref/m2" {
export var m2_a1: number;
export class m2_c1 {
m2_c1_p1: number;
}
export var m2_instance1: m2_c1;
export function m2_f1(): m2_c1;
}
declare var a1: number;
declare class c1 {
p1: number;
@@ -8,6 +8,20 @@ var m1_instance1 = new m1_c1();
function m1_f1() {
return m1_instance1;
}
define("ref/m2", ["require", "exports"], function (require, exports) {
exports.m2_a1 = 10;
var m2_c1 = (function () {
function m2_c1() {
}
return m2_c1;
})();
exports.m2_c1 = m2_c1;
exports.m2_instance1 = new m2_c1();
function m2_f1() {
return exports.m2_instance1;
}
exports.m2_f1 = m2_f1;
});
/// <reference path='ref/m1.ts'/>
/// <reference path='ref/m2.ts'/>
var a1 = 10;
@@ -1 +1 @@
{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"}
{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"","sources":["../ref/m1.ts","../ref/m2.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAC;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;ACRD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"}
@@ -18,9 +18,6 @@
"test.ts"
],
"emittedFiles": [
"outdir/outAndOutDirFolder/ref/m2.js.map",
"outdir/outAndOutDirFolder/ref/m2.js",
"outdir/outAndOutDirFolder/ref/m2.d.ts",
"bin/outAndOutDirFile.js.map",
"bin/outAndOutDirFile.js",
"bin/outAndOutDirFile.d.ts"
@@ -1,180 +1,8 @@
===================================================================
JsFile: m2.js
mapUrl: /tests/cases/projects/outputdir_mixed_subfolder/mapFiles/ref/m2.js.map
sourceRoot:
sources: ../../ref/m2.ts
===================================================================
-------------------------------------------------------------------
emittedFile:outdir/outAndOutDirFolder/ref/m2.js
sourceFile:../../ref/m2.ts
-------------------------------------------------------------------
>>>define(["require", "exports"], function (require, exports) {
>>> exports.m2_a1 = 10;
1 >^^^^
2 > ^^^^^^^^^^^^^
3 > ^^^
4 > ^^
5 > ^
6 > ^^^^^^^^->
1 >export var
2 > m2_a1
3 > =
4 > 10
5 > ;
1 >Emitted(2, 5) Source(1, 12) + SourceIndex(0)
2 >Emitted(2, 18) Source(1, 17) + SourceIndex(0)
3 >Emitted(2, 21) Source(1, 20) + SourceIndex(0)
4 >Emitted(2, 23) Source(1, 22) + SourceIndex(0)
5 >Emitted(2, 24) Source(1, 23) + SourceIndex(0)
---
>>> var m2_c1 = (function () {
1->^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^^->
1->
>
1->Emitted(3, 5) Source(2, 1) + SourceIndex(0)
---
>>> function m2_c1() {
1->^^^^^^^^
2 > ^^->
1->
1->Emitted(4, 9) Source(2, 1) + SourceIndex(0) name (m2_c1)
---
>>> }
1->^^^^^^^^
2 > ^
3 > ^^^^^^^^^^^^^->
1->export class m2_c1 {
> public m2_c1_p1: number;
>
2 > }
1->Emitted(5, 9) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor)
2 >Emitted(5, 10) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor)
---
>>> return m2_c1;
1->^^^^^^^^
2 > ^^^^^^^^^^^^
1->
2 > }
1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m2_c1)
2 >Emitted(6, 21) Source(4, 2) + SourceIndex(0) name (m2_c1)
---
>>> })();
1 >^^^^
2 > ^
3 >
4 > ^^^^
5 > ^^^^^^^^^^^^^^^^^^->
1 >
2 > }
3 >
4 > export class m2_c1 {
> public m2_c1_p1: number;
> }
1 >Emitted(7, 5) Source(4, 1) + SourceIndex(0) name (m2_c1)
2 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) name (m2_c1)
3 >Emitted(7, 6) Source(2, 1) + SourceIndex(0)
4 >Emitted(7, 10) Source(4, 2) + SourceIndex(0)
---
>>> exports.m2_c1 = m2_c1;
1->^^^^
2 > ^^^^^^^^^^^^^
3 > ^^^^^^^^
4 > ^
5 > ^^^^^^^^^^^^^^->
1->
2 > m2_c1
3 > {
> public m2_c1_p1: number;
> }
4 >
1->Emitted(8, 5) Source(2, 14) + SourceIndex(0)
2 >Emitted(8, 18) Source(2, 19) + SourceIndex(0)
3 >Emitted(8, 26) Source(4, 2) + SourceIndex(0)
4 >Emitted(8, 27) Source(4, 2) + SourceIndex(0)
---
>>> exports.m2_instance1 = new m2_c1();
1->^^^^
2 > ^^^^^^^^^^^^^^^^^^^^
3 > ^^^
4 > ^^^^
5 > ^^^^^
6 > ^^
7 > ^
1->
>
>export var
2 > m2_instance1
3 > =
4 > new
5 > m2_c1
6 > ()
7 > ;
1->Emitted(9, 5) Source(6, 12) + SourceIndex(0)
2 >Emitted(9, 25) Source(6, 24) + SourceIndex(0)
3 >Emitted(9, 28) Source(6, 27) + SourceIndex(0)
4 >Emitted(9, 32) Source(6, 31) + SourceIndex(0)
5 >Emitted(9, 37) Source(6, 36) + SourceIndex(0)
6 >Emitted(9, 39) Source(6, 38) + SourceIndex(0)
7 >Emitted(9, 40) Source(6, 39) + SourceIndex(0)
---
>>> function m2_f1() {
1 >^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
>
1 >Emitted(10, 5) Source(7, 1) + SourceIndex(0)
---
>>> return exports.m2_instance1;
1->^^^^^^^^
2 > ^^^^^^
3 > ^
4 > ^^^^^^^^^^^^^^^^^^^^
5 > ^
1->export function m2_f1() {
>
2 > return
3 >
4 > m2_instance1
5 > ;
1->Emitted(11, 9) Source(8, 5) + SourceIndex(0) name (m2_f1)
2 >Emitted(11, 15) Source(8, 11) + SourceIndex(0) name (m2_f1)
3 >Emitted(11, 16) Source(8, 12) + SourceIndex(0) name (m2_f1)
4 >Emitted(11, 36) Source(8, 24) + SourceIndex(0) name (m2_f1)
5 >Emitted(11, 37) Source(8, 25) + SourceIndex(0) name (m2_f1)
---
>>> }
1 >^^^^
2 > ^
3 > ^^^^^^^^^^^^^^^^^^^^^^->
1 >
>
2 > }
1 >Emitted(12, 5) Source(9, 1) + SourceIndex(0) name (m2_f1)
2 >Emitted(12, 6) Source(9, 2) + SourceIndex(0) name (m2_f1)
---
>>> exports.m2_f1 = m2_f1;
1->^^^^
2 > ^^^^^^^^^^^^^
3 > ^^^^^^^^
4 > ^
1->
2 > m2_f1
3 > () {
> return m2_instance1;
> }
4 >
1->Emitted(13, 5) Source(7, 17) + SourceIndex(0)
2 >Emitted(13, 18) Source(7, 22) + SourceIndex(0)
3 >Emitted(13, 26) Source(9, 2) + SourceIndex(0)
4 >Emitted(13, 27) Source(9, 2) + SourceIndex(0)
---
>>>});
>>>//# sourceMappingURL=/tests/cases/projects/outputdir_mixed_subfolder/mapFiles/ref/m2.js.map===================================================================
JsFile: outAndOutDirFile.js
mapUrl: /tests/cases/projects/outputdir_mixed_subfolder/mapFiles/outAndOutDirFile.js.map
sourceRoot:
sources: ../ref/m1.ts,../test.ts
sources: ../ref/m1.ts,../ref/m2.ts,../test.ts
===================================================================
-------------------------------------------------------------------
emittedFile:bin/outAndOutDirFile.js
@@ -306,7 +134,7 @@ sourceFile:../ref/m1.ts
>>>}
1 >
2 >^
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
>
2 >}
@@ -315,16 +143,182 @@ sourceFile:../ref/m1.ts
---
-------------------------------------------------------------------
emittedFile:bin/outAndOutDirFile.js
sourceFile:../ref/m2.ts
-------------------------------------------------------------------
>>>define("ref/m2", ["require", "exports"], function (require, exports) {
>>> exports.m2_a1 = 10;
1->^^^^
2 > ^^^^^^^^^^^^^
3 > ^^^
4 > ^^
5 > ^
6 > ^^^^^^^^->
1->export var
2 > m2_a1
3 > =
4 > 10
5 > ;
1->Emitted(12, 5) Source(1, 12) + SourceIndex(1)
2 >Emitted(12, 18) Source(1, 17) + SourceIndex(1)
3 >Emitted(12, 21) Source(1, 20) + SourceIndex(1)
4 >Emitted(12, 23) Source(1, 22) + SourceIndex(1)
5 >Emitted(12, 24) Source(1, 23) + SourceIndex(1)
---
>>> var m2_c1 = (function () {
1->^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^^->
1->
>
1->Emitted(13, 5) Source(2, 1) + SourceIndex(1)
---
>>> function m2_c1() {
1->^^^^^^^^
2 > ^^->
1->
1->Emitted(14, 9) Source(2, 1) + SourceIndex(1) name (m2_c1)
---
>>> }
1->^^^^^^^^
2 > ^
3 > ^^^^^^^^^^^^^->
1->export class m2_c1 {
> public m2_c1_p1: number;
>
2 > }
1->Emitted(15, 9) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor)
2 >Emitted(15, 10) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor)
---
>>> return m2_c1;
1->^^^^^^^^
2 > ^^^^^^^^^^^^
1->
2 > }
1->Emitted(16, 9) Source(4, 1) + SourceIndex(1) name (m2_c1)
2 >Emitted(16, 21) Source(4, 2) + SourceIndex(1) name (m2_c1)
---
>>> })();
1 >^^^^
2 > ^
3 >
4 > ^^^^
5 > ^^^^^^^^^^^^^^^^^^->
1 >
2 > }
3 >
4 > export class m2_c1 {
> public m2_c1_p1: number;
> }
1 >Emitted(17, 5) Source(4, 1) + SourceIndex(1) name (m2_c1)
2 >Emitted(17, 6) Source(4, 2) + SourceIndex(1) name (m2_c1)
3 >Emitted(17, 6) Source(2, 1) + SourceIndex(1)
4 >Emitted(17, 10) Source(4, 2) + SourceIndex(1)
---
>>> exports.m2_c1 = m2_c1;
1->^^^^
2 > ^^^^^^^^^^^^^
3 > ^^^^^^^^
4 > ^
5 > ^^^^^^^^^^^^^^->
1->
2 > m2_c1
3 > {
> public m2_c1_p1: number;
> }
4 >
1->Emitted(18, 5) Source(2, 14) + SourceIndex(1)
2 >Emitted(18, 18) Source(2, 19) + SourceIndex(1)
3 >Emitted(18, 26) Source(4, 2) + SourceIndex(1)
4 >Emitted(18, 27) Source(4, 2) + SourceIndex(1)
---
>>> exports.m2_instance1 = new m2_c1();
1->^^^^
2 > ^^^^^^^^^^^^^^^^^^^^
3 > ^^^
4 > ^^^^
5 > ^^^^^
6 > ^^
7 > ^
1->
>
>export var
2 > m2_instance1
3 > =
4 > new
5 > m2_c1
6 > ()
7 > ;
1->Emitted(19, 5) Source(6, 12) + SourceIndex(1)
2 >Emitted(19, 25) Source(6, 24) + SourceIndex(1)
3 >Emitted(19, 28) Source(6, 27) + SourceIndex(1)
4 >Emitted(19, 32) Source(6, 31) + SourceIndex(1)
5 >Emitted(19, 37) Source(6, 36) + SourceIndex(1)
6 >Emitted(19, 39) Source(6, 38) + SourceIndex(1)
7 >Emitted(19, 40) Source(6, 39) + SourceIndex(1)
---
>>> function m2_f1() {
1 >^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
>
1 >Emitted(20, 5) Source(7, 1) + SourceIndex(1)
---
>>> return exports.m2_instance1;
1->^^^^^^^^
2 > ^^^^^^
3 > ^
4 > ^^^^^^^^^^^^^^^^^^^^
5 > ^
1->export function m2_f1() {
>
2 > return
3 >
4 > m2_instance1
5 > ;
1->Emitted(21, 9) Source(8, 5) + SourceIndex(1) name (m2_f1)
2 >Emitted(21, 15) Source(8, 11) + SourceIndex(1) name (m2_f1)
3 >Emitted(21, 16) Source(8, 12) + SourceIndex(1) name (m2_f1)
4 >Emitted(21, 36) Source(8, 24) + SourceIndex(1) name (m2_f1)
5 >Emitted(21, 37) Source(8, 25) + SourceIndex(1) name (m2_f1)
---
>>> }
1 >^^^^
2 > ^
3 > ^^^^^^^^^^^^^^^^^^^^^^->
1 >
>
2 > }
1 >Emitted(22, 5) Source(9, 1) + SourceIndex(1) name (m2_f1)
2 >Emitted(22, 6) Source(9, 2) + SourceIndex(1) name (m2_f1)
---
>>> exports.m2_f1 = m2_f1;
1->^^^^
2 > ^^^^^^^^^^^^^
3 > ^^^^^^^^
4 > ^
1->
2 > m2_f1
3 > () {
> return m2_instance1;
> }
4 >
1->Emitted(23, 5) Source(7, 17) + SourceIndex(1)
2 >Emitted(23, 18) Source(7, 22) + SourceIndex(1)
3 >Emitted(23, 26) Source(9, 2) + SourceIndex(1)
4 >Emitted(23, 27) Source(9, 2) + SourceIndex(1)
---
-------------------------------------------------------------------
emittedFile:bin/outAndOutDirFile.js
sourceFile:../test.ts
-------------------------------------------------------------------
>>>});
>>>/// <reference path='ref/m1.ts'/>
1->
1 >
2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3 > ^->
1->
1 >
2 >/// <reference path='ref/m1.ts'/>
1->Emitted(11, 1) Source(1, 1) + SourceIndex(1)
2 >Emitted(11, 34) Source(1, 34) + SourceIndex(1)
1 >Emitted(25, 1) Source(1, 1) + SourceIndex(2)
2 >Emitted(25, 34) Source(1, 34) + SourceIndex(2)
---
>>>/// <reference path='ref/m2.ts'/>
1->
@@ -332,8 +326,8 @@ sourceFile:../test.ts
1->
>
2 >/// <reference path='ref/m2.ts'/>
1->Emitted(12, 1) Source(2, 1) + SourceIndex(1)
2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1)
1->Emitted(26, 1) Source(2, 1) + SourceIndex(2)
2 >Emitted(26, 34) Source(2, 34) + SourceIndex(2)
---
>>>var a1 = 10;
1 >
@@ -350,25 +344,25 @@ sourceFile:../test.ts
4 > =
5 > 10
6 > ;
1 >Emitted(13, 1) Source(3, 1) + SourceIndex(1)
2 >Emitted(13, 5) Source(3, 5) + SourceIndex(1)
3 >Emitted(13, 7) Source(3, 7) + SourceIndex(1)
4 >Emitted(13, 10) Source(3, 10) + SourceIndex(1)
5 >Emitted(13, 12) Source(3, 12) + SourceIndex(1)
6 >Emitted(13, 13) Source(3, 13) + SourceIndex(1)
1 >Emitted(27, 1) Source(3, 1) + SourceIndex(2)
2 >Emitted(27, 5) Source(3, 5) + SourceIndex(2)
3 >Emitted(27, 7) Source(3, 7) + SourceIndex(2)
4 >Emitted(27, 10) Source(3, 10) + SourceIndex(2)
5 >Emitted(27, 12) Source(3, 12) + SourceIndex(2)
6 >Emitted(27, 13) Source(3, 13) + SourceIndex(2)
---
>>>var c1 = (function () {
1->
2 >^^^^^^^^^^^^^^^^^^^^->
1->
>
1->Emitted(14, 1) Source(4, 1) + SourceIndex(1)
1->Emitted(28, 1) Source(4, 1) + SourceIndex(2)
---
>>> function c1() {
1->^^^^
2 > ^^->
1->
1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1)
1->Emitted(29, 5) Source(4, 1) + SourceIndex(2) name (c1)
---
>>> }
1->^^^^
@@ -378,16 +372,16 @@ sourceFile:../test.ts
> public p1: number;
>
2 > }
1->Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor)
2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor)
1->Emitted(30, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor)
2 >Emitted(30, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor)
---
>>> return c1;
1->^^^^
2 > ^^^^^^^^^
1->
2 > }
1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1)
2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1)
1->Emitted(31, 5) Source(6, 1) + SourceIndex(2) name (c1)
2 >Emitted(31, 14) Source(6, 2) + SourceIndex(2) name (c1)
---
>>>})();
1 >
@@ -401,10 +395,10 @@ sourceFile:../test.ts
4 > class c1 {
> public p1: number;
> }
1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1)
2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1)
3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1)
4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1)
1 >Emitted(32, 1) Source(6, 1) + SourceIndex(2) name (c1)
2 >Emitted(32, 2) Source(6, 2) + SourceIndex(2) name (c1)
3 >Emitted(32, 2) Source(4, 1) + SourceIndex(2)
4 >Emitted(32, 6) Source(6, 2) + SourceIndex(2)
---
>>>var instance1 = new c1();
1->
@@ -425,21 +419,21 @@ sourceFile:../test.ts
6 > c1
7 > ()
8 > ;
1->Emitted(19, 1) Source(8, 1) + SourceIndex(1)
2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1)
3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1)
4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1)
5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1)
6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1)
7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1)
8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1)
1->Emitted(33, 1) Source(8, 1) + SourceIndex(2)
2 >Emitted(33, 5) Source(8, 5) + SourceIndex(2)
3 >Emitted(33, 14) Source(8, 14) + SourceIndex(2)
4 >Emitted(33, 17) Source(8, 17) + SourceIndex(2)
5 >Emitted(33, 21) Source(8, 21) + SourceIndex(2)
6 >Emitted(33, 23) Source(8, 23) + SourceIndex(2)
7 >Emitted(33, 25) Source(8, 25) + SourceIndex(2)
8 >Emitted(33, 26) Source(8, 26) + SourceIndex(2)
---
>>>function f1() {
1 >
2 >^^^^^^^^^^^^^^^^^^^^^^->
1 >
>
1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1)
1 >Emitted(34, 1) Source(9, 1) + SourceIndex(2)
---
>>> return instance1;
1->^^^^
@@ -453,11 +447,11 @@ sourceFile:../test.ts
3 >
4 > instance1
5 > ;
1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1)
2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1)
3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1)
4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1)
5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1)
1->Emitted(35, 5) Source(10, 5) + SourceIndex(2) name (f1)
2 >Emitted(35, 11) Source(10, 11) + SourceIndex(2) name (f1)
3 >Emitted(35, 12) Source(10, 12) + SourceIndex(2) name (f1)
4 >Emitted(35, 21) Source(10, 21) + SourceIndex(2) name (f1)
5 >Emitted(35, 22) Source(10, 22) + SourceIndex(2) name (f1)
---
>>>}
1 >
@@ -466,7 +460,7 @@ sourceFile:../test.ts
1 >
>
2 >}
1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1)
2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1)
1 >Emitted(36, 1) Source(11, 1) + SourceIndex(2) name (f1)
2 >Emitted(36, 2) Source(11, 2) + SourceIndex(2) name (f1)
---
>>>//# sourceMappingURL=/tests/cases/projects/outputdir_mixed_subfolder/mapFiles/outAndOutDirFile.js.map
@@ -1,6 +0,0 @@
export declare var m2_a1: number;
export declare class m2_c1 {
m2_c1_p1: number;
}
export declare var m2_instance1: m2_c1;
export declare function m2_f1(): m2_c1;
@@ -1,15 +0,0 @@
define(["require", "exports"], function (require, exports) {
exports.m2_a1 = 10;
var m2_c1 = (function () {
function m2_c1() {
}
return m2_c1;
})();
exports.m2_c1 = m2_c1;
exports.m2_instance1 = new m2_c1();
function m2_f1() {
return exports.m2_instance1;
}
exports.m2_f1 = m2_f1;
});
//# sourceMappingURL=/tests/cases/projects/outputdir_mixed_subfolder/mapFiles/ref/m2.js.map
@@ -1 +0,0 @@
{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"}
@@ -1,10 +1,17 @@
/// <reference path="../outdir/outAndOutDirFolder/ref/m2.d.ts" />
declare var m1_a1: number;
declare class m1_c1 {
m1_c1_p1: number;
}
declare var m1_instance1: m1_c1;
declare function m1_f1(): m1_c1;
declare module "ref/m2" {
export var m2_a1: number;
export class m2_c1 {
m2_c1_p1: number;
}
export var m2_instance1: m2_c1;
export function m2_f1(): m2_c1;
}
declare var a1: number;
declare class c1 {
p1: number;
@@ -1 +1 @@
{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"}
{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"","sources":["../ref/m1.ts","../ref/m2.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;AERD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"}
@@ -0,0 +1,36 @@
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
var m1_a1 = 10;
class m1_c1 {
public m1_c1_p1: number;
}
var m1_instance1 = new m1_c1();
function m1_f1() {
return m1_instance1;
}
==== m2.ts (0 errors) ====
export var m2_a1 = 10;
export class m2_c1 {
public m2_c1_p1: number;
}
export var m2_instance1 = new m2_c1();
export function m2_f1() {
return m2_instance1;
}
==== test.ts (0 errors) ====
/// <reference path='ref/m1.ts'/>
/// <reference path='ref/m2.ts'/>
var a1 = 10;
class c1 {
public p1: number;
}
var instance1 = new c1();
function f1() {
return instance1;
}
@@ -18,9 +18,6 @@
"test.ts"
],
"emittedFiles": [
"outdir/outAndOutDirFolder/ref/m2.js.map",
"outdir/outAndOutDirFolder/ref/m2.js",
"outdir/outAndOutDirFolder/ref/m2.d.ts",
"bin/outAndOutDirFile.js.map",
"bin/outAndOutDirFile.js",
"bin/outAndOutDirFile.d.ts"
@@ -1,179 +1,8 @@
===================================================================
JsFile: m2.js
mapUrl: /tests/cases/projects/outputdir_mixed_subfolder/mapFiles/ref/m2.js.map
sourceRoot:
sources: ../../ref/m2.ts
===================================================================
-------------------------------------------------------------------
emittedFile:outdir/outAndOutDirFolder/ref/m2.js
sourceFile:../../ref/m2.ts
-------------------------------------------------------------------
>>>exports.m2_a1 = 10;
1 >
2 >^^^^^^^^^^^^^
3 > ^^^
4 > ^^
5 > ^
6 > ^^^^^^^^->
1 >export var
2 >m2_a1
3 > =
4 > 10
5 > ;
1 >Emitted(1, 1) Source(1, 12) + SourceIndex(0)
2 >Emitted(1, 14) Source(1, 17) + SourceIndex(0)
3 >Emitted(1, 17) Source(1, 20) + SourceIndex(0)
4 >Emitted(1, 19) Source(1, 22) + SourceIndex(0)
5 >Emitted(1, 20) Source(1, 23) + SourceIndex(0)
---
>>>var m2_c1 = (function () {
1->
2 >^^^^^^^^^^^^^^^^^^^^^^^->
1->
>
1->Emitted(2, 1) Source(2, 1) + SourceIndex(0)
---
>>> function m2_c1() {
1->^^^^
2 > ^^->
1->
1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m2_c1)
---
>>> }
1->^^^^
2 > ^
3 > ^^^^^^^^^^^^^->
1->export class m2_c1 {
> public m2_c1_p1: number;
>
2 > }
1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor)
2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor)
---
>>> return m2_c1;
1->^^^^
2 > ^^^^^^^^^^^^
1->
2 > }
1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1)
2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m2_c1)
---
>>>})();
1 >
2 >^
3 >
4 > ^^^^
5 > ^^^^^^^^^^^^^^^^^^->
1 >
2 >}
3 >
4 > export class m2_c1 {
> public m2_c1_p1: number;
> }
1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m2_c1)
2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m2_c1)
3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0)
4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0)
---
>>>exports.m2_c1 = m2_c1;
1->
2 >^^^^^^^^^^^^^
3 > ^^^^^^^^
4 > ^
5 > ^^^^^^^^^^^^^^->
1->
2 >m2_c1
3 > {
> public m2_c1_p1: number;
> }
4 >
1->Emitted(7, 1) Source(2, 14) + SourceIndex(0)
2 >Emitted(7, 14) Source(2, 19) + SourceIndex(0)
3 >Emitted(7, 22) Source(4, 2) + SourceIndex(0)
4 >Emitted(7, 23) Source(4, 2) + SourceIndex(0)
---
>>>exports.m2_instance1 = new m2_c1();
1->
2 >^^^^^^^^^^^^^^^^^^^^
3 > ^^^
4 > ^^^^
5 > ^^^^^
6 > ^^
7 > ^
1->
>
>export var
2 >m2_instance1
3 > =
4 > new
5 > m2_c1
6 > ()
7 > ;
1->Emitted(8, 1) Source(6, 12) + SourceIndex(0)
2 >Emitted(8, 21) Source(6, 24) + SourceIndex(0)
3 >Emitted(8, 24) Source(6, 27) + SourceIndex(0)
4 >Emitted(8, 28) Source(6, 31) + SourceIndex(0)
5 >Emitted(8, 33) Source(6, 36) + SourceIndex(0)
6 >Emitted(8, 35) Source(6, 38) + SourceIndex(0)
7 >Emitted(8, 36) Source(6, 39) + SourceIndex(0)
---
>>>function m2_f1() {
1 >
2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
>
1 >Emitted(9, 1) Source(7, 1) + SourceIndex(0)
---
>>> return exports.m2_instance1;
1->^^^^
2 > ^^^^^^
3 > ^
4 > ^^^^^^^^^^^^^^^^^^^^
5 > ^
1->export function m2_f1() {
>
2 > return
3 >
4 > m2_instance1
5 > ;
1->Emitted(10, 5) Source(8, 5) + SourceIndex(0) name (m2_f1)
2 >Emitted(10, 11) Source(8, 11) + SourceIndex(0) name (m2_f1)
3 >Emitted(10, 12) Source(8, 12) + SourceIndex(0) name (m2_f1)
4 >Emitted(10, 32) Source(8, 24) + SourceIndex(0) name (m2_f1)
5 >Emitted(10, 33) Source(8, 25) + SourceIndex(0) name (m2_f1)
---
>>>}
1 >
2 >^
3 > ^^^^^^^^^^^^^^^^^^^^^^->
1 >
>
2 >}
1 >Emitted(11, 1) Source(9, 1) + SourceIndex(0) name (m2_f1)
2 >Emitted(11, 2) Source(9, 2) + SourceIndex(0) name (m2_f1)
---
>>>exports.m2_f1 = m2_f1;
1->
2 >^^^^^^^^^^^^^
3 > ^^^^^^^^
4 > ^
5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1->
2 >m2_f1
3 > () {
> return m2_instance1;
> }
4 >
1->Emitted(12, 1) Source(7, 17) + SourceIndex(0)
2 >Emitted(12, 14) Source(7, 22) + SourceIndex(0)
3 >Emitted(12, 22) Source(9, 2) + SourceIndex(0)
4 >Emitted(12, 23) Source(9, 2) + SourceIndex(0)
---
>>>//# sourceMappingURL=/tests/cases/projects/outputdir_mixed_subfolder/mapFiles/ref/m2.js.map===================================================================
JsFile: outAndOutDirFile.js
mapUrl: /tests/cases/projects/outputdir_mixed_subfolder/mapFiles/outAndOutDirFile.js.map
sourceRoot:
sources: ../ref/m1.ts,../test.ts
sources: ../ref/m1.ts,../ref/m2.ts,../test.ts
===================================================================
-------------------------------------------------------------------
emittedFile:bin/outAndOutDirFile.js
@@ -322,8 +151,8 @@ sourceFile:../test.ts
3 > ^->
1->
2 >/// <reference path='ref/m1.ts'/>
1->Emitted(11, 1) Source(1, 1) + SourceIndex(1)
2 >Emitted(11, 34) Source(1, 34) + SourceIndex(1)
1->Emitted(11, 1) Source(1, 1) + SourceIndex(2)
2 >Emitted(11, 34) Source(1, 34) + SourceIndex(2)
---
>>>/// <reference path='ref/m2.ts'/>
1->
@@ -331,8 +160,8 @@ sourceFile:../test.ts
1->
>
2 >/// <reference path='ref/m2.ts'/>
1->Emitted(12, 1) Source(2, 1) + SourceIndex(1)
2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1)
1->Emitted(12, 1) Source(2, 1) + SourceIndex(2)
2 >Emitted(12, 34) Source(2, 34) + SourceIndex(2)
---
>>>var a1 = 10;
1 >
@@ -349,25 +178,25 @@ sourceFile:../test.ts
4 > =
5 > 10
6 > ;
1 >Emitted(13, 1) Source(3, 1) + SourceIndex(1)
2 >Emitted(13, 5) Source(3, 5) + SourceIndex(1)
3 >Emitted(13, 7) Source(3, 7) + SourceIndex(1)
4 >Emitted(13, 10) Source(3, 10) + SourceIndex(1)
5 >Emitted(13, 12) Source(3, 12) + SourceIndex(1)
6 >Emitted(13, 13) Source(3, 13) + SourceIndex(1)
1 >Emitted(13, 1) Source(3, 1) + SourceIndex(2)
2 >Emitted(13, 5) Source(3, 5) + SourceIndex(2)
3 >Emitted(13, 7) Source(3, 7) + SourceIndex(2)
4 >Emitted(13, 10) Source(3, 10) + SourceIndex(2)
5 >Emitted(13, 12) Source(3, 12) + SourceIndex(2)
6 >Emitted(13, 13) Source(3, 13) + SourceIndex(2)
---
>>>var c1 = (function () {
1->
2 >^^^^^^^^^^^^^^^^^^^^->
1->
>
1->Emitted(14, 1) Source(4, 1) + SourceIndex(1)
1->Emitted(14, 1) Source(4, 1) + SourceIndex(2)
---
>>> function c1() {
1->^^^^
2 > ^^->
1->
1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1)
1->Emitted(15, 5) Source(4, 1) + SourceIndex(2) name (c1)
---
>>> }
1->^^^^
@@ -377,16 +206,16 @@ sourceFile:../test.ts
> public p1: number;
>
2 > }
1->Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor)
2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor)
1->Emitted(16, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor)
2 >Emitted(16, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor)
---
>>> return c1;
1->^^^^
2 > ^^^^^^^^^
1->
2 > }
1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1)
2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1)
1->Emitted(17, 5) Source(6, 1) + SourceIndex(2) name (c1)
2 >Emitted(17, 14) Source(6, 2) + SourceIndex(2) name (c1)
---
>>>})();
1 >
@@ -400,10 +229,10 @@ sourceFile:../test.ts
4 > class c1 {
> public p1: number;
> }
1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1)
2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1)
3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1)
4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1)
1 >Emitted(18, 1) Source(6, 1) + SourceIndex(2) name (c1)
2 >Emitted(18, 2) Source(6, 2) + SourceIndex(2) name (c1)
3 >Emitted(18, 2) Source(4, 1) + SourceIndex(2)
4 >Emitted(18, 6) Source(6, 2) + SourceIndex(2)
---
>>>var instance1 = new c1();
1->
@@ -424,21 +253,21 @@ sourceFile:../test.ts
6 > c1
7 > ()
8 > ;
1->Emitted(19, 1) Source(8, 1) + SourceIndex(1)
2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1)
3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1)
4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1)
5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1)
6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1)
7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1)
8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1)
1->Emitted(19, 1) Source(8, 1) + SourceIndex(2)
2 >Emitted(19, 5) Source(8, 5) + SourceIndex(2)
3 >Emitted(19, 14) Source(8, 14) + SourceIndex(2)
4 >Emitted(19, 17) Source(8, 17) + SourceIndex(2)
5 >Emitted(19, 21) Source(8, 21) + SourceIndex(2)
6 >Emitted(19, 23) Source(8, 23) + SourceIndex(2)
7 >Emitted(19, 25) Source(8, 25) + SourceIndex(2)
8 >Emitted(19, 26) Source(8, 26) + SourceIndex(2)
---
>>>function f1() {
1 >
2 >^^^^^^^^^^^^^^^^^^^^^^->
1 >
>
1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1)
1 >Emitted(20, 1) Source(9, 1) + SourceIndex(2)
---
>>> return instance1;
1->^^^^
@@ -452,11 +281,11 @@ sourceFile:../test.ts
3 >
4 > instance1
5 > ;
1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1)
2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1)
3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1)
4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1)
5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1)
1->Emitted(21, 5) Source(10, 5) + SourceIndex(2) name (f1)
2 >Emitted(21, 11) Source(10, 11) + SourceIndex(2) name (f1)
3 >Emitted(21, 12) Source(10, 12) + SourceIndex(2) name (f1)
4 >Emitted(21, 21) Source(10, 21) + SourceIndex(2) name (f1)
5 >Emitted(21, 22) Source(10, 22) + SourceIndex(2) name (f1)
---
>>>}
1 >
@@ -465,7 +294,7 @@ sourceFile:../test.ts
1 >
>
2 >}
1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1)
2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1)
1 >Emitted(22, 1) Source(11, 1) + SourceIndex(2) name (f1)
2 >Emitted(22, 2) Source(11, 2) + SourceIndex(2) name (f1)
---
>>>//# sourceMappingURL=/tests/cases/projects/outputdir_mixed_subfolder/mapFiles/outAndOutDirFile.js.map
@@ -1,6 +0,0 @@
export declare var m2_a1: number;
export declare class m2_c1 {
m2_c1_p1: number;
}
export declare var m2_instance1: m2_c1;
export declare function m2_f1(): m2_c1;
@@ -1,13 +0,0 @@
exports.m2_a1 = 10;
var m2_c1 = (function () {
function m2_c1() {
}
return m2_c1;
})();
exports.m2_c1 = m2_c1;
exports.m2_instance1 = new m2_c1();
function m2_f1() {
return exports.m2_instance1;
}
exports.m2_f1 = m2_f1;
//# sourceMappingURL=/tests/cases/projects/outputdir_mixed_subfolder/mapFiles/ref/m2.js.map
@@ -1 +0,0 @@
{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":"AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"}
@@ -0,0 +1,28 @@
declare module "ref/m1" {
export var m1_a1: number;
export class m1_c1 {
m1_c1_p1: number;
}
export var m1_instance1: m1_c1;
export function m1_f1(): m1_c1;
}
declare module "../outputdir_module_multifolder_ref/m2" {
export var m2_a1: number;
export class m2_c1 {
m2_c1_p1: number;
}
export var m2_instance1: m2_c1;
export function m2_f1(): m2_c1;
}
declare module "test" {
import m1 = require("ref/m1");
import m2 = require("../outputdir_module_multifolder_ref/m2");
export var a1: number;
export class c1 {
p1: number;
}
export var instance1: c1;
export function f1(): c1;
export var a2: typeof m1.m1_c1;
export var a3: typeof m2.m2_c1;
}
@@ -1 +1,45 @@
define("ref/m1", ["require", "exports"], function (require, exports) {
exports.m1_a1 = 10;
var m1_c1 = (function () {
function m1_c1() {
}
return m1_c1;
})();
exports.m1_c1 = m1_c1;
exports.m1_instance1 = new m1_c1();
function m1_f1() {
return exports.m1_instance1;
}
exports.m1_f1 = m1_f1;
});
define("../outputdir_module_multifolder_ref/m2", ["require", "exports"], function (require, exports) {
exports.m2_a1 = 10;
var m2_c1 = (function () {
function m2_c1() {
}
return m2_c1;
})();
exports.m2_c1 = m2_c1;
exports.m2_instance1 = new m2_c1();
function m2_f1() {
return exports.m2_instance1;
}
exports.m2_f1 = m2_f1;
});
define("test", ["require", "exports", "ref/m1", "../outputdir_module_multifolder_ref/m2"], function (require, exports, m1, m2) {
exports.a1 = 10;
var c1 = (function () {
function c1() {
}
return c1;
})();
exports.c1 = c1;
exports.instance1 = new c1();
function f1() {
return exports.instance1;
}
exports.f1 = f1;
exports.a2 = m1.m1_c1;
exports.a3 = m2.m2_c1;
});
//# sourceMappingURL=/tests/cases/projects/outputdir_module_multifolder/mapFiles/test.js.map
@@ -1 +1 @@
{"version":3,"file":"test.js","sourceRoot":"","sources":[],"names":[],"mappings":""}
{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../../outputdir_module_multifolder_ref/m2.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":";IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAC;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;;ICNU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAC;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"}
@@ -1 +0,0 @@
{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../../outputdir_module_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"}
@@ -1,15 +0,0 @@
define(["require", "exports"], function (require, exports) {
exports.m2_a1 = 10;
var m2_c1 = (function () {
function m2_c1() {
}
return m2_c1;
})();
exports.m2_c1 = m2_c1;
exports.m2_instance1 = new m2_c1();
function m2_f1() {
return exports.m2_instance1;
}
exports.m2_f1 = m2_f1;
});
//# sourceMappingURL=/tests/cases/projects/outputdir_module_multifolder/mapFiles/outputdir_module_multifolder_ref/m2.js.map
@@ -1,6 +0,0 @@
export declare var m2_a1: number;
export declare class m2_c1 {
m2_c1_p1: number;
}
export declare var m2_instance1: m2_c1;
export declare function m2_f1(): m2_c1;
@@ -17,15 +17,6 @@
"test.ts"
],
"emittedFiles": [
"ref/m1.js.map",
"ref/m1.js",
"ref/m1.d.ts",
"../outputdir_module_multifolder_ref/m2.js.map",
"../outputdir_module_multifolder_ref/m2.js",
"../outputdir_module_multifolder_ref/m2.d.ts",
"test.js.map",
"test.js",
"test.d.ts",
"bin/test.js.map",
"bin/test.js",
"bin/test.d.ts"
@@ -1,14 +1,14 @@
===================================================================
JsFile: m1.js
mapUrl: /tests/cases/projects/outputdir_module_multifolder/mapFiles/outputdir_module_multifolder/ref/m1.js.map
JsFile: test.js
mapUrl: /tests/cases/projects/outputdir_module_multifolder/mapFiles/test.js.map
sourceRoot:
sources: ../../../ref/m1.ts
sources: ../ref/m1.ts,../../outputdir_module_multifolder_ref/m2.ts,../test.ts
===================================================================
-------------------------------------------------------------------
emittedFile:ref/m1.js
sourceFile:../../../ref/m1.ts
emittedFile:bin/test.js
sourceFile:../ref/m1.ts
-------------------------------------------------------------------
>>>define(["require", "exports"], function (require, exports) {
>>>define("ref/m1", ["require", "exports"], function (require, exports) {
>>> exports.m1_a1 = 10;
1 >^^^^
2 > ^^^^^^^^^^^^^
@@ -169,18 +169,12 @@ sourceFile:../../../ref/m1.ts
3 >Emitted(13, 26) Source(9, 2) + SourceIndex(0)
4 >Emitted(13, 27) Source(9, 2) + SourceIndex(0)
---
-------------------------------------------------------------------
emittedFile:bin/test.js
sourceFile:../../outputdir_module_multifolder_ref/m2.ts
-------------------------------------------------------------------
>>>});
>>>//# sourceMappingURL=/tests/cases/projects/outputdir_module_multifolder/mapFiles/outputdir_module_multifolder/ref/m1.js.map===================================================================
JsFile: m2.js
mapUrl: /tests/cases/projects/outputdir_module_multifolder/mapFiles/outputdir_module_multifolder_ref/m2.js.map
sourceRoot:
sources: ../../../outputdir_module_multifolder_ref/m2.ts
===================================================================
-------------------------------------------------------------------
emittedFile:diskFile1.js
sourceFile:../../../outputdir_module_multifolder_ref/m2.ts
-------------------------------------------------------------------
>>>define(["require", "exports"], function (require, exports) {
>>>define("../outputdir_module_multifolder_ref/m2", ["require", "exports"], function (require, exports) {
>>> exports.m2_a1 = 10;
1 >^^^^
2 > ^^^^^^^^^^^^^
@@ -193,24 +187,24 @@ sourceFile:../../../outputdir_module_multifolder_ref/m2.ts
3 > =
4 > 10
5 > ;
1 >Emitted(2, 5) Source(1, 12) + SourceIndex(0)
2 >Emitted(2, 18) Source(1, 17) + SourceIndex(0)
3 >Emitted(2, 21) Source(1, 20) + SourceIndex(0)
4 >Emitted(2, 23) Source(1, 22) + SourceIndex(0)
5 >Emitted(2, 24) Source(1, 23) + SourceIndex(0)
1 >Emitted(16, 5) Source(1, 12) + SourceIndex(1)
2 >Emitted(16, 18) Source(1, 17) + SourceIndex(1)
3 >Emitted(16, 21) Source(1, 20) + SourceIndex(1)
4 >Emitted(16, 23) Source(1, 22) + SourceIndex(1)
5 >Emitted(16, 24) Source(1, 23) + SourceIndex(1)
---
>>> var m2_c1 = (function () {
1->^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^^->
1->
>
1->Emitted(3, 5) Source(2, 1) + SourceIndex(0)
1->Emitted(17, 5) Source(2, 1) + SourceIndex(1)
---
>>> function m2_c1() {
1->^^^^^^^^
2 > ^^->
1->
1->Emitted(4, 9) Source(2, 1) + SourceIndex(0) name (m2_c1)
1->Emitted(18, 9) Source(2, 1) + SourceIndex(1) name (m2_c1)
---
>>> }
1->^^^^^^^^
@@ -220,16 +214,16 @@ sourceFile:../../../outputdir_module_multifolder_ref/m2.ts
> public m2_c1_p1: number;
>
2 > }
1->Emitted(5, 9) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor)
2 >Emitted(5, 10) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor)
1->Emitted(19, 9) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor)
2 >Emitted(19, 10) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor)
---
>>> return m2_c1;
1->^^^^^^^^
2 > ^^^^^^^^^^^^
1->
2 > }
1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m2_c1)
2 >Emitted(6, 21) Source(4, 2) + SourceIndex(0) name (m2_c1)
1->Emitted(20, 9) Source(4, 1) + SourceIndex(1) name (m2_c1)
2 >Emitted(20, 21) Source(4, 2) + SourceIndex(1) name (m2_c1)
---
>>> })();
1 >^^^^
@@ -243,10 +237,10 @@ sourceFile:../../../outputdir_module_multifolder_ref/m2.ts
4 > export class m2_c1 {
> public m2_c1_p1: number;
> }
1 >Emitted(7, 5) Source(4, 1) + SourceIndex(0) name (m2_c1)
2 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) name (m2_c1)
3 >Emitted(7, 6) Source(2, 1) + SourceIndex(0)
4 >Emitted(7, 10) Source(4, 2) + SourceIndex(0)
1 >Emitted(21, 5) Source(4, 1) + SourceIndex(1) name (m2_c1)
2 >Emitted(21, 6) Source(4, 2) + SourceIndex(1) name (m2_c1)
3 >Emitted(21, 6) Source(2, 1) + SourceIndex(1)
4 >Emitted(21, 10) Source(4, 2) + SourceIndex(1)
---
>>> exports.m2_c1 = m2_c1;
1->^^^^
@@ -260,10 +254,10 @@ sourceFile:../../../outputdir_module_multifolder_ref/m2.ts
> public m2_c1_p1: number;
> }
4 >
1->Emitted(8, 5) Source(2, 14) + SourceIndex(0)
2 >Emitted(8, 18) Source(2, 19) + SourceIndex(0)
3 >Emitted(8, 26) Source(4, 2) + SourceIndex(0)
4 >Emitted(8, 27) Source(4, 2) + SourceIndex(0)
1->Emitted(22, 5) Source(2, 14) + SourceIndex(1)
2 >Emitted(22, 18) Source(2, 19) + SourceIndex(1)
3 >Emitted(22, 26) Source(4, 2) + SourceIndex(1)
4 >Emitted(22, 27) Source(4, 2) + SourceIndex(1)
---
>>> exports.m2_instance1 = new m2_c1();
1->^^^^
@@ -282,20 +276,20 @@ sourceFile:../../../outputdir_module_multifolder_ref/m2.ts
5 > m2_c1
6 > ()
7 > ;
1->Emitted(9, 5) Source(6, 12) + SourceIndex(0)
2 >Emitted(9, 25) Source(6, 24) + SourceIndex(0)
3 >Emitted(9, 28) Source(6, 27) + SourceIndex(0)
4 >Emitted(9, 32) Source(6, 31) + SourceIndex(0)
5 >Emitted(9, 37) Source(6, 36) + SourceIndex(0)
6 >Emitted(9, 39) Source(6, 38) + SourceIndex(0)
7 >Emitted(9, 40) Source(6, 39) + SourceIndex(0)
1->Emitted(23, 5) Source(6, 12) + SourceIndex(1)
2 >Emitted(23, 25) Source(6, 24) + SourceIndex(1)
3 >Emitted(23, 28) Source(6, 27) + SourceIndex(1)
4 >Emitted(23, 32) Source(6, 31) + SourceIndex(1)
5 >Emitted(23, 37) Source(6, 36) + SourceIndex(1)
6 >Emitted(23, 39) Source(6, 38) + SourceIndex(1)
7 >Emitted(23, 40) Source(6, 39) + SourceIndex(1)
---
>>> function m2_f1() {
1 >^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
>
1 >Emitted(10, 5) Source(7, 1) + SourceIndex(0)
1 >Emitted(24, 5) Source(7, 1) + SourceIndex(1)
---
>>> return exports.m2_instance1;
1->^^^^^^^^
@@ -309,11 +303,11 @@ sourceFile:../../../outputdir_module_multifolder_ref/m2.ts
3 >
4 > m2_instance1
5 > ;
1->Emitted(11, 9) Source(8, 5) + SourceIndex(0) name (m2_f1)
2 >Emitted(11, 15) Source(8, 11) + SourceIndex(0) name (m2_f1)
3 >Emitted(11, 16) Source(8, 12) + SourceIndex(0) name (m2_f1)
4 >Emitted(11, 36) Source(8, 24) + SourceIndex(0) name (m2_f1)
5 >Emitted(11, 37) Source(8, 25) + SourceIndex(0) name (m2_f1)
1->Emitted(25, 9) Source(8, 5) + SourceIndex(1) name (m2_f1)
2 >Emitted(25, 15) Source(8, 11) + SourceIndex(1) name (m2_f1)
3 >Emitted(25, 16) Source(8, 12) + SourceIndex(1) name (m2_f1)
4 >Emitted(25, 36) Source(8, 24) + SourceIndex(1) name (m2_f1)
5 >Emitted(25, 37) Source(8, 25) + SourceIndex(1) name (m2_f1)
---
>>> }
1 >^^^^
@@ -322,8 +316,8 @@ sourceFile:../../../outputdir_module_multifolder_ref/m2.ts
1 >
>
2 > }
1 >Emitted(12, 5) Source(9, 1) + SourceIndex(0) name (m2_f1)
2 >Emitted(12, 6) Source(9, 2) + SourceIndex(0) name (m2_f1)
1 >Emitted(26, 5) Source(9, 1) + SourceIndex(1) name (m2_f1)
2 >Emitted(26, 6) Source(9, 2) + SourceIndex(1) name (m2_f1)
---
>>> exports.m2_f1 = m2_f1;
1->^^^^
@@ -336,23 +330,17 @@ sourceFile:../../../outputdir_module_multifolder_ref/m2.ts
> return m2_instance1;
> }
4 >
1->Emitted(13, 5) Source(7, 17) + SourceIndex(0)
2 >Emitted(13, 18) Source(7, 22) + SourceIndex(0)
3 >Emitted(13, 26) Source(9, 2) + SourceIndex(0)
4 >Emitted(13, 27) Source(9, 2) + SourceIndex(0)
1->Emitted(27, 5) Source(7, 17) + SourceIndex(1)
2 >Emitted(27, 18) Source(7, 22) + SourceIndex(1)
3 >Emitted(27, 26) Source(9, 2) + SourceIndex(1)
4 >Emitted(27, 27) Source(9, 2) + SourceIndex(1)
---
-------------------------------------------------------------------
emittedFile:bin/test.js
sourceFile:../test.ts
-------------------------------------------------------------------
>>>});
>>>//# sourceMappingURL=/tests/cases/projects/outputdir_module_multifolder/mapFiles/outputdir_module_multifolder_ref/m2.js.map===================================================================
JsFile: test.js
mapUrl: /tests/cases/projects/outputdir_module_multifolder/mapFiles/outputdir_module_multifolder/test.js.map
sourceRoot:
sources: ../../test.ts
===================================================================
-------------------------------------------------------------------
emittedFile:test.js
sourceFile:../../test.ts
-------------------------------------------------------------------
>>>define(["require", "exports", "ref/m1", "../outputdir_module_multifolder_ref/m2"], function (require, exports, m1, m2) {
>>>define("test", ["require", "exports", "ref/m1", "../outputdir_module_multifolder_ref/m2"], function (require, exports, m1, m2) {
>>> exports.a1 = 10;
1 >^^^^
2 > ^^^^^^^^^^
@@ -367,24 +355,24 @@ sourceFile:../../test.ts
3 > =
4 > 10
5 > ;
1 >Emitted(2, 5) Source(3, 12) + SourceIndex(0)
2 >Emitted(2, 15) Source(3, 14) + SourceIndex(0)
3 >Emitted(2, 18) Source(3, 17) + SourceIndex(0)
4 >Emitted(2, 20) Source(3, 19) + SourceIndex(0)
5 >Emitted(2, 21) Source(3, 20) + SourceIndex(0)
1 >Emitted(30, 5) Source(3, 12) + SourceIndex(2)
2 >Emitted(30, 15) Source(3, 14) + SourceIndex(2)
3 >Emitted(30, 18) Source(3, 17) + SourceIndex(2)
4 >Emitted(30, 20) Source(3, 19) + SourceIndex(2)
5 >Emitted(30, 21) Source(3, 20) + SourceIndex(2)
---
>>> var c1 = (function () {
1->^^^^
2 > ^^^^^^^^^^^^^^^^^^^^->
1->
>
1->Emitted(3, 5) Source(4, 1) + SourceIndex(0)
1->Emitted(31, 5) Source(4, 1) + SourceIndex(2)
---
>>> function c1() {
1->^^^^^^^^
2 > ^^->
1->
1->Emitted(4, 9) Source(4, 1) + SourceIndex(0) name (c1)
1->Emitted(32, 9) Source(4, 1) + SourceIndex(2) name (c1)
---
>>> }
1->^^^^^^^^
@@ -394,16 +382,16 @@ sourceFile:../../test.ts
> public p1: number;
>
2 > }
1->Emitted(5, 9) Source(6, 1) + SourceIndex(0) name (c1.constructor)
2 >Emitted(5, 10) Source(6, 2) + SourceIndex(0) name (c1.constructor)
1->Emitted(33, 9) Source(6, 1) + SourceIndex(2) name (c1.constructor)
2 >Emitted(33, 10) Source(6, 2) + SourceIndex(2) name (c1.constructor)
---
>>> return c1;
1->^^^^^^^^
2 > ^^^^^^^^^
1->
2 > }
1->Emitted(6, 9) Source(6, 1) + SourceIndex(0) name (c1)
2 >Emitted(6, 18) Source(6, 2) + SourceIndex(0) name (c1)
1->Emitted(34, 9) Source(6, 1) + SourceIndex(2) name (c1)
2 >Emitted(34, 18) Source(6, 2) + SourceIndex(2) name (c1)
---
>>> })();
1 >^^^^
@@ -417,10 +405,10 @@ sourceFile:../../test.ts
4 > export class c1 {
> public p1: number;
> }
1 >Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1)
2 >Emitted(7, 6) Source(6, 2) + SourceIndex(0) name (c1)
3 >Emitted(7, 6) Source(4, 1) + SourceIndex(0)
4 >Emitted(7, 10) Source(6, 2) + SourceIndex(0)
1 >Emitted(35, 5) Source(6, 1) + SourceIndex(2) name (c1)
2 >Emitted(35, 6) Source(6, 2) + SourceIndex(2) name (c1)
3 >Emitted(35, 6) Source(4, 1) + SourceIndex(2)
4 >Emitted(35, 10) Source(6, 2) + SourceIndex(2)
---
>>> exports.c1 = c1;
1->^^^^
@@ -434,10 +422,10 @@ sourceFile:../../test.ts
> public p1: number;
> }
4 >
1->Emitted(8, 5) Source(4, 14) + SourceIndex(0)
2 >Emitted(8, 15) Source(4, 16) + SourceIndex(0)
3 >Emitted(8, 20) Source(6, 2) + SourceIndex(0)
4 >Emitted(8, 21) Source(6, 2) + SourceIndex(0)
1->Emitted(36, 5) Source(4, 14) + SourceIndex(2)
2 >Emitted(36, 15) Source(4, 16) + SourceIndex(2)
3 >Emitted(36, 20) Source(6, 2) + SourceIndex(2)
4 >Emitted(36, 21) Source(6, 2) + SourceIndex(2)
---
>>> exports.instance1 = new c1();
1->^^^^
@@ -456,20 +444,20 @@ sourceFile:../../test.ts
5 > c1
6 > ()
7 > ;
1->Emitted(9, 5) Source(8, 12) + SourceIndex(0)
2 >Emitted(9, 22) Source(8, 21) + SourceIndex(0)
3 >Emitted(9, 25) Source(8, 24) + SourceIndex(0)
4 >Emitted(9, 29) Source(8, 28) + SourceIndex(0)
5 >Emitted(9, 31) Source(8, 30) + SourceIndex(0)
6 >Emitted(9, 33) Source(8, 32) + SourceIndex(0)
7 >Emitted(9, 34) Source(8, 33) + SourceIndex(0)
1->Emitted(37, 5) Source(8, 12) + SourceIndex(2)
2 >Emitted(37, 22) Source(8, 21) + SourceIndex(2)
3 >Emitted(37, 25) Source(8, 24) + SourceIndex(2)
4 >Emitted(37, 29) Source(8, 28) + SourceIndex(2)
5 >Emitted(37, 31) Source(8, 30) + SourceIndex(2)
6 >Emitted(37, 33) Source(8, 32) + SourceIndex(2)
7 >Emitted(37, 34) Source(8, 33) + SourceIndex(2)
---
>>> function f1() {
1 >^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
>
1 >Emitted(10, 5) Source(9, 1) + SourceIndex(0)
1 >Emitted(38, 5) Source(9, 1) + SourceIndex(2)
---
>>> return exports.instance1;
1->^^^^^^^^
@@ -483,11 +471,11 @@ sourceFile:../../test.ts
3 >
4 > instance1
5 > ;
1->Emitted(11, 9) Source(10, 5) + SourceIndex(0) name (f1)
2 >Emitted(11, 15) Source(10, 11) + SourceIndex(0) name (f1)
3 >Emitted(11, 16) Source(10, 12) + SourceIndex(0) name (f1)
4 >Emitted(11, 33) Source(10, 21) + SourceIndex(0) name (f1)
5 >Emitted(11, 34) Source(10, 22) + SourceIndex(0) name (f1)
1->Emitted(39, 9) Source(10, 5) + SourceIndex(2) name (f1)
2 >Emitted(39, 15) Source(10, 11) + SourceIndex(2) name (f1)
3 >Emitted(39, 16) Source(10, 12) + SourceIndex(2) name (f1)
4 >Emitted(39, 33) Source(10, 21) + SourceIndex(2) name (f1)
5 >Emitted(39, 34) Source(10, 22) + SourceIndex(2) name (f1)
---
>>> }
1 >^^^^
@@ -496,8 +484,8 @@ sourceFile:../../test.ts
1 >
>
2 > }
1 >Emitted(12, 5) Source(11, 1) + SourceIndex(0) name (f1)
2 >Emitted(12, 6) Source(11, 2) + SourceIndex(0) name (f1)
1 >Emitted(40, 5) Source(11, 1) + SourceIndex(2) name (f1)
2 >Emitted(40, 6) Source(11, 2) + SourceIndex(2) name (f1)
---
>>> exports.f1 = f1;
1->^^^^
@@ -511,10 +499,10 @@ sourceFile:../../test.ts
> return instance1;
> }
4 >
1->Emitted(13, 5) Source(9, 17) + SourceIndex(0)
2 >Emitted(13, 15) Source(9, 19) + SourceIndex(0)
3 >Emitted(13, 20) Source(11, 2) + SourceIndex(0)
4 >Emitted(13, 21) Source(11, 2) + SourceIndex(0)
1->Emitted(41, 5) Source(9, 17) + SourceIndex(2)
2 >Emitted(41, 15) Source(9, 19) + SourceIndex(2)
3 >Emitted(41, 20) Source(11, 2) + SourceIndex(2)
4 >Emitted(41, 21) Source(11, 2) + SourceIndex(2)
---
>>> exports.a2 = m1.m1_c1;
1->^^^^
@@ -534,13 +522,13 @@ sourceFile:../../test.ts
5 > .
6 > m1_c1
7 > ;
1->Emitted(14, 5) Source(13, 12) + SourceIndex(0)
2 >Emitted(14, 15) Source(13, 14) + SourceIndex(0)
3 >Emitted(14, 18) Source(13, 17) + SourceIndex(0)
4 >Emitted(14, 20) Source(13, 19) + SourceIndex(0)
5 >Emitted(14, 21) Source(13, 20) + SourceIndex(0)
6 >Emitted(14, 26) Source(13, 25) + SourceIndex(0)
7 >Emitted(14, 27) Source(13, 26) + SourceIndex(0)
1->Emitted(42, 5) Source(13, 12) + SourceIndex(2)
2 >Emitted(42, 15) Source(13, 14) + SourceIndex(2)
3 >Emitted(42, 18) Source(13, 17) + SourceIndex(2)
4 >Emitted(42, 20) Source(13, 19) + SourceIndex(2)
5 >Emitted(42, 21) Source(13, 20) + SourceIndex(2)
6 >Emitted(42, 26) Source(13, 25) + SourceIndex(2)
7 >Emitted(42, 27) Source(13, 26) + SourceIndex(2)
---
>>> exports.a3 = m2.m2_c1;
1->^^^^
@@ -558,19 +546,13 @@ sourceFile:../../test.ts
5 > .
6 > m2_c1
7 > ;
1->Emitted(15, 5) Source(14, 12) + SourceIndex(0)
2 >Emitted(15, 15) Source(14, 14) + SourceIndex(0)
3 >Emitted(15, 18) Source(14, 17) + SourceIndex(0)
4 >Emitted(15, 20) Source(14, 19) + SourceIndex(0)
5 >Emitted(15, 21) Source(14, 20) + SourceIndex(0)
6 >Emitted(15, 26) Source(14, 25) + SourceIndex(0)
7 >Emitted(15, 27) Source(14, 26) + SourceIndex(0)
1->Emitted(43, 5) Source(14, 12) + SourceIndex(2)
2 >Emitted(43, 15) Source(14, 14) + SourceIndex(2)
3 >Emitted(43, 18) Source(14, 17) + SourceIndex(2)
4 >Emitted(43, 20) Source(14, 19) + SourceIndex(2)
5 >Emitted(43, 21) Source(14, 20) + SourceIndex(2)
6 >Emitted(43, 26) Source(14, 25) + SourceIndex(2)
7 >Emitted(43, 27) Source(14, 26) + SourceIndex(2)
---
>>>});
>>>//# sourceMappingURL=/tests/cases/projects/outputdir_module_multifolder/mapFiles/outputdir_module_multifolder/test.js.map===================================================================
JsFile: test.js
mapUrl: /tests/cases/projects/outputdir_module_multifolder/mapFiles/test.js.map
sourceRoot:
sources:
===================================================================
>>>//# sourceMappingURL=/tests/cases/projects/outputdir_module_multifolder/mapFiles/test.js.map
@@ -1,6 +0,0 @@
export declare var m1_a1: number;
export declare class m1_c1 {
m1_c1_p1: number;
}
export declare var m1_instance1: m1_c1;
export declare function m1_f1(): m1_c1;
@@ -1,15 +0,0 @@
define(["require", "exports"], function (require, exports) {
exports.m1_a1 = 10;
var m1_c1 = (function () {
function m1_c1() {
}
return m1_c1;
})();
exports.m1_c1 = m1_c1;
exports.m1_instance1 = new m1_c1();
function m1_f1() {
return exports.m1_instance1;
}
exports.m1_f1 = m1_f1;
});
//# sourceMappingURL=/tests/cases/projects/outputdir_module_multifolder/mapFiles/outputdir_module_multifolder/ref/m1.js.map
@@ -1 +0,0 @@
{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"}
@@ -1,10 +0,0 @@
import m1 = require("ref/m1");
import m2 = require("../outputdir_module_multifolder_ref/m2");
export declare var a1: number;
export declare class c1 {
p1: number;
}
export declare var instance1: c1;
export declare function f1(): c1;
export declare var a2: typeof m1.m1_c1;
export declare var a3: typeof m2.m2_c1;
@@ -1,17 +0,0 @@
define(["require", "exports", "ref/m1", "../outputdir_module_multifolder_ref/m2"], function (require, exports, m1, m2) {
exports.a1 = 10;
var c1 = (function () {
function c1() {
}
return c1;
})();
exports.c1 = c1;
exports.instance1 = new c1();
function f1() {
return exports.instance1;
}
exports.f1 = f1;
exports.a2 = m1.m1_c1;
exports.a3 = m2.m2_c1;
});
//# sourceMappingURL=/tests/cases/projects/outputdir_module_multifolder/mapFiles/outputdir_module_multifolder/test.js.map
@@ -1 +0,0 @@
{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";IAEW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"}
@@ -0,0 +1,28 @@
declare module "ref/m1" {
export var m1_a1: number;
export class m1_c1 {
m1_c1_p1: number;
}
export var m1_instance1: m1_c1;
export function m1_f1(): m1_c1;
}
declare module "../outputdir_module_multifolder_ref/m2" {
export var m2_a1: number;
export class m2_c1 {
m2_c1_p1: number;
}
export var m2_instance1: m2_c1;
export function m2_f1(): m2_c1;
}
declare module "test" {
import m1 = require("ref/m1");
import m2 = require("../outputdir_module_multifolder_ref/m2");
export var a1: number;
export class c1 {
p1: number;
}
export var instance1: c1;
export function f1(): c1;
export var a2: typeof m1.m1_c1;
export var a3: typeof m2.m2_c1;
}
@@ -1 +1 @@
{"version":3,"file":"test.js","sourceRoot":"","sources":[],"names":[],"mappings":""}
{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../../outputdir_module_multifolder_ref/m2.ts","../test.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../../outputdir_module_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":"AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"}
@@ -1,13 +0,0 @@
exports.m2_a1 = 10;
var m2_c1 = (function () {
function m2_c1() {
}
return m2_c1;
})();
exports.m2_c1 = m2_c1;
exports.m2_instance1 = new m2_c1();
function m2_f1() {
return exports.m2_instance1;
}
exports.m2_f1 = m2_f1;
//# sourceMappingURL=/tests/cases/projects/outputdir_module_multifolder/mapFiles/outputdir_module_multifolder_ref/m2.js.map
@@ -1,6 +0,0 @@
export declare var m2_a1: number;
export declare class m2_c1 {
m2_c1_p1: number;
}
export declare var m2_instance1: m2_c1;
export declare function m2_f1(): m2_c1;
@@ -0,0 +1,39 @@
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
!!! error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
==== m1.ts (0 errors) ====
export var m1_a1 = 10;
export class m1_c1 {
public m1_c1_p1: number;
}
export var m1_instance1 = new m1_c1();
export function m1_f1() {
return m1_instance1;
}
==== m2.ts (0 errors) ====
export var m2_a1 = 10;
export class m2_c1 {
public m2_c1_p1: number;
}
export var m2_instance1 = new m2_c1();
export function m2_f1() {
return m2_instance1;
}
==== test.ts (0 errors) ====
import m1 = require("ref/m1");
import m2 = require("../outputdir_module_multifolder_ref/m2");
export var a1 = 10;
export class c1 {
public p1: number;
}
export var instance1 = new c1();
export function f1() {
return instance1;
}
export var a2 = m1.m1_c1;
export var a3 = m2.m2_c1;
@@ -17,15 +17,6 @@
"test.ts"
],
"emittedFiles": [
"ref/m1.js.map",
"ref/m1.js",
"ref/m1.d.ts",
"../outputdir_module_multifolder_ref/m2.js.map",
"../outputdir_module_multifolder_ref/m2.js",
"../outputdir_module_multifolder_ref/m2.d.ts",
"test.js.map",
"test.js",
"test.d.ts",
"bin/test.js.map",
"bin/test.js",
"bin/test.d.ts"
@@ -1,620 +1,7 @@
===================================================================
JsFile: m1.js
mapUrl: /tests/cases/projects/outputdir_module_multifolder/mapFiles/outputdir_module_multifolder/ref/m1.js.map
sourceRoot:
sources: ../../../ref/m1.ts
===================================================================
-------------------------------------------------------------------
emittedFile:ref/m1.js
sourceFile:../../../ref/m1.ts
-------------------------------------------------------------------
>>>exports.m1_a1 = 10;
1 >
2 >^^^^^^^^^^^^^
3 > ^^^
4 > ^^
5 > ^
6 > ^^^^^^^^->
1 >export var
2 >m1_a1
3 > =
4 > 10
5 > ;
1 >Emitted(1, 1) Source(1, 12) + SourceIndex(0)
2 >Emitted(1, 14) Source(1, 17) + SourceIndex(0)
3 >Emitted(1, 17) Source(1, 20) + SourceIndex(0)
4 >Emitted(1, 19) Source(1, 22) + SourceIndex(0)
5 >Emitted(1, 20) Source(1, 23) + SourceIndex(0)
---
>>>var m1_c1 = (function () {
1->
2 >^^^^^^^^^^^^^^^^^^^^^^^->
1->
>
1->Emitted(2, 1) Source(2, 1) + SourceIndex(0)
---
>>> function m1_c1() {
1->^^^^
2 > ^^->
1->
1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1)
---
>>> }
1->^^^^
2 > ^
3 > ^^^^^^^^^^^^^->
1->export class m1_c1 {
> public m1_c1_p1: number;
>
2 > }
1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor)
2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor)
---
>>> return m1_c1;
1->^^^^
2 > ^^^^^^^^^^^^
1->
2 > }
1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1)
2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1)
---
>>>})();
1 >
2 >^
3 >
4 > ^^^^
5 > ^^^^^^^^^^^^^^^^^^->
1 >
2 >}
3 >
4 > export class m1_c1 {
> public m1_c1_p1: number;
> }
1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1)
2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1)
3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0)
4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0)
---
>>>exports.m1_c1 = m1_c1;
1->
2 >^^^^^^^^^^^^^
3 > ^^^^^^^^
4 > ^
5 > ^^^^^^^^^^^^^^->
1->
2 >m1_c1
3 > {
> public m1_c1_p1: number;
> }
4 >
1->Emitted(7, 1) Source(2, 14) + SourceIndex(0)
2 >Emitted(7, 14) Source(2, 19) + SourceIndex(0)
3 >Emitted(7, 22) Source(4, 2) + SourceIndex(0)
4 >Emitted(7, 23) Source(4, 2) + SourceIndex(0)
---
>>>exports.m1_instance1 = new m1_c1();
1->
2 >^^^^^^^^^^^^^^^^^^^^
3 > ^^^
4 > ^^^^
5 > ^^^^^
6 > ^^
7 > ^
1->
>
>export var
2 >m1_instance1
3 > =
4 > new
5 > m1_c1
6 > ()
7 > ;
1->Emitted(8, 1) Source(6, 12) + SourceIndex(0)
2 >Emitted(8, 21) Source(6, 24) + SourceIndex(0)
3 >Emitted(8, 24) Source(6, 27) + SourceIndex(0)
4 >Emitted(8, 28) Source(6, 31) + SourceIndex(0)
5 >Emitted(8, 33) Source(6, 36) + SourceIndex(0)
6 >Emitted(8, 35) Source(6, 38) + SourceIndex(0)
7 >Emitted(8, 36) Source(6, 39) + SourceIndex(0)
---
>>>function m1_f1() {
1 >
2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
>
1 >Emitted(9, 1) Source(7, 1) + SourceIndex(0)
---
>>> return exports.m1_instance1;
1->^^^^
2 > ^^^^^^
3 > ^
4 > ^^^^^^^^^^^^^^^^^^^^
5 > ^
1->export function m1_f1() {
>
2 > return
3 >
4 > m1_instance1
5 > ;
1->Emitted(10, 5) Source(8, 5) + SourceIndex(0) name (m1_f1)
2 >Emitted(10, 11) Source(8, 11) + SourceIndex(0) name (m1_f1)
3 >Emitted(10, 12) Source(8, 12) + SourceIndex(0) name (m1_f1)
4 >Emitted(10, 32) Source(8, 24) + SourceIndex(0) name (m1_f1)
5 >Emitted(10, 33) Source(8, 25) + SourceIndex(0) name (m1_f1)
---
>>>}
1 >
2 >^
3 > ^^^^^^^^^^^^^^^^^^^^^^->
1 >
>
2 >}
1 >Emitted(11, 1) Source(9, 1) + SourceIndex(0) name (m1_f1)
2 >Emitted(11, 2) Source(9, 2) + SourceIndex(0) name (m1_f1)
---
>>>exports.m1_f1 = m1_f1;
1->
2 >^^^^^^^^^^^^^
3 > ^^^^^^^^
4 > ^
5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1->
2 >m1_f1
3 > () {
> return m1_instance1;
> }
4 >
1->Emitted(12, 1) Source(7, 17) + SourceIndex(0)
2 >Emitted(12, 14) Source(7, 22) + SourceIndex(0)
3 >Emitted(12, 22) Source(9, 2) + SourceIndex(0)
4 >Emitted(12, 23) Source(9, 2) + SourceIndex(0)
---
>>>//# sourceMappingURL=/tests/cases/projects/outputdir_module_multifolder/mapFiles/outputdir_module_multifolder/ref/m1.js.map===================================================================
JsFile: m2.js
mapUrl: /tests/cases/projects/outputdir_module_multifolder/mapFiles/outputdir_module_multifolder_ref/m2.js.map
sourceRoot:
sources: ../../../outputdir_module_multifolder_ref/m2.ts
===================================================================
-------------------------------------------------------------------
emittedFile:diskFile1.js
sourceFile:../../../outputdir_module_multifolder_ref/m2.ts
-------------------------------------------------------------------
>>>exports.m2_a1 = 10;
1 >
2 >^^^^^^^^^^^^^
3 > ^^^
4 > ^^
5 > ^
6 > ^^^^^^^^->
1 >export var
2 >m2_a1
3 > =
4 > 10
5 > ;
1 >Emitted(1, 1) Source(1, 12) + SourceIndex(0)
2 >Emitted(1, 14) Source(1, 17) + SourceIndex(0)
3 >Emitted(1, 17) Source(1, 20) + SourceIndex(0)
4 >Emitted(1, 19) Source(1, 22) + SourceIndex(0)
5 >Emitted(1, 20) Source(1, 23) + SourceIndex(0)
---
>>>var m2_c1 = (function () {
1->
2 >^^^^^^^^^^^^^^^^^^^^^^^->
1->
>
1->Emitted(2, 1) Source(2, 1) + SourceIndex(0)
---
>>> function m2_c1() {
1->^^^^
2 > ^^->
1->
1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m2_c1)
---
>>> }
1->^^^^
2 > ^
3 > ^^^^^^^^^^^^^->
1->export class m2_c1 {
> public m2_c1_p1: number;
>
2 > }
1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor)
2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor)
---
>>> return m2_c1;
1->^^^^
2 > ^^^^^^^^^^^^
1->
2 > }
1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1)
2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m2_c1)
---
>>>})();
1 >
2 >^
3 >
4 > ^^^^
5 > ^^^^^^^^^^^^^^^^^^->
1 >
2 >}
3 >
4 > export class m2_c1 {
> public m2_c1_p1: number;
> }
1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m2_c1)
2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m2_c1)
3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0)
4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0)
---
>>>exports.m2_c1 = m2_c1;
1->
2 >^^^^^^^^^^^^^
3 > ^^^^^^^^
4 > ^
5 > ^^^^^^^^^^^^^^->
1->
2 >m2_c1
3 > {
> public m2_c1_p1: number;
> }
4 >
1->Emitted(7, 1) Source(2, 14) + SourceIndex(0)
2 >Emitted(7, 14) Source(2, 19) + SourceIndex(0)
3 >Emitted(7, 22) Source(4, 2) + SourceIndex(0)
4 >Emitted(7, 23) Source(4, 2) + SourceIndex(0)
---
>>>exports.m2_instance1 = new m2_c1();
1->
2 >^^^^^^^^^^^^^^^^^^^^
3 > ^^^
4 > ^^^^
5 > ^^^^^
6 > ^^
7 > ^
1->
>
>export var
2 >m2_instance1
3 > =
4 > new
5 > m2_c1
6 > ()
7 > ;
1->Emitted(8, 1) Source(6, 12) + SourceIndex(0)
2 >Emitted(8, 21) Source(6, 24) + SourceIndex(0)
3 >Emitted(8, 24) Source(6, 27) + SourceIndex(0)
4 >Emitted(8, 28) Source(6, 31) + SourceIndex(0)
5 >Emitted(8, 33) Source(6, 36) + SourceIndex(0)
6 >Emitted(8, 35) Source(6, 38) + SourceIndex(0)
7 >Emitted(8, 36) Source(6, 39) + SourceIndex(0)
---
>>>function m2_f1() {
1 >
2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
>
1 >Emitted(9, 1) Source(7, 1) + SourceIndex(0)
---
>>> return exports.m2_instance1;
1->^^^^
2 > ^^^^^^
3 > ^
4 > ^^^^^^^^^^^^^^^^^^^^
5 > ^
1->export function m2_f1() {
>
2 > return
3 >
4 > m2_instance1
5 > ;
1->Emitted(10, 5) Source(8, 5) + SourceIndex(0) name (m2_f1)
2 >Emitted(10, 11) Source(8, 11) + SourceIndex(0) name (m2_f1)
3 >Emitted(10, 12) Source(8, 12) + SourceIndex(0) name (m2_f1)
4 >Emitted(10, 32) Source(8, 24) + SourceIndex(0) name (m2_f1)
5 >Emitted(10, 33) Source(8, 25) + SourceIndex(0) name (m2_f1)
---
>>>}
1 >
2 >^
3 > ^^^^^^^^^^^^^^^^^^^^^^->
1 >
>
2 >}
1 >Emitted(11, 1) Source(9, 1) + SourceIndex(0) name (m2_f1)
2 >Emitted(11, 2) Source(9, 2) + SourceIndex(0) name (m2_f1)
---
>>>exports.m2_f1 = m2_f1;
1->
2 >^^^^^^^^^^^^^
3 > ^^^^^^^^
4 > ^
5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1->
2 >m2_f1
3 > () {
> return m2_instance1;
> }
4 >
1->Emitted(12, 1) Source(7, 17) + SourceIndex(0)
2 >Emitted(12, 14) Source(7, 22) + SourceIndex(0)
3 >Emitted(12, 22) Source(9, 2) + SourceIndex(0)
4 >Emitted(12, 23) Source(9, 2) + SourceIndex(0)
---
>>>//# sourceMappingURL=/tests/cases/projects/outputdir_module_multifolder/mapFiles/outputdir_module_multifolder_ref/m2.js.map===================================================================
JsFile: test.js
mapUrl: /tests/cases/projects/outputdir_module_multifolder/mapFiles/outputdir_module_multifolder/test.js.map
sourceRoot:
sources: ../../test.ts
===================================================================
-------------------------------------------------------------------
emittedFile:test.js
sourceFile:../../test.ts
-------------------------------------------------------------------
>>>var m1 = require("ref/m1");
1 >
2 >^^^^
3 > ^^
4 > ^^^^^^^^^^^
5 > ^^^^^^^^
6 > ^
7 > ^
8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
2 >import
3 > m1
4 > = require(
5 > "ref/m1"
6 > )
7 > ;
1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0)
2 >Emitted(1, 5) Source(1, 8) + SourceIndex(0)
3 >Emitted(1, 7) Source(1, 10) + SourceIndex(0)
4 >Emitted(1, 18) Source(1, 21) + SourceIndex(0)
5 >Emitted(1, 26) Source(1, 29) + SourceIndex(0)
6 >Emitted(1, 27) Source(1, 30) + SourceIndex(0)
7 >Emitted(1, 28) Source(1, 31) + SourceIndex(0)
---
>>>var m2 = require("../outputdir_module_multifolder_ref/m2");
1->
2 >^^^^
3 > ^^
4 > ^^^^^^^^^^^
5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6 > ^
7 > ^
1->
>
2 >import
3 > m2
4 > = require(
5 > "../outputdir_module_multifolder_ref/m2"
6 > )
7 > ;
1->Emitted(2, 1) Source(2, 1) + SourceIndex(0)
2 >Emitted(2, 5) Source(2, 8) + SourceIndex(0)
3 >Emitted(2, 7) Source(2, 10) + SourceIndex(0)
4 >Emitted(2, 18) Source(2, 21) + SourceIndex(0)
5 >Emitted(2, 58) Source(2, 61) + SourceIndex(0)
6 >Emitted(2, 59) Source(2, 62) + SourceIndex(0)
7 >Emitted(2, 60) Source(2, 63) + SourceIndex(0)
---
>>>exports.a1 = 10;
1 >
2 >^^^^^^^^^^
3 > ^^^
4 > ^^
5 > ^
6 > ^^^^^^^^->
1 >
>export var
2 >a1
3 > =
4 > 10
5 > ;
1 >Emitted(3, 1) Source(3, 12) + SourceIndex(0)
2 >Emitted(3, 11) Source(3, 14) + SourceIndex(0)
3 >Emitted(3, 14) Source(3, 17) + SourceIndex(0)
4 >Emitted(3, 16) Source(3, 19) + SourceIndex(0)
5 >Emitted(3, 17) Source(3, 20) + SourceIndex(0)
---
>>>var c1 = (function () {
1->
2 >^^^^^^^^^^^^^^^^^^^^->
1->
>
1->Emitted(4, 1) Source(4, 1) + SourceIndex(0)
---
>>> function c1() {
1->^^^^
2 > ^^->
1->
1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1)
---
>>> }
1->^^^^
2 > ^
3 > ^^^^^^^^^^->
1->export class c1 {
> public p1: number;
>
2 > }
1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor)
2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor)
---
>>> return c1;
1->^^^^
2 > ^^^^^^^^^
1->
2 > }
1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1)
2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1)
---
>>>})();
1 >
2 >^
3 >
4 > ^^^^
5 > ^^^^^^^^^^^^->
1 >
2 >}
3 >
4 > export class c1 {
> public p1: number;
> }
1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1)
2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1)
3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0)
4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0)
---
>>>exports.c1 = c1;
1->
2 >^^^^^^^^^^
3 > ^^^^^
4 > ^
5 > ^^^^^^^^^^^^^^->
1->
2 >c1
3 > {
> public p1: number;
> }
4 >
1->Emitted(9, 1) Source(4, 14) + SourceIndex(0)
2 >Emitted(9, 11) Source(4, 16) + SourceIndex(0)
3 >Emitted(9, 16) Source(6, 2) + SourceIndex(0)
4 >Emitted(9, 17) Source(6, 2) + SourceIndex(0)
---
>>>exports.instance1 = new c1();
1->
2 >^^^^^^^^^^^^^^^^^
3 > ^^^
4 > ^^^^
5 > ^^
6 > ^^
7 > ^
1->
>
>export var
2 >instance1
3 > =
4 > new
5 > c1
6 > ()
7 > ;
1->Emitted(10, 1) Source(8, 12) + SourceIndex(0)
2 >Emitted(10, 18) Source(8, 21) + SourceIndex(0)
3 >Emitted(10, 21) Source(8, 24) + SourceIndex(0)
4 >Emitted(10, 25) Source(8, 28) + SourceIndex(0)
5 >Emitted(10, 27) Source(8, 30) + SourceIndex(0)
6 >Emitted(10, 29) Source(8, 32) + SourceIndex(0)
7 >Emitted(10, 30) Source(8, 33) + SourceIndex(0)
---
>>>function f1() {
1 >
2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
>
1 >Emitted(11, 1) Source(9, 1) + SourceIndex(0)
---
>>> return exports.instance1;
1->^^^^
2 > ^^^^^^
3 > ^
4 > ^^^^^^^^^^^^^^^^^
5 > ^
1->export function f1() {
>
2 > return
3 >
4 > instance1
5 > ;
1->Emitted(12, 5) Source(10, 5) + SourceIndex(0) name (f1)
2 >Emitted(12, 11) Source(10, 11) + SourceIndex(0) name (f1)
3 >Emitted(12, 12) Source(10, 12) + SourceIndex(0) name (f1)
4 >Emitted(12, 29) Source(10, 21) + SourceIndex(0) name (f1)
5 >Emitted(12, 30) Source(10, 22) + SourceIndex(0) name (f1)
---
>>>}
1 >
2 >^
3 > ^^^^^^^^^^^^^^^^->
1 >
>
2 >}
1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) name (f1)
2 >Emitted(13, 2) Source(11, 2) + SourceIndex(0) name (f1)
---
>>>exports.f1 = f1;
1->
2 >^^^^^^^^^^
3 > ^^^^^
4 > ^
5 > ^^^^^^^->
1->
2 >f1
3 > () {
> return instance1;
> }
4 >
1->Emitted(14, 1) Source(9, 17) + SourceIndex(0)
2 >Emitted(14, 11) Source(9, 19) + SourceIndex(0)
3 >Emitted(14, 16) Source(11, 2) + SourceIndex(0)
4 >Emitted(14, 17) Source(11, 2) + SourceIndex(0)
---
>>>exports.a2 = m1.m1_c1;
1->
2 >^^^^^^^^^^
3 > ^^^
4 > ^^
5 > ^
6 > ^^^^^
7 > ^
8 > ^->
1->
>
>export var
2 >a2
3 > =
4 > m1
5 > .
6 > m1_c1
7 > ;
1->Emitted(15, 1) Source(13, 12) + SourceIndex(0)
2 >Emitted(15, 11) Source(13, 14) + SourceIndex(0)
3 >Emitted(15, 14) Source(13, 17) + SourceIndex(0)
4 >Emitted(15, 16) Source(13, 19) + SourceIndex(0)
5 >Emitted(15, 17) Source(13, 20) + SourceIndex(0)
6 >Emitted(15, 22) Source(13, 25) + SourceIndex(0)
7 >Emitted(15, 23) Source(13, 26) + SourceIndex(0)
---
>>>exports.a3 = m2.m2_c1;
1->
2 >^^^^^^^^^^
3 > ^^^
4 > ^^
5 > ^
6 > ^^^^^
7 > ^
8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1->
>export var
2 >a3
3 > =
4 > m2
5 > .
6 > m2_c1
7 > ;
1->Emitted(16, 1) Source(14, 12) + SourceIndex(0)
2 >Emitted(16, 11) Source(14, 14) + SourceIndex(0)
3 >Emitted(16, 14) Source(14, 17) + SourceIndex(0)
4 >Emitted(16, 16) Source(14, 19) + SourceIndex(0)
5 >Emitted(16, 17) Source(14, 20) + SourceIndex(0)
6 >Emitted(16, 22) Source(14, 25) + SourceIndex(0)
7 >Emitted(16, 23) Source(14, 26) + SourceIndex(0)
---
>>>//# sourceMappingURL=/tests/cases/projects/outputdir_module_multifolder/mapFiles/outputdir_module_multifolder/test.js.map===================================================================
JsFile: test.js
mapUrl: /tests/cases/projects/outputdir_module_multifolder/mapFiles/test.js.map
sourceRoot:
sources:
sources: ../ref/m1.ts,../../outputdir_module_multifolder_ref/m2.ts,../test.ts
===================================================================
>>>//# sourceMappingURL=/tests/cases/projects/outputdir_module_multifolder/mapFiles/test.js.map
@@ -1,6 +0,0 @@
export declare var m1_a1: number;
export declare class m1_c1 {
m1_c1_p1: number;
}
export declare var m1_instance1: m1_c1;
export declare function m1_f1(): m1_c1;
@@ -1,13 +0,0 @@
exports.m1_a1 = 10;
var m1_c1 = (function () {
function m1_c1() {
}
return m1_c1;
})();
exports.m1_c1 = m1_c1;
exports.m1_instance1 = new m1_c1();
function m1_f1() {
return exports.m1_instance1;
}
exports.m1_f1 = m1_f1;
//# sourceMappingURL=/tests/cases/projects/outputdir_module_multifolder/mapFiles/outputdir_module_multifolder/ref/m1.js.map
@@ -1 +0,0 @@
{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"}
@@ -1,10 +0,0 @@
import m1 = require("ref/m1");
import m2 = require("../outputdir_module_multifolder_ref/m2");
export declare var a1: number;
export declare class c1 {
p1: number;
}
export declare var instance1: c1;
export declare function f1(): c1;
export declare var a2: typeof m1.m1_c1;
export declare var a3: typeof m2.m2_c1;
@@ -1,17 +0,0 @@
var m1 = require("ref/m1");
var m2 = require("../outputdir_module_multifolder_ref/m2");
exports.a1 = 10;
var c1 = (function () {
function c1() {
}
return c1;
})();
exports.c1 = c1;
exports.instance1 = new c1();
function f1() {
return exports.instance1;
}
exports.f1 = f1;
exports.a2 = m1.m1_c1;
exports.a3 = m2.m2_c1;
//# sourceMappingURL=/tests/cases/projects/outputdir_module_multifolder/mapFiles/outputdir_module_multifolder/test.js.map
@@ -1 +0,0 @@
{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AAC9B,IAAO,EAAE,WAAW,wCAAwC,CAAC,CAAC;AACnD,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;AACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"}
@@ -0,0 +1,18 @@
declare module "m1" {
export var m1_a1: number;
export class m1_c1 {
m1_c1_p1: number;
}
export var m1_instance1: m1_c1;
export function m1_f1(): m1_c1;
}
declare module "test" {
import m1 = require("m1");
export var a1: number;
export class c1 {
p1: number;
}
export var instance1: c1;
export function f1(): c1;
export var a2: typeof m1.m1_c1;
}
@@ -1 +1,30 @@
define("m1", ["require", "exports"], function (require, exports) {
exports.m1_a1 = 10;
var m1_c1 = (function () {
function m1_c1() {
}
return m1_c1;
})();
exports.m1_c1 = m1_c1;
exports.m1_instance1 = new m1_c1();
function m1_f1() {
return exports.m1_instance1;
}
exports.m1_f1 = m1_f1;
});
define("test", ["require", "exports", "m1"], function (require, exports, m1) {
exports.a1 = 10;
var c1 = (function () {
function c1() {
}
return c1;
})();
exports.c1 = c1;
exports.instance1 = new c1();
function f1() {
return exports.instance1;
}
exports.f1 = f1;
exports.a2 = m1.m1_c1;
});
//# sourceMappingURL=/tests/cases/projects/outputdir_module_simple/mapFiles/test.js.map
@@ -1 +1 @@
{"version":3,"file":"test.js","sourceRoot":"","sources":[],"names":[],"mappings":""}
{"version":3,"file":"test.js","sourceRoot":"","sources":["../m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":";IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;;ICPU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAC;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"}
@@ -1,6 +0,0 @@
export declare var m1_a1: number;
export declare class m1_c1 {
m1_c1_p1: number;
}
export declare var m1_instance1: m1_c1;
export declare function m1_f1(): m1_c1;
@@ -1,15 +0,0 @@
define(["require", "exports"], function (require, exports) {
exports.m1_a1 = 10;
var m1_c1 = (function () {
function m1_c1() {
}
return m1_c1;
})();
exports.m1_c1 = m1_c1;
exports.m1_instance1 = new m1_c1();
function m1_f1() {
return exports.m1_instance1;
}
exports.m1_f1 = m1_f1;
});
//# sourceMappingURL=/tests/cases/projects/outputdir_module_simple/mapFiles/m1.js.map

Some files were not shown because too many files have changed in this diff Show More