1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
/// <reference path='fourslash.ts'/>
// Valid References for a label
////[|[|{| "contextRangeIndex": 0 |}label|]: while (true) {
//// if (false) [|break [|{| "contextRangeIndex": 2 |}label|];|]
//// if (true) [|continue [|{| "contextRangeIndex": 4 |}label|];|]
////}|]
////
////[|[|{| "contextRangeIndex": 6 |}label|]: while (false) { }|]
////var label = "label";
const [r0Def, r0, r1Def, r1, r2Def, r2, r3Def, r3] = test.ranges();
verify.singleReferenceGroup("label", [r0, r1, r2]);
verify.singleReferenceGroup("label", [r3]);
|