mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-11 06:02:53 -05:00
Accept so many baselines
This commit is contained in:
@@ -40,6 +40,7 @@ compile(process.argv.slice(2), {
|
||||
at: https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API#a-minimal-compiler
|
||||
* Please log a "breaking change" issue for any API breaking change affecting this issue
|
||||
*/
|
||||
"use strict";
|
||||
var ts = require("typescript");
|
||||
function compile(fileNames, options) {
|
||||
var program = ts.createProgram(fileNames, options);
|
||||
|
||||
@@ -70,6 +70,7 @@ fileNames.forEach(fileName => {
|
||||
at: https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API#traversing-the-ast-with-a-little-linter
|
||||
* Please log a "breaking change" issue for any API breaking change affecting this issue
|
||||
*/
|
||||
"use strict";
|
||||
var ts = require("typescript");
|
||||
function delint(sourceFile) {
|
||||
delintNode(sourceFile);
|
||||
|
||||
@@ -22,6 +22,7 @@ console.log(JSON.stringify(result));
|
||||
at: https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API#a-simple-transform-function
|
||||
* Please log a "breaking change" issue for any API breaking change affecting this issue
|
||||
*/
|
||||
"use strict";
|
||||
var ts = require("typescript");
|
||||
var source = "let x: string = 'string'";
|
||||
var result = ts.transpile(source, { module: ts.ModuleKind.CommonJS });
|
||||
|
||||
@@ -109,6 +109,7 @@ watch(currentDirectoryFiles, { module: ts.ModuleKind.CommonJS });
|
||||
at: https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API#incremental-build-support-using-the-language-services
|
||||
* Please log a "breaking change" issue for any API breaking change affecting this issue
|
||||
*/
|
||||
"use strict";
|
||||
var ts = require("typescript");
|
||||
function watch(rootFileNames, options) {
|
||||
var files = {};
|
||||
|
||||
@@ -5,6 +5,7 @@ export class C {
|
||||
export = B;
|
||||
|
||||
//// [ExportAssignment7.js]
|
||||
"use strict";
|
||||
var C = (function () {
|
||||
function C() {
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ export class C {
|
||||
}
|
||||
|
||||
//// [ExportAssignment8.js]
|
||||
"use strict";
|
||||
var C = (function () {
|
||||
function C() {
|
||||
}
|
||||
|
||||
@@ -30,6 +30,7 @@ export module A {
|
||||
|
||||
|
||||
//// [part1.js]
|
||||
"use strict";
|
||||
var A;
|
||||
(function (A) {
|
||||
var Utils;
|
||||
@@ -42,6 +43,7 @@ var A;
|
||||
A.Origin = { x: 0, y: 0 };
|
||||
})(A = exports.A || (exports.A = {}));
|
||||
//// [part2.js]
|
||||
"use strict";
|
||||
var A;
|
||||
(function (A) {
|
||||
// collision with 'Origin' var in other part of merged module
|
||||
|
||||
@@ -14,6 +14,7 @@ y = moduleA; // should be error
|
||||
|
||||
|
||||
//// [aliasAssignments_moduleA.js]
|
||||
"use strict";
|
||||
var someClass = (function () {
|
||||
function someClass() {
|
||||
}
|
||||
@@ -21,6 +22,7 @@ var someClass = (function () {
|
||||
})();
|
||||
exports.someClass = someClass;
|
||||
//// [aliasAssignments_1.js]
|
||||
"use strict";
|
||||
var moduleA = require("./aliasAssignments_moduleA");
|
||||
var x = moduleA;
|
||||
x = 1; // Should be error
|
||||
|
||||
@@ -23,6 +23,7 @@ var x: foo.A = foo.bar("hello"); // foo.A should be ok but foo.bar should be err
|
||||
|
||||
//// [aliasOnMergedModuleInterface_0.js]
|
||||
//// [aliasOnMergedModuleInterface_1.js]
|
||||
"use strict";
|
||||
var z;
|
||||
z.bar("hello"); // This should be ok
|
||||
var x = foo.bar("hello"); // foo.A should be ok but foo.bar should be error
|
||||
|
||||
@@ -28,6 +28,7 @@ class C2 {
|
||||
}
|
||||
|
||||
//// [aliasUsage1_backbone.js]
|
||||
"use strict";
|
||||
var Model = (function () {
|
||||
function Model() {
|
||||
}
|
||||
@@ -35,6 +36,7 @@ var Model = (function () {
|
||||
})();
|
||||
exports.Model = Model;
|
||||
//// [aliasUsage1_moduleA.js]
|
||||
"use strict";
|
||||
var __extends = (this && this.__extends) || function (d, b) {
|
||||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
||||
function __() { this.constructor = d; }
|
||||
@@ -50,6 +52,7 @@ var VisualizationModel = (function (_super) {
|
||||
})(Backbone.Model);
|
||||
exports.VisualizationModel = VisualizationModel;
|
||||
//// [aliasUsage1_main.js]
|
||||
"use strict";
|
||||
var moduleA = require("./aliasUsage1_moduleA");
|
||||
var C2 = (function () {
|
||||
function C2() {
|
||||
|
||||
@@ -22,6 +22,7 @@ var xs: IHasVisualizationModel[] = [moduleA];
|
||||
var xs2: typeof moduleA[] = [moduleA];
|
||||
|
||||
//// [aliasUsageInArray_backbone.js]
|
||||
"use strict";
|
||||
var Model = (function () {
|
||||
function Model() {
|
||||
}
|
||||
@@ -29,6 +30,7 @@ var Model = (function () {
|
||||
})();
|
||||
exports.Model = Model;
|
||||
//// [aliasUsageInArray_moduleA.js]
|
||||
"use strict";
|
||||
var __extends = (this && this.__extends) || function (d, b) {
|
||||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
||||
function __() { this.constructor = d; }
|
||||
@@ -44,6 +46,7 @@ var VisualizationModel = (function (_super) {
|
||||
})(Backbone.Model);
|
||||
exports.VisualizationModel = VisualizationModel;
|
||||
//// [aliasUsageInArray_main.js]
|
||||
"use strict";
|
||||
var moduleA = require("./aliasUsageInArray_moduleA");
|
||||
var xs = [moduleA];
|
||||
var xs2 = [moduleA];
|
||||
|
||||
@@ -21,6 +21,7 @@ var f = (x: IHasVisualizationModel) => x;
|
||||
f = (x) => moduleA;
|
||||
|
||||
//// [aliasUsageInFunctionExpression_backbone.js]
|
||||
"use strict";
|
||||
var Model = (function () {
|
||||
function Model() {
|
||||
}
|
||||
@@ -28,6 +29,7 @@ var Model = (function () {
|
||||
})();
|
||||
exports.Model = Model;
|
||||
//// [aliasUsageInFunctionExpression_moduleA.js]
|
||||
"use strict";
|
||||
var __extends = (this && this.__extends) || function (d, b) {
|
||||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
||||
function __() { this.constructor = d; }
|
||||
@@ -43,6 +45,7 @@ var VisualizationModel = (function (_super) {
|
||||
})(Backbone.Model);
|
||||
exports.VisualizationModel = VisualizationModel;
|
||||
//// [aliasUsageInFunctionExpression_main.js]
|
||||
"use strict";
|
||||
var moduleA = require("./aliasUsageInFunctionExpression_moduleA");
|
||||
var f = function (x) { return x; };
|
||||
f = function (x) { return moduleA; };
|
||||
|
||||
@@ -25,6 +25,7 @@ var r2 = foo({ a: <IHasVisualizationModel>null });
|
||||
|
||||
|
||||
//// [aliasUsageInGenericFunction_backbone.js]
|
||||
"use strict";
|
||||
var Model = (function () {
|
||||
function Model() {
|
||||
}
|
||||
@@ -32,6 +33,7 @@ var Model = (function () {
|
||||
})();
|
||||
exports.Model = Model;
|
||||
//// [aliasUsageInGenericFunction_moduleA.js]
|
||||
"use strict";
|
||||
var __extends = (this && this.__extends) || function (d, b) {
|
||||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
||||
function __() { this.constructor = d; }
|
||||
@@ -47,6 +49,7 @@ var VisualizationModel = (function (_super) {
|
||||
})(Backbone.Model);
|
||||
exports.VisualizationModel = VisualizationModel;
|
||||
//// [aliasUsageInGenericFunction_main.js]
|
||||
"use strict";
|
||||
var moduleA = require("./aliasUsageInGenericFunction_moduleA");
|
||||
function foo(x) {
|
||||
return x;
|
||||
|
||||
@@ -27,6 +27,7 @@ class N2 {
|
||||
}
|
||||
|
||||
//// [aliasUsageInIndexerOfClass_backbone.js]
|
||||
"use strict";
|
||||
var Model = (function () {
|
||||
function Model() {
|
||||
}
|
||||
@@ -34,6 +35,7 @@ var Model = (function () {
|
||||
})();
|
||||
exports.Model = Model;
|
||||
//// [aliasUsageInIndexerOfClass_moduleA.js]
|
||||
"use strict";
|
||||
var __extends = (this && this.__extends) || function (d, b) {
|
||||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
||||
function __() { this.constructor = d; }
|
||||
@@ -49,6 +51,7 @@ var VisualizationModel = (function (_super) {
|
||||
})(Backbone.Model);
|
||||
exports.VisualizationModel = VisualizationModel;
|
||||
//// [aliasUsageInIndexerOfClass_main.js]
|
||||
"use strict";
|
||||
var moduleA = require("./aliasUsageInIndexerOfClass_moduleA");
|
||||
var N = (function () {
|
||||
function N() {
|
||||
|
||||
@@ -22,6 +22,7 @@ var b: { x: IHasVisualizationModel } = { x: moduleA };
|
||||
var c: { y: { z: IHasVisualizationModel } } = { y: { z: moduleA } };
|
||||
|
||||
//// [aliasUsageInObjectLiteral_backbone.js]
|
||||
"use strict";
|
||||
var Model = (function () {
|
||||
function Model() {
|
||||
}
|
||||
@@ -29,6 +30,7 @@ var Model = (function () {
|
||||
})();
|
||||
exports.Model = Model;
|
||||
//// [aliasUsageInObjectLiteral_moduleA.js]
|
||||
"use strict";
|
||||
var __extends = (this && this.__extends) || function (d, b) {
|
||||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
||||
function __() { this.constructor = d; }
|
||||
@@ -44,6 +46,7 @@ var VisualizationModel = (function (_super) {
|
||||
})(Backbone.Model);
|
||||
exports.VisualizationModel = VisualizationModel;
|
||||
//// [aliasUsageInObjectLiteral_main.js]
|
||||
"use strict";
|
||||
var moduleA = require("./aliasUsageInObjectLiteral_moduleA");
|
||||
var a = { x: moduleA };
|
||||
var b = { x: moduleA };
|
||||
|
||||
@@ -25,6 +25,7 @@ var e: { x: IHasVisualizationModel } = <{ x: IHasVisualizationModel }>null || {
|
||||
var f: { x: IHasVisualizationModel } = <{ x: IHasVisualizationModel }>null ? { x: moduleA } : null;
|
||||
|
||||
//// [aliasUsageInOrExpression_backbone.js]
|
||||
"use strict";
|
||||
var Model = (function () {
|
||||
function Model() {
|
||||
}
|
||||
@@ -32,6 +33,7 @@ var Model = (function () {
|
||||
})();
|
||||
exports.Model = Model;
|
||||
//// [aliasUsageInOrExpression_moduleA.js]
|
||||
"use strict";
|
||||
var __extends = (this && this.__extends) || function (d, b) {
|
||||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
||||
function __() { this.constructor = d; }
|
||||
@@ -47,6 +49,7 @@ var VisualizationModel = (function (_super) {
|
||||
})(Backbone.Model);
|
||||
exports.VisualizationModel = VisualizationModel;
|
||||
//// [aliasUsageInOrExpression_main.js]
|
||||
"use strict";
|
||||
var moduleA = require("./aliasUsageInOrExpression_moduleA");
|
||||
var i;
|
||||
var d1 = i || moduleA;
|
||||
|
||||
@@ -25,6 +25,7 @@ class D extends C<IHasVisualizationModel> {
|
||||
}
|
||||
|
||||
//// [aliasUsageInTypeArgumentOfExtendsClause_backbone.js]
|
||||
"use strict";
|
||||
var Model = (function () {
|
||||
function Model() {
|
||||
}
|
||||
@@ -32,6 +33,7 @@ var Model = (function () {
|
||||
})();
|
||||
exports.Model = Model;
|
||||
//// [aliasUsageInTypeArgumentOfExtendsClause_moduleA.js]
|
||||
"use strict";
|
||||
var __extends = (this && this.__extends) || function (d, b) {
|
||||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
||||
function __() { this.constructor = d; }
|
||||
@@ -47,6 +49,7 @@ var VisualizationModel = (function (_super) {
|
||||
})(Backbone.Model);
|
||||
exports.VisualizationModel = VisualizationModel;
|
||||
//// [aliasUsageInTypeArgumentOfExtendsClause_main.js]
|
||||
"use strict";
|
||||
var __extends = (this && this.__extends) || function (d, b) {
|
||||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
||||
function __() { this.constructor = d; }
|
||||
|
||||
@@ -21,6 +21,7 @@ var i: IHasVisualizationModel;
|
||||
var m: typeof moduleA = i;
|
||||
|
||||
//// [aliasUsageInVarAssignment_backbone.js]
|
||||
"use strict";
|
||||
var Model = (function () {
|
||||
function Model() {
|
||||
}
|
||||
@@ -28,6 +29,7 @@ var Model = (function () {
|
||||
})();
|
||||
exports.Model = Model;
|
||||
//// [aliasUsageInVarAssignment_moduleA.js]
|
||||
"use strict";
|
||||
var __extends = (this && this.__extends) || function (d, b) {
|
||||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
||||
function __() { this.constructor = d; }
|
||||
@@ -43,5 +45,6 @@ var VisualizationModel = (function (_super) {
|
||||
})(Backbone.Model);
|
||||
exports.VisualizationModel = VisualizationModel;
|
||||
//// [aliasUsageInVarAssignment_main.js]
|
||||
"use strict";
|
||||
var i;
|
||||
var m = i;
|
||||
|
||||
@@ -19,10 +19,13 @@ export var a = function () {
|
||||
|
||||
|
||||
//// [aliasUsedAsNameValue_0.js]
|
||||
"use strict";
|
||||
//// [aliasUsedAsNameValue_1.js]
|
||||
"use strict";
|
||||
function b(a) { return null; }
|
||||
exports.b = b;
|
||||
//// [aliasUsedAsNameValue_2.js]
|
||||
"use strict";
|
||||
///<reference path='aliasUsedAsNameValue_0.ts' />
|
||||
///<reference path='aliasUsedAsNameValue_1.ts' />
|
||||
var mod = require("./aliasUsedAsNameValue_0");
|
||||
|
||||
@@ -11,5 +11,7 @@ import moduleA = require("./aliasWithInterfaceExportAssignmentUsedInVarInitializ
|
||||
var d = b.q3;
|
||||
|
||||
//// [aliasWithInterfaceExportAssignmentUsedInVarInitializer_0.js]
|
||||
"use strict";
|
||||
//// [aliasWithInterfaceExportAssignmentUsedInVarInitializer_1.js]
|
||||
"use strict";
|
||||
var d = b.q3;
|
||||
|
||||
@@ -18,6 +18,7 @@ module M {
|
||||
|
||||
//// [aliasesInSystemModule1.js]
|
||||
System.register(['foo'], function(exports_1) {
|
||||
"use strict";
|
||||
var alias;
|
||||
var cls, cls2, x, y, z, M;
|
||||
return {
|
||||
|
||||
@@ -17,6 +17,7 @@ module M {
|
||||
|
||||
//// [aliasesInSystemModule2.js]
|
||||
System.register(["foo"], function(exports_1) {
|
||||
"use strict";
|
||||
var foo_1;
|
||||
var cls, cls2, x, y, z, M;
|
||||
return {
|
||||
|
||||
@@ -27,6 +27,7 @@ var n: number;
|
||||
//// [decls.js]
|
||||
// Ambient external import declaration referencing ambient external module using top level module name
|
||||
//// [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 n = imp3.x;
|
||||
|
||||
@@ -13,6 +13,7 @@ var x = ext;
|
||||
|
||||
//// [ambientExternalModuleInAnotherExternalModule.js]
|
||||
define(["require", "exports", "ext"], function (require, exports, ext) {
|
||||
"use strict";
|
||||
var D = (function () {
|
||||
function D() {
|
||||
}
|
||||
|
||||
@@ -3,4 +3,5 @@ export declare module "M" { }
|
||||
|
||||
//// [ambientExternalModuleInsideNonAmbientExternalModule.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
});
|
||||
|
||||
@@ -18,6 +18,7 @@ declare module "M" {
|
||||
|
||||
//// [ambientExternalModuleMerging_use.js]
|
||||
define(["require", "exports", "M"], function (require, exports, M) {
|
||||
"use strict";
|
||||
// Should be strings
|
||||
var x = M.x;
|
||||
var y = M.y;
|
||||
|
||||
@@ -21,5 +21,6 @@ var c = new A();
|
||||
//// [ambientExternalModuleWithInternalImportDeclaration_0.js]
|
||||
//// [ambientExternalModuleWithInternalImportDeclaration_1.js]
|
||||
define(["require", "exports", 'M'], function (require, exports, A) {
|
||||
"use strict";
|
||||
var c = new A();
|
||||
});
|
||||
|
||||
@@ -20,5 +20,6 @@ var c = new A();
|
||||
//// [ambientExternalModuleWithoutInternalImportDeclaration_0.js]
|
||||
//// [ambientExternalModuleWithoutInternalImportDeclaration_1.js]
|
||||
define(["require", "exports", 'M'], function (require, exports, A) {
|
||||
"use strict";
|
||||
var c = new A();
|
||||
});
|
||||
|
||||
@@ -7,4 +7,5 @@ export declare module M { }
|
||||
|
||||
//// [ambientInsideNonAmbientExternalModule.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
});
|
||||
|
||||
@@ -6,5 +6,6 @@ m1.f();
|
||||
|
||||
//// [amdDependencyComment1.js]
|
||||
///<amd-dependency path='bar'/>
|
||||
"use strict";
|
||||
var m1 = require("m2");
|
||||
m1.f();
|
||||
|
||||
@@ -7,5 +7,6 @@ m1.f();
|
||||
//// [amdDependencyComment2.js]
|
||||
///<amd-dependency path='bar'/>
|
||||
define(["require", "exports", "m2", "bar"], function (require, exports, m1) {
|
||||
"use strict";
|
||||
m1.f();
|
||||
});
|
||||
|
||||
@@ -6,5 +6,6 @@ m1.f();
|
||||
|
||||
//// [amdDependencyCommentName1.js]
|
||||
///<amd-dependency path='bar' name='b'/>
|
||||
"use strict";
|
||||
var m1 = require("m2");
|
||||
m1.f();
|
||||
|
||||
@@ -7,5 +7,6 @@ m1.f();
|
||||
//// [amdDependencyCommentName2.js]
|
||||
///<amd-dependency path='bar' name='b'/>
|
||||
define(["require", "exports", "bar", "m2"], function (require, exports, b, m1) {
|
||||
"use strict";
|
||||
m1.f();
|
||||
});
|
||||
|
||||
@@ -11,5 +11,6 @@ m1.f();
|
||||
///<amd-dependency path='foo'/>
|
||||
///<amd-dependency path='goo' name='c'/>
|
||||
define(["require", "exports", "bar", "goo", "m2", "foo"], function (require, exports, b, c, m1) {
|
||||
"use strict";
|
||||
m1.f();
|
||||
});
|
||||
|
||||
@@ -26,6 +26,7 @@ import "unaliasedModule2";
|
||||
///<amd-dependency path='aliasedModule6' name='n2'/>
|
||||
///<amd-dependency path='unaliasedModule4'/>
|
||||
define(["require", "exports", "aliasedModule5", "aliasedModule6", "aliasedModule1", "aliasedModule2", "aliasedModule3", "aliasedModule4", "unaliasedModule3", "unaliasedModule4", "unaliasedModule1", "unaliasedModule2"], function (require, exports, n1, n2, r1, aliasedModule2_1, aliasedModule3_1, ns) {
|
||||
"use strict";
|
||||
r1;
|
||||
aliasedModule2_1.p1;
|
||||
aliasedModule3_1["default"];
|
||||
|
||||
@@ -14,6 +14,7 @@ if(foo.E1.A === 0){
|
||||
|
||||
//// [foo_0.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
(function (E1) {
|
||||
E1[E1["A"] = 0] = "A";
|
||||
E1[E1["B"] = 1] = "B";
|
||||
@@ -23,6 +24,7 @@ define(["require", "exports"], function (require, exports) {
|
||||
});
|
||||
//// [foo_1.js]
|
||||
define(["require", "exports", "./foo_0"], function (require, exports, foo) {
|
||||
"use strict";
|
||||
if (foo.E1.A === 0) {
|
||||
}
|
||||
});
|
||||
|
||||
@@ -33,6 +33,7 @@ var e: number = <foo.E1>0;
|
||||
|
||||
//// [foo_0.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
var C1 = (function () {
|
||||
function C1() {
|
||||
this.m1 = 42;
|
||||
@@ -50,6 +51,7 @@ define(["require", "exports"], function (require, exports) {
|
||||
});
|
||||
//// [foo_1.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
var i;
|
||||
var x = {};
|
||||
var y = false;
|
||||
|
||||
@@ -11,6 +11,7 @@ export = Foo;
|
||||
|
||||
//// [amdModuleName1.js]
|
||||
define("NamedModule", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
///<amd-module name='NamedModule'/>
|
||||
var Foo = (function () {
|
||||
function Foo() {
|
||||
|
||||
@@ -12,6 +12,7 @@ export = Foo;
|
||||
|
||||
//// [amdModuleName2.js]
|
||||
define("SecondModuleName", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
///<amd-module name='FirstModuleName'/>
|
||||
///<amd-module name='SecondModuleName'/>
|
||||
var Foo = (function () {
|
||||
|
||||
@@ -25,6 +25,7 @@ export = Road;
|
||||
|
||||
|
||||
//// [arrayOfExportedClass_0.js]
|
||||
"use strict";
|
||||
var Car = (function () {
|
||||
function Car() {
|
||||
}
|
||||
@@ -32,6 +33,7 @@ var Car = (function () {
|
||||
})();
|
||||
module.exports = Car;
|
||||
//// [arrayOfExportedClass_1.js]
|
||||
"use strict";
|
||||
var Road = (function () {
|
||||
function Road() {
|
||||
}
|
||||
|
||||
@@ -13,9 +13,11 @@ import { foo } from './foo';
|
||||
|
||||
|
||||
//// [foo.js]
|
||||
"use strict";
|
||||
function foo() { }
|
||||
exports.foo = foo;
|
||||
//// [bar.js]
|
||||
"use strict";
|
||||
var foo_1 = require('./foo');
|
||||
// These should emit identically
|
||||
foo_1.foo;
|
||||
|
||||
@@ -5,6 +5,7 @@ module c5 { } // should be ok everywhere
|
||||
|
||||
//// [augmentedTypesExternalModule1.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
exports.a = 1;
|
||||
var c5 = (function () {
|
||||
function c5() {
|
||||
|
||||
@@ -8,4 +8,5 @@ export declare var a: {
|
||||
|
||||
//// [badExternalModuleReference.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
});
|
||||
|
||||
@@ -145,6 +145,7 @@ for (const y = 0; y < 1;) {
|
||||
|
||||
//// [capturedLetConstInLoop4.js]
|
||||
System.register([], function(exports_1) {
|
||||
"use strict";
|
||||
var v0, v00, v1, v2, v3, v4, v5, v6, v7, v8, v0_c, v00_c, v1_c, v2_c, v3_c, v4_c, v5_c, v6_c, v7_c, v8_c;
|
||||
//======let
|
||||
function exportedFoo() {
|
||||
|
||||
@@ -12,12 +12,14 @@ y.m.foo();
|
||||
|
||||
|
||||
//// [chainedImportAlias_file0.js]
|
||||
"use strict";
|
||||
var m;
|
||||
(function (m) {
|
||||
function foo() { }
|
||||
m.foo = foo;
|
||||
})(m = exports.m || (exports.m = {}));
|
||||
//// [chainedImportAlias_file1.js]
|
||||
"use strict";
|
||||
var x = require('./chainedImportAlias_file0');
|
||||
var y = x;
|
||||
y.m.foo();
|
||||
|
||||
@@ -34,6 +34,7 @@ export module M1 {
|
||||
|
||||
|
||||
//// [foo1.js]
|
||||
"use strict";
|
||||
var foo2 = require('./foo2');
|
||||
var M1;
|
||||
(function (M1) {
|
||||
@@ -48,6 +49,7 @@ var M1;
|
||||
M1.C1 = C1;
|
||||
})(M1 = exports.M1 || (exports.M1 = {}));
|
||||
//// [foo2.js]
|
||||
"use strict";
|
||||
var foo1 = require('./foo1');
|
||||
var M1;
|
||||
(function (M1) {
|
||||
|
||||
@@ -5,6 +5,7 @@ default abstract class C {}
|
||||
import abstract class D {}
|
||||
|
||||
//// [classAbstractManyKeywords.js]
|
||||
"use strict";
|
||||
var A = (function () {
|
||||
function A() {
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@ export class Test1 {
|
||||
//// [classMemberInitializerWithLamdaScoping3_0.js]
|
||||
var field1;
|
||||
//// [classMemberInitializerWithLamdaScoping3_1.js]
|
||||
"use strict";
|
||||
var Test1 = (function () {
|
||||
function Test1(field1) {
|
||||
this.field1 = field1;
|
||||
|
||||
@@ -16,7 +16,9 @@ export class Test1 {
|
||||
}
|
||||
|
||||
//// [classMemberInitializerWithLamdaScoping3_0.js]
|
||||
"use strict";
|
||||
//// [classMemberInitializerWithLamdaScoping3_1.js]
|
||||
"use strict";
|
||||
var Test1 = (function () {
|
||||
function Test1(field1) {
|
||||
this.field1 = field1;
|
||||
|
||||
@@ -26,6 +26,7 @@ export = Foo;
|
||||
|
||||
|
||||
//// [clinterfaces.js]
|
||||
"use strict";
|
||||
var M;
|
||||
(function (M) {
|
||||
var C = (function () {
|
||||
|
||||
@@ -19,18 +19,21 @@ export function foo2() {
|
||||
|
||||
//// [collisionExportsRequireAndAlias_file1.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
function bar() {
|
||||
}
|
||||
exports.bar = bar;
|
||||
});
|
||||
//// [collisionExportsRequireAndAlias_file3333.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
function bar2() {
|
||||
}
|
||||
exports.bar2 = bar2;
|
||||
});
|
||||
//// [collisionExportsRequireAndAlias_file2.js]
|
||||
define(["require", "exports", 'collisionExportsRequireAndAlias_file1', 'collisionExportsRequireAndAlias_file3333'], function (require, exports, require, exports) {
|
||||
"use strict";
|
||||
function foo() {
|
||||
require.bar();
|
||||
}
|
||||
|
||||
@@ -39,6 +39,7 @@ module m4 {
|
||||
|
||||
//// [collisionExportsRequireAndAmbientClass_externalmodule.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
var m2;
|
||||
(function (m2) {
|
||||
})(m2 || (m2 = {}));
|
||||
|
||||
@@ -62,6 +62,7 @@ module m4 {
|
||||
|
||||
//// [collisionExportsRequireAndAmbientEnum_externalmodule.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
var m2;
|
||||
(function (m2) {
|
||||
})(m2 || (m2 = {}));
|
||||
|
||||
@@ -15,6 +15,7 @@ module m2 {
|
||||
|
||||
//// [collisionExportsRequireAndAmbientFunction.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
var m2;
|
||||
(function (m2) {
|
||||
var a = 10;
|
||||
|
||||
@@ -96,6 +96,7 @@ module m4 {
|
||||
|
||||
//// [collisionExportsRequireAndAmbientModule_externalmodule.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
function foo() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -28,6 +28,7 @@ module m4 {
|
||||
|
||||
//// [collisionExportsRequireAndAmbientVar_externalmodule.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
var m2;
|
||||
(function (m2) {
|
||||
var a = 10;
|
||||
|
||||
@@ -38,6 +38,7 @@ module m4 {
|
||||
|
||||
//// [collisionExportsRequireAndClass_externalmodule.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
var require = (function () {
|
||||
function require() {
|
||||
}
|
||||
|
||||
@@ -62,6 +62,7 @@ module m4 {
|
||||
|
||||
//// [collisionExportsRequireAndEnum_externalmodule.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
(function (require) {
|
||||
require[require["_thisVal1"] = 0] = "_thisVal1";
|
||||
require[require["_thisVal2"] = 1] = "_thisVal2";
|
||||
|
||||
@@ -24,6 +24,7 @@ module m2 {
|
||||
|
||||
//// [collisionExportsRequireAndFunction.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
function exports() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -24,6 +24,7 @@ module m2 {
|
||||
|
||||
//// [collisionExportsRequireAndInternalModuleAlias.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
var m;
|
||||
(function (m) {
|
||||
var c = (function () {
|
||||
|
||||
@@ -93,6 +93,7 @@ module m4 {
|
||||
|
||||
//// [collisionExportsRequireAndModule_externalmodule.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
var require;
|
||||
(function (require) {
|
||||
var C = (function () {
|
||||
|
||||
@@ -16,6 +16,7 @@ export function foo2(): exports.I {
|
||||
|
||||
//// [collisionExportsRequireAndUninstantiatedModule.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
function foo() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -28,6 +28,7 @@ module m4 {
|
||||
|
||||
//// [collisionExportsRequireAndVar_externalmodule.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
function foo() {
|
||||
}
|
||||
exports.foo = foo;
|
||||
|
||||
@@ -7,4 +7,5 @@ import foo = require('./foo');
|
||||
//// [commentOnImportStatement1.js]
|
||||
/* Copyright */
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
});
|
||||
|
||||
@@ -3,3 +3,4 @@
|
||||
import foo = require('./foo');
|
||||
|
||||
//// [commentOnImportStatement2.js]
|
||||
"use strict";
|
||||
|
||||
@@ -6,3 +6,4 @@ import foo = require('./foo');
|
||||
|
||||
//// [commentOnImportStatement3.js]
|
||||
/* copyright */
|
||||
"use strict";
|
||||
|
||||
@@ -5,4 +5,5 @@ export var b: number;
|
||||
|
||||
//// [commentsBeforeVariableStatement1.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
});
|
||||
|
||||
@@ -9,6 +9,7 @@ export module outerModule.InnerModule {
|
||||
|
||||
//// [commentsDottedModuleName.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
/** this is multi declare module*/
|
||||
var outerModule;
|
||||
(function (outerModule) {
|
||||
|
||||
@@ -63,6 +63,7 @@ var newVar2 = new extMod.m4.m2.c();
|
||||
|
||||
//// [commentsExternalModules_0.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
/** Module comment*/
|
||||
var m1;
|
||||
(function (m1) {
|
||||
@@ -126,6 +127,7 @@ define(["require", "exports"], function (require, exports) {
|
||||
});
|
||||
//// [commentsExternalModules_1.js]
|
||||
define(["require", "exports", "commentsExternalModules_0"], function (require, exports, extMod) {
|
||||
"use strict";
|
||||
extMod.m1.fooExport();
|
||||
var newVar = new extMod.m1.m2.c();
|
||||
extMod.m4.fooExport();
|
||||
|
||||
@@ -63,6 +63,7 @@ export var newVar2 = new extMod.m4.m2.c();
|
||||
|
||||
//// [commentsExternalModules2_0.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
/** Module comment*/
|
||||
var m1;
|
||||
(function (m1) {
|
||||
@@ -126,6 +127,7 @@ define(["require", "exports"], function (require, exports) {
|
||||
});
|
||||
//// [commentsExternalModules_1.js]
|
||||
define(["require", "exports", "commentsExternalModules2_0"], function (require, exports, extMod) {
|
||||
"use strict";
|
||||
extMod.m1.fooExport();
|
||||
exports.newVar = new extMod.m1.m2.c();
|
||||
extMod.m4.fooExport();
|
||||
|
||||
@@ -62,6 +62,7 @@ export var newVar2 = new extMod.m4.m2.c();
|
||||
|
||||
|
||||
//// [commentsExternalModules2_0.js]
|
||||
"use strict";
|
||||
/** Module comment*/
|
||||
var m1;
|
||||
(function (m1) {
|
||||
@@ -123,6 +124,7 @@ var m4;
|
||||
m4.fooExport();
|
||||
var myvar2 = new m4.m2.c();
|
||||
//// [commentsExternalModules_1.js]
|
||||
"use strict";
|
||||
/**This is on import declaration*/
|
||||
var extMod = require("./commentsExternalModules2_0"); // trailing comment 1
|
||||
extMod.m1.fooExport();
|
||||
|
||||
@@ -38,6 +38,7 @@ new multiM.d();
|
||||
|
||||
//// [commentsMultiModuleMultiFile_0.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
/** this is multi declare module*/
|
||||
var multiM;
|
||||
(function (multiM) {
|
||||
@@ -72,6 +73,7 @@ define(["require", "exports"], function (require, exports) {
|
||||
});
|
||||
//// [commentsMultiModuleMultiFile_1.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
/** this is multi module 3 comment*/
|
||||
var multiM;
|
||||
(function (multiM) {
|
||||
|
||||
@@ -14,6 +14,7 @@ if(foo.C1.s1){
|
||||
|
||||
|
||||
//// [foo_0.js]
|
||||
"use strict";
|
||||
var C1 = (function () {
|
||||
function C1() {
|
||||
this.m1 = 42;
|
||||
@@ -23,6 +24,7 @@ var C1 = (function () {
|
||||
})();
|
||||
exports.C1 = C1;
|
||||
//// [foo_1.js]
|
||||
"use strict";
|
||||
var foo = require("./foo_0");
|
||||
if (foo.C1.s1) {
|
||||
}
|
||||
|
||||
@@ -32,6 +32,7 @@ var z: foo.M1.I2;
|
||||
var e: number = <foo.E1>0;
|
||||
|
||||
//// [foo_0.js]
|
||||
"use strict";
|
||||
var C1 = (function () {
|
||||
function C1() {
|
||||
this.m1 = 42;
|
||||
@@ -47,6 +48,7 @@ exports.C1 = C1;
|
||||
})(exports.E1 || (exports.E1 = {}));
|
||||
var E1 = exports.E1;
|
||||
//// [foo_1.js]
|
||||
"use strict";
|
||||
var i;
|
||||
var x = {};
|
||||
var y = false;
|
||||
|
||||
@@ -11,9 +11,11 @@ Foo();
|
||||
|
||||
|
||||
//// [10_lib.js]
|
||||
"use strict";
|
||||
function Foo() { }
|
||||
exports.Foo = Foo;
|
||||
//// [main.js]
|
||||
"use strict";
|
||||
var _10_lib_1 = require('./10_lib');
|
||||
_10_lib_1.Foo();
|
||||
|
||||
|
||||
@@ -50,10 +50,12 @@ m.x.toString();
|
||||
|
||||
//// [constDeclarations_access_1.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
exports.x = 0;
|
||||
});
|
||||
//// [constDeclarations_access_2.js]
|
||||
define(["require", "exports", 'constDeclarations_access_1'], function (require, exports, m) {
|
||||
"use strict";
|
||||
// Errors
|
||||
m.x = 1;
|
||||
m.x += 2;
|
||||
|
||||
@@ -12,8 +12,10 @@ var v = A.V;
|
||||
|
||||
//// [m1.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
});
|
||||
//// [m2.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
var v = 100 /* V */;
|
||||
});
|
||||
|
||||
@@ -9,6 +9,7 @@ export = foo
|
||||
|
||||
//// [m1.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
function foo() { }
|
||||
return foo;
|
||||
});
|
||||
|
||||
@@ -9,6 +9,7 @@ export = foo
|
||||
|
||||
//// [m1.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
var foo = (function () {
|
||||
function foo() {
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ export = foo
|
||||
|
||||
//// [m1.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
var foo;
|
||||
(function (foo) {
|
||||
foo[foo["A"] = 0] = "A";
|
||||
|
||||
@@ -13,6 +13,7 @@ export = foo
|
||||
|
||||
//// [m1.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
var foo;
|
||||
(function (foo) {
|
||||
var x = 1;
|
||||
|
||||
@@ -8,6 +8,7 @@ export = foo
|
||||
|
||||
//// [m1.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
var foo;
|
||||
(function (foo) {
|
||||
var E;
|
||||
|
||||
@@ -14,6 +14,7 @@ greeter.start();
|
||||
* (c) Copyright - Important
|
||||
****************************/
|
||||
define(["require", "exports", "./greeter"], function (require, exports, model) {
|
||||
"use strict";
|
||||
var el = document.getElementById('content');
|
||||
var greeter = new model.Greeter(el);
|
||||
/** things */
|
||||
|
||||
@@ -10,6 +10,7 @@ greeter.start();
|
||||
|
||||
//// [copyrightWithoutNewLine1.js]
|
||||
define(["require", "exports", "./greeter"], function (require, exports, model) {
|
||||
"use strict";
|
||||
var el = document.getElementById('content');
|
||||
var greeter = new model.Greeter(el);
|
||||
/** things */
|
||||
|
||||
@@ -14,6 +14,7 @@ export var compileServer = task<number, number, any>(<P0, P1, P2>() => {
|
||||
|
||||
//// [crashIntypeCheckInvocationExpression.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
var nake;
|
||||
function doCompile(fileset, moduleType) {
|
||||
return undefined;
|
||||
|
||||
@@ -10,6 +10,7 @@ export class BuildWorkspaceService {
|
||||
|
||||
//// [crashIntypeCheckObjectCreationExpression.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
var BuildWorkspaceService = (function () {
|
||||
function BuildWorkspaceService() {
|
||||
}
|
||||
|
||||
@@ -102,6 +102,7 @@ class c2 {
|
||||
}
|
||||
|
||||
//// [declFileAccessors_0.js]
|
||||
"use strict";
|
||||
/** This is comment for c1*/
|
||||
var c1 = (function () {
|
||||
function c1() {
|
||||
|
||||
@@ -9,6 +9,7 @@ export function bar(a: foo.Foo) { }
|
||||
import foo = require("./declFileAliasUseBeforeDeclaration_foo");
|
||||
|
||||
//// [declFileAliasUseBeforeDeclaration_foo.js]
|
||||
"use strict";
|
||||
var Foo = (function () {
|
||||
function Foo() {
|
||||
}
|
||||
@@ -16,6 +17,7 @@ var Foo = (function () {
|
||||
})();
|
||||
exports.Foo = Foo;
|
||||
//// [declFileAliasUseBeforeDeclaration_test.js]
|
||||
"use strict";
|
||||
function bar(a) { }
|
||||
exports.bar = bar;
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@ export var x: SubModule.m.m3.c;
|
||||
|
||||
//// [declFileAmbientExternalModuleWithSingleExportedModule_0.js]
|
||||
//// [declFileAmbientExternalModuleWithSingleExportedModule_1.js]
|
||||
"use strict";
|
||||
|
||||
|
||||
//// [declFileAmbientExternalModuleWithSingleExportedModule_0.d.ts]
|
||||
|
||||
@@ -66,6 +66,7 @@ interface IGlobalCallSignatureWithOwnTypeParametes {
|
||||
}
|
||||
|
||||
//// [declFileCallSignatures_0.js]
|
||||
"use strict";
|
||||
//// [declFileCallSignatures_1.js]
|
||||
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ export class Enhancement {
|
||||
}
|
||||
|
||||
//// [declFileClassWithStaticMethodReturningConstructor.js]
|
||||
"use strict";
|
||||
var Enhancement = (function () {
|
||||
function Enhancement() {
|
||||
}
|
||||
|
||||
@@ -66,6 +66,7 @@ interface IGlobalConstructSignatureWithOwnTypeParametes {
|
||||
}
|
||||
|
||||
//// [declFileConstructSignatures_0.js]
|
||||
"use strict";
|
||||
//// [declFileConstructSignatures_1.js]
|
||||
|
||||
|
||||
|
||||
@@ -98,6 +98,7 @@ class GlobalConstructorWithParameterInitializer {
|
||||
}
|
||||
|
||||
//// [declFileConstructors_0.js]
|
||||
"use strict";
|
||||
var SimpleConstructor = (function () {
|
||||
/** This comment should appear for foo*/
|
||||
function SimpleConstructor() {
|
||||
|
||||
@@ -22,6 +22,7 @@ import m = m3
|
||||
export = m;
|
||||
|
||||
//// [declFileExportAssignmentImportInternalModule.js]
|
||||
"use strict";
|
||||
var m3;
|
||||
(function (m3) {
|
||||
})(m3 || (m3 = {}));
|
||||
|
||||
@@ -14,9 +14,11 @@ x.a;
|
||||
|
||||
//// [declFileExportAssignmentOfGenericInterface_0.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
});
|
||||
//// [declFileExportAssignmentOfGenericInterface_1.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
exports.x.a;
|
||||
});
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@ export var x: c.b1.a.m2.c1;
|
||||
|
||||
//// [declFileExportImportChain_a.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
var m1;
|
||||
(function (m1) {
|
||||
var m2;
|
||||
@@ -42,18 +43,22 @@ define(["require", "exports"], function (require, exports) {
|
||||
});
|
||||
//// [declFileExportImportChain_b.js]
|
||||
define(["require", "exports", "declFileExportImportChain_a"], function (require, exports, a) {
|
||||
"use strict";
|
||||
exports.a = a;
|
||||
});
|
||||
//// [declFileExportImportChain_b1.js]
|
||||
define(["require", "exports", "declFileExportImportChain_b"], function (require, exports, b) {
|
||||
"use strict";
|
||||
return b;
|
||||
});
|
||||
//// [declFileExportImportChain_c.js]
|
||||
define(["require", "exports", "declFileExportImportChain_b1"], function (require, exports, b1) {
|
||||
"use strict";
|
||||
exports.b1 = b1;
|
||||
});
|
||||
//// [declFileExportImportChain_d.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
});
|
||||
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@ export var x: c.b.m2.c1;
|
||||
|
||||
//// [declFileExportImportChain2_a.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
var m1;
|
||||
(function (m1) {
|
||||
var m2;
|
||||
@@ -39,14 +40,17 @@ define(["require", "exports"], function (require, exports) {
|
||||
});
|
||||
//// [declFileExportImportChain2_b.js]
|
||||
define(["require", "exports", "declFileExportImportChain2_a"], function (require, exports, a) {
|
||||
"use strict";
|
||||
return a;
|
||||
});
|
||||
//// [declFileExportImportChain2_c.js]
|
||||
define(["require", "exports", "declFileExportImportChain2_b"], function (require, exports, b) {
|
||||
"use strict";
|
||||
exports.b = b;
|
||||
});
|
||||
//// [declFileExportImportChain2_d.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
});
|
||||
|
||||
|
||||
|
||||
@@ -12,7 +12,9 @@ export import b = a;
|
||||
var z = b.x;
|
||||
|
||||
//// [declFileForExportedImport_0.js]
|
||||
"use strict";
|
||||
//// [declFileForExportedImport_1.js]
|
||||
"use strict";
|
||||
///<reference path='declFileForExportedImport_0.ts'/>
|
||||
exports.a = require('./declFileForExportedImport_0');
|
||||
var y = exports.a.x;
|
||||
|
||||
@@ -78,6 +78,7 @@ function globalfooWithOverloads(a: any): any {
|
||||
}
|
||||
|
||||
//// [declFileFunctions_0.js]
|
||||
"use strict";
|
||||
/** This comment should appear for foo*/
|
||||
function foo() {
|
||||
}
|
||||
|
||||
@@ -40,6 +40,7 @@ export var j = C.F6;
|
||||
|
||||
|
||||
//// [declFileGenericType.js]
|
||||
"use strict";
|
||||
var __extends = (this && this.__extends) || function (d, b) {
|
||||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
||||
function __() { this.constructor = d; }
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user