Lines Matching refs:ancestor
1190 for (auto ancestor : lineage) { in GenRustBuilderStructImpls() local
1191 auto fields = ancestor->fields_.GetFieldsWithoutTypes({ in GenRustBuilderStructImpls()
1201 auto accessor_name = util::CamelCaseToUnderScore(ancestor->name_); in GenRustBuilderStructImpls()
1202 s << "let " << accessor_name << "= Arc::new(" << ancestor->name_ << "Data {"; in GenRustBuilderStructImpls()
1222 if (ancestor->HasChildEnums()) { in GenRustBuilderStructImpls()
1224 if (ancestor->fields_.HasPayload()) { in GenRustBuilderStructImpls()
1233 s << "child: " << ancestor->name_ << "DataChild::" << prev->name_ << "(" in GenRustBuilderStructImpls()
1238 prev = ancestor; in GenRustBuilderStructImpls()
1245 for (const auto ancestor : GetAncestors()) { in GenRustBuilderStructImpls() local
1246 s << "impl Into<" << ancestor->name_ << "Packet> for " << name_ << "Builder {"; in GenRustBuilderStructImpls()
1247 s << " fn into(self) -> " << ancestor->name_ << "Packet { self.build().into() }"; in GenRustBuilderStructImpls()