| 162 | } |
| 163 | |
| 164 | bool 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 | |
| 174 | Symbol *SymbolScope::getSymbol(const string &name, bool recursive) |
| 175 | { |
no test coverage detected