MCPcopy Create free account
hub / github.com/Tencent/phxrpc / FindFunc

Method FindFunc

codegen/syntax_tree.cpp:161–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161SyntaxFunc *SyntaxTree::FindFunc(const char *name) {
162 SyntaxFunc *ret{nullptr};
163
164 for (SyntaxFuncVector::iterator iter(func_list_.begin()); func_list_.end() != iter; ++iter) {
165 if (0 == strcasecmp(name, iter->GetName())) {
166 ret = &(*iter);
167 break;
168 }
169 }
170
171 return ret;
172}
173
174void SyntaxTree::Print() {
175}

Callers 1

LoadExtensionMethod · 0.80

Calls 1

GetNameMethod · 0.80

Tested by

no test coverage detected