Skip to content

Commit ee55475

Browse files
Add missing python scope facets (#2829)
1 parent 55c2486 commit ee55475

File tree

81 files changed

+1982
-12
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+1982
-12
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Foo(123, 456)
2+
---
3+
4+
[Range] = 0:4-0:12
5+
>--------<
6+
0| Foo(123, 456)
7+
8+
[Domain] = 0:3-0:13
9+
>----------<
10+
0| Foo(123, 456)
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
Foo(123, 456)
2+
---
3+
4+
[#1 Content] =
5+
[#1 Domain] = 0:4-0:7
6+
>---<
7+
0| Foo(123, 456)
8+
9+
[#1 Removal] = 0:4-0:9
10+
>-----<
11+
0| Foo(123, 456)
12+
13+
[#1 Trailing delimiter] = 0:7-0:9
14+
>--<
15+
0| Foo(123, 456)
16+
17+
[#1 Insertion delimiter] = ", "
18+
19+
20+
[#2 Content] =
21+
[#2 Domain] = 0:9-0:12
22+
>---<
23+
0| Foo(123, 456)
24+
25+
[#2 Removal] = 0:7-0:12
26+
>-----<
27+
0| Foo(123, 456)
28+
29+
[#2 Leading delimiter] = 0:7-0:9
30+
>--<
31+
0| Foo(123, 456)
32+
33+
[#2 Insertion delimiter] = ", "
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
foo.bar(123, 456)
2+
---
3+
4+
[Range] = 0:8-0:16
5+
>--------<
6+
0| foo.bar(123, 456)
7+
8+
[Domain] = 0:7-0:17
9+
>----------<
10+
0| foo.bar(123, 456)
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
foo.bar(123, 456)
2+
---
3+
4+
[#1 Content] =
5+
[#1 Domain] = 0:8-0:11
6+
>---<
7+
0| foo.bar(123, 456)
8+
9+
[#1 Removal] = 0:8-0:13
10+
>-----<
11+
0| foo.bar(123, 456)
12+
13+
[#1 Trailing delimiter] = 0:11-0:13
14+
>--<
15+
0| foo.bar(123, 456)
16+
17+
[#1 Insertion delimiter] = ", "
18+
19+
20+
[#2 Content] =
21+
[#2 Domain] = 0:13-0:16
22+
>---<
23+
0| foo.bar(123, 456)
24+
25+
[#2 Removal] = 0:11-0:16
26+
>-----<
27+
0| foo.bar(123, 456)
28+
29+
[#2 Leading delimiter] = 0:11-0:13
30+
>--<
31+
0| foo.bar(123, 456)
32+
33+
[#2 Insertion delimiter] = ", "
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
class Foo:
2+
def __init__(self, aaa: str, bbb: int):
3+
pass
4+
---
5+
6+
[Range] = 1:17-1:41
7+
>------------------------<
8+
1| def __init__(self, aaa: str, bbb: int):
9+
10+
[Domain] = 1:4-2:12
11+
>---------------------------------------
12+
1| def __init__(self, aaa: str, bbb: int):
13+
2| pass
14+
------------<
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
class Foo:
2+
def __init__(self, aaa: str, bbb: int):
3+
pass
4+
---
5+
6+
[#1 Content] =
7+
[#1 Domain] = 1:17-1:21
8+
>----<
9+
1| def __init__(self, aaa: str, bbb: int):
10+
11+
[#1 Removal] = 1:17-1:23
12+
>------<
13+
1| def __init__(self, aaa: str, bbb: int):
14+
15+
[#1 Trailing delimiter] = 1:21-1:23
16+
>--<
17+
1| def __init__(self, aaa: str, bbb: int):
18+
19+
[#1 Insertion delimiter] = ", "
20+
21+
22+
[#2 Content] =
23+
[#2 Domain] = 1:23-1:31
24+
>--------<
25+
1| def __init__(self, aaa: str, bbb: int):
26+
27+
[#2 Removal] = 1:23-1:33
28+
>----------<
29+
1| def __init__(self, aaa: str, bbb: int):
30+
31+
[#2 Leading delimiter] = 1:21-1:23
32+
>--<
33+
1| def __init__(self, aaa: str, bbb: int):
34+
35+
[#2 Trailing delimiter] = 1:31-1:33
36+
>--<
37+
1| def __init__(self, aaa: str, bbb: int):
38+
39+
[#2 Insertion delimiter] = ", "
40+
41+
42+
[#3 Content] =
43+
[#3 Domain] = 1:33-1:41
44+
>--------<
45+
1| def __init__(self, aaa: str, bbb: int):
46+
47+
[#3 Removal] = 1:31-1:41
48+
>----------<
49+
1| def __init__(self, aaa: str, bbb: int):
50+
51+
[#3 Leading delimiter] = 1:31-1:33
52+
>--<
53+
1| def __init__(self, aaa: str, bbb: int):
54+
55+
[#3 Insertion delimiter] = ", "
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
class Foo:
2+
def bar(aaa: str, bbb: int):
3+
pass
4+
---
5+
6+
[Range] = 1:12-1:30
7+
>------------------<
8+
1| def bar(aaa: str, bbb: int):
9+
10+
[Domain] = 1:4-2:12
11+
>----------------------------
12+
1| def bar(aaa: str, bbb: int):
13+
2| pass
14+
------------<
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
class Foo:
2+
def bar(aaa: str, bbb: int):
3+
pass
4+
---
5+
6+
[#1 Content] =
7+
[#1 Domain] = 1:12-1:20
8+
>--------<
9+
1| def bar(aaa: str, bbb: int):
10+
11+
[#1 Removal] = 1:12-1:22
12+
>----------<
13+
1| def bar(aaa: str, bbb: int):
14+
15+
[#1 Trailing delimiter] = 1:20-1:22
16+
>--<
17+
1| def bar(aaa: str, bbb: int):
18+
19+
[#1 Insertion delimiter] = ", "
20+
21+
22+
[#2 Content] =
23+
[#2 Domain] = 1:22-1:30
24+
>--------<
25+
1| def bar(aaa: str, bbb: int):
26+
27+
[#2 Removal] = 1:20-1:30
28+
>----------<
29+
1| def bar(aaa: str, bbb: int):
30+
31+
[#2 Leading delimiter] = 1:20-1:22
32+
>--<
33+
1| def bar(aaa: str, bbb: int):
34+
35+
[#2 Insertion delimiter] = ", "

data/fixtures/scopes/python/branch.switchCase.iteration.scope

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,15 @@ match 0:
55
pass
66
---
77

8-
[Range] =
8+
[Range] = 0:8-4:12
9+
>
10+
0| match 0:
11+
1| case [0]:
12+
2| pass
13+
3| case [1]:
14+
4| pass
15+
------------<
16+
917
[Domain] = 0:0-4:12
1018
>--------
1119
0| match 0:
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
try:
2+
pass
3+
except:
4+
pass
5+
finally:
6+
pass
7+
---
8+
9+
[Range] =
10+
[Domain] = 0:0-5:8
11+
>----
12+
0| try:
13+
1| pass
14+
2| except:
15+
3| pass
16+
4| finally:
17+
5| pass
18+
--------<

0 commit comments

Comments
 (0)