Skip to content

Commit a7d62ad

Browse files
name.namespace
1 parent bce8067 commit a7d62ad

File tree

21 files changed

+165
-87
lines changed

21 files changed

+165
-87
lines changed
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
namespace NS { }
1+
namespace Foo { }
22
---
33

44
[#1 Content] =
5-
[#1 Removal] = 0:14-0:15
6-
>-<
7-
0| namespace NS { }
5+
[#1 Removal] = 0:15-0:16
6+
>-<
7+
0| namespace Foo { }
88

9-
[#1 Domain] = 0:0-0:16
10-
>----------------<
11-
0| namespace NS { }
9+
[#1 Domain] = 0:0-0:17
10+
>-----------------<
11+
0| namespace Foo { }
1212

1313
[#1 Insertion delimiter] = " "
1414

1515

1616
[#2 Content] =
17-
[#2 Removal] = 0:14-0:15
18-
>-<
19-
0| namespace NS { }
17+
[#2 Removal] = 0:15-0:16
18+
>-<
19+
0| namespace Foo { }
2020

21-
[#2 Domain] = 0:13-0:16
22-
>---<
23-
0| namespace NS { }
21+
[#2 Domain] = 0:14-0:17
22+
>---<
23+
0| namespace Foo { }
2424

2525
[#2 Insertion delimiter] = " "
Lines changed: 12 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,24 @@
1-
class aaa {};
2-
enum class ccc {};
1+
class Foo {};
32
---
43

5-
[#1 Content] = 0:6-0:9
4+
[Content] = 0:6-0:9
65
>---<
7-
0| class aaa {};
6+
0| class Foo {};
87

9-
[#1 Removal] = 0:6-0:10
8+
[Removal] = 0:6-0:10
109
>----<
11-
0| class aaa {};
10+
0| class Foo {};
1211

13-
[#1 Leading delimiter] = 0:5-0:6
12+
[Leading delimiter] = 0:5-0:6
1413
>-<
15-
0| class aaa {};
14+
0| class Foo {};
1615

17-
[#1 Trailing delimiter] = 0:9-0:10
16+
[Trailing delimiter] = 0:9-0:10
1817
>-<
19-
0| class aaa {};
18+
0| class Foo {};
2019

21-
[#1 Domain] = 0:0-0:13
20+
[Domain] = 0:0-0:13
2221
>-------------<
23-
0| class aaa {};
22+
0| class Foo {};
2423

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

packages/common/src/scopeSupportFacets/c.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,5 +272,6 @@ export const cScopeSupport: LanguageScopeSupportFacetMap = {
272272
"type.typeArgument.iteration": notApplicable,
273273

274274
// Namespace
275+
"name.namespace": notApplicable,
275276
"interior.namespace": notApplicable,
276277
};

packages/common/src/scopeSupportFacets/cpp.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export const cppScopeSupport: LanguageScopeSupportFacetMap = {
5353
"name.constructor": supported,
5454
"name.foreach": supported,
5555
"name.method": supported,
56+
"name.namespace": supported,
5657

5758
"value.argument.formal": supported,
5859
"value.argument.formal.iteration": supported,

packages/common/src/scopeSupportFacets/csharp.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,14 +239,19 @@ export const csharpScopeSupport: LanguageScopeSupportFacetMap = {
239239
"collectionItem.unenclosed.iteration": notApplicable,
240240
"collectionItem.unenclosed": notApplicable,
241241

242+
// Namespace
243+
"name.namespace": notApplicable,
244+
"interior.namespace": notApplicable,
245+
246+
// Branch loop
247+
"branch.loop": notApplicable,
248+
"branch.loop.iteration": notApplicable,
249+
242250
// Miscellaneous
243251
environment: notApplicable,
244252
pairDelimiter: notApplicable,
245253
regularExpression: notApplicable,
246254
selector: notApplicable,
247255
unit: notApplicable,
248-
"interior.namespace": notApplicable,
249256
"interior.static": notApplicable,
250-
"branch.loop": notApplicable,
251-
"branch.loop.iteration": notApplicable,
252257
};

packages/common/src/scopeSupportFacets/css.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ export const cssScopeSupport: LanguageScopeSupportFacetMap = {
146146
"name.assignment.pattern": notApplicable,
147147
"name.assignment": notApplicable,
148148
"name.class": notApplicable,
149+
"name.namespace": notApplicable,
149150
"name.constructor": notApplicable,
150151
"name.field": notApplicable,
151152
"name.foreach": notApplicable,

packages/common/src/scopeSupportFacets/html.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ export const htmlScopeSupport: LanguageScopeSupportFacetMap = {
130130
"name.resource": notApplicable,
131131
"name.variable.pattern": notApplicable,
132132
"name.variable": notApplicable,
133+
"name.namespace": notApplicable,
133134
"namedFunction.constructor": notApplicable,
134135
"namedFunction.iteration.block": notApplicable,
135136
"namedFunction.iteration.document": notApplicable,

packages/common/src/scopeSupportFacets/java.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,16 @@ export const javaScopeSupport: LanguageScopeSupportFacetMap = {
240240
"type.resource.iteration": notApplicable,
241241
"name.resource.iteration": notApplicable,
242242

243-
// Miscellaneous
244-
"value.yield": notApplicable,
243+
// Namespace
244+
"name.namespace": notApplicable,
245245
"interior.namespace": notApplicable,
246+
247+
// Branch loop
246248
"branch.loop": notApplicable,
247249
"branch.loop.iteration": notApplicable,
250+
251+
// Miscellaneous
252+
"value.yield": notApplicable,
248253
pairDelimiter: notApplicable,
249254
regularExpression: notApplicable,
250255
environment: notApplicable,

0 commit comments

Comments
 (0)