From 3e562aa08a99dfcf7e41947205df562e7f7f515c Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Sat, 27 Feb 2016 18:46:27 +0300 Subject: [PATCH] Simple metaprogramming test passes --- .idea/compiler.xml | 2 +- .../teavm/dependency/DependencyChecker.java | 11 +- .../org/teavm/dependency/DependencyNode.java | 16 +-- .../DependencyNodeToNodeTransition.java | 6 +- .../diagnostics/AccumulationDiagnostics.java | 4 - .../org/teavm/diagnostics/Diagnostics.java | 4 - .../MetaprogrammingDependencyListener.java | 11 +- .../impl/MetaprogrammingImpl.java | 18 ++- .../impl/TopLevelVariableContext.java | 37 ++++++ .../metaprogramming/impl/UsageGenerator.java | 112 +++++++++++------- .../impl/model/MethodDescriber.java | 5 +- core/src/main/java/org/teavm/vm/TeaVM.java | 5 + .../teavm/metaprogramming/Computation.java | 1 - .../metaprogramming/Metaprogramming.java | 2 +- .../classlib/java/util/LinkedHashMapTest.java | 32 ++--- .../java/util/StringTokenizerTest.java | 5 +- .../teavm/classlib/java/util/TreeMapTest.java | 22 ++-- .../test/MetaprogrammingTest.java | 5 + .../test/java/org/teavm/tests/JSOTest.java | 5 +- .../java/org/teavm/junit/TeaVMTestRunner.java | 19 +-- 20 files changed, 197 insertions(+), 125 deletions(-) create mode 100644 core/src/main/java/org/teavm/metaprogramming/impl/TopLevelVariableContext.java rename {metaprogramming-api => tests}/src/test/java/org/teavm/metaprogramming/test/MetaprogrammingTest.java (90%) diff --git a/.idea/compiler.xml b/.idea/compiler.xml index 9d56aee03..2bf838622 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -1,7 +1,7 @@ -