Changes in src/AST/Pass.impl.hpp [0dd9a5e:293dc1c]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Pass.impl.hpp
r0dd9a5e r293dc1c 423 423 } 424 424 catch( SemanticErrorException &e ) { 425 if (__pass::onError (visitor.core, *i, 0)) 426 errors.append( e ); 425 errors.append( e ); 427 426 } 428 427 … … 684 683 // Do not enter (or leave) a new scope if atFunctionTop. Remember to save the result. 685 684 auto guard1 = makeFuncGuard( [this, enterScope = !this->atFunctionTop]() { 686 if ( enterScope ) { 687 __pass::symtab::enter(core, 0); 688 __pass::scope::enter(core, 0); 689 } 685 if ( enterScope ) __pass::symtab::enter(core, 0); 690 686 }, [this, leaveScope = !this->atFunctionTop]() { 691 if ( leaveScope ) { 692 __pass::symtab::leave(core, 0); 693 __pass::scope::leave(core, 0); 694 } 687 if ( leaveScope ) __pass::symtab::leave(core, 0); 695 688 }); 696 689 ValueGuard< bool > guard2( atFunctionTop );
Note:
See TracChangeset
for help on using the changeset viewer.