Repository navigation
Expand file tree
/
Copy pathscopeSupportFacetInfos.ts
More file actions
1337 lines (1301 loc) · 39.5 KB
/
Copy pathscopeSupportFacetInfos.ts
File metadata and controls
1337 lines (1301 loc) · 39.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import type { SimpleScopeTypeType } from "../types/command/PartialTargetDescriptor.types";
import type {
ScopeSupportFacet,
ScopeSupportFacetInfo,
} from "./scopeSupportFacets.types";
export const scopeSupportFacetInfos: Record<
ScopeSupportFacet,
ScopeSupportFacetInfo
> = {
command: {
description: "A command, for example Talon spoken command or bash",
scopeType: "command",
},
element: {
description: "An XML/HTML element. Also used for LaTeX environments",
scopeType: "xmlElement",
},
startTag: {
description: "The start tag of an XML/HTML element",
scopeType: "xmlStartTag",
},
endTag: {
description: "The end tag of an XML/HTML element",
scopeType: "xmlEndTag",
},
tags: {
description: "Both tags in an XML/HTML element",
scopeType: "xmlBothTags",
},
attribute: {
description: "An attribute, eg of an HTML element or a C++ attribute",
scopeType: "attribute",
},
environment: {
description: "An environment, eg in LaTeX",
scopeType: "environment",
},
chapter: {
description: "A document chapter",
scopeType: "chapter",
},
section: {
description: "A document section",
scopeType: "section",
},
"section.iteration.document": documentIter("section", "sections"),
"section.iteration.parent": iteration(
"section",
"sections",
"the parent section",
),
subSection: {
description: "A document subsection",
scopeType: "subSection",
},
subSubSection: {
description: "A document subsubsection",
scopeType: "subSubSection",
},
sectionLevelOne: {
description: "A level one section",
scopeType: "sectionLevelOne",
},
sectionLevelTwo: {
description: "A level two section",
scopeType: "sectionLevelTwo",
},
sectionLevelThree: {
description: "A level three section",
scopeType: "sectionLevelThree",
},
sectionLevelFour: {
description: "A level four section",
scopeType: "sectionLevelFour",
},
sectionLevelFive: {
description: "A level five section",
scopeType: "sectionLevelFive",
},
sectionLevelSix: {
description: "A level six section",
scopeType: "sectionLevelSix",
},
namedParagraph: {
description: "A named paragraph",
scopeType: "namedParagraph",
},
subParagraph: {
description: "A subparagraph",
scopeType: "subParagraph",
},
part: {
description: "A document part",
scopeType: "part",
},
list: {
description: "A list/array",
scopeType: "list",
},
map: {
description: "A map/dictionary",
scopeType: "map",
},
regularExpression: {
description: "A regular expression",
scopeType: "regularExpression",
},
fieldAccess: {
description: "A field access",
scopeType: "private.fieldAccess",
},
ifStatement: {
description: "An if statement",
scopeType: "ifStatement",
},
"statement.class": {
description: "A class/struct declaration",
scopeType: "statement",
},
"statement.interface": {
description: "An interface declaration",
scopeType: "statement",
},
"statement.enum": {
description: "An enum declaration",
scopeType: "statement",
},
"statement.field.class": {
description: "A field declaration in a class/struct",
scopeType: "statement",
},
"statement.field.interface": {
description: "A field declaration in an interface",
scopeType: "statement",
},
"statement.function": {
description: "A named function declaration",
scopeType: "statement",
},
"statement.constructor": {
description: "A constructor declaration",
scopeType: "statement",
},
"statement.method": {
description: "A method declaration",
scopeType: "statement",
},
"statement.method.interface": {
description: "A method declaration in an interface",
scopeType: "statement",
},
"statement.functionCall": {
description: "A function call statement",
scopeType: "statement",
},
"statement.if": {
description: "An if/elif/else statement",
scopeType: "statement",
},
"statement.try": {
description: "A try/catch/finally statement",
scopeType: "statement",
},
"statement.switch": {
description: "A switch statement",
scopeType: "statement",
},
"statement.for": {
description: "A for loop",
scopeType: "statement",
},
"statement.foreach": {
description: "A for-each loop",
scopeType: "statement",
},
"statement.while": {
description: "A while loop",
scopeType: "statement",
},
"statement.doWhile": {
description: "A do-while loop",
scopeType: "statement",
},
"statement.variable.uninitialized": {
description: "An uninitialized variable declaration",
scopeType: "statement",
},
"statement.variable.initialized": {
description: "An initialized variable declaration",
scopeType: "statement",
},
"statement.variable.destructuring": {
description:
"A variable declaration using a destructuring pattern, eg `const { x, y } = point`",
scopeType: "statement",
},
"statement.constant": {
description: "A constant declaration",
scopeType: "statement",
},
"statement.assignment": {
description: "An assignment statement",
scopeType: "statement",
},
"statement.assignment.destructuring": {
description: "An assignment statement using a destructuring pattern",
scopeType: "statement",
},
"statement.assignment.compound": {
description: "A compound assignment statement, eg +=/-=",
scopeType: "statement",
},
"statement.typeAlias": {
description: "A type alias declaration",
scopeType: "statement",
},
"statement.update": {
description: "An update statement, eg ++/--",
scopeType: "statement",
},
"statement.return": {
description: "A return statement",
scopeType: "statement",
},
"statement.yield": {
description: "A yield statement",
scopeType: "statement",
},
"statement.throw": {
description: "A throw statement",
scopeType: "statement",
},
"statement.break": {
description: "A break statement",
scopeType: "statement",
},
"statement.continue": {
description: "A continue statement",
scopeType: "statement",
},
"statement.resource": {
description: "A resource management statement, eg `with` / `use` / `using`",
scopeType: "statement",
},
"statement.command": {
description: "A command statement, eg Talon spoken command or bash",
scopeType: "statement",
},
"statement.package": {
description: "A package declaration",
scopeType: "statement",
},
"statement.namespace": {
description: "A namespace declaration",
scopeType: "statement",
},
"statement.static": {
description:
"A static initialization block in a class, eg `static { ... }`",
scopeType: "statement",
},
"statement.import": {
description: "An import statement",
scopeType: "statement",
},
"statement.misc": {
description: "A miscellaneous statement",
scopeType: "statement",
},
"statement.iteration.document": documentIter("statement", "statements"),
"statement.iteration.class": classIter("statement", "statements"),
"statement.iteration.interface": interfaceIter("statement", "statements"),
"statement.iteration.block": blockIter("statement", "statements"),
class: {
description: "A class/struct declaration",
scopeType: "class",
},
"class.iteration.document": documentIter("class", "classes"),
"class.iteration.class": classIter("class", "classes"),
namedFunction: {
description: "A named function declaration",
scopeType: "namedFunction",
},
"namedFunction.method": {
description: "A method declaration",
scopeType: "namedFunction",
},
"namedFunction.constructor": {
description: "A constructor declaration",
scopeType: "namedFunction",
},
"namedFunction.iteration.document": documentIter(
"namedFunction",
"named functions",
),
"namedFunction.iteration.class": classIter(
"namedFunction",
"named functions",
),
anonymousFunction: {
description:
"An anonymous function, eg a lambda function, an arrow function, etc.",
scopeType: "anonymousFunction",
},
functionCall: {
description: "A function call",
scopeType: "functionCall",
},
"functionCall.constructor": {
description: "A constructor call",
scopeType: "functionCall",
},
"functionCall.method": {
description: "A method call",
scopeType: "functionCall",
},
"functionCall.chain": {
description: "A chain of function calls, eg `foo().bar()`",
scopeType: "functionCall",
},
"functionCall.generic": {
description: "A function call with generic type arguments",
scopeType: "functionCall",
},
"functionCall.enumConstant": {
description: "An enum constant or variant declaration with parentheses",
scopeType: "functionCall",
},
functionCallee: {
description: "The function being called in a function call",
scopeType: "functionCallee",
},
"functionCallee.constructor": {
description:
"The class being constructed in a class instantiation, including the `new` keyword.",
scopeType: "functionCallee",
},
"functionCallee.method": {
description:
"The function being called in a method call, including parent objects.",
scopeType: "functionCallee",
},
"functionCallee.chain": {
description:
"The function being called in a chain of function calls, including parent objects.",
scopeType: "functionCallee",
},
"functionCallee.generic": {
description:
"The function being called in a function call with generic type arguments",
scopeType: "functionCallee",
},
"functionCallee.enumConstant": {
description:
"The name of an enum constant or variant declared with parentheses",
scopeType: "functionCallee",
},
"argument.actual.singleLine": {
description: "A single-line argument in a function call",
scopeType: "argumentOrParameter",
},
"argument.actual.multiLine": {
description:
"A multi-line argument in a function call. Insertion delimiter should include a newline.",
scopeType: "argumentOrParameter",
},
"argument.actual.iteration": iteration(
"argumentOrParameter",
"arguments in a function call",
"the argument list. The domain should be the entire function call",
),
"argument.actual.method.singleLine": {
description: "A single-line argument in a method call",
scopeType: "argumentOrParameter",
},
"argument.actual.method.multiLine": {
description:
"A multi-line argument in a method call. Insertion delimiter should include a newline.",
scopeType: "argumentOrParameter",
},
"argument.actual.method.iteration": iteration(
"argumentOrParameter",
"arguments in a method call",
"the argument list. The domain should be the entire method call",
),
"argument.actual.constructor.singleLine": {
description: "A single-line argument in a constructor call",
scopeType: "argumentOrParameter",
},
"argument.actual.constructor.multiLine": {
description:
"A multi-line argument in a constructor call. Insertion delimiter should include a newline.",
scopeType: "argumentOrParameter",
},
"argument.actual.constructor.iteration": iteration(
"argumentOrParameter",
"arguments in a constructor call",
"the argument list. The domain should be the entire constructor call.",
),
"argument.actual.enumConstant.singleLine": {
description:
"A single-line argument in a parenthesized enum constant or variant declaration",
scopeType: "argumentOrParameter",
},
"argument.actual.enumConstant.multiLine": {
description:
"A multi-line argument in a parenthesized enum constant or variant declaration. Insertion delimiter should include a newline.",
scopeType: "argumentOrParameter",
},
"argument.actual.enumConstant.iteration": iteration(
"argumentOrParameter",
"arguments in a parenthesized enum constant or variant declaration",
"the parenthesized list. The domain should be the entire enum constant or variant declaration.",
),
"argument.formal.singleLine": {
description: "A single-line parameter in a function declaration",
scopeType: "argumentOrParameter",
},
"argument.formal.multiLine": {
description:
"A multi-line parameter in a function declaration. Insertion delimiter should include a newline.",
scopeType: "argumentOrParameter",
},
"argument.formal.iteration": iteration(
"argumentOrParameter",
"parameters in a function declaration",
"the parameter list. The domain should be the entire function",
),
"argument.formal.method.singleLine": {
description: "A single-line parameter in a method declaration",
scopeType: "argumentOrParameter",
},
"argument.formal.method.multiLine": {
description:
"A multi-line parameter in a method declaration. Insertion delimiter should include a newline.",
scopeType: "argumentOrParameter",
},
"argument.formal.method.iteration": iteration(
"argumentOrParameter",
"parameters in a method declaration",
"the parameter list. The domain should be the entire method",
),
"argument.formal.constructor.singleLine": {
description: "A single-line parameter in a constructor declaration",
scopeType: "argumentOrParameter",
},
"argument.formal.constructor.multiLine": {
description:
"A multi-line parameter in a constructor declaration. Insertion delimiter should include a newline.",
scopeType: "argumentOrParameter",
},
"argument.formal.constructor.iteration": iteration(
"argumentOrParameter",
"parameters in a constructor declaration",
"the parameter list. The domain should be the entire constructor",
),
"argument.formal.lambda.singleLine": {
description: "A single-line parameter in an anonymous function",
scopeType: "argumentOrParameter",
},
"argument.formal.lambda.multiLine": {
description:
"A multi-line parameter in an anonymous function. Insertion delimiter should include a newline.",
scopeType: "argumentOrParameter",
},
"argument.formal.lambda.iteration": iteration(
"argumentOrParameter",
"parameters in an anonymous function",
"the parameter list. The domain should be the entire anonymous function",
),
"argument.formal.catch": {
description: "A parameter in a catch clause",
scopeType: "argumentOrParameter",
},
"argumentList.actual.empty": {
description:
"An empty list of arguments in a function call. Insertion delimiter should be empty.",
scopeType: "argumentList",
},
"argumentList.actual.singleLine": {
description: "A single-line list of arguments in a function call",
scopeType: "argumentList",
},
"argumentList.actual.multiLine": {
description:
"A multi-line list of arguments in a function call. Insertion delimiter should include a newline.",
scopeType: "argumentList",
},
"argumentList.actual.method.empty": {
description:
"An empty list of arguments in a method call. Insertion delimiter should be empty.",
scopeType: "argumentList",
},
"argumentList.actual.method.singleLine": {
description: "A single-line list of arguments in a method call",
scopeType: "argumentList",
},
"argumentList.actual.method.multiLine": {
description:
"A multi-line list of arguments in a method call. Insertion delimiter should include a newline.",
scopeType: "argumentList",
},
"argumentList.actual.constructor.empty": {
description:
"An empty list of arguments in a constructor call. Insertion delimiter should be empty.",
scopeType: "argumentList",
},
"argumentList.actual.constructor.singleLine": {
description: "A single-line list of arguments in a constructor call",
scopeType: "argumentList",
},
"argumentList.actual.constructor.multiLine": {
description:
"A multi-line list of arguments in a constructor call. Insertion delimiter should include a newline.",
scopeType: "argumentList",
},
"argumentList.actual.enumConstant.empty": {
description:
"An empty parenthesized list in an enum constant or variant declaration. Insertion delimiter should be empty.",
scopeType: "argumentList",
},
"argumentList.actual.enumConstant.singleLine": {
description:
"A single-line parenthesized list in an enum constant or variant declaration",
scopeType: "argumentList",
},
"argumentList.actual.enumConstant.multiLine": {
description:
"A multi-line parenthesized list in an enum constant or variant declaration. Insertion delimiter should include a newline.",
scopeType: "argumentList",
},
"argumentList.formal.empty": {
description:
"An empty list of parameters in a function declaration. Insertion delimiter should be empty.",
scopeType: "argumentList",
},
"argumentList.formal.singleLine": {
description: "A single-line list of parameters in a function declaration",
scopeType: "argumentList",
},
"argumentList.formal.multiLine": {
description:
"A multi-line list of parameters in a function declaration. Insertion delimiter should include a newline.",
scopeType: "argumentList",
},
"argumentList.formal.lambda.empty": {
description:
"An empty list of parameters in an anonymous function. Insertion delimiter should be empty.",
scopeType: "argumentList",
},
"argumentList.formal.lambda.singleLine": {
description: "A single-line list of parameters in an anonymous function",
scopeType: "argumentList",
},
"argumentList.formal.lambda.multiLine": {
description:
"A multi-line list of parameters in an anonymous function. Insertion delimiter should include a newline.",
scopeType: "argumentList",
},
"argumentList.formal.method.empty": {
description:
"An empty list of parameters in a method declaration. Insertion delimiter should be empty.",
scopeType: "argumentList",
},
"argumentList.formal.method.singleLine": {
description: "A single-line list of parameters in a method declaration",
scopeType: "argumentList",
},
"argumentList.formal.method.multiLine": {
description:
"A multi-line list of parameters in a method declaration. Insertion delimiter should include a newline.",
scopeType: "argumentList",
},
"argumentList.formal.constructor.empty": {
description:
"An empty list of parameters in a constructor declaration. Insertion delimiter should be empty.",
scopeType: "argumentList",
},
"argumentList.formal.constructor.singleLine": {
description:
"A single-line list of parameters in a constructor declaration",
scopeType: "argumentList",
},
"argumentList.formal.constructor.multiLine": {
description:
"A multi-line list of parameters in a constructor declaration. Insertion delimiter should include a newline.",
scopeType: "argumentList",
},
"comment.line": {
description: "A line comment",
scopeType: "comment",
},
"comment.block": {
description: "A block comment",
scopeType: "comment",
},
"string.singleLine": {
description: "A single-line string",
scopeType: "string",
},
"string.multiLine": {
description: "A multi-line string",
scopeType: "string",
},
"branch.if": {
description: "An if branch",
scopeType: "branch",
},
"branch.if.elif.else": {
description:
"An if-elif-else branch. The removal range for the if branch should include the trailing `else` keyword.",
scopeType: "branch",
},
"branch.if.else": {
description: "An if-else branch",
scopeType: "branch",
},
"branch.if.iteration": iteration(
"branch",
"if/elif/else branches",
"the if/elif/else statement",
),
"branch.loop": {
description:
"A for / while loop branch. For most languages this is not supported, but eg in Python you can have an else branch for a loop.",
scopeType: "branch",
},
"branch.loop.iteration": iteration(
"branch",
"loop branches",
"the loop statement",
),
"branch.try": {
description: "A try/catch/finally branch",
scopeType: "branch",
},
"branch.try.iteration": iteration(
"branch",
"try/catch/finally branches",
"the try/catch/finally statement",
),
"branch.switchCase": {
description: "A case/default branch in a switch statement",
scopeType: "branch",
},
"branch.switchCase.iteration": iteration(
"branch",
"case/default branches in a switch statement",
"the switch statement body",
),
"branch.ternary": {
description: "A branch in a ternary expression",
scopeType: "branch",
},
"branch.ternary.iteration": iteration(
"branch",
"ternary expression branches",
"the ternary expression",
),
"collectionItem.unenclosed.singleLine": {
description:
"An item in a comma-separated single-line list without enclosing delimiters. This could be multi-variable declarations, import statements, etc.",
scopeType: "collectionItem",
},
"collectionItem.unenclosed.multiLine": {
description:
"An item in a comma-separated multi-line list without enclosing delimiters. This could be multi-variable declarations, import statements, etc. Insertion delimiter should include a newline.",
scopeType: "collectionItem",
},
"collectionItem.unenclosed.iteration": iteration(
"collectionItem",
"items in a comma-separated list without enclosing delimiters",
),
"condition.if": {
description: "A condition in an if statement",
scopeType: "condition",
},
"condition.while": {
description: "A condition in a while loop",
scopeType: "condition",
},
"condition.doWhile": {
description: "A condition in a do-while loop",
scopeType: "condition",
},
"condition.for": {
description: "A condition in a for loop",
scopeType: "condition",
},
"condition.ternary": {
description: "A condition in a ternary expression",
scopeType: "condition",
},
"condition.switchCase": {
description: "A condition in a switch statement",
scopeType: "condition",
},
"condition.switchCase.iteration": iteration(
"condition",
"conditions in a switch statement",
"the switch statement body",
),
"name.command": {
description: "Name (LHS) of a command, eg Talon spoken command or bash",
scopeType: "name",
},
"name.variable.uninitialized": {
description: "Name (LHS) of an uninitialized variable declaration",
scopeType: "name",
},
"name.variable.initialized": {
description: "Name (LHS) of an initialized variable declaration",
scopeType: "name",
},
"name.variable.destructuring": {
description:
"Name (LHS) of a variable declaration using a destructuring pattern",
scopeType: "name",
},
"name.constant": {
description: "Name (LHS) of a constant declaration",
scopeType: "name",
},
"name.assignment": {
description: "Name (LHS) of an assignment statement",
scopeType: "name",
},
"name.assignment.destructuring": {
description:
"Name (LHS) of an assignment statement using a destructuring pattern",
scopeType: "name",
},
"name.assignment.compound": {
description: "Name (LHS) of a compound assignment statement, eg +=/-=",
scopeType: "name",
},
"name.foreach": {
description: "Iteration variable name in a for-each loop",
scopeType: "name",
},
"name.function": {
description: "Name of a function declaration",
scopeType: "name",
},
"name.method": {
description: "Name of a method declaration",
scopeType: "name",
},
"name.method.interface": {
description: "Name of a method declaration in an interface",
scopeType: "name",
},
"name.constructor": {
description: "Name of a constructor declaration",
scopeType: "name",
},
"name.class": {
description: "Name of a class/struct declaration",
scopeType: "name",
},
"name.interface": {
description: "Name of an interface declaration",
scopeType: "name",
},
"name.enum": {
description: "Name of an enum declaration",
scopeType: "name",
},
"name.typeAlias": {
description: "Name (LHS) of a type alias declaration",
scopeType: "name",
},
"name.namespace": {
description: "Name of a namespace declaration",
scopeType: "name",
},
"name.field.class": {
description: "Name (LHS) of a field declaration in a class/struct",
scopeType: "name",
},
"name.field.interface": {
description: "Name (LHS) of a field declaration in an interface",
scopeType: "name",
},
"name.field.enum": {
description: "Name (LHS) of a field declaration in an enum",
scopeType: "name",
},
"name.iteration.block": blockIter("name", "names"),
"name.iteration.class": classIter("name", "names"),
"name.iteration.interface": interfaceIter("name", "names"),
"name.iteration.enum": enumIter("name", "names"),
"name.iteration.document": documentIter("name", "names"),
"name.resource": {
description:
"Name in a resource management statement, eg `with` / `use` / `using`",
scopeType: "name",
},
"name.argument.actual": {
description: "Name of a (keyword) argument in a function call",
scopeType: "name",
},
"name.argument.actual.iteration": iteration(
"name",
"names of (keyword) arguments in a function call",
"the argument list",
),
"name.argument.formal": {
description: "Name of a parameter in a function declaration",
scopeType: "name",
},
"name.argument.formal.iteration": iteration(
"name",
"names of parameters in a function declaration",
"the parameter list",
),
"name.argument.formal.method": {
description: "Name of a parameter in a method declaration",
scopeType: "name",
},
"name.argument.formal.method.iteration": iteration(
"name",
"names of parameters in a method declaration",
"the parameter list",
),
"name.argument.formal.lambda": {
description: "Name of a parameter in an anonymous function",
scopeType: "name",
},
"name.argument.formal.lambda.iteration": iteration(
"name",
"names of parameters in an anonymous function",
"the parameter list",
),
"name.argument.formal.constructor": {
description: "Name of a parameter in a constructor declaration",
scopeType: "name",
},
"name.argument.formal.constructor.iteration": iteration(
"name",
"names of parameters in a constructor declaration",
"the parameter list",
),
"name.argument.catch": {
description: "Name of a parameter in a catch clause",
scopeType: "name",
},
"key.attribute": {
description: "Key (LHS) of an attribute, eg in an XML/HTML element",
scopeType: "collectionKey",
},
"key.mapPair": {
description: "Key (LHS) of a key-value pair in a map",
scopeType: "collectionKey",
},
"key.mapPair.iteration": iteration(
"collectionKey",
"keys of key-value pairs in a map",
"should be between the braces",
),
"value.command": {
description: "Value (RHS) of a command, eg Talon spoken command",
scopeType: "value",
},
"value.variable": {
description: "Value (RHS) of a variable declaration",
scopeType: "value",
},
"value.variable.destructuring": {
description:
"Value (RHS) of a variable declaration using a destructuring pattern",
scopeType: "value",
},
"value.constant": {
description: "Value (RHS) of a constant declaration",
scopeType: "value",
},
"value.assignment": {
description: "Value (RHS) of an assignment statement",
scopeType: "value",
},
"value.assignment.destructuring": {
description:
"Value (RHS) of an assignment statement using a destructuring pattern",
scopeType: "value",
},
"value.assignment.compound": {
description: "Value (RHS) of a compound assignment statement, eg +=/-=",
scopeType: "value",
},
"value.mapPair": {
description: "Value (RHS) of a key-value pair in a map",
scopeType: "value",
},
"value.mapPair.iteration": iteration(
"value",
"values of key-value pairs in a map",
"should be between the braces",
),
"value.foreach": {
description: "Iterable in a for-each loop",
scopeType: "value",
},
"value.attribute": {
description: "Value (RHS) of an attribute, eg in an XML/HTML element",
scopeType: "value",
},
"value.return": {
description: "Return value of a function",
scopeType: "value",
},
"value.return.lambda": {
description: "Implicit return value of an anonymous function",
scopeType: "value",
},
"value.field.class": {
description: "Value (RHS) of a field declaration in a class/struct",
scopeType: "value",
},
"value.field.interface": {
description: "Value (RHS) of a field declaration in an interface",
scopeType: "value",
},
"value.field.enum": {
description: "Value (RHS) of a field declaration in an enum",
scopeType: "value",
},
"value.yield": {
description: "Value of a yield statement",
scopeType: "value",
},
"value.throw": {
description: "Value of a throw statement",
scopeType: "value",
},
"value.switch": {
description: "Value / subject of a switch statement",
scopeType: "value",
},
"value.iteration.block": blockIter("value", "values"),
"value.iteration.class": classIter("value", "values"),
"value.iteration.enum": enumIter("value", "values"),
"value.iteration.document": documentIter("value", "values"),
"value.resource": {
description:
"Value of a resource management statement, eg `with` / `use` / `using`",
scopeType: "value",
},
"value.argument.actual": {
description: "Value of a (keyword) argument in a function call",
scopeType: "value",
},
"value.argument.actual.iteration": iteration(
"value",
"values of (keyword) arguments in a function call",
"the argument list",
),
"value.argument.formal": {
description: "Default value of a parameter in a function declaration",
scopeType: "value",
},
"value.argument.formal.iteration": iteration(
"value",
"default values of parameters in a function declaration",
"the parameter list",
),
"value.argument.formal.method": {
description: "Default value of a parameter in a method declaration",
scopeType: "value",
},
"value.argument.formal.method.iteration": iteration(
"value",
"default values of parameters in a method declaration",
"the parameter list",
),
"value.argument.formal.constructor": {
description: "Default value of a parameter in a constructor declaration",