Added constructor visibility in the declaration emitter

This commit is contained in:
AbubakerB
2016-02-04 18:32:56 +00:00
parent c351ffcc75
commit bbf92ce391

View File

@@ -1316,7 +1316,7 @@ namespace ts {
if (node.kind === SyntaxKind.FunctionDeclaration) {
emitModuleElementDeclarationFlags(node);
}
else if (node.kind === SyntaxKind.MethodDeclaration) {
else if (node.kind === SyntaxKind.MethodDeclaration || node.kind === SyntaxKind.Constructor) {
emitClassMemberDeclarationFlags(node.flags);
}
if (node.kind === SyntaxKind.FunctionDeclaration) {