mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-13 06:20:23 -06:00
[Transforms] Accept .js baselines when there are compiler's errors (#8744)
* Accept .js baselines as these are baselines when there are compiling errors * Remove unnecessary setting of flag because this operation is handled in getReferencedExportContainer function in checker
This commit is contained in:
parent
9bae57ec3d
commit
9cd96e6929
@ -698,9 +698,6 @@ namespace ts {
|
||||
function visitClassDeclaration(node: ClassDeclaration): VisitResult<Statement> {
|
||||
const statements: Statement[] = [];
|
||||
const name = node.name || getGeneratedNameForNode(node);
|
||||
// Set emitFlags on the name of the classDeclaration
|
||||
// This is so that when printer will not substitute the identifier
|
||||
setNodeEmitFlags(name, NodeEmitFlags.NoSubstitution);
|
||||
if (hasModifier(node, ModifierFlags.Export)) {
|
||||
statements.push(
|
||||
setOriginalNode(
|
||||
|
||||
@ -33,7 +33,7 @@ var Decl = (function () {
|
||||
return Decl;
|
||||
}());
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = Decl;
|
||||
exports.default = exports.Decl;
|
||||
//// [m2.js]
|
||||
"use strict";
|
||||
var m1_1 = require("m1");
|
||||
|
||||
@ -18,7 +18,7 @@ export interface Foo {
|
||||
function Foo() {
|
||||
}
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = Foo;
|
||||
exports.default = exports.Foo;
|
||||
var Foo;
|
||||
(function (Foo) {
|
||||
})(Foo || (Foo = {}));
|
||||
})(exports.Foo || (exports.Foo = {}));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user