Dmitry Neverov
3f104833ba
Handle multi-line spaces and leading asterisks more correctly
2017-06-09 17:14:28 +03:00
Valentin Kipyatkov
ca7a0da10f
Fixed one more case of redundant type arguments
2017-06-08 23:26:39 +03:00
Valentin Kipyatkov
4b0cbc61d1
More correct
2017-06-08 23:26:38 +03:00
Valentin Kipyatkov
c08d862e9e
More correct algorithm for redundant type arguments detection
2017-06-08 23:26:38 +03:00
Valentin Kipyatkov
cfa442a42a
Move refactoring available on cut/paste declarations from an object to top-level
2017-06-08 23:26:12 +03:00
Dmitry Jemerov
b143b1be42
Revert tesdata changes to match changed code behavior
2017-06-08 19:48:12 +02:00
fitermay
4fab29b648
KT-18006 Don't cut off trailing new lines. Make behavior consistent with Java literal copy/paste
2017-06-08 19:48:12 +02:00
fitermay
a63d631435
KT-18006 Bring behavior of Kotlin literal copy/paste inline with Java's after IDEA-172984
2017-06-08 19:48:12 +02:00
Nikolay Krasko
ba34ed89d3
Allow to report exceptions in internal mode when updates are available
2017-06-08 17:21:13 +03:00
Toshiaki Kameyama
c149e956cc
Replace explicit parameter isn't shown on destructuring declaration
...
So #KT-17026 Fixed
2017-06-08 16:32:54 +03:00
Alexey Sedunov
e5717d3e96
Copy: Enable file copy for mixed Java-Kotlin case
...
Also merge CopyKotlinFileHandler with CopyKotlinDeclarationsHandler
as it currently can't be invoked for such cases
#KT-18200 Fixed
2017-06-08 14:37:37 +03:00
Alexey Sedunov
13212f06b4
Copy/Move: Fix processing of imported Java static members
...
#KT-18098 Fixed
2017-06-08 14:37:37 +03:00
Alexey Sedunov
a0629bfc58
Rename: Fix rename of import alias referring to object member
...
#KT-18096 Fixed
2017-06-08 14:37:35 +03:00
Alexey Sedunov
1ded171720
Rename: Disable member inplace when variable inplace is available
2017-06-08 14:37:34 +03:00
Alexey Sedunov
69c315443a
Rename: Disable label rename outside of reference range
...
#KT-17128 Fixed
2017-06-08 14:37:34 +03:00
Alexey Sedunov
566e701131
Rename: Disable Java member rename by reference to import alias
...
#KT-18076 Fixed
2017-06-08 14:37:32 +03:00
Alexey Sedunov
9c11c42ec2
Rename: Fix inplace refactoring for declarations with backticked names
...
#KT-15859 Fixed
2017-06-08 14:37:31 +03:00
Alexey Sedunov
2f88b6ef9b
Copy: Rename only self-usages of the copied class
...
#KT-18034 Fixed
2017-06-08 14:37:30 +03:00
Dmitry Jemerov
2326b5faf3
Update testdata according to behavior changes
2017-06-08 10:43:19 +02:00
Toshiaki Kameyama
d90cc6f4cf
Intention Make private and friends should respect modifier order #KT-17823 Fixed
2017-06-08 10:41:07 +02:00
Simon Ogorodnik
a6e153312c
Prevent early deleting of not-null assertions
...
Before val to var conversion applied, smart-cast can cause
dropping not-null assertion, which will be required when val will
become var
2017-06-07 21:21:37 +03:00
Simon Ogorodnik
e41c027c9a
Add IDEA data-flow analysis to guess nullability
...
Add "if return..." folding to "return if"
2017-06-07 21:21:36 +03:00
Dmitry Jemerov
558203e2bb
Rename "Remove no constructor" to "Remove constructor call"; fix test
2017-06-07 19:49:45 +02:00
Toshiaki Kameyama
bb5681fdb5
Add quick-fix for NO_CONSTRUCTOR error #KT-17842 Fixed
2017-06-07 19:47:36 +02:00
Ilya Zorin
862631b2ec
Handle spaces around dot in type references and before type argument list
2017-06-07 19:43:14 +02:00
Andrius Semionovas
4acb95acb5
Fix KT-16725; Remove spaces between array indices
2017-06-07 19:39:55 +02:00
Zoltan Polgar
46ce9a6946
JS: Avoid declaration skeleton body generation in case of external class or object
2017-06-07 19:22:24 +02:00
Nikolay Krasko
0e693c39a3
Don't remove else block if it participate in other expression (KT-18309)
...
#KT-18309 Fixed
2017-06-07 13:49:34 +03:00
Pavel V. Talanov
2b153d5c10
Improve search for facade light class by kotlin file
...
LightClassUtil#getWrappingClass works for clashing facade fq names
#KT-17855 Fixed
2017-06-07 11:19:23 +03:00
Mikhail Glukhikh
417b430033
Test reproducing KT-17855
2017-06-07 11:19:23 +03:00
Vyacheslav Gerasimov
fdf098d65c
Add gutter icon with navigation to related files for Android components
2017-06-06 20:47:30 +03:00
Vyacheslav Gerasimov
3f03b05bd3
Fix Android gutterIcon test, use findGuttersAtCaret method
2017-06-06 20:47:21 +03:00
Vyacheslav Gerasimov
643e3587cc
Kotlin UAST should visit property delegate expression
...
#KT-15164 Fixed
2017-06-06 20:47:01 +03:00
Vyacheslav Gerasimov
15bfd4439a
Fix AddTargetVersionCheckQuickFix, generate else branch with TODO
...
when surrounded statement used as expression
#KT-17786 Fixed
#KT-17788 Fixed
2017-06-06 20:46:53 +03:00
Vyacheslav Gerasimov
33c3ba815f
Fix Android SuppressLint and Api quickfixes: proper annotation placing
...
#KT-17783 Fixed
#KT-17787 Fixed
2017-06-06 20:46:40 +03:00
Alexander Udalov
e6001f57fa
Remove dependency of module 'backend' on 'backend.jvm' and 'ir.tree'
...
This breaks the circular dependency between 'backend' and 'backend.jvm'
2017-06-06 19:55:06 +03:00
Pavel V. Talanov
bdf76f23c4
Jvm Codegen: do not throw on malformed delegation to a type parameter
...
Fix exception on light class building
See KT-15931
2017-06-06 17:11:19 +03:00
Pavel V. Talanov
19db4304bd
Use clsDelegate to calculate hasModifierProperty("final") for light psi
...
AllOpen plugin can make some changes and we don't have the tools to make
correct decision based on psi
#KT-17857 Fixed
2017-06-06 17:11:18 +03:00
Mikhail Glukhikh
f54267eab4
Revert 'configureSilently' removal
2017-06-06 16:14:50 +03:00
Nikolay Krasko
0980446836
Fix running Android tests locally on windows
2017-06-06 14:56:22 +03:00
Nikolay Krasko
45958e630d
Refactoring: move method
2017-06-06 14:56:21 +03:00
Alexander Udalov
7febd846e8
Export 'intellij-core' in module 'frontend'
...
Remove intellij-core from dependencies of modules which already depend
on frontend or any module that exports frontend (such as frontend.java)
2017-06-06 14:29:26 +03:00
Alexander Udalov
2ed027219c
Remove dependency of module 'frontend' on 'plugin-api'
...
This breaks the circular dependency between them
2017-06-06 14:29:25 +03:00
Alexander Udalov
1df13e0bc9
Move TopDownAnalyzerFacadeForJVM to module 'cli'
...
It's only used in the command line compiler and in tests
2017-06-06 14:29:23 +03:00
Alexander Udalov
cbaa676c3d
Move some declarations between 'descriptors' and 'deserialization'
...
- Move the following from 'deserialization' to 'descriptors':
NotFoundClasses.kt
AdditionalClassPartsProvider.kt
ClassDescriptorFactory.kt
PlatformDependentDeclarationFilter.kt
findClassInModule.kt
- Move the following form 'descriptors' to 'deserialization':
BuiltInSerializerProtocol.kt
builtInsPackageFragmentProvider.kt
- Extract a marker interface from BuiltInsPackageFragment and move its
implementation to 'deserialization'
- Change the type of parameters in PlatformDependentDeclarationFilter
and AdditionalClassPartsProvider to ClassDescriptor
This will help in getting rid of the circular dependency of
'descriptors' <-> 'deserialization'
2017-06-06 14:29:18 +03:00
Alexander Udalov
a236400785
CLI: drop CommonCompilerArguments.createDefaultInstance
...
Move the corresponding default value initializers to the field
declarations
2017-06-06 14:17:26 +03:00
Dmitry Neverov
e2aa3518df
Property accessor isn't recursive when called on another object
...
So #KT-18120 Fixed
2017-06-05 19:42:44 +03:00
Mikhail Glukhikh
29f25ebeb9
Fix of JUnitMembersSearcherTest.testJunit3
2017-06-05 16:57:10 +03:00
Alexander Udalov
e67e0440bb
Rename LexicalScope.Empty -> Base
...
"Empty" is slightly confusing because although the scope has no declared
symbols, it is not empty: it has a parent scope which can contain
symbols and can have parents as well
2017-06-05 10:27:38 +03:00
Vyacheslav Gerasimov
24476fc581
Fix MoveProperty intention: better property placement
...
Property is placed now before first property, or at the beginning of class body if no properties found.
#KT-18044 Fixed
2017-06-01 20:35:20 +03:00