From de75cfd0079f778cf183fd8e2f6f4e56e63c1ff9 Mon Sep 17 00:00:00 2001 From: Pavel Talanov Date: Fri, 20 Jan 2012 22:58:25 +0400 Subject: [PATCH] Very big code migration started. Still in progress. Tests fail. --- .idea/workspace.xml | 1120 +++++++---------- .../k2js/translate/context/Aliaser.java | 57 +- .../translate/context/StandardClasses.java | 33 + .../translate/context/TranslationContext.java | 12 +- .../declaration/NamespaceTranslator.java | 2 +- .../expression/ExpressionVisitor.java | 8 +- .../expression/FunctionTranslator.java | 58 +- .../ClassInitializerTranslator.java | 2 +- .../translate/reference/CallTranslator.java | 76 +- .../reference/PropertyAccessTranslator.java | 58 +- .../reference/ReferenceAccessTranslator.java | 1 + .../reference/ReferenceTranslator.java | 50 +- .../k2js/translate/utils/BindingUtils.java | 14 +- .../k2js/translate/utils/DescriptorUtils.java | 27 + .../translate/utils/TranslationUtils.java | 62 +- .../jetbrains/k2js/test/KotlinLibTest.java | 6 + .../k2js/test/RhinoSystemOutputChecker.java | 16 +- .../k2js/test/WebDemoExamples2Test.java | 9 + .../testFiles/kotlinLib/cases/hashMap.js | 25 + translator/testFiles/kotlin_lib.js | 521 ++++++++ .../testFiles/libImplementations/jshashset.js | 16 + .../libImplementations/jshashset_src.js | 107 ++ .../libImplementations/jshashtable-2.1.js | 16 + .../libImplementations/jshashtable-2.1_src.js | 370 ++++++ .../{ => libImplementations}/prototype.js | 0 .../webDemoExamples2/cases/bottles.kt | 4 +- .../webDemoExamples2/cases/builder.kt | 145 +++ .../testFiles/webDemoExamples2/cases/life.kt | 178 +++ .../webDemoExamples2/expected/bottles.out | 2 +- .../webDemoExamples2/expected/bottles2.out | 12 + .../webDemoExamples2/expected/builder.out | 37 + .../webDemoExamples2/expected/life.out | 323 +++++ 32 files changed, 2510 insertions(+), 857 deletions(-) create mode 100644 translator/testFiles/kotlinLib/cases/hashMap.js create mode 100644 translator/testFiles/libImplementations/jshashset.js create mode 100644 translator/testFiles/libImplementations/jshashset_src.js create mode 100644 translator/testFiles/libImplementations/jshashtable-2.1.js create mode 100644 translator/testFiles/libImplementations/jshashtable-2.1_src.js rename translator/testFiles/{ => libImplementations}/prototype.js (100%) create mode 100644 translator/testFiles/webDemoExamples2/cases/builder.kt create mode 100644 translator/testFiles/webDemoExamples2/cases/life.kt create mode 100644 translator/testFiles/webDemoExamples2/expected/bottles2.out create mode 100644 translator/testFiles/webDemoExamples2/expected/builder.out create mode 100644 translator/testFiles/webDemoExamples2/expected/life.out diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 263f860b040..7461fcc2c73 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -14,48 +14,39 @@ - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + - - + - - + + + + + - - - - - + + + + + - - - - - - - + + + + + @@ -75,10 +66,10 @@ org.jetbrains.k2js.translate.* - + org.jetbrains.k2js.* - + org.jetbrains.k2js.* @@ -191,7 +182,7 @@ @@ -326,11 +278,61 @@ - + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -338,8 +340,8 @@ - - + + @@ -350,72 +352,25 @@ - + - - + + - + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -425,91 +380,93 @@ - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - - + + + + - - + + - + @@ -539,22 +496,22 @@ @@ -644,16 +601,6 @@ - - - - - - - - @@ -700,7 +647,7 @@ - - - - - - - - - @@ -748,258 +677,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + @@ -1201,9 +856,9 @@ - - + + @@ -1212,82 +867,157 @@ + + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + - - - - - - - - - - - - - - - - - + + - +