Rizin
unix-like reverse engineering framework and cli tools
tags.h File Reference
#include <stdint.h>
#include "tree_sitter/api.h"

Go to the source code of this file.

Classes

struct  TSTag
 

Typedefs

typedef struct TSTagger TSTagger
 
typedef struct TSTagsBuffer TSTagsBuffer
 

Enumerations

enum  TSTagsError {
  TSTagsOk , TSTagsUnknownScope , TSTagsTimeout , TSTagsInvalidLanguage ,
  TSTagsInvalidUtf8 , TSTagsInvalidRegex , TSTagsInvalidQuery , TSTagsInvalidCapture
}
 

Functions

TSTaggerts_tagger_new ()
 
void ts_tagger_delete (TSTagger *)
 
TSTagsError ts_tagger_add_language (TSTagger *self, const char *scope_name, const TSLanguage *language, const char *tags_query, const char *locals_query, uint32_t tags_query_len, uint32_t locals_query_len)
 
TSTagsError ts_tagger_tag (const TSTagger *self, const char *scope_name, const char *source_code, uint32_t source_code_len, TSTagsBuffer *output, const size_t *cancellation_flag)
 
TSTagsBufferts_tags_buffer_new ()
 
void ts_tags_buffer_delete (TSTagsBuffer *)
 
const TSTagts_tags_buffer_tags (const TSTagsBuffer *)
 
uint32_t ts_tags_buffer_tags_len (const TSTagsBuffer *)
 
const char * ts_tags_buffer_docs (const TSTagsBuffer *)
 
uint32_t ts_tags_buffer_docs_len (const TSTagsBuffer *)
 
const char ** ts_tagger_syntax_kinds_for_scope_name (const TSTagger *, const char *scope_name, uint32_t *len)
 
bool ts_tags_buffer_found_parse_error (const TSTagsBuffer *)
 

Typedef Documentation

◆ TSTagger

typedef struct TSTagger TSTagger

Definition at line 1 of file tags.h.

◆ TSTagsBuffer

typedef struct TSTagsBuffer TSTagsBuffer

Definition at line 1 of file tags.h.

Enumeration Type Documentation

◆ TSTagsError

Enumerator
TSTagsOk 
TSTagsUnknownScope 
TSTagsTimeout 
TSTagsInvalidLanguage 
TSTagsInvalidUtf8 
TSTagsInvalidRegex 
TSTagsInvalidQuery 
TSTagsInvalidCapture 

Definition at line 11 of file tags.h.

11  {
12  TSTagsOk,
20 } TSTagsError;
TSTagsError
Definition: tags.h:11
@ TSTagsInvalidLanguage
Definition: tags.h:15
@ TSTagsUnknownScope
Definition: tags.h:13
@ TSTagsOk
Definition: tags.h:12
@ TSTagsInvalidCapture
Definition: tags.h:19
@ TSTagsInvalidRegex
Definition: tags.h:17
@ TSTagsTimeout
Definition: tags.h:14
@ TSTagsInvalidUtf8
Definition: tags.h:16
@ TSTagsInvalidQuery
Definition: tags.h:18

Function Documentation

◆ ts_tagger_add_language()

TSTagsError ts_tagger_add_language ( TSTagger self,
const char *  scope_name,
const TSLanguage language,
const char *  tags_query,
const char *  locals_query,
uint32_t  tags_query_len,
uint32_t  locals_query_len 
)

◆ ts_tagger_delete()

void ts_tagger_delete ( TSTagger )

◆ ts_tagger_new()

TSTagger* ts_tagger_new ( )

◆ ts_tagger_syntax_kinds_for_scope_name()

const char** ts_tagger_syntax_kinds_for_scope_name ( const TSTagger ,
const char *  scope_name,
uint32_t len 
)

◆ ts_tagger_tag()

TSTagsError ts_tagger_tag ( const TSTagger self,
const char *  scope_name,
const char *  source_code,
uint32_t  source_code_len,
TSTagsBuffer output,
const size_t cancellation_flag 
)

◆ ts_tags_buffer_delete()

void ts_tags_buffer_delete ( TSTagsBuffer )

◆ ts_tags_buffer_docs()

const char* ts_tags_buffer_docs ( const TSTagsBuffer )

◆ ts_tags_buffer_docs_len()

uint32_t ts_tags_buffer_docs_len ( const TSTagsBuffer )

◆ ts_tags_buffer_found_parse_error()

bool ts_tags_buffer_found_parse_error ( const TSTagsBuffer )

◆ ts_tags_buffer_new()

TSTagsBuffer* ts_tags_buffer_new ( )

◆ ts_tags_buffer_tags()

const TSTag* ts_tags_buffer_tags ( const TSTagsBuffer )

◆ ts_tags_buffer_tags_len()

uint32_t ts_tags_buffer_tags_len ( const TSTagsBuffer )