Searched refs:is_optional (Results 1 – 7 of 7) sorted by relevance
426 bool is_optional(t_field::e_req req);1047 if (!is_optional(member->get_req())) { in render_struct_definition()1067 rust_type = is_optional(member_req) ? "Option<" + rust_type + ">" : rust_type; in render_struct_definition()1170 if (is_optional(member_req)) { in render_struct_constructor()1208 if (is_optional(member_req)) { in render_struct_constructor()1244 if (is_optional(member_req)) { in render_struct_constructor()1500 if (is_optional(req)) { in render_struct_field_sync_write()1756 if (!is_optional(req)) { in render_struct_sync_read()1779 if (is_optional(req)) { in render_struct_sync_read()2402 rust_type = is_optional(field_req) ? "Option<" + rust_type + ">" : rust_type; in struct_to_declaration()[all …]
3931 bool is_optional = ((*f_iter)->get_req() != t_field::T_REQUIRED); in generate_delphi_struct_tostring_impl() local3932 if (is_optional) { in generate_delphi_struct_tostring_impl()3954 bool is_optional = ((*f_iter)->get_req() != t_field::T_REQUIRED); in generate_delphi_struct_tostring_impl() local3957 if (is_optional) { in generate_delphi_struct_tostring_impl()3963 if (is_optional) { in generate_delphi_struct_tostring_impl()3972 if (is_optional) { in generate_delphi_struct_tostring_impl()4004 if (null_allowed || is_optional) { in generate_delphi_struct_tostring_impl()4009 if (!is_optional) { in generate_delphi_struct_tostring_impl()
1069 bool is_optional = false; in render_const_value() local1073 is_optional = is_pointer_field(*f_iter); in render_const_value()1081 << render_const_value(field_type, v_iter->second, name, is_optional) << "," << endl; in render_const_value()1270 bool is_optional = (*m_iter)->get_req() == t_field::T_OPTIONAL; in generate_go_struct_definition() local1271 if (is_optional && !has_default) { in generate_go_struct_definition()
2050 bool is_optional = (*m_iter)->get_req() == t_field::T_OPTIONAL; in generate_java_struct_equality() local2058 if (is_optional || can_be_null) { in generate_java_struct_equality()2101 bool is_optional = (*m_iter)->get_req() == t_field::T_OPTIONAL; in generate_java_struct_equality() local2105 if (is_optional || can_be_null) { in generate_java_struct_equality()2110 if (is_optional || can_be_null) { in generate_java_struct_equality()2149 if (is_optional || can_be_null) { in generate_java_struct_equality()
187 string type_name(t_type* ttype, bool is_optional=false, bool is_forced=false);2535 string t_swift_generator::type_name(t_type* ttype, bool is_optional, bool is_forced) { in type_name() argument2558 if (is_optional) { in type_name()
1204 bool is_optional = (*m_iter)->get_req() == t_field::T_OPTIONAL; in generate_java_struct_equality() local1212 if (is_optional || can_be_null) { in generate_java_struct_equality()
1387 bool is_optional = (*m_iter)->get_req() == t_field::T_OPTIONAL; in generate_struct_definition() local1388 if (is_optional) { in generate_struct_definition()