Lines Matching refs:new_value
1092 std::unique_ptr<T> CopyValueFields(std::unique_ptr<T> new_value, const T* value) { in CopyValueFields() argument
1093 new_value->SetSource(value->GetSource()); in CopyValueFields()
1094 new_value->SetComment(value->GetComment()); in CopyValueFields()
1095 return new_value; in CopyValueFields()
1111 auto new_value = std::make_unique<RawString>(pool_->MakeRef(value->value)); in TransformDerived() local
1112 return CopyValueFields(std::move(new_value), value); in TransformDerived()
1116 auto new_value = std::make_unique<String>(pool_->MakeRef(value->value)); in TransformDerived() local
1117 new_value->untranslatable_sections = value->untranslatable_sections; in TransformDerived()
1118 return CopyValueFields(std::move(new_value), value); in TransformDerived()
1122 auto new_value = std::make_unique<StyledString>(pool_->MakeRef(value->value)); in TransformDerived() local
1123 new_value->untranslatable_sections = value->untranslatable_sections; in TransformDerived()
1124 return CopyValueFields(std::move(new_value), value); in TransformDerived()
1129 auto new_value = std::make_unique<FileReference>(pool_->MakeRef(value->path)); in TransformDerived() local
1130 new_value->file = value->file; in TransformDerived()
1131 new_value->type = value->type; in TransformDerived()
1132 return CopyValueFields(std::move(new_value), value); in TransformDerived()
1141 auto new_value = std::make_unique<Attribute>(); in TransformDerived() local
1142 new_value->type_mask = value->type_mask; in TransformDerived()
1143 new_value->min_int = value->min_int; in TransformDerived()
1144 new_value->max_int = value->max_int; in TransformDerived()
1146 new_value->symbols.emplace_back(Attribute::Symbol{ in TransformDerived()
1152 return CopyValueFields(std::move(new_value), value); in TransformDerived()
1156 auto new_value = std::make_unique<Style>(); in TransformDerived() local
1157 new_value->parent = value->parent; in TransformDerived()
1158 new_value->parent_inferred = value->parent_inferred; in TransformDerived()
1160 new_value->entries.push_back(Style::Entry{entry.key, entry.value->Transform(*this)}); in TransformDerived()
1162 return CopyValueFields(std::move(new_value), value); in TransformDerived()
1166 auto new_value = std::make_unique<Array>(); in TransformDerived() local
1168 new_value->elements.emplace_back(item->Transform(*this)); in TransformDerived()
1170 return CopyValueFields(std::move(new_value), value); in TransformDerived()
1174 auto new_value = std::make_unique<Plural>(); in TransformDerived() local
1178 new_value->values[i] = value->values[i]->Transform(*this); in TransformDerived()
1181 return CopyValueFields(std::move(new_value), value); in TransformDerived()
1185 auto new_value = std::make_unique<Styleable>(); in TransformDerived() local
1187 new_value->entries.emplace_back(*s.Transform(*this)); in TransformDerived()
1189 return CopyValueFields(std::move(new_value), value); in TransformDerived()
1193 auto new_value = std::make_unique<Macro>(*value); in TransformDerived() local
1194 return CopyValueFields(std::move(new_value), value); in TransformDerived()