Commit Graph

7645 Commits

Author SHA1 Message Date
Dmitry Jemerov 3e8f163f1e don't complete KDoc tag names if we have a non-empty prefix which is not a tag name
#KT-7476 Fixed
2015-04-21 15:37:32 +02:00
Dmitry Jemerov efa41bfb2a support quick doc for completion items
#KT-4346 Fixed
2015-04-21 15:36:38 +02:00
Dmitry Jemerov eeb2728b7e show "defined in" for declarations in quick doc popup
#KT-7320 Fixed
2015-04-21 15:36:37 +02:00
Dmitry Jemerov 0c6cd3b422 KotlinQuickDocumentationProvider: cleanup after J2K done 2015-04-21 15:36:36 +02:00
Dmitry Jemerov a13e38578a KotlinQuickDocumentationProvider: cleanup after conversion 2015-04-21 15:36:36 +02:00
Dmitry Jemerov b1b138b424 KotlinQuickDocumentationProvider: J2K 2015-04-21 15:36:35 +02:00
Dmitry Jemerov 3d21824929 JetQuickDocumentationProvider: rename to .kt 2015-04-21 15:36:35 +02:00
Mikhail Glukhikh e64dab0ae9 Review fixes after automatic code analysis 2015-04-21 15:29:34 +03:00
Mikhail Glukhikh 27625b04e1 Refactoring of JetTypeInfo / BindingContext. Loop data flow analysis corrected.
Now BindingContext includes expression type info instead of jump out possible, data flow info and expression type.
getType() was added into BindingContext, getType() and recordType() were added into BindingTrace.
JetTypeInfo now includes also jump possible flag and jump point data flow info.
Old TypeInfoWithJumpInfo deleted.
TypeInfoFactory introduced to create JetTypeInfo instances.
A pack of extra tests for break / continue in loops added.
2015-04-21 15:29:07 +03:00
Denis Zharkov e1dfdc582d Minor. Drop trivial override 2015-04-21 08:08:31 +03:00
Denis Zharkov 8d7aa3fdcd Drop throws usages with changes in Java code 2015-04-21 08:08:31 +03:00
Denis Zharkov 5b9aff12d0 Drop throws usages that looks redundant
Probably appeared after j2k-conversion
2015-04-21 08:08:31 +03:00
Michael Nedzelsky d0616ed8bd fix KT-7512 JS: project with external library lead to deadlock and IDEA freeze due to wrong storage manager configured
#KT-7512 Fixed
2015-04-20 21:02:01 +03:00
Alexander Udalov 3d928a0842 Refactor deserialization initialization in built-ins and JS
BuiltinsPackageFragment was only designed to work with a single instance alive.
Because of this, it was creating deserialization subsystem upon initialization.
This was not working perfectly in JS where it was used, because multiple
storage managers, class caches and other components were created for each
package, leading to different concurrency errors and performance hits. Also in
the near future another package fragment will be needed to represent the
built-in package "kotlin.reflect"
2015-04-20 19:09:35 +03:00
Denis Zharkov cc9322fbdd Add quickfix for usages of javaClass<T>() in annotations loaded from Java 2015-04-17 18:52:17 +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
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
Mikhail Glukhikh a37ae6ba6d Test fixed accordingly with KT-3175 2015-04-16 20:48:48 +03:00
Mikhail Glukhikh 109e0abb6d Review fixes for mutable variable smart casting (mostly refactoring).
DataFlowValue.isPredictable() introduced instead of isStableIdentifier().
Parenthesized assignments are treated correctly.
2015-04-16 20:11:03 +03:00
Mikhail Glukhikh d5aed62410 Smart casts for local variables not captured in a closure and not changed in a loop, see #KT-3175.
isLocalVariable added. Assignment / initialization analysis.
Control whether a variable is changed in a loop at the beginning and at the end of the loop.
Control whether a variable is captured in a closure. #KT-3175  Fixed. #KT-2266  Fixed.
Tests for variable null safety and for variables is/as operations.
Loop / closure / variable property tests are included.
Old tests changed in accordance with KT-3175. In particular, all three of testSmartcastImpossible were fixed.
2015-04-16 20:10:58 +03:00
Pavel V. Talanov 3329136c9c Fix test data for quickfix tests
Depending on Module and ModuleBuilder from runtime
2015-04-16 16:40:44 +03:00
Pavel V. Talanov 818a6b5c2e Fix various tests and test data
Since we now distinguish between binaries and java source roots
2015-04-16 16:40:37 +03:00