TypeScript/tests/cases/fourslash/smartIndentStatementTryCatchFinally.ts
2014-07-29 12:17:44 -07:00

45 lines
1 KiB
TypeScript

/// <reference path='fourslash.ts'/>
////function tryCatch() {
//// {| "indentation": 4 |}
//// try {
//// {| "indentation": 8 |}
//// }
//// {| "indentation": 4 |}
//// catch (err) {
//// {| "indentation": 8 |}
//// }
//// {| "indentation": 4 |}
////}
////
////function tryFinally() {
//// {| "indentation": 4 |}
//// try {
//// {| "indentation": 8 |}
//// }
//// {| "indentation": 4 |}
//// finally {
//// {| "indentation": 8 |}
//// }
//// {| "indentation": 4 |}
////}
////
////function tryCatchFinally() {
//// {| "indentation": 4 |}
//// try {
//// {| "indentation": 8 |}
//// }
//// {| "indentation": 4 |}
//// catch (err) {
//// {| "indentation": 8 |}
//// }
//// {| "indentation": 4 |}
//// finally {
//// {| "indentation": 8 |}
//// }
//// {| "indentation": 4 |}
////}
test.markers().forEach((marker) => {
verify.indentationAtPositionIs(marker.fileName, marker.position, marker.data.indentation);
});