24#include <tree_sitter/api.h>
29namespace fs = std::filesystem;
64 void write_output(
const fs::path type_path,
const fs::path& relative_path,
65 const std::string& function_name,
const std::string& content);
75 std::string create_info_json(
int line_declaration,
int start_number_line,
76 int end_number_line,
const fs::path& relative_path,
77 const std::string& function_name);
85 const fs::path& file_path,
const fs::path& folder_path,
89 int minimum_lines = 0);
99 const fs::path& folder_path,
102 int minimum_lines = 0,
Main function extraction processor.
int process(const fs::path &folder_path, std::function< void(const FunctionData &)> on_function, SkipStats &stats, int minimum_lines=0, Granularity granularity=Granularity::Function)
Processes all files in directory.
FunctionBreaker()=default
Constructs function breaker and processes directory.
Granularity
Comparison granularity used when breaking the codebase.