Commit Graph

574 Commits

Author SHA1 Message Date
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
Yan Zhulanow ed5c059cea Rename unary plus() and minus() to unaryPlus() and unaryMinus() 2015-10-09 22:49:17 +03:00
Yan Zhulanow 1f2b4e20fe Replace get() and set() to getValue() and setValue() (property delegates) 2015-10-09 22:49:16 +03:00
Mikhail Glukhikh 6914d09297 Old backing field with dollar is now forbidden 2015-10-09 21:06:26 +03:00
Mikhail Glukhikh 5117f744f7 Change to backing field fix is dropped because of deprecated syntax 2015-10-09 21:06:01 +03:00
Dmitry Jemerov 6ca3a9fe9f quickfix to add 'infix' modifier 2015-10-09 17:43:26 +02:00
Pavel V. Talanov f4ef9647b1 Idea: add quick fix for replacing usages of deprecated "INSTANCE$" field 2015-10-09 16:25:19 +03:00
Dmitry Jemerov 7e2c2ef678 restore compilation after rebase of dropping external annotations; fix affected tests 2015-10-09 11:52:02 +02:00
Dmitry Jemerov 45d1129dbb quickfix to move type constraint to 'where' clause 2015-10-08 17:09:58 +02:00
Alexey Sedunov 1a36c3e29a Quick Fixes: Implement quickfix for missing library 2015-10-08 13:15:15 +03:00
Dmitry Jemerov 1fdf08bec5 quickfix to migrate function type parameter lists to new syntax 2015-10-06 16:20:48 +02:00
Dmitry Jemerov 870b640008 "add operator modifier" fix handles fake overrides
#KT-9347 Fixed
2015-10-06 16:12:09 +02:00
Valentin Kipyatkov a75b3e6cf1 Auto-import popup does not suggest to import non-operator functions when operator required 2015-10-05 15:33:48 +03:00