@cr_docs_t/dts 0.32.0 → 0.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/misc/fetch/index.d.ts +9 -4
- package/dist/misc/fetch/index.d.ts.map +1 -1
- package/dist/misc/fetch/index.js +10 -1
- package/dist/treesitter/types/AST.d.ts +245 -12
- package/dist/treesitter/types/AST.d.ts.map +1 -1
- package/dist/treesitter/types/AST.js +1491 -856
- package/dist/type-gen.js +37 -37
- package/dist/types/Presence.d.ts +4 -2
- package/dist/types/Presence.d.ts.map +1 -1
- package/dist/types/Presence.js +1 -1
- package/package.json +1 -1
|
@@ -8,6 +8,8 @@ export interface AcronymDefinitionNode {
|
|
|
8
8
|
parentId: NodeId | null;
|
|
9
9
|
type: "acronym_definition";
|
|
10
10
|
text: string;
|
|
11
|
+
startIndex: number;
|
|
12
|
+
endIndex: number;
|
|
11
13
|
command: NodeId;
|
|
12
14
|
long: NodeId;
|
|
13
15
|
name: NodeId;
|
|
@@ -20,6 +22,8 @@ export interface AcronymReferenceNode {
|
|
|
20
22
|
parentId: NodeId | null;
|
|
21
23
|
type: "acronym_reference";
|
|
22
24
|
text: string;
|
|
25
|
+
startIndex: number;
|
|
26
|
+
endIndex: number;
|
|
23
27
|
command: NodeId;
|
|
24
28
|
name: NodeId;
|
|
25
29
|
options?: NodeId;
|
|
@@ -30,6 +34,8 @@ export interface AsyEnvironmentNode {
|
|
|
30
34
|
parentId: NodeId | null;
|
|
31
35
|
type: "asy_environment";
|
|
32
36
|
text: string;
|
|
37
|
+
startIndex: number;
|
|
38
|
+
endIndex: number;
|
|
33
39
|
begin: NodeId;
|
|
34
40
|
code: NodeId;
|
|
35
41
|
end: NodeId;
|
|
@@ -40,6 +46,8 @@ export interface AsydefEnvironmentNode {
|
|
|
40
46
|
parentId: NodeId | null;
|
|
41
47
|
type: "asydef_environment";
|
|
42
48
|
text: string;
|
|
49
|
+
startIndex: number;
|
|
50
|
+
endIndex: number;
|
|
43
51
|
begin: NodeId;
|
|
44
52
|
code: NodeId;
|
|
45
53
|
end: NodeId;
|
|
@@ -50,6 +58,8 @@ export interface AuthorNode {
|
|
|
50
58
|
parentId: NodeId | null;
|
|
51
59
|
type: "author";
|
|
52
60
|
text: string;
|
|
61
|
+
startIndex: number;
|
|
62
|
+
endIndex: number;
|
|
53
63
|
childrenIds: NodeId[];
|
|
54
64
|
}
|
|
55
65
|
export interface AuthorDeclarationNode {
|
|
@@ -57,6 +67,8 @@ export interface AuthorDeclarationNode {
|
|
|
57
67
|
parentId: NodeId | null;
|
|
58
68
|
type: "author_declaration";
|
|
59
69
|
text: string;
|
|
70
|
+
startIndex: number;
|
|
71
|
+
endIndex: number;
|
|
60
72
|
authors: NodeId;
|
|
61
73
|
command: NodeId;
|
|
62
74
|
options?: NodeId;
|
|
@@ -67,6 +79,8 @@ export interface BeginNode {
|
|
|
67
79
|
parentId: NodeId | null;
|
|
68
80
|
type: "begin";
|
|
69
81
|
text: string;
|
|
82
|
+
startIndex: number;
|
|
83
|
+
endIndex: number;
|
|
70
84
|
command: NodeId;
|
|
71
85
|
language?: NodeId;
|
|
72
86
|
name: NodeId;
|
|
@@ -78,6 +92,8 @@ export interface BiblatexIncludeNode {
|
|
|
78
92
|
parentId: NodeId | null;
|
|
79
93
|
type: "biblatex_include";
|
|
80
94
|
text: string;
|
|
95
|
+
startIndex: number;
|
|
96
|
+
endIndex: number;
|
|
81
97
|
glob: NodeId;
|
|
82
98
|
options?: NodeId;
|
|
83
99
|
childrenIds: NodeId[];
|
|
@@ -87,6 +103,8 @@ export interface BibstyleIncludeNode {
|
|
|
87
103
|
parentId: NodeId | null;
|
|
88
104
|
type: "bibstyle_include";
|
|
89
105
|
text: string;
|
|
106
|
+
startIndex: number;
|
|
107
|
+
endIndex: number;
|
|
90
108
|
command: NodeId;
|
|
91
109
|
path: NodeId;
|
|
92
110
|
childrenIds: NodeId[];
|
|
@@ -96,6 +114,8 @@ export interface BibtexIncludeNode {
|
|
|
96
114
|
parentId: NodeId | null;
|
|
97
115
|
type: "bibtex_include";
|
|
98
116
|
text: string;
|
|
117
|
+
startIndex: number;
|
|
118
|
+
endIndex: number;
|
|
99
119
|
command: NodeId;
|
|
100
120
|
paths: NodeId;
|
|
101
121
|
childrenIds: NodeId[];
|
|
@@ -105,6 +125,8 @@ export interface BlockCommentNode {
|
|
|
105
125
|
parentId: NodeId | null;
|
|
106
126
|
type: "block_comment";
|
|
107
127
|
text: string;
|
|
128
|
+
startIndex: number;
|
|
129
|
+
endIndex: number;
|
|
108
130
|
begin: NodeId;
|
|
109
131
|
comment?: NodeId;
|
|
110
132
|
end?: NodeId;
|
|
@@ -115,6 +137,8 @@ export interface BrackGroupNode {
|
|
|
115
137
|
parentId: NodeId | null;
|
|
116
138
|
type: "brack_group";
|
|
117
139
|
text: string;
|
|
140
|
+
startIndex: number;
|
|
141
|
+
endIndex: number;
|
|
118
142
|
childrenIds: NodeId[];
|
|
119
143
|
}
|
|
120
144
|
export interface BrackGroupArgcNode {
|
|
@@ -122,6 +146,8 @@ export interface BrackGroupArgcNode {
|
|
|
122
146
|
parentId: NodeId | null;
|
|
123
147
|
type: "brack_group_argc";
|
|
124
148
|
text: string;
|
|
149
|
+
startIndex: number;
|
|
150
|
+
endIndex: number;
|
|
125
151
|
value: NodeId;
|
|
126
152
|
childrenIds: NodeId[];
|
|
127
153
|
}
|
|
@@ -130,6 +156,8 @@ export interface BrackGroupKeyValueNode {
|
|
|
130
156
|
parentId: NodeId | null;
|
|
131
157
|
type: "brack_group_key_value";
|
|
132
158
|
text: string;
|
|
159
|
+
startIndex: number;
|
|
160
|
+
endIndex: number;
|
|
133
161
|
pair?: NodeId[];
|
|
134
162
|
childrenIds: NodeId[];
|
|
135
163
|
}
|
|
@@ -137,7 +165,9 @@ export interface BrackGroupTextNode {
|
|
|
137
165
|
id: NodeId;
|
|
138
166
|
parentId: NodeId | null;
|
|
139
167
|
type: "brack_group_text";
|
|
140
|
-
text: string
|
|
168
|
+
text: string;
|
|
169
|
+
startIndex: number;
|
|
170
|
+
endIndex: number;
|
|
141
171
|
childrenIds: NodeId[];
|
|
142
172
|
}
|
|
143
173
|
export interface BrackGroupWordNode {
|
|
@@ -145,6 +175,8 @@ export interface BrackGroupWordNode {
|
|
|
145
175
|
parentId: NodeId | null;
|
|
146
176
|
type: "brack_group_word";
|
|
147
177
|
text: string;
|
|
178
|
+
startIndex: number;
|
|
179
|
+
endIndex: number;
|
|
148
180
|
word: NodeId;
|
|
149
181
|
childrenIds: NodeId[];
|
|
150
182
|
}
|
|
@@ -153,6 +185,8 @@ export interface CaptionNode {
|
|
|
153
185
|
parentId: NodeId | null;
|
|
154
186
|
type: "caption";
|
|
155
187
|
text: string;
|
|
188
|
+
startIndex: number;
|
|
189
|
+
endIndex: number;
|
|
156
190
|
command: NodeId;
|
|
157
191
|
long: NodeId;
|
|
158
192
|
short?: NodeId;
|
|
@@ -163,6 +197,8 @@ export interface ChangesReplacedNode {
|
|
|
163
197
|
parentId: NodeId | null;
|
|
164
198
|
type: "changes_replaced";
|
|
165
199
|
text: string;
|
|
200
|
+
startIndex: number;
|
|
201
|
+
endIndex: number;
|
|
166
202
|
command: NodeId;
|
|
167
203
|
text_added: NodeId;
|
|
168
204
|
text_deleted: NodeId;
|
|
@@ -172,7 +208,9 @@ export interface ChapterNode {
|
|
|
172
208
|
id: NodeId;
|
|
173
209
|
parentId: NodeId | null;
|
|
174
210
|
type: "chapter";
|
|
175
|
-
text: string
|
|
211
|
+
text: string;
|
|
212
|
+
startIndex: number;
|
|
213
|
+
endIndex: number;
|
|
176
214
|
command: NodeId;
|
|
177
215
|
toc?: NodeId;
|
|
178
216
|
childrenIds: NodeId[];
|
|
@@ -182,6 +220,8 @@ export interface CitationNode {
|
|
|
182
220
|
parentId: NodeId | null;
|
|
183
221
|
type: "citation";
|
|
184
222
|
text: string;
|
|
223
|
+
startIndex: number;
|
|
224
|
+
endIndex: number;
|
|
185
225
|
command: NodeId;
|
|
186
226
|
keys: NodeId;
|
|
187
227
|
postnote?: NodeId;
|
|
@@ -193,6 +233,8 @@ export interface ClassIncludeNode {
|
|
|
193
233
|
parentId: NodeId | null;
|
|
194
234
|
type: "class_include";
|
|
195
235
|
text: string;
|
|
236
|
+
startIndex: number;
|
|
237
|
+
endIndex: number;
|
|
196
238
|
command: NodeId;
|
|
197
239
|
options?: NodeId;
|
|
198
240
|
path: NodeId;
|
|
@@ -203,6 +245,8 @@ export interface ColorDefinitionNode {
|
|
|
203
245
|
parentId: NodeId | null;
|
|
204
246
|
type: "color_definition";
|
|
205
247
|
text: string;
|
|
248
|
+
startIndex: number;
|
|
249
|
+
endIndex: number;
|
|
206
250
|
command: NodeId;
|
|
207
251
|
model: NodeId;
|
|
208
252
|
name: NodeId;
|
|
@@ -213,7 +257,9 @@ export interface ColorReferenceNode {
|
|
|
213
257
|
id: NodeId;
|
|
214
258
|
parentId: NodeId | null;
|
|
215
259
|
type: "color_reference";
|
|
216
|
-
text: string
|
|
260
|
+
text: string;
|
|
261
|
+
startIndex: number;
|
|
262
|
+
endIndex: number;
|
|
217
263
|
command: NodeId;
|
|
218
264
|
model?: NodeId;
|
|
219
265
|
name?: NodeId;
|
|
@@ -225,6 +271,8 @@ export interface ColorSetDefinitionNode {
|
|
|
225
271
|
parentId: NodeId | null;
|
|
226
272
|
type: "color_set_definition";
|
|
227
273
|
text: string;
|
|
274
|
+
startIndex: number;
|
|
275
|
+
endIndex: number;
|
|
228
276
|
command: NodeId;
|
|
229
277
|
head: NodeId;
|
|
230
278
|
model: NodeId;
|
|
@@ -238,6 +286,8 @@ export interface CommentEnvironmentNode {
|
|
|
238
286
|
parentId: NodeId | null;
|
|
239
287
|
type: "comment_environment";
|
|
240
288
|
text: string;
|
|
289
|
+
startIndex: number;
|
|
290
|
+
endIndex: number;
|
|
241
291
|
begin: NodeId;
|
|
242
292
|
comment: NodeId;
|
|
243
293
|
end: NodeId;
|
|
@@ -248,6 +298,8 @@ export interface CounterAdditionNode {
|
|
|
248
298
|
parentId: NodeId | null;
|
|
249
299
|
type: "counter_addition";
|
|
250
300
|
text: string;
|
|
301
|
+
startIndex: number;
|
|
302
|
+
endIndex: number;
|
|
251
303
|
command: NodeId;
|
|
252
304
|
counter: NodeId;
|
|
253
305
|
value: NodeId[];
|
|
@@ -258,6 +310,8 @@ export interface CounterDeclarationNode {
|
|
|
258
310
|
parentId: NodeId | null;
|
|
259
311
|
type: "counter_declaration";
|
|
260
312
|
text: string;
|
|
313
|
+
startIndex: number;
|
|
314
|
+
endIndex: number;
|
|
261
315
|
command: NodeId;
|
|
262
316
|
counter: NodeId;
|
|
263
317
|
supercounter?: NodeId;
|
|
@@ -268,6 +322,8 @@ export interface CounterDefinitionNode {
|
|
|
268
322
|
parentId: NodeId | null;
|
|
269
323
|
type: "counter_definition";
|
|
270
324
|
text: string;
|
|
325
|
+
startIndex: number;
|
|
326
|
+
endIndex: number;
|
|
271
327
|
command: NodeId;
|
|
272
328
|
counter: NodeId;
|
|
273
329
|
value: NodeId[];
|
|
@@ -278,6 +334,8 @@ export interface CounterIncrementNode {
|
|
|
278
334
|
parentId: NodeId | null;
|
|
279
335
|
type: "counter_increment";
|
|
280
336
|
text: string;
|
|
337
|
+
startIndex: number;
|
|
338
|
+
endIndex: number;
|
|
281
339
|
command: NodeId;
|
|
282
340
|
counter: NodeId;
|
|
283
341
|
childrenIds: NodeId[];
|
|
@@ -287,6 +345,8 @@ export interface CounterTypesettingNode {
|
|
|
287
345
|
parentId: NodeId | null;
|
|
288
346
|
type: "counter_typesetting";
|
|
289
347
|
text: string;
|
|
348
|
+
startIndex: number;
|
|
349
|
+
endIndex: number;
|
|
290
350
|
command: NodeId;
|
|
291
351
|
counter: NodeId;
|
|
292
352
|
childrenIds: NodeId[];
|
|
@@ -296,6 +356,8 @@ export interface CounterValueNode {
|
|
|
296
356
|
parentId: NodeId | null;
|
|
297
357
|
type: "counter_value";
|
|
298
358
|
text: string;
|
|
359
|
+
startIndex: number;
|
|
360
|
+
endIndex: number;
|
|
299
361
|
command: NodeId;
|
|
300
362
|
counter: NodeId;
|
|
301
363
|
childrenIds: NodeId[];
|
|
@@ -305,6 +367,8 @@ export interface CounterWithinDeclarationNode {
|
|
|
305
367
|
parentId: NodeId | null;
|
|
306
368
|
type: "counter_within_declaration";
|
|
307
369
|
text: string;
|
|
370
|
+
startIndex: number;
|
|
371
|
+
endIndex: number;
|
|
308
372
|
command: NodeId;
|
|
309
373
|
counter: NodeId;
|
|
310
374
|
supercounter: NodeId;
|
|
@@ -315,6 +379,8 @@ export interface CounterWithoutDeclarationNode {
|
|
|
315
379
|
parentId: NodeId | null;
|
|
316
380
|
type: "counter_without_declaration";
|
|
317
381
|
text: string;
|
|
382
|
+
startIndex: number;
|
|
383
|
+
endIndex: number;
|
|
318
384
|
command: NodeId;
|
|
319
385
|
counter: NodeId;
|
|
320
386
|
supercounter: NodeId;
|
|
@@ -325,6 +391,8 @@ export interface CurlyGroupNode {
|
|
|
325
391
|
parentId: NodeId | null;
|
|
326
392
|
type: "curly_group";
|
|
327
393
|
text: string;
|
|
394
|
+
startIndex: number;
|
|
395
|
+
endIndex: number;
|
|
328
396
|
childrenIds: NodeId[];
|
|
329
397
|
}
|
|
330
398
|
export interface CurlyGroupAuthorListNode {
|
|
@@ -332,6 +400,8 @@ export interface CurlyGroupAuthorListNode {
|
|
|
332
400
|
parentId: NodeId | null;
|
|
333
401
|
type: "curly_group_author_list";
|
|
334
402
|
text: string;
|
|
403
|
+
startIndex: number;
|
|
404
|
+
endIndex: number;
|
|
335
405
|
childrenIds: NodeId[];
|
|
336
406
|
}
|
|
337
407
|
export interface CurlyGroupCommandNameNode {
|
|
@@ -339,6 +409,8 @@ export interface CurlyGroupCommandNameNode {
|
|
|
339
409
|
parentId: NodeId | null;
|
|
340
410
|
type: "curly_group_command_name";
|
|
341
411
|
text: string;
|
|
412
|
+
startIndex: number;
|
|
413
|
+
endIndex: number;
|
|
342
414
|
command: NodeId;
|
|
343
415
|
childrenIds: NodeId[];
|
|
344
416
|
}
|
|
@@ -347,6 +419,8 @@ export interface CurlyGroupGlobPatternNode {
|
|
|
347
419
|
parentId: NodeId | null;
|
|
348
420
|
type: "curly_group_glob_pattern";
|
|
349
421
|
text: string;
|
|
422
|
+
startIndex: number;
|
|
423
|
+
endIndex: number;
|
|
350
424
|
pattern: NodeId;
|
|
351
425
|
childrenIds: NodeId[];
|
|
352
426
|
}
|
|
@@ -355,6 +429,8 @@ export interface CurlyGroupImplNode {
|
|
|
355
429
|
parentId: NodeId | null;
|
|
356
430
|
type: "curly_group_impl";
|
|
357
431
|
text: string;
|
|
432
|
+
startIndex: number;
|
|
433
|
+
endIndex: number;
|
|
358
434
|
childrenIds: NodeId[];
|
|
359
435
|
}
|
|
360
436
|
export interface CurlyGroupKeyValueNode {
|
|
@@ -362,6 +438,8 @@ export interface CurlyGroupKeyValueNode {
|
|
|
362
438
|
parentId: NodeId | null;
|
|
363
439
|
type: "curly_group_key_value";
|
|
364
440
|
text: string;
|
|
441
|
+
startIndex: number;
|
|
442
|
+
endIndex: number;
|
|
365
443
|
pair?: NodeId[];
|
|
366
444
|
childrenIds: NodeId[];
|
|
367
445
|
}
|
|
@@ -370,6 +448,8 @@ export interface CurlyGroupLabelNode {
|
|
|
370
448
|
parentId: NodeId | null;
|
|
371
449
|
type: "curly_group_label";
|
|
372
450
|
text: string;
|
|
451
|
+
startIndex: number;
|
|
452
|
+
endIndex: number;
|
|
373
453
|
label: NodeId;
|
|
374
454
|
childrenIds: NodeId[];
|
|
375
455
|
}
|
|
@@ -378,6 +458,8 @@ export interface CurlyGroupLabelListNode {
|
|
|
378
458
|
parentId: NodeId | null;
|
|
379
459
|
type: "curly_group_label_list";
|
|
380
460
|
text: string;
|
|
461
|
+
startIndex: number;
|
|
462
|
+
endIndex: number;
|
|
381
463
|
label?: NodeId[];
|
|
382
464
|
childrenIds: NodeId[];
|
|
383
465
|
}
|
|
@@ -386,6 +468,8 @@ export interface CurlyGroupPathNode {
|
|
|
386
468
|
parentId: NodeId | null;
|
|
387
469
|
type: "curly_group_path";
|
|
388
470
|
text: string;
|
|
471
|
+
startIndex: number;
|
|
472
|
+
endIndex: number;
|
|
389
473
|
path: NodeId;
|
|
390
474
|
childrenIds: NodeId[];
|
|
391
475
|
}
|
|
@@ -394,6 +478,8 @@ export interface CurlyGroupPathListNode {
|
|
|
394
478
|
parentId: NodeId | null;
|
|
395
479
|
type: "curly_group_path_list";
|
|
396
480
|
text: string;
|
|
481
|
+
startIndex: number;
|
|
482
|
+
endIndex: number;
|
|
397
483
|
path?: NodeId[];
|
|
398
484
|
childrenIds: NodeId[];
|
|
399
485
|
}
|
|
@@ -402,20 +488,26 @@ export interface CurlyGroupSpecNode {
|
|
|
402
488
|
parentId: NodeId | null;
|
|
403
489
|
type: "curly_group_spec";
|
|
404
490
|
text: string;
|
|
491
|
+
startIndex: number;
|
|
492
|
+
endIndex: number;
|
|
405
493
|
childrenIds: NodeId[];
|
|
406
494
|
}
|
|
407
495
|
export interface CurlyGroupTextNode {
|
|
408
496
|
id: NodeId;
|
|
409
497
|
parentId: NodeId | null;
|
|
410
498
|
type: "curly_group_text";
|
|
411
|
-
text: string
|
|
499
|
+
text: string;
|
|
500
|
+
startIndex: number;
|
|
501
|
+
endIndex: number;
|
|
412
502
|
childrenIds: NodeId[];
|
|
413
503
|
}
|
|
414
504
|
export interface CurlyGroupTextListNode {
|
|
415
505
|
id: NodeId;
|
|
416
506
|
parentId: NodeId | null;
|
|
417
507
|
type: "curly_group_text_list";
|
|
418
|
-
text: string
|
|
508
|
+
text: string;
|
|
509
|
+
startIndex: number;
|
|
510
|
+
endIndex: number;
|
|
419
511
|
childrenIds: NodeId[];
|
|
420
512
|
}
|
|
421
513
|
export interface CurlyGroupUriNode {
|
|
@@ -423,6 +515,8 @@ export interface CurlyGroupUriNode {
|
|
|
423
515
|
parentId: NodeId | null;
|
|
424
516
|
type: "curly_group_uri";
|
|
425
517
|
text: string;
|
|
518
|
+
startIndex: number;
|
|
519
|
+
endIndex: number;
|
|
426
520
|
uri: NodeId;
|
|
427
521
|
childrenIds: NodeId[];
|
|
428
522
|
}
|
|
@@ -431,6 +525,8 @@ export interface CurlyGroupValueNode {
|
|
|
431
525
|
parentId: NodeId | null;
|
|
432
526
|
type: "curly_group_value";
|
|
433
527
|
text: string;
|
|
528
|
+
startIndex: number;
|
|
529
|
+
endIndex: number;
|
|
434
530
|
value: NodeId;
|
|
435
531
|
childrenIds: NodeId[];
|
|
436
532
|
}
|
|
@@ -439,6 +535,8 @@ export interface CurlyGroupWordNode {
|
|
|
439
535
|
parentId: NodeId | null;
|
|
440
536
|
type: "curly_group_word";
|
|
441
537
|
text: string;
|
|
538
|
+
startIndex: number;
|
|
539
|
+
endIndex: number;
|
|
442
540
|
word: NodeId;
|
|
443
541
|
childrenIds: NodeId[];
|
|
444
542
|
}
|
|
@@ -447,6 +545,8 @@ export interface DisplayedEquationNode {
|
|
|
447
545
|
parentId: NodeId | null;
|
|
448
546
|
type: "displayed_equation";
|
|
449
547
|
text: string;
|
|
548
|
+
startIndex: number;
|
|
549
|
+
endIndex: number;
|
|
450
550
|
childrenIds: NodeId[];
|
|
451
551
|
}
|
|
452
552
|
export interface EndNode {
|
|
@@ -454,6 +554,8 @@ export interface EndNode {
|
|
|
454
554
|
parentId: NodeId | null;
|
|
455
555
|
type: "end";
|
|
456
556
|
text: string;
|
|
557
|
+
startIndex: number;
|
|
558
|
+
endIndex: number;
|
|
457
559
|
command: NodeId;
|
|
458
560
|
name: NodeId;
|
|
459
561
|
childrenIds: NodeId[];
|
|
@@ -463,6 +565,8 @@ export interface EnumItemNode {
|
|
|
463
565
|
parentId: NodeId | null;
|
|
464
566
|
type: "enum_item";
|
|
465
567
|
text: string;
|
|
568
|
+
startIndex: number;
|
|
569
|
+
endIndex: number;
|
|
466
570
|
command: NodeId;
|
|
467
571
|
label?: NodeId;
|
|
468
572
|
childrenIds: NodeId[];
|
|
@@ -472,6 +576,8 @@ export interface EnvironmentDefinitionNode {
|
|
|
472
576
|
parentId: NodeId | null;
|
|
473
577
|
type: "environment_definition";
|
|
474
578
|
text: string;
|
|
579
|
+
startIndex: number;
|
|
580
|
+
endIndex: number;
|
|
475
581
|
argc?: NodeId;
|
|
476
582
|
begin?: NodeId;
|
|
477
583
|
command: NodeId;
|
|
@@ -485,6 +591,8 @@ export interface GenericCommandNode {
|
|
|
485
591
|
parentId: NodeId | null;
|
|
486
592
|
type: "generic_command";
|
|
487
593
|
text: string;
|
|
594
|
+
startIndex: number;
|
|
595
|
+
endIndex: number;
|
|
488
596
|
arg?: NodeId[];
|
|
489
597
|
command: NodeId;
|
|
490
598
|
childrenIds: NodeId[];
|
|
@@ -494,6 +602,8 @@ export interface GenericEnvironmentNode {
|
|
|
494
602
|
parentId: NodeId | null;
|
|
495
603
|
type: "generic_environment";
|
|
496
604
|
text: string;
|
|
605
|
+
startIndex: number;
|
|
606
|
+
endIndex: number;
|
|
497
607
|
begin: NodeId;
|
|
498
608
|
end: NodeId;
|
|
499
609
|
childrenIds: NodeId[];
|
|
@@ -503,6 +613,8 @@ export interface GlobPatternNode {
|
|
|
503
613
|
parentId: NodeId | null;
|
|
504
614
|
type: "glob_pattern";
|
|
505
615
|
text: string;
|
|
616
|
+
startIndex: number;
|
|
617
|
+
endIndex: number;
|
|
506
618
|
childrenIds: NodeId[];
|
|
507
619
|
}
|
|
508
620
|
export interface GlossaryEntryDefinitionNode {
|
|
@@ -510,6 +622,8 @@ export interface GlossaryEntryDefinitionNode {
|
|
|
510
622
|
parentId: NodeId | null;
|
|
511
623
|
type: "glossary_entry_definition";
|
|
512
624
|
text: string;
|
|
625
|
+
startIndex: number;
|
|
626
|
+
endIndex: number;
|
|
513
627
|
command: NodeId;
|
|
514
628
|
name: NodeId;
|
|
515
629
|
options: NodeId;
|
|
@@ -520,6 +634,8 @@ export interface GlossaryEntryReferenceNode {
|
|
|
520
634
|
parentId: NodeId | null;
|
|
521
635
|
type: "glossary_entry_reference";
|
|
522
636
|
text: string;
|
|
637
|
+
startIndex: number;
|
|
638
|
+
endIndex: number;
|
|
523
639
|
command: NodeId;
|
|
524
640
|
name: NodeId;
|
|
525
641
|
options?: NodeId;
|
|
@@ -530,6 +646,8 @@ export interface GraphicsIncludeNode {
|
|
|
530
646
|
parentId: NodeId | null;
|
|
531
647
|
type: "graphics_include";
|
|
532
648
|
text: string;
|
|
649
|
+
startIndex: number;
|
|
650
|
+
endIndex: number;
|
|
533
651
|
command: NodeId;
|
|
534
652
|
options?: NodeId;
|
|
535
653
|
path: NodeId;
|
|
@@ -540,6 +658,8 @@ export interface HyperlinkNode {
|
|
|
540
658
|
parentId: NodeId | null;
|
|
541
659
|
type: "hyperlink";
|
|
542
660
|
text: string;
|
|
661
|
+
startIndex: number;
|
|
662
|
+
endIndex: number;
|
|
543
663
|
command: NodeId;
|
|
544
664
|
label?: NodeId;
|
|
545
665
|
uri: NodeId;
|
|
@@ -550,6 +670,8 @@ export interface ImportIncludeNode {
|
|
|
550
670
|
parentId: NodeId | null;
|
|
551
671
|
type: "import_include";
|
|
552
672
|
text: string;
|
|
673
|
+
startIndex: number;
|
|
674
|
+
endIndex: number;
|
|
553
675
|
command: NodeId;
|
|
554
676
|
directory: NodeId;
|
|
555
677
|
file: NodeId;
|
|
@@ -560,6 +682,8 @@ export interface InkscapeIncludeNode {
|
|
|
560
682
|
parentId: NodeId | null;
|
|
561
683
|
type: "inkscape_include";
|
|
562
684
|
text: string;
|
|
685
|
+
startIndex: number;
|
|
686
|
+
endIndex: number;
|
|
563
687
|
command: NodeId;
|
|
564
688
|
options?: NodeId;
|
|
565
689
|
path: NodeId;
|
|
@@ -570,6 +694,8 @@ export interface InlineFormulaNode {
|
|
|
570
694
|
parentId: NodeId | null;
|
|
571
695
|
type: "inline_formula";
|
|
572
696
|
text: string;
|
|
697
|
+
startIndex: number;
|
|
698
|
+
endIndex: number;
|
|
573
699
|
childrenIds: NodeId[];
|
|
574
700
|
}
|
|
575
701
|
export interface KeyValuePairNode {
|
|
@@ -577,6 +703,8 @@ export interface KeyValuePairNode {
|
|
|
577
703
|
parentId: NodeId | null;
|
|
578
704
|
type: "key_value_pair";
|
|
579
705
|
text: string;
|
|
706
|
+
startIndex: number;
|
|
707
|
+
endIndex: number;
|
|
580
708
|
key: NodeId;
|
|
581
709
|
value?: NodeId;
|
|
582
710
|
childrenIds: NodeId[];
|
|
@@ -586,6 +714,8 @@ export interface LabelDefinitionNode {
|
|
|
586
714
|
parentId: NodeId | null;
|
|
587
715
|
type: "label_definition";
|
|
588
716
|
text: string;
|
|
717
|
+
startIndex: number;
|
|
718
|
+
endIndex: number;
|
|
589
719
|
command: NodeId;
|
|
590
720
|
name: NodeId;
|
|
591
721
|
childrenIds: NodeId[];
|
|
@@ -595,6 +725,8 @@ export interface LabelNumberNode {
|
|
|
595
725
|
parentId: NodeId | null;
|
|
596
726
|
type: "label_number";
|
|
597
727
|
text: string;
|
|
728
|
+
startIndex: number;
|
|
729
|
+
endIndex: number;
|
|
598
730
|
command: NodeId;
|
|
599
731
|
name: NodeId;
|
|
600
732
|
number: NodeId;
|
|
@@ -605,6 +737,8 @@ export interface LabelReferenceNode {
|
|
|
605
737
|
parentId: NodeId | null;
|
|
606
738
|
type: "label_reference";
|
|
607
739
|
text: string;
|
|
740
|
+
startIndex: number;
|
|
741
|
+
endIndex: number;
|
|
608
742
|
command: NodeId;
|
|
609
743
|
names: NodeId;
|
|
610
744
|
childrenIds: NodeId[];
|
|
@@ -614,6 +748,8 @@ export interface LabelReferenceRangeNode {
|
|
|
614
748
|
parentId: NodeId | null;
|
|
615
749
|
type: "label_reference_range";
|
|
616
750
|
text: string;
|
|
751
|
+
startIndex: number;
|
|
752
|
+
endIndex: number;
|
|
617
753
|
command: NodeId;
|
|
618
754
|
from: NodeId;
|
|
619
755
|
to: NodeId;
|
|
@@ -624,6 +760,8 @@ export interface LatexIncludeNode {
|
|
|
624
760
|
parentId: NodeId | null;
|
|
625
761
|
type: "latex_include";
|
|
626
762
|
text: string;
|
|
763
|
+
startIndex: number;
|
|
764
|
+
endIndex: number;
|
|
627
765
|
command: NodeId;
|
|
628
766
|
path: NodeId;
|
|
629
767
|
childrenIds: NodeId[];
|
|
@@ -633,6 +771,8 @@ export interface LetCommandDefinitionNode {
|
|
|
633
771
|
parentId: NodeId | null;
|
|
634
772
|
type: "let_command_definition";
|
|
635
773
|
text: string;
|
|
774
|
+
startIndex: number;
|
|
775
|
+
endIndex: number;
|
|
636
776
|
command: NodeId;
|
|
637
777
|
declaration: NodeId;
|
|
638
778
|
implementation: NodeId;
|
|
@@ -643,6 +783,8 @@ export interface ListingEnvironmentNode {
|
|
|
643
783
|
parentId: NodeId | null;
|
|
644
784
|
type: "listing_environment";
|
|
645
785
|
text: string;
|
|
786
|
+
startIndex: number;
|
|
787
|
+
endIndex: number;
|
|
646
788
|
begin: NodeId;
|
|
647
789
|
code: NodeId;
|
|
648
790
|
end: NodeId;
|
|
@@ -653,6 +795,8 @@ export interface LuacodeEnvironmentNode {
|
|
|
653
795
|
parentId: NodeId | null;
|
|
654
796
|
type: "luacode_environment";
|
|
655
797
|
text: string;
|
|
798
|
+
startIndex: number;
|
|
799
|
+
endIndex: number;
|
|
656
800
|
begin: NodeId;
|
|
657
801
|
code: NodeId;
|
|
658
802
|
end: NodeId;
|
|
@@ -663,6 +807,8 @@ export interface MathDelimiterNode {
|
|
|
663
807
|
parentId: NodeId | null;
|
|
664
808
|
type: "math_delimiter";
|
|
665
809
|
text: string;
|
|
810
|
+
startIndex: number;
|
|
811
|
+
endIndex: number;
|
|
666
812
|
left_command: NodeId;
|
|
667
813
|
left_delimiter: NodeId;
|
|
668
814
|
right_command: NodeId;
|
|
@@ -674,6 +820,8 @@ export interface MathEnvironmentNode {
|
|
|
674
820
|
parentId: NodeId | null;
|
|
675
821
|
type: "math_environment";
|
|
676
822
|
text: string;
|
|
823
|
+
startIndex: number;
|
|
824
|
+
endIndex: number;
|
|
677
825
|
begin: NodeId;
|
|
678
826
|
end: NodeId;
|
|
679
827
|
childrenIds: NodeId[];
|
|
@@ -683,6 +831,8 @@ export interface MintedEnvironmentNode {
|
|
|
683
831
|
parentId: NodeId | null;
|
|
684
832
|
type: "minted_environment";
|
|
685
833
|
text: string;
|
|
834
|
+
startIndex: number;
|
|
835
|
+
endIndex: number;
|
|
686
836
|
begin: NodeId;
|
|
687
837
|
code: NodeId;
|
|
688
838
|
end: NodeId;
|
|
@@ -693,6 +843,8 @@ export interface NewCommandDefinitionNode {
|
|
|
693
843
|
parentId: NodeId | null;
|
|
694
844
|
type: "new_command_definition";
|
|
695
845
|
text: string;
|
|
846
|
+
startIndex: number;
|
|
847
|
+
endIndex: number;
|
|
696
848
|
argc?: NodeId;
|
|
697
849
|
command: NodeId;
|
|
698
850
|
declaration: NodeId;
|
|
@@ -706,6 +858,8 @@ export interface OldCommandDefinitionNode {
|
|
|
706
858
|
parentId: NodeId | null;
|
|
707
859
|
type: "old_command_definition";
|
|
708
860
|
text: string;
|
|
861
|
+
startIndex: number;
|
|
862
|
+
endIndex: number;
|
|
709
863
|
command: NodeId;
|
|
710
864
|
declaration: NodeId;
|
|
711
865
|
childrenIds: NodeId[];
|
|
@@ -715,6 +869,8 @@ export interface OperatorNode {
|
|
|
715
869
|
parentId: NodeId | null;
|
|
716
870
|
type: "operator";
|
|
717
871
|
text: string;
|
|
872
|
+
startIndex: number;
|
|
873
|
+
endIndex: number;
|
|
718
874
|
childrenIds: NodeId[];
|
|
719
875
|
}
|
|
720
876
|
export interface PackageIncludeNode {
|
|
@@ -722,6 +878,8 @@ export interface PackageIncludeNode {
|
|
|
722
878
|
parentId: NodeId | null;
|
|
723
879
|
type: "package_include";
|
|
724
880
|
text: string;
|
|
881
|
+
startIndex: number;
|
|
882
|
+
endIndex: number;
|
|
725
883
|
command: NodeId;
|
|
726
884
|
options?: NodeId;
|
|
727
885
|
paths: NodeId;
|
|
@@ -732,6 +890,8 @@ export interface PairedDelimiterDefinitionNode {
|
|
|
732
890
|
parentId: NodeId | null;
|
|
733
891
|
type: "paired_delimiter_definition";
|
|
734
892
|
text: string;
|
|
893
|
+
startIndex: number;
|
|
894
|
+
endIndex: number;
|
|
735
895
|
argc?: NodeId;
|
|
736
896
|
body?: NodeId;
|
|
737
897
|
command: NodeId;
|
|
@@ -744,7 +904,9 @@ export interface ParagraphNode {
|
|
|
744
904
|
id: NodeId;
|
|
745
905
|
parentId: NodeId | null;
|
|
746
906
|
type: "paragraph";
|
|
747
|
-
text: string
|
|
907
|
+
text: string;
|
|
908
|
+
startIndex: number;
|
|
909
|
+
endIndex: number;
|
|
748
910
|
command: NodeId;
|
|
749
911
|
toc?: NodeId;
|
|
750
912
|
childrenIds: NodeId[];
|
|
@@ -753,7 +915,9 @@ export interface PartNode {
|
|
|
753
915
|
id: NodeId;
|
|
754
916
|
parentId: NodeId | null;
|
|
755
917
|
type: "part";
|
|
756
|
-
text: string
|
|
918
|
+
text: string;
|
|
919
|
+
startIndex: number;
|
|
920
|
+
endIndex: number;
|
|
757
921
|
command: NodeId;
|
|
758
922
|
toc?: NodeId;
|
|
759
923
|
childrenIds: NodeId[];
|
|
@@ -763,6 +927,8 @@ export interface PycodeEnvironmentNode {
|
|
|
763
927
|
parentId: NodeId | null;
|
|
764
928
|
type: "pycode_environment";
|
|
765
929
|
text: string;
|
|
930
|
+
startIndex: number;
|
|
931
|
+
endIndex: number;
|
|
766
932
|
begin: NodeId;
|
|
767
933
|
code: NodeId;
|
|
768
934
|
end: NodeId;
|
|
@@ -773,6 +939,8 @@ export interface SageblockEnvironmentNode {
|
|
|
773
939
|
parentId: NodeId | null;
|
|
774
940
|
type: "sageblock_environment";
|
|
775
941
|
text: string;
|
|
942
|
+
startIndex: number;
|
|
943
|
+
endIndex: number;
|
|
776
944
|
begin: NodeId;
|
|
777
945
|
code: NodeId;
|
|
778
946
|
end: NodeId;
|
|
@@ -783,6 +951,8 @@ export interface SagesilentEnvironmentNode {
|
|
|
783
951
|
parentId: NodeId | null;
|
|
784
952
|
type: "sagesilent_environment";
|
|
785
953
|
text: string;
|
|
954
|
+
startIndex: number;
|
|
955
|
+
endIndex: number;
|
|
786
956
|
begin: NodeId;
|
|
787
957
|
code: NodeId;
|
|
788
958
|
end: NodeId;
|
|
@@ -792,7 +962,9 @@ export interface SectionNode {
|
|
|
792
962
|
id: NodeId;
|
|
793
963
|
parentId: NodeId | null;
|
|
794
964
|
type: "section";
|
|
795
|
-
text: string
|
|
965
|
+
text: string;
|
|
966
|
+
startIndex: number;
|
|
967
|
+
endIndex: number;
|
|
796
968
|
command: NodeId;
|
|
797
969
|
toc?: NodeId;
|
|
798
970
|
childrenIds: NodeId[];
|
|
@@ -802,13 +974,17 @@ export interface SourceFileNode {
|
|
|
802
974
|
parentId: NodeId | null;
|
|
803
975
|
type: "source_file";
|
|
804
976
|
text: string;
|
|
977
|
+
startIndex: number;
|
|
978
|
+
endIndex: number;
|
|
805
979
|
childrenIds: NodeId[];
|
|
806
980
|
}
|
|
807
981
|
export interface SubparagraphNode {
|
|
808
982
|
id: NodeId;
|
|
809
983
|
parentId: NodeId | null;
|
|
810
984
|
type: "subparagraph";
|
|
811
|
-
text: string
|
|
985
|
+
text: string;
|
|
986
|
+
startIndex: number;
|
|
987
|
+
endIndex: number;
|
|
812
988
|
command: NodeId;
|
|
813
989
|
toc?: NodeId;
|
|
814
990
|
childrenIds: NodeId[];
|
|
@@ -818,6 +994,8 @@ export interface SubscriptNode {
|
|
|
818
994
|
parentId: NodeId | null;
|
|
819
995
|
type: "subscript";
|
|
820
996
|
text: string;
|
|
997
|
+
startIndex: number;
|
|
998
|
+
endIndex: number;
|
|
821
999
|
subscript: NodeId;
|
|
822
1000
|
childrenIds: NodeId[];
|
|
823
1001
|
}
|
|
@@ -825,7 +1003,9 @@ export interface SubsectionNode {
|
|
|
825
1003
|
id: NodeId;
|
|
826
1004
|
parentId: NodeId | null;
|
|
827
1005
|
type: "subsection";
|
|
828
|
-
text: string
|
|
1006
|
+
text: string;
|
|
1007
|
+
startIndex: number;
|
|
1008
|
+
endIndex: number;
|
|
829
1009
|
command: NodeId;
|
|
830
1010
|
toc?: NodeId;
|
|
831
1011
|
childrenIds: NodeId[];
|
|
@@ -834,7 +1014,9 @@ export interface SubsubsectionNode {
|
|
|
834
1014
|
id: NodeId;
|
|
835
1015
|
parentId: NodeId | null;
|
|
836
1016
|
type: "subsubsection";
|
|
837
|
-
text: string
|
|
1017
|
+
text: string;
|
|
1018
|
+
startIndex: number;
|
|
1019
|
+
endIndex: number;
|
|
838
1020
|
command: NodeId;
|
|
839
1021
|
toc?: NodeId;
|
|
840
1022
|
childrenIds: NodeId[];
|
|
@@ -844,6 +1026,8 @@ export interface SuperscriptNode {
|
|
|
844
1026
|
parentId: NodeId | null;
|
|
845
1027
|
type: "superscript";
|
|
846
1028
|
text: string;
|
|
1029
|
+
startIndex: number;
|
|
1030
|
+
endIndex: number;
|
|
847
1031
|
superscript: NodeId;
|
|
848
1032
|
childrenIds: NodeId[];
|
|
849
1033
|
}
|
|
@@ -852,6 +1036,8 @@ export interface SvgIncludeNode {
|
|
|
852
1036
|
parentId: NodeId | null;
|
|
853
1037
|
type: "svg_include";
|
|
854
1038
|
text: string;
|
|
1039
|
+
startIndex: number;
|
|
1040
|
+
endIndex: number;
|
|
855
1041
|
command: NodeId;
|
|
856
1042
|
options?: NodeId;
|
|
857
1043
|
path: NodeId;
|
|
@@ -862,6 +1048,8 @@ export interface TextNode {
|
|
|
862
1048
|
parentId: NodeId | null;
|
|
863
1049
|
type: "text";
|
|
864
1050
|
text: string;
|
|
1051
|
+
startIndex: number;
|
|
1052
|
+
endIndex: number;
|
|
865
1053
|
word: NodeId[];
|
|
866
1054
|
childrenIds: NodeId[];
|
|
867
1055
|
}
|
|
@@ -870,6 +1058,8 @@ export interface TextModeNode {
|
|
|
870
1058
|
parentId: NodeId | null;
|
|
871
1059
|
type: "text_mode";
|
|
872
1060
|
text: string;
|
|
1061
|
+
startIndex: number;
|
|
1062
|
+
endIndex: number;
|
|
873
1063
|
command: NodeId;
|
|
874
1064
|
content: NodeId;
|
|
875
1065
|
childrenIds: NodeId[];
|
|
@@ -879,6 +1069,8 @@ export interface TheoremDefinitionNode {
|
|
|
879
1069
|
parentId: NodeId | null;
|
|
880
1070
|
type: "theorem_definition";
|
|
881
1071
|
text: string;
|
|
1072
|
+
startIndex: number;
|
|
1073
|
+
endIndex: number;
|
|
882
1074
|
command: NodeId;
|
|
883
1075
|
counter?: NodeId;
|
|
884
1076
|
name: NodeId;
|
|
@@ -891,6 +1083,8 @@ export interface TikzLibraryImportNode {
|
|
|
891
1083
|
parentId: NodeId | null;
|
|
892
1084
|
type: "tikz_library_import";
|
|
893
1085
|
text: string;
|
|
1086
|
+
startIndex: number;
|
|
1087
|
+
endIndex: number;
|
|
894
1088
|
command: NodeId;
|
|
895
1089
|
paths: NodeId;
|
|
896
1090
|
childrenIds: NodeId[];
|
|
@@ -899,7 +1093,9 @@ export interface TitleDeclarationNode {
|
|
|
899
1093
|
id: NodeId;
|
|
900
1094
|
parentId: NodeId | null;
|
|
901
1095
|
type: "title_declaration";
|
|
902
|
-
text: string
|
|
1096
|
+
text: string;
|
|
1097
|
+
startIndex: number;
|
|
1098
|
+
endIndex: number;
|
|
903
1099
|
command: NodeId;
|
|
904
1100
|
options?: NodeId;
|
|
905
1101
|
childrenIds: NodeId[];
|
|
@@ -909,6 +1105,8 @@ export interface TodoNode {
|
|
|
909
1105
|
parentId: NodeId | null;
|
|
910
1106
|
type: "todo";
|
|
911
1107
|
text: string;
|
|
1108
|
+
startIndex: number;
|
|
1109
|
+
endIndex: number;
|
|
912
1110
|
arg: NodeId;
|
|
913
1111
|
command: NodeId;
|
|
914
1112
|
options?: NodeId;
|
|
@@ -919,6 +1117,8 @@ export interface ValueNode {
|
|
|
919
1117
|
parentId: NodeId | null;
|
|
920
1118
|
type: "value";
|
|
921
1119
|
text: string;
|
|
1120
|
+
startIndex: number;
|
|
1121
|
+
endIndex: number;
|
|
922
1122
|
childrenIds: NodeId[];
|
|
923
1123
|
}
|
|
924
1124
|
export interface VerbatimEnvironmentNode {
|
|
@@ -926,6 +1126,8 @@ export interface VerbatimEnvironmentNode {
|
|
|
926
1126
|
parentId: NodeId | null;
|
|
927
1127
|
type: "verbatim_environment";
|
|
928
1128
|
text: string;
|
|
1129
|
+
startIndex: number;
|
|
1130
|
+
endIndex: number;
|
|
929
1131
|
begin: NodeId;
|
|
930
1132
|
end: NodeId;
|
|
931
1133
|
verbatim: NodeId;
|
|
@@ -936,6 +1138,8 @@ export interface VerbatimIncludeNode {
|
|
|
936
1138
|
parentId: NodeId | null;
|
|
937
1139
|
type: "verbatim_include";
|
|
938
1140
|
text: string;
|
|
1141
|
+
startIndex: number;
|
|
1142
|
+
endIndex: number;
|
|
939
1143
|
command: NodeId;
|
|
940
1144
|
path: NodeId;
|
|
941
1145
|
childrenIds: NodeId[];
|
|
@@ -945,6 +1149,8 @@ export interface ArgcNode {
|
|
|
945
1149
|
parentId: NodeId | null;
|
|
946
1150
|
type: "argc";
|
|
947
1151
|
text: string;
|
|
1152
|
+
startIndex: number;
|
|
1153
|
+
endIndex: number;
|
|
948
1154
|
childrenIds: NodeId[];
|
|
949
1155
|
}
|
|
950
1156
|
export interface CommandNameNode {
|
|
@@ -952,6 +1158,8 @@ export interface CommandNameNode {
|
|
|
952
1158
|
parentId: NodeId | null;
|
|
953
1159
|
type: "command_name";
|
|
954
1160
|
text: string;
|
|
1161
|
+
startIndex: number;
|
|
1162
|
+
endIndex: number;
|
|
955
1163
|
childrenIds: NodeId[];
|
|
956
1164
|
}
|
|
957
1165
|
export interface CommentNode {
|
|
@@ -959,6 +1167,8 @@ export interface CommentNode {
|
|
|
959
1167
|
parentId: NodeId | null;
|
|
960
1168
|
type: "comment";
|
|
961
1169
|
text: string;
|
|
1170
|
+
startIndex: number;
|
|
1171
|
+
endIndex: number;
|
|
962
1172
|
childrenIds: NodeId[];
|
|
963
1173
|
}
|
|
964
1174
|
export interface DelimiterNode {
|
|
@@ -966,6 +1176,8 @@ export interface DelimiterNode {
|
|
|
966
1176
|
parentId: NodeId | null;
|
|
967
1177
|
type: "delimiter";
|
|
968
1178
|
text: string;
|
|
1179
|
+
startIndex: number;
|
|
1180
|
+
endIndex: number;
|
|
969
1181
|
childrenIds: NodeId[];
|
|
970
1182
|
}
|
|
971
1183
|
export interface LabelNode {
|
|
@@ -973,6 +1185,8 @@ export interface LabelNode {
|
|
|
973
1185
|
parentId: NodeId | null;
|
|
974
1186
|
type: "label";
|
|
975
1187
|
text: string;
|
|
1188
|
+
startIndex: number;
|
|
1189
|
+
endIndex: number;
|
|
976
1190
|
childrenIds: NodeId[];
|
|
977
1191
|
}
|
|
978
1192
|
export interface LetterNode {
|
|
@@ -980,6 +1194,8 @@ export interface LetterNode {
|
|
|
980
1194
|
parentId: NodeId | null;
|
|
981
1195
|
type: "letter";
|
|
982
1196
|
text: string;
|
|
1197
|
+
startIndex: number;
|
|
1198
|
+
endIndex: number;
|
|
983
1199
|
childrenIds: NodeId[];
|
|
984
1200
|
}
|
|
985
1201
|
export interface LineCommentNode {
|
|
@@ -987,6 +1203,8 @@ export interface LineCommentNode {
|
|
|
987
1203
|
parentId: NodeId | null;
|
|
988
1204
|
type: "line_comment";
|
|
989
1205
|
text: string;
|
|
1206
|
+
startIndex: number;
|
|
1207
|
+
endIndex: number;
|
|
990
1208
|
childrenIds: NodeId[];
|
|
991
1209
|
}
|
|
992
1210
|
export interface PathNode {
|
|
@@ -994,6 +1212,8 @@ export interface PathNode {
|
|
|
994
1212
|
parentId: NodeId | null;
|
|
995
1213
|
type: "path";
|
|
996
1214
|
text: string;
|
|
1215
|
+
startIndex: number;
|
|
1216
|
+
endIndex: number;
|
|
997
1217
|
childrenIds: NodeId[];
|
|
998
1218
|
}
|
|
999
1219
|
export interface PlaceholderNode {
|
|
@@ -1001,6 +1221,8 @@ export interface PlaceholderNode {
|
|
|
1001
1221
|
parentId: NodeId | null;
|
|
1002
1222
|
type: "placeholder";
|
|
1003
1223
|
text: string;
|
|
1224
|
+
startIndex: number;
|
|
1225
|
+
endIndex: number;
|
|
1004
1226
|
childrenIds: NodeId[];
|
|
1005
1227
|
}
|
|
1006
1228
|
export interface SourceCodeNode {
|
|
@@ -1008,6 +1230,8 @@ export interface SourceCodeNode {
|
|
|
1008
1230
|
parentId: NodeId | null;
|
|
1009
1231
|
type: "source_code";
|
|
1010
1232
|
text: string;
|
|
1233
|
+
startIndex: number;
|
|
1234
|
+
endIndex: number;
|
|
1011
1235
|
childrenIds: NodeId[];
|
|
1012
1236
|
}
|
|
1013
1237
|
export interface TodoCommandNameNode {
|
|
@@ -1015,6 +1239,8 @@ export interface TodoCommandNameNode {
|
|
|
1015
1239
|
parentId: NodeId | null;
|
|
1016
1240
|
type: "todo_command_name";
|
|
1017
1241
|
text: string;
|
|
1242
|
+
startIndex: number;
|
|
1243
|
+
endIndex: number;
|
|
1018
1244
|
childrenIds: NodeId[];
|
|
1019
1245
|
}
|
|
1020
1246
|
export interface UriNode {
|
|
@@ -1022,6 +1248,8 @@ export interface UriNode {
|
|
|
1022
1248
|
parentId: NodeId | null;
|
|
1023
1249
|
type: "uri";
|
|
1024
1250
|
text: string;
|
|
1251
|
+
startIndex: number;
|
|
1252
|
+
endIndex: number;
|
|
1025
1253
|
childrenIds: NodeId[];
|
|
1026
1254
|
}
|
|
1027
1255
|
export interface ValueLiteralNode {
|
|
@@ -1029,6 +1257,8 @@ export interface ValueLiteralNode {
|
|
|
1029
1257
|
parentId: NodeId | null;
|
|
1030
1258
|
type: "value_literal";
|
|
1031
1259
|
text: string;
|
|
1260
|
+
startIndex: number;
|
|
1261
|
+
endIndex: number;
|
|
1032
1262
|
childrenIds: NodeId[];
|
|
1033
1263
|
}
|
|
1034
1264
|
export interface WordNode {
|
|
@@ -1036,6 +1266,8 @@ export interface WordNode {
|
|
|
1036
1266
|
parentId: NodeId | null;
|
|
1037
1267
|
type: "word";
|
|
1038
1268
|
text: string;
|
|
1269
|
+
startIndex: number;
|
|
1270
|
+
endIndex: number;
|
|
1039
1271
|
childrenIds: NodeId[];
|
|
1040
1272
|
}
|
|
1041
1273
|
export type AstNode = AcronymDefinitionNode | AcronymReferenceNode | AsyEnvironmentNode | AsydefEnvironmentNode | AuthorNode | AuthorDeclarationNode | BeginNode | BiblatexIncludeNode | BibstyleIncludeNode | BibtexIncludeNode | BlockCommentNode | BrackGroupNode | BrackGroupArgcNode | BrackGroupKeyValueNode | BrackGroupTextNode | BrackGroupWordNode | CaptionNode | ChangesReplacedNode | ChapterNode | CitationNode | ClassIncludeNode | ColorDefinitionNode | ColorReferenceNode | ColorSetDefinitionNode | CommentEnvironmentNode | CounterAdditionNode | CounterDeclarationNode | CounterDefinitionNode | CounterIncrementNode | CounterTypesettingNode | CounterValueNode | CounterWithinDeclarationNode | CounterWithoutDeclarationNode | CurlyGroupNode | CurlyGroupAuthorListNode | CurlyGroupCommandNameNode | CurlyGroupGlobPatternNode | CurlyGroupImplNode | CurlyGroupKeyValueNode | CurlyGroupLabelNode | CurlyGroupLabelListNode | CurlyGroupPathNode | CurlyGroupPathListNode | CurlyGroupSpecNode | CurlyGroupTextNode | CurlyGroupTextListNode | CurlyGroupUriNode | CurlyGroupValueNode | CurlyGroupWordNode | DisplayedEquationNode | EndNode | EnumItemNode | EnvironmentDefinitionNode | GenericCommandNode | GenericEnvironmentNode | GlobPatternNode | GlossaryEntryDefinitionNode | GlossaryEntryReferenceNode | GraphicsIncludeNode | HyperlinkNode | ImportIncludeNode | InkscapeIncludeNode | InlineFormulaNode | KeyValuePairNode | LabelDefinitionNode | LabelNumberNode | LabelReferenceNode | LabelReferenceRangeNode | LatexIncludeNode | LetCommandDefinitionNode | ListingEnvironmentNode | LuacodeEnvironmentNode | MathDelimiterNode | MathEnvironmentNode | MintedEnvironmentNode | NewCommandDefinitionNode | OldCommandDefinitionNode | OperatorNode | PackageIncludeNode | PairedDelimiterDefinitionNode | ParagraphNode | PartNode | PycodeEnvironmentNode | SageblockEnvironmentNode | SagesilentEnvironmentNode | SectionNode | SourceFileNode | SubparagraphNode | SubscriptNode | SubsectionNode | SubsubsectionNode | SuperscriptNode | SvgIncludeNode | TextNode | TextModeNode | TheoremDefinitionNode | TikzLibraryImportNode | TitleDeclarationNode | TodoNode | ValueNode | VerbatimEnvironmentNode | VerbatimIncludeNode | ArgcNode | CommandNameNode | CommentNode | DelimiterNode | LabelNode | LetterNode | LineCommentNode | PathNode | PlaceholderNode | SourceCodeNode | TodoCommandNameNode | UriNode | ValueLiteralNode | WordNode;
|
|
@@ -1045,4 +1277,5 @@ export type BragiAST = {
|
|
|
1045
1277
|
nodes: Map<NodeId, AstNode>;
|
|
1046
1278
|
};
|
|
1047
1279
|
export declare const parseCST: (root: Node | null) => BragiAST;
|
|
1280
|
+
export declare const allChildIds: (ast: BragiAST, node: AstNode) => string[];
|
|
1048
1281
|
//# sourceMappingURL=AST.d.ts.map
|