Modified:
/trunk/include/astvisitor.h
/trunk/src/astvisitor.cc
=======================================
--- /trunk/include/astvisitor.h Tue May 17 07:45:31 2011
+++ /trunk/include/astvisitor.h Tue May 17 16:46:31 2011
@@ -86,7 +86,7 @@
AST_VISITOR_DECL_VIRTUAL(AssignExpr);
AST_VISITOR_DECL_VIRTUAL(ImportStmt);
AST_VISITOR_DECL_VIRTUAL(FuncDeclaration);
- AST_VISITOR_DECL_VIRTUAL(MethodDeclaration);
+ AST_VISITOR_DECL_VIRTUAL(MethodDeclaration);
AST_VISITOR_DECL_VIRTUAL(ReturnStmt);
private:
DISALLOW_COPY_AND_ASSIGN(ASTVisitor);
=======================================
--- /trunk/src/astvisitor.cc Sun Feb 13 13:55:53 2011
+++ /trunk/src/astvisitor.cc Tue May 17 16:46:31 2011
@@ -633,5 +633,12 @@
emit(OP_RETURN, &VM::return_handler, expr_value);
}
+
+/**
+ * Generates opcodes for class methods
+ */
+AST_VISITOR(CodeGenVisitor, MethodDeclaration) {
+
+}
}} // clever::ast