/external/flatbuffers/src/ |
idl_gen_fbs.cpp | 34 if (type.enum_def && !underlying) { 35 return type.enum_def->defined_namespace->GetFullyQualifiedName( 36 type.enum_def->name); 90 EnumDef &enum_def = **enum_def_it; local 91 GenNameSpace(*enum_def.defined_namespace, &schema, &last_namespace); 92 GenComment(enum_def.doc_comment, &schema, nullptr); 93 schema += "enum " + enum_def.name + " : "; 94 schema += GenType(enum_def.underlying_type, true) + " {\n"; 95 for (auto it = enum_def.vals.vec.begin(); 96 it != enum_def.vals.vec.end(); ++it) [all...] |
idl_gen_php.cpp | 45 auto &enum_def = **it; local 47 GenEnum(enum_def, &enumcode); 48 if (!SaveType(enum_def, enumcode, false)) return false; 858 static void GenEnum(const EnumDef &enum_def, std::string *code_ptr) { 859 if (enum_def.generated) return; 861 GenComment(enum_def.doc_comment, code_ptr, nullptr); 862 BeginEnum(enum_def.name, code_ptr); 863 for (auto it = enum_def.vals.vec.begin(); 864 it != enum_def.vals.vec.end(); 874 for (auto it = enum_def.vals.vec.begin() [all...] |
idl_gen_python.cpp | 546 static void GenEnum(const EnumDef &enum_def, std::string *code_ptr) { 547 if (enum_def.generated) return; 549 GenComment(enum_def.doc_comment, code_ptr, nullptr, "# "); 550 BeginEnum(enum_def.name, code_ptr); 551 for (auto it = enum_def.vals.vec.begin(); 552 it != enum_def.vals.vec.end(); 644 auto &enum_def = **it; local 646 GenEnum(enum_def, &enumcode); 647 if (!SaveType(enum_def, enumcode, false)) return false;
|
idl_gen_js.cpp | 172 auto &enum_def = **it; local 173 GenEnum(enum_def, enum_code_ptr, exports_code_ptr, reexports); 286 void GenEnum(EnumDef &enum_def, std::string *code_ptr, 288 if (enum_def.generated) return; 291 GenDocComment(enum_def.doc_comment, code_ptr, "@enum"); 292 std::string ns = GetNameSpace(enum_def); 297 code += "export enum " + enum_def.name + "{\n"; 299 if (enum_def.defined_namespace->components.empty()) { 302 exports += "goog.exportSymbol('" + enum_def.name + "', " + 303 enum_def.name + ");\n" [all...] |
idl_gen_general.cpp | 171 auto &enum_def = **it; local 173 cur_name_space_ = enum_def.defined_namespace; 174 GenEnum(enum_def, &enumcode); 178 if (!SaveType(enum_def.name, *enum_def.defined_namespace, 253 return type.enum_def != nullptr && IsInteger(type.base_type); 275 if (IsEnum(type)) return WrapInNameSpace(*type.enum_def); 395 if (IsEnum(type)) return "(" + WrapInNameSpace(*type.enum_def) + ")"; 447 auto enum_def = value.type.enum_def; local 1416 auto &enum_def = **it; local [all...] |
idl_gen_cpp.cpp | 166 const auto &enum_def = **it; local 167 if (!enum_def.generated) { 168 SetNameSpace(enum_def.defined_namespace); 169 GenEnum(enum_def); 202 const auto &enum_def = **it; local 203 if (enum_def.is_union && !enum_def.generated) { 204 SetNameSpace(enum_def.defined_namespace); 205 GenUnionPost(enum_def); 223 const auto &enum_def = **it local [all...] |
idl_parser.cpp | 471 auto enum_def = LookupEnum(id); local 472 if (enum_def) { 473 type = enum_def->underlying_type; 474 if (enum_def->is_union) type.base_type = BASE_TYPE_UNION; 534 type = Type(BASE_TYPE_VECTOR, subtype.struct_def, subtype.enum_def); 587 type.enum_def->underlying_type, &typefield)); 597 Type union_vector(BASE_TYPE_VECTOR, nullptr, type.enum_def); 617 if (type.enum_def && 620 !type.enum_def->attributes.Lookup("bit_flags") && 621 !type.enum_def->ReverseLookup(static_cast<int> 1207 auto enum_def = LookupEnum(enum_def_str); local 1397 auto &enum_def = *new EnumDef(); local 1765 EnumDef *enum_def; local [all...] |
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/antlr/ |
antlr.c | 3198 enum_def(char * fname) function [all...] |
/external/flatbuffers/include/flatbuffers/ |
idl.h | 133 enum_def(_ed) 138 struct_def == o.struct_def && enum_def == o.enum_def; 141 Type VectorType() const { return Type(element, struct_def, enum_def); } 148 EnumDef *enum_def; // set if t == BASE_TYPE_UNION / BASE_TYPE_UTYPE, member in struct:flatbuffers::Type 341 (a.enum_def == b.enum_def || 342 a.enum_def->name == b.enum_def->name);
|
/external/protobuf/php/ext/google/protobuf/ |
upb.c | 9338 const upb_enumdef *enum_def = upb_downcast_enumdef(upb_fielddef_subdef(f)); local [all...] |
/external/protobuf/ruby/ext/google/protobuf_c/ |
upb.c | 10012 const upb_enumdef *enum_def = upb_downcast_enumdef(upb_fielddef_subdef(f)); local [all...] |