Skip to content

Commit b8a2f42

Browse files
Added constructor facets (#2380)
## Checklist - [x] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [/] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [/] I have not broken the cheatsheet --------- Co-authored-by: Pokey Rule <[email protected]>
1 parent e61045c commit b8a2f42

File tree

59 files changed

+1666
-109
lines changed

Some content is hidden

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

59 files changed

+1666
-109
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
new Aaa(bbb, ccc)
2+
---
3+
4+
[Range] = 0:8-0:16
5+
>--------<
6+
0| new Aaa(bbb, ccc)
7+
8+
[Domain] = 0:7-0:17
9+
>----------<
10+
0| new Aaa(bbb, ccc)
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
new Aaa(bbb, ccc)
2+
---
3+
4+
[#1 Content] =
5+
[#1 Domain] = 0:8-0:11
6+
>---<
7+
0| new Aaa(bbb, ccc)
8+
9+
[#1 Removal] = 0:8-0:13
10+
>-----<
11+
0| new Aaa(bbb, ccc)
12+
13+
[#1 Trailing delimiter] = 0:11-0:13
14+
>--<
15+
0| new Aaa(bbb, ccc)
16+
17+
[#1 Insertion delimiter] = ", "
18+
19+
20+
[#2 Content] =
21+
[#2 Domain] = 0:13-0:16
22+
>---<
23+
0| new Aaa(bbb, ccc)
24+
25+
[#2 Removal] = 0:11-0:16
26+
>-----<
27+
0| new Aaa(bbb, ccc)
28+
29+
[#2 Leading delimiter] = 0:11-0:13
30+
>--<
31+
0| new Aaa(bbb, ccc)
32+
33+
[#2 Insertion delimiter] = ", "
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
foo(arg1, arg2);
1+
aaa(bbb, ccc);
22
---
33

4-
[Range] = 0:4-0:14
5-
>----------<
6-
0| foo(arg1, arg2);
4+
[Range] = 0:4-0:12
5+
>--------<
6+
0| aaa(bbb, ccc);
77

8-
[Domain] = 0:3-0:15
9-
>------------<
10-
0| foo(arg1, arg2);
8+
[Domain] = 0:3-0:13
9+
>----------<
10+
0| aaa(bbb, ccc);
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
aaa.bbb(ccc, ddd);
2+
---
3+
4+
[Range] = 0:8-0:16
5+
>--------<
6+
0| aaa.bbb(ccc, ddd);
7+
8+
[Domain] = 0:7-0:17
9+
>----------<
10+
0| aaa.bbb(ccc, ddd);
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
aaa.bbb(ccc, ddd);
2+
---
3+
4+
[#1 Content] =
5+
[#1 Domain] = 0:8-0:11
6+
>---<
7+
0| aaa.bbb(ccc, ddd);
8+
9+
[#1 Removal] = 0:8-0:13
10+
>-----<
11+
0| aaa.bbb(ccc, ddd);
12+
13+
[#1 Trailing delimiter] = 0:11-0:13
14+
>--<
15+
0| aaa.bbb(ccc, ddd);
16+
17+
[#1 Insertion delimiter] = ", "
18+
19+
20+
[#2 Content] =
21+
[#2 Domain] = 0:13-0:16
22+
>---<
23+
0| aaa.bbb(ccc, ddd);
24+
25+
[#2 Removal] = 0:11-0:16
26+
>-----<
27+
0| aaa.bbb(ccc, ddd);
28+
29+
[#2 Leading delimiter] = 0:11-0:13
30+
>--<
31+
0| aaa.bbb(ccc, ddd);
32+
33+
[#2 Insertion delimiter] = ", "
Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,33 @@
1-
foo.bar(value);
1+
aaa(bbb, ccc);
22
---
33

4-
[Content] =
5-
[Removal] =
6-
[Domain] = 0:8-0:13
7-
>-----<
8-
0| foo.bar(value);
4+
[#1 Content] =
5+
[#1 Domain] = 0:4-0:7
6+
>---<
7+
0| aaa(bbb, ccc);
98

10-
[Insertion delimiter] = ", "
9+
[#1 Removal] = 0:4-0:9
10+
>-----<
11+
0| aaa(bbb, ccc);
12+
13+
[#1 Trailing delimiter] = 0:7-0:9
14+
>--<
15+
0| aaa(bbb, ccc);
16+
17+
[#1 Insertion delimiter] = ", "
18+
19+
20+
[#2 Content] =
21+
[#2 Domain] = 0:9-0:12
22+
>---<
23+
0| aaa(bbb, ccc);
24+
25+
[#2 Removal] = 0:7-0:12
26+
>-----<
27+
0| aaa(bbb, ccc);
28+
29+
[#2 Leading delimiter] = 0:7-0:9
30+
>--<
31+
0| aaa(bbb, ccc);
32+
33+
[#2 Insertion delimiter] = ", "
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
class MyClass {
2+
constructor(aaa, bbb) { }
3+
}
4+
---
5+
6+
[Range] = 1:14-1:22
7+
>--------<
8+
1| constructor(aaa, bbb) { }
9+
10+
[Domain] = 1:2-1:27
11+
>-------------------------<
12+
1| constructor(aaa, bbb) { }
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
class MyClass {
2+
constructor(aaa, bbb) { }
3+
}
4+
---
5+
6+
[#1 Content] =
7+
[#1 Domain] = 1:14-1:17
8+
>---<
9+
1| constructor(aaa, bbb) { }
10+
11+
[#1 Removal] = 1:14-1:19
12+
>-----<
13+
1| constructor(aaa, bbb) { }
14+
15+
[#1 Trailing delimiter] = 1:17-1:19
16+
>--<
17+
1| constructor(aaa, bbb) { }
18+
19+
[#1 Insertion delimiter] = ", "
20+
21+
22+
[#2 Content] =
23+
[#2 Domain] = 1:19-1:22
24+
>---<
25+
1| constructor(aaa, bbb) { }
26+
27+
[#2 Removal] = 1:17-1:22
28+
>-----<
29+
1| constructor(aaa, bbb) { }
30+
31+
[#2 Leading delimiter] = 1:17-1:19
32+
>--<
33+
1| constructor(aaa, bbb) { }
34+
35+
[#2 Insertion delimiter] = ", "
Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
1-
function myFunk(arg1, arg2) {
2-
3-
}
1+
function myFunk(aaa, bbb) { }
42
---
53

6-
[Range] = 0:16-0:26
7-
>----------<
8-
0| function myFunk(arg1, arg2) {
4+
[Range] = 0:16-0:24
5+
>--------<
6+
0| function myFunk(aaa, bbb) { }
97

10-
[Domain] = 0:0-2:1
11-
>-----------------------------
12-
0| function myFunk(arg1, arg2) {
13-
1|
14-
2| }
15-
-<
8+
[Domain] = 0:0-0:29
9+
>-----------------------------<
10+
0| function myFunk(aaa, bbb) { }
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
class MyClass {
2+
myFunk(aaa, bbb) { }
3+
}
4+
---
5+
6+
[Range] = 1:9-1:17
7+
>--------<
8+
1| myFunk(aaa, bbb) { }
9+
10+
[Domain] = 1:2-1:22
11+
>--------------------<
12+
1| myFunk(aaa, bbb) { }

0 commit comments

Comments
 (0)