/external/flatbuffers/src/ |
idl_gen_cpp.cpp | 121 const auto &enum_def = **it; local 122 if (!enum_def.generated) { 123 SetNameSpace(enum_def.defined_namespace); 124 GenEnum(enum_def); 157 const auto &enum_def = **it; local 158 if (enum_def.is_union && !enum_def.generated) { 159 SetNameSpace(enum_def.defined_namespace); 160 GenUnionPost(enum_def); 304 if (type.enum_def) return WrapInNameSpace(*type.enum_def) [all...] |
idl_gen_fbs.cpp | 32 return type.enum_def->defined_namespace->GetFullyQualifiedName( 33 type.enum_def->name); 89 EnumDef &enum_def = **enum_def_it; local 90 GenNameSpace(*enum_def.defined_namespace, &schema, &last_namespace); 91 GenComment(enum_def.doc_comment, &schema, nullptr); 92 schema += "enum " + enum_def.name + " : "; 93 schema += GenType(enum_def.underlying_type) + " {\n"; 94 for (auto it = enum_def.vals.vec.begin(); 95 it != enum_def.vals.vec.end(); ++it) {
|
idl_gen_js.cpp | 71 auto &enum_def = **it; local 72 GenEnum(enum_def, enum_code_ptr, exports_code_ptr); 171 void GenEnum(EnumDef &enum_def, std::string *code_ptr, 173 if (enum_def.generated) return; 176 GenDocComment(enum_def.doc_comment, code_ptr, "@enum"); 177 if (enum_def.defined_namespace->components.empty()) { 180 exports += "goog.exportSymbol('" + enum_def.name + "', " + enum_def.name + 183 exports += "this." + enum_def.name + " = " + enum_def.name + ";\n" [all...] |
idl_parser.cpp | 536 auto enum_def = LookupEnum(id); local 537 if (enum_def) { 538 type = enum_def->underlying_type; 539 if (enum_def->is_union) type.base_type = BASE_TYPE_UNION; 565 type = Type(BASE_TYPE_VECTOR, subtype.struct_def, subtype.enum_def); 615 type.enum_def->underlying_type, &typefield)); 625 Type union_vector(BASE_TYPE_VECTOR, nullptr, type.enum_def); 645 if (type.enum_def && 648 !type.enum_def->attributes.Lookup("bit_flags") && 649 !type.enum_def->ReverseLookup(static_cast<int> 1065 auto enum_def = LookupEnum(enum_def_str); local 1232 auto &enum_def = *new EnumDef(); local 1567 EnumDef *enum_def; local 1994 auto &enum_def = **it; local 2214 auto &enum_def = **eit; local [all...] |
idl_gen_general.cpp | 166 auto &enum_def = **it; local 168 cur_name_space_ = enum_def.defined_namespace; 169 GenEnum(enum_def, &enumcode); 173 if (!SaveType(enum_def.name, *enum_def.defined_namespace, 229 return type.enum_def != nullptr && IsInteger(type.base_type); 249 if (IsEnum(type)) return WrapInNameSpace(*type.enum_def); 369 if (IsEnum(type)) return "(" + WrapInNameSpace(*type.enum_def) + ")"; 421 auto enum_def = value.type.enum_def; local 1360 auto &enum_def = **it; local [all...] |
idl_gen_go.cpp | 75 static void EnumMember(const EnumDef &enum_def, const EnumVal ev, 79 code += enum_def.name; 92 static void BeginEnumNames(const EnumDef &enum_def, std::string *code_ptr) { 95 code += enum_def.name; 100 static void EnumNameMember(const EnumDef &enum_def, const EnumVal ev, 104 code += enum_def.name; 636 static void GenEnum(const EnumDef &enum_def, std::string *code_ptr) { 637 if (enum_def.generated) return; 639 GenComment(enum_def.doc_comment, code_ptr, nullptr); 641 for (auto it = enum_def.vals.vec.begin() [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; 828 static void GenEnum(const EnumDef &enum_def, std::string *code_ptr) { 829 if (enum_def.generated) return; 831 GenComment(enum_def.doc_comment, code_ptr, nullptr); 832 BeginEnum(enum_def.name, code_ptr); 833 for (auto it = enum_def.vals.vec.begin(); 834 it != enum_def.vals.vec.end(); 844 for (auto it = enum_def.vals.vec.begin() [all...] |
idl_gen_python.cpp | 513 static void GenEnum(const EnumDef &enum_def, std::string *code_ptr) { 514 if (enum_def.generated) return; 516 GenComment(enum_def.doc_comment, code_ptr, nullptr, "# "); 517 BeginEnum(enum_def.name, code_ptr); 518 for (auto it = enum_def.vals.vec.begin(); 519 it != enum_def.vals.vec.end(); 610 auto &enum_def = **it; local 612 GenEnum(enum_def, &enumcode); 613 if (!SaveType(enum_def, enumcode, false)) return false;
|
idl_gen_text.cpp | 56 if (type.enum_def && opts.output_enum_identifiers) { 57 auto enum_val = type.enum_def->ReverseLookup(static_cast<int>(val)); 305 auto enum_val = fd.value.type.enum_def->ReverseLookup(
|
/external/flatbuffers/include/flatbuffers/ |
idl.h | 127 enum_def(_ed) 132 struct_def == o.struct_def && enum_def == o.enum_def; 135 Type VectorType() const { return Type(element, struct_def, enum_def); } 142 EnumDef *enum_def; // set if t == BASE_TYPE_UNION / BASE_TYPE_UTYPE, member in struct:flatbuffers::Type 322 (a.enum_def == b.enum_def || 323 a.enum_def->name == b.enum_def->name);
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/antlr/ |
tokens.h | 165 void enum_def(char * fname);
167 extern void enum_def();
|
antlr.c | 3198 enum_def(char * fname) function [all...] |
antlr.g | [all...] |
/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...] |