@@ -113,6 +113,7 @@ namespace ts.formatting {
113113 // TypeScript-specific rules
114114
115115 // Treat constructor as an identifier in a function declaration, and remove spaces between constructor and following left parentheses
116+ public SpaceAfterConstructor : Rule ;
116117 public NoSpaceAfterConstructor : Rule ;
117118
118119 // Use of module as a function call. e.g.: import m2 = module("m2");
@@ -354,6 +355,7 @@ namespace ts.formatting {
354355 // TypeScript-specific higher priority rules
355356
356357 // Treat constructor as an identifier in a function declaration, and remove spaces between constructor and following left parentheses
358+ this . SpaceAfterConstructor = new Rule ( RuleDescriptor . create1 ( SyntaxKind . ConstructorKeyword , SyntaxKind . OpenParenToken ) , RuleOperation . create2 ( new RuleOperationContext ( Rules . IsNonJsxSameLineTokenContext ) , RuleAction . Space ) ) ;
357359 this . NoSpaceAfterConstructor = new Rule ( RuleDescriptor . create1 ( SyntaxKind . ConstructorKeyword , SyntaxKind . OpenParenToken ) , RuleOperation . create2 ( new RuleOperationContext ( Rules . IsNonJsxSameLineTokenContext ) , RuleAction . Delete ) ) ;
358360
359361 // Use of module as a function call. e.g.: import m2 = module("m2");
@@ -439,7 +441,7 @@ namespace ts.formatting {
439441 this . NoSpaceBeforeEqualInJsxAttribute , this . NoSpaceAfterEqualInJsxAttribute ,
440442
441443 // TypeScript-specific rules
442- this . NoSpaceAfterConstructor , this . NoSpaceAfterModuleImport ,
444+ this . NoSpaceAfterModuleImport ,
443445 this . SpaceAfterCertainTypeScriptKeywords , this . SpaceBeforeCertainTypeScriptKeywords ,
444446 this . SpaceAfterModuleName ,
445447 this . SpaceBeforeArrow , this . SpaceAfterArrow ,
0 commit comments