Commit Graph

21173 Commits

Author SHA1 Message Date
Nikolay Krasko 888a93115f Use function icon from the platform after removing 182
#KT-33536 Fixed
2019-08-30 12:14:21 +03:00
Nikolay Krasko 169aa6348c Remove runConfigurationsCompat.kt after removing 182
#KT-33536 Fixed
2019-08-30 12:14:16 +03:00
Nikolay Krasko ddcadc8138 Remove default implementations after removing 182
#KT-33536 Fixed
2019-08-30 12:14:12 +03:00
Nikolay Krasko 081ffe7d19 Remove ScriptModificationListener compat after removing 182
#KT-33536 Fixed
2019-08-30 12:14:07 +03:00
Nikolay Krasko 23f488498f Remove EditorFactoryListenerWrapper compat after removing 182
#KT-33536 Fixed
2019-08-30 12:14:01 +03:00
Nikolay Krasko 9abdddf09a Remove psiFile extension after removing 182
#KT-33536 Fixed
2019-08-30 12:13:56 +03:00
Nikolay Krasko 4d0fc1dc22 Remove 182 support
#KT-33536 Fixed
2019-08-30 12:13:44 +03:00
Nikolay Krasko 1c4ee6bd79 Remove as33 support
#KT-33536 Fixed
2019-08-30 12:13:09 +03:00
Toshiaki Kameyama 0ec18b4a33 Explicit this inspection: fix false negative with local variable
#KT-30136 Fixed
2019-08-30 12:07:13 +03:00
Mikhail Glukhikh f2c77c45e9 FIR: simplify rendering of dispatch & extension receivers 2019-08-30 11:47:33 +03:00
Mikhail Glukhikh 62bb127fc9 FIR: add K/J test with getValue() / value fake cycle 2019-08-30 11:47:32 +03:00
Mikhail Glukhikh b531e535b6 FIR call resolve: set values of dispatch & extension receivers 2019-08-30 11:47:31 +03:00
Dmitriy Novozhilov ef4ef08b1d [FIR] Add default upper bound for java type parameters 2019-08-30 11:10:31 +03:00
Igor Yakovlev 63892891db Add internal move refactoring testing action
This action doing further steps in infinite loop (breaks after user request):
1) Generate random move refactoring model
2) Run this model (if it is correct)
3) Recompile the project
4) If compilation was not succeeded write model parameters into output file
5) Delete all new files and directories and make "git reset"
2019-08-29 18:23:21 +03:00
Igor Yakovlev 3951fde081 Save 'Search for references' checkbox state on move of kotlin file
Fixed #KT-24929
2019-08-29 18:16:21 +03:00
Igor Yakovlev eca2707dbf Refactor of Move Refactoring
The main purpose of this commit - to make this refactoring logic can be covered as much as possible.
To make this possible we should to extract all possible UI code from business logic (and vice versa).
Additional fixes was applied during refactoring process.

There is come major steps made in this commit:
1) Extract business logic to separate models
2) Fixes of business models logic
3) Add "Delete empty source file" checkbox instead of modal message box
4) Improve error messaging in move refactoring dialogs
5) Inject interface into move handler that makes UI dialogs could be overrided
6) Inject flag into move handler that makes UI conflicts dialog could be overrided
2019-08-29 18:16:20 +03:00
Vladimir Dolzhenko a2fcefd456 Added fallback for LightClasses getOwnFields, getOwnMethods if dummy resolve failed (KT-27243, KT-33561) 2019-08-29 15:46:57 +02:00
Ilya Kirillov 982e7fdd86 New J2K: do not shorten class references for some Java primitive class wrappers classes
It may cause unresolved call errors

#KT-33500 fixed
2019-08-29 11:31:53 +03:00
Igor Yakovlev 7b2f39530a Fix invalid testdata for ConvertToScopeIntention applicability 2019-08-28 16:31:49 +03:00
Vyacheslav Gerasimov cf39803074 Pass cacheRedirectorEnabled flag to performance test gradle import
#KT-33582
2019-08-28 16:14:05 +03:00
Dmitry Gridin b04fbbd43b Fix testUnusedSymbol_class_inspectionData_Inspections_test test 2019-08-28 19:11:42 +07:00
Igor Yakovlev 1e72116a9c Fix test data for intention tests
The ExtractDeclarationFromCurrentFileIntention applicability range was changed by commit 3b35c2d24 so the test data of several test comes invalid
2019-08-28 13:07:33 +03:00
Dmitry Gridin 55f4610926 Tests: fix invalidBundleOrProperty test for 183
#KT-32860 Fixed
2019-08-28 17:03:13 +07:00
Toshiaki Kameyama d4e4a4c3e7 To ordinary string literal: remove 'trimIndent()' if string is single line
#KT-32616 Fixed
2019-08-27 22:21:49 +03:00
Dmitry Gridin e9b2e74b15 escapeXML: fix bunch for 183 2019-08-27 18:06:06 +07:00
Dmitry Gridin ea02d0c632 ExpectActualUtils: repairSuperTypeList should consider type parameters 2019-08-27 17:26:11 +07:00
Dmitry Gridin 03141be11e ExpectActualUtils: update repairAnnotationEntries for more cases with annotations 2019-08-27 17:26:11 +07:00
Dmitry Gridin ba0ba3422d CreateExpectedFix: rename isCorrectAndHaveNonPrivate to isCorrectAndHaveNonPrivateModifier 2019-08-27 17:26:10 +07:00
Dmitry Gridin 3c6da0bfe6 TypeAccessibilityChecker: rename existingFqNames to existingTypeNames and add comments 2019-08-27 17:26:10 +07:00
Dmitry Gridin 531f695404 CreateExpectedFix: remove recursive call from findAndApplyExistingClasses 2019-08-27 17:26:10 +07:00
Dmitry Gridin 35d64f85f8 TypeAccessibilityCheckerImpl: explicitParameters change return type to Sequence 2019-08-27 17:26:10 +07:00
Dmitry Gridin aa135bc505 TypeAccessibilityCheckerImpl: move visibility check for KtNamedDeclaration to outside 2019-08-27 17:26:10 +07:00
Dmitry Gridin eaa28fd4ed CreateExpect: fix build for a33 2019-08-27 17:26:10 +07:00
Dmitry Gridin 27d7ee8518 TypeAccessibilityChecker: move to idea-analysis module 2019-08-27 17:26:10 +07:00
Dmitry Gridin 56a7445660 CreateExpect: should prefer type aliases
#KT-32571 Fixed
2019-08-27 17:26:10 +07:00
Dmitry Gridin 5928a36fa2 CreateExpect: should save receiver annotations
#KT-32694 Fixed
2019-08-27 17:26:09 +07:00
Dmitry Gridin 42ef9d634a ExpectActualUtils: merge generateFunction with generateProperty to generateCallable & remove old checker 2019-08-27 17:26:09 +07:00
Dmitry Gridin 90b82c96eb TypeAccessibilityChecker: fix incorrectTypes for descriptor 2019-08-27 17:26:09 +07:00
Dmitry Gridin 1c98cb763e addRemoveModifier: shouldn't add extra new line
#KT-26635 Fixed
2019-08-27 17:26:09 +07:00
Dmitry Gridin 0458a22f78 TypeAccessibilityChecker: fix case with unresolved type params 2019-08-27 17:26:09 +07:00
Dmitry Gridin 4ed56908af CreateExpect: add actual modifier to original class if needed 2019-08-27 17:26:09 +07:00
Dmitry Gridin 73ae993d81 TypeAccessibilityChecker: add more tests 2019-08-27 17:26:09 +07:00
Dmitry Gridin 84d167b7bd TypeAccessibilityChecker: add logs for tests 2019-08-27 17:26:08 +07:00
Dmitry Gridin 7c850e44d2 CreateExpectedFix: add escaping for error text 2019-08-27 17:26:08 +07:00
Dmitry Gridin 3617f3d247 TypeAccessibilityChecker: fix callable with upper bound 2019-08-27 17:26:08 +07:00
Dmitry Gridin 46fefde09c ExpectActualUtils: introduce TypeAccessibilityChecker
#KT-28537 Fixed
#KT-28538 Fixed
#KT-28549 Fixed
#KT-28620 Fixed
#KT-31433 Fixed
#KT-31475 Fixed
#KT-32642 Fixed
#KT-32768 Fixed
#KT-33150 Fixed
2019-08-27 17:26:08 +07:00
Dmitry Gridin d1b33485a4 ExpectActualUtils: rename checkTypeInSequence to incorrectTypesInSequence & change return type 2019-08-27 17:26:08 +07:00
Dmitry Gridin 18f0bbe8f1 QuickFixMultiModule: change tests structure 2019-08-27 17:26:08 +07:00
Dmitry Gridin bddf768d59 CreateExpect: fix case with parameters in constructor without var/val 2019-08-27 17:26:07 +07:00
Dmitry Gridin 1b718761b2 AbstractQuickFixMultiModuleTest: support multiline errors SHOULD_FAIL_WITH 2019-08-27 17:26:07 +07:00