We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3055445 commit 5ab5338Copy full SHA for 5ab5338
src/compiler/declarationEmitter.ts
@@ -1309,6 +1309,9 @@ namespace ts {
1309
}
1310
1311
function emitSignatureDeclaration(node: SignatureDeclaration) {
1312
+ const prevEnclosingDeclaration = enclosingDeclaration;
1313
+ enclosingDeclaration = node;
1314
+
1315
// Construct signature or constructor type write new Signature
1316
if (node.kind === SyntaxKind.ConstructSignature || node.kind === SyntaxKind.ConstructorType) {
1317
write("new ");
@@ -1321,9 +1324,6 @@ namespace ts {
1321
1324
write("(");
1322
1325
1323
1326
- const prevEnclosingDeclaration = enclosingDeclaration;
- enclosingDeclaration = node;
-
1327
// Parameters
1328
emitCommaList(node.parameters, emitParameterDeclaration);
1329
0 commit comments