JSClass support.

git-svn-id: svn://10.0.0.236/trunk@72846 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
beard%netscape.com
2000-06-21 23:58:17 +00:00
parent 36c74a5208
commit b2ad6db1a4
2 changed files with 24 additions and 0 deletions

View File

@@ -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;
}
}