---------------------------------------------------------------------------------
| 38 | |
| 39 | //--------------------------------------------------------------------------------- |
| 40 | AST::INode* SymbolTable::removeVariable( const String& name ) |
| 41 | { |
| 42 | SymbolTable::VariableMap::iterator it = findVariable(name); |
| 43 | |
| 44 | if ( it != mVariables.end() ) |
| 45 | { |
| 46 | AST::INode* node = ( *it ).second; |
| 47 | mVariables.erase( it ); |
| 48 | return node; |
| 49 | } |
| 50 | |
| 51 | //variable not found |
| 52 | return 0; |
| 53 | } |
| 54 | |
| 55 | //--------------------------------------------------------------------------------- |
| 56 | const SymbolTable::VariableMap& SymbolTable::getVariables() const |