Skip to content

Commit

Permalink
Remove methods from ValueType and EnumType
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernthedev committed Sep 22, 2023
1 parent c031465 commit 1ca866b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/handlers/value_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,17 @@ fn unified_type_handler(cpp_type: &mut CppType, base_ctor: &str) {
constructor.body = Some(vec![]);
constructor.is_constexpr = true;
});

// remove all method decl/impl
cpp_type.declarations.retain(|t| {
!matches!(
t.as_ref(),
CppMember::MethodDecl(_)
)
});

// Remove method size structs
cpp_type.nonmember_implementations.clear();
}
fn value_type_handler(cpp_type: &mut CppType) {
println!("Found System.ValueType, removing inheritance!");
Expand Down

0 comments on commit 1ca866b

Please sign in to comment.