|
1 | 1 | /// <reference path='fourslash.ts' /> |
2 | 2 |
|
3 | 3 | ////class C { |
4 | | -//// [|export|] foo; |
5 | | -//// [|declare|] bar; |
6 | | -//// [|export|] [|declare|] foobar; |
7 | | -//// [|declare|] [|export|] barfoo; |
| 4 | +//// [|{| "count": 3 |}export|] foo; |
| 5 | +//// [|{| "count": 3 |}declare|] bar; |
| 6 | +//// [|{| "count": 3 |}export|] [|{| "count": 3 |}declare|] foobar; |
| 7 | +//// [|{| "count": 3 |}declare|] [|{| "count": 3 |}export|] barfoo; |
8 | 8 | //// |
9 | | -//// constructor([|export|] conFoo, |
10 | | -//// [|declare|] conBar, |
11 | | -//// [|export|] [|declare|] conFooBar, |
12 | | -//// [|declare|] [|export|] conBarFoo, |
13 | | -//// [|static|] sue, |
14 | | -//// [|static|] [|export|] [|declare|] sueFooBar, |
15 | | -//// [|static|] [|declare|] [|export|] sueBarFoo, |
16 | | -//// [|declare|] [|static|] [|export|] barSueFoo) { |
| 9 | +//// constructor([|{| "count": 9 |}export|] conFoo, |
| 10 | +//// [|{| "count": 9 |}declare|] conBar, |
| 11 | +//// [|{| "count": 9 |}export|] [|{| "count": 9 |}declare|] conFooBar, |
| 12 | +//// [|{| "count": 9 |}declare|] [|{| "count": 9 |}export|] conBarFoo, |
| 13 | +//// [|{| "count": 4 |}static|] sue, |
| 14 | +//// [|{| "count": 4 |}static|] [|{| "count": 9 |}export|] [|{| "count": 9 |}declare|] sueFooBar, |
| 15 | +//// [|{| "count": 4 |}static|] [|{| "count": 9 |}declare|] [|{| "count": 9 |}export|] sueBarFoo, |
| 16 | +//// [|{| "count": 9 |}declare|] [|{| "count": 4 |}static|] [|{| "count": 9 |}export|] barSueFoo) { |
17 | 17 | //// } |
18 | 18 | ////} |
19 | 19 | //// |
20 | 20 | ////module m { |
21 | | -//// [|static|] a; |
22 | | -//// [|public|] b; |
23 | | -//// [|private|] c; |
24 | | -//// [|protected|] d; |
25 | | -//// [|static|] [|public|] [|private|] [|protected|] e; |
26 | | -//// [|public|] [|static|] [|protected|] [|private|] f; |
27 | | -//// [|protected|] [|static|] [|public|] g; |
| 21 | +//// [|{| "count": 0 |}static|] a; |
| 22 | +//// [|{| "count": 0 |}public|] b; |
| 23 | +//// [|{| "count": 0 |}private|] c; |
| 24 | +//// [|{| "count": 0 |}protected|] d; |
| 25 | +//// [|{| "count": 0 |}static|] [|{| "count": 0 |}public|] [|{| "count": 0 |}private|] [|{| "count": 0 |}protected|] e; |
| 26 | +//// [|{| "count": 0 |}public|] [|{| "count": 0 |}static|] [|{| "count": 0 |}protected|] [|{| "count": 0 |}private|] f; |
| 27 | +//// [|{| "count": 0 |}protected|] [|{| "count": 0 |}static|] [|{| "count": 0 |}public|] g; |
28 | 28 | ////} |
29 | | -////[|static|] a; |
30 | | -////[|public|] b; |
31 | | -////[|private|] c; |
32 | | -////[|protected|] d; |
33 | | -////[|static|] [|public|] [|private|] [|protected|] e; |
34 | | -////[|public|] [|static|] [|protected|] [|private|] f; |
35 | | -////[|protected|] [|static|] [|public|] g; |
| 29 | +////[|{| "count": 0 |}static|] a; |
| 30 | +////[|{| "count": 0 |}public|] b; |
| 31 | +////[|{| "count": 0 |}private|] c; |
| 32 | +////[|{| "count": 0 |}protected|] d; |
| 33 | +////[|{| "count": 0 |}static|] [|{| "count": 0 |}public|] [|{| "count": 0 |}private|] [|{| "count": 0 |}protected|] e; |
| 34 | +////[|{| "count": 0 |}public|] [|{| "count": 0 |}static|] [|{| "count": 0 |}protected|] [|{| "count": 0 |}private|] f; |
| 35 | +////[|{| "count": 0 |}protected|] [|{| "count": 0 |}static|] [|{| "count": 0 |}public|] g; |
36 | 36 |
|
37 | | -goTo.eachRange(() => verify.occurrencesAtPositionCount(0)); |
| 37 | +for (const range of test.ranges()) { |
| 38 | + goTo.rangeStart(range); |
| 39 | + verify.occurrencesAtPositionCount(range.marker.data.count); |
| 40 | +} |
0 commit comments