From 6b533771f006c1bfa97d1ecc84e5175fff26214b Mon Sep 17 00:00:00 2001 From: Pavel Talanov Date: Fri, 6 Jan 2012 14:56:23 +0400 Subject: [PATCH] switch to using ValueParameterDescriptor instead of JetParameter when translating function declarations implemented support for implicit 'it' parameter added 'clear' function to ArrayList temporary implementation --- .idea/workspace.xml | 675 +++++++++++------- .../translate/context/StandardClasses.java | 2 +- .../expression/FunctionTranslator.java | 26 +- .../org/jetbrains/k2js/test/FunctionTest.java | 10 + .../expression/function/cases/KT-921.kt | 67 ++ .../function/cases/implicitItParameter.kt | 12 + translator/testFiles/kotlin_lib.js | 4 + 7 files changed, 508 insertions(+), 288 deletions(-) create mode 100644 translator/testFiles/expression/function/cases/KT-921.kt create mode 100644 translator/testFiles/expression/function/cases/implicitItParameter.kt diff --git a/.idea/workspace.xml b/.idea/workspace.xml index c03574d25f3..1e385a19b81 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -14,10 +14,13 @@ + + - - - + + + + @@ -191,58 +194,13 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + @@ -251,7 +209,7 @@ - + @@ -266,10 +224,57 @@ - - + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -288,60 +293,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -369,10 +320,64 @@ - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -402,10 +407,6 @@ @@ -508,6 +513,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -563,7 +686,7 @@ - @@ -581,7 +704,37 @@ @@ -776,9 +899,9 @@ + - @@ -787,58 +910,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - @@ -918,6 +989,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + +