Commit Graph

21840 Commits

Author SHA1 Message Date
Denis Zharkov f53baebf89 Show warning on usages of javaClass<T>() in annotations loaded from Java 2015-04-17 18:50:37 +03:00
Denis Zharkov 482b4e3688 Minor, split and clean tests
Tests that are using javaClass supposed to be deleted soon
while other ones just check that annotation loaded correctly
and shold use class literals
2015-04-17 17:40:41 +03:00
Alexey Sedunov 7a02bdae23 Extraction Engine: Fix implicit "this" analysis under smart-casts 2015-04-17 16:30:29 +03:00
Alexey Sedunov bf13f7e637 Introduce Parameter: Do not remove unused parameters if new parameter is extracted with default value 2015-04-17 16:30:28 +03:00
Alexey Sedunov 6e2076d602 Change Signature: Process Kotlin-side calls of Java methods overriding Kotlin declarations 2015-04-17 16:30:27 +03:00
Alexey Sedunov 58bee8c57f Change Signature: Fix element bound to UsageInfo 2015-04-17 16:30:26 +03:00
Alexey Sedunov 8a04a604ce Usages Search: Introduce extension for usages of methods overriding Kotlin functions/properties 2015-04-17 16:30:25 +03:00
Michael Bogdanov 4775858e1c Analyze inline function with reified type parameters in ByteCodeToolWindow when inlinie disabled 2015-04-17 14:24:36 +03:00
Michael Bogdanov 48aef1eb28 Fix for KT-6895: Compile error on Android (EXCEPTION FROM SIMULATION) when declaring locals in an inline function
#KT-6895 Fixed
2015-04-17 14:24:35 +03:00
Michael Bogdanov 0080ebd386 Fix for KT-7273: Bad local variable type when using non-local return
#KT-7273 Fixed
2015-04-17 14:24:34 +03:00
Michael Bogdanov 51d5b52f69 refactorings 2015-04-17 14:24:34 +03:00
Michael Bogdanov 6465c6b680 Refactoring: extracted split method into intervals 2015-04-17 14:24:33 +03:00
Michael Bogdanov 2f88baf641 Refactoring: added Interval abstraction to represent TryCatchBlock and LocalVar nodes 2015-04-17 14:24:33 +03:00
Alexey Sedunov 45428895ad Change Signature: Always put last lambda argument outside of value argument list 2015-04-17 13:04:57 +03:00
Alexey Sedunov daebf569ab Extract Function: Allow capturing local function references as lambda parameters 2015-04-17 13:04:56 +03:00
Mikhail Glukhikh 86bb0d5bc5 Build fix. The second version of DataFlowInfo.getPossibleTypes returning also the original type added and used. 2015-04-17 11:49:44 +03:00
Valentin Kipyatkov 6421f48c07 Further code improvements during review 2015-04-16 22:00:54 +03:00
Valentin Kipyatkov 1aa123dadb InsertExplicitTypeArguments - minor code improvements 2015-04-16 22:00:54 +03:00
Valentin Kipyatkov 2466aa64fe InsertCurlyBracesToTemplateIntention - no i18n 2015-04-16 22:00:54 +03:00
Valentin Kipyatkov 7ccb20977d ConvertToStringTemplateIntention - minor code improvements 2015-04-16 22:00:54 +03:00
Valentin Kipyatkov a8d629f609 ConvertToForEachLoopIntention - renamed 2015-04-16 22:00:54 +03:00
Valentin Kipyatkov a155b0c860 ConvertToForEachLoopIntention - smaller range + refactored 2015-04-16 22:00:54 +03:00
Valentin Kipyatkov fc8b046694 ConvertToForEachFunctionCallIntention - smaller availability range + code refactoring 2015-04-16 22:00:53 +03:00
Valentin Kipyatkov c2335790b5 ConvertToExpressionBodyIntention - refactoring 2015-04-16 22:00:53 +03:00
Valentin Kipyatkov 94480e3d5c Renamed in test data 2015-04-16 22:00:53 +03:00
Valentin Kipyatkov 0334ad1152 ConvertToConcatenatedStringIntention - minor code improvements + fixed bug 2015-04-16 22:00:53 +03:00
Valentin Kipyatkov b980d98af6 ConvertToBlockBodyAction - refactoring 2015-04-16 22:00:53 +03:00
Valentin Kipyatkov b201e60081 ConvertReceiverToParameterIntention - no i18n 2015-04-16 22:00:53 +03:00
Valentin Kipyatkov 24203a8a31 ConvertPropertyToFunctionIntention - no i18n + a bit better range 2015-04-16 22:00:52 +03:00
Valentin Kipyatkov 0698bb3866 ConvertParameterToReceiverIntention - made available on parameter name only + minor 2015-04-16 22:00:52 +03:00
Valentin Kipyatkov 960a45e4cc Code simplifications 2015-04-16 22:00:52 +03:00
Valentin Kipyatkov ff44f1fa32 ConvertFunctionToPropertyIntention minor code improvements + to work in the end of name 2015-04-16 22:00:52 +03:00
Valentin Kipyatkov 636f80ee48 ConvertAssertToIfWithThrowIntention: smaller availability range + minor code refactorings 2015-04-16 22:00:52 +03:00
Valentin Kipyatkov 1268684ced Smaller availability range for RemoveBracesIntention + refactored it and AddBracesIntention 2015-04-16 22:00:52 +03:00
Valentin Kipyatkov dc6c6f13d5 OperatorToFunctionIntention and SwapBinaryExpressionIntention: more narrow availability range + no i18n 2015-04-16 22:00:52 +03:00
Valentin Kipyatkov 00a4beae1d Refactoring of JetSelfTargetingInspection 2015-04-16 22:00:51 +03:00
Valentin Kipyatkov 894bf000e1 JetSelfTargetingInspection - deprecated i18n usage 2015-04-16 22:00:51 +03:00
Alexey Tsvetkov 8c01298930 JS: generated tests 2015-04-16 21:17:12 +03:00
Alexey Tsvetkov ff5090136c JS: do not extract expressions, when inline call can be expression 2015-04-16 21:17:12 +03:00
Alexey Tsvetkov bf5300a849 JS: fixed tryCatchFinally test because of KT-7328 bug 2015-04-16 21:17:12 +03:00
Alexey Tsvetkov 78a6b95f5a JS: added test case, where inline call in "for" is used 2015-04-16 21:17:12 +03:00
Alexey Tsvetkov 27a1861263 JS: lambda constructor cannot have sideEffect 2015-04-16 21:17:12 +03:00
Alexey Tsvetkov 97a1a13235 JS: inline componentN functions
#KT-7294 fixed
2015-04-16 21:17:12 +03:00
Alexey Tsvetkov a9d38e8d22 JS: decomposition of vars 2015-04-16 21:17:11 +03:00
Alexey Tsvetkov e80059e4a2 JS: decomposition of "while" and "do while" 2015-04-16 21:17:11 +03:00
Alexey Tsvetkov 71ea487828 JS: decomposition of "if" 2015-04-16 21:17:11 +03:00
Alexey Tsvetkov c0111d6e33 JS: decomposition of binary operator
#KT-6437 fixed
 #KT-7359 fixed
2015-04-16 21:17:11 +03:00
Alexey Tsvetkov fd844ad6e3 JS: decomposition of ternary operator 2015-04-16 21:17:11 +03:00
Alexey Tsvetkov 3782b9d382 JS: decomposition of array access 2015-04-16 21:17:11 +03:00
Alexey Tsvetkov 8b68f6d9ab JS: decomposition of array literal 2015-04-16 21:17:11 +03:00