mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-25 05:29:07 -05:00
Fixes some comment emit and other changes
This commit is contained in:
@@ -3,4 +3,5 @@ export declare module "M" { }
|
||||
|
||||
//// [ambientExternalModuleInsideNonAmbientExternalModule.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
});
|
||||
|
||||
@@ -7,4 +7,5 @@ export declare module M { }
|
||||
|
||||
//// [ambientInsideNonAmbientExternalModule.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
});
|
||||
|
||||
@@ -21,6 +21,6 @@ var b = a;
|
||||
var b = a.b;
|
||||
var b = a.b.c;
|
||||
var b = a.b().c;
|
||||
var b = (new a);
|
||||
var b = (new a.b);
|
||||
var b = new a;
|
||||
var b = new a.b;
|
||||
var b = (new a).b;
|
||||
|
||||
@@ -3,5 +3,4 @@ var v = class C {};
|
||||
|
||||
//// [classExpressionES61.js]
|
||||
var v = class C {
|
||||
}
|
||||
;
|
||||
};
|
||||
|
||||
@@ -6,5 +6,4 @@ var v = class C extends D {};
|
||||
class D {
|
||||
}
|
||||
var v = class C extends D {
|
||||
}
|
||||
;
|
||||
};
|
||||
|
||||
@@ -11,20 +11,17 @@ let C = class extends class extends class {
|
||||
constructor() {
|
||||
this.a = 1;
|
||||
}
|
||||
}
|
||||
{
|
||||
constructor(...args) {
|
||||
super(...args);
|
||||
} {
|
||||
constructor(...args_1) {
|
||||
super(...args_1);
|
||||
this.b = 2;
|
||||
}
|
||||
}
|
||||
{
|
||||
constructor(...args) {
|
||||
super(...args);
|
||||
} {
|
||||
constructor(...args_2) {
|
||||
super(...args_2);
|
||||
this.c = 3;
|
||||
}
|
||||
}
|
||||
;
|
||||
};
|
||||
let c = new C();
|
||||
c.a;
|
||||
c.b;
|
||||
|
||||
@@ -3,10 +3,10 @@ var v = class C { static a = 1; static b = 2 };
|
||||
|
||||
//// [classExpressionWithStaticProperties1.js]
|
||||
var v = (_a = (function () {
|
||||
function C() {
|
||||
}
|
||||
return C;
|
||||
}()),
|
||||
function C() {
|
||||
}
|
||||
return C;
|
||||
}()),
|
||||
_a.a = 1,
|
||||
_a.b = 2,
|
||||
_a);
|
||||
|
||||
@@ -3,10 +3,10 @@ var v = class C { static a = 1; static b };
|
||||
|
||||
//// [classExpressionWithStaticProperties2.js]
|
||||
var v = (_a = (function () {
|
||||
function C() {
|
||||
}
|
||||
return C;
|
||||
}()),
|
||||
function C() {
|
||||
}
|
||||
return C;
|
||||
}()),
|
||||
_a.a = 1,
|
||||
_a);
|
||||
var _a;
|
||||
|
||||
@@ -3,7 +3,7 @@ var v = class C { static a = 1; static b = 2 };
|
||||
|
||||
//// [classExpressionWithStaticPropertiesES61.js]
|
||||
var v = (_a = class C {
|
||||
},
|
||||
},
|
||||
_a.a = 1,
|
||||
_a.b = 2,
|
||||
_a);
|
||||
|
||||
@@ -3,7 +3,7 @@ var v = class C { static a = 1; static b };
|
||||
|
||||
//// [classExpressionWithStaticPropertiesES62.js]
|
||||
var v = (_a = class C {
|
||||
},
|
||||
},
|
||||
_a.a = 1,
|
||||
_a);
|
||||
var _a;
|
||||
|
||||
@@ -319,7 +319,7 @@ var TypeScript;
|
||||
var StringHashTable = (function () {
|
||||
function StringHashTable() {
|
||||
this.itemCount = 0;
|
||||
this.table = (new BlockIntrinsics());
|
||||
this.table = new BlockIntrinsics();
|
||||
}
|
||||
StringHashTable.prototype.getAllKeys = function () {
|
||||
var result = [];
|
||||
|
||||
@@ -46,6 +46,7 @@ System.register([], function (exports_1, context_1) {
|
||||
});
|
||||
//// [file2.js]
|
||||
System.register([], function (exports_1, context_1) {
|
||||
"use strict";
|
||||
var __moduleName = context_1 && context_1.id;
|
||||
return {
|
||||
setters: [],
|
||||
@@ -55,6 +56,7 @@ System.register([], function (exports_1, context_1) {
|
||||
});
|
||||
//// [file3.js]
|
||||
System.register([], function (exports_1, context_1) {
|
||||
"use strict";
|
||||
var __moduleName = context_1 && context_1.id;
|
||||
return {
|
||||
setters: [],
|
||||
@@ -64,6 +66,7 @@ System.register([], function (exports_1, context_1) {
|
||||
});
|
||||
//// [file4.js]
|
||||
System.register([], function (exports_1, context_1) {
|
||||
"use strict";
|
||||
var __moduleName = context_1 && context_1.id;
|
||||
return {
|
||||
setters: [],
|
||||
@@ -73,6 +76,7 @@ System.register([], function (exports_1, context_1) {
|
||||
});
|
||||
//// [file5.js]
|
||||
System.register([], function (exports_1, context_1) {
|
||||
"use strict";
|
||||
var __moduleName = context_1 && context_1.id;
|
||||
return {
|
||||
setters: [],
|
||||
@@ -82,6 +86,7 @@ System.register([], function (exports_1, context_1) {
|
||||
});
|
||||
//// [file6.js]
|
||||
System.register([], function (exports_1, context_1) {
|
||||
"use strict";
|
||||
var __moduleName = context_1 && context_1.id;
|
||||
return {
|
||||
setters: [],
|
||||
|
||||
Reference in New Issue
Block a user