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
use crate::core::util::*;
use crate::core::*;
use std::os;
pub type __uint8_t = libc::c_uchar;
pub type __int16_t = libc::c_short;
pub type __uint16_t = libc::c_ushort;
pub type __int32_t = libc::c_int;
pub type __uint32_t = libc::c_uint;
pub type int16_t = __int16_t;
pub type int32_t = __int32_t;
pub type uint8_t = __uint8_t;
pub type uint16_t = __uint16_t;
pub type uint32_t = __uint32_t;
pub type TSStateId = uint16_t;
pub type TSSymbol = uint16_t;
pub type TSFieldId = uint16_t;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct TSLanguage {
    pub version: uint32_t,
    pub symbol_count: uint32_t,
    pub alias_count: uint32_t,
    pub token_count: uint32_t,
    pub external_token_count: uint32_t,
    pub state_count: uint32_t,
    pub large_state_count: uint32_t,
    pub production_id_count: uint32_t,
    pub field_count: uint32_t,
    pub max_alias_sequence_length: uint16_t,
    pub parse_table: *const uint16_t,
    pub small_parse_table: *const uint16_t,
    pub small_parse_table_map: *const uint32_t,
    pub parse_actions: *const TSParseActionEntry,
    pub symbol_names: *const *const libc::c_char,
    pub field_names: *const *const libc::c_char,
    pub field_map_slices: *const TSFieldMapSlice,
    pub field_map_entries: *const TSFieldMapEntry,
    pub symbol_metadata: *const TSSymbolMetadata,
    pub public_symbol_map: *const TSSymbol,
    pub alias_map: *const uint16_t,
    pub alias_sequences: *const TSSymbol,
    pub lex_modes: *const TSLexMode,
    pub lex_fn: Option<unsafe extern "C" fn(*mut TSLexer, TSStateId) -> bool>,
    pub keyword_lex_fn: Option<unsafe extern "C" fn(*mut TSLexer, TSStateId) -> bool>,
    pub keyword_capture_token: TSSymbol,
    pub external_scanner: C2RustUnnamed,
    pub primary_state_ids: *const TSStateId,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed {
    pub states: *const bool,
    pub symbol_map: *const TSSymbol,
    pub create: Option<unsafe extern "C" fn() -> *mut libc::c_void>,
    pub destroy: Option<unsafe extern "C" fn(*mut libc::c_void) -> ()>,
    pub scan: Option<unsafe extern "C" fn(*mut libc::c_void, *mut TSLexer, *const bool) -> bool>,
    pub serialize:
        Option<unsafe extern "C" fn(*mut libc::c_void, *mut libc::c_char) -> libc::c_uint>,
    pub deserialize:
        Option<unsafe extern "C" fn(*mut libc::c_void, *const libc::c_char, libc::c_uint) -> ()>,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_0 {
    pub count: uint8_t,
    pub reusable: bool,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_1 {
    pub type_: uint8_t,
    pub child_count: uint8_t,
    pub symbol: TSSymbol,
    pub dynamic_precedence: int16_t,
    pub production_id: uint16_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_2 {
    pub type_: uint8_t,
    pub state: TSStateId,
    pub extra: bool,
    pub repetition: bool,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct TableEntry {
    pub actions: *const TSParseAction,
    pub action_count: uint32_t,
    pub is_reusable: bool,
}
pub const TSParseActionTypeShift: C2RustUnnamed_3 = 0;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct LookaheadIterator {
    pub language: *const TSLanguage,
    pub data: *const uint16_t,
    pub group_end: *const uint16_t,
    pub state: TSStateId,
    pub table_value: uint16_t,
    pub section_index: uint16_t,
    pub group_count: uint16_t,
    pub is_small_state: bool,
    pub actions: *const TSParseAction,
    pub symbol: TSSymbol,
    pub next_state: TSStateId,
    pub action_count: uint16_t,
}
pub type C2RustUnnamed_3 = libc::c_uint;
pub const TSParseActionTypeRecover: C2RustUnnamed_3 = 3;
pub const TSParseActionTypeAccept: C2RustUnnamed_3 = 2;
pub const TSParseActionTypeReduce: C2RustUnnamed_3 = 1;
#[inline]
unsafe extern "C" fn ts_language_lookup(
    mut self_0: *const TSLanguage,
    mut state: TSStateId,
    mut symbol: TSSymbol,
) -> uint16_t {
    if state as libc::c_uint >= (*self_0).large_state_count {
        let mut index: uint32_t = *((*self_0).small_parse_table_map)
            .offset((state as libc::c_uint).wrapping_sub((*self_0).large_state_count) as isize);
        let mut data: *const uint16_t =
            &*((*self_0).small_parse_table).offset(index as isize) as *const uint16_t;
        let fresh0 = data;
        data = data.offset(1);
        let mut group_count: uint16_t = *fresh0;
        let mut i: libc::c_uint = 0 as libc::c_int as libc::c_uint;
        while i < group_count as libc::c_uint {
            let fresh1 = data;
            data = data.offset(1);
            let mut section_value: uint16_t = *fresh1;
            let fresh2 = data;
            data = data.offset(1);
            let mut symbol_count: uint16_t = *fresh2;
            let mut j: libc::c_uint = 0 as libc::c_int as libc::c_uint;
            while j < symbol_count as libc::c_uint {
                let fresh3 = data;
                data = data.offset(1);
                if *fresh3 as libc::c_int == symbol as libc::c_int {
                    return section_value;
                }
                j = j.wrapping_add(1);
            }
            i = i.wrapping_add(1);
        }
        return 0 as libc::c_int as uint16_t;
    } else {
        return *((*self_0).parse_table).offset(
            (state as libc::c_uint)
                .wrapping_mul((*self_0).symbol_count)
                .wrapping_add(symbol as libc::c_uint) as isize,
        );
    };
}
#[inline]
unsafe extern "C" fn ts_language_actions(
    mut self_0: *const TSLanguage,
    mut state: TSStateId,
    mut symbol: TSSymbol,
    mut count: *mut uint32_t,
) -> *const TSParseAction {
    let mut entry: TableEntry = TableEntry {
        actions: 0 as *const TSParseAction,
        action_count: 0,
        is_reusable: false,
    };
    ts_language_table_entry(self_0, state, symbol, &mut entry);
    *count = entry.action_count;
    return entry.actions;
}
#[inline]
unsafe extern "C" fn ts_language_lookaheads(
    mut self_0: *const TSLanguage,
    mut state: TSStateId,
) -> LookaheadIterator {
    let mut is_small_state: bool = state as libc::c_uint >= (*self_0).large_state_count;
    let mut data: *const uint16_t = 0 as *const uint16_t;
    let mut group_end: *const uint16_t = 0 as *const uint16_t;
    let mut group_count: uint16_t = 0 as libc::c_int as uint16_t;
    if is_small_state {
        let mut index: uint32_t = *((*self_0).small_parse_table_map)
            .offset((state as libc::c_uint).wrapping_sub((*self_0).large_state_count) as isize);
        data = &*((*self_0).small_parse_table).offset(index as isize) as *const uint16_t;
        group_end = data.offset(1 as libc::c_int as isize);
        group_count = *data;
    } else {
        data = (&*((*self_0).parse_table)
            .offset((state as libc::c_uint).wrapping_mul((*self_0).symbol_count) as isize)
            as *const uint16_t)
            .offset(-(1 as libc::c_int as isize));
    }
    return {
        let mut init = LookaheadIterator {
            language: self_0,
            data: data,
            group_end: group_end,
            state: 0,
            table_value: 0,
            section_index: 0,
            group_count: group_count,
            is_small_state: is_small_state,
            actions: 0 as *const TSParseAction,
            symbol: 65535 as libc::c_int as TSSymbol,
            next_state: 0 as libc::c_int as TSStateId,
            action_count: 0,
        };
        init
    };
}
#[inline]
unsafe extern "C" fn ts_lookahead_iterator__next(mut self_0: *mut LookaheadIterator) -> bool {
    if (*self_0).is_small_state {
        (*self_0).data = ((*self_0).data).offset(1);
        if (*self_0).data == (*self_0).group_end {
            if (*self_0).group_count as libc::c_int == 0 as libc::c_int {
                return 0 as libc::c_int != 0;
            }
            (*self_0).group_count = ((*self_0).group_count).wrapping_sub(1);
            let fresh4 = (*self_0).data;
            (*self_0).data = ((*self_0).data).offset(1);
            (*self_0).table_value = *fresh4;
            let fresh5 = (*self_0).data;
            (*self_0).data = ((*self_0).data).offset(1);
            let mut symbol_count: libc::c_uint = *fresh5 as libc::c_uint;
            (*self_0).group_end = ((*self_0).data).offset(symbol_count as isize);
            (*self_0).symbol = *(*self_0).data;
        } else {
            (*self_0).symbol = *(*self_0).data;
            return 1 as libc::c_int != 0;
        }
    } else {
        loop {
            (*self_0).data = ((*self_0).data).offset(1);
            (*self_0).symbol = ((*self_0).symbol).wrapping_add(1);
            if (*self_0).symbol as libc::c_uint >= (*(*self_0).language).symbol_count {
                return 0 as libc::c_int != 0;
            }
            (*self_0).table_value = *(*self_0).data;
            if !((*self_0).table_value == 0) {
                break;
            }
        }
    }
    if ((*self_0).symbol as libc::c_uint) < (*(*self_0).language).token_count {
        let mut entry: *const TSParseActionEntry = &*((*(*self_0).language).parse_actions)
            .offset((*self_0).table_value as isize)
            as *const TSParseActionEntry;
        (*self_0).action_count = (*entry).entry.count as uint16_t;
        (*self_0).actions = entry.offset(1 as libc::c_int as isize) as *const TSParseAction;
        (*self_0).next_state = 0 as libc::c_int as TSStateId;
    } else {
        (*self_0).action_count = 0 as libc::c_int as uint16_t;
        (*self_0).next_state = (*self_0).table_value;
    }
    return 1 as libc::c_int != 0;
}
#[no_mangle]
pub unsafe extern "C" fn ts_language_copy(mut self_0: *const TSLanguage) -> *const TSLanguage {
    if !self_0.is_null() && ts_language_is_wasm(self_0) as libc::c_int != 0 {
        ts_wasm_language_retain(self_0);
    }
    return self_0;
}
#[no_mangle]
pub unsafe extern "C" fn ts_language_delete(mut self_0: *const TSLanguage) {
    if !self_0.is_null() && ts_language_is_wasm(self_0) as libc::c_int != 0 {
        ts_wasm_language_release(self_0);
    }
}
#[no_mangle]
pub unsafe extern "C" fn ts_language_symbol_count(mut self_0: *const TSLanguage) -> uint32_t {
    return ((*self_0).symbol_count).wrapping_add((*self_0).alias_count);
}
#[no_mangle]
pub unsafe extern "C" fn ts_language_state_count(mut self_0: *const TSLanguage) -> uint32_t {
    return (*self_0).state_count;
}
#[no_mangle]
pub unsafe extern "C" fn ts_language_version(mut self_0: *const TSLanguage) -> uint32_t {
    return (*self_0).version;
}
#[no_mangle]
pub unsafe extern "C" fn ts_language_field_count(mut self_0: *const TSLanguage) -> uint32_t {
    return (*self_0).field_count;
}
#[no_mangle]
pub unsafe extern "C" fn ts_language_table_entry(
    mut self_0: *const TSLanguage,
    mut state: TSStateId,
    mut symbol: TSSymbol,
    mut result: *mut TableEntry,
) {
    if symbol as libc::c_int == -(1 as libc::c_int) as TSSymbol as libc::c_int
        || symbol as libc::c_int
            == -(1 as libc::c_int) as TSSymbol as libc::c_int - 1 as libc::c_int
    {
        (*result).action_count = 0 as libc::c_int as uint32_t;
        (*result).is_reusable = 0 as libc::c_int != 0;
        (*result).actions = 0 as *const TSParseAction;
    } else {
        if (symbol as libc::c_uint) < (*self_0).token_count {
        } else {
            panic!();
        }
        let mut action_index: uint32_t = ts_language_lookup(self_0, state, symbol) as uint32_t;
        let mut entry: *const TSParseActionEntry =
            &*((*self_0).parse_actions).offset(action_index as isize) as *const TSParseActionEntry;
        (*result).action_count = (*entry).entry.count as uint32_t;
        (*result).is_reusable = (*entry).entry.reusable;
        (*result).actions = entry.offset(1 as libc::c_int as isize) as *const TSParseAction;
    };
}
#[no_mangle]
pub unsafe extern "C" fn ts_language_symbol_metadata(
    mut self_0: *const TSLanguage,
    mut symbol: TSSymbol,
) -> TSSymbolMetadata {
    if symbol as libc::c_int == -(1 as libc::c_int) as TSSymbol as libc::c_int {
        return {
            let mut init = TSSymbolMetadata {
                visible: 1 as libc::c_int != 0,
                named: 1 as libc::c_int != 0,
                supertype: false,
            };
            init
        };
    } else if symbol as libc::c_int
        == -(1 as libc::c_int) as TSSymbol as libc::c_int - 1 as libc::c_int
    {
        return {
            let mut init = TSSymbolMetadata {
                visible: 0 as libc::c_int != 0,
                named: 0 as libc::c_int != 0,
                supertype: false,
            };
            init
        };
    } else {
        return *((*self_0).symbol_metadata).offset(symbol as isize);
    };
}
#[no_mangle]
pub unsafe extern "C" fn ts_language_public_symbol(
    mut self_0: *const TSLanguage,
    mut symbol: TSSymbol,
) -> TSSymbol {
    if symbol as libc::c_int == -(1 as libc::c_int) as TSSymbol as libc::c_int {
        return symbol;
    }
    return *((*self_0).public_symbol_map).offset(symbol as isize);
}
#[no_mangle]
pub unsafe extern "C" fn ts_language_next_state(
    mut self_0: *const TSLanguage,
    mut state: TSStateId,
    mut symbol: TSSymbol,
) -> TSStateId {
    if symbol as libc::c_int == -(1 as libc::c_int) as TSSymbol as libc::c_int
        || symbol as libc::c_int
            == -(1 as libc::c_int) as TSSymbol as libc::c_int - 1 as libc::c_int
    {
        return 0 as libc::c_int as TSStateId;
    } else if (symbol as libc::c_uint) < (*self_0).token_count {
        let mut count: uint32_t = 0;
        let mut actions: *const TSParseAction =
            ts_language_actions(self_0, state, symbol, &mut count);
        if count > 0 as libc::c_int as libc::c_uint {
            let mut action: TSParseAction =
                *actions.offset(count.wrapping_sub(1 as libc::c_int as libc::c_uint) as isize);
            if action.type_ as libc::c_int == TSParseActionTypeShift as libc::c_int {
                return (if action.shift.extra as libc::c_int != 0 {
                    state as libc::c_int
                } else {
                    action.shift.state as libc::c_int
                }) as TSStateId;
            }
        }
        return 0 as libc::c_int as TSStateId;
    } else {
        return ts_language_lookup(self_0, state, symbol);
    };
}
#[no_mangle]
pub unsafe extern "C" fn ts_language_symbol_name(
    mut self_0: *const TSLanguage,
    mut symbol: TSSymbol,
) -> *const libc::c_char {
    if symbol as libc::c_int == -(1 as libc::c_int) as TSSymbol as libc::c_int {
        return b"ERROR\0" as *const u8 as *const libc::c_char;
    } else if symbol as libc::c_int
        == -(1 as libc::c_int) as TSSymbol as libc::c_int - 1 as libc::c_int
    {
        return b"_ERROR\0" as *const u8 as *const libc::c_char;
    } else if (symbol as libc::c_uint) < ts_language_symbol_count(self_0) {
        return *((*self_0).symbol_names).offset(symbol as isize);
    } else {
        return 0 as *const libc::c_char;
    };
}
#[no_mangle]
pub unsafe extern "C" fn ts_language_symbol_for_name(
    mut self_0: *const TSLanguage,
    mut string: *const libc::c_char,
    mut length: uint32_t,
    mut is_named: bool,
) -> TSSymbol {
    if strncmp(
        string,
        b"ERROR\0" as *const u8 as *const libc::c_char,
        length as libc::c_ulong,
    ) == 0
    {
        return -(1 as libc::c_int) as TSSymbol;
    }
    let mut count: uint16_t = ts_language_symbol_count(self_0) as uint16_t;
    let mut i: TSSymbol = 0 as libc::c_int as TSSymbol;
    while (i as libc::c_int) < count as libc::c_int {
        let mut metadata: TSSymbolMetadata = ts_language_symbol_metadata(self_0, i);
        if !(!metadata.visible && !metadata.supertype
            || metadata.named as libc::c_int != is_named as libc::c_int)
        {
            let mut symbol_name: *const libc::c_char = *((*self_0).symbol_names).offset(i as isize);
            if strncmp(symbol_name, string, length as libc::c_ulong) == 0
                && *symbol_name.offset(length as isize) == 0
            {
                return *((*self_0).public_symbol_map).offset(i as isize);
            }
        }
        i = i.wrapping_add(1);
    }
    return 0 as libc::c_int as TSSymbol;
}
#[no_mangle]
pub unsafe extern "C" fn ts_language_symbol_type(
    mut self_0: *const TSLanguage,
    mut symbol: TSSymbol,
) -> TSSymbolType {
    let mut metadata: TSSymbolMetadata = ts_language_symbol_metadata(self_0, symbol);
    if metadata.named as libc::c_int != 0 && metadata.visible as libc::c_int != 0 {
        return TSSymbolTypeRegular;
    } else if metadata.visible {
        return TSSymbolTypeAnonymous;
    } else {
        return TSSymbolTypeAuxiliary;
    };
}
#[no_mangle]
pub unsafe extern "C" fn ts_language_field_name_for_id(
    mut self_0: *const TSLanguage,
    mut id: TSFieldId,
) -> *const libc::c_char {
    let mut count: uint32_t = ts_language_field_count(self_0);
    if count != 0 && id as libc::c_uint <= count {
        return *((*self_0).field_names).offset(id as isize);
    } else {
        return 0 as *const libc::c_char;
    };
}
#[no_mangle]
pub unsafe extern "C" fn ts_language_field_id_for_name(
    mut self_0: *const TSLanguage,
    mut name: *const libc::c_char,
    mut name_length: uint32_t,
) -> TSFieldId {
    let mut count: uint16_t = ts_language_field_count(self_0) as uint16_t;
    let mut i: TSSymbol = 1 as libc::c_int as TSSymbol;
    while (i as libc::c_int) < count as libc::c_int + 1 as libc::c_int {
        match strncmp(
            name,
            *((*self_0).field_names).offset(i as isize),
            name_length as libc::c_ulong,
        ) {
            0 => {
                if *(*((*self_0).field_names).offset(i as isize)).offset(name_length as isize)
                    as libc::c_int
                    == 0 as libc::c_int
                {
                    return i;
                }
            }
            -1 => return 0 as libc::c_int as TSFieldId,
            _ => {}
        }
        i = i.wrapping_add(1);
    }
    return 0 as libc::c_int as TSFieldId;
}
#[no_mangle]
pub unsafe extern "C" fn ts_lookahead_iterator_new(
    mut self_0: *const TSLanguage,
    mut state: TSStateId,
) -> *mut TSLookaheadIterator {
    if state as libc::c_uint >= (*self_0).state_count {
        return 0 as *mut TSLookaheadIterator;
    }
    let mut iterator: *mut LookaheadIterator =
        crate::core::alloc::ts_malloc(::core::mem::size_of::<LookaheadIterator>() as libc::c_ulong)
            as *mut LookaheadIterator;
    *iterator = ts_language_lookaheads(self_0, state);
    return iterator as *mut TSLookaheadIterator;
}
#[no_mangle]
pub unsafe extern "C" fn ts_lookahead_iterator_delete(mut self_0: *mut TSLookaheadIterator) {
    crate::core::alloc::ts_free(self_0 as *mut libc::c_void);
}
#[no_mangle]
pub unsafe extern "C" fn ts_lookahead_iterator_reset_state(
    mut self_0: *mut TSLookaheadIterator,
    mut state: TSStateId,
) -> bool {
    let mut iterator: *mut LookaheadIterator = self_0 as *mut LookaheadIterator;
    if state as libc::c_uint >= (*(*iterator).language).state_count {
        return 0 as libc::c_int != 0;
    }
    *iterator = ts_language_lookaheads((*iterator).language, state);
    return 1 as libc::c_int != 0;
}
#[no_mangle]
pub unsafe extern "C" fn ts_lookahead_iterator_language(
    mut self_0: *const TSLookaheadIterator,
) -> *const TSLanguage {
    let mut iterator: *const LookaheadIterator = self_0 as *const LookaheadIterator;
    return (*iterator).language;
}
#[no_mangle]
pub unsafe extern "C" fn ts_lookahead_iterator_reset(
    mut self_0: *mut TSLookaheadIterator,
    mut language: *const TSLanguage,
    mut state: TSStateId,
) -> bool {
    if state as libc::c_uint >= (*language).state_count {
        return 0 as libc::c_int != 0;
    }
    let mut iterator: *mut LookaheadIterator = self_0 as *mut LookaheadIterator;
    *iterator = ts_language_lookaheads(language, state);
    return 1 as libc::c_int != 0;
}
#[no_mangle]
pub unsafe extern "C" fn ts_lookahead_iterator_next(mut self_0: *mut TSLookaheadIterator) -> bool {
    let mut iterator: *mut LookaheadIterator = self_0 as *mut LookaheadIterator;
    return ts_lookahead_iterator__next(iterator);
}
#[no_mangle]
pub unsafe extern "C" fn ts_lookahead_iterator_current_symbol(
    mut self_0: *const TSLookaheadIterator,
) -> TSSymbol {
    let mut iterator: *const LookaheadIterator = self_0 as *const LookaheadIterator;
    return (*iterator).symbol;
}
#[no_mangle]
pub unsafe extern "C" fn ts_lookahead_iterator_current_symbol_name(
    mut self_0: *const TSLookaheadIterator,
) -> *const libc::c_char {
    let mut iterator: *const LookaheadIterator = self_0 as *const LookaheadIterator;
    return ts_language_symbol_name((*iterator).language, (*iterator).symbol);
}