Lines Matching refs:lineage
823 auto lineage = GetAncestors(); in GenRustStructDeclarations() local
824 lineage.push_back(this); in GenRustStructDeclarations()
825 for (auto it = lineage.begin(); it != lineage.end(); it++) { in GenRustStructDeclarations()
1106 auto lineage = GetAncestors(); in GenRustAccessStructImpls() local
1107 lineage.push_back(this); in GenRustAccessStructImpls()
1111 for (auto it = lineage.begin(); it != lineage.end(); it++) { in GenRustAccessStructImpls()
1125 for (auto it = lineage.begin(); it != lineage.end(); it++) { in GenRustAccessStructImpls()
1131 for (auto it = lineage.begin(); it != lineage.end(); it++) { in GenRustAccessStructImpls()
1158 lineage = GetAncestors(); in GenRustAccessStructImpls()
1159 for (auto it = lineage.begin(); it != lineage.end(); it++) { in GenRustAccessStructImpls()
1183 auto lineage = GetAncestors(); in GenRustBuilderStructImpls() local
1184 lineage.push_back(this); in GenRustBuilderStructImpls()
1185 std::reverse(lineage.begin(), lineage.end()); in GenRustBuilderStructImpls()
1190 for (auto ancestor : lineage) { in GenRustBuilderStructImpls()
1253 auto lineage = GetAncestors(); in GenRustBuilderTest() local
1254 lineage.push_back(this); in GenRustBuilderTest()
1255 if (!lineage.empty() && !test_cases_.empty()) { in GenRustBuilderTest()
1262 for (size_t i = 0; i < lineage.size(); i++) { in GenRustBuilderTest()
1265 s << "match " << lineage[i]->name_ << "Packet::parse(raw_bytes) {"; in GenRustBuilderTest()
1266 s << "Ok(" << util::CamelCaseToUnderScore(lineage[i]->name_) << "_packet) => {"; in GenRustBuilderTest()
1267 s << "match " << util::CamelCaseToUnderScore(lineage[i]->name_) << "_packet.specialize() {"; in GenRustBuilderTest()
1268 } else if (i != lineage.size() - 1) { in GenRustBuilderTest()
1269 s << lineage[i - 1]->name_ << "Child::" << lineage[i]->name_ << "("; in GenRustBuilderTest()
1270 s << util::CamelCaseToUnderScore(lineage[i]->name_) << "_packet) => {"; in GenRustBuilderTest()
1271 s << "match " << util::CamelCaseToUnderScore(lineage[i]->name_) << "_packet.specialize() {"; in GenRustBuilderTest()
1273 s << lineage[i - 1]->name_ << "Child::" << lineage[i]->name_ << "(packet) => {"; in GenRustBuilderTest()
1274 s << "let rebuilder = " << lineage[i]->name_ << "Builder {"; in GenRustBuilderTest()
1298 s << "let rebuilder_base : " << lineage[0]->name_ << "Packet = rebuilder.into();"; in GenRustBuilderTest()
1304 for (size_t i = 1; i < lineage.size(); i++) { in GenRustBuilderTest()
1306 …s << "println!(\"Couldn't parse " << util::CamelCaseToUnderScore(lineage[lineage.size() - i]->name… in GenRustBuilderTest()
1307 …s << "{:02x?}\", " << util::CamelCaseToUnderScore(lineage[lineage.size() - i - 1]->name_) << "_pac… in GenRustBuilderTest()
1312 …s << "Err(e) => panic!(\"could not parse " << lineage[0]->name_ << ": {:?} {:02x?}\", e, raw_bytes… in GenRustBuilderTest()