Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
13b5180
working on kotlin facets
AndreasArvidsson Feb 1, 2026
4b00b5c
named function
AndreasArvidsson Feb 1, 2026
8baf496
statements
AndreasArvidsson Feb 1, 2026
5e4a393
function call
AndreasArvidsson Feb 1, 2026
97c7d17
iteration
AndreasArvidsson Feb 1, 2026
c5e4bb2
name and value
AndreasArvidsson Feb 1, 2026
6392776
interior
AndreasArvidsson Feb 1, 2026
4dd2225
branch
AndreasArvidsson Feb 1, 2026
f49b535
More work
AndreasArvidsson Feb 1, 2026
44882d0
More tests
AndreasArvidsson Feb 1, 2026
8f5db87
More tests
AndreasArvidsson Feb 1, 2026
800f7fa
more iteration
AndreasArvidsson Feb 2, 2026
ed693c4
lambda
AndreasArvidsson Feb 2, 2026
483b991
type and name
AndreasArvidsson Feb 2, 2026
72c4251
disqualified delimiters
AndreasArvidsson Feb 2, 2026
7884c59
catch arguments
AndreasArvidsson Feb 2, 2026
1e09f39
argument actual
AndreasArvidsson Feb 2, 2026
2377085
arguments
AndreasArvidsson Feb 2, 2026
2192c94
More tests
AndreasArvidsson Feb 2, 2026
f63cb22
More tests
AndreasArvidsson Feb 2, 2026
cd8eb02
more fixes
AndreasArvidsson Feb 3, 2026
e8ebcd1
more work
AndreasArvidsson Feb 3, 2026
ca4b3f5
more tests
AndreasArvidsson Feb 4, 2026
e01668d
call
AndreasArvidsson Feb 4, 2026
a61f8b6
map pair
AndreasArvidsson Feb 4, 2026
dee8a39
arguments
AndreasArvidsson Feb 4, 2026
952fc7c
getter and setter
AndreasArvidsson Feb 4, 2026
f9d876b
function type
AndreasArvidsson Feb 4, 2026
0d915d5
More tests
AndreasArvidsson Feb 4, 2026
6943c05
Clean up
AndreasArvidsson Feb 4, 2026
5fa4eae
More tests
AndreasArvidsson Feb 4, 2026
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
Expand Up @@ -28,12 +28,10 @@ finalState:
fun main() {
val pairs = listOf(Pair(1, "one"), Pair(2, "two"), Pair(3, "three"))

for ((, ) in pairs) {
for ( in pairs) {
println("Number: $number, Name: $name")
}
}
selections:
- anchor: {line: 3, character: 10}
active: {line: 3, character: 10}
- anchor: {line: 3, character: 12}
active: {line: 3, character: 12}
- anchor: {line: 3, character: 9}
active: {line: 3, character: 9}
37 changes: 0 additions & 37 deletions data/fixtures/recorded/languages/kotlin/changeName11.yml

This file was deleted.

2 changes: 0 additions & 2 deletions data/fixtures/recorded/languages/kotlin/changeState8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ finalState:
documentContents: |-
package test



@Annotation
class Test {
fun add(x: Int, y: Int) = x + y
Expand Down
37 changes: 0 additions & 37 deletions data/fixtures/recorded/languages/kotlin/changeType25.yml

This file was deleted.

6 changes: 3 additions & 3 deletions data/fixtures/recorded/languages/kotlin/changeType8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ initialState:
active: {line: 0, character: 10}
marks: {}
finalState:
documentContents: "typealias Predicate<T> = "
documentContents: ""
selections:
- anchor: {line: 0, character: 25}
active: {line: 0, character: 25}
- anchor: {line: 0, character: 0}
active: {line: 0, character: 0}
6 changes: 3 additions & 3 deletions data/fixtures/recorded/languages/kotlin/changeType9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ initialState:
active: {line: 0, character: 25}
marks: {}
finalState:
documentContents: "typealias Predicate<T> = "
documentContents: ""
selections:
- anchor: {line: 0, character: 25}
active: {line: 0, character: 25}
- anchor: {line: 0, character: 0}
active: {line: 0, character: 0}
2 changes: 1 addition & 1 deletion data/fixtures/recorded/languages/kotlin/chuckBranch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ finalState:
fun main() {
if (true) 0

1
else 1
}
selections:
- anchor: {line: 3, character: 4}
Expand Down
10 changes: 10 additions & 0 deletions data/fixtures/scopes/kotlin/anonymousFunction.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
fun() {}
---

[Content] =
[Removal] =
[Domain] = 0:0-0:8
>--------<
0| fun() {}

[Insertion delimiter] = "\n"
10 changes: 10 additions & 0 deletions data/fixtures/scopes/kotlin/anonymousFunction2.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{x -> 0}
---

[Content] =
[Removal] =
[Domain] = 0:0-0:8
>--------<
0| {x -> 0}

[Insertion delimiter] = "\n"
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Foo(aaa, bbb)
---

[Content] = 0:4-0:12
>--------<
0| Foo(aaa, bbb)

[Domain] = 0:0-0:13
>-------------<
0| Foo(aaa, bbb)
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
class Foo: Bar(aaa, bbb)
---

[Content] = 0:15-0:23
>--------<
0| class Foo: Bar(aaa, bbb)

[Domain] = 0:11-0:24
>-------------<
0| class Foo: Bar(aaa, bbb)
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
Foo(
aaa,
bbb
)
---

[#1 Content] =
[#1 Domain] = 1:4-1:7
>---<
1| aaa,

[#1 Removal] = 1:4-2:4
>----
1| aaa,
2| bbb
----<

[#1 Trailing delimiter] = 1:7-2:4
>-
1| aaa,
2| bbb
----<

[#1 Insertion delimiter] = ",\n"


[#2 Content] =
[#2 Domain] = 2:4-2:7
>---<
2| bbb

[#2 Removal] = 1:7-2:7
>-
1| aaa,
2| bbb
-------<

[#2 Leading delimiter] = 1:7-2:4
>-
1| aaa,
2| bbb
----<

[#2 Insertion delimiter] = ",\n"
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
class Foo: Bar(
aaa,
bbb
)
---

[#1 Content] =
[#1 Domain] = 1:4-1:7
>---<
1| aaa,

[#1 Removal] = 1:4-2:4
>----
1| aaa,
2| bbb
----<

[#1 Trailing delimiter] = 1:7-2:4
>-
1| aaa,
2| bbb
----<

[#1 Insertion delimiter] = ",\n"


[#2 Content] =
[#2 Domain] = 2:4-2:7
>---<
2| bbb

[#2 Removal] = 1:7-2:7
>-
1| aaa,
2| bbb
-------<

[#2 Leading delimiter] = 1:7-2:4
>-
1| aaa,
2| bbb
----<

[#2 Insertion delimiter] = ",\n"
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Foo(aaa, bbb)
---

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

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

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

[#1 Insertion delimiter] = ", "


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

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

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

[#2 Insertion delimiter] = ", "
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
class Foo: Bar(aaa, bbb)
---

[#1 Content] =
[#1 Domain] = 0:15-0:18
>---<
0| class Foo: Bar(aaa, bbb)

[#1 Removal] = 0:15-0:20
>-----<
0| class Foo: Bar(aaa, bbb)

[#1 Trailing delimiter] = 0:18-0:20
>--<
0| class Foo: Bar(aaa, bbb)

[#1 Insertion delimiter] = ", "


[#2 Content] =
[#2 Domain] = 0:20-0:23
>---<
0| class Foo: Bar(aaa, bbb)

[#2 Removal] = 0:18-0:23
>-----<
0| class Foo: Bar(aaa, bbb)

[#2 Leading delimiter] = 0:18-0:20
>--<
0| class Foo: Bar(aaa, bbb)

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

[Content] = 0:4-0:12
>--------<
0| foo(aaa, bbb)

[Domain] = 0:0-0:13
>-------------<
0| foo(aaa, bbb)
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
foo.bar(aaa, bbb)
---

[Content] = 0:8-0:16
>--------<
0| foo.bar(aaa, bbb)

[Domain] = 0:0-0:17
>-----------------<
0| foo.bar(aaa, bbb)
Loading
Loading