Home
last modified time | relevance | path

Searched refs:is_optional (Results 1 – 7 of 7) sorted by relevance

/thrift-3.4.0/compiler/cpp/src/thrift/generate/
Dt_rs_generator.cc426 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 …]
Dt_delphi_generator.cc3931 bool is_optional = ((*f_iter)->get_req() != t_field::T_REQUIRED); in generate_delphi_struct_tostring_impl() local
3932 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() local
3957 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()
Dt_go_generator.cc1069 bool is_optional = false; in render_const_value() local
1073 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() local
1271 if (is_optional && !has_default) { in generate_go_struct_definition()
Dt_java_generator.cc2050 bool is_optional = (*m_iter)->get_req() == t_field::T_OPTIONAL; in generate_java_struct_equality() local
2058 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() local
2105 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()
Dt_swift_generator.cc187 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() argument
2558 if (is_optional) { in type_name()
Dt_javame_generator.cc1204 bool is_optional = (*m_iter)->get_req() == t_field::T_OPTIONAL; in generate_java_struct_equality() local
1212 if (is_optional || can_be_null) { in generate_java_struct_equality()
Dt_cpp_generator.cc1387 bool is_optional = (*m_iter)->get_req() == t_field::T_OPTIONAL; in generate_struct_definition() local
1388 if (is_optional) { in generate_struct_definition()