Comments for module declaration

This commit is contained in:
Sheetal Nandi
2014-08-14 06:53:37 -07:00
parent 84fa5b421a
commit c9d16b002d
76 changed files with 1812 additions and 1560 deletions
+2
View File
@@ -1569,6 +1569,7 @@ module ts {
function emitModuleDeclaration(node: ModuleDeclaration) {
if (!isInstantiated(node)) return;
emitLeadingComments(node);
if (!(node.flags & NodeFlags.Export)) {
emitStart(node);
write("var ");
@@ -1615,6 +1616,7 @@ module ts {
emitEnd(node);
write(";");
}
emitTrailingComments(node);
}
function emitImportDeclaration(node: ImportDeclaration) {
@@ -132,11 +132,13 @@ var E;
E[E["x"] = function () { return 4; }] = "x";
E[E["y"] = (function () { return _this; }).length] = "y";
})(E || (E = {}));
// Arrow function as module variable initializer
var M;
(function (M) {
M.a = function (s) { return ''; };
var b = function (s) { return s; };
})(M || (M = {}));
// Repeat above for module members that are functions? (necessary to redo all of them?)
var M2;
(function (M2) {
with (window) {
@@ -168,6 +170,7 @@ var M2;
E[E["x"] = function () { return 4; }] = "x";
E[E["y"] = (function () { return _this; }).length] = "y";
})(E || (E = {}));
// Arrow function as module variable initializer
var M;
(function (M) {
M.a = function (s) { return ''; };
@@ -105,6 +105,7 @@ var __extends = this.__extends || function (d, b) {
__.prototype = b.prototype;
d.prototype = new __();
};
// These are mostly permitted with the current loose rules. All ok unless otherwise noted.
var Errors;
(function (Errors) {
var Base = (function () {
@@ -105,6 +105,7 @@ var __extends = this.__extends || function (d, b) {
__.prototype = b.prototype;
d.prototype = new __();
};
// checking assignment compatibility relations for function types.
var Errors;
(function (Errors) {
var Base = (function () {
@@ -131,6 +131,7 @@ module GenericSignaturesValid {
}
//// [assignmentCompatWithGenericCallSignaturesWithOptionalParameters.js]
// call signatures in derived types must have the same or fewer optional parameters as the target for assignment
var ClassTypeParam;
(function (ClassTypeParam) {
var Base = (function () {
@@ -86,6 +86,8 @@ module ObjectTypes {
}
//// [assignmentCompatWithObjectMembers.js]
// members N and M of types S and T have the same name, same accessibility, same optionality, and N is assignable M
// no errors expected
var SimpleTypes;
(function (SimpleTypes) {
var S = (function () {
@@ -98,6 +98,7 @@ var __extends = this.__extends || function (d, b) {
__.prototype = b.prototype;
d.prototype = new __();
};
// members N and M of types S and T have the same name, same accessibility, same optionality, and N is not assignable M
var OnlyDerived;
(function (OnlyDerived) {
var Base = (function () {
@@ -110,6 +110,7 @@ module TargetIsPublic {
}
//// [assignmentCompatWithObjectMembersAccessibility.js]
// members N and M of types S and T have the same name, same accessibility, same optionality, and N is assignable M
var TargetIsPublic;
(function (TargetIsPublic) {
// targets
@@ -86,6 +86,8 @@ module NumbersAndStrings {
}
//// [assignmentCompatWithObjectMembersStringNumericNames.js]
// members N and M of types S and T have the same name, same accessibility, same optionality, and N is assignable M
// string named numeric properties work correctly, errors below unless otherwise noted
var JustStrings;
(function (JustStrings) {
var S = (function () {
@@ -258,10 +258,12 @@ var m4d;
(function (m4d) {
m4d[m4d["One"] = 0] = "One";
})(m4d || (m4d = {}));
//// module then module
var m5;
(function (m5) {
m5.y = 2;
})(m5 || (m5 = {}));
// module then import
var m6;
(function (m6) {
m6.y = 2;
@@ -60,6 +60,7 @@ var m4d;
(function (m4d) {
m4d[m4d["One"] = 0] = "One";
})(m4d || (m4d = {}));
//// module then module
var m5;
(function (m5) {
m5.y = 2;
@@ -120,6 +120,8 @@ var __extends = this.__extends || function (d, b) {
__.prototype = b.prototype;
d.prototype = new __();
};
// checking subtype relations for function types as it relates to contextual signature instantiation
// error cases
var Errors;
(function (Errors) {
var Base = (function () {
@@ -26,6 +26,7 @@ var __extends = this.__extends || function (d, b) {
__.prototype = b.prototype;
d.prototype = new __();
};
// expected no error
var B;
(function (B) {
B.a = A;
@@ -9,6 +9,7 @@ export module outerModule.InnerModule {
//// [commentsDottedModuleName.js]
define(["require", "exports"], function (require, exports) {
/** this is multi declare module*/
(function (outerModule) {
(function (InnerModule) {
/// class b comment
@@ -63,6 +63,7 @@ var newVar2 = new extMod.m4.m2.c();
//// [commentsExternalModules_0.js]
define(["require", "exports"], function (require, exports) {
/** Module comment*/
(function (m1) {
/** b's comment*/
m1.b;
@@ -70,6 +71,7 @@ define(["require", "exports"], function (require, exports) {
function foo() {
return m1.b;
}
/** m2 comments*/
(function (m2) {
/** class comment;*/
var c = (function () {
@@ -92,6 +94,7 @@ define(["require", "exports"], function (require, exports) {
var m1 = exports.m1;
m1.fooExport();
var myvar = new m1.m2.c();
/** Module comment */
(function (m4) {
/** b's comment */
m4.b;
@@ -100,6 +103,8 @@ define(["require", "exports"], function (require, exports) {
function foo() {
return m4.b;
}
/** m2 comments
*/
(function (m2) {
/** class comment; */
var c = (function () {
@@ -98,6 +98,7 @@ module m7.m8 {
new m7.m8.m9.c();
//// [commentsModules.js]
/** Module comment*/
var m1;
(function (m1) {
/** b's comment*/
@@ -106,6 +107,7 @@ var m1;
function foo() {
return m1.b;
}
/** m2 comments*/
(function (m2) {
/** class comment;*/
var c = (function () {
@@ -142,6 +144,7 @@ var m1;
})(m1 || (m1 = {}));
m1.fooExport();
var myvar = new m1.m2.c();
/** module comment of m2.m3*/
var m2;
(function (m2) {
(function (m3) {
@@ -156,6 +159,7 @@ var m2;
var m3 = m2.m3;
})(m2 || (m2 = {}));
new m2.m3.c();
/** module comment of m3.m4.m5*/
var m3;
(function (m3) {
(function (m4) {
@@ -173,6 +177,7 @@ var m3;
var m4 = m3.m4;
})(m3 || (m3 = {}));
new m3.m4.m5.c();
/** module comment of m4.m5.m6*/
var m4;
(function (m4) {
(function (m5) {
@@ -193,10 +198,12 @@ var m4;
var m5 = m4.m5;
})(m4 || (m4 = {}));
new m4.m5.m6.m7.c();
/** module comment of m5.m6.m7*/
var m5;
(function (m5) {
(function (m6) {
(function (m7) {
/** module m8 comment*/
(function (m8) {
/** Exported class comment*/
var c = (function () {
@@ -233,6 +240,7 @@ new m6.m7.m8.c();
var m7;
(function (m7) {
(function (m8) {
/** module m9 comment*/
(function (m9) {
/** Exported class comment*/
var c = (function () {
@@ -38,6 +38,7 @@ new multiM.d();
//// [commentsMultiModuleMultiFile_0.js]
define(["require", "exports"], function (require, exports) {
/** this is multi declare module*/
(function (multiM) {
/// class b comment
var b = (function () {
@@ -48,6 +49,7 @@ define(["require", "exports"], function (require, exports) {
multiM.b = b;
})(exports.multiM || (exports.multiM = {}));
var multiM = exports.multiM;
/** thi is multi module 2*/
(function (multiM) {
/** class c comment*/
var c = (function () {
@@ -70,6 +72,7 @@ define(["require", "exports"], function (require, exports) {
});
//// [commentsMultiModuleMultiFile_1.js]
define(["require", "exports"], function (require, exports) {
/** this is multi module 3 comment*/
(function (multiM) {
/** class d comment*/
var d = (function () {
@@ -25,6 +25,7 @@ new multiM.b();
new multiM.c();
//// [commentsMultiModuleSingleFile.js]
/** this is multi declare module*/
var multiM;
(function (multiM) {
/** class b*/
@@ -42,6 +43,7 @@ var multiM;
})();
multiM.d = d;
})(multiM || (multiM = {}));
/// this is multi module 2
var multiM;
(function (multiM) {
/** class c comment*/
@@ -131,6 +131,7 @@ var c = (function () {
var i = new c();
/**interface instance comments*/
var i1_i;
/** this is module comment*/
var m1;
(function (m1) {
/** class b */
@@ -131,6 +131,7 @@ var c = (function () {
var i = new c();
/**interface instance comments*/
var i1_i;
/** this is module comment*/
var m1;
(function (m1) {
/** class b */
@@ -118,6 +118,8 @@ var __extends = this.__extends || function (d, b) {
__.prototype = b.prototype;
d.prototype = new __();
};
// checking subtype relations for function types as it relates to contextual signature instantiation
// error cases
var Errors;
(function (Errors) {
var Base = (function () {
@@ -232,4 +232,4 @@ var x: B = { };
//// [contextualTyping.js]
// CONTEXT: Class property declaration\nvar C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\n// CONTEXT: Class property assignment\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\n// CONTEXT: Function call\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\n// CONTEXT: Newing a class\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map
// CONTEXT: Class property declaration\nvar C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\n// CONTEXT: Module property declaration\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\n// CONTEXT: Class property assignment\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\n// CONTEXT: Module property assignment\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\n// CONTEXT: Function call\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\n// CONTEXT: Newing a class\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
@@ -49,6 +49,7 @@ var __extends = this.__extends || function (d, b) {
__.prototype = b.prototype;
d.prototype = new __();
};
// Module
var templa;
(function (templa) {
(function (dom) {
@@ -66,6 +67,7 @@ var templa;
})(templa.dom || (templa.dom = {}));
var dom = templa.dom;
})(templa || (templa = {}));
// Module
var templa;
(function (templa) {
(function (dom) {
@@ -35,6 +35,7 @@ module test {
//// [duplicateStringIndexers.js]
// it is an error to have duplicate index signatures of the same kind in a type
var test;
(function (test) {
var C = (function () {
@@ -67,6 +67,7 @@ export interface D { }
//// [duplicateSymbolsExportMatching.js]
define(["require", "exports"], function (require, exports) {
// Should report error only once for instantiated module
var M;
(function (M) {
var inst;
@@ -78,6 +79,7 @@ define(["require", "exports"], function (require, exports) {
})(M.inst || (M.inst = {}));
var inst = M.inst;
})(M || (M = {}));
// Variables of the same / different type
var M2;
(function (M2) {
var v;
@@ -32,6 +32,7 @@ class C {
}
//// [duplicateVariablesByScope.js]
// duplicate local variables are only reported at global scope
var M;
(function (M) {
for (var j = 0; j < 10; j++) {
+5
View File
@@ -67,6 +67,8 @@ module M6 {
//// [enumMerging.js]
// Enum with only constant members across 2 declarations with the same root module
// Enum with initializer in all declarations with constant members with the same root module
var M1;
(function (M1) {
var EImpl1;
@@ -95,6 +97,7 @@ var M1;
var EConst1 = M1.EConst1;
var x = [3 /* A */, 2 /* B */, 1 /* C */, 7 /* D */, 9 /* E */, 8 /* F */];
})(M1 || (M1 = {}));
// Enum with only computed members across 2 declarations with the same root module
var M2;
(function (M2) {
(function (EComp2) {
@@ -111,6 +114,7 @@ var M2;
var EComp2 = M2.EComp2;
var x = [EComp2.A, EComp2.B, EComp2.C, EComp2.D, EComp2.E, EComp2.F];
})(M2 || (M2 = {}));
// Enum with initializer in only one of two declarations with constant members with the same root module
var M3;
(function (M3) {
var EInit;
@@ -125,6 +129,7 @@ var M3;
EInit[EInit["E"] = 3] = "E";
})(EInit || (EInit = {}));
})(M3 || (M3 = {}));
// Enums with same name but different root module
var M4;
(function (M4) {
(function (Color) {
@@ -43,6 +43,7 @@ module M2 {
//// [enumMergingErrors.js]
// Enum with constant, computed, constant members split across 3 declarations with the same root module
var M;
(function (M) {
(function (E1) {
@@ -88,6 +89,7 @@ var M;
})(M.E3 || (M.E3 = {}));
var E3 = M.E3;
})(M || (M = {}));
// Enum with no initializer in either declaration with constant members with the same root module
var M1;
(function (M1) {
(function (E1) {
@@ -109,6 +111,7 @@ var M1;
})(M1.E1 || (M1.E1 = {}));
var E1 = M1.E1;
})(M1 || (M1 = {}));
// Enum with initializer in only one of three declarations with constant members with the same root module
var M2;
(function (M2) {
(function (E1) {
@@ -137,6 +137,7 @@ a++;
var b = 1;
b++;
\u0062++;
// modules
var moduleType1;
(function (moduleType1) {
moduleType1.baz1;
@@ -55,6 +55,8 @@ module F {
}
//// [exportCodeGen.js]
// should replace all refs to 'x' in the body,
// with fully qualified
var A;
(function (A) {
A.x = 12;
@@ -62,6 +64,7 @@ var A;
return A.x < 12;
}
})(A || (A = {}));
// should not fully qualify 'x'
var B;
(function (B) {
var x = 12;
@@ -69,12 +72,14 @@ var B;
return x < 12;
}
})(B || (B = {}));
// not copied, since not exported
var C;
(function (C) {
function no() {
return false;
}
})(C || (C = {}));
// copies, since exported
var D;
(function (D) {
function yes() {
@@ -82,6 +87,7 @@ var D;
}
D.yes = yes;
})(D || (D = {}));
// validate all exportable statements
var E;
(function (E) {
(function (Color) {
@@ -102,6 +108,8 @@ var E;
})(E.M || (E.M = {}));
var M = E.M;
})(E || (E = {}));
// validate all exportable statements,
// which are not exported
var F;
(function (F) {
var Color;
@@ -69,6 +69,7 @@ var p: { x: number; y: number; }
var p: M.D.Point;
//// [exportImportAlias.js]
// expect no errors here
var A;
(function (A) {
A.x = 'hello world';
@@ -28,6 +28,8 @@ function overrr() {
//// [functionNameConflicts.js]
//Function and variable of the same name in same declaration space
//Function overload with different name from implementation signature
var M;
(function (M) {
function fn1() {
@@ -152,6 +152,7 @@ var cls = (function () {
};
return cls;
})();
//Function overloads with differing export
var M;
(function (M) {
function fn1() {
@@ -49,6 +49,8 @@ module GenericParameter {
}
//// [genericCallWithOverloadedConstructorTypedArguments.js]
// Function typed arguments with multiple signatures must be passed an implementation that matches all of them
// Inferences are made quadratic-pairwise to and from these overload sets
var NonGenericParameter;
(function (NonGenericParameter) {
var a;
@@ -41,6 +41,8 @@ module GenericParameter {
}
//// [genericCallWithOverloadedConstructorTypedArguments2.js]
// Function typed arguments with multiple signatures must be passed an implementation that matches all of them
// Inferences are made quadratic-pairwise to and from these overload sets
var NonGenericParameter;
(function (NonGenericParameter) {
var a;
@@ -45,6 +45,8 @@ module GenericParameter {
}
//// [genericCallWithOverloadedFunctionTypedArguments.js]
// Function typed arguments with multiple signatures must be passed an implementation that matches all of them
// Inferences are made quadratic-pairwise to and from these overload sets
var NonGenericParameter;
(function (NonGenericParameter) {
var a;
@@ -38,6 +38,8 @@ module GenericParameter {
}
//// [genericCallWithOverloadedFunctionTypedArguments2.js]
// Function typed arguments with multiple signatures must be passed an implementation that matches all of them
// Inferences are made quadratic-pairwise to and from these overload sets
var NonGenericParameter;
(function (NonGenericParameter) {
var a;
@@ -65,6 +65,8 @@ module WithCandidates {
}
//// [genericClassWithFunctionTypedMemberArguments.js]
// Generic functions used as arguments for function typed parameters are not used to make inferences from
// Using function arguments, no errors expected
var ImmediatelyFix;
(function (ImmediatelyFix) {
var C = (function () {
@@ -118,6 +118,7 @@ var Bar3 = (function (_super) {
}
return Bar3;
})(Foo);
// another level of indirection
var M;
(function (M) {
var Foo = (function () {
@@ -154,6 +155,7 @@ var M;
return Bar3;
})(Foo);
})(M || (M = {}));
// two levels of privates
var M2;
(function (M2) {
var Foo = (function () {
@@ -34,6 +34,7 @@ var A;
A.Point = Point;
A.Origin = new Point(0, 0);
})(A || (A = {}));
// no code gen expected
var C;
(function (C) {
var m;
@@ -47,12 +47,14 @@ var A;
A.Point = Point;
A.Origin = new Point(0, 0);
})(A || (A = {}));
// no code gen expected
var C;
(function (C) {
var m;
var p;
var p = { x: 0, y: 0 };
})(C || (C = {}));
// code gen expected
var D;
(function (D) {
var a = A;
@@ -42,16 +42,19 @@ module E {
}
//// [importStatementsInterfaces.js]
// no code gen expected
var C;
(function (C) {
var m;
var p;
var p = { x: 0, y: 0, z: 0 };
})(C || (C = {}));
// no code gen expected
var D;
(function (D) {
var p;
})(D || (D = {}));
// no code gen expected
var E;
(function (E) {
function xDist(x) {
@@ -61,6 +61,7 @@ var p3 = m3.Color.Blue;
//// [instantiatedModule.js]
// adding the var makes this an instantiated module
var M;
(function (M) {
M.Point = 1;
@@ -73,6 +74,8 @@ var a1 = M.Point;
var a1 = m.Point;
var p1;
var p1;
// making the point a class instead of an interface
// makes this an instantiated mmodule
var M2;
(function (M2) {
var Point = (function () {
@@ -12,6 +12,7 @@ module m {
//// [interfaceInReopenedModule.js]
// In second instance of same module, exported interface is not visible
var m;
(function (m) {
var n = (function () {
@@ -87,6 +87,7 @@ var b;
var r4 = b.foo;
var r5 = b.bar;
var r6 = b.baz;
// basic non-generic and generic case inside a module
var M;
(function (M) {
var a;
@@ -68,6 +68,8 @@ module M2 {
}
//// [mergeThreeInterfaces2.js]
// two interfaces with the same root module should merge
// root module now multiple module declarations
var M2;
(function (M2) {
var a;
@@ -81,6 +83,7 @@ var M2;
var r2 = a.bar;
var r3 = a.baz;
})(M2 || (M2 = {}));
// same as above but with an additional level of nesting and third module declaration
var M2;
(function (M2) {
(function (M3) {
@@ -64,6 +64,7 @@ var r2 = a.bar;
var b;
var r3 = b.foo;
var r4 = b.bar;
// basic non-generic and generic case inside a module
var M;
(function (M) {
var a;
@@ -48,6 +48,8 @@ module M2 {
}
//// [mergeTwoInterfaces2.js]
// two interfaces with the same root module should merge
// root module now multiple module declarations
var M2;
(function (M2) {
var a;
@@ -60,6 +62,7 @@ var M2;
var r1 = a.foo;
var r2 = a.bar;
})(M2 || (M2 = {}));
// same as above but with an additional level of nesting
var M2;
(function (M2) {
(function (M3) {
@@ -74,6 +74,7 @@ var D = (function () {
})();
var a;
var r = a.a;
// generic interfaces in a module
var M;
(function (M) {
var C = (function () {
@@ -105,6 +105,7 @@ var D = (function () {
})();
var a;
var r = a.a;
// generic interfaces in a module
var M;
(function (M) {
var C = (function () {
@@ -65,6 +65,7 @@ var _modes;
})();
_modes.Mode = Mode;
})(_modes || (_modes = {}));
// _modes. // produces an internal error - please implement in derived class
var editor;
(function (editor) {
var i;
@@ -11,6 +11,7 @@ var t: M.A[] = [];
var t2: M.B[] = [];
//// [moduleClassArrayCodeGenTest.js]
// Invalid code gen for Array of Module class
var M;
(function (M) {
var A = (function () {
+1
View File
@@ -24,6 +24,7 @@ module A
}
//// [moduleMerge.js]
// This should not compile both B classes are in the same module this should be a collission
var A;
(function (A) {
var B = (function () {
@@ -35,6 +35,7 @@ var _modes;
return Mode;
})();
})(_modes || (_modes = {}));
//_modes. // produces an internal error - please implement in derived class
var editor;
(function (editor) {
var i;
@@ -93,6 +93,8 @@ var Y;
})(_Y.Y || (_Y.Y = {}));
var Y = _Y.Y;
})(Y || (Y = {}));
// no collision, since interface doesn't
// generate code.
var D;
(function (D) {
D.E = 'hello';
@@ -223,6 +223,7 @@ var glo_M1_public;
})(glo_M1_public || (glo_M1_public = {}));
var m2;
(function (m2) {
//import m3 = require("use_glo_M1_public");
var m4;
(function (m4) {
var a = 10;
@@ -478,6 +478,13 @@ var m2;
glo_M1_public.v2;
})(exports.glo_M1_public || (exports.glo_M1_public = {}));
var glo_M1_public = exports.glo_M1_public;
//export declare module "glo_M2_public" {
// export function f1();
// export class c1 {
// }
// export var v1: { new (): c1; };
// export var v2: c1;
//}
(function (glo_M3_private) {
var c1 = (function () {
function c1() {
@@ -513,14 +520,90 @@ var glo_im3_private_v3_private = glo_im3_private.f1;
var glo_im3_private_v4_private = glo_im3_private.f1();
exports.glo_im1_public = glo_M1_public;
exports.glo_im2_public = glo_M3_private;
//export import glo_im3_public = require("glo_M2_public");
//export import glo_im4_public = require("glo_M4_private");
//export declare module "use_glo_M1_public" {
// import use_glo_M1_public = glo_M1_public;
// export var use_glo_M1_public_v1_public: { new (): use_glo_M1_public.c1; };
// export var use_glo_M1_public_v2_public: use_glo_M1_public;
// export var use_glo_M1_public_v3_public: () => use_glo_M1_public.c1;
// var use_glo_M1_public_v1_private: { new (): use_glo_M1_public.c1; };
// var use_glo_M1_public_v2_private: use_glo_M1_public;
// var use_glo_M1_public_v3_private: () => use_glo_M1_public.c1;
// import use_glo_M2_public = require("glo_M2_public");
// export var use_glo_M2_public_v1_public: { new (): use_glo_M2_public.c1; };
// export var use_glo_M2_public_v2_public: use_glo_M2_public;
// export var use_glo_M2_public_v3_public: () => use_glo_M2_public.c1;
// var use_glo_M2_public_v1_private: { new (): use_glo_M2_public.c1; };
// var use_glo_M2_public_v2_private: use_glo_M2_public;
// var use_glo_M2_public_v3_private: () => use_glo_M2_public.c1;
// module m2 {
// import errorImport = require("glo_M2_public");
// import nonerrorImport = glo_M1_public;
// module m5 {
// import m5_errorImport = require("glo_M2_public");
// import m5_nonerrorImport = glo_M1_public;
// }
// }
//}
//declare module "use_glo_M3_private" {
// import use_glo_M3_private = glo_M3_private;
// export var use_glo_M3_private_v1_public: { new (): use_glo_M3_private.c1; };
// export var use_glo_M3_private_v2_public: use_glo_M3_private;
// export var use_glo_M3_private_v3_public: () => use_glo_M3_private.c1;
// var use_glo_M3_private_v1_private: { new (): use_glo_M3_private.c1; };
// var use_glo_M3_private_v2_private: use_glo_M3_private;
// var use_glo_M3_private_v3_private: () => use_glo_M3_private.c1;
// import use_glo_M4_private = require("glo_M4_private");
// export var use_glo_M4_private_v1_public: { new (): use_glo_M4_private.c1; };
// export var use_glo_M4_private_v2_public: use_glo_M4_private;
// export var use_glo_M4_private_v3_public: () => use_glo_M4_private.c1;
// var use_glo_M4_private_v1_private: { new (): use_glo_M4_private.c1; };
// var use_glo_M4_private_v2_private: use_glo_M4_private;
// var use_glo_M4_private_v3_private: () => use_glo_M4_private.c1;
// module m2 {
// import errorImport = require("glo_M4_private");
// import nonerrorImport = glo_M3_private;
// module m5 {
// import m5_errorImport = require("glo_M4_private");
// import m5_nonerrorImport = glo_M3_private;
// }
// }
//}
//declare module "anotherParseError" {
// module m2 {
// declare module "abc" {
// }
// }
// module m2 {
// module "abc2" {
// }
// }
// module "abc3" {
// }
//}
//declare export module "anotherParseError2" {
// module m2 {
// declare module "abc" {
// }
// }
// module m2 {
// module "abc2" {
// }
// }
// module "abc3" {
// }
//}
var m2;
(function (m2) {
//import m3 = require("use_glo_M1_public");
var m4;
(function (m4) {
var a = 10;
})(m4 || (m4 = {}));
})(m2 || (m2 = {}));
(function (m3) {
//import m3 = require("use_glo_M1_public");
var m4;
(function (m4) {
var a = 10;
@@ -153,6 +153,7 @@ module import_private {
}
//// [privacyLocalInternalReferenceImportWithExport.js]
// private elements
var m_private;
(function (m_private) {
var c_private = (function () {
@@ -181,6 +182,7 @@ var m_private;
})(m_private.mi_private || (m_private.mi_private = {}));
var mi_private = m_private.mi_private;
})(m_private || (m_private = {}));
// Public elements
(function (m_public) {
var c_public = (function () {
function c_public() {
@@ -154,6 +154,7 @@ module import_private {
//// [privacyLocalInternalReferenceImportWithoutExport.js]
define(["require", "exports"], function (require, exports) {
// private elements
var m_private;
(function (m_private) {
var c_private = (function () {
@@ -182,6 +183,7 @@ define(["require", "exports"], function (require, exports) {
})(m_private.mi_private || (m_private.mi_private = {}));
var mi_private = m_private.mi_private;
})(m_private || (m_private = {}));
// Public elements
(function (m_public) {
var c_public = (function () {
function c_public() {
@@ -101,6 +101,7 @@ export var publicUse_im_public_mu_public: im_public_mu_public.i;
//// [privacyTopLevelInternalReferenceImportWithExport.js]
define(["require", "exports"], function (require, exports) {
// private elements
var m_private;
(function (m_private) {
var c_private = (function () {
@@ -129,6 +130,7 @@ define(["require", "exports"], function (require, exports) {
})(m_private.mi_private || (m_private.mi_private = {}));
var mi_private = m_private.mi_private;
})(m_private || (m_private = {}));
// Public elements
(function (m_public) {
var c_public = (function () {
function c_public() {
@@ -102,6 +102,7 @@ export var publicUse_im_private_mu_public: im_private_mu_public.i;
//// [privacyTopLevelInternalReferenceImportWithoutExport.js]
define(["require", "exports"], function (require, exports) {
// private elements
var m_private;
(function (m_private) {
var c_private = (function () {
@@ -130,6 +131,7 @@ define(["require", "exports"], function (require, exports) {
})(m_private.mi_private || (m_private.mi_private = {}));
var mi_private = m_private.mi_private;
})(m_private || (m_private = {}));
// Public elements
(function (m_public) {
var c_public = (function () {
function c_public() {
@@ -6,6 +6,7 @@ var __extends = this.__extends || function (d, b) {
__.prototype = b.prototype;
d.prototype = new __();
};
// class inheritance to ensure __extends is emitted
var m;
(function (m) {
var base = (function () {
@@ -6,6 +6,7 @@ var __extends = this.__extends || function (d, b) {
__.prototype = b.prototype;
d.prototype = new __();
};
// class inheritance to ensure __extends is emitted
var m;
(function (m) {
var base = (function () {
@@ -34,6 +34,7 @@ module Z {
}
//// [shadowedInternalModule.js]
// all errors imported modules conflict with local variables
var A;
(function (A) {
A.Point = { x: 0, y: 0 };
@@ -37,6 +37,7 @@ var p: IPoint = new Shapes.Point(3, 4);
var dist = p.getDist();
//// [sourceMap-FileWithComments.js]
// Module
var Shapes;
(function (Shapes) {
// Class
@@ -1,2 +1,2 @@
//// [sourceMap-FileWithComments.js.map]
{"version":3,"file":"sourceMap-FileWithComments.js","sourceRoot":"","sources":["sourceMap-FileWithComments.ts"],"names":["Shapes","Shapes.Point","Shapes.Point.constructor","Shapes.Point.getDist","Shapes.foo"],"mappings":"AAOA,IAAO,MAAM,CAwBZ;AAxBD,WAAO,MAAM,EAAC,CAAC;IAGXA,AADAA,QAAQA;QACKA,KAAKA;QACdC,cAAcA;QACdA,SAFSA,KAAKA,CAEKA,CAASA,EAASA,CAASA;YAA3BC,MAACA,GAADA,CAACA,CAAQA;YAASA,MAACA,GAADA,CAACA,CAAQA;QAAIA,CAACA;QAEnDD,kBAAkBA;QAClBA,uBAAOA,GAAPA;YAAYE,MAAMA,CAACA,IAAIA,CAACA,IAAIA,CAACA,IAAIA,CAACA,CAACA,GAAGA,IAAIA,CAACA,CAACA,GAAGA,IAAIA,CAACA,CAACA,GAAGA,IAAIA,CAACA,CAACA,CAACA,CAACA;QAACA,CAACA;QAElEF,gBAAgBA;QACTA,YAAMA,GAAGA,IAAIA,KAAKA,CAACA,CAACA,EAAEA,CAACA,CAACA,CAACA;QACpCA,YAACA;IAADA,CAACA,AATDD,IASCA;IATYA,YAAKA,GAALA,KASZA,CAAAA;IAGDA,AADAA,+BAA+BA;QAC3BA,CAACA,GAAGA,EAAEA,CAACA;IAEXA,SAAgBA,GAAGA;IACnBI,CAACA;IADeJ,UAAGA,GAAHA,GACfA,CAAAA;IAKDA,AAHAA;;MAEEA;QACEA,CAACA,GAAGA,EAAEA,CAACA;AACfA,CAACA,EAxBM,MAAM,KAAN,MAAM,QAwBZ;AAGD,AADA,qBAAqB;IACjB,CAAC,GAAW,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACvC,IAAI,IAAI,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC"}
{"version":3,"file":"sourceMap-FileWithComments.js","sourceRoot":"","sources":["sourceMap-FileWithComments.ts"],"names":["Shapes","Shapes.Point","Shapes.Point.constructor","Shapes.Point.getDist","Shapes.foo"],"mappings":"AAOA,AADA,SAAS;AACT,IAAO,MAAM,CAwBZ;AAxBD,WAAO,MAAM,EAAC,CAAC;IAGXA,AADAA,QAAQA;QACKA,KAAKA;QACdC,cAAcA;QACdA,SAFSA,KAAKA,CAEKA,CAASA,EAASA,CAASA;YAA3BC,MAACA,GAADA,CAACA,CAAQA;YAASA,MAACA,GAADA,CAACA,CAAQA;QAAIA,CAACA;QAEnDD,kBAAkBA;QAClBA,uBAAOA,GAAPA;YAAYE,MAAMA,CAACA,IAAIA,CAACA,IAAIA,CAACA,IAAIA,CAACA,CAACA,GAAGA,IAAIA,CAACA,CAACA,GAAGA,IAAIA,CAACA,CAACA,GAAGA,IAAIA,CAACA,CAACA,CAACA,CAACA;QAACA,CAACA;QAElEF,gBAAgBA;QACTA,YAAMA,GAAGA,IAAIA,KAAKA,CAACA,CAACA,EAAEA,CAACA,CAACA,CAACA;QACpCA,YAACA;IAADA,CAACA,AATDD,IASCA;IATYA,YAAKA,GAALA,KASZA,CAAAA;IAGDA,AADAA,+BAA+BA;QAC3BA,CAACA,GAAGA,EAAEA,CAACA;IAEXA,SAAgBA,GAAGA;IACnBI,CAACA;IADeJ,UAAGA,GAAHA,GACfA,CAAAA;IAKDA,AAHAA;;MAEEA;QACEA,CAACA,GAAGA,EAAEA,CAACA;AACfA,CAACA,EAxBM,MAAM,KAAN,MAAM,QAwBZ;AAGD,AADA,qBAAqB;IACjB,CAAC,GAAW,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACvC,IAAI,IAAI,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC"}
@@ -8,12 +8,11 @@ sources: sourceMap-FileWithComments.ts
emittedFile:tests/cases/compiler/sourceMap-FileWithComments.js
sourceFile:sourceMap-FileWithComments.ts
-------------------------------------------------------------------
>>>var Shapes;
>>>// Module
1 >
2 >^^^^
3 > ^^^^^^
4 > ^
5 > ^^^^^^^^^^->
2 >
3 >^^^^^^^^^
4 > ^^^->
1 >
>// Interface
>interface IPoint {
@@ -22,6 +21,20 @@ sourceFile:sourceMap-FileWithComments.ts
>
>// Module
>
2 >
3 >// Module
1 >Emitted(1, 1) Source(8, 1) + SourceIndex(0)
2 >Emitted(1, 1) Source(7, 1) + SourceIndex(0)
3 >Emitted(1, 10) Source(7, 10) + SourceIndex(0)
---
>>>var Shapes;
1->
2 >^^^^
3 > ^^^^^^
4 > ^
5 > ^^^^^^^^^^->
1->
>
2 >module
3 > Shapes
4 > {
@@ -49,10 +62,10 @@ sourceFile:sourceMap-FileWithComments.ts
> */
> var b = 10;
> }
1 >Emitted(1, 1) Source(8, 1) + SourceIndex(0)
2 >Emitted(1, 5) Source(8, 8) + SourceIndex(0)
3 >Emitted(1, 11) Source(8, 14) + SourceIndex(0)
4 >Emitted(1, 12) Source(32, 2) + SourceIndex(0)
1->Emitted(2, 1) Source(8, 1) + SourceIndex(0)
2 >Emitted(2, 5) Source(8, 8) + SourceIndex(0)
3 >Emitted(2, 11) Source(8, 14) + SourceIndex(0)
4 >Emitted(2, 12) Source(32, 2) + SourceIndex(0)
---
>>>(function (Shapes) {
1->
@@ -65,11 +78,11 @@ sourceFile:sourceMap-FileWithComments.ts
3 > Shapes
4 >
5 > {
1->Emitted(2, 1) Source(8, 1) + SourceIndex(0)
2 >Emitted(2, 12) Source(8, 8) + SourceIndex(0)
3 >Emitted(2, 18) Source(8, 14) + SourceIndex(0)
4 >Emitted(2, 20) Source(8, 15) + SourceIndex(0)
5 >Emitted(2, 21) Source(8, 16) + SourceIndex(0)
1->Emitted(3, 1) Source(8, 1) + SourceIndex(0)
2 >Emitted(3, 12) Source(8, 8) + SourceIndex(0)
3 >Emitted(3, 18) Source(8, 14) + SourceIndex(0)
4 >Emitted(3, 20) Source(8, 15) + SourceIndex(0)
5 >Emitted(3, 21) Source(8, 16) + SourceIndex(0)
---
>>> // Class
1 >^^^^
@@ -82,9 +95,9 @@ sourceFile:sourceMap-FileWithComments.ts
>
2 >
3 > // Class
1 >Emitted(3, 5) Source(11, 5) + SourceIndex(0) name (Shapes)
2 >Emitted(3, 5) Source(10, 5) + SourceIndex(0) name (Shapes)
3 >Emitted(3, 13) Source(10, 13) + SourceIndex(0) name (Shapes)
1 >Emitted(4, 5) Source(11, 5) + SourceIndex(0) name (Shapes)
2 >Emitted(4, 5) Source(10, 5) + SourceIndex(0) name (Shapes)
3 >Emitted(4, 13) Source(10, 13) + SourceIndex(0) name (Shapes)
---
>>> var Point = (function () {
1->^^^^^^^^
@@ -93,8 +106,8 @@ sourceFile:sourceMap-FileWithComments.ts
1->
> export class
2 > Point
1->Emitted(4, 9) Source(11, 18) + SourceIndex(0) name (Shapes)
2 >Emitted(4, 14) Source(11, 23) + SourceIndex(0) name (Shapes)
1->Emitted(5, 9) Source(11, 18) + SourceIndex(0) name (Shapes)
2 >Emitted(5, 14) Source(11, 23) + SourceIndex(0) name (Shapes)
---
>>> // Constructor
1->^^^^^^^^
@@ -103,8 +116,8 @@ sourceFile:sourceMap-FileWithComments.ts
1-> implements IPoint {
>
2 > // Constructor
1->Emitted(5, 9) Source(12, 9) + SourceIndex(0) name (Shapes.Point)
2 >Emitted(5, 23) Source(12, 23) + SourceIndex(0) name (Shapes.Point)
1->Emitted(6, 9) Source(12, 9) + SourceIndex(0) name (Shapes.Point)
2 >Emitted(6, 23) Source(12, 23) + SourceIndex(0) name (Shapes.Point)
---
>>> function Point(x, y) {
1->^^^^^^^^
@@ -124,13 +137,13 @@ sourceFile:sourceMap-FileWithComments.ts
5 > x: number
6 > , public
7 > y: number
1->Emitted(6, 9) Source(13, 9) + SourceIndex(0) name (Shapes.Point)
2 >Emitted(6, 18) Source(11, 18) + SourceIndex(0) name (Shapes.Point)
3 >Emitted(6, 23) Source(11, 23) + SourceIndex(0) name (Shapes.Point)
4 >Emitted(6, 24) Source(13, 28) + SourceIndex(0) name (Shapes.Point)
5 >Emitted(6, 25) Source(13, 37) + SourceIndex(0) name (Shapes.Point)
6 >Emitted(6, 27) Source(13, 46) + SourceIndex(0) name (Shapes.Point)
7 >Emitted(6, 28) Source(13, 55) + SourceIndex(0) name (Shapes.Point)
1->Emitted(7, 9) Source(13, 9) + SourceIndex(0) name (Shapes.Point)
2 >Emitted(7, 18) Source(11, 18) + SourceIndex(0) name (Shapes.Point)
3 >Emitted(7, 23) Source(11, 23) + SourceIndex(0) name (Shapes.Point)
4 >Emitted(7, 24) Source(13, 28) + SourceIndex(0) name (Shapes.Point)
5 >Emitted(7, 25) Source(13, 37) + SourceIndex(0) name (Shapes.Point)
6 >Emitted(7, 27) Source(13, 46) + SourceIndex(0) name (Shapes.Point)
7 >Emitted(7, 28) Source(13, 55) + SourceIndex(0) name (Shapes.Point)
---
>>> this.x = x;
1 >^^^^^^^^^^^^
@@ -144,11 +157,11 @@ sourceFile:sourceMap-FileWithComments.ts
3 >
4 > x
5 > : number
1 >Emitted(7, 13) Source(13, 28) + SourceIndex(0) name (Shapes.Point.constructor)
2 >Emitted(7, 19) Source(13, 29) + SourceIndex(0) name (Shapes.Point.constructor)
3 >Emitted(7, 22) Source(13, 28) + SourceIndex(0) name (Shapes.Point.constructor)
4 >Emitted(7, 23) Source(13, 29) + SourceIndex(0) name (Shapes.Point.constructor)
5 >Emitted(7, 24) Source(13, 37) + SourceIndex(0) name (Shapes.Point.constructor)
1 >Emitted(8, 13) Source(13, 28) + SourceIndex(0) name (Shapes.Point.constructor)
2 >Emitted(8, 19) Source(13, 29) + SourceIndex(0) name (Shapes.Point.constructor)
3 >Emitted(8, 22) Source(13, 28) + SourceIndex(0) name (Shapes.Point.constructor)
4 >Emitted(8, 23) Source(13, 29) + SourceIndex(0) name (Shapes.Point.constructor)
5 >Emitted(8, 24) Source(13, 37) + SourceIndex(0) name (Shapes.Point.constructor)
---
>>> this.y = y;
1->^^^^^^^^^^^^
@@ -161,11 +174,11 @@ sourceFile:sourceMap-FileWithComments.ts
3 >
4 > y
5 > : number
1->Emitted(8, 13) Source(13, 46) + SourceIndex(0) name (Shapes.Point.constructor)
2 >Emitted(8, 19) Source(13, 47) + SourceIndex(0) name (Shapes.Point.constructor)
3 >Emitted(8, 22) Source(13, 46) + SourceIndex(0) name (Shapes.Point.constructor)
4 >Emitted(8, 23) Source(13, 47) + SourceIndex(0) name (Shapes.Point.constructor)
5 >Emitted(8, 24) Source(13, 55) + SourceIndex(0) name (Shapes.Point.constructor)
1->Emitted(9, 13) Source(13, 46) + SourceIndex(0) name (Shapes.Point.constructor)
2 >Emitted(9, 19) Source(13, 47) + SourceIndex(0) name (Shapes.Point.constructor)
3 >Emitted(9, 22) Source(13, 46) + SourceIndex(0) name (Shapes.Point.constructor)
4 >Emitted(9, 23) Source(13, 47) + SourceIndex(0) name (Shapes.Point.constructor)
5 >Emitted(9, 24) Source(13, 55) + SourceIndex(0) name (Shapes.Point.constructor)
---
>>> }
1 >^^^^^^^^
@@ -173,8 +186,8 @@ sourceFile:sourceMap-FileWithComments.ts
3 > ^^^^^^^^^^^^^^^^^^->
1 >) {
2 > }
1 >Emitted(9, 9) Source(13, 59) + SourceIndex(0) name (Shapes.Point.constructor)
2 >Emitted(9, 10) Source(13, 60) + SourceIndex(0) name (Shapes.Point.constructor)
1 >Emitted(10, 9) Source(13, 59) + SourceIndex(0) name (Shapes.Point.constructor)
2 >Emitted(10, 10) Source(13, 60) + SourceIndex(0) name (Shapes.Point.constructor)
---
>>> // Instance member
1->^^^^^^^^
@@ -184,8 +197,8 @@ sourceFile:sourceMap-FileWithComments.ts
>
>
2 > // Instance member
1->Emitted(10, 9) Source(15, 9) + SourceIndex(0) name (Shapes.Point)
2 >Emitted(10, 27) Source(15, 27) + SourceIndex(0) name (Shapes.Point)
1->Emitted(11, 9) Source(15, 9) + SourceIndex(0) name (Shapes.Point)
2 >Emitted(11, 27) Source(15, 27) + SourceIndex(0) name (Shapes.Point)
---
>>> Point.prototype.getDist = function () {
1->^^^^^^^^
@@ -196,9 +209,9 @@ sourceFile:sourceMap-FileWithComments.ts
>
2 > getDist
3 >
1->Emitted(11, 9) Source(16, 9) + SourceIndex(0) name (Shapes.Point)
2 >Emitted(11, 32) Source(16, 16) + SourceIndex(0) name (Shapes.Point)
3 >Emitted(11, 35) Source(16, 9) + SourceIndex(0) name (Shapes.Point)
1->Emitted(12, 9) Source(16, 9) + SourceIndex(0) name (Shapes.Point)
2 >Emitted(12, 32) Source(16, 16) + SourceIndex(0) name (Shapes.Point)
3 >Emitted(12, 35) Source(16, 9) + SourceIndex(0) name (Shapes.Point)
---
>>> return Math.sqrt(this.x * this.x + this.y * this.y);
1->^^^^^^^^^^^^
@@ -249,30 +262,30 @@ sourceFile:sourceMap-FileWithComments.ts
22> y
23> )
24> ;
1->Emitted(12, 13) Source(16, 21) + SourceIndex(0) name (Shapes.Point.getDist)
2 >Emitted(12, 19) Source(16, 27) + SourceIndex(0) name (Shapes.Point.getDist)
3 >Emitted(12, 20) Source(16, 28) + SourceIndex(0) name (Shapes.Point.getDist)
4 >Emitted(12, 24) Source(16, 32) + SourceIndex(0) name (Shapes.Point.getDist)
5 >Emitted(12, 25) Source(16, 33) + SourceIndex(0) name (Shapes.Point.getDist)
6 >Emitted(12, 29) Source(16, 37) + SourceIndex(0) name (Shapes.Point.getDist)
7 >Emitted(12, 30) Source(16, 38) + SourceIndex(0) name (Shapes.Point.getDist)
8 >Emitted(12, 34) Source(16, 42) + SourceIndex(0) name (Shapes.Point.getDist)
9 >Emitted(12, 35) Source(16, 43) + SourceIndex(0) name (Shapes.Point.getDist)
10>Emitted(12, 36) Source(16, 44) + SourceIndex(0) name (Shapes.Point.getDist)
11>Emitted(12, 39) Source(16, 47) + SourceIndex(0) name (Shapes.Point.getDist)
12>Emitted(12, 43) Source(16, 51) + SourceIndex(0) name (Shapes.Point.getDist)
13>Emitted(12, 44) Source(16, 52) + SourceIndex(0) name (Shapes.Point.getDist)
14>Emitted(12, 45) Source(16, 53) + SourceIndex(0) name (Shapes.Point.getDist)
15>Emitted(12, 48) Source(16, 56) + SourceIndex(0) name (Shapes.Point.getDist)
16>Emitted(12, 52) Source(16, 60) + SourceIndex(0) name (Shapes.Point.getDist)
17>Emitted(12, 53) Source(16, 61) + SourceIndex(0) name (Shapes.Point.getDist)
18>Emitted(12, 54) Source(16, 62) + SourceIndex(0) name (Shapes.Point.getDist)
19>Emitted(12, 57) Source(16, 65) + SourceIndex(0) name (Shapes.Point.getDist)
20>Emitted(12, 61) Source(16, 69) + SourceIndex(0) name (Shapes.Point.getDist)
21>Emitted(12, 62) Source(16, 70) + SourceIndex(0) name (Shapes.Point.getDist)
22>Emitted(12, 63) Source(16, 71) + SourceIndex(0) name (Shapes.Point.getDist)
23>Emitted(12, 64) Source(16, 72) + SourceIndex(0) name (Shapes.Point.getDist)
24>Emitted(12, 65) Source(16, 73) + SourceIndex(0) name (Shapes.Point.getDist)
1->Emitted(13, 13) Source(16, 21) + SourceIndex(0) name (Shapes.Point.getDist)
2 >Emitted(13, 19) Source(16, 27) + SourceIndex(0) name (Shapes.Point.getDist)
3 >Emitted(13, 20) Source(16, 28) + SourceIndex(0) name (Shapes.Point.getDist)
4 >Emitted(13, 24) Source(16, 32) + SourceIndex(0) name (Shapes.Point.getDist)
5 >Emitted(13, 25) Source(16, 33) + SourceIndex(0) name (Shapes.Point.getDist)
6 >Emitted(13, 29) Source(16, 37) + SourceIndex(0) name (Shapes.Point.getDist)
7 >Emitted(13, 30) Source(16, 38) + SourceIndex(0) name (Shapes.Point.getDist)
8 >Emitted(13, 34) Source(16, 42) + SourceIndex(0) name (Shapes.Point.getDist)
9 >Emitted(13, 35) Source(16, 43) + SourceIndex(0) name (Shapes.Point.getDist)
10>Emitted(13, 36) Source(16, 44) + SourceIndex(0) name (Shapes.Point.getDist)
11>Emitted(13, 39) Source(16, 47) + SourceIndex(0) name (Shapes.Point.getDist)
12>Emitted(13, 43) Source(16, 51) + SourceIndex(0) name (Shapes.Point.getDist)
13>Emitted(13, 44) Source(16, 52) + SourceIndex(0) name (Shapes.Point.getDist)
14>Emitted(13, 45) Source(16, 53) + SourceIndex(0) name (Shapes.Point.getDist)
15>Emitted(13, 48) Source(16, 56) + SourceIndex(0) name (Shapes.Point.getDist)
16>Emitted(13, 52) Source(16, 60) + SourceIndex(0) name (Shapes.Point.getDist)
17>Emitted(13, 53) Source(16, 61) + SourceIndex(0) name (Shapes.Point.getDist)
18>Emitted(13, 54) Source(16, 62) + SourceIndex(0) name (Shapes.Point.getDist)
19>Emitted(13, 57) Source(16, 65) + SourceIndex(0) name (Shapes.Point.getDist)
20>Emitted(13, 61) Source(16, 69) + SourceIndex(0) name (Shapes.Point.getDist)
21>Emitted(13, 62) Source(16, 70) + SourceIndex(0) name (Shapes.Point.getDist)
22>Emitted(13, 63) Source(16, 71) + SourceIndex(0) name (Shapes.Point.getDist)
23>Emitted(13, 64) Source(16, 72) + SourceIndex(0) name (Shapes.Point.getDist)
24>Emitted(13, 65) Source(16, 73) + SourceIndex(0) name (Shapes.Point.getDist)
---
>>> };
1 >^^^^^^^^
@@ -280,8 +293,8 @@ sourceFile:sourceMap-FileWithComments.ts
3 > ^^^^^^^^^^^^^^^^->
1 >
2 > }
1 >Emitted(13, 9) Source(16, 74) + SourceIndex(0) name (Shapes.Point.getDist)
2 >Emitted(13, 10) Source(16, 75) + SourceIndex(0) name (Shapes.Point.getDist)
1 >Emitted(14, 9) Source(16, 74) + SourceIndex(0) name (Shapes.Point.getDist)
2 >Emitted(14, 10) Source(16, 75) + SourceIndex(0) name (Shapes.Point.getDist)
---
>>> // Static member
1->^^^^^^^^
@@ -291,8 +304,8 @@ sourceFile:sourceMap-FileWithComments.ts
>
>
2 > // Static member
1->Emitted(14, 9) Source(18, 9) + SourceIndex(0) name (Shapes.Point)
2 >Emitted(14, 25) Source(18, 25) + SourceIndex(0) name (Shapes.Point)
1->Emitted(15, 9) Source(18, 9) + SourceIndex(0) name (Shapes.Point)
2 >Emitted(15, 25) Source(18, 25) + SourceIndex(0) name (Shapes.Point)
---
>>> Point.origin = new Point(0, 0);
1->^^^^^^^^
@@ -318,17 +331,17 @@ sourceFile:sourceMap-FileWithComments.ts
9 > 0
10> )
11> ;
1->Emitted(15, 9) Source(19, 16) + SourceIndex(0) name (Shapes.Point)
2 >Emitted(15, 21) Source(19, 22) + SourceIndex(0) name (Shapes.Point)
3 >Emitted(15, 24) Source(19, 25) + SourceIndex(0) name (Shapes.Point)
4 >Emitted(15, 28) Source(19, 29) + SourceIndex(0) name (Shapes.Point)
5 >Emitted(15, 33) Source(19, 34) + SourceIndex(0) name (Shapes.Point)
6 >Emitted(15, 34) Source(19, 35) + SourceIndex(0) name (Shapes.Point)
7 >Emitted(15, 35) Source(19, 36) + SourceIndex(0) name (Shapes.Point)
8 >Emitted(15, 37) Source(19, 38) + SourceIndex(0) name (Shapes.Point)
9 >Emitted(15, 38) Source(19, 39) + SourceIndex(0) name (Shapes.Point)
10>Emitted(15, 39) Source(19, 40) + SourceIndex(0) name (Shapes.Point)
11>Emitted(15, 40) Source(19, 41) + SourceIndex(0) name (Shapes.Point)
1->Emitted(16, 9) Source(19, 16) + SourceIndex(0) name (Shapes.Point)
2 >Emitted(16, 21) Source(19, 22) + SourceIndex(0) name (Shapes.Point)
3 >Emitted(16, 24) Source(19, 25) + SourceIndex(0) name (Shapes.Point)
4 >Emitted(16, 28) Source(19, 29) + SourceIndex(0) name (Shapes.Point)
5 >Emitted(16, 33) Source(19, 34) + SourceIndex(0) name (Shapes.Point)
6 >Emitted(16, 34) Source(19, 35) + SourceIndex(0) name (Shapes.Point)
7 >Emitted(16, 35) Source(19, 36) + SourceIndex(0) name (Shapes.Point)
8 >Emitted(16, 37) Source(19, 38) + SourceIndex(0) name (Shapes.Point)
9 >Emitted(16, 38) Source(19, 39) + SourceIndex(0) name (Shapes.Point)
10>Emitted(16, 39) Source(19, 40) + SourceIndex(0) name (Shapes.Point)
11>Emitted(16, 40) Source(19, 41) + SourceIndex(0) name (Shapes.Point)
---
>>> return Point;
1 >^^^^^^^^
@@ -336,8 +349,8 @@ sourceFile:sourceMap-FileWithComments.ts
1 >
>
2 > }
1 >Emitted(16, 9) Source(20, 5) + SourceIndex(0) name (Shapes.Point)
2 >Emitted(16, 21) Source(20, 6) + SourceIndex(0) name (Shapes.Point)
1 >Emitted(17, 9) Source(20, 5) + SourceIndex(0) name (Shapes.Point)
2 >Emitted(17, 21) Source(20, 6) + SourceIndex(0) name (Shapes.Point)
---
>>> })();
1 >^^^^
@@ -358,10 +371,10 @@ sourceFile:sourceMap-FileWithComments.ts
> // Static member
> static origin = new Point(0, 0);
> }
1 >Emitted(17, 5) Source(20, 5) + SourceIndex(0) name (Shapes.Point)
2 >Emitted(17, 6) Source(20, 6) + SourceIndex(0) name (Shapes.Point)
3 >Emitted(17, 6) Source(11, 5) + SourceIndex(0) name (Shapes)
4 >Emitted(17, 10) Source(20, 6) + SourceIndex(0) name (Shapes)
1 >Emitted(18, 5) Source(20, 5) + SourceIndex(0) name (Shapes.Point)
2 >Emitted(18, 6) Source(20, 6) + SourceIndex(0) name (Shapes.Point)
3 >Emitted(18, 6) Source(11, 5) + SourceIndex(0) name (Shapes)
4 >Emitted(18, 10) Source(20, 6) + SourceIndex(0) name (Shapes)
---
>>> Shapes.Point = Point;
1->^^^^
@@ -384,11 +397,11 @@ sourceFile:sourceMap-FileWithComments.ts
> static origin = new Point(0, 0);
> }
5 >
1->Emitted(18, 5) Source(11, 18) + SourceIndex(0) name (Shapes)
2 >Emitted(18, 17) Source(11, 23) + SourceIndex(0) name (Shapes)
3 >Emitted(18, 20) Source(11, 18) + SourceIndex(0) name (Shapes)
4 >Emitted(18, 25) Source(20, 6) + SourceIndex(0) name (Shapes)
5 >Emitted(18, 26) Source(20, 6) + SourceIndex(0) name (Shapes)
1->Emitted(19, 5) Source(11, 18) + SourceIndex(0) name (Shapes)
2 >Emitted(19, 17) Source(11, 23) + SourceIndex(0) name (Shapes)
3 >Emitted(19, 20) Source(11, 18) + SourceIndex(0) name (Shapes)
4 >Emitted(19, 25) Source(20, 6) + SourceIndex(0) name (Shapes)
5 >Emitted(19, 26) Source(20, 6) + SourceIndex(0) name (Shapes)
---
>>> // Variable comment after class
1->^^^^
@@ -400,9 +413,9 @@ sourceFile:sourceMap-FileWithComments.ts
>
2 >
3 > // Variable comment after class
1->Emitted(19, 5) Source(23, 5) + SourceIndex(0) name (Shapes)
2 >Emitted(19, 5) Source(22, 5) + SourceIndex(0) name (Shapes)
3 >Emitted(19, 36) Source(22, 36) + SourceIndex(0) name (Shapes)
1->Emitted(20, 5) Source(23, 5) + SourceIndex(0) name (Shapes)
2 >Emitted(20, 5) Source(22, 5) + SourceIndex(0) name (Shapes)
3 >Emitted(20, 36) Source(22, 36) + SourceIndex(0) name (Shapes)
---
>>> var a = 10;
1 >^^^^^^^^
@@ -417,11 +430,11 @@ sourceFile:sourceMap-FileWithComments.ts
3 > =
4 > 10
5 > ;
1 >Emitted(20, 9) Source(23, 9) + SourceIndex(0) name (Shapes)
2 >Emitted(20, 10) Source(23, 10) + SourceIndex(0) name (Shapes)
3 >Emitted(20, 13) Source(23, 13) + SourceIndex(0) name (Shapes)
4 >Emitted(20, 15) Source(23, 15) + SourceIndex(0) name (Shapes)
5 >Emitted(20, 16) Source(23, 16) + SourceIndex(0) name (Shapes)
1 >Emitted(21, 9) Source(23, 9) + SourceIndex(0) name (Shapes)
2 >Emitted(21, 10) Source(23, 10) + SourceIndex(0) name (Shapes)
3 >Emitted(21, 13) Source(23, 13) + SourceIndex(0) name (Shapes)
4 >Emitted(21, 15) Source(23, 15) + SourceIndex(0) name (Shapes)
5 >Emitted(21, 16) Source(23, 16) + SourceIndex(0) name (Shapes)
---
>>> function foo() {
1->^^^^
@@ -432,9 +445,9 @@ sourceFile:sourceMap-FileWithComments.ts
>
2 > export function
3 > foo
1->Emitted(21, 5) Source(25, 5) + SourceIndex(0) name (Shapes)
2 >Emitted(21, 14) Source(25, 21) + SourceIndex(0) name (Shapes)
3 >Emitted(21, 17) Source(25, 24) + SourceIndex(0) name (Shapes)
1->Emitted(22, 5) Source(25, 5) + SourceIndex(0) name (Shapes)
2 >Emitted(22, 14) Source(25, 21) + SourceIndex(0) name (Shapes)
3 >Emitted(22, 17) Source(25, 24) + SourceIndex(0) name (Shapes)
---
>>> }
1 >^^^^
@@ -443,8 +456,8 @@ sourceFile:sourceMap-FileWithComments.ts
1 >() {
>
2 > }
1 >Emitted(22, 5) Source(26, 5) + SourceIndex(0) name (Shapes.foo)
2 >Emitted(22, 6) Source(26, 6) + SourceIndex(0) name (Shapes.foo)
1 >Emitted(23, 5) Source(26, 5) + SourceIndex(0) name (Shapes.foo)
2 >Emitted(23, 6) Source(26, 6) + SourceIndex(0) name (Shapes.foo)
---
>>> Shapes.foo = foo;
1->^^^^
@@ -459,11 +472,11 @@ sourceFile:sourceMap-FileWithComments.ts
4 > foo() {
> }
5 >
1->Emitted(23, 5) Source(25, 21) + SourceIndex(0) name (Shapes)
2 >Emitted(23, 15) Source(25, 24) + SourceIndex(0) name (Shapes)
3 >Emitted(23, 18) Source(25, 21) + SourceIndex(0) name (Shapes)
4 >Emitted(23, 21) Source(26, 6) + SourceIndex(0) name (Shapes)
5 >Emitted(23, 22) Source(26, 6) + SourceIndex(0) name (Shapes)
1->Emitted(24, 5) Source(25, 21) + SourceIndex(0) name (Shapes)
2 >Emitted(24, 15) Source(25, 24) + SourceIndex(0) name (Shapes)
3 >Emitted(24, 18) Source(25, 21) + SourceIndex(0) name (Shapes)
4 >Emitted(24, 21) Source(26, 6) + SourceIndex(0) name (Shapes)
5 >Emitted(24, 22) Source(26, 6) + SourceIndex(0) name (Shapes)
---
>>> /** comment after function
1->^^^^
@@ -476,8 +489,8 @@ sourceFile:sourceMap-FileWithComments.ts
> */
>
2 >
1->Emitted(24, 5) Source(31, 5) + SourceIndex(0) name (Shapes)
2 >Emitted(24, 5) Source(28, 5) + SourceIndex(0) name (Shapes)
1->Emitted(25, 5) Source(31, 5) + SourceIndex(0) name (Shapes)
2 >Emitted(25, 5) Source(28, 5) + SourceIndex(0) name (Shapes)
---
>>> * this is another comment
>>> */
@@ -486,7 +499,7 @@ sourceFile:sourceMap-FileWithComments.ts
1->/** comment after function
> * this is another comment
> */
1->Emitted(26, 7) Source(30, 7) + SourceIndex(0) name (Shapes)
1->Emitted(27, 7) Source(30, 7) + SourceIndex(0) name (Shapes)
---
>>> var b = 10;
1->^^^^^^^^
@@ -501,11 +514,11 @@ sourceFile:sourceMap-FileWithComments.ts
3 > =
4 > 10
5 > ;
1->Emitted(27, 9) Source(31, 9) + SourceIndex(0) name (Shapes)
2 >Emitted(27, 10) Source(31, 10) + SourceIndex(0) name (Shapes)
3 >Emitted(27, 13) Source(31, 13) + SourceIndex(0) name (Shapes)
4 >Emitted(27, 15) Source(31, 15) + SourceIndex(0) name (Shapes)
5 >Emitted(27, 16) Source(31, 16) + SourceIndex(0) name (Shapes)
1->Emitted(28, 9) Source(31, 9) + SourceIndex(0) name (Shapes)
2 >Emitted(28, 10) Source(31, 10) + SourceIndex(0) name (Shapes)
3 >Emitted(28, 13) Source(31, 13) + SourceIndex(0) name (Shapes)
4 >Emitted(28, 15) Source(31, 15) + SourceIndex(0) name (Shapes)
5 >Emitted(28, 16) Source(31, 16) + SourceIndex(0) name (Shapes)
---
>>>})(Shapes || (Shapes = {}));
1->
@@ -547,13 +560,13 @@ sourceFile:sourceMap-FileWithComments.ts
> */
> var b = 10;
> }
1->Emitted(28, 1) Source(32, 1) + SourceIndex(0) name (Shapes)
2 >Emitted(28, 2) Source(32, 2) + SourceIndex(0) name (Shapes)
3 >Emitted(28, 4) Source(8, 8) + SourceIndex(0)
4 >Emitted(28, 10) Source(8, 14) + SourceIndex(0)
5 >Emitted(28, 15) Source(8, 8) + SourceIndex(0)
6 >Emitted(28, 21) Source(8, 14) + SourceIndex(0)
7 >Emitted(28, 29) Source(32, 2) + SourceIndex(0)
1->Emitted(29, 1) Source(32, 1) + SourceIndex(0) name (Shapes)
2 >Emitted(29, 2) Source(32, 2) + SourceIndex(0) name (Shapes)
3 >Emitted(29, 4) Source(8, 8) + SourceIndex(0)
4 >Emitted(29, 10) Source(8, 14) + SourceIndex(0)
5 >Emitted(29, 15) Source(8, 8) + SourceIndex(0)
6 >Emitted(29, 21) Source(8, 14) + SourceIndex(0)
7 >Emitted(29, 29) Source(32, 2) + SourceIndex(0)
---
>>>/** Local Variable */
1 >
@@ -566,9 +579,9 @@ sourceFile:sourceMap-FileWithComments.ts
>
2 >
3 >/** Local Variable */
1 >Emitted(29, 1) Source(35, 1) + SourceIndex(0)
2 >Emitted(29, 1) Source(34, 1) + SourceIndex(0)
3 >Emitted(29, 22) Source(34, 22) + SourceIndex(0)
1 >Emitted(30, 1) Source(35, 1) + SourceIndex(0)
2 >Emitted(30, 1) Source(34, 1) + SourceIndex(0)
3 >Emitted(30, 22) Source(34, 22) + SourceIndex(0)
---
>>>var p = new Shapes.Point(3, 4);
1->^^^^
@@ -598,19 +611,19 @@ sourceFile:sourceMap-FileWithComments.ts
11> 4
12> )
13> ;
1->Emitted(30, 5) Source(35, 5) + SourceIndex(0)
2 >Emitted(30, 6) Source(35, 6) + SourceIndex(0)
3 >Emitted(30, 9) Source(35, 17) + SourceIndex(0)
4 >Emitted(30, 13) Source(35, 21) + SourceIndex(0)
5 >Emitted(30, 19) Source(35, 27) + SourceIndex(0)
6 >Emitted(30, 20) Source(35, 28) + SourceIndex(0)
7 >Emitted(30, 25) Source(35, 33) + SourceIndex(0)
8 >Emitted(30, 26) Source(35, 34) + SourceIndex(0)
9 >Emitted(30, 27) Source(35, 35) + SourceIndex(0)
10>Emitted(30, 29) Source(35, 37) + SourceIndex(0)
11>Emitted(30, 30) Source(35, 38) + SourceIndex(0)
12>Emitted(30, 31) Source(35, 39) + SourceIndex(0)
13>Emitted(30, 32) Source(35, 40) + SourceIndex(0)
1->Emitted(31, 5) Source(35, 5) + SourceIndex(0)
2 >Emitted(31, 6) Source(35, 6) + SourceIndex(0)
3 >Emitted(31, 9) Source(35, 17) + SourceIndex(0)
4 >Emitted(31, 13) Source(35, 21) + SourceIndex(0)
5 >Emitted(31, 19) Source(35, 27) + SourceIndex(0)
6 >Emitted(31, 20) Source(35, 28) + SourceIndex(0)
7 >Emitted(31, 25) Source(35, 33) + SourceIndex(0)
8 >Emitted(31, 26) Source(35, 34) + SourceIndex(0)
9 >Emitted(31, 27) Source(35, 35) + SourceIndex(0)
10>Emitted(31, 29) Source(35, 37) + SourceIndex(0)
11>Emitted(31, 30) Source(35, 38) + SourceIndex(0)
12>Emitted(31, 31) Source(35, 39) + SourceIndex(0)
13>Emitted(31, 32) Source(35, 40) + SourceIndex(0)
---
>>>var dist = p.getDist();
1 >
@@ -633,14 +646,14 @@ sourceFile:sourceMap-FileWithComments.ts
7 > getDist
8 > ()
9 > ;
1 >Emitted(31, 1) Source(36, 1) + SourceIndex(0)
2 >Emitted(31, 5) Source(36, 5) + SourceIndex(0)
3 >Emitted(31, 9) Source(36, 9) + SourceIndex(0)
4 >Emitted(31, 12) Source(36, 12) + SourceIndex(0)
5 >Emitted(31, 13) Source(36, 13) + SourceIndex(0)
6 >Emitted(31, 14) Source(36, 14) + SourceIndex(0)
7 >Emitted(31, 21) Source(36, 21) + SourceIndex(0)
8 >Emitted(31, 23) Source(36, 23) + SourceIndex(0)
9 >Emitted(31, 24) Source(36, 24) + SourceIndex(0)
1 >Emitted(32, 1) Source(36, 1) + SourceIndex(0)
2 >Emitted(32, 5) Source(36, 5) + SourceIndex(0)
3 >Emitted(32, 9) Source(36, 9) + SourceIndex(0)
4 >Emitted(32, 12) Source(36, 12) + SourceIndex(0)
5 >Emitted(32, 13) Source(36, 13) + SourceIndex(0)
6 >Emitted(32, 14) Source(36, 14) + SourceIndex(0)
7 >Emitted(32, 21) Source(36, 21) + SourceIndex(0)
8 >Emitted(32, 23) Source(36, 23) + SourceIndex(0)
9 >Emitted(32, 24) Source(36, 24) + SourceIndex(0)
---
>>>//# sourceMappingURL=sourceMap-FileWithComments.js.map
@@ -125,6 +125,8 @@ var __extends = this.__extends || function (d, b) {
__.prototype = b.prototype;
d.prototype = new __();
};
// checking subtype relations for function types as it relates to contextual signature instantiation
// error cases, so function calls will all result in 'any'
var Errors;
(function (Errors) {
var Base = (function () {
@@ -127,6 +127,8 @@ var __extends = this.__extends || function (d, b) {
__.prototype = b.prototype;
d.prototype = new __();
};
// checking subtype relations for function types as it relates to contextual signature instantiation
// error cases, so function calls will all result in 'any'
var Errors;
(function (Errors) {
var Base = (function () {
@@ -63,6 +63,8 @@ module Optional {
}
//// [subtypingWithObjectMembers5.js]
// N and M have the same name, same accessibility, same optionality, and N is a subtype of M
// foo properties are valid, bar properties cause errors in the derived class declarations
var NotOptional;
(function (NotOptional) {
var B = (function () {
@@ -81,6 +83,7 @@ var NotOptional;
return B3;
})();
})(NotOptional || (NotOptional = {}));
// same cases as above but with optional
var Optional;
(function (Optional) {
var B = (function () {
+1
View File
@@ -140,6 +140,7 @@ var SubE3 = (function (_super) {
};
return SubE3;
})(Base3);
// Case 4
var Base4;
(function (Base4) {
var Sub4 = (function () {
@@ -8,6 +8,7 @@ module A {
//// [testContainerList.js]
// Regression test for #325
var A;
(function (A) {
var C = (function () {
@@ -38,6 +38,7 @@ module M {
}
//// [twoInterfacesDifferentRootModule2.js]
// two interfaces with different root modules should not merge
var M;
(function (M) {
var M2;
+1
View File
@@ -244,6 +244,7 @@ var propAcc1 = {
m: propAcc1.m
};
var propAcc1;
// Property access of module member
var M2;
(function (M2) {
M2.x = M2.x;