antonlindstrom commented on a change in pull request #369:
URL: https://github.com/apache/thrift/pull/369#discussion_r557375339
##########
File path: compiler/cpp/src/generate/t_go_generator.cc
##########
@@ -1233,6 +1249,46 @@ void t_go_generator::generate_isset_helpers(ofstream&
out,
}
}
+/**
+ * Generates the CountSetFields helper method for a struct
+ */
+void t_go_generator::generate_countsetfields_helper(ofstream& out,
+ t_struct* tstruct,
+ const string& tstruct_name,
+ bool is_result) {
+ (void)is_result;
+ const vector<t_field*>& fields = tstruct->get_members();
+ vector<t_field*>::const_iterator f_iter;
+ const string escaped_tstruct_name(escape_string(tstruct->get_name()));
+
+ out << indent() << "func (p *" << tstruct_name << ") CountSetFields" <<
tstruct_name
Review comment:
Hmm, this was quite some time ago. I haven't been using thrift for a
while so I can't say for sure.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]