Skip to content

Commit aa7f5fb

Browse files
csharp
1 parent add0556 commit aa7f5fb

File tree

5 files changed

+176
-0
lines changed

5 files changed

+176
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
interface IFoo {
2+
int bar;
3+
}
4+
---
5+
6+
[#1 Content] = 0:10-0:14
7+
>----<
8+
0| interface IFoo {
9+
10+
[#1 Removal] = 0:10-0:15
11+
>-----<
12+
0| interface IFoo {
13+
14+
[#1 Leading delimiter] = 0:9-0:10
15+
>-<
16+
0| interface IFoo {
17+
18+
[#1 Trailing delimiter] = 0:14-0:15
19+
>-<
20+
0| interface IFoo {
21+
22+
[#1 Domain] = 0:0-2:1
23+
>----------------
24+
0| interface IFoo {
25+
1| int bar;
26+
2| }
27+
-<
28+
29+
[#1 Insertion delimiter] = " "
30+
31+
32+
[#2 Content] = 1:8-1:11
33+
>---<
34+
1| int bar;
35+
36+
[#2 Removal] = 1:7-1:11
37+
>----<
38+
1| int bar;
39+
40+
[#2 Leading delimiter] = 1:7-1:8
41+
>-<
42+
1| int bar;
43+
44+
[#2 Domain] = 1:4-1:11
45+
>-------<
46+
1| int bar;
47+
48+
[#2 Insertion delimiter] = " "
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
class Foo {
2+
int bar;
3+
int baz = 0;
4+
}
5+
---
6+
7+
[#1 Content] =
8+
[#1 Removal] =
9+
[#1 Domain] = 0:0-3:1
10+
>-----------
11+
0| class Foo {
12+
1| int bar;
13+
2| int baz = 0;
14+
3| }
15+
-<
16+
17+
[#1 Insertion delimiter] = "\n"
18+
19+
20+
[#2 Content] =
21+
[#2 Domain] = 1:4-1:12
22+
>--------<
23+
1| int bar;
24+
25+
[#2 Removal] = 1:0-2:0
26+
>------------
27+
1| int bar;
28+
2| int baz = 0;
29+
<
30+
31+
[#2 Leading delimiter] = 1:0-1:4
32+
>----<
33+
1| int bar;
34+
35+
[#2 Insertion delimiter] = "\n"
36+
37+
38+
[#3 Content] =
39+
[#3 Domain] = 2:4-2:16
40+
>------------<
41+
2| int baz = 0;
42+
43+
[#3 Removal] = 2:0-3:0
44+
>----------------
45+
2| int baz = 0;
46+
3| }
47+
<
48+
49+
[#3 Leading delimiter] = 2:0-2:4
50+
>----<
51+
2| int baz = 0;
52+
53+
[#3 Insertion delimiter] = "\n"
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
interface IFoo {
2+
int bar;
3+
}
4+
---
5+
6+
[#1 Content] =
7+
[#1 Removal] =
8+
[#1 Domain] = 0:0-2:1
9+
>----------------
10+
0| interface IFoo {
11+
1| int bar;
12+
2| }
13+
-<
14+
15+
[#1 Insertion delimiter] = "\n"
16+
17+
18+
[#2 Content] =
19+
[#2 Domain] = 1:4-1:12
20+
>--------<
21+
1| int bar;
22+
23+
[#2 Removal] = 1:0-2:0
24+
>------------
25+
1| int bar;
26+
2| }
27+
<
28+
29+
[#2 Leading delimiter] = 1:0-1:4
30+
>----<
31+
1| int bar;
32+
33+
[#2 Insertion delimiter] = "\n"
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
interface IFoo {
2+
int bar;
3+
}
4+
---
5+
6+
[#1 Content] =
7+
[#1 Removal] =
8+
[#1 Domain] = 0:0-2:1
9+
>----------------
10+
0| interface IFoo {
11+
1| int bar;
12+
2| }
13+
-<
14+
15+
[#1 Insertion delimiter] = " "
16+
17+
18+
[#2 Content] = 1:4-1:7
19+
>---<
20+
1| int bar;
21+
22+
[#2 Removal] = 1:4-1:8
23+
>----<
24+
1| int bar;
25+
26+
[#2 Leading delimiter] = 1:0-1:4
27+
>----<
28+
1| int bar;
29+
30+
[#2 Trailing delimiter] = 1:7-1:8
31+
>-<
32+
1| int bar;
33+
34+
[#2 Domain] = 1:4-1:11
35+
>-------<
36+
1| int bar;
37+
38+
[#2 Insertion delimiter] = " "

packages/common/src/scopeSupportFacets/csharp.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export const csharpScopeSupport: LanguageScopeSupportFacetMap = {
6969
"name.interface": supported,
7070
"name.constructor": supported,
7171
"name.field.class": supported,
72+
"name.field.interface": supported,
7273
"name.foreach": supported,
7374
"name.function": supported,
7475
"name.method": supported,
@@ -108,6 +109,7 @@ export const csharpScopeSupport: LanguageScopeSupportFacetMap = {
108109
"type.interface": supported,
109110
"type.foreach": supported,
110111
"type.field.class": supported,
112+
"type.field.interface": supported,
111113
"type.enum": supported,
112114
"type.return": supported,
113115
"type.variable": supported,
@@ -170,6 +172,8 @@ export const csharpScopeSupport: LanguageScopeSupportFacetMap = {
170172
statement: supported,
171173
"statement.class": supported,
172174
"statement.interface": supported,
175+
"statement.field.class": supported,
176+
"statement.field.interface": supported,
173177
"statement.iteration.block": supported,
174178
"statement.iteration.class": supported,
175179
"statement.iteration.interface": supported,

0 commit comments

Comments
 (0)