comparison dmd/scope.h @ 1141:f99a3b393c03

Reorganize EnclosingHandlers to require less changes to the frontend and allow us to implement the synchronized storage class for functions.
author Christian Kamm <kamm incasoftware de>
date Tue, 24 Mar 2009 21:18:18 +0100
parents 041c1596d217
children e961851fb8be
comparison
equal deleted inserted replaced
1137:45d73f0a9b43 1141:f99a3b393c03
44 // sd gets the addMember() 44 // sd gets the addMember()
45 FuncDeclaration *func; // function we are in 45 FuncDeclaration *func; // function we are in
46 Dsymbol *parent; // parent to use 46 Dsymbol *parent; // parent to use
47 LabelStatement *slabel; // enclosing labelled statement 47 LabelStatement *slabel; // enclosing labelled statement
48 SwitchStatement *sw; // enclosing switch statement 48 SwitchStatement *sw; // enclosing switch statement
49 TryFinallyStatement *tf; // enclosing try finally statement; set inside its finally block 49 TryFinallyStatement *enclosingFinally; // enclosing try finally statement; set inside its finally block
50 EnclosingHandler *tfOfTry; // enclosing try-finally, volatile or synchronized statement; set inside its try or body block 50 Statement *enclosingScopeExit; // enclosing statement that wants to do something on scope exit
51 TemplateInstance *tinst; // enclosing template instance 51 TemplateInstance *tinst; // enclosing template instance
52 Statement *sbreak; // enclosing statement that supports "break" 52 Statement *sbreak; // enclosing statement that supports "break"
53 Statement *scontinue; // enclosing statement that supports "continue" 53 Statement *scontinue; // enclosing statement that supports "continue"
54 ForeachStatement *fes; // if nested function for ForeachStatement, this is it 54 ForeachStatement *fes; // if nested function for ForeachStatement, this is it
55 unsigned offset; // next offset to use in aggregate 55 unsigned offset; // next offset to use in aggregate