/thrift-3.4.0/compiler/cpp/src/thrift/audit/ |
D | t_audit.cpp | 222 …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/ |
D | t_field.h | 70 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/ |
D | t_d_generator.cc | 300 …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()
|
D | t_netstd_generator.cc | 1145 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 …]
|
D | t_st_generator.cc | 727 << "; 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()
|
D | t_swift_generator.cc | 708 …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()
|
D | t_cl_generator.cc | 401 " :id " << (*m_iter)->get_key(); in generate_cl_struct_internal() 532 (*f_iter)->get_key() << ")"; in argument_list()
|
D | t_go_generator.cc | 1239 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()
|
D | t_rs_generator.cc | 1177 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()
|
D | t_py_generator.cc | 748 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()
|
D | t_kotlin_generator.cc | 456 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()
|
D | t_lua_generator.cc | 437 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()
|
D | t_php_generator.cc | 834 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()
|
D | t_xml_generator.cc | 573 write_int_attribute("field-id", field->get_key()); in generate_field()
|
D | t_json_generator.cc | 730 write_key_and_integer("key", field->get_key()); in generate_field()
|
D | t_perl_generator.cc | 571 indent(out) << "/^" << (*f_iter)->get_key() << "$/ && do{"; in generate_perl_struct_reader() 624 << ", " << (*f_iter)->get_key() << ");" << endl; in generate_perl_struct_writer()
|
D | t_ocaml_generator.cc | 787 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()
|
D | t_html_generator.cc | 978 f_out_ << "<tr><td>" << (*mem_iter)->get_key() << "</td><td>"; in generate_struct()
|
D | t_markdown_generator.cc | 1014 f_out_ << '|' << (*mem_iter)->get_key(); in generate_struct()
|
D | t_dart_generator.cc | 797 << 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()
|
D | t_erl_generator.cc | 1233 int32_t key = member->get_key(); in render_type_term()
|
D | t_js_generator.cc | 1100 indent(out) << "case " << (*f_iter)->get_key() << ":" << endl; in generate_js_struct_reader() 1171 << ", " << (*f_iter)->get_key() << ");" << endl; in generate_js_struct_writer()
|
D | t_rb_generator.cc | 680 out.indent() << cap_field_name << " = " << (*f_iter)->get_key() << endl; in generate_field_constants()
|
D | t_java_generator.cc | 5241 << "(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/ |
D | thrifty.yy | 808 …yyerror("\"%d: %s\" - field identifier/name has already been used", $2->get_key(), $2->get_name().…
|