Commit Graph

5322 Commits

Author SHA1 Message Date
Evgeny Gerashchenko 9aee8a98e0 Added updating tree when Kotlin file changes "single-class" status. 2012-05-06 21:00:19 +04:00
Evgeny Gerashchenko 863e9a1f9d Got rid of some code duplication in JetProjectViewProvider. 2012-05-06 21:00:19 +04:00
Evgeny Gerashchenko f1ff0c68d5 Icon for file is class icon iff it has the only class declaration, and the name is the same as the file. 2012-05-06 21:00:18 +04:00
Pavel Talanov cd2783eac8 Try fix maven plugin compilation 2012-05-06 01:36:45 +04:00
pTalanov 9dfca4feb5 Uncomment test for KT-921
Minor code improvements
2012-05-05 22:17:19 +04:00
pTalanov 7b30cc3269 Minor code improvements and TODO fixes. 2012-05-05 22:03:42 +04:00
pTalanov 9a026aef3f Refactor K2JSTranslator facade
Add MainFunctionNotFoundException
2012-05-05 21:57:40 +04:00
pTalanov 292d0da749 Refactor facade.
Add TranslationException, UnsupportedFeatureException, TranslationInternalException
2012-05-05 21:50:11 +04:00
pTalanov 1896f7250f Refactor js.tests
Use Test#getName where possible
2012-05-05 20:37:02 +04:00
pTalanov 9b0ef758fb Fix maven plugin compilation. 2012-05-05 20:35:52 +04:00
pTalanov 29f224b81f EA - 35896 Case when property accessors are declared but only access level is specified 2012-05-05 19:36:22 +04:00
pTalanov c1e4b20e38 KT-1747 Can't have main function in nested namespaces
#KT-1747 Fixed
2012-05-05 18:55:19 +04:00
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