JSClass support.
git-svn-id: svn://10.0.0.236/trunk@72846 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
#include "world.h"
|
||||
#include "vmtypes.h"
|
||||
#include "jstypes.h"
|
||||
#include "jsclasses.h"
|
||||
#include "icodegenerator.h"
|
||||
|
||||
#include <stdexcept>
|
||||
@@ -1195,6 +1196,17 @@ void ICodeGenerator::preprocess(StmtNode *p)
|
||||
genStmt(t->finally);
|
||||
}
|
||||
break;
|
||||
case StmtNode::Class:
|
||||
{
|
||||
ClassStmtNode *classStmt = static_cast<ClassStmtNode *>(p);
|
||||
ASSERT(classStmt->name->getKind() == ExprNode::identifier);
|
||||
IdentifierExprNode* nameExpr = static_cast<IdentifierExprNode*>(classStmt->name);
|
||||
using JSClasses::JSClass;
|
||||
JSClass* jsclass = new JSClass(nameExpr->name);
|
||||
// put this class into the current defining scope, and as a side-effect(?) make it
|
||||
// the current defining scope, for later compilation into?
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user