Lines Matching refs:util
249 << util::GetTypeForSize(started_field->GetSize().bits()) << ">()) { return false; }"; in GenValidator()
297 s << "if (Get" << util::UnderscoreToCamelCase(constraint.first) << "() != "; in GenValidator()
575 param_type = util::StringFindAndReplaceAll(param_type, "unique_ptr", "shared_ptr"); in GenBuilderCreatePybind11()
580 s << util::StringJoin(",", constructor_args) << "){"; in GenBuilderCreatePybind11()
597 struct_type = util::StringFindAndReplaceAll(struct_type, "std::unique_ptr<", ""); in GenBuilderCreatePybind11()
598 struct_type = util::StringFindAndReplaceAll(struct_type, ">", ""); in GenBuilderCreatePybind11()
644 s << util::StringJoin(",", builder_vars) << ");}"; in GenBuilderCreatePybind11()
827 s << util::CamelCaseToUnderScore(def->name_) << ": Arc<" << def->name_ << "Data>,"; in GenRustStructDeclarations()
960 + util::UnderscoreToCamelCase(util::ToLowerCase(variant_name)); in GenRustStructImpls()
1063 auto complement_root_accessor = util::CamelCaseToUnderScore(complement_root->name_); in GenRustAccessStructImpls()
1074 auto root_accessor = util::CamelCaseToUnderScore(root->name_); in GenRustAccessStructImpls()
1095 s << " match &self." << util::CamelCaseToUnderScore(name_) << ".child {"; in GenRustAccessStructImpls()
1113 auto accessor_name = util::CamelCaseToUnderScore(def->name_); in GenRustAccessStructImpls()
1117 …s << "let " << accessor_name << " = match &" << util::CamelCaseToUnderScore(prev->name_) << ".chil… in GenRustAccessStructImpls()
1127 s << util::CamelCaseToUnderScore(def->name_) << ","; in GenRustAccessStructImpls()
1146 … s << " &self." << util::CamelCaseToUnderScore(def->name_) << ".as_ref()." << field->GetName(); in GenRustAccessStructImpls()
1150 … s << " self." << util::CamelCaseToUnderScore(def->name_) << ".as_ref()." << field->GetName(); in GenRustAccessStructImpls()
1163 s << def->name_ << "Packet::new(self." << util::CamelCaseToUnderScore(root->name_) << ")"; in GenRustAccessStructImpls()
1172 auto complement_root_accessor = util::CamelCaseToUnderScore(complement_root->name_); in GenRustBuilderStructImpls()
1201 auto accessor_name = util::CamelCaseToUnderScore(ancestor->name_); in GenRustBuilderStructImpls()
1212 s << field->GetDataType() << "::" << util::ConstantCaseToCamelCase(constant); in GenRustBuilderStructImpls()
1234 << util::CamelCaseToUnderScore(prev->name_) << "),"; in GenRustBuilderStructImpls()
1241 s << name_ << "Packet::new(" << util::CamelCaseToUnderScore(prev->name_) << ")"; in GenRustBuilderStructImpls()
1256 s << "macro_rules! " << util::CamelCaseToUnderScore(name_) << "_builder_tests { "; 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()
1270 s << util::CamelCaseToUnderScore(lineage[i]->name_) << "_packet) => {"; in GenRustBuilderTest()
1271 s << "match " << util::CamelCaseToUnderScore(lineage[i]->name_) << "_packet.specialize() {"; in GenRustBuilderTest()
1282 s << util::CamelCaseToUnderScore(param->GetGetterFunctionName()) << "().to_vec(),"; in GenRustBuilderTest()
1287 s << util::CamelCaseToUnderScore(param->GetGetterFunctionName()) << "().to_vec(),"; in GenRustBuilderTest()
1289 s << util::CamelCaseToUnderScore(param->GetGetterFunctionName()) << "().clone(),"; in GenRustBuilderTest()
1292 s << util::CamelCaseToUnderScore(param->GetGetterFunctionName()) << "().clone(),"; in GenRustBuilderTest()
1294 s << util::CamelCaseToUnderScore(param->GetGetterFunctionName()) << "(),"; 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()
1319 s << util::CamelCaseToUnderScore(name_) << "_builder_tests! { "; in GenRustBuilderTest()
1322 s << util::CamelCaseToUnderScore(name_) << "_builder_test_"; in GenRustBuilderTest()