MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / hasSymbol

Method hasSymbol

erpcgen/src/types/Type.cpp:164–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164bool SymbolScope::hasSymbol(const string &name, bool recursive)
165{
166 bool isPresent = (m_symbolMap.find(name) != m_symbolMap.end());
167 if (!isPresent && m_parent && recursive)
168 {
169 isPresent = m_parent->hasSymbol(name, true);
170 }
171 return isPresent;
172}
173
174Symbol *SymbolScope::getSymbol(const string &name, bool recursive)
175{

Callers 1

getDataTypeForConstMethod · 0.80

Calls 1

endMethod · 0.45

Tested by

no test coverage detected