refactoring of codegen contexts, and proper this/outer/super/receiver support

This commit is contained in:
Alex Tkachman
2011-11-08 11:11:42 +01:00
parent aa1ebbe445
commit 509ffb2fde
17 changed files with 523 additions and 379 deletions
@@ -64,6 +64,7 @@ public class PropertyGenTest extends CodegenTestCase {
public void testFieldPropertyAccess() throws Exception {
loadFile("properties/fieldPropertyAccess.jet");
System.out.println(generateToText());
final Method method = generateFunction();
assertEquals(1, method.invoke(null));
assertEquals(2, method.invoke(null));