Ilya Gorbunov
570ac8b821
Add runtime dependency to tests where exception references are used.
2016-08-17 12:40:50 +03:00
Pavel V. Talanov
a4c005fefd
Update existing test data depending on diagnostic parameter rendering
2016-02-26 14:45:11 +03:00
Alexey Sedunov
d587bb2ea6
Change Signature: Support Change Signature quick-fix for Java -> Kotlin case
...
#KT-9401 Fixed
2016-02-17 11:31:40 +03:00
Alexey Sedunov
fd79145b73
Change Signature: Represent parameter/receiver types using KotlinTypeInfo
2015-12-18 15:05:36 +03:00
Dmitry Jemerov
e97e82d119
use terms "lambda expression" and "anonymous function" instead of "function literal" and "function expression"
2015-12-09 13:55:40 +01:00
Alexey Sedunov
6ff955b66c
Change Signature: Implement improved call processing algorithm
...
#KT-8953 Fixed
#KT-9525 Fixed
2015-11-10 16:47:48 +03:00
Valentin Kipyatkov
f311d9febf
Refactored change signature fixes to not hold DeclarationDescriptor's
2015-10-16 19:06:31 +03:00
Dmitry Petrov
5d9ee7efee
Java 8 rules for method overrides:
...
- base class method wins against a (default) interface method,
so an abstract base class method should always be implemented
in a derived class;
- interface methods clash regardless of abstract/default
with possibly undefined behavior at run-time,
so a class or interface should always define its own method
for methods inherited from multiple interfaces and not from base class;
- meaningful diagnostics for class inheriting conflicting JVM signatures.
Since no override will happen under Java 8 rules,
ACCIDENTAL_OVERRIDE is misleading for this case;
- update testData.
2015-10-12 14:12:31 +03:00
Mikhail Glukhikh
82c0265cb3
Quick fix for implicit nothing with a test
2015-10-12 13:30:22 +03:00
Yan Zhulanow
6db9344659
Fix compiler tests
2015-09-25 19:20:20 +03:00
Denis Zharkov
1d90b2e1fe
Get rid of obsolete syntax in quickfixes changing lambda's signature
...
- Do not wrap parameters with '()'
- Do not set return type for them
- Fix existing testData
2015-09-25 08:29:26 +03:00
Michael Nedzelsky
92ca057b4a
fix tests in org.jetbrains.kotlin.idea.quickfix
2015-09-08 02:05:41 +03:00
Denis Zharkov
f0833d626a
Fix intentions tests after types enhancement
...
Types became more accurate
2015-07-09 16:36:44 +03:00
Alexey Sedunov
5319e9e761
Change Signature: Support configurable Change Signature for Java code
...
#KT-5923 Fixed
2015-07-03 18:38:06 +03:00
Alexey Sedunov
9e82411e78
Change Signature: Do not process calls with unmatched arguments/parameters
2015-07-03 18:38:05 +03:00
Pavel V. Talanov
07d35d305e
Create import list psi element even if no directives are present
...
Fix a problem where deleting last import directive via "optimize imports" could lead to incorrect psi structure resulting in CCE, see EA-64291
New imports are inserted at the head (after package directive if present) of the file (before any comments) if no imports were present
Add test for inserting import to file where a first statement is a comment
Drop code dealing with non-existing import list in ImportInsertHelperImpl
AbstractQuickFixTest: check for unexpected actions before changes to the file are made as it relies on the first line having specific format
2015-06-08 20:51:04 +03:00
Valentin Kipyatkov
0dc92c3ee8
QuickFixMultiFileTestGenerated - shorter test data files names
2015-05-27 16:15:44 +03:00
Dmitry Jemerov
625096466e
IDE testdata: s/trait/interface
2015-05-13 16:13:13 +02:00
Valentin Kipyatkov
837e46a9b8
Big change in quickfix tests: no stupid test data format with "before" and "after" file prefixes
2015-05-08 22:29:42 +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
Alexey Sedunov
0eda6c88b9
Quick-Fixes: Fix signature configuration for extension functions
...
#KT-7019 Fixed
2015-03-24 16:41:07 +03:00
Evgeny Gerashchenko
7b6f83815c
Unified obtaining psi element for descriptor. Now code for finding effective descriptors of fake override and finding source element for original declarations are separated. Old method DescriptorToSourceUtils.descriptorToDeclaration is still there, because it has ~90 usages.
2015-03-05 15:19:29 +03:00
Alexey Sedunov
a21163b8c4
Change Signature: Add test for KT-4013 "'Change signature' does not add necessary imports"
...
#KT-4013 Fixed
2015-02-20 19:08:19 +03:00
Valentin Kipyatkov
5d516a5f72
No need to shorten non-affected references in quickfixes
2015-02-09 12:56:00 +03:00
Alexander Udalov
0b64f028b6
Rename jet -> kotlin in idea: quickfixes
...
org.jetbrains.jet.plugin.quickfix -> org.jetbrains.kotlin.idea.quickfix
2015-01-13 01:14:36 +03:00
Alexey Sedunov
346d9ea0c5
Quick Fixes: Add test for KT-5922 (QuickFix to change lambda signature doesn't work with SAM conversion)
2014-12-11 17:50:31 +03:00
Alexey Sedunov
c6541ccc6f
Change Signature: Do not insert new-lines between parameters (to be fixed later at the formatter level)
2014-12-08 16:30:02 +03:00
Alexey Sedunov
07a2a16232
Type-related quick fixes: Render types using fully qualified names
2014-10-22 18:42:51 +04:00
Andrey Breslav
0cbbb6a0db
Test data fixed
2014-10-13 15:37:47 +04:00
Alexander Udalov
f7b6457139
Replace "jet" package name with "kotlin" in testData
2014-03-02 19:55:26 +04:00
Alexander Udalov
ec30d52978
Delete Hashable, pull up its members to Any
...
Extensions on nullable types remain in Library.kt
#KT-1741 Obsolete
#KT-2805 Obsolete
#KT-1365 Fixed
#KT-4517 In Progress
2014-03-02 19:54:08 +04:00
Alexander Udalov
9537b68724
Load 'equals' parameter from Java code with the name 'other'
...
This fixes a lot of warnings on mixed Kotlin+Java code about different names
for the same parameter because we always loaded 'equals' parameter with the
name 'p0', whereas in Kotlin we usually name it 'other'
2014-02-28 21:48:29 +04:00
Valentin Kipyatkov
d01ff28212
Quickfix and intention tests refactoring: refer to intention action by class when checking that it's not available (instead of listing all available actions)
2014-01-23 18:46:27 +04:00
Pavel V. Talanov
f9a2b09a4e
Add(Remove)ParameterQuickFix is not available for unmodifiable files
2013-11-12 14:15:57 +04:00
Pavel V. Talanov
66cc9b2cc7
Show error hint when trying to refactor synthesized function
2013-11-12 14:15:48 +04:00
Pavel V. Talanov
f032b6e236
Eliminate redundant descriptorToDeclaration call from factory for "Change signature" quick fixes
2013-11-12 14:15:47 +04:00
Pavel V. Talanov
8c95884ad2
Add new functionality to "Change signature" refactoring
...
Extract single point of entry for all change signature refactorings and fixes (remove parameter, add parameter)
Change signature now affects overriding functions as well
Ask the user whether he wants to refactor base function(s) or the selected one if appropiate
Fix a problem with descriptorToDeclaration in JetChangeSignatureHandler
Rename: JetFunctionPlatformDescriptor -> JetMethodDescriptor
2013-11-12 14:15:46 +04:00
Alexander Kirillin
41045d2a1e
new quick fixes: add parameter, remove parameter, change function literal signature
2013-05-07 21:15:27 +04:00