TypeScript/tests/cases/fourslash/getOccurrencesThrow7.ts
Daniel Rosenwasser 2503e50a5d Changed "ownership" relation of try blocks on throw statements.
A try-block now only owns a throw statement if its try statement has a catch-clause.
2014-09-29 12:41:47 -07:00

32 lines
534 B
TypeScript

/// <reference path='fourslash.ts' />
////try {
//// [|throw|] 10;
////
//// try {
//// throw 10;
//// }
//// catch (x) {
//// [|throw|] 10;
//// }
//// finally {
//// [|throw|] 10;
//// }
////}
////finally {
//// [|throw|] 10;
////}
////
////[|throw|] 10;
test.ranges().forEach(r => {
goTo.position(r.start);
test.ranges().forEach(range => {
verify.occurrencesAtPositionContains(range, false);
});
verify.occurrencesAtPositionCount(test.ranges().length);
});