@@ -78,13 +78,13 @@ static bool GetAnnotationInt32(const Reader& reader, uint64_t id, int32_t* resul
7878 return false ;
7979}
8080
81- static void ForEachMethod (const capnp::InterfaceSchema& interface , const std::function<void (const capnp::InterfaceSchema& interface , const capnp::InterfaceSchema::Method)>& callback) // NOLINT(misc-no-recursion)
81+ static void ForEachMethod (const capnp::InterfaceSchema& schema , const std::function<void (const capnp::InterfaceSchema& schema , const capnp::InterfaceSchema::Method)>& callback) // NOLINT(misc-no-recursion)
8282{
83- for (const auto super : interface .getSuperclasses ()) {
83+ for (const auto super : schema .getSuperclasses ()) {
8484 ForEachMethod (super, callback);
8585 }
86- for (const auto method : interface .getMethods ()) {
87- callback (interface , method);
86+ for (const auto method : schema .getMethods ()) {
87+ callback (schema , method);
8888 }
8989}
9090
@@ -391,7 +391,7 @@ static void Generate(kj::StringPtr src_prefix,
391391 }
392392
393393 if (proxied_class_type.size () && node.getProto ().isInterface ()) {
394- const auto & interface = node.asInterface ();
394+ const auto & node_interface = node.asInterface ();
395395
396396 std::ostringstream client;
397397 client << " template<>\n struct ProxyClient<" << message_namespace << " ::" << node_name << " > final : " ;
@@ -413,7 +413,7 @@ static void Generate(kj::StringPtr src_prefix,
413413 const std::ostringstream client_destroy;
414414
415415 int method_ordinal = 0 ;
416- ForEachMethod (interface , [&] (const capnp::InterfaceSchema& method_interface, const capnp::InterfaceSchema::Method& method) {
416+ ForEachMethod (node_interface , [&] (const capnp::InterfaceSchema& method_interface, const capnp::InterfaceSchema::Method& method) {
417417 const kj::StringPtr method_name = method.getProto ().getName ();
418418 kj::StringPtr proxied_method_name = method_name;
419419 GetAnnotationText (method.getProto (), NAME_ANNOTATION_ID , &proxied_method_name);
@@ -503,7 +503,7 @@ static void Generate(kj::StringPtr src_prefix,
503503 }
504504 }
505505
506- if (!is_construct && !is_destroy && (&method_interface == &interface )) {
506+ if (!is_construct && !is_destroy && (&method_interface == &node_interface )) {
507507 methods << " template<>\n " ;
508508 methods << " struct ProxyMethod<" << method_prefix << " Params>\n " ;
509509 methods << " {\n " ;
0 commit comments