Changes in src/SymTab/Indexer.cc [30f9072:3f27b9a]
- File:
-
- 1 edited
-
src/SymTab/Indexer.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Indexer.cc
r30f9072 r3f27b9a 353 353 } 354 354 355 void Indexer::visit( ForStmt *forStmt ) { 356 // for statements introduce a level of scope 357 enterScope(); 358 Visitor::visit( forStmt ); 359 leaveScope(); 360 } 361 362 void Indexer::visit( CatchStmt *catchStmt ) { 363 // catch statements introduce a level of scope (for the caught exception) 364 enterScope(); 365 Visitor::visit( catchStmt ); 366 leaveScope(); 367 } 355 368 356 369 void Indexer::visit( ApplicationExpr *applicationExpr ) { … … 556 569 leaveScope(); 557 570 } 558 559 void Indexer::visit( ForStmt *forStmt ) {560 // for statements introduce a level of scope561 enterScope();562 Visitor::visit( forStmt );563 leaveScope();564 }565 566 567 571 568 572 void Indexer::lookupId( const std::string &id, std::list< DeclarationWithType* > &out ) const {
Note:
See TracChangeset
for help on using the changeset viewer.