8515f7e2b5
* Also always test for isWriteAccess and isDefinition
17 lines
571 B
TypeScript
17 lines
571 B
TypeScript
/// <reference path='fourslash.ts'/>
|
|
|
|
// References to shadowed label
|
|
|
|
////[|label|]: while (true) {
|
|
//// if (false) break [|label|];
|
|
//// function blah() {
|
|
////[|label|]: while (true) {
|
|
//// if (false) break [|label|];
|
|
//// }
|
|
//// }
|
|
//// if (false) break [|label|];
|
|
//// }
|
|
|
|
const [outer1, outer2, inner1, inner2, outer3] = test.ranges();
|
|
verify.singleReferenceGroup("label", [outer1, outer2, outer3]);
|
|
verify.singleReferenceGroup("label", [inner1, inner2]);
|