Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Foo(123, 456)
---

[Range] = 0:4-0:12
>--------<
0| Foo(123, 456)

[Domain] = 0:3-0:13
>----------<
0| Foo(123, 456)
33 changes: 33 additions & 0 deletions data/fixtures/scopes/python/argument.actual.constructor.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Foo(123, 456)
---

[#1 Content] =
[#1 Domain] = 0:4-0:7
>---<
0| Foo(123, 456)

[#1 Removal] = 0:4-0:9
>-----<
0| Foo(123, 456)

[#1 Trailing delimiter] = 0:7-0:9
>--<
0| Foo(123, 456)

[#1 Insertion delimiter] = ", "


[#2 Content] =
[#2 Domain] = 0:9-0:12
>---<
0| Foo(123, 456)

[#2 Removal] = 0:7-0:12
>-----<
0| Foo(123, 456)

[#2 Leading delimiter] = 0:7-0:9
>--<
0| Foo(123, 456)

[#2 Insertion delimiter] = ", "
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
foo.bar(123, 456)
---

[Range] = 0:8-0:16
>--------<
0| foo.bar(123, 456)

[Domain] = 0:7-0:17
>----------<
0| foo.bar(123, 456)
33 changes: 33 additions & 0 deletions data/fixtures/scopes/python/argument.actual.method.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
foo.bar(123, 456)
---

[#1 Content] =
[#1 Domain] = 0:8-0:11
>---<
0| foo.bar(123, 456)

[#1 Removal] = 0:8-0:13
>-----<
0| foo.bar(123, 456)

[#1 Trailing delimiter] = 0:11-0:13
>--<
0| foo.bar(123, 456)

[#1 Insertion delimiter] = ", "


[#2 Content] =
[#2 Domain] = 0:13-0:16
>---<
0| foo.bar(123, 456)

[#2 Removal] = 0:11-0:16
>-----<
0| foo.bar(123, 456)

[#2 Leading delimiter] = 0:11-0:13
>--<
0| foo.bar(123, 456)

[#2 Insertion delimiter] = ", "
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
class Foo:
def __init__(self, aaa: str, bbb: int):
pass
---

[Range] = 1:17-1:41
>------------------------<
1| def __init__(self, aaa: str, bbb: int):

[Domain] = 1:4-2:12
>---------------------------------------
1| def __init__(self, aaa: str, bbb: int):
2| pass
------------<
55 changes: 55 additions & 0 deletions data/fixtures/scopes/python/argument.formal.constructor.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
class Foo:
def __init__(self, aaa: str, bbb: int):
pass
---

[#1 Content] =
[#1 Domain] = 1:17-1:21
>----<
1| def __init__(self, aaa: str, bbb: int):

[#1 Removal] = 1:17-1:23
>------<
1| def __init__(self, aaa: str, bbb: int):

[#1 Trailing delimiter] = 1:21-1:23
>--<
1| def __init__(self, aaa: str, bbb: int):

[#1 Insertion delimiter] = ", "


[#2 Content] =
[#2 Domain] = 1:23-1:31
>--------<
1| def __init__(self, aaa: str, bbb: int):

[#2 Removal] = 1:23-1:33
>----------<
1| def __init__(self, aaa: str, bbb: int):

[#2 Leading delimiter] = 1:21-1:23
>--<
1| def __init__(self, aaa: str, bbb: int):

[#2 Trailing delimiter] = 1:31-1:33
>--<
1| def __init__(self, aaa: str, bbb: int):

[#2 Insertion delimiter] = ", "


[#3 Content] =
[#3 Domain] = 1:33-1:41
>--------<
1| def __init__(self, aaa: str, bbb: int):

[#3 Removal] = 1:31-1:41
>----------<
1| def __init__(self, aaa: str, bbb: int):

[#3 Leading delimiter] = 1:31-1:33
>--<
1| def __init__(self, aaa: str, bbb: int):

[#3 Insertion delimiter] = ", "
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
class Foo:
def bar(aaa: str, bbb: int):
pass
---

[Range] = 1:12-1:30
>------------------<
1| def bar(aaa: str, bbb: int):

[Domain] = 1:4-2:12
>----------------------------
1| def bar(aaa: str, bbb: int):
2| pass
------------<
35 changes: 35 additions & 0 deletions data/fixtures/scopes/python/argument.formal.method.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
class Foo:
def bar(aaa: str, bbb: int):
pass
---

[#1 Content] =
[#1 Domain] = 1:12-1:20
>--------<
1| def bar(aaa: str, bbb: int):

[#1 Removal] = 1:12-1:22
>----------<
1| def bar(aaa: str, bbb: int):

[#1 Trailing delimiter] = 1:20-1:22
>--<
1| def bar(aaa: str, bbb: int):

[#1 Insertion delimiter] = ", "


[#2 Content] =
[#2 Domain] = 1:22-1:30
>--------<
1| def bar(aaa: str, bbb: int):

[#2 Removal] = 1:20-1:30
>----------<
1| def bar(aaa: str, bbb: int):

[#2 Leading delimiter] = 1:20-1:22
>--<
1| def bar(aaa: str, bbb: int):

[#2 Insertion delimiter] = ", "
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,15 @@ match 0:
pass
---

[Range] =
[Range] = 0:8-4:12
>
0| match 0:
1| case [0]:
2| pass
3| case [1]:
4| pass
------------<

[Domain] = 0:0-4:12
>--------
0| match 0:
Expand Down
18 changes: 18 additions & 0 deletions data/fixtures/scopes/python/branch.try.iteration.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
try:
pass
except:
pass
finally:
pass
---

[Range] =
[Domain] = 0:0-5:8
>----
0| try:
1| pass
2| except:
3| pass
4| finally:
5| pass
--------<
12 changes: 12 additions & 0 deletions data/fixtures/scopes/python/class.iteration.document.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
class Foo:
pass

---

[Range] =
[Domain] = 0:0-2:0
>----------
0| class Foo:
1| pass
2|
<
12 changes: 12 additions & 0 deletions data/fixtures/scopes/python/className.iteration.document.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
class Foo:
pass

---

[Range] =
[Domain] = 0:0-2:0
>----------
0| class Foo:
1| pass
2|
<
23 changes: 23 additions & 0 deletions data/fixtures/scopes/python/className.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
class Foo:
pass
---

[Content] = 0:6-0:9
>---<
0| class Foo:

[Removal] = 0:5-0:9
>----<
0| class Foo:

[Leading delimiter] = 0:5-0:6
>-<
0| class Foo:

[Domain] = 0:0-1:8
>----------
0| class Foo:
1| pass
--------<

[Insertion delimiter] = " "
10 changes: 10 additions & 0 deletions data/fixtures/scopes/python/comment.line.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Hello world
---

[Content] =
[Removal] =
[Domain] = 0:0-0:13
>-------------<
0| # Hello world

[Insertion delimiter] = "\n"
23 changes: 23 additions & 0 deletions data/fixtures/scopes/python/condition.if.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
if value > 0:
pass
---

[Content] = 0:3-0:12
>---------<
0| if value > 0:

[Removal] = 0:2-0:12
>----------<
0| if value > 0:

[Leading delimiter] = 0:2-0:3
>-<
0| if value > 0:

[Domain] = 0:0-1:8
>-------------
0| if value > 0:
1| pass
--------<

[Insertion delimiter] = " "
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
match value:
case 0:
pass
case 1:
pass
---

[Range] = 0:12-4:12
>
0| match value:
1| case 0:
2| pass
3| case 1:
4| pass
------------<

[Domain] = 0:0-4:12
>------------
0| match value:
1| case 0:
2| pass
3| case 1:
4| pass
------------<
Loading
Loading