Alexey Sedunov
64bbbac9dc
Change Signature: Replace entire JetThisExpression when converting receiver to parameter #KT-7970 Fixed
2015-06-16 21:15:36 +03:00
Alexey Sedunov
e481ed756d
Change Signature: Fix transfer of argument to receiver position
...
#KT-7987 Fixed
2015-06-16 21:15:35 +03:00
Alexey Sedunov
09565c78c5
Introduce parameter: Do not substitute references which don't resolve to parameters or receivers of the target function #KT-7965 Fixed
2015-06-16 21:15:32 +03:00
Alexey Sedunov
d2c33c13a6
Change Signature/Rename: Fix renaming of extension function parameter
2015-06-16 21:15:27 +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
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
Alexey Sedunov
1d59c7e0e4
Change Signature: Substitute new function name into generated this-expressions
...
#KT-7920 Fixed
2015-06-08 20:18:15 +03:00
Alexey Sedunov
9e69b74a15
Extract Function: Extract smart-cast value as parameter
...
#KT-7576 Fixed
2015-05-27 18:41:42 +03:00
Alexander Udalov
fae2d0231c
Fix test data, restore incorrectly deleted import
...
It was mistakenly deleted in 738a84e and 48b18f1
2015-05-27 01:44:18 +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
Alexander Udalov
48b18f18d3
Restore explicit imports of Kotlin function types in Java
...
This is a follow-up to 738a84e259 and
d4965a4f3e . Optimize imports in all files
affected in those commits, drop temporary _.kt
2015-05-26 18:46:27 +03:00
Alexander Udalov
4141e0a8df
Introduce fictitious numbered Function class descriptors
2015-05-26 15:04:54 +03:00
Alexander Udalov
738a84e259
Temporary hack to migrate functions to package kotlin.jvm.functions
...
Add a file in package 'kotlin.jvm.functions' to the project and replace
explicit imports of functions 'kotlin.Function{n}' to two imports 'kotlin.*'
and 'kotlin.jvm.functions.*', so that the codebase can be compiled both by the
old and by the new compiler
2015-05-26 15:04:34 +03:00
Evgeny Gerashchenko
24c533df32
KT-6285 Rename refactoring doesn't rename named arguments when rename function parameters or private val/var constructor parameters
...
Just added test. Works automatically since rename parameter now delegates to change signature.
#KT-6285 fixed
2015-05-22 17:18:08 +03:00
Evgeny Gerashchenko
2568fc92cb
Supported Kotlin in Java's automatic parameter renamer.
2015-05-22 17:18:07 +03:00
Evgeny Gerashchenko
1e46469bb1
Automatic renaming parameter in hierarchy.
2015-05-22 17:18:06 +03:00
Alexey Sedunov
5166cdbc96
Introduce...: Allow semicolon extraction
...
#KT-7583 Fixed
2015-05-21 19:29:46 +03:00
Alexey Sedunov
7bc5ec04c7
Move: Suggest deleting file when all declarations are moved
2015-05-18 21:18:53 +03:00
Alexey Sedunov
da6b8b75ea
Move File/Change Package: Change package directive prior to processing of internal usages (otherwise some necessary imports are not added)
2015-05-18 21:18:51 +03:00
Alexey Sedunov
38ae9349fc
Move: Move entire file if all declarations are selected ("Move to Package" mode)
2015-05-18 21:18:48 +03:00
Alexey Sedunov
d88d7a0ac5
Move: Do not use existing file name when moving its top-level declaration(s)
...
#KT-7697 Fixed
2015-05-18 21:18:44 +03:00
Valentin Kipyatkov
c4b881c458
Fixed test data
2015-05-17 12:32:11 +03:00
Mikhail Glukhikh
cf741cb868
Enum parsing changed: first entries, then members. Grammar fixed accordingly.
...
A set of compiler tests and some plugin tests changed accordingly.
Compiler Kotlin code changed accordingly.
2015-05-15 16:13:27 +03:00
Alexander Udalov
62d0d5c77f
Minor, fix error message when renaming package facade
2015-05-14 18:40:49 +03:00
Alexey Sedunov
02006126f5
Introduce Property: Forbid extension properties with initializers and lazy
...
ones
2015-05-14 15:47:51 +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
Dmitry Jemerov
b1c4a5670a
provide element type name for multi-declaration entries; enable in-place rename for those; show local properties as "variable"
...
#KT-7627 Fixed
2015-05-12 16:18:03 +02:00
Alexey Sedunov
339383b5b1
Extract Function: Add test for ===
...
#KT-7663 Fixed
2015-05-11 20:57:59 +03:00
Alexey Sedunov
f13eb038e1
Introduce Parameter: Java -> Kotlin Interoperability
2015-05-08 11:43:00 +03:00
Alexey Sedunov
8879166f53
Move: Add intention to change file package without moving it physically
2015-05-01 17:16:57 +03:00
Dmitry Jemerov
093878bd06
correctly implement JetSimpleNameReference.getTextRange() so that it doesn't include the @ character for references in labels
...
#KT-7560 Fixed
2015-04-30 16:12:03 +03:00
Dmitry Jemerov
1d8786dabf
allow renaming functions which are members of anonymous objects
...
#KT-5857 Fixed
2015-04-29 20:09:17 +02:00
Dmitry Jemerov
f93eeeb563
fix tests by adding missing 'init' keywords to testdata
2015-04-29 14:07:05 +02:00
Denis Zharkov
44a55e5bf6
Adjust testData to new labels syntax
2015-04-29 14:03:11 +03:00
Alexey Sedunov
7831e75955
Change Signature: Introduce variable for expression which can't be safely copied in the course of argument substitution
2015-04-27 23:02:39 +03:00
Alexey Sedunov
14f63cdce5
Change Signature: Substitute parameter references in default values of call expression arguments
2015-04-27 23:02:38 +03:00
Alexey Sedunov
298dfa545f
Introduce Parameter: Implement "Introduce lambda parameter"
2015-04-22 23:56:47 +03:00
Evgeny Gerashchenko
9a4fbd35bd
Supported Kotlin usages of Java class in automatic variable renamer.
2015-04-22 11:33:28 +03:00
Evgeny Gerashchenko
a9f9ca4ccb
Supported Java usages in automatic variable renamer.
2015-04-22 11:33:27 +03:00
Evgeny Gerashchenko
09cff44207
Automatic renaming overloads in class or object.
...
#KT-4642 fixed
2015-04-22 11:33:25 +03:00
Evgeny Gerashchenko
d383e03a81
Automatic renaming top-level overloads.
...
#KT-4642 in progress
2015-04-22 11:33:25 +03:00
Evgeny Gerashchenko
8fe3a1d366
Added test for inheritor renamer (Kotlin subclasses of Java class).
2015-04-22 11:33:25 +03:00
Alexey Sedunov
bf13f7e637
Introduce Parameter: Do not remove unused parameters if new parameter is extracted with default value
2015-04-17 16:30:28 +03:00
Alexey Sedunov
6e2076d602
Change Signature: Process Kotlin-side calls of Java methods overriding Kotlin declarations
2015-04-17 16:30:27 +03:00
Alexey Sedunov
daebf569ab
Extract Function: Allow capturing local function references as lambda parameters
2015-04-17 13:04:56 +03:00
Alexey Sedunov
d036edb5c6
Extraction Engine: Respect smart casts applied to "this" references
...
#KT-7447
2015-04-15 23:20:54 +03:00
Alexey Sedunov
aa0930ea60
Change Signature: Skip secondary constructor calls when looking for primary constructor usages
...
#KT-7445 Fixed
2015-04-15 23:20:52 +03:00