7 return self->symbol_count +
self->alias_count;
15 return self->field_count;
29 assert(symbol < self->token_count);
47 return self->symbol_metadata[symbol];
56 return self->public_symbol_map[symbol];
68 return self->symbol_names[symbol];
85 const char *symbol_name =
self->symbol_names[
i];
86 if (!strncmp(symbol_name,
string,
length) && !symbol_name[
length]) {
87 return self->public_symbol_map[
i];
113 return self->field_names[
id];
126 switch (strncmp(
name, self->field_names[
i], name_length)) {
128 if (self->field_names[
i][name_length] == 0)
return i;
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void count
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence static length const void static len static semflg const void static shmflg const struct timespec struct timespec static rem const char static group const void length
const char * ts_language_symbol_name(const TSLanguage *self, TSSymbol symbol)
TSSymbol ts_language_public_symbol(const TSLanguage *self, TSSymbol symbol)
TSSymbolType ts_language_symbol_type(const TSLanguage *self, TSSymbol symbol)
const char * ts_language_field_name_for_id(const TSLanguage *self, TSFieldId id)
uint32_t ts_language_version(const TSLanguage *self)
uint32_t ts_language_symbol_count(const TSLanguage *self)
void ts_language_table_entry(const TSLanguage *self, TSStateId state, TSSymbol symbol, TableEntry *result)
TSSymbolMetadata ts_language_symbol_metadata(const TSLanguage *self, TSSymbol symbol)
TSFieldId ts_language_field_id_for_name(const TSLanguage *self, const char *name, uint32_t name_length)
TSSymbol ts_language_symbol_for_name(const TSLanguage *self, const char *string, uint32_t length, bool is_named)
uint32_t ts_language_field_count(const TSLanguage *self)
static uint16_t ts_language_lookup(const TSLanguage *self, TSStateId state, TSSymbol symbol)
#define ts_builtin_sym_error_repeat
assert(limit<=UINT32_MAX/2)
#define ts_builtin_sym_error
const TSParseAction * actions