Commit Graph

130 Commits

Author SHA1 Message Date
Ilya Gorbunov 25c4453dc5 Cleanup deprecated symbol usages in testData 2016-01-22 05:54:38 +03:00
Ilya Gorbunov f4822cd757 Fix testData in compiler: add collections and ranges package to fq-names. 2016-01-22 05:54:38 +03:00
Denis Zharkov e2c02f825f Refine member scope for types with projections
Instead of erasing descriptors with conflicting substitution,
use invariant CapturedType(<projection>) as replacement for type parameter
within default member scope.

After substitution leave such types 'as is' everywhere except return types,
use common approximation for them.

 #KT-9294 In Progress
 #KT-5411 Fixed
 #KT-8647 Fixed

 #KT-9462 Fixed
 #KT-9893 Fixed
 #KT-7581 Fixed
 #KT-7296 In Progress
2015-12-28 11:13:37 +03:00
Pavel V. Talanov a667aa2f71 Tests: add runtime (and runtime sources) to some tests that rely on being able to resolve references to built ins 2015-12-15 20:22:09 +03:00
Alexander Udalov 239502368a Update test data for tower resolution algorithm
- locals win
- unary calls to plus/minus are not supported in favor of unaryPlus/unaryMinus
- unqualified nested classes are temporarily reported as unresolved
- function without receiver win against extension function
- explicit import win against star import
2015-12-11 17:01:02 +03:00
Alexey Sedunov 354e1dc337 Extract Function: Parenthesize binary expressions if operation reference starts with a new line 2015-12-10 20:07:23 +03:00
Pavel V. Talanov b9ce9f8576 Script, IDE: tweak extract based refactorings to behave better in scripts
Fix not being able to invoke introduce variable for top level script expression
Prohibit introduce parameter and introduce property for scripts on top level
Basic test for introduce function (produces red code atm)
2015-12-02 15:14:25 +03:00
Alexey Sedunov 6abf13be41 Extract Function: Consider member property with invoke() a receiver candidate
#KT-9774 Fixed
2015-12-02 13:54:03 +03:00
Alexey Sedunov 03e1480476 Extraction Engine: Get rid of explicit element offset manipulation and use copyable user data instead 2015-12-02 13:54:02 +03:00
Yan Zhulanow a3ff3ffc45 Fix tests: "Placing function type parameters after the function name" error 2015-11-27 15:51:11 +03:00
Alexey Sedunov 6e8acc6453 Psi Unifier: Do not unify parameters with block expressions 2015-11-24 20:40:20 +03:00
Alexey Sedunov 741489f4a5 Extract Function/Introduce Property: Support extraction of string template fragments 2015-11-24 20:40:18 +03:00
Denis Zharkov deea0643ad Refine type arguments resolution and rendering
In case of type constructors captured parameters from outer classes

 #KT-5510 Fixed
 #KT-3112 Fixed
 #KT-6325 Fixed
 #KT-408  Fixed
 #KT-6337 Fixed
2015-11-13 14:47:28 +03:00
Natalia Ukhorskaya 5fcd5396b6 Add option to extract function for wrapping member extension function with with { } 2015-11-10 18:38:11 +03:00
Mikhail Glukhikh 41ebfd025e More precise diagnostics of smart cast impossible #KT-7240 Fixed 2015-11-03 13:38:51 +03:00
Alexey Sedunov 3fd6864461 Extraction Engine: When extracting to enum class body, place new declaration after the last entry
#KT-9629 Fixed
2015-10-24 19:50:52 +03:00
Alexey Sedunov bdd495460b Extraction Engine: Properly retrieve declaration for overriden/delegated Java synthetic properties
#KT-9554 Fixed
2015-10-20 18:39:43 +03:00
Denis Zharkov d71b0144d5 Adjust testData to *Map transformation 2015-10-14 20:39:40 +03:00
Denis Zharkov f0e3fd617d Adjust testData to CharSequence.length transformation 2015-10-14 20:39:35 +03:00
Pavel V. Talanov 41c0895abb JetExtractionTest: adjust test data
after making some of builtin types serializable
2015-10-01 17:53:17 +03:00
Alexey Sedunov 78f7e6b459 Extraction Engine: Support type parameter references
#KT-7260 Fixed
2015-10-01 17:35:18 +03:00
Valentin Kipyatkov 367b32c309 Adapted IDE to no explicit return type required for public declarations 2015-09-18 15:44:19 +03:00
Denis Zharkov 4850fd10f0 Regenerate test data containing rendered descriptors
Introduced '@' after each annotation
2015-09-18 10:14:39 +03:00
Alexey Sedunov 0a32e5a96d Extraction Engine: Support references to synthetic properties 2015-09-17 01:33:25 +03:00
Alexey Sedunov 0fbcf0b958 Extraction Engine: Report conflict on all diagnostics from UNRESOLVED_REFERENCE group
#KT-9117 Fixed
2015-09-17 01:33:23 +03:00
Alexey Sedunov 767897dccf Extraction Engine: Replace receiver occurrences with 'this' when necessary 2015-09-17 01:33:22 +03:00
Alexey Sedunov 34b279a7a8 Extraction Engine: Do not add variance to type parameters in generated declaration 2015-09-17 01:33:19 +03:00
Alexey Sedunov 2de4de4a1e Extract Function: Do not use flexible type as default: use one of its bounds instead
#KT-9099 Fixed
2015-09-11 02:20:55 +03:00
Michael Nedzelsky daa1ac1918 fix tests in org.jetbrains.kotlin.idea.refactoring.introduce 2015-09-08 02:05:46 +03:00
Alexey Sedunov 14c657d448 Extract Function: Consider reference "broken" if corresponding diagnostics are changed after code fragment extraction
#KT-8633 Fixed
2015-09-06 18:04:39 +03:00
Alexey Sedunov e03067846f Extract Function: Ignore internal smartcasts
#KT-8458 Fixed
2015-09-06 18:04:37 +03:00
Alexey Sedunov e4dd30599e Extraction Engine: Forbid extraction of non-singleton qualifiers
#KT-8297 Fixed
2015-09-03 22:06:20 +03:00
Alexey Sedunov 1db7195e94 Extract Function: Fix callee replacement in operation expressions
#KT-8294 Fixed
2015-09-03 22:06:18 +03:00
Stanislav Erokhin aaebe70342 Improved logic of finding conflicts for refactoring actions 2015-08-27 12:01:08 +03:00
Mikhail Glukhikh 022e7d1169 Deprecated enum syntax removed: most idea tests 2015-08-10 16:24:16 +03:00
Denis Zharkov befe025d21 Fix intentions testData: types rendering changed
Some more FQ names appeared.
The reason is that earlier such types were Lazy and their `toString` method return short version.
But after type enhancement they are represented with JetTypeImpl
2015-07-09 16:36:45 +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 1469275a5a Extract Function: Fix return type computation for extracted callee expression
#KT-8233 Fixed
2015-06-27 13:58:09 +03:00
Alexey Sedunov febf725e85 Extract Function: Extract block contents
#KT-8235 Fixed
2015-06-27 13:58:07 +03:00
Alexey Sedunov 4e7200d8e8 Extract Function: Add backticks to non-identifiers and references originally surrounded in backticks
#KT-8192 Fixed
2015-06-27 13:58:06 +03:00
Alexey Sedunov c6f6637b25 Extract Function: Fix extraction of explicit/implicit invoke()
#KT-8116 Fixed
2015-06-27 13:58:04 +03:00
Alexey Sedunov d58112a32a Extract Function: Use intersection type to compute candidate types for parameters
#KT-8103 Fixed
2015-06-18 19:28:04 +03:00
Denis Zharkov c9f79c2d05 Adjust testData: get rid of obsolete annotations 2015-06-12 09:23:31 +03:00
Alexey Sedunov 608ce59f15 Resolution: Resolve primary constructor references to primary constructor
itself if it's explicitly present in PSI
2015-06-11 13:52:47 +03:00
Alexey Sedunov 9e69b74a15 Extract Function: Extract smart-cast value as parameter
#KT-7576 Fixed
2015-05-27 18:41:42 +03:00
Alexey Sedunov 58ef7f2691 Extraction Engine: Suggest both bounds for nullability-flexible types without nullability annotations. Do not omit return type if inferred one is flexible
#KT-6837 Fixed
2015-05-26 22:42:46 +03:00
Alexey Sedunov 72205540d6 Extract Function: Show possible types for receiver in Extract Function/Introduce Lambda Parameter dialogs
#KT-7578 Fixed
2015-05-26 22:42:43 +03:00
Alexey Sedunov 5166cdbc96 Introduce...: Allow semicolon extraction
#KT-7583 Fixed
2015-05-21 19:29:46 +03:00
Alexey Sedunov b69b66feab Extraction Engine: Do not extract type parameter if it's resolved in the target scope
#KT-7246 Fixed
2015-05-14 15:47:50 +03:00
Dmitry Jemerov 625096466e IDE testdata: s/trait/interface 2015-05-13 16:13:13 +02:00