• Home
  • Raw
  • Download

Lines Matching refs:enum_val

891       auto enum_val = val.type.enum_def->ReverseLookup(enum_idx);  in ParseAnyValue()  local
892 if (!enum_val) return Error("illegal type id for: " + field->name); in ParseAnyValue()
893 if (enum_val->union_type.base_type == BASE_TYPE_STRUCT) { in ParseAnyValue()
894 ECHECK(ParseTable(*enum_val->union_type.struct_def, &val.constant, in ParseAnyValue()
896 if (enum_val->union_type.struct_def->fixed) { in ParseAnyValue()
898 SerializeStruct(*enum_val->union_type.struct_def, val); in ParseAnyValue()
902 } else if (enum_val->union_type.base_type == BASE_TYPE_STRING) { in ParseAnyValue()
1322 auto enum_val = type.enum_def->vals.Lookup(word); in ParseEnumFromString() local
1323 if (!enum_val) in ParseEnumFromString()
1326 *result |= enum_val->value; in ParseEnumFromString()
1338 auto enum_val = enum_def->vals.Lookup(enum_val_str); in ParseEnumFromString() local
1339 if (!enum_val) return Error("unknown enum value: " + enum_val_str); in ParseEnumFromString()
1340 *result |= enum_val->value; in ParseEnumFromString()
2181 auto enum_val = new EnumVal(oneof_type.struct_def->name, in ParseProtoFields() local
2183 enum_val->union_type = oneof_type; in ParseProtoFields()
2184 enum_val->doc_comment = oneof_field.doc_comment; in ParseProtoFields()
2185 oneof_union->vals.Add(oneof_field.name, enum_val); in ParseProtoFields()
3166 auto &enum_val = **evit; in ConformTo() local
3167 auto enum_val_base = enum_def_base->vals.Lookup(enum_val.name); in ConformTo()
3169 if (enum_val.value != enum_val_base->value) in ConformTo()
3170 return "values differ for enum: " + enum_val.name; in ConformTo()