MCPcopy Create free account
hub / github.com/apache/thrift / t_function

Method t_function

compiler/cpp/src/thrift/parse/t_function.h:36–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34class t_function : public t_doc {
35public:
36 t_function(t_type* returntype, std::string name, t_struct* arglist, bool oneway = false)
37 : returntype_(returntype),
38 name_(name),
39 arglist_(arglist),
40 xceptions_(new t_struct(nullptr)),
41 own_xceptions_(true),
42 oneway_(oneway) {
43 xceptions_->set_method_xcepts(true);
44 if (oneway_ && (!returntype_->is_void())) {
45 pwarning(1, "Oneway methods should return void.\n");
46 }
47 }
48
49 t_function(t_type* returntype,
50 std::string name,

Callers

nothing calls this directly

Calls 5

stringFunction · 0.85
set_method_xceptsMethod · 0.80
emptyMethod · 0.80
pwarningFunction · 0.50
is_voidMethod · 0.45

Tested by

no test coverage detected