32 #ifndef _QORE_TRYSTATEMENT_H
34 #define _QORE_TRYSTATEMENT_H
36 #include "qore/intern/AbstractStatement.h"
38 class TryStatement :
public AbstractStatement {
40 class StatementBlock* try_block;
41 class StatementBlock* catch_block;
45 const QoreTypeInfo* typeInfo;
46 QoreParseTypeInfo* parseTypeInfo;
47 const QoreProgramLocation* loc;
50 DLLLOCAL
virtual int parseInitImpl(LocalVar* oflag,
int pflag = 0);
53 DLLLOCAL TryStatement(
const QoreProgramLocation* loc,
class StatementBlock* t,
class StatementBlock* c,
char* p,
const QoreTypeInfo* typeInfo, QoreParseTypeInfo* parseTypeInfo,
const QoreProgramLocation* vloc);
55 DLLLOCAL
virtual ~TryStatement();
57 DLLLOCAL
virtual bool hasFinalReturn()
const;
59 DLLLOCAL
virtual void parseCommit(
QoreProgram* pgm);