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
02fd137cec
SimpleTestClassModel: add deep field
2019-08-27 17:26:08 +07:00
Dmitry Gridin
65ce4aed1a
TestGenerationDSL: cleanup code
2019-08-27 17:26:07 +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
Dmitry Gridin
3f7c983f04
CreateExpectFix: fix selection for primary constructor
2019-08-27 17:26:07 +07:00
Dmitry Gridin
4a049b9b01
GenerateTests: cleanup code
2019-08-27 17:26:07 +07:00
Dmitry Gridin
1748906d9a
ExpectActualUtils: should add annotations
2019-08-27 17:22:16 +07:00
Dmitry Gridin
5e60ea2272
ExpectActualUtils: should remove override
2019-08-27 17:22:16 +07:00
Dmitry Gridin
7561905676
ExpectActualUtils: add type accessibility check for supertypes
2019-08-27 17:22:15 +07:00
Dmitry Gridin
8e9952e203
multiplatformUtil: implement Module.toDescriptor()
2019-08-27 17:22:15 +07:00
Dmitry Gridin
755f7e8739
elementRenderingUtils: override visitor for KtTypeReference, KtParameterList, KtParameter
2019-08-27 17:22:15 +07:00
Dmitry Gridin
c17e19b004
elementRenderingUtils: cleanup code
2019-08-27 17:22:15 +07:00
Dmitry Gridin
2b32c9d2f9
ExpectActualUtils: add type arguments accessibility check for constructors
2019-08-27 17:22:15 +07:00
Dmitry Gridin
e59571c482
ExpectActualUtils: add type arguments accessibility check for top level classes
2019-08-27 17:22:15 +07:00
Dmitry Gridin
bad9459978
ExpectActualUtils: add type arguments accessibility check
2019-08-27 17:22:15 +07:00
Dmitry Gridin
5884c65857
ExpectActualUtils: add type accessibility check
2019-08-27 17:22:15 +07:00
Dmitry Gridin
dffb44c11c
Create actual/expect quick fix should render super type correctly
2019-08-27 17:22:15 +07:00
Dmitry Gridin
a21375508d
ExpectActualUtils: drop missedDeclarations parameter from generateClassOrObject function
2019-08-27 17:22:14 +07:00
Alexander Udalov
22f8b9f475
Remove codegen tests on inline classes based on type parameters
...
According to KT-23819, such inline classes are prohibited. These tests
can be restored (and fixed if needed) as soon as we allow this back
2019-08-27 11:01:08 +02:00
Steven Schäfer
6bf16a96e1
Add more tests for type operators on the jvm
2019-08-27 10:44:23 +02:00
Steven Schäfer
b6ea135e70
Add a TypeOperatorLowering for JVM_IR
2019-08-27 10:44:23 +02:00
Alexander Udalov
39ba462540
JVM IR: remove unneeded part of a hack for inlining $default methods
...
Every non-intrinsic IrFunction now has a class container in JVM IR, so
this logic is no longer necessary
2019-08-26 19:41:26 +02:00
Alexander Udalov
34400add22
Minor, add IrCallableMethod.toString
2019-08-26 19:41:25 +02:00
Alexander Udalov
dd74794f97
Minor, add message to exception thrown in parentAsClass
2019-08-26 19:41:25 +02:00
Toshiaki Kameyama
a3c3ab08fd
Override/Implement members: place members in the same order as super class members
2019-08-26 13:18:31 +07:00
Roman Golyshev
a38651c1ec
KT-32366: Add missing 182 bunch file for the foldingTestUtils.kt
2019-08-23 22:59:45 +03:00
Igor Yakovlev
5a511dd635
Refactor and fix of the run/apply/let/also intention converter
...
1) Optimize and refactored code
2) Added support for correct renaming of target identifier to this/it
3) Added support of cases with difficult application targets (like: var x = 1 + 2)
4) Show error hint when refactoring failed for some reason
5) Improved intention applicability checking to eliminate false-positive cases
6) Fixed EA-209577
2019-08-23 19:37:00 +03:00
Ilmir Usmanov
ef5fcb4e9e
Fix test data
2019-08-23 19:09:28 +03:00
Roman Golyshev
37e3c41b57
KT-32366: Add sync scroll for source and preview editor
...
- ^KT-32366 Fixed
2019-08-23 18:22:27 +03:00
Roman Golyshev
e488e920d8
KT-32366: Add tests for right preview window
...
- also, fix missing test generation in `GenerateTests` bunch files (which was introduced in e54b43ba )
2019-08-23 18:22:26 +03:00
Roman Golyshev
bddf87337c
KT-32366: Add printing scratch output to preview window
...
- printing is done with `PreviewEditorScratchOutputHandler`
- `KtsScratchFileEditorWithPreview` redirects output depending on the layout selection
2019-08-23 18:22:26 +03:00
Roman Golyshev
e321ee1396
KT-32366: Inject toolWindowHandler from InlayScratchOutputHandler
...
- `toolWindowHandler` would be shared between different scratch editors, so we need `ScratchToolWindowHandlerKeeper` to provide proper mechanism for its acquiring and releasing
- fix problem when scratch output panel is never released after first scratch opening by properly unregistering `toolWindow` with `ToolWindowManager`
2019-08-23 18:22:26 +03:00
Roman Golyshev
d0cd4967a7
KT-32366: Extract text styling variables to outputStylingUtils
2019-08-23 18:22:25 +03:00
Roman Golyshev
358ec2b8bd
KT-32366: Refactor tests to allow testing of preview window
...
- add directive `PREVIEW_ENABLED` into scratch file settings
2019-08-23 18:22:25 +03:00
Roman Golyshev
dd1ace37d2
KT-32366: Add TextEditorWithPreview.setLayout method
...
- it is done to be able to trace when layout is changed
- all actions use this method too
2019-08-23 18:22:24 +03:00