25using json = nlohmann::json;
35 string LINE_DECLARATION_JSON =
"line_declaration";
36 string START_NUMBER_LINE_JSON =
"start_number_line";
37 string END_NUMBER_LINE_JSON =
"end_number_line";
39 string FUNCTION_PREFIX_PRINT =
"Function Name: ";
40 string RELATIVE_PATH_PRINT =
"Relative Path: ";
41 string LINE_DECLARATION_PRINT =
"Starts on line: ";
42 string END_DECLARATION_PRINT =
"Ends on line: ";
43 string NUMBER_LINE_PRINT =
"Total number of lines: ";
46 vector<string> content;
47 vector<string> header;
48 int start_number_line;
Represents a code function with its content and metadata.
vector< string > build_all_content()
Builds combined content of header and source.
array< int, 3 > get_scope_function_in_file()
Gets the function's line number scope.
void print_basic_info()
Prints formatted function information to console.
vector< string > get_header()
Gets the function's header content.
Function(Path _path)
Constructs a Function object.
int number_of_lines()
Calculates the total number of lines in the function.
Path manipulation class for tool-specific directory structure.
Path abstraction for temporary codebase.
Defines utility functions used across all files.