Commit Graph

5098 Commits

Author SHA1 Message Date
Alexander Udalov c56f397f71 Don't fail when "deprecated" doesn't have a message
EA-57345
2014-06-26 22:03:00 +04:00
Alexander Udalov eb11a7dc88 Move utilities out of runtime modules
DescriptorUtils & DescriptorSubstitutor contained a lot of utilities that were
used only in compiler & IDE. Move them closer to their usages
2014-06-26 22:02:59 +04:00
Alexander Udalov ac8eb0f5e8 Add PackageClassUtils.getPackageClassInternalName() 2014-06-26 20:57:39 +04:00
Alexander Udalov 80b7f88c60 Regenerate tests 2014-06-26 20:57:39 +04:00
Alexander Udalov 2144088627 Don't output full compiler FQ name on -printArgs 2014-06-25 22:32:14 +04:00
Alexey Sedunov cd44bc3fb0 Introduce Variable: Do not compare explicit receivers using ReceiverValue
#KT-5319 Fixed
2014-06-25 19:08:04 +04:00
Alexey Sedunov 1452ffec6d Find Usages: Classify package usages
#KT-4882 Fixed
2014-06-25 19:08:03 +04:00
Alexey Sedunov 86c8bfc864 Find Usages: Add support of searching by reference in AbstractFindUsagesTest 2014-06-25 19:08:01 +04:00
Alexey Sedunov 4d075b5437 Extract Function: Make nameForRef extension property (so that it's not overriden by delegation and parameter rename works properly) 2014-06-25 19:08:00 +04:00
Alexey Sedunov 15611da98b Extract Function: Add header to parameter table 2014-06-25 19:07:59 +04:00
Alexey Sedunov 103daa841f Extract Function: Simplify computation of return type by pseudocode instruction 2014-06-25 19:07:58 +04:00
Nikolay Krasko 44e41c5d96 Smart enter for do-while fixed
- Do not brake code if some expression parsed as body for bare "do"
 - Fix isStatement() check
2014-06-25 17:45:37 +04:00
Nikolay Krasko fd4aeb75fc Smart enter for one line statements in for, while and do-while
#KT-3600 In Progress
2014-06-25 14:23:00 +04:00
Nikolay Krasko 431f3ad185 Smart enter in function literal expression
#KT-3600 In Progress
2014-06-25 14:23:00 +04:00
Nikolay Krasko d4ac3454ce Smart enter for fun declaration
#KT-3600 In Progress
2014-06-25 14:22:59 +04:00
Nikolay Krasko 150ac0ab91 Smart enter for 'do-while' expression
#KT-3600 In Progress
2014-06-25 14:22:58 +04:00
Nikolay Krasko 56efcd15aa Smart enter for 'when'
#KT-3600 In Progress
2014-06-25 14:22:58 +04:00
Nikolay Krasko 8fc60f93d3 Smart enter for 'for' expression
#KT-3600 In Progress
2014-06-25 14:22:57 +04:00
Nikolay Krasko fab74d8092 Smart enter for while statement
#KT-3600 In Progress
2014-06-25 14:22:56 +04:00
Nikolay Krasko 693080acfc Smart enter for if statement
#KT-3600 In Progress
2014-06-25 14:22:56 +04:00
Nikolay Krasko 513ec93060 Formatting: Move '}' to next line in when 2014-06-25 14:22:55 +04:00
Nikolay Krasko 0716b09920 Fix errors in intentions after parser fixes 2014-06-25 14:22:54 +04:00
Evgeny Gerashchenko bf442a9700 Fixed loading integral constants from compiled classes. 2014-06-24 22:18:13 +04:00
zarechenskiy 0355b1bd53 Implement JavaTypeSubstitutor without PSI 2014-06-24 20:06:13 +04:00
Andrey Breslav cd28b216c1 Rename. INSTANCE -> DEFAULT in JetTypeChecker 2014-06-24 19:13:01 +04:00
Pavel V. Talanov 40a245a91f Hack to filter out irrelevant actions in quick fix tests output
Needed because of different behaviour locally and on build server
2014-06-24 16:37:45 +04:00
Pavel V. Talanov e3c170183e Fix invalid usage of descriptorToDeclaration in QuickFixUtil 2014-06-24 16:37:44 +04:00
Pavel V. Talanov 41dd12d46b Fix invalid usage of descriptorToDeclaration in QuickFixFactoryForTypeMismatchError 2014-06-24 16:37:44 +04:00
Andrey Breslav 38d4ca5469 Do not generate @NotNull annotations on void- or primitive-returning methods
#KT-4834 Fixed
  #KT-5255 Fixed
2014-06-24 15:54:11 +04:00
Valentin Kipyatkov 600446bbd2 Java to Kotlin converter: working on not loosing comments - refactored redundant .toKotlin() calls 2014-06-24 00:48:11 +04:00
Valentin Kipyatkov be44c5b7be Fixed test for java to Kotlin copy/paste - java standard classes used to not be resolved 2014-06-24 00:48:10 +04:00
Valentin Kipyatkov 149ea16f5c Java to Kotlin converter: supported try-with-resource construct, fixed anonymous class generation + fixed a bug with method return type
#KT-4488 Fixed
2014-06-24 00:48:08 +04:00
Valentin Kipyatkov 6fd8ac5236 Java to Kotlin converter: no more setting 'class identifiers', use ConversionScope 2014-06-24 00:48:07 +04:00
Valentin Kipyatkov 324040a02f Java to Kotlin converter: no usage search and body analysis for members out of conversion scope 2014-06-24 00:48:07 +04:00
Alexey Sedunov d6755b91ee Minor: Remove unnecessary action binding 2014-06-23 21:10:42 +04:00
Alexey Sedunov 66405cf883 Minor: Allow to select individual cells in Extract Function dialog 2014-06-23 21:10:40 +04:00
Alexey Sedunov 6be8ea5b19 Minor: Replace deprecated function call 2014-06-23 21:10:38 +04:00
Alexey Sedunov 64a2fde80a Extract Function: Fix signature update on dialog opening 2014-06-23 21:10:36 +04:00
Alexey Sedunov 0a89b26030 Extract Function: Implement UI for parameter type selection 2014-06-23 21:10:34 +04:00
Alexey Sedunov ca16f4231f Extract Function: Infer parameter type candidates
#KT-4940 Fixed
2014-06-23 21:10:12 +04:00
Alexey Sedunov e5ce5b7127 Extract Function: Fix call replacement for the case of lambda extraction 2014-06-23 19:32:35 +04:00
Alexey Sedunov a3f215fb34 Extract Function: Support extraction of "it" parameter from lambdas 2014-06-23 19:32:33 +04:00
Alexey Sedunov 14362134bd Extract Function: Traverse nested pseudocode instructions
#KT-5178 Fixed
2014-06-23 19:32:31 +04:00
Alexey Sedunov c7d8ab8219 Extract Function: Add support of property-as-function calls
#KT-5179 Fixed
2014-06-23 19:32:30 +04:00
Alexey Sedunov 6bc3772d29 Override/Implement: Add test to cover import optimization in the case of multiple import insertion (see #KT-4732) 2014-06-23 19:32:29 +04:00
Alexey Sedunov 5be7eb8a5c Shorten References: Do not optimize imports until shortening is finished
#KT-5227 Fixed
2014-06-23 19:32:27 +04:00
Alexey Sedunov 53c49b6333 Shorten References: Do not shorten qualified expression if receiver values are changed
#KT-5180 Fixed
2014-06-23 19:32:26 +04:00
Natalia Ukhorskaya a17bcce682 Add tests for exceptions from evaluate expression 2014-06-23 17:39:53 +04:00
Natalia Ukhorskaya 28cbe95e0c Generate invokeSpecial for all private functions 2014-06-23 17:17:42 +04:00
Natalia Ukhorskaya 3edd6b52cf Evaluate expression: test cache using logger 2014-06-23 17:17:40 +04:00