MCPcopy Create free account
hub / github.com/SeaQL/FireDBG.for.Rust / into_nested_func

Method into_nested_func

parser/src/def/function.rs:55–113  ·  view source on GitHub ↗
(self, parent_breakpoint: &FunctionDef)

Source from the content-addressed store, hash-verified

53
54impl 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 }

Callers 1

parse_nested_funcFunction · 0.80

Calls 2

to_stringMethod · 0.80
fn_nameMethod · 0.80

Tested by

no test coverage detected