Commit Graph

16552 Commits

Author SHA1 Message Date
Valentin Kipyatkov 947bf3c0ed Java to Kotlin converter: keep original placement of primary constructor body + better preserving of comments for constructor 2014-07-10 23:20:33 +04:00
Valentin Kipyatkov 88bdbb02f4 Fixed test data 2014-07-10 23:20:33 +04:00
Valentin Kipyatkov 8512eac768 Fixed KT-5315 J2K: Generate local var when parameter is being assigned
#KT-5315 Fixed
2014-07-10 23:20:33 +04:00
Valentin Kipyatkov 427280a365 Java to Kotlin converter: added heuristics that values of types like Integer are likely nullable 2014-07-10 23:20:33 +04:00
Valentin Kipyatkov 30a7c67aaa Java to Kotlin converter: fixed crash in converter + more correct auto insertion of !!
#KT-851 Fixed
2014-07-10 23:20:33 +04:00
Valentin Kipyatkov d3b773c0cd Java to Kotlin converter: declaring locals as var's in most of cases when needed, dropped forceLocalVariableImmutability setting 2014-07-10 23:20:33 +04:00
Valentin Kipyatkov 63ebfe2c03 Java to Kotlin converter: more correct logic for specifying field type 2014-07-10 23:20:33 +04:00
Valentin Kipyatkov 6e473506fc Java to Kotlin converter: specify local variable type when necessary
#KT-5277 Fixed
2014-07-10 23:20:32 +04:00
Valentin Kipyatkov 73ba1af779 Java to Kotlin converter: minor code refactoring 2014-07-10 23:20:32 +04:00
Valentin Kipyatkov a99f6f3774 Java to Kotlin converter: honor external Nullable/NotNull annotations 2014-07-10 23:20:32 +04:00
Valentin Kipyatkov f8fef59654 Java to Kotlin converter: checking that no element prototype assignment forgotten + no memory leaks through singleton Element instances 2014-07-10 23:20:32 +04:00
Valentin Kipyatkov 4f27dd63b5 Java to Kotlin converter: minor code corrections after review 2014-07-10 23:20:32 +04:00
Valentin Kipyatkov 52994d69ca Java to Kotlin converter: fixed conversion of access to Kotlin property declared as constructor parameter 2014-07-10 23:20:32 +04:00
Alexander Udalov 51ecfe2a09 Don't fail on a bad Retention annotation in light classes
#KT-5450 Fixed

No new tests added because it seems there are no tests on highlighting which
cause light class generation, where the original error occurred
2014-07-10 20:30:47 +04:00
Alexander Udalov 0e758b97f7 Minor, delete outdated comments and refine type 2014-07-10 20:30:47 +04:00
Alexander Udalov 242376550c Minor, beautify code in StackValue.CallReceiver 2014-07-10 20:30:46 +04:00
Alexander Udalov f1b199f6c4 Minor, add assertion message to CodegenContext 2014-07-10 20:30:46 +04:00
Alexander Udalov 947c9fb1bf Minor, rename "inner" -> "nested" in tests 2014-07-10 20:30:45 +04:00
Alexander Udalov dec5a80cdb Refine type of CalculatedClosure#superCall
Instead of PSI, store the actual resolved call
2014-07-10 20:30:45 +04:00
Alexander Udalov 780fb78529 Avoid duplicate synthetic parameter marking in FunctionCodegen 2014-07-10 20:30:44 +04:00
Alexander Udalov 374d50609d Inline ExpressionCodegen#pushMethodArguments, drop "skipLast" hack 2014-07-10 20:30:40 +04:00
Alexander Udalov 2bdf1a4290 Introduce an abstract ArgumentGenerator in ExpressionCodegen 2014-07-10 20:30:39 +04:00
Alexander Udalov d95cb82f36 Don't use ExpressionCodegen's internals in MonitorInstruction 2014-07-10 20:30:39 +04:00
Alexander Udalov f425adfb71 Minor cleanup in ExpressionCodegen#pushMethodArguments 2014-07-10 20:30:35 +04:00
Alexander Udalov fc89424295 Minor corrections in JVM codegen
- use mapSignature instead of mapToCallableMethod where possible
- use resolvedCall where possible
- fix some warnings and style issues
2014-07-10 18:45:41 +04:00
Zalim Bashorov 2947963e67 IDEA plugin: fixed highlighting for objects. 2014-07-10 17:25:43 +04:00
Zalim Bashorov 2ee818f784 Minor in IDEA plugin: jet -> kotlin in JetBundle.properties 2014-07-10 17:25:42 +04:00
Zalim Bashorov c51b653b31 Minor: fixed tests. 2014-07-10 17:25:42 +04:00
Zalim Bashorov 189080e624 JVM backend: fixed the getting Unit instance -- Unit.VALUE -> Unit.instance$. 2014-07-10 17:25:42 +04:00
Zalim Bashorov 3ef624f121 Builtins: made Unit object. 2014-07-10 17:25:42 +04:00
Pavel V. Talanov 915bb208f0 Add test for failing assertion in JetPropertyStub.createStub
Test for eec6fbb205
Delayed because test data was causing reindex of the whole project
2014-07-10 15:58:03 +04:00
Evgeny Gerashchenko 479711e812 Moved current incremental compiler test data into subdirectory.
Tweaked test generator to avoid creating test methods for parent directory of tests.
2014-07-10 15:05:20 +04:00
Evgeny Gerashchenko 829c25bcf9 Not writing compiler script path when in JPS plugin output.
XML script is removed after JPS plugin session anyway, so it's usually hard to check its contents. Also, it is redundant since -printArgs will write it anyway, so there is still possibility to debug.
2014-07-10 15:05:19 +04:00
Evgeny Gerashchenko 9206bfb68f Not writing compiler arguments from JPS plugin by default. 2014-07-10 15:05:19 +04:00
Evgeny Gerashchenko c4573b8c5a Got rid of ModuleDescription intermediate entity. 2014-07-10 15:05:19 +04:00
Evgeny Gerashchenko 40703c125c Made it possible to run incremental compiler from IDEA.
Two guava functions used were replaced with custom tiny functions, because JPS plugin won't have guava in classpath.
2014-07-10 15:05:19 +04:00
Evgeny Gerashchenko 7212597e61 Optimized KotlinBuilder for targets without Kotlin. Checking dirty/removed files only. 2014-07-10 15:05:19 +04:00
Evgeny Gerashchenko 0a3d852336 Minor. Renamed test data to avoid repetitions. 2014-07-10 15:05:18 +04:00
Evgeny Gerashchenko 55ed0471b6 KT-4980 'Remove braces' intention throws NPE for a for-loop with variable declaration
#KT-4980 fixed
2014-07-10 15:05:18 +04:00
Evgeny Gerashchenko 86d2565700 Added test for KT-4827 UOE at PackageType.throwException()
#KT-4827 obsolete
 #EA-53605 obsolete
2014-07-10 15:05:18 +04:00
Evgeny Gerashchenko 8842bb574c KT-5397 Simplify text of DeMorgan law conversion intentions
#KT-5397
2014-07-10 15:05:18 +04:00
Evgeny Gerashchenko 62bb3f8782 Renamed CodeTransformationTest -> IntentionTest. 2014-07-10 15:05:18 +04:00
Evgeny Gerashchenko fda7aeecfb Simplified CodeTransformationTest. Only one doTest method remains, intention class is moved to test data. Merged other intention tests (SpecifyTypeExplicitlyTest, ConvertToBlock/ExpressionBodyTest) into this one. 2014-07-10 15:05:17 +04:00
Evgeny Gerashchenko b1003fc034 Extracted test for "Join Lines" from CodeTransformationsTest. 2014-07-10 15:05:17 +04:00
Michael Bogdanov ea20073d4b Fix error message 2014-07-10 14:19:35 +04:00
Pavel V. Talanov ab07aea82f Fix an NPE in VirtualFileKotlinClassFinder#findKotlinClass(JavaClass)
Happens for nonphysical PsiClass
2014-07-10 14:08:14 +04:00
Pavel V. Talanov f0e91182da Minor: Remove context parameter from getContainingFile() utility and move it to DescriptorToSourceUtils 2014-07-09 21:46:28 +04:00
Pavel V. Talanov 119e361b4b Restore check in BuiltInsReferenceResolver
Erroneously deleted in d988256831
2014-07-09 21:43:02 +04:00
Pavel V. Talanov 3c48d0dec2 Fix usage of utility in KDoc 2014-07-09 19:08:32 +04:00
Pavel V. Talanov 16aefae602 Move descriptorToDeclaration utilities family to a separate util class DescriptorToSourceUtils 2014-07-09 19:07:26 +04:00