15 lines
552 B
TypeScript
15 lines
552 B
TypeScript
/// <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]);
|