mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Use double quotes consistently for module names
This commit is contained in:
@@ -29,6 +29,6 @@ var n: number;
|
||||
//// [consumer.js]
|
||||
"use strict";
|
||||
// Ambient external module members are always exported with or without export keyword when module lacks export assignment
|
||||
var imp3 = require('equ2');
|
||||
var imp3 = require("equ2");
|
||||
var n = imp3.x;
|
||||
var n;
|
||||
|
||||
@@ -20,7 +20,7 @@ var c = new A();
|
||||
|
||||
//// [ambientExternalModuleWithInternalImportDeclaration_0.js]
|
||||
//// [ambientExternalModuleWithInternalImportDeclaration_1.js]
|
||||
define(["require", "exports", 'M'], function (require, exports, A) {
|
||||
define(["require", "exports", "M"], function (require, exports, A) {
|
||||
"use strict";
|
||||
var c = new A();
|
||||
});
|
||||
|
||||
@@ -19,7 +19,7 @@ var c = new A();
|
||||
|
||||
//// [ambientExternalModuleWithoutInternalImportDeclaration_0.js]
|
||||
//// [ambientExternalModuleWithoutInternalImportDeclaration_1.js]
|
||||
define(["require", "exports", 'M'], function (require, exports, A) {
|
||||
define(["require", "exports", "M"], function (require, exports, A) {
|
||||
"use strict";
|
||||
var c = new A();
|
||||
});
|
||||
|
||||
@@ -18,7 +18,7 @@ function foo() { }
|
||||
exports.foo = foo;
|
||||
//// [bar.js]
|
||||
"use strict";
|
||||
var foo_1 = require('./foo');
|
||||
var foo_1 = require("./foo");
|
||||
// These should emit identically
|
||||
foo_1.foo;
|
||||
foo_1.foo;
|
||||
|
||||
@@ -20,6 +20,6 @@ var m;
|
||||
})(m = exports.m || (exports.m = {}));
|
||||
//// [chainedImportAlias_file1.js]
|
||||
"use strict";
|
||||
var x = require('./chainedImportAlias_file0');
|
||||
var x = require("./chainedImportAlias_file0");
|
||||
var y = x;
|
||||
y.m.foo();
|
||||
|
||||
@@ -35,7 +35,7 @@ export module M1 {
|
||||
|
||||
//// [foo1.js]
|
||||
"use strict";
|
||||
var foo2 = require('./foo2');
|
||||
var foo2 = require("./foo2");
|
||||
var M1;
|
||||
(function (M1) {
|
||||
var C1 = (function () {
|
||||
@@ -50,7 +50,7 @@ var M1;
|
||||
})(M1 = exports.M1 || (exports.M1 = {}));
|
||||
//// [foo2.js]
|
||||
"use strict";
|
||||
var foo1 = require('./foo1');
|
||||
var foo1 = require("./foo1");
|
||||
var M1;
|
||||
(function (M1) {
|
||||
var C1 = (function () {
|
||||
|
||||
@@ -26,7 +26,7 @@ var __extends = (this && this.__extends) || function (d, b) {
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var a_1 = require('./a');
|
||||
var a_1 = require("./a");
|
||||
exports.b = {
|
||||
f: function () {
|
||||
var A = (function () {
|
||||
@@ -51,7 +51,7 @@ var __extends = (this && this.__extends) || function (d, b) {
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var b_1 = require('./b');
|
||||
var b_1 = require("./b");
|
||||
exports.a = {
|
||||
f: function () {
|
||||
var A = (function () {
|
||||
|
||||
@@ -32,7 +32,7 @@ define(["require", "exports"], function (require, exports) {
|
||||
exports.bar2 = bar2;
|
||||
});
|
||||
//// [collisionExportsRequireAndAlias_file2.js]
|
||||
define(["require", "exports", 'collisionExportsRequireAndAlias_file1', 'collisionExportsRequireAndAlias_file3333'], function (require, exports, require, exports) {
|
||||
define(["require", "exports", "collisionExportsRequireAndAlias_file1", "collisionExportsRequireAndAlias_file3333"], function (require, exports, require, exports) {
|
||||
"use strict";
|
||||
function foo() {
|
||||
require.bar();
|
||||
|
||||
@@ -16,7 +16,7 @@ function Foo() { }
|
||||
exports.Foo = Foo;
|
||||
//// [main.js]
|
||||
"use strict";
|
||||
var _10_lib_1 = require('./10_lib');
|
||||
var _10_lib_1 = require("./10_lib");
|
||||
_10_lib_1.Foo();
|
||||
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ define(["require", "exports"], function (require, exports) {
|
||||
exports.x = 0;
|
||||
});
|
||||
//// [constDeclarations_access_2.js]
|
||||
define(["require", "exports", 'constDeclarations_access_1'], function (require, exports, m) {
|
||||
define(["require", "exports", "constDeclarations_access_1"], function (require, exports, m) {
|
||||
"use strict";
|
||||
// Errors
|
||||
m.x = 1;
|
||||
|
||||
@@ -16,7 +16,7 @@ var z = b.x;
|
||||
//// [declFileForExportedImport_1.js]
|
||||
"use strict";
|
||||
///<reference path='declFileForExportedImport_0.ts'/>
|
||||
exports.a = require('./declFileForExportedImport_0');
|
||||
exports.a = require("./declFileForExportedImport_0");
|
||||
var y = exports.a.x;
|
||||
exports.b = exports.a;
|
||||
var z = exports.b.x;
|
||||
|
||||
@@ -63,7 +63,7 @@ var f;
|
||||
module.exports = f;
|
||||
//// [declarationEmit_nameConflicts_0.js]
|
||||
"use strict";
|
||||
var im = require('./declarationEmit_nameConflicts_1');
|
||||
var im = require("./declarationEmit_nameConflicts_1");
|
||||
var M;
|
||||
(function (M) {
|
||||
function f() { }
|
||||
|
||||
@@ -33,7 +33,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var a_1 = require('./a');
|
||||
var a_1 = require("./a");
|
||||
function filter(handler) {
|
||||
return function (target, propertyKey) {
|
||||
// ...
|
||||
|
||||
@@ -35,7 +35,7 @@ var db = (function () {
|
||||
exports.db = db;
|
||||
//// [service.js]
|
||||
"use strict";
|
||||
var db_1 = require('./db');
|
||||
var db_1 = require("./db");
|
||||
function someDecorator(target) {
|
||||
return target;
|
||||
}
|
||||
@@ -47,7 +47,7 @@ var MyClass = (function () {
|
||||
return MyClass;
|
||||
}());
|
||||
MyClass = __decorate([
|
||||
someDecorator,
|
||||
__metadata('design:paramtypes', [db_1.db])
|
||||
someDecorator,
|
||||
__metadata("design:paramtypes", [db_1.db])
|
||||
], MyClass);
|
||||
exports.MyClass = MyClass;
|
||||
|
||||
@@ -35,7 +35,7 @@ var db = (function () {
|
||||
exports.db = db;
|
||||
//// [service.js]
|
||||
"use strict";
|
||||
var db_1 = require('./db');
|
||||
var db_1 = require("./db");
|
||||
function someDecorator(target) {
|
||||
return target;
|
||||
}
|
||||
@@ -47,7 +47,7 @@ var MyClass = (function () {
|
||||
return MyClass;
|
||||
}());
|
||||
MyClass = __decorate([
|
||||
someDecorator,
|
||||
__metadata('design:paramtypes', [db_1.db])
|
||||
someDecorator,
|
||||
__metadata("design:paramtypes", [db_1.db])
|
||||
], MyClass);
|
||||
exports.MyClass = MyClass;
|
||||
|
||||
@@ -35,7 +35,7 @@ var db = (function () {
|
||||
exports.db = db;
|
||||
//// [service.js]
|
||||
"use strict";
|
||||
var db = require('./db');
|
||||
var db = require("./db");
|
||||
function someDecorator(target) {
|
||||
return target;
|
||||
}
|
||||
@@ -47,7 +47,7 @@ var MyClass = (function () {
|
||||
return MyClass;
|
||||
}());
|
||||
MyClass = __decorate([
|
||||
someDecorator,
|
||||
__metadata('design:paramtypes', [db.db])
|
||||
someDecorator,
|
||||
__metadata("design:paramtypes", [db.db])
|
||||
], MyClass);
|
||||
exports.MyClass = MyClass;
|
||||
|
||||
@@ -35,7 +35,7 @@ var db = (function () {
|
||||
exports.db = db;
|
||||
//// [service.js]
|
||||
"use strict";
|
||||
var db_1 = require('./db'); // error no default export
|
||||
var db_1 = require("./db"); // error no default export
|
||||
function someDecorator(target) {
|
||||
return target;
|
||||
}
|
||||
@@ -47,7 +47,7 @@ var MyClass = (function () {
|
||||
return MyClass;
|
||||
}());
|
||||
MyClass = __decorate([
|
||||
someDecorator,
|
||||
__metadata('design:paramtypes', [Object])
|
||||
someDecorator,
|
||||
__metadata("design:paramtypes", [Object])
|
||||
], MyClass);
|
||||
exports.MyClass = MyClass;
|
||||
|
||||
@@ -36,7 +36,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = db;
|
||||
//// [service.js]
|
||||
"use strict";
|
||||
var db_1 = require('./db');
|
||||
var db_1 = require("./db");
|
||||
function someDecorator(target) {
|
||||
return target;
|
||||
}
|
||||
@@ -48,7 +48,7 @@ var MyClass = (function () {
|
||||
return MyClass;
|
||||
}());
|
||||
MyClass = __decorate([
|
||||
someDecorator,
|
||||
__metadata('design:paramtypes', [db_1.default])
|
||||
someDecorator,
|
||||
__metadata("design:paramtypes", [db_1.default])
|
||||
], MyClass);
|
||||
exports.MyClass = MyClass;
|
||||
|
||||
@@ -36,7 +36,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = db;
|
||||
//// [service.js]
|
||||
"use strict";
|
||||
var db_1 = require('./db');
|
||||
var db_1 = require("./db");
|
||||
function someDecorator(target) {
|
||||
return target;
|
||||
}
|
||||
@@ -48,7 +48,7 @@ var MyClass = (function () {
|
||||
return MyClass;
|
||||
}());
|
||||
MyClass = __decorate([
|
||||
someDecorator,
|
||||
__metadata('design:paramtypes', [db_1.default])
|
||||
someDecorator,
|
||||
__metadata("design:paramtypes", [db_1.default])
|
||||
], MyClass);
|
||||
exports.MyClass = MyClass;
|
||||
|
||||
@@ -36,7 +36,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = db;
|
||||
//// [service.js]
|
||||
"use strict";
|
||||
var db_1 = require('./db');
|
||||
var db_1 = require("./db");
|
||||
function someDecorator(target) {
|
||||
return target;
|
||||
}
|
||||
@@ -48,7 +48,7 @@ var MyClass = (function () {
|
||||
return MyClass;
|
||||
}());
|
||||
MyClass = __decorate([
|
||||
someDecorator,
|
||||
__metadata('design:paramtypes', [Object])
|
||||
someDecorator,
|
||||
__metadata("design:paramtypes", [Object])
|
||||
], MyClass);
|
||||
exports.MyClass = MyClass;
|
||||
|
||||
@@ -35,7 +35,7 @@ var db = (function () {
|
||||
exports.db = db;
|
||||
//// [service.js]
|
||||
"use strict";
|
||||
var database = require('./db');
|
||||
var database = require("./db");
|
||||
function someDecorator(target) {
|
||||
return target;
|
||||
}
|
||||
@@ -47,7 +47,7 @@ var MyClass = (function () {
|
||||
return MyClass;
|
||||
}());
|
||||
MyClass = __decorate([
|
||||
someDecorator,
|
||||
__metadata('design:paramtypes', [database.db])
|
||||
someDecorator,
|
||||
__metadata("design:paramtypes", [database.db])
|
||||
], MyClass);
|
||||
exports.MyClass = MyClass;
|
||||
|
||||
@@ -21,7 +21,7 @@ define(["require", "exports"], function (require, exports) {
|
||||
exports.A = A;
|
||||
});
|
||||
//// [B.js]
|
||||
define(["require", "exports", 'A'], function (require, exports, a) {
|
||||
define(["require", "exports", "A"], function (require, exports, a) {
|
||||
"use strict";
|
||||
var A = a.A;
|
||||
return A;
|
||||
|
||||
@@ -23,8 +23,8 @@ exports.main = 10;
|
||||
exports.main = 10;
|
||||
//// [elidingImportNames_test.js]
|
||||
"use strict";
|
||||
var a = require('./elidingImportNames_main'); // alias used in typeof
|
||||
var a = require("./elidingImportNames_main"); // alias used in typeof
|
||||
var b = a;
|
||||
var x;
|
||||
var a2 = require('./elidingImportNames_main1'); // alias not used in typeof
|
||||
var a2 = require("./elidingImportNames_main1"); // alias not used in typeof
|
||||
var b2 = a2;
|
||||
|
||||
@@ -19,5 +19,5 @@ var Mode = exports.Mode;
|
||||
//// [enumFromExternalModule_1.js]
|
||||
"use strict";
|
||||
///<reference path='enumFromExternalModule_0.ts'/>
|
||||
var f = require('./enumFromExternalModule_0');
|
||||
var f = require("./enumFromExternalModule_0");
|
||||
var x = f.Mode.Open;
|
||||
|
||||
@@ -18,5 +18,5 @@ function x() {
|
||||
exports.x = x;
|
||||
//// [foo2.js]
|
||||
"use strict";
|
||||
var foo1 = require('./foo1');
|
||||
var foo1 = require("./foo1");
|
||||
module.exports = foo1.x;
|
||||
|
||||
@@ -22,10 +22,10 @@ function x() {
|
||||
exports.x = x;
|
||||
//// [foo2.js]
|
||||
"use strict";
|
||||
var foo1 = require('./foo1');
|
||||
var foo1 = require("./foo1");
|
||||
var x = foo1.x;
|
||||
module.exports = x;
|
||||
//// [foo3.js]
|
||||
"use strict";
|
||||
var foo2 = require('./foo2');
|
||||
var foo2 = require("./foo2");
|
||||
var x = foo2(); // should be boolean
|
||||
|
||||
@@ -85,17 +85,17 @@ function x(a) {
|
||||
module.exports = x;
|
||||
//// [consumer.js]
|
||||
"use strict";
|
||||
var iString = require('./expString');
|
||||
var iString = require("./expString");
|
||||
var v1 = iString;
|
||||
var iNumber = require('./expNumber');
|
||||
var iNumber = require("./expNumber");
|
||||
var v2 = iNumber;
|
||||
var iBoolean = require('./expBoolean');
|
||||
var iBoolean = require("./expBoolean");
|
||||
var v3 = iBoolean;
|
||||
var iArray = require('./expArray');
|
||||
var iArray = require("./expArray");
|
||||
var v4 = iArray;
|
||||
var iObject = require('./expObject');
|
||||
var iObject = require("./expObject");
|
||||
var v5 = iObject;
|
||||
var iAny = require('./expAny');
|
||||
var iAny = require("./expAny");
|
||||
var v6 = iAny;
|
||||
var iGeneric = require('./expGeneric');
|
||||
var iGeneric = require("./expGeneric");
|
||||
var v7 = iGeneric;
|
||||
|
||||
@@ -32,7 +32,7 @@ define(["require", "exports", "./foo_2"], function (require, exports, foo2) {
|
||||
return Foo;
|
||||
});
|
||||
//// [foo_0.js]
|
||||
define(["require", "exports", './foo_1'], function (require, exports, foo1) {
|
||||
define(["require", "exports", "./foo_1"], function (require, exports, foo1) {
|
||||
"use strict";
|
||||
var Foo;
|
||||
(function (Foo) {
|
||||
|
||||
@@ -17,5 +17,5 @@ var x: number = foo1.b();
|
||||
module.exports = M1;
|
||||
//// [foo2.js]
|
||||
"use strict";
|
||||
var foo1 = require('./foo1');
|
||||
var foo1 = require("./foo1");
|
||||
var x = foo1.b();
|
||||
|
||||
@@ -20,7 +20,7 @@ define(["require", "exports"], function (require, exports) {
|
||||
return server;
|
||||
});
|
||||
//// [exportEqualCallable_1.js]
|
||||
define(["require", "exports", 'exportEqualCallable_0'], function (require, exports, connect) {
|
||||
define(["require", "exports", "exportEqualCallable_0"], function (require, exports, connect) {
|
||||
"use strict";
|
||||
connect();
|
||||
});
|
||||
|
||||
@@ -28,7 +28,7 @@ define(["require", "exports"], function (require, exports) {
|
||||
return server;
|
||||
});
|
||||
//// [exportEqualErrorType_1.js]
|
||||
define(["require", "exports", 'exportEqualErrorType_0'], function (require, exports, connect) {
|
||||
define(["require", "exports", "exportEqualErrorType_0"], function (require, exports, connect) {
|
||||
"use strict";
|
||||
connect().use(connect.static('foo')); // Error 1 The property 'static' does not exist on value of type ''.
|
||||
});
|
||||
|
||||
@@ -28,5 +28,5 @@ module.exports = server;
|
||||
//// [exportEqualMemberMissing_1.js]
|
||||
"use strict";
|
||||
///<reference path='exportEqualMemberMissing_0.ts'/>
|
||||
var connect = require('./exportEqualMemberMissing_0');
|
||||
var connect = require("./exportEqualMemberMissing_0");
|
||||
connect().use(connect.static('foo')); // Error 1 The property 'static' does not exist on value of type ''.
|
||||
|
||||
@@ -27,12 +27,12 @@ define(["require", "exports"], function (require, exports) {
|
||||
return Widget1;
|
||||
});
|
||||
//// [exporter.js]
|
||||
define(["require", "exports", './w1'], function (require, exports, w) {
|
||||
define(["require", "exports", "./w1"], function (require, exports, w) {
|
||||
"use strict";
|
||||
exports.w = w;
|
||||
});
|
||||
//// [consumer.js]
|
||||
define(["require", "exports", './exporter'], function (require, exports, e) {
|
||||
define(["require", "exports", "./exporter"], function (require, exports, e) {
|
||||
"use strict";
|
||||
function w() {
|
||||
return new e.w();
|
||||
|
||||
@@ -25,7 +25,7 @@ define(["require", "exports", "exportImportMultipleFiles_math"], function (requi
|
||||
exports.math.add(3, 4); // OK
|
||||
});
|
||||
//// [exportImportMultipleFiles_userCode.js]
|
||||
define(["require", "exports", './exportImportMultipleFiles_library'], function (require, exports, lib) {
|
||||
define(["require", "exports", "./exportImportMultipleFiles_library"], function (require, exports, lib) {
|
||||
"use strict";
|
||||
lib.math.add(3, 4); // Shouldnt be error
|
||||
});
|
||||
|
||||
@@ -26,7 +26,7 @@ var __extends = (this && this.__extends) || function (d, b) {
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var foo1 = require('./foo1');
|
||||
var foo1 = require("./foo1");
|
||||
var x = foo1;
|
||||
var y = (function (_super) {
|
||||
__extends(y, _super);
|
||||
|
||||
@@ -57,7 +57,7 @@ define(["require", "exports"], function (require, exports) {
|
||||
return D;
|
||||
});
|
||||
//// [externalModuleAssignToVar_core.js]
|
||||
define(["require", "exports", 'externalModuleAssignToVar_core_require', 'externalModuleAssignToVar_core_require2', 'externalModuleAssignToVar_ext'], function (require, exports, ext, ext2, ext3) {
|
||||
define(["require", "exports", "externalModuleAssignToVar_core_require", "externalModuleAssignToVar_core_require2", "externalModuleAssignToVar_ext"], function (require, exports, ext, ext2, ext3) {
|
||||
"use strict";
|
||||
var y1 = ext;
|
||||
y1 = ext; // ok
|
||||
|
||||
@@ -25,7 +25,7 @@ var C = (function () {
|
||||
module.exports = C;
|
||||
//// [externalModuleExportingGenericClass_file1.js]
|
||||
"use strict";
|
||||
var a = require('./externalModuleExportingGenericClass_file0');
|
||||
var a = require("./externalModuleExportingGenericClass_file0");
|
||||
var v; // this should report error
|
||||
var v2 = (new a()).foo;
|
||||
var v3 = (new a()).foo;
|
||||
|
||||
@@ -57,7 +57,7 @@ exports.x = 1;
|
||||
//// [f2.js]
|
||||
"use strict";
|
||||
// all mutations below are illegal and should be fixed
|
||||
var stuff = require('./f1');
|
||||
var stuff = require("./f1");
|
||||
var n = 'baz';
|
||||
stuff.x = 0;
|
||||
stuff['x'] = 1;
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ define(["require", "exports"], function (require, exports) {
|
||||
;
|
||||
});
|
||||
//// [externalModuleReferenceOfImportDeclarationWithExportModifier_1.js]
|
||||
define(["require", "exports", 'externalModuleReferenceOfImportDeclarationWithExportModifier_0'], function (require, exports, file1) {
|
||||
define(["require", "exports", "externalModuleReferenceOfImportDeclarationWithExportModifier_0"], function (require, exports, file1) {
|
||||
"use strict";
|
||||
exports.file1 = file1;
|
||||
exports.file1.foo();
|
||||
|
||||
+1
-1
@@ -26,6 +26,6 @@ exports.foo = foo;
|
||||
//// [externalModuleRefernceResolutionOrderInImportDeclaration_file3.js]
|
||||
"use strict";
|
||||
///<reference path='externalModuleRefernceResolutionOrderInImportDeclaration_file2.ts'/>
|
||||
var file1 = require('./externalModuleRefernceResolutionOrderInImportDeclaration_file1');
|
||||
var file1 = require("./externalModuleRefernceResolutionOrderInImportDeclaration_file1");
|
||||
file1.foo();
|
||||
file1.bar();
|
||||
|
||||
@@ -25,5 +25,5 @@ var M2;
|
||||
module.exports = M2;
|
||||
//// [consumer.js]
|
||||
"use strict";
|
||||
var x = require('./foo');
|
||||
var x = require("./foo");
|
||||
x.Y; // .ts should be picked
|
||||
|
||||
@@ -26,5 +26,5 @@ var M2;
|
||||
module.exports = M2;
|
||||
//// [consumer.js]
|
||||
"use strict";
|
||||
var x = require('./foo');
|
||||
var x = require("./foo");
|
||||
x.X; // .ts should be picked
|
||||
|
||||
@@ -23,7 +23,7 @@ var m;
|
||||
})(m = exports.m || (exports.m = {}));
|
||||
//// [importAliasAnExternalModuleInsideAnInternalModule_file1.js]
|
||||
"use strict";
|
||||
var r = require('./importAliasAnExternalModuleInsideAnInternalModule_file0');
|
||||
var r = require("./importAliasAnExternalModuleInsideAnInternalModule_file0");
|
||||
var m_private;
|
||||
(function (m_private) {
|
||||
//import r2 = require('m'); // would be error
|
||||
|
||||
@@ -26,7 +26,7 @@ var __extends = (this && this.__extends) || function (d, b) {
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
define(["require", "exports", 'Foo'], function (require, exports, Error) {
|
||||
define(["require", "exports", "Foo"], function (require, exports, Error) {
|
||||
"use strict";
|
||||
var Bar = (function (_super) {
|
||||
__extends(Bar, _super);
|
||||
|
||||
@@ -27,7 +27,7 @@ var __extends = (this && this.__extends) || function (d, b) {
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
///<reference path='importUsedInExtendsList1_require.ts'/>
|
||||
var foo = require('./importUsedInExtendsList1_require');
|
||||
var foo = require("./importUsedInExtendsList1_require");
|
||||
var Sub = (function (_super) {
|
||||
__extends(Sub, _super);
|
||||
function Sub() {
|
||||
|
||||
@@ -17,6 +17,6 @@ let x = Test; // emit test_1.default
|
||||
//// [consumer.jsx]
|
||||
"use strict";
|
||||
/// <reference path="component.d.ts" />
|
||||
var Test_1 = require('Test');
|
||||
var Test_1 = require("Test");
|
||||
var x = Test_1["default"]; // emit test_1.default
|
||||
<anything attr={Test_1["default"]}/>; // ?
|
||||
|
||||
@@ -31,7 +31,7 @@ var __extends = (this && this.__extends) || function (d, b) {
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
/// <reference path="component.d.ts" />
|
||||
var BaseComponent = require('BaseComponent');
|
||||
var BaseComponent = require("BaseComponent");
|
||||
var TestComponent = (function (_super) {
|
||||
__extends(TestComponent, _super);
|
||||
function TestComponent() {
|
||||
|
||||
@@ -23,5 +23,5 @@ module.exports = server;
|
||||
//// [localAliasExportAssignment_1.js]
|
||||
"use strict";
|
||||
///<reference path='localAliasExportAssignment_0.ts'/>
|
||||
var connect = require('./localAliasExportAssignment_0');
|
||||
var connect = require("./localAliasExportAssignment_0");
|
||||
connect();
|
||||
|
||||
@@ -28,7 +28,7 @@ define(["require", "exports"], function (require, exports) {
|
||||
exports.Promise = Promise;
|
||||
});
|
||||
//// [memberAccessMustUseModuleInstances_1.js]
|
||||
define(["require", "exports", 'memberAccessMustUseModuleInstances_0'], function (require, exports, WinJS) {
|
||||
define(["require", "exports", "memberAccessMustUseModuleInstances_0"], function (require, exports, WinJS) {
|
||||
"use strict";
|
||||
WinJS.Promise.timeout(10);
|
||||
});
|
||||
|
||||
@@ -42,7 +42,7 @@ var __extends = (this && this.__extends) || function (d, b) {
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
define(["require", "exports", './a'], function (require, exports, a_1) {
|
||||
define(["require", "exports", "./a"], function (require, exports, a_1) {
|
||||
"use strict";
|
||||
var B = (function (_super) {
|
||||
__extends(B, _super);
|
||||
|
||||
@@ -19,7 +19,7 @@ define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
});
|
||||
//// [moduleAliasAsFunctionArgument_1.js]
|
||||
define(["require", "exports", 'moduleAliasAsFunctionArgument_0'], function (require, exports, a) {
|
||||
define(["require", "exports", "moduleAliasAsFunctionArgument_0"], function (require, exports, a) {
|
||||
"use strict";
|
||||
function fn(arg) {
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ exports.v3 = true;
|
||||
var v2 = [1, 2, 3]; // Module scope. Should not appear in global scope
|
||||
//// [file4.js]
|
||||
"use strict";
|
||||
var file3 = require('./file3');
|
||||
var file3 = require("./file3");
|
||||
var t1 = v1;
|
||||
var t2 = v2;
|
||||
var t3 = file3.v3;
|
||||
|
||||
@@ -37,17 +37,17 @@ var Adder = (function () {
|
||||
module.exports = Adder;
|
||||
//// [Math.js]
|
||||
"use strict";
|
||||
var Adder = require('./Adder');
|
||||
var Adder = require("./Adder");
|
||||
var Math = {
|
||||
Adder: Adder
|
||||
};
|
||||
module.exports = Math;
|
||||
//// [Drawing.js]
|
||||
"use strict";
|
||||
exports.Math = require('./Math/Math');
|
||||
exports.Math = require("./Math/Math");
|
||||
//// [consumer.js]
|
||||
"use strict";
|
||||
var Drawing = require('./Drawing');
|
||||
var Drawing = require("./Drawing");
|
||||
var addr = new Drawing.Math.Adder();
|
||||
|
||||
|
||||
|
||||
@@ -13,5 +13,5 @@ var x = foo.foo + 42;
|
||||
exports.foo = 42;
|
||||
//// [foo_1.js]
|
||||
"use strict";
|
||||
var foo = require('./test/foo_0');
|
||||
var foo = require("./test/foo_0");
|
||||
var x = foo.foo + 42;
|
||||
|
||||
@@ -10,5 +10,5 @@ var x = foo.foo + 42;
|
||||
|
||||
//// [foo_1.js]
|
||||
"use strict";
|
||||
var foo = require('./foo_0.js');
|
||||
var foo = require("./foo_0.js");
|
||||
var x = foo.foo + 42;
|
||||
|
||||
@@ -40,9 +40,9 @@ var M2;
|
||||
})(M2 = exports.M2 || (exports.M2 = {}));
|
||||
//// [foo_3.js]
|
||||
"use strict";
|
||||
var foo0 = require('../foo_0');
|
||||
var foo1 = require('./test/foo_1');
|
||||
var foo2 = require('./.././test/foo_2');
|
||||
var foo0 = require("../foo_0");
|
||||
var foo1 = require("./test/foo_1");
|
||||
var foo2 = require("./.././test/foo_2");
|
||||
if (foo2.M2.x) {
|
||||
var x = foo0.foo + foo1.f();
|
||||
}
|
||||
|
||||
@@ -11,36 +11,37 @@ export default function foo() { new Foo(); }
|
||||
|
||||
|
||||
//// [output.js]
|
||||
System.register("b", ["a"], function(exports_1, context_1) {
|
||||
System.register("b", ["a"], function (exports_1, context_1) {
|
||||
"use strict";
|
||||
var __moduleName = context_1 && context_1.id;
|
||||
var a_1;
|
||||
function foo() { new a_1.default(); }
|
||||
var a_1;
|
||||
exports_1("default", foo);
|
||||
return {
|
||||
setters:[
|
||||
setters: [
|
||||
function (a_1_1) {
|
||||
a_1 = a_1_1;
|
||||
}],
|
||||
execute: function() {
|
||||
}
|
||||
],
|
||||
execute: function () {
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register("a", ["b"], function(exports_2, context_2) {
|
||||
System.register("a", ["b"], function (exports_2, context_2) {
|
||||
"use strict";
|
||||
var __moduleName = context_2 && context_2.id;
|
||||
var b_1;
|
||||
var Foo;
|
||||
var b_1, Foo;
|
||||
return {
|
||||
setters:[
|
||||
setters: [
|
||||
function (b_1_1) {
|
||||
b_1 = b_1_1;
|
||||
}],
|
||||
execute: function() {
|
||||
}
|
||||
],
|
||||
execute: function () {
|
||||
Foo = class Foo {
|
||||
};
|
||||
exports_2("default", Foo);
|
||||
b_1.default();
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
@@ -14,13 +14,13 @@ var __extends = (this && this.__extends) || function (d, b) {
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
System.register("ref/a", [], function(exports_1, context_1) {
|
||||
System.register("ref/a", [], function (exports_1, context_1) {
|
||||
"use strict";
|
||||
var __moduleName = context_1 && context_1.id;
|
||||
var A;
|
||||
return {
|
||||
setters:[],
|
||||
execute: function() {
|
||||
setters: [],
|
||||
execute: function () {
|
||||
A = (function () {
|
||||
function A() {
|
||||
}
|
||||
@@ -28,19 +28,19 @@ System.register("ref/a", [], function(exports_1, context_1) {
|
||||
}());
|
||||
exports_1("A", A);
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
System.register("b", ["ref/a"], function(exports_2, context_2) {
|
||||
System.register("b", ["ref/a"], function (exports_2, context_2) {
|
||||
"use strict";
|
||||
var __moduleName = context_2 && context_2.id;
|
||||
var a_1;
|
||||
var B;
|
||||
var a_1, B;
|
||||
return {
|
||||
setters:[
|
||||
setters: [
|
||||
function (a_1_1) {
|
||||
a_1 = a_1_1;
|
||||
}],
|
||||
execute: function() {
|
||||
}
|
||||
],
|
||||
execute: function () {
|
||||
B = (function (_super) {
|
||||
__extends(B, _super);
|
||||
function B() {
|
||||
@@ -50,7 +50,7 @@ System.register("b", ["ref/a"], function(exports_2, context_2) {
|
||||
}(a_1.A));
|
||||
exports_2("B", B);
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
//# sourceMappingURL=all.js.map
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ var x = (function () {
|
||||
module.exports = x;
|
||||
//// [foo2.js]
|
||||
"use strict";
|
||||
var foo1 = require('./foo1');
|
||||
var foo1 = require("./foo1");
|
||||
module.exports = {
|
||||
x: foo1
|
||||
};
|
||||
@@ -38,7 +38,7 @@ var __extends = (this && this.__extends) || function (d, b) {
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var foo2 = require('./foo2');
|
||||
var foo2 = require("./foo2");
|
||||
var x = (function (_super) {
|
||||
__extends(x, _super);
|
||||
function x() {
|
||||
|
||||
@@ -10,5 +10,5 @@ var z = foo.x + 10;
|
||||
|
||||
//// [foo_1.js]
|
||||
"use strict";
|
||||
var foo = require('./test/foo');
|
||||
var foo = require("./test/foo");
|
||||
var z = foo.x + 10;
|
||||
|
||||
@@ -28,9 +28,9 @@ if(foo.M2.x){
|
||||
|
||||
//// [file1.js]
|
||||
"use strict";
|
||||
var foo = require('foo');
|
||||
var other = require('./other');
|
||||
var relMod = require('./sub/relMod');
|
||||
var foo = require("foo");
|
||||
var other = require("./other");
|
||||
var relMod = require("./sub/relMod");
|
||||
if (foo.M2.x) {
|
||||
var x = new relMod(other.M2.x.charCodeAt(0));
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ const bar = { foo, baz };
|
||||
|
||||
|
||||
//// [test.js]
|
||||
define(["require", "exports", './foo'], function (require, exports, foo_1) {
|
||||
define(["require", "exports", "./foo"], function (require, exports, foo_1) {
|
||||
"use strict";
|
||||
const baz = 42;
|
||||
const bar = { foo: foo_1.foo, baz };
|
||||
|
||||
@@ -20,8 +20,8 @@ use(foo);
|
||||
exports.x = 1;
|
||||
//// [test.js]
|
||||
"use strict";
|
||||
const existingModule_1 = require('./existingModule');
|
||||
const missingModule_1 = require('./missingModule');
|
||||
const existingModule_1 = require("./existingModule");
|
||||
const missingModule_1 = require("./missingModule");
|
||||
const test = { x: existingModule_1.x, foo: missingModule_1.foo };
|
||||
use(existingModule_1.x);
|
||||
use(missingModule_1.foo);
|
||||
|
||||
@@ -26,5 +26,5 @@ exports.Promise = Promise;
|
||||
//// [staticInstanceResolution3_1.js]
|
||||
"use strict";
|
||||
///<reference path='staticInstanceResolution3_0.ts'/>
|
||||
var WinJS = require('./staticInstanceResolution3_0');
|
||||
var WinJS = require("./staticInstanceResolution3_0");
|
||||
WinJS.Promise.timeout(10);
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
var db_1 = require('./db');
|
||||
var db_1 = require("./db");
|
||||
function someDecorator(target) {
|
||||
return target;
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ import s2 = require('elements2');
|
||||
|
||||
//// [file.jsx]
|
||||
//// [consumer.jsx]
|
||||
define(["require", "exports", 'elements1'], function (require, exports, s1) {
|
||||
define(["require", "exports", "elements1"], function (require, exports, s1) {
|
||||
"use strict";
|
||||
<s1.MyElement />;
|
||||
});
|
||||
|
||||
@@ -32,7 +32,7 @@ define(["require", "exports"], function (require, exports) {
|
||||
exports.MyClass = MyClass;
|
||||
});
|
||||
//// [file2.js]
|
||||
define(["require", "exports", 'react', './file1'], function (require, exports, React, file1_1) {
|
||||
define(["require", "exports", "react", "./file1"], function (require, exports, React, file1_1) {
|
||||
"use strict";
|
||||
React.createElement(file1_1.MyClass, null);
|
||||
});
|
||||
|
||||
@@ -38,7 +38,7 @@ var __extends = (this && this.__extends) || function (d, b) {
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var React = require('react');
|
||||
var React = require("react");
|
||||
var Button = (function (_super) {
|
||||
__extends(Button, _super);
|
||||
function Button() {
|
||||
@@ -57,9 +57,9 @@ var __extends = (this && this.__extends) || function (d, b) {
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var React = require('react');
|
||||
var React = require("react");
|
||||
// Should see var button_1 = require('./button') here
|
||||
var button_1 = require('./button');
|
||||
var button_1 = require("./button");
|
||||
var App = (function (_super) {
|
||||
__extends(App, _super);
|
||||
function App() {
|
||||
|
||||
@@ -19,7 +19,7 @@ declare var Foo, React;
|
||||
|
||||
//// [app.js]
|
||||
"use strict";
|
||||
var mod_1 = require('mod');
|
||||
var mod_1 = require("mod");
|
||||
// Should see mod_1['default'] in emit here
|
||||
React.createElement(Foo, { handler: mod_1["default"] });
|
||||
// Should see mod_1['default'] in emit here
|
||||
|
||||
@@ -34,7 +34,7 @@ module M {
|
||||
|
||||
|
||||
//// [test.jsx]
|
||||
define(["require", "exports", 'react', 'react-router'], function (require, exports, React, ReactRouter) {
|
||||
define(["require", "exports", "react", "react-router"], function (require, exports, React, ReactRouter) {
|
||||
"use strict";
|
||||
var Route = ReactRouter.Route;
|
||||
var routes1 = <Route />;
|
||||
|
||||
@@ -45,7 +45,7 @@ var __extends = (this && this.__extends) || function (d, b) {
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var React = require('react');
|
||||
var React = require("react");
|
||||
function Greet(x) {
|
||||
return <div>Hello, {x}</div>;
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ var App: React.StatelessComponent<{ children }> = ({children}) => (
|
||||
);
|
||||
|
||||
//// [file.jsx]
|
||||
define(["require", "exports", 'react'], function (require, exports, React) {
|
||||
define(["require", "exports", "react"], function (require, exports, React) {
|
||||
"use strict";
|
||||
var Foo = function (props) { return <div />; };
|
||||
// Should be OK
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ function foo() {
|
||||
exports.foo = foo;
|
||||
//// [file2.js]
|
||||
"use strict";
|
||||
var f = require('./file1');
|
||||
var f = require("./file1");
|
||||
f.foo();
|
||||
|
||||
|
||||
|
||||
@@ -38,8 +38,8 @@ module.exports = D;
|
||||
"use strict";
|
||||
///<reference path='typeofAmbientExternalModules_0.ts'/>
|
||||
///<reference path='typeofAmbientExternalModules_1.ts'/>
|
||||
var ext = require('./typeofAmbientExternalModules_0');
|
||||
var exp = require('./typeofAmbientExternalModules_1');
|
||||
var ext = require("./typeofAmbientExternalModules_0");
|
||||
var exp = require("./typeofAmbientExternalModules_1");
|
||||
var y1 = ext;
|
||||
y1 = exp;
|
||||
var y2 = exp;
|
||||
|
||||
@@ -34,8 +34,8 @@ var D = (function () {
|
||||
module.exports = D;
|
||||
//// [typeofExternalModules_core.js]
|
||||
"use strict";
|
||||
var ext = require('./typeofExternalModules_external');
|
||||
var exp = require('./typeofExternalModules_exportAssign');
|
||||
var ext = require("./typeofExternalModules_external");
|
||||
var exp = require("./typeofExternalModules_exportAssign");
|
||||
var y1 = ext;
|
||||
y1 = exp;
|
||||
var y2 = exp;
|
||||
|
||||
@@ -24,7 +24,7 @@ var y: {M2: Object} = foo0;
|
||||
"use strict";
|
||||
//// [foo_1.js]
|
||||
"use strict";
|
||||
var foo0 = require('./foo_0');
|
||||
var foo0 = require("./foo_0");
|
||||
// Per 11.2.3, foo_0 should still be "instantiated", albeit with no members
|
||||
var x = {};
|
||||
var y = foo0;
|
||||
|
||||
@@ -42,7 +42,7 @@ var t = p.x;
|
||||
//// [b.js]
|
||||
"use strict";
|
||||
/// <reference path="math2d-augment.d.ts" />
|
||||
var m = require('math2d');
|
||||
var m = require("math2d");
|
||||
var v = new m.Vector(3, 2);
|
||||
var magnitude = m.getLength(v);
|
||||
var p = v.translate(5, 5);
|
||||
|
||||
@@ -48,7 +48,7 @@ var t = p.x;
|
||||
//// [b.js]
|
||||
"use strict";
|
||||
/// <reference path="math2d-augment.d.ts" />
|
||||
var m = require('math2d');
|
||||
var m = require("math2d");
|
||||
var v = new m.Vector(3, 2);
|
||||
var magnitude = m.getLength(v);
|
||||
var p = v.translate(5, 5);
|
||||
|
||||
@@ -16,7 +16,7 @@ let y: number = x.n;
|
||||
|
||||
//// [a.js]
|
||||
"use strict";
|
||||
var Foo = require('./foo');
|
||||
var Foo = require("./foo");
|
||||
Foo.fn();
|
||||
var x;
|
||||
var y = x.n;
|
||||
|
||||
@@ -16,7 +16,7 @@ let y: number = x.n;
|
||||
|
||||
//// [a.js]
|
||||
"use strict";
|
||||
var Bar = require('./foo');
|
||||
var Bar = require("./foo");
|
||||
Bar.fn();
|
||||
var x;
|
||||
var y = x.n;
|
||||
|
||||
@@ -18,7 +18,7 @@ let z = Foo;
|
||||
|
||||
//// [a.js]
|
||||
"use strict";
|
||||
var Bar = require('./foo');
|
||||
var Bar = require("./foo");
|
||||
Bar.fn();
|
||||
var x;
|
||||
var y = x.n;
|
||||
|
||||
@@ -16,7 +16,7 @@ function instrumentFile(covFileDir: string, covFileName: string, originalFilePat
|
||||
}
|
||||
|
||||
//// [undeclaredModuleError.js]
|
||||
define(["require", "exports", 'fs'], function (require, exports, fs) {
|
||||
define(["require", "exports", "fs"], function (require, exports, fs) {
|
||||
"use strict";
|
||||
function readdir(path, accept, callback) { }
|
||||
function join() {
|
||||
|
||||
Reference in New Issue
Block a user