Commit Graph

5310 Commits

Author SHA1 Message Date
pTalanov 869a8ab1ba Refactoring of K2JSTranslator and neighboring classes
Drop GenerationUtils
Introduce MainCallParameters
Generate calls to main function together with the other code in contrast to as text afterwards
Enhance tests a bit
2012-05-05 18:50:02 +04:00
pTalanov 9681a61fd2 Pure cosmetics in K2JSCompiler* 2012-05-05 17:10:58 +04:00
pTalanov ea6076f638 KT-1865 Calls with default argument values are generated incorrectly
#KT-1865 Fixed
2012-05-05 16:51:48 +04:00
pTalanov 68680f702b Fix a bug which caused incorrectly generated js when you call extension literal from extension function. 2012-05-05 16:51:48 +04:00
Stepan Koltsov 80aee299ba remove nop code 2012-05-04 23:57:14 +04:00
Stepan Koltsov 956fa6440f reformat for human 2012-05-04 23:57:13 +04:00
Stepan Koltsov dd332bc08c -mode idea
#KT-1893 Fixed
2012-05-04 23:57:13 +04:00
Stepan Koltsov 78a4ebe236 comma 2012-05-04 23:57:12 +04:00
Leonid Shalupov 4a0f929fc3 bin scripts to call js compiler 2012-05-04 23:50:41 +04:00
pTalanov 397928c4e4 K2JSCompiler cli:
Refactor.
Support zipped library sources as parameter.
Support output file path as parameter.
2012-05-04 23:15:37 +04:00
pTalanov d23cca223d K2JSCompiler generates output file 2012-05-04 23:15:36 +04:00
Leonid Shalupov ded589249f fix build from idea 2012-05-04 23:10:31 +04:00
Leonid Shalupov 81a33bd7e8 build: more rules for jarjar 2012-05-04 23:06:17 +04:00
Leonid Shalupov 80b96dc949 shrink option in build.xml. specify -Dshrink=false to speed up the build 2012-05-04 22:50:19 +04:00
Svetlana Isakova 765d851b1a Tests for fixed issues
#KT-1736 fixed
 #KT-1244 fixed
 #KT-1738 fixed
2012-05-04 20:47:26 +04:00
Svetlana Isakova 22e9e7de10 more small tests 2012-05-04 20:47:26 +04:00
Andrey Breslav 821127ac7e Immediate recursion allowed in substitutions
The assertion is kept commented for future use
2012-05-04 20:07:41 +04:00
Andrey Breslav f82e46e3ac Proper message
My little daily WTF...
2012-05-04 20:07:41 +04:00
Andrey Breslav 2c8b3c879c TypeSubstitutor rewritten to be more readable 2012-05-04 20:07:40 +04:00
Andrey Breslav 7390aeb022 Diagnostic fixed 2012-05-04 20:07:40 +04:00
Andrey Breslav 5dc8cf48bc TypeSubstitution moved to top level 2012-05-04 20:07:40 +04:00
Andrey Breslav 3ca8bf6f63 Clarifying renamings 2012-05-04 20:07:40 +04:00
Andrey Breslav c9c482925c More details in the error message 2012-05-04 20:07:40 +04:00
Andrey Breslav f7422a12bc Loop header cleaned up 2012-05-04 20:07:39 +04:00
Andrey Breslav 6ba44a133f Tests for recursive upper bounds 2012-05-04 20:07:39 +04:00
Andrey Breslav a0367bcfa2 Guard from immediately recursive substitutions
* substitutions of the form T -> T are removed
* an assertion added against nontrivial cases like T -> Foo<T>
2012-05-04 20:07:39 +04:00
Andrey Breslav 22166bad1b Proper debug name 2012-05-04 20:07:39 +04:00
Leonid Shalupov 1e15b80781 restored bin/kotlin 2012-05-04 19:59:36 +04:00
Leonid Shalupov e6418598d1 fix linux build 2012-05-04 19:43:37 +04:00
Leonid Shalupov 4eae229127 reworked kotlin compiler dist 2012-05-04 19:12:02 +04:00
Stepan Koltsov 743c14f239 JDR: hide static members from superclasses
#KT-1880 Fixed
2012-05-04 19:06:57 +04:00
Stepan Koltsov 15cc3b7d78 make jarjar and proguard optional for faster ant dist 2012-05-04 19:06:51 +04:00
pTalanov d327777821 Verbose parameter treated correctly
Fixes CompilerSmokeTest broken by previous commit
2012-05-04 18:14:11 +04:00
pTalanov 3e3a22a5c9 CLI refactoring.
Some steps towards nice K2JS cli.
2012-05-04 16:23:31 +04:00
pTalanov be98258ffa Change tests dependencies. 2012-05-04 16:15:03 +04:00
pTalanov bc204c1194 Finish tests fix 2012-05-04 16:00:40 +04:00
pTalanov 5ea8e0f697 Rollback commented out code.
Implement a hacky solution for the new "invoke" concept.
Fix most of the tests. (apart from 3)
2012-05-04 16:00:39 +04:00
Evgeny Gerashchenko 646cdefc51 Updated test.
#KT-1896 fixed
2012-05-04 15:46:40 +04:00
Evgeny Gerashchenko ee43f03e0a Changed quick doc information for references to Kotlin entities which are loaded from libraries.
#KT-1233 fixed
2012-05-04 15:43:31 +04:00
Svetlana Isakova 53397d7130 tests for KT-606 dependents & duplicates
#KT-1489 fixed
 #KT-1728 fixed
2012-05-04 14:54:12 +04:00
Nikolay Krasko 652b9e78c3 Tests for KT-1888
#KT-1888 fixed
2012-05-04 14:24:34 +04:00
Nikolay Krasko f02559afc7 Merge pull request #47 from Frostman/impl-ext-fun-fix
Fix for KT-1888 Incorrect automatic implementing of extension member
2012-05-04 03:22:39 -07:00
Evgeny Gerashchenko 85bc996f00 Changed tooltip text for vals captured in a closure.
#KT-1744 fixed
2012-05-04 12:48:54 +04:00
Sergey Lukjanov 442d09b4e0 Incorrect automatic implementing of extension property has been fixed. 2012-05-04 10:40:18 +04:00
Sergey Lukjanov ba5fadd677 Incorrect automatic implementing of extension function has been fixed. 2012-05-04 10:29:52 +04:00
Svetlana Isakova 335f0a6b5e 'isSafeCall' method added to ResolvedCall 2012-05-03 22:02:30 +04:00
Evgeny Gerashchenko 5846123de1 Made "Remove Explicitly Specified Type" available on property type. 2012-05-03 21:15:55 +04:00
Evgeny Gerashchenko d9fc85f6f5 Added test for "Specify type explicitly" for loop parameters.
#KT-1890 fixed
2012-05-03 21:04:43 +04:00
Evgeny Gerashchenko 14c7b6d74c Made "Specify type explicitly" intention available for loop parameters.
#KT-1890 fixed
2012-05-03 21:03:52 +04:00
Evgeny Gerashchenko 68c7e0d986 Made SpecifyTypeExplicitlyAction stateless. 2012-05-03 20:51:43 +04:00