Home
last modified time | relevance | path

Searched refs:get_key (Results 1 – 25 of 30) sorted by relevance

12

/thrift-3.4.0/compiler/cpp/src/thrift/audit/
Dt_audit.cpp222 …thrift_audit_failure("Struct Field Type Changed for Id = %d in %s \n", newField->get_key(), oldStr… in compare_struct_field()
231 …lure("Struct Field Requiredness Changed for Id = %d in %s \n", newField->get_key(), oldStructName.… in compare_struct_field()
237 …thrift_audit_warning(1, "Default value changed for Id = %d in %s \n", newField->get_key(), oldStru… in compare_struct_field()
244 …thrift_audit_warning(1, "Struct field name changed for Id = %d in %s\n", newField->get_key(), oldS… in compare_struct_field()
264 …ilure("Struct Field removed for Id = %d in %s \n", (*oldStructMemberIt)->get_key(), structName.c_s… in compare_single_struct()
272 …Required Struct Field Added for Id = %d in %s \n", (*newStructMemberIt)->get_key(), structName.c_s… in compare_single_struct()
276 else if((*newStructMemberIt)->get_key() == (*oldStructMemberIt)->get_key()) in compare_single_struct()
284 else if((*newStructMemberIt)->get_key() < (*oldStructMemberIt)->get_key()) in compare_single_struct()
288 …eld is added in the middle with Id = %d in %s\n", (*newStructMemberIt)->get_key(), structName.c_… in compare_single_struct()
291 else if((*newStructMemberIt)->get_key() > (*oldStructMemberIt)->get_key()) in compare_single_struct()
[all …]
/thrift-3.4.0/compiler/cpp/src/thrift/parse/
Dt_field.h70 int32_t get_key() const { return key_; } in get_key() function
105 return a->get_key() < b->get_key(); in operator()
/thrift-3.4.0/compiler/cpp/src/thrift/generate/
Dt_d_generator.cc300 …ta << "TParamMeta(`" << suffix_if_reserved((*p_iter)->get_name()) << "`, " << (*p_iter)->get_key(); in generate_service()
325 << (*ex_iter)->get_key() << ", `" << (*ex_iter)->get_type()->get_name() << "`)"; in generate_service()
476 …t) << "TFieldMeta(`" << suffix_if_reserved((*m_iter)->get_name()) << "`, " << (*m_iter)->get_key(); in print_struct_definition()
Dt_netstd_generator.cc1145 out << indent() << "case " << (*f_iter)->get_key() << ":" << endl; in generate_netstd_struct_reader()
1274 << indent() << tmpvar << ".ID = " << (*f_iter)->get_key() << ";" << endl in generate_netstd_struct_writer()
1348 << indent() << tmpvar << ".ID = " << (*f_iter)->get_key() << ";" << endl in generate_netstd_struct_result_writer()
1495 …out << indent() << (*f_iter)->get_key() << " => Equals(As_" << (*f_iter)->get_name() << ", other.A… in generate_netstd_union_definition()
1508 out << indent() << "case " << (*f_iter)->get_key() << ":" << endl; in generate_netstd_union_definition()
1532 …out << indent() << (*f_iter)->get_key() << " => As_" << (*f_iter)->get_name() << null_coalesce << … in generate_netstd_union_definition()
1548 out << indent() << "case " << (*f_iter)->get_key() << ":" << endl; in generate_netstd_union_definition()
1580 …out << indent() << (*f_iter)->get_key() << " => new " << (*f_iter)->get_name() << "(As_" << (*f_it… in generate_netstd_union_definition()
1594 out << indent() << "case " << (*f_iter)->get_key() << ":" << endl; in generate_netstd_union_definition()
1660 out << indent() << "return (" << tfield->get_key() << " == Isset) && (Data != null)" in generate_netstd_union_class()
[all …]
Dt_st_generator.cc727 << "; id: " << (*fld_iter)->get_key() << ")." << endl; in struct_writer()
771 out << indent() << desc << " id = " << (*fld_iter)->get_key() << " ifTrue: [" << endl; in struct_reader()
868 << "'; type: " << type_to_enum((*fld_iter)->get_type()) << "; id: " << (*fld_iter)->get_key() in generate_send_method()
895 t_field* exception = new t_field((*f_iter)->get_type(), "exception", (*f_iter)->get_key()); in generate_recv_method()
Dt_swift_generator.cc708 …rted.begin(), sorted.end(), [](t_field *a, t_field *b) { return (a->get_key() < b->get_key()); } ); in generate_swift_struct()
1009 out << "\"" << (*f_iter)->get_name() << "\": " << (*f_iter)->get_key() << ", "; in generate_swift_struct_thrift_extension()
1062 …indent(out) << "case (" << (*f_iter)->get_key() << ", " << type_to_enum((*f_iter)->get_type()) << … in generate_swift_union_reader()
1168 …indent(out) << "case (" << (*f_iter)->get_key() << ", " << type_to_enum((*f_iter)->get_type()) << … in generate_swift_struct_reader()
1277 …indent(out) << "case (" << (*f_iter)->get_key() << ", " << type_to_enum((*f_iter)->get_type()) << … in generate_swift_struct_reader()
1370 << "id: " << tfield->get_key() << ")" << endl; in generate_old_swift_struct_writer()
1416 << "id: " << tfield->get_key() << ")" << endl; in generate_old_swift_struct_result_writer()
1579 t_field *ox = new t_field(x->get_type(), x->get_name(), x->get_key()); in generate_function_helpers()
Dt_cl_generator.cc401 " :id " << (*m_iter)->get_key(); in generate_cl_struct_internal()
532 (*f_iter)->get_key() << ")"; in argument_list()
Dt_go_generator.cc1239 if (sorted_members.empty() || (sorted_members[0]->get_key() >= 0)) { in generate_go_struct_definition()
1247 if (sorted_keys_pos != (*m_iter)->get_key()) { in generate_go_struct_definition()
1249 while (sorted_keys_pos != (*m_iter)->get_key()) { in generate_go_struct_definition()
1523 field_id = (*f_iter)->get_key(); in generate_go_struct_reader()
1611 int32_t field_id = (*f_iter)->get_key(); in generate_go_struct_reader()
1664 field_id = (*f_iter)->get_key(); in generate_go_struct_writer()
1690 field_id = (*f_iter)->get_key(); in generate_go_struct_writer()
3110 out << indent() << "return thrift.PrependError(\"error reading field " << tfield->get_key() in generate_deserialize_field()
3364 << escape_string(tfield->get_name()) << " (" << tfield->get_key() in generate_serialize_field()
3698 result << "thrift_spec[" << tfield->get_key() << "][4]"; in declare_argument()
Dt_rs_generator.cc1177 generic_type_parameters << "F" << rust_safe_field_id(member->get_key()); in render_struct_constructor()
1178 …generic_type_qualifiers << "F" << rust_safe_field_id(member->get_key()) << ": Into<Option<" << to_… in render_struct_constructor()
1209 args << member_name << ": " << "F" << rust_safe_field_id(member->get_key()); in render_struct_constructor()
1497 << tfield->get_key() << ")"; in render_struct_field_sync_write()
1728 f_gen_ << indent() << rust_safe_field_id(tfield->get_key()) << " => {" << endl; in render_struct_sync_read()
1840 f_gen_ << indent() << rust_safe_field_id(member->get_key()) << " => {" << endl; in render_union_sync_read()
2046 foss << "f_" << rust_safe_field_id(tfield->get_key()); in struct_field_read_temp_variable()
Dt_py_generator.cc748 if (sorted_members.empty() || (sorted_members[0]->get_key() >= 0)) { in generate_py_thrift_spec()
755 for (; sorted_keys_pos != (*m_iter)->get_key(); sorted_keys_pos++) { in generate_py_thrift_spec()
759 indent(out) << "(" << (*m_iter)->get_key() << ", " << type_to_enum((*m_iter)->get_type()) in generate_py_thrift_spec()
866 << "self.thrift_spec[" << (*m_iter)->get_key() << "][4]:" << endl; in generate_py_struct_definition()
1052 out << "fid == " << (*f_iter)->get_key() << ":" << endl; in generate_py_struct_reader()
1115 << ", " << (*f_iter)->get_key() << ")" << endl; in generate_py_struct_writer()
Dt_kotlin_generator.cc456 indent(out) << constant_name(field->get_name()) << "(" << field->get_key() << ", \"" in generate_struct_field_name_constants()
481 indent(out) << field->get_key() << " -> " << constant_name(field->get_name()) << endl; in generate_struct_field_name_constants()
531 << field->get_key() << ")" << endl; in generate_struct_companion_object()
870 indent(out) << field->get_key() << " -> {" << endl; in generate_struct_standard_scheme_read()
Dt_lua_generator.cc437 indent(out) << "elseif fid == " << (*f_iter)->get_key() << " then" << endl; in generate_lua_struct_reader()
487 << type_to_enum((*f_iter)->get_type()) << ", " << (*f_iter)->get_key() << ")" in generate_lua_struct_writer()
Dt_php_generator.cc834 indent(out) << (*m_iter)->get_key() << " => array(" << endl; in generate_php_struct_spec()
1100 indent(out) << "case " << (*f_iter)->get_key() << ":" << endl; in generate_php_struct_reader()
1214 << endl << indent() << "$output .= pack('n', " << (*f_iter)->get_key() << ");" << endl; in generate_php_struct_writer()
1218 << ", " << (*f_iter)->get_key() << ");" << endl; in generate_php_struct_writer()
Dt_xml_generator.cc573 write_int_attribute("field-id", field->get_key()); in generate_field()
Dt_json_generator.cc730 write_key_and_integer("key", field->get_key()); in generate_field()
Dt_perl_generator.cc571 indent(out) << "/^" << (*f_iter)->get_key() << "$/ && do{"; in generate_perl_struct_reader()
624 << ", " << (*f_iter)->get_key() << ");" << endl; in generate_perl_struct_writer()
Dt_ocaml_generator.cc787 indent(out) << "| " << (*f_iter)->get_key() << " -> ("; in generate_ocaml_struct_reader()
869 << type_to_enum(tmember->get_type()) << "," << tmember->get_key() << ");" << endl; in generate_ocaml_struct_writer()
Dt_html_generator.cc978 f_out_ << "<tr><td>" << (*mem_iter)->get_key() << "</td><td>"; in generate_struct()
Dt_markdown_generator.cc1014 f_out_ << '|' << (*mem_iter)->get_key(); in generate_struct()
Dt_dart_generator.cc797 << type_to_enum((*m_iter)->get_type()) << ", " << (*m_iter)->get_key() << ");" in generate_dart_struct_definition()
809 << " = " << (*m_iter)->get_key() << ";" << endl; in generate_dart_struct_definition()
Dt_erl_generator.cc1233 int32_t key = member->get_key(); in render_type_term()
Dt_js_generator.cc1100 indent(out) << "case " << (*f_iter)->get_key() << ":" << endl; in generate_js_struct_reader()
1171 << ", " << (*f_iter)->get_key() << ");" << endl; in generate_js_struct_writer()
Dt_rb_generator.cc680 out.indent() << cap_field_name << " = " << (*f_iter)->get_key() << endl; in generate_field_constants()
Dt_java_generator.cc5241 << "(short)" << (*m_iter)->get_key() << ");" << endl; in generate_field_descs()
5270 indent(out) << constant_name((*m_iter)->get_name()) << "((short)" << (*m_iter)->get_key() in generate_field_name_constants()
5298 indent(out) << "case " << (*m_iter)->get_key() << ": // " in generate_field_name_constants()
5526 indent(out) << "case " << (*f_iter)->get_key() << ": // " in generate_standard_reader()
/thrift-3.4.0/compiler/cpp/src/thrift/
Dthrifty.yy808 …yyerror("\"%d: %s\" - field identifier/name has already been used", $2->get_key(), $2->get_name().…

12