Home
last modified time | relevance | path

Searched refs:constrained_field (Results 1 – 1 of 1) sorted by relevance

/system/bt/gd/packet/parser/
Dparent_def.cc29 const auto& constrained_field = parent_params.GetField(field_name); in AddParentConstraint() local
30 if (constrained_field == nullptr) { in AddParentConstraint()
35 if (constrained_field->GetFieldType() == ScalarField::kFieldType) { in AddParentConstraint()
37 …ERROR(constrained_field) << "Attempting to constrain a scalar field to an enum value in " << paren… in AddParentConstraint()
39 } else if (constrained_field->GetFieldType() == EnumField::kFieldType) { in AddParentConstraint()
41 …ERROR(constrained_field) << "Attempting to constrain an enum field to a scalar value in " << paren… in AddParentConstraint()
43 const auto& enum_def = static_cast<EnumField*>(constrained_field)->GetEnumDef(); in AddParentConstraint()
45 ERROR(constrained_field) << "No matching enumeration \"" << std::get<std::string>(value) in AddParentConstraint()
52 …ERROR(constrained_field) << "Field in parent " << parent_->name_ << " is not viable for constraini… in AddParentConstraint()