File tree Expand file tree Collapse file tree 2 files changed +24
-5
lines changed
data/fixtures/scopes/javascript.core Expand file tree Collapse file tree 2 files changed +24
-5
lines changed Original file line number Diff line number Diff line change 1
1
switch (value) {
2
2
case 0: { }
3
+ default: { }
3
4
}
4
5
---
5
6
6
- [Content] =
7
- [Domain] = 1:2-1:13
7
+ [#1 Content] =
8
+ [#1 Domain] = 1:2-1:13
8
9
>-----------<
9
10
1| case 0: { }
10
11
11
- [Removal] = 1:0-1:13
12
+ [#1 Removal] = 1:0-1:13
12
13
>-------------<
13
14
1| case 0: { }
14
15
15
- [Leading delimiter] = 1:0-1:2
16
+ [#1 Leading delimiter] = 1:0-1:2
16
17
>--<
17
18
1| case 0: { }
18
19
19
- [Insertion delimiter] = "\n"
20
+ [#1 Insertion delimiter] = "\n"
21
+
22
+
23
+ [#2 Content] =
24
+ [#2 Domain] = 2:2-2:14
25
+ >------------<
26
+ 2| default: { }
27
+
28
+ [#2 Removal] = 2:0-2:14
29
+ >--------------<
30
+ 2| default: { }
31
+
32
+ [#2 Leading delimiter] = 2:0-2:2
33
+ >--<
34
+ 2| default: { }
35
+
36
+ [#2 Insertion delimiter] = "\n"
Original file line number Diff line number Diff line change 567
567
value: (_) @condition
568
568
) @branch @condition.domain
569
569
570
+ (switch_default) @branch
571
+
570
572
; ;!! switch () {}
571
573
; ;! ^^^^^^^^^^^^
572
574
(switch_statement) @branch.iteration @condition.iteration
You can’t perform that action at this time.
0 commit comments