Lines Matching refs:enum_val
965 auto enum_val = val.type.enum_def->ReverseLookup(enum_idx, true); in ParseAnyValue() local
966 if (!enum_val) return Error("illegal type id for: " + field->name); in ParseAnyValue()
967 if (enum_val->union_type.base_type == BASE_TYPE_STRUCT) { in ParseAnyValue()
968 ECHECK(ParseTable(*enum_val->union_type.struct_def, &val.constant, in ParseAnyValue()
970 if (enum_val->union_type.struct_def->fixed) { in ParseAnyValue()
972 SerializeStruct(*enum_val->union_type.struct_def, val); in ParseAnyValue()
976 } else if (enum_val->union_type.base_type == BASE_TYPE_STRING) { in ParseAnyValue()
3605 auto &enum_val = **evit; in ConformTo() local
3606 auto enum_val_base = enum_def_base->Lookup(enum_val.name); in ConformTo()
3608 if (enum_val != *enum_val_base) in ConformTo()
3609 return "values differ for enum: " + enum_val.name; in ConformTo()