ArKanjo 0.5.1
A tool for find code duplicated functions in codebases
TreeSitterParser Class Reference

#include <tree_sitter_parser.hpp>

Public Member Functions

 TreeSitterParser ()=default
 

Static Public Member Functions

static void process_file (const fs::path &file_path, const fs::path &relative_path, const std::string &source_code, std::function< void(const FunctionData &)> callback, SkipStats &stats)
 
static void process_file_as_unit (const fs::path &file_path, const fs::path &relative_path, const std::string &source_code, std::function< void(const FunctionData &)> callback, SkipStats &stats)
 

Detailed Description

Definition at line 18 of file tree_sitter_parser.hpp.

Constructor & Destructor Documentation

◆ TreeSitterParser()

TreeSitterParser::TreeSitterParser ( )
explicitdefault

Member Function Documentation

◆ process_file()

void TreeSitterParser::process_file ( const fs::path &  file_path,
const fs::path &  relative_path,
const std::string &  source_code,
std::function< void(const FunctionData &)>  callback,
SkipStats &  stats 
)
static

Definition at line 251 of file tree_sitter_parser.cpp.

◆ process_file_as_unit()

void TreeSitterParser::process_file_as_unit ( const fs::path &  file_path,
const fs::path &  relative_path,
const std::string &  source_code,
std::function< void(const FunctionData &)>  callback,
SkipStats &  stats 
)
static

Definition at line 268 of file tree_sitter_parser.cpp.


The documentation for this class was generated from the following files: