fixing function type formatting

This commit is contained in:
SaschaNaz
2015-08-26 02:01:33 +09:00
parent 80b2aac1b6
commit c0a87e9947
2 changed files with 18 additions and 0 deletions
+1
View File
@@ -429,6 +429,7 @@ namespace ts.formatting {
case SyntaxKind.ArrayBindingPattern:
case SyntaxKind.ObjectBindingPattern:
case SyntaxKind.JsxElement:
case SyntaxKind.FunctionType:
return true;
}
return false;
@@ -0,0 +1,17 @@
/// <reference path='fourslash.ts' />
////function renderElement(
//// element: Element,
//// renderNode: (
//// node: Node/*paramInFuntionType*/
/////*paramIndent*/
//// ) => void
////): void {
////}
format.document();
goTo.marker("paramInFuntionType");
verify.currentLineContentIs(" node: Node");
goTo.marker("paramIndent");
verify.indentationIs(8);