Skip to content

Commit

Permalink
Update the files structures to easily add new nodes types
Browse files Browse the repository at this point in the history
  • Loading branch information
AmrDeveloper committed Apr 19, 2024
1 parent 324acb7 commit 04445cc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/data_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use gitql_engine::data_provider::select_values;
use gitql_engine::data_provider::DataProvider;
use gitql_engine::engine_evaluator::evaluate_expression;

use crate::clang_function_visitor;
use crate::visitor::function;

pub struct ClangAstDataProvider {
pub paths: Vec<String>,
Expand Down Expand Up @@ -85,7 +85,7 @@ fn select_functions(
let values_len = fields_values.len() as i64;
let padding = names_len - values_len;

let ast_functions = clang_function_visitor::select_clang_functions(path);
let ast_functions = function::select_clang_functions(path);
for function in ast_functions.iter() {
let mut values: Vec<Value> = Vec::with_capacity(fields_names.len());

Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ use schema::TABLES_FIELDS_NAMES;
use schema::TABLES_FIELDS_TYPES;

mod arguments;
mod clang_function_visitor;
mod data_provider;
mod schema;
mod visitor;

fn main() {
if cfg!(debug_assertions) {
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions src/visitor/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub mod function;

0 comments on commit 04445cc

Please sign in to comment.