TypeScript/tests/cases/fourslash/formatFunctionAndConstructorType.ts

32 lines
858 B
TypeScript
Raw Normal View History

2015-08-27 15:59:10 +02:00
/// <reference path='fourslash.ts' />
////function renderElement(
//// element: Element,
//// renderNode:
////(/*funcAutoformat*/
//// node: Node/*funcParamAutoformat*/
/////*funcIndent*/
//// ) => void,
////newNode:
////new(/*constrAutoformat*/
//// name: string/*constrParamAutoformat*/
/////*constrIndent*/
////) => Node
////): void {
////}
format.document();
goTo.marker("funcAutoformat");
verify.currentLineContentIs(" (");
goTo.marker("funcParamAutoformat");
verify.currentLineContentIs(" node: Node");
goTo.marker("funcIndent");
verify.indentationIs(12);
goTo.marker("constrAutoformat");
verify.currentLineContentIs(" new (");
goTo.marker("constrParamAutoformat");
verify.currentLineContentIs(" name: string");
goTo.marker("constrIndent");
verify.indentationIs(12);