MCPcopy Create free account
hub / github.com/deeptir18/cornflakes / get_function_params

Method get_function_params

cornflakes-codegen/src/header_utils.rs:539–553  ·  view source on GitHub ↗
(&self, fd: &ProtoReprInfo)

Source from the content-addressed store, hash-verified

537 }
538
539 pub fn get_function_params(&self, fd: &ProtoReprInfo) -> Result<Vec<String>> {
540 let mut ret: Vec<String> = Vec::default();
541 if fd.hybrid_mode() {
542 if self.contains_variable_list(&fd.get_message_map())? {
543 ret.insert(0, "'arena".to_string());
544 // TODO: hack for c codegen
545 ret.push(format!("{}: 'arena", fd.get_lifetime()));
546 } else {
547 ret.push(fd.get_lifetime());
548 }
549 return Ok(ret);
550 }
551 ret.push(fd.get_lifetime());
552 Ok(ret)
553 }
554
555 pub fn get_type_params_hybrid_object_ffi(
556 &self,

Callers 5

add_field_methodsFunction · 0.80
add_new_inFunction · 0.80
add_freeFunction · 0.80

Calls 7

hybrid_modeMethod · 0.80
get_message_mapMethod · 0.80
insertMethod · 0.80
pushMethod · 0.80
get_lifetimeMethod · 0.80
to_stringMethod · 0.45

Tested by

no test coverage detected