Commit Graph

14424 Commits

Author SHA1 Message Date
Pavel V. Talanov 2499e95d38 Refactor DecompiledDataFactory 2014-03-04 21:19:49 +04:00
Pavel V. Talanov 65a479e3ef Rewrite DecompiledDataFactory to Kotlin 2014-03-04 21:19:48 +04:00
Pavel V. Talanov a1b59cee63 Add MissingDependencyErrorClass which is treated specially during rendering 2014-03-04 21:19:47 +04:00
Pavel V. Talanov 016fa4b817 Add test for decompiled text 2014-03-04 21:19:46 +04:00
Pavel V. Talanov 528148a083 Decompiler: introduce ResolverForDecompiler as dependency for DecompiledDataFactory
Extract JDR based implementation of ResolverForDecompiler from DecompiledDataFactory
2014-03-04 21:19:45 +04:00
Pavel V. Talanov b6b423935f Move test data for NavigateTo*Library tests to a more specific folder 2014-03-04 21:19:44 +04:00
Pavel V. Talanov bbcc2a33ed Minor code fix in NavigateToDecompiledLibraryTest 2014-03-04 21:19:43 +04:00
Pavel V. Talanov 796386049b Minor: remove explicit dependency on JavaDescriptorResolver from AnnotationDescriptorDeserializer 2014-03-04 21:19:42 +04:00
Pavel V. Talanov d647d2abbc Move caching of kotlin binaries classes to application level
Fix code in DecompiledUtils
2014-03-04 21:19:41 +04:00
Pavel V. Talanov b052cb8aa9 Switch to new decompiler API for IDEA
Patch from Roman Shevchenko adapted
2014-03-04 21:19:40 +04:00
Andrey Breslav d31c2884aa Compilation fixed 2014-03-04 21:09:47 +04:00
Tal Man 8cf965db7e 2 intentions for moving lambda functions;
moves lambda functions in function calls inside and outside of the
parenthesis: foo({ it }) <-> foo() { it }
2014-03-04 20:07:42 +04:00
Alexey Sedunov a18e2f7cfa Make utlity functions public 2014-03-04 19:45:37 +04:00
Alexey Sedunov 36633af275 Extract JSON utility functions 2014-03-04 19:45:36 +04:00
Alexey Sedunov 1edaa877dc Fix search scope of Kotlin light methods
#KT-4638 Fixed
2014-03-04 19:45:35 +04:00
Alexey Sedunov 3729966270 Forbid moving file to another file
#KT-4069 Fixed
2014-03-04 19:45:34 +04:00
Alexey Sedunov 12310b5bd9 Reuse getQualifiedElementSelector() function 2014-03-04 19:45:33 +04:00
Alexey Sedunov e48616e739 Do not insert parentheses into package directives
Add tests for "Move Package" refactoring
2014-03-04 19:45:32 +04:00
Alexey Sedunov d2f6b55cb5 Box qualified names of package directives into dot-qualified expressions 2014-03-04 19:45:30 +04:00
Alexey Sedunov 5e87fc35e0 Do not rely on write action lock during preparation phase of RefactoringHelper
#KT-4631 Fixed
2014-03-04 19:45:29 +04:00
Alexey Sedunov b34b3ccf38 Delete redundant annotation 2014-03-04 19:45:29 +04:00
Alexander Udalov f8d3f8480a Minor, use constants instead of hard-coded strings 2014-03-04 19:23:46 +04:00
Ladislav Thon 36bc7580aa fix main function detection to rely on actually resolved types 2014-03-04 19:18:14 +04:00
Valentin Kipyatkov a2f6b99862 Convert to block body intention action 2014-03-04 19:13:54 +04:00
Alexander Udalov af2a28c099 Minor, inline only once-used methods 2014-03-04 19:04:58 +04:00
Alexander Udalov d5e9cadccf Delete default "import jet.*" from JS analyzer 2014-03-04 18:19:43 +04:00
Alexander Udalov 3a0a688ebc Add test on KotlinSyntheticClass annotation for $$TImpl 2014-03-04 18:19:43 +04:00
Alexander Udalov 76cc5b301a Minor, revert unneeded "!!" 2014-03-04 18:19:43 +04:00
Alexander Udalov 981c40286f Minor, assert value != null in EnumValue
Similar to ArrayValue, AnnotationValue, etc.
2014-03-04 18:19:43 +04:00
Alexander Udalov c74b8e72c7 Extract DescriptorUtils.unwrapFakeOverride() 2014-03-04 18:19:42 +04:00
Alexander Udalov e017cf76f2 Minor, delete/inline methods 2014-03-04 18:19:42 +04:00
Alexander Udalov 4c49c39f8d Minor, delete unnecessary parameter from util method 2014-03-04 18:19:42 +04:00
Alexander Udalov eb5aba560e Load class kind in KotlinSyntheticClass annotation
Fix some of the usages of KotlinSyntheticClass header where really package
parts were meant (they were committed by mistake).

DescriptorResolverUtils.isCompiledKotlinPackageClass no longer checks for class
being a compiled package part, because PSI classes are not built for package
parts (according to EmptyPackageFragmentClsStubBuilderFactory)
2014-03-04 18:19:42 +04:00
Ilya Klyuchnikov ea40389e34 validating android annotations 2014-03-04 14:28:53 +04:00
Nikolay Krasko 1ee64f8186 Test for KT-4610
#KT-4610 Fixed
2014-03-03 19:24:27 +04:00
Nikolay Krasko 0dfbe08255 Test for KT-4482
#KT-4482 Fixed
2014-03-03 19:24:26 +04:00
Mikhael Bogdanov 16fbe1d5dd Abi version increased: inline calls in runtime (otherwise client inlining wouldn't work) 2014-03-03 15:52:25 +04:00
Mikhael Bogdanov 03ac462dcb jet->kotlin fix 2014-03-03 15:43:48 +04:00
Mikhael Bogdanov 6d1effe981 Inline trait support 2014-03-03 15:43:48 +04:00
Mikhael Bogdanov 286dd50be4 Code clean and simplification 2014-03-03 15:43:48 +04:00
Mikhael Bogdanov 1a011c3f9b Code clean and simplification 2014-03-03 15:43:47 +04:00
Mikhael Bogdanov 55fbdbd302 Code clean 2014-03-03 15:43:47 +04:00
Mikhael Bogdanov 8ac48b746c Closure assertions removal update 2014-03-03 15:43:47 +04:00
Mikhael Bogdanov 2d2ffea807 Construction invocation simplification 2014-03-03 15:43:47 +04:00
Mikhael Bogdanov cd030ec88e VirtualFileFinder refactoring 2014-03-03 15:43:46 +04:00
Mikhael Bogdanov ead2f84a29 Call generator refactoring 2014-03-03 15:43:46 +04:00
Mikhael Bogdanov e7603d2e62 Code simplification and clean
~special flag
2014-03-03 15:43:46 +04:00
Mikhael Bogdanov c8302fdf9c Push arguments refactoring 2014-03-03 15:43:46 +04:00
Mikhael Bogdanov 2d9674089c Support operatorAssign expressions in inline 2014-03-03 15:43:46 +04:00
Mikhael Bogdanov 4d8898c9f2 Rename: Inliner->CallGenerator 2014-03-03 15:43:45 +04:00