Skip to content

Commit 76c2165

Browse files
ts
1 parent 87c6b14 commit 76c2165

21 files changed

+409
-35
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
enum Foo { }
2+
---
3+
4+
[#1 Content] =
5+
[#1 Removal] = 0:10-0:11
6+
>-<
7+
0| enum Foo { }
8+
9+
[#1 Domain] = 0:0-0:12
10+
>------------<
11+
0| enum Foo { }
12+
13+
[#1 Insertion delimiter] = " "
14+
15+
16+
[#2 Content] =
17+
[#2 Removal] = 0:10-0:11
18+
>-<
19+
0| enum Foo { }
20+
21+
[#2 Domain] = 0:9-0:12
22+
>---<
23+
0| enum Foo { }
24+
25+
[#2 Insertion delimiter] = " "
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
enum Foo {}
2+
---
3+
4+
[Content] = 0:5-0:8
5+
>---<
6+
0| enum Foo {}
7+
8+
[Removal] = 0:5-0:9
9+
>----<
10+
0| enum Foo {}
11+
12+
[Leading delimiter] = 0:4-0:5
13+
>-<
14+
0| enum Foo {}
15+
16+
[Trailing delimiter] = 0:8-0:9
17+
>-<
18+
0| enum Foo {}
19+
20+
[Domain] = 0:0-0:11
21+
>-----------<
22+
0| enum Foo {}
23+
24+
[Insertion delimiter] = " "
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
enum Foo {
2+
bar = "-",
3+
baz = 0,
4+
bongo
5+
}
6+
---
7+
8+
[#1 Content] = 0:5-0:8
9+
>---<
10+
0| enum Foo {
11+
12+
[#1 Removal] = 0:5-0:9
13+
>----<
14+
0| enum Foo {
15+
16+
[#1 Leading delimiter] = 0:4-0:5
17+
>-<
18+
0| enum Foo {
19+
20+
[#1 Trailing delimiter] = 0:8-0:9
21+
>-<
22+
0| enum Foo {
23+
24+
[#1 Domain] = 0:0-4:1
25+
>----------
26+
0| enum Foo {
27+
1| bar = "-",
28+
2| baz = 0,
29+
3| bongo
30+
4| }
31+
-<
32+
33+
[#1 Insertion delimiter] = " "
34+
35+
36+
[#2 Content] = 1:4-1:7
37+
>---<
38+
1| bar = "-",
39+
40+
[#2 Removal] = 1:4-1:8
41+
>----<
42+
1| bar = "-",
43+
44+
[#2 Leading delimiter] = 1:0-1:4
45+
>----<
46+
1| bar = "-",
47+
48+
[#2 Trailing delimiter] = 1:7-1:8
49+
>-<
50+
1| bar = "-",
51+
52+
[#2 Domain] = 1:4-1:13
53+
>---------<
54+
1| bar = "-",
55+
56+
[#2 Insertion delimiter] = " "
57+
58+
59+
[#3 Content] = 2:4-2:7
60+
>---<
61+
2| baz = 0,
62+
63+
[#3 Removal] = 2:4-2:8
64+
>----<
65+
2| baz = 0,
66+
67+
[#3 Leading delimiter] = 2:0-2:4
68+
>----<
69+
2| baz = 0,
70+
71+
[#3 Trailing delimiter] = 2:7-2:8
72+
>-<
73+
2| baz = 0,
74+
75+
[#3 Domain] = 2:4-2:11
76+
>-------<
77+
2| baz = 0,
78+
79+
[#3 Insertion delimiter] = " "
80+
81+
82+
[#4 Content] =
83+
[#4 Domain] = 3:4-3:9
84+
>-----<
85+
3| bongo
86+
87+
[#4 Removal] = 3:0-4:0
88+
>---------
89+
3| bongo
90+
4| }
91+
<
92+
93+
[#4 Leading delimiter] = 3:0-3:4
94+
>----<
95+
3| bongo
96+
97+
[#4 Insertion delimiter] = " "
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
enum Foo { }
2+
---
3+
4+
[#1 Range] =
5+
[#1 Domain] = 0:0-0:12
6+
>------------<
7+
0| enum Foo { }
8+
9+
10+
[#2 Range] =
11+
[#2 Domain] = 0:10-0:11
12+
>-<
13+
0| enum Foo { }
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
enum Foo {}
2+
---
3+
4+
[Content] =
5+
[Removal] =
6+
[Domain] = 0:0-0:11
7+
>-----------<
8+
0| enum Foo {}
9+
10+
[Insertion delimiter] = "\n"
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
enum Foo {
2+
bar = "-",
3+
baz = 0,
4+
bongo
5+
}
6+
---
7+
8+
[#1 Content] = 1:10-1:13
9+
>---<
10+
1| bar = "-",
11+
12+
[#1 Removal] = 1:9-1:13
13+
>----<
14+
1| bar = "-",
15+
16+
[#1 Leading delimiter] = 1:9-1:10
17+
>-<
18+
1| bar = "-",
19+
20+
[#1 Domain] = 1:4-1:13
21+
>---------<
22+
1| bar = "-",
23+
24+
[#1 Insertion delimiter] = " "
25+
26+
27+
[#2 Content] = 2:10-2:11
28+
>-<
29+
2| baz = 0,
30+
31+
[#2 Removal] = 2:9-2:11
32+
>--<
33+
2| baz = 0,
34+
35+
[#2 Leading delimiter] = 2:9-2:10
36+
>-<
37+
2| baz = 0,
38+
39+
[#2 Domain] = 2:4-2:11
40+
>-------<
41+
2| baz = 0,
42+
43+
[#2 Insertion delimiter] = " "
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
enum Foo { }
2+
---
3+
4+
[#1 Range] =
5+
[#1 Domain] = 0:0-0:12
6+
>------------<
7+
0| enum Foo { }
8+
9+
10+
[#2 Range] =
11+
[#2 Domain] = 0:10-0:11
12+
>-<
13+
0| enum Foo { }

packages/common/src/scopeSupportFacets/css.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,16 @@ export const cssScopeSupport: LanguageScopeSupportFacetMap = {
7676
"type.iteration.interface": notApplicable,
7777
"interior.interface": notApplicable,
7878

79+
// Enum
80+
"statement.enum": notApplicable,
81+
"name.enum": notApplicable,
82+
"name.field.enum": notApplicable,
83+
"name.iteration.enum": notApplicable,
84+
"value.field.enum": notApplicable,
85+
"value.iteration.enum": notApplicable,
86+
"type.enum": notApplicable,
87+
"interior.enum": notApplicable,
88+
7989
// Command
8090
command: notApplicable,
8191
"name.command": notApplicable,
@@ -225,7 +235,6 @@ export const cssScopeSupport: LanguageScopeSupportFacetMap = {
225235
"type.argument.formal.method": notApplicable,
226236
"type.argument.formal": notApplicable,
227237
"type.cast": notApplicable,
228-
"type.enum": notApplicable,
229238
"type.foreach": notApplicable,
230239
"type.resource": notApplicable,
231240
"type.resource.iteration": notApplicable,

packages/common/src/scopeSupportFacets/html.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,16 @@ export const htmlScopeSupport: LanguageScopeSupportFacetMap = {
5454
"type.field.interface": notApplicable,
5555
"type.iteration.interface": notApplicable,
5656

57+
// Enum
58+
"statement.enum": notApplicable,
59+
"name.enum": notApplicable,
60+
"name.field.enum": notApplicable,
61+
"name.iteration.enum": notApplicable,
62+
"value.field.enum": notApplicable,
63+
"value.iteration.enum": notApplicable,
64+
"type.enum": notApplicable,
65+
"interior.enum": notApplicable,
66+
5767
// Command
5868
command: notApplicable,
5969
"name.command": notApplicable,
@@ -195,7 +205,6 @@ export const htmlScopeSupport: LanguageScopeSupportFacetMap = {
195205
"type.argument.formal.method": notApplicable,
196206
"type.argument.formal": notApplicable,
197207
"type.cast": notApplicable,
198-
"type.enum": notApplicable,
199208
"type.foreach": notApplicable,
200209
"type.resource": notApplicable,
201210
"type.resource.iteration": notApplicable,

packages/common/src/scopeSupportFacets/javascript.ts

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -270,26 +270,35 @@ export const javascriptScopeSupport: LanguageScopeSupportFacetMap = {
270270
"type.cast": notApplicable,
271271
"type.class": notApplicable,
272272
"type.field.class": notApplicable,
273-
"type.field.interface": notApplicable,
274273
"type.foreach": notApplicable,
275-
"type.interface": notApplicable,
276-
"type.enum": notApplicable,
277274
"type.return": notApplicable,
278275
"type.variable": notApplicable,
279276
"type.typeArgument": notApplicable,
280277
"type.typeArgument.iteration": notApplicable,
281278
"type.iteration.block": notApplicable,
282279
"type.iteration.class": notApplicable,
283-
"type.iteration.interface": notApplicable,
284280
"type.iteration.document": notApplicable,
285281
"value.typeAlias": notApplicable,
286282

287283
// Interface
288284
"statement.interface": notApplicable,
289285
"statement.field.interface": notApplicable,
290286
"statement.iteration.interface": notApplicable,
291-
"interior.interface": notApplicable,
292287
"name.interface": notApplicable,
293288
"name.field.interface": notApplicable,
294289
"name.iteration.interface": notApplicable,
290+
"type.interface": notApplicable,
291+
"type.field.interface": notApplicable,
292+
"type.iteration.interface": notApplicable,
293+
"interior.interface": notApplicable,
294+
295+
// Enum
296+
"statement.enum": notApplicable,
297+
"name.enum": notApplicable,
298+
"name.field.enum": notApplicable,
299+
"name.iteration.enum": notApplicable,
300+
"value.field.enum": notApplicable,
301+
"value.iteration.enum": notApplicable,
302+
"type.enum": notApplicable,
303+
"interior.enum": notApplicable,
295304
};

0 commit comments

Comments
 (0)