Skip to content

Commit 1123b6d

Browse files
More tests
1 parent 99ba356 commit 1123b6d

File tree

6 files changed

+114
-8
lines changed

6 files changed

+114
-8
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
value = 123;
2+
---
3+
4+
[Content] = 0:8-0:11
5+
>---<
6+
0| value = 123;
7+
8+
[Removal] = 0:5-0:11
9+
>------<
10+
0| value = 123;
11+
12+
[Leading delimiter] = 0:5-0:8
13+
>---<
14+
0| value = 123;
15+
16+
[Domain] = 0:0-0:12
17+
>------------<
18+
0| value = 123;
19+
20+
[Insertion delimiter] = " "
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
public class MyClass {
2+
private int value = 123;
3+
}
4+
---
5+
6+
[Content] = 1:24-1:27
7+
>---<
8+
1| private int value = 123;
9+
10+
[Removal] = 1:21-1:27
11+
>------<
12+
1| private int value = 123;
13+
14+
[Leading delimiter] = 1:21-1:24
15+
>---<
16+
1| private int value = 123;
17+
18+
[Domain] = 1:4-1:28
19+
>------------------------<
20+
1| private int value = 123;
21+
22+
[Insertion delimiter] = " "
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
() -> 123
2+
---
3+
4+
[Content] = 0:6-0:9
5+
>---<
6+
0| () -> 123
7+
8+
[Removal] = 0:5-0:9
9+
>----<
10+
0| () -> 123
11+
12+
[Leading delimiter] = 0:5-0:6
13+
>-<
14+
0| () -> 123
15+
16+
[Domain] = 0:0-0:9
17+
>---------<
18+
0| () -> 123
19+
20+
[Insertion delimiter] = " "
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
public class MyClass {
2+
public int foo() {
3+
return 123;
4+
}
5+
}
6+
---
7+
8+
[Content] = 2:15-2:18
9+
>---<
10+
2| return 123;
11+
12+
[Removal] = 2:14-2:18
13+
>----<
14+
2| return 123;
15+
16+
[Leading delimiter] = 2:14-2:15
17+
>-<
18+
2| return 123;
19+
20+
[Domain] = 2:8-2:19
21+
>-----------<
22+
2| return 123;
23+
24+
[Insertion delimiter] = " "
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
value = 123;
2+
---
3+
4+
[Content] = 0:8-0:11
5+
>---<
6+
0| value = 123;
7+
8+
[Removal] = 0:5-0:11
9+
>------<
10+
0| value = 123;
11+
12+
[Leading delimiter] = 0:5-0:8
13+
>---<
14+
0| value = 123;
15+
16+
[Domain] = 0:0-0:12
17+
>------------<
18+
0| value = 123;
19+
20+
[Insertion delimiter] = " "

packages/common/src/scopeSupportFacets/java.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ export const javaScopeSupport: LanguageScopeSupportFacetMap = {
6565
"name.constructor": supported,
6666
"name.field": supported,
6767
"name.foreach": supported,
68-
"name.iteration.block": supported,
6968
"name.method": supported,
7069
"name.variable": supported,
7170
"namedFunction.constructor": supported,
@@ -85,9 +84,7 @@ export const javaScopeSupport: LanguageScopeSupportFacetMap = {
8584
"type.typeArgument": supported,
8685
"type.typeArgument.iteration": supported,
8786

88-
"type.alias": supported,
8987
"type.argument.formal.constructor": supported,
90-
"type.argument.formal.iteration": supported,
9188
"type.argument.formal.method": supported,
9289
"type.foreach": supported,
9390
"type.field": supported,
@@ -100,7 +97,6 @@ export const javaScopeSupport: LanguageScopeSupportFacetMap = {
10097
"value.field": supported,
10198
"value.return": supported,
10299
"value.return.lambda": supported,
103-
"value.typeAlias": supported,
104100
"value.variable": supported,
105101
"value.yield": supported,
106102

@@ -112,6 +108,7 @@ export const javaScopeSupport: LanguageScopeSupportFacetMap = {
112108
"className.iteration.document": unsupported,
113109

114110
"name.iteration.document": unsupported,
111+
"name.iteration.block": unsupported,
115112
"name.resource": unsupported,
116113
"name.resource.iteration": unsupported,
117114

@@ -168,15 +165,18 @@ export const javaScopeSupport: LanguageScopeSupportFacetMap = {
168165
"value.argument.actual.iteration": notApplicable,
169166
"value.argument.formal": notApplicable,
170167
"value.argument.formal.iteration": notApplicable,
171-
"value.argument.formal.constructor": supported,
172-
"value.argument.formal.constructor.iteration": supported,
173-
"value.argument.formal.method": supported,
174-
"value.argument.formal.method.iteration": supported,
168+
"value.argument.formal.constructor": notApplicable,
169+
"value.argument.formal.constructor.iteration": notApplicable,
170+
"value.argument.formal.method": notApplicable,
171+
"value.argument.formal.method.iteration": notApplicable,
175172
"value.mapPair": notApplicable,
176173
"value.mapPair.iteration": notApplicable,
177174
"value.variable.pattern": notApplicable,
175+
"value.typeAlias": notApplicable,
178176

179177
"type.argument.formal": notApplicable,
178+
"type.argument.formal.iteration": notApplicable,
179+
"type.alias": notApplicable,
180180

181181
section: notApplicable,
182182
"section.iteration.document": notApplicable,

0 commit comments

Comments
 (0)