• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/// <reference path='fourslash.ts'/>
2
3// References to shadowed label
4
5////[|[|{| "contextRangeIndex": 0 |}label|]:  while (true) {
6////            if (false) [|break [|{| "contextRangeIndex": 2 |}label|];|]
7////            function blah() {
8////[|[|{| "contextRangeIndex": 4 |}label|]:          while (true) {
9////                    if (false) [|break [|{| "contextRangeIndex": 6 |}label|];|]
10////                }|]
11////            }
12////            if (false) [|break [|{| "contextRangeIndex": 8 |}label|];|]
13////        }|]
14
15const [ourter1Def, outer1, outer2Def, outer2, inner1Def, inner1, inner2Def, inner2, outer3Def, outer3] = test.ranges();
16verify.singleReferenceGroup("label", [outer1, outer2, outer3]);
17verify.singleReferenceGroup("label", [inner1, inner2]);
18