@@ -7,21 +7,25 @@ const { supported, unsupported, notApplicable } = ScopeSupportFacetLevel;
7
7
export const javascriptCoreScopeSupport : LanguageScopeSupportFacetMap = {
8
8
list : supported ,
9
9
map : supported ,
10
- ifStatement : supported ,
11
10
regularExpression : supported ,
12
11
switchStatementSubject : supported ,
13
12
fieldAccess : supported ,
14
13
disqualifyDelimiter : supported ,
15
14
pairDelimiter : supported ,
16
15
16
+ "collectionItem.unenclosed" : supported ,
17
+
17
18
"textFragment.string.singleLine" : supported ,
18
19
"textFragment.string.multiLine" : supported ,
19
20
"textFragment.comment.line" : supported ,
20
21
"textFragment.comment.block" : supported ,
21
22
23
+ ifStatement : supported ,
24
+
22
25
statement : supported ,
23
26
"statement.iteration.document" : supported ,
24
27
"statement.iteration.block" : supported ,
28
+ "statement.class" : supported ,
25
29
26
30
class : supported ,
27
31
className : supported ,
@@ -67,6 +71,7 @@ export const javascriptCoreScopeSupport: LanguageScopeSupportFacetMap = {
67
71
"branch.if" : supported ,
68
72
"branch.if.iteration" : supported ,
69
73
"branch.try" : supported ,
74
+ "branch.try.iteration" : supported ,
70
75
"branch.switchCase" : supported ,
71
76
"branch.switchCase.iteration" : supported ,
72
77
"branch.ternary" : supported ,
@@ -77,6 +82,7 @@ export const javascriptCoreScopeSupport: LanguageScopeSupportFacetMap = {
77
82
"condition.for" : supported ,
78
83
"condition.ternary" : supported ,
79
84
"condition.switchCase" : supported ,
85
+ "condition.switchCase.iteration" : supported ,
80
86
81
87
"name.argument.formal" : supported ,
82
88
"name.argument.formal.iteration" : supported ,
@@ -94,6 +100,7 @@ export const javascriptCoreScopeSupport: LanguageScopeSupportFacetMap = {
94
100
"name.constructor" : supported ,
95
101
"name.class" : supported ,
96
102
"name.field" : supported ,
103
+ "name.iteration.document" : supported ,
97
104
98
105
"key.mapPair" : supported ,
99
106
"key.mapPair.iteration" : supported ,
@@ -113,8 +120,52 @@ export const javascriptCoreScopeSupport: LanguageScopeSupportFacetMap = {
113
120
"value.return" : supported ,
114
121
"value.return.lambda" : supported ,
115
122
"value.field" : supported ,
116
-
117
- "collectionItem.unenclosed" : supported ,
123
+ "value.yield" : supported ,
124
+
125
+ // Unsupported
126
+
127
+ "collectionItem.unenclosed.iteration" : unsupported ,
128
+ "branch.loop" : unsupported ,
129
+ "namedFunction.iteration.block" : unsupported ,
130
+ "functionName.iteration.block" : unsupported ,
131
+
132
+ "class.iteration.block" : unsupported ,
133
+ "class.iteration.document" : unsupported ,
134
+ "className.iteration.block" : unsupported ,
135
+ "className.iteration.document" : unsupported ,
136
+
137
+ "name.iteration.block" : unsupported ,
138
+ "name.resource" : unsupported ,
139
+ "name.resource.iteration" : unsupported ,
140
+
141
+ "value.resource" : unsupported ,
142
+ "value.resource.iteration" : unsupported ,
143
+
144
+ "interior.class" : unsupported ,
145
+ "interior.function" : unsupported ,
146
+ "interior.if" : unsupported ,
147
+ "interior.lambda" : unsupported ,
148
+ "interior.loop" : unsupported ,
149
+ "interior.switchCase" : unsupported ,
150
+ "interior.ternary" : unsupported ,
151
+ "interior.try" : unsupported ,
152
+ "interior.resource" : unsupported ,
153
+
154
+ // Not applicable
155
+
156
+ "interior.cell" : notApplicable ,
157
+ "interior.command" : notApplicable ,
158
+ "name.argument.actual.iteration" : notApplicable ,
159
+ "name.argument.actual" : notApplicable ,
160
+ "value.argument.actual" : notApplicable ,
161
+ "value.argument.actual.iteration" : notApplicable ,
162
+ "section.iteration.document" : notApplicable ,
163
+ "section.iteration.parent" : notApplicable ,
164
+ "textFragment.element" : notApplicable ,
165
+ command : notApplicable ,
166
+ environment : notApplicable ,
167
+ notebookCell : notApplicable ,
168
+ section : notApplicable ,
118
169
} ;
119
170
120
171
export const javascriptJsxScopeSupport : LanguageScopeSupportFacetMap = {
@@ -132,16 +183,25 @@ export const javascriptScopeSupport: LanguageScopeSupportFacetMap = {
132
183
...javascriptCoreScopeSupport ,
133
184
...javascriptJsxScopeSupport ,
134
185
135
- "type.variable" : notApplicable ,
136
- "type.argument.formal" : notApplicable ,
186
+ // Types are defined here because we don't want typescript to import them and
187
+ // accidentally forget to add support for them.
188
+ "value.typeAlias" : notApplicable ,
189
+ "type.alias" : notApplicable ,
190
+ "type.argument.formal.constructor.iteration" : notApplicable ,
191
+ "type.argument.formal.constructor" : notApplicable ,
137
192
"type.argument.formal.iteration" : notApplicable ,
138
- "type.argument.formal.method" : notApplicable ,
139
193
"type.argument.formal.method.iteration" : notApplicable ,
140
- "type.argument.formal.constructor" : notApplicable ,
141
- "type.argument.formal.constructor.iteration" : notApplicable ,
142
- "type.return" : notApplicable ,
194
+ "type.argument.formal.method" : notApplicable ,
195
+ "type.argument.formal" : notApplicable ,
196
+ "type.cast" : notApplicable ,
197
+ "type.class" : notApplicable ,
198
+ "type.enum" : notApplicable ,
199
+ "type.field.iteration" : notApplicable ,
143
200
"type.field" : notApplicable ,
144
201
"type.foreach" : notApplicable ,
145
202
"type.interface" : notApplicable ,
146
- command : notApplicable ,
203
+ "type.return" : notApplicable ,
204
+ "type.typeArgument.iteration" : notApplicable ,
205
+ "type.typeArgument" : notApplicable ,
206
+ "type.variable" : notApplicable ,
147
207
} ;
0 commit comments