Commit Graph

586 Commits

Author SHA1 Message Date
Nikolay Krasko 41cbc12d7f Don't propose to make objects abstract (KT-9795)
#KT-9795 Fixed
2015-10-29 14:37:15 +03:00
Nikolay Krasko 0fcb51f0a2 KT-1478 Quick fix for using nullable collection in "for in" expression
#KT-1478 Fixed
2015-10-28 13:39:49 +03:00
Nikolay Krasko 911432c99c Use default render to check are all errors mentioned in tests. It's far more easier to read. 2015-10-28 13:39:46 +03:00
Nikolay Krasko b8c72ec4e9 Suggest to add !! as a quick-fix for type mistmach 2015-10-28 13:39:44 +03:00
Nikolay Krasko 3c07bc3df7 Import all components and delegates accessors if possible 2015-10-23 22:07:52 +03:00
Svetlana Isakova 7150be7c67 Minor: fixed error message 2015-10-22 19:09:46 +03:00
Mikhail Glukhikh d6988ad69e Get rid of FIELD_IDENTIFIER at syntax level, two errors dropped, a set of tests fixed / deleted #KT-9539 Fixed 2015-10-21 16:36:55 +03:00
Nikolay Krasko eb2feeeb16 Fixes after review in imports for additional expressions 2015-10-21 14:06:05 +03:00
Nikolay Krasko 2f26480e6b Auto-imports for index functions, += like operators, invoke, delegates and components
#KT-9482 Fixed
 #KT-9397 Fixed
 #KT-8060 Fixed
2015-10-21 14:06:04 +03:00
Alexey Sedunov 3d88df73e0 Minor: Fix spelling of intention text
#KT-9639 Fixed
2015-10-20 18:39:48 +03:00
Alexey Sedunov 929d06c86f Create from Usage: Implement 'Create property as constructor parameter' quick-fix
#KT-8426 Fixed
2015-10-20 18:39:47 +03:00
Alexey Sedunov 84aa4e7664 Create from Usage: Fix rendering of receiver type reference
#KT-9559 Fixed
2015-10-20 18:39:40 +03:00
Valentin Kipyatkov 28c950ffbe Better replacement for annotations with parameters in ReplaceWIth pattern but still lot of safety pre-checks to be added 2015-10-19 19:22:26 +03:00
Valentin Kipyatkov 4290601807 VERY rough implementation of annotations with parameters in ReplaceWIth pattern 2015-10-19 19:22:26 +03:00
Valentin Kipyatkov a8d9c761c8 Correct detection of non-qualified references in ReplaceWith analyzer 2015-10-19 18:40:15 +03:00
Valentin Kipyatkov 0a5255ee4e Dropped inspection for functions matching operator convention - only intention left 2015-10-19 18:36:06 +03:00
Pavel V. Talanov bb77890a4e Drop DeprecatedFacadeUsageInspection
(cherry picked from commit f18b95d)
2015-10-19 16:03:17 +03:00
Mikhail Glukhikh a4af6a3076 data deprecations (empty constructors, non val/var arguments, vararg, superclasses) are now errors, relevant tests fixed 2015-10-19 15:24:28 +03:00
Nikolay Krasko 9ef8370871 Allow to create quickfix multifile tests in single file
It simplifies creating new tests
2015-10-19 11:30:47 +03:00
Valentin Kipyatkov 963a8992b1 Fixed availability of "Make abstract" and "Implement members" quickfixes 2015-10-19 09:43:13 +03:00
Valentin Kipyatkov 563ad4bab2 Added test 2015-10-19 09:43:12 +03:00
Valentin Kipyatkov 5ce0ed37b1 Moved file to another package 2015-10-19 09:43:12 +03:00
Valentin Kipyatkov d1de2f65c9 Rewritten AddOperatorModifierInspection to be based on an intention (shouldn't we drop the inspection at all?) 2015-10-19 09:43:12 +03:00
Zalim Bashorov de5dc61820 Make NON_CONST_VAL_USED_IN_CONSTANT_EXPRESSION error 2015-10-18 22:49:08 +03:00
Denis Zharkov d8ede6d03e Transform Enum.values to property 2015-10-17 17:46:16 +03:00
Yan Zhulanow 3bb1b1adfd Put property delegates -related warnings on 'by' 2015-10-16 22:20:06 +03:00
Yan Zhulanow 9ae3b0fa9c Drop loading Java annotation methods as functions 2015-10-16 22:13:34 +03:00
Valentin Kipyatkov f311d9febf Refactored change signature fixes to not hold DeclarationDescriptor's 2015-10-16 19:06:31 +03:00
Valentin Kipyatkov 090ea37a32 Fixed test data to use only annotation syntax with @ 2015-10-15 19:20:08 +03:00
Alexander Udalov 556a169a5d Update stdlib usages of PropertyMetadata to KProperty<*> 2015-10-15 00:05:31 +03:00
Alexander Udalov a6846b3967 Insert KProperty<*> when creating property delegate methods in IDE 2015-10-14 20:45:26 +03:00
Mikhail Glukhikh f8a356747e Stdlib rename: 'name' and 'ordinal' are now properties in Enum, same name functions are deprecated 2015-10-14 20:40:13 +03:00
Denis Zharkov f0e3fd617d Adjust testData to CharSequence.length transformation 2015-10-14 20:39:35 +03:00
Yan Zhulanow 528482f625 Deprecated conventions (get -> getValue, plus -> unaryPlus) quickfix 2015-10-14 19:10:36 +03:00
Yan Zhulanow f9e89596fd Add 'operator' modifier to stdlib property Delegate functions 2015-10-14 19:10:36 +03:00
Michael Nedzelsky 7f0fbb4577 fix tests for quoted names 2015-10-14 16:57:00 +03:00
Pavel V. Talanov d603142cc6 Provide inspection and quickfixes for usages of static fields which will be no longer accessible in future versions
For this inspection three kinds of fixes are potentially available:
- Add 'const' modifier to kotlin property
- Add '@JvmField' annotation to kotlin property
- Change field reference to getter invocation

In case user chooses to 'cleanup code', these fixes are prioritized in this order
2015-10-14 14:42:26 +03:00
Pavel V. Talanov 47cca7db1f Test data: adjust test data after prohibiting properties with typeparameters not used in receiver 2015-10-14 13:42:13 +03:00
Yan Zhulanow bc3d1ddda0 Remove old 'get' delegate convention in interfaces 2015-10-14 01:29:09 +03:00
Andrey Breslav 4f63d47f82 Intention action for hiddnen declarations fixed 2015-10-13 01:45:02 +03:00
Valentin Kipyatkov cbf4e4a973 Corrected order of modifier insertion 2015-10-12 15:10:39 +03:00
Valentin Kipyatkov 55cbe185f8 Do not offer to convert to infix call when calling non-infix function 2015-10-12 15:10:39 +03:00
Valentin Kipyatkov ee7425c1de Checking "infix" modifier in completion and import popup 2015-10-12 15:10:39 +03:00
Dmitry Jemerov 23e13d4043 fix type parameter migration for extension functions 2015-10-12 13:45:44 +02: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
Dmitry Jemerov 457e40a0b8 fix a few more tests 2015-10-12 11:11:31 +02:00
Dmitry Jemerov a63d3f5a0f fix more compilation errors and some tests 2015-10-12 11:11:29 +02:00
Dmitry Jemerov 1523d5bcbf removing static type assertions work in progress 2015-10-12 11:11:23 +02:00
Alexey Sedunov ad929a6577 Unit Test Tooling: Implement "Create Test" action
#KT-6472 In Progress
2015-10-11 01:13:41 +03:00