MCPcopy Create free account
hub / github.com/FuzzAnything/PromptFuzz / get_decl_name

Method get_decl_name

src/ast/kind.rs:725–735  ·  view source on GitHub ↗
(&self, var_name: &str)

Source from the content-addressed store, hash-verified

723 }
724
725 pub fn get_decl_name(&self, var_name: &str) -> String {
726 let mut ty = self.get_type().get_type_name();
727 if let Some(pos) = ty.find('[') {
728 ty.insert(pos, ' ');
729 ty.insert_str(pos + 1, var_name);
730 return ty;
731 }
732 ty.push(' ');
733 ty.push_str(var_name);
734 ty
735 }
736
737 pub fn get_len(&self) -> usize {
738 self.array_filler.len()

Callers 2

makeup_call_list_argMethod · 0.80

Calls 3

get_type_nameMethod · 0.80
get_typeMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected