(self, parent_breakpoint: &FunctionDef)
| 53 | |
| 54 | impl FunctionType { |
| 55 | pub fn into_nested_func(self, parent_breakpoint: &FunctionDef) -> FunctionType { |
| 56 | let parent_func = parent_breakpoint.ty.fn_name().to_string(); |
| 57 | match self { |
| 58 | FunctionType::FreeFn { |
| 59 | fn_name, |
| 60 | is_async, |
| 61 | return_type, |
| 62 | } => FunctionType::NestedFn { |
| 63 | fn_name, |
| 64 | parent_func, |
| 65 | is_async, |
| 66 | return_type, |
| 67 | }, |
| 68 | FunctionType::ImplFn { |
| 69 | fn_name, |
| 70 | is_async, |
| 71 | return_type, |
| 72 | .. |
| 73 | } => FunctionType::NestedFn { |
| 74 | fn_name, |
| 75 | parent_func, |
| 76 | is_async, |
| 77 | return_type, |
| 78 | }, |
| 79 | FunctionType::ImplTraitFn { |
| 80 | fn_name, |
| 81 | is_async, |
| 82 | return_type, |
| 83 | .. |
| 84 | } => FunctionType::NestedFn { |
| 85 | fn_name, |
| 86 | parent_func, |
| 87 | is_async, |
| 88 | return_type, |
| 89 | }, |
| 90 | FunctionType::TraitDefaultFn { |
| 91 | fn_name, |
| 92 | is_async, |
| 93 | return_type, |
| 94 | .. |
| 95 | } => FunctionType::NestedFn { |
| 96 | fn_name, |
| 97 | parent_func, |
| 98 | is_async, |
| 99 | return_type, |
| 100 | }, |
| 101 | FunctionType::NestedFn { |
| 102 | fn_name, |
| 103 | is_async, |
| 104 | return_type, |
| 105 | .. |
| 106 | } => FunctionType::NestedFn { |
| 107 | fn_name, |
| 108 | parent_func, |
| 109 | is_async, |
| 110 | return_type, |
| 111 | }, |
| 112 | } |
no test coverage detected