From 0e82ff14a8a0ffccd728d8703fbe034946f00d9e Mon Sep 17 00:00:00 2001 From: Pavel Talanov Date: Thu, 3 Nov 2011 20:45:10 +0400 Subject: [PATCH] commit --- .idea/libraries/junit.xml | 9 + .idea/libraries/lib.xml | 11 - .idea/vcs.xml | 2 +- .idea/workspace.xml | 710 ++++++++++-------- k2js.iml | 3 +- lib/junit-4.10.jar | Bin 0 -> 253160 bytes .../google/dart/compiler/common/Name.class | Bin 2586 -> 2586 bytes .../google/dart/compiler/util/AstUtil.class | Bin 14453 -> 15556 bytes .../com/google/dart/compiler/util/Lists.class | Bin 7122 -> 7122 bytes .../k2js/generate/CodeGenerator.class | Bin 1302 -> 1826 bytes .../k2js/translate/AbstractTranslator.class | Bin 2950 -> 2644 bytes .../k2js/translate/ContextType$1.class | Bin 1023 -> 1023 bytes .../k2js/translate/ContextType$2.class | Bin 1237 -> 1237 bytes .../k2js/translate/ContextType$3.class | Bin 1239 -> 1239 bytes .../k2js/translate/ContextType.class | Bin 1872 -> 1872 bytes ...anslator$FunctionVariableDeclaration.class | Bin 2317 -> 2317 bytes ...nslator$NamespacePropertyDeclaration.class | Bin 2841 -> 2850 bytes .../DeclarationTranslator$State.class | Bin 724 -> 724 bytes .../translate/DeclarationTranslator.class | Bin 4677 -> 4678 bytes .../k2js/translate/ExpressionTranslator.class | Bin 1730 -> 1730 bytes .../k2js/translate/FunctionTranslator.class | Bin 4600 -> 4975 bytes .../k2js/translate/NamespaceTranslator.class | Bin 4774 -> 5734 bytes .../k2js/translate/OperationTranslator.class | Bin 1991 -> 2512 bytes .../k2js/translate/TranslationContext.class | Bin 7385 -> 6818 bytes .../jetbrains/k2js/translate/jet/Library.jet | 670 ----------------- .../dart/compiler/backend/js/Test.class | Bin 2202 -> 0 bytes .../dart/compiler/backend/js/JsNamer.java | 2 +- .../backend/js/JsSourceGenerationVisitor.java | 2 +- src/com/google/dart/compiler/common/Name.java | 12 +- .../google/dart/compiler/util/AstUtil.java | 17 +- src/com/google/dart/compiler/util/Lists.java | 7 +- src/com/google/dart/compiler/util/Maps.java | 2 +- src/org/jetbrains/k2js/K2JSTranslator.java | 21 +- .../k2js/generate/CodeGenerator.java | 19 +- .../k2js/translate/AbstractTranslator.java | 7 +- .../k2js/translate/ClassBodyVisitor.java | 67 +- .../k2js/translate/ClassTranslator.java | 4 +- .../jetbrains/k2js/translate/ContextType.java | 2 - .../k2js/translate/DeclarationTranslator.java | 12 +- .../k2js/translate/ExpressionTranslator.java | 11 +- .../k2js/translate/ExpressionVisitor.java | 46 +- .../k2js/translate/FunctionTranslator.java | 22 +- .../jetbrains/k2js/translate/K2JsVisitor.java | 1 - src/org/jetbrains/k2js/translate/Namer.java | 49 +- .../k2js/translate/NamespaceTranslator.java | 50 +- .../k2js/translate/OperationTranslator.java | 9 +- .../k2js/translate/TranslationContext.java | 111 ++- .../google/dart/compiler/backend/js/Test.java | 23 - .../jetbrains/k2js/test/TranslatorTests.java | 72 ++ test_files/test.kt | 22 - test_files/test_cases/assign.jet | 11 + test_files/test_cases/localProperty.jet | 15 + test_files/test_cases/test.kt | 8 + 53 files changed, 842 insertions(+), 1187 deletions(-) create mode 100644 .idea/libraries/junit.xml delete mode 100644 .idea/libraries/lib.xml create mode 100644 lib/junit-4.10.jar delete mode 100644 out/production/k2js/org/jetbrains/k2js/translate/jet/Library.jet delete mode 100644 out/test/k2js/com/google/dart/compiler/backend/js/Test.class delete mode 100644 test/com/google/dart/compiler/backend/js/Test.java create mode 100644 test/org/jetbrains/k2js/test/TranslatorTests.java delete mode 100644 test_files/test.kt create mode 100644 test_files/test_cases/assign.jet create mode 100644 test_files/test_cases/localProperty.jet create mode 100644 test_files/test_cases/test.kt diff --git a/.idea/libraries/junit.xml b/.idea/libraries/junit.xml new file mode 100644 index 00000000000..707c88f192b --- /dev/null +++ b/.idea/libraries/junit.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/lib.xml b/.idea/libraries/lib.xml deleted file mode 100644 index 07e08852a4c..00000000000 --- a/.idea/libraries/lib.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml index def6a6a1845..21cbaa607b2 100644 --- a/.idea/vcs.xml +++ b/.idea/vcs.xml @@ -1,7 +1,7 @@ - + diff --git a/.idea/workspace.xml b/.idea/workspace.xml index c6775eaba8f..abe72c4fbe2 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,7 +5,43 @@