Simon Ogorodnik
c6cdbe7eed
Fix import member quickfix to check receiver
...
#KT-17037 fixed
2017-04-11 20:29:15 +03:00
Nikolay Krasko
42868b1364
Fix evaluate for internal functions (KT-15854)
...
#KT-15854 Fixed
2017-04-11 12:33:07 +03:00
Alexey Sedunov
9979c6e361
Move: Fix processing of callable references to Java constructors
2017-04-11 12:11:51 +03:00
Alexey Sedunov
411a8dc206
Move: Remove duplicating conflict messages from test data
2017-04-11 11:45:13 +03:00
Alexey Sedunov
cd6177534a
Move: Add conflict checking for "Move packages" case
2017-04-11 11:45:12 +03:00
Alexey Sedunov
e21ff23e26
Move: Add conflict checking for "Move directory with classes" case
2017-04-11 11:45:11 +03:00
Alexey Sedunov
87a12ee1c7
Move: Check for conflicts using entire collections of elements to move
2017-04-11 11:45:10 +03:00
Alexey Sedunov
358b5fe548
Move: Force package name change when moving Java files
...
Package statement in Java file is updated too late
when moving the entire containing directory, so we force it
with intercepting MoveFileHandler implementation
2017-04-11 11:45:08 +03:00
Yan Zhulanow
9e61eea758
Support inline properties in debugger class search
2017-04-10 23:25:55 +03:00
Yan Zhulanow
cb9e90183a
Debugger: Fix AbstractPositionManagerTest
...
MockReferenceType can't be used anymore because the new DebuggerClassNameProvider requires much more from it.
The new SmartMockReferenceType implements methods such as nestedTypes() or allLineLocations() properly.
Also, as PositionManager can return more than one class, we should check if any of the classes it returned matches the pattern.
2017-04-10 23:25:54 +03:00
Yan Zhulanow
622430a296
Debugger: Fix AbstractPositionManagerTest
...
MockReferenceType can't be used anymore because the new DebuggerClassNameProvider requires much more from it.
The new SmartMockReferenceType implements methods such as nestedTypes() or allLineLocations() properly.
Also, as PositionManager can return more than one class, we should check if any of the classes it returned matches the pattern.
2017-04-10 23:25:53 +03:00
Mikhail Zarechenskiy
438f318d3e
Minor, update test data
2017-04-10 16:35:00 +03:00
Mikhail Zarechenskiy
7f287a4230
Support warning about useless cast on safe cast
...
#KT-13348 Fixed
2017-04-10 12:48:09 +03:00
Vyacheslav Gerasimov
1d134ffc72
Register Android api quickfixes for inlined api inspection
...
#KT-14857 Fixed
2017-04-10 12:39:40 +03:00
Pavel V. Talanov
4f701285b1
Light class builder: do not generate methods delegating to DefaultImpls in kotlin classes
...
Class APIs from java point of view stays the same so we can avoid generating those methods
Otherwise we have to calculate all supertypes when getMethods() is called,
which imposes severe performance penalties
We have to pretend these methods are not 'abstract' (also we consider them 'default' for safety)
so java highlighting does not report "class should be abstract" for all inheritors
We have to manually report "class should be abstract" on some of the java inheritors,
specifically those that are implementing interfaces directly
as opposed to extending kotlin classes implementing those interfaces
2017-04-09 15:09:01 +03:00
Vyacheslav Gerasimov
6b9242075a
Fix MovePropertyToConstructorIntention applicability and type rendering
...
#KT-17238 Fixed
(cherry picked from commit 7f9d88a)
2017-04-07 14:32:06 +03:00
Alexander Udalov
2be8a4f184
Minor, delete obsolete test data
2017-04-07 13:44:02 +03:00
Alexey Sedunov
c1066b98f0
Move: Fix warning on companion used as implicit dispatch receiver
...
Do not report conflict if target class is a sublcass of
companion object's containing class
2017-04-06 18:54:02 +03:00
Alexey Sedunov
5c35061afa
Move: Make minor improvements and refactorings
2017-04-06 18:52:45 +03:00
Alexey Sedunov
4a168ff780
Move: Process internal usages after all declarations are moved
2017-04-06 18:18:33 +03:00
Alexey Sedunov
18632c3200
Kotlin Facet: Fix facet creation with non-default JVM target
2017-04-06 18:18:31 +03:00
Ilya Chernikov
88652154c9
Port compiler to the script-runtime with script base classes
2017-04-06 10:02:45 +02:00
Mikhail Zarechenskiy
f518e8ebb8
Prefer stable types to diagnose useless cast
...
#KT-11622 Fixed
2017-04-05 21:35:05 +03:00
mglukhikh
9fa16364e1
Find enclosing element for object literal in delegate #KT-8187 Fixed
2017-04-05 16:38:04 +03:00
mglukhikh
6277476573
Do not add a new label to labeled loop
...
Relevant situation: break / continue in when #KT-16128 Fixed
2017-04-05 15:40:08 +03:00
mglukhikh
d9e1e82948
Destructure is available even without usages #KT-14435 Fixed
2017-04-05 15:07:15 +03:00
mglukhikh
feb9dd4d83
Don't suggest destructuring if at least half components not used
...
So #KT-16828 Fixed
2017-04-05 14:45:48 +03:00
mglukhikh
8fb818fc74
Don't report 'protected in final' for implicitly protected
...
So #KT-16339 Fixed
2017-04-04 19:22:39 +03:00
mglukhikh
f13997750f
Make destructure intention work on library data classes
...
So #KT-16468 Fixed
So #KT-14402 Fixed
2017-04-04 19:22:31 +03:00
mglukhikh
8a02ce3dc2
KT-16828: use _ when appropriate in destructure intention
2017-04-04 19:22:24 +03:00
Alexey Sedunov
746ec48176
Move: Fix internal reference processing on moving multiple files
...
#KT-17211 Fixed
2017-04-04 14:35:10 +03:00
Mikhail Glukhikh
7a53b2f4c8
Introduce UNUSED_ANONYMOUS_PARAMETER for anonymous functions
...
It is not reported for 1.0 language version because
renaming to _ is not possible. It has weak warning severity
So #KT-8813 Fixed
So #KT-16875 Fixed
2017-04-04 14:23:30 +03:00
Dmitry Jemerov
f9495aa0d7
Introduce and use KotlinPaths.getStdlibPath()
...
Also support renaming .jar file when updating an existing library
2017-04-04 11:21:06 +02:00
Dmitry Jemerov
296fe698b8
KotlinAnnotatedElementsSearcher optimization
...
When possible, try to resolve references in types using only the PSI
without building the full resolve session.
2017-04-04 11:14:09 +02:00
Nikolay Krasko
b4ebd6074c
Restore quick doc for it parameter and this of extension function
2017-04-03 19:05:22 +03:00
Alexey Sedunov
2eb912a30c
Move: Convert AbstractMoveTest to light fixture test case
...
Extract multi-module move test to a separate class
2017-03-31 18:24:16 +03:00
Alexey Sedunov
eaba215bbb
Move: Wrap individual internal usages for better preview
...
Fix unused import removal for internal usages
#KT-9158 Fixed
2017-03-31 18:24:12 +03:00
Nikolay Krasko
0d5913287f
Add line numbers for suspend function to enhance stepping (KT-16025)
...
Stop at function start on step into.
Step at function end on step out.
Both cases should actually be skipped by debugger, but this is postponed
till new backend generation for suspend functions is ready.
#KT-16025 Fixed
2017-03-30 19:48:49 +03:00
Mikhail Glukhikh
8cfcd7e5a6
Inline function: add extra tests taken from intellij-community
2017-03-30 19:42:22 +03:00
Mikhail Glukhikh
091e875551
Inline function: process usages in children-first order
2017-03-30 19:42:19 +03:00
Mikhail Glukhikh
93b624fdbe
Inline function: handle callable references through lambdas
2017-03-30 19:42:16 +03:00
Mikhail Glukhikh
75bb599991
Inline function: handle recursive calls
2017-03-30 19:42:14 +03:00
Mikhail Glukhikh
b6803af746
KT-6159: generate Unit while code inlining when needed
2017-03-30 19:42:11 +03:00
Mikhail Glukhikh
081caadec1
Fix code inlining for expression body with multiple occurrences
...
So #KT-17022 Fixed
2017-03-30 19:42:09 +03:00
Mikhail Glukhikh
77888349cd
KT-6159: rename duplicates met
2017-03-30 19:42:06 +03:00
Mikhail Glukhikh
de861066bf
KT-6159: allow local / private functions inlining
2017-03-30 19:42:03 +03:00
Mikhail Glukhikh
127b7c80df
Some inline tests that do not work
2017-03-30 19:42:02 +03:00
Dmitry Jemerov
f255f2a1e0
Optimize isReferenceTo() when searching for PsiMethod usages
...
Avoid resolving references when we know from context that a reference
at given location can't resolve to a PsiMethod.
2017-03-30 15:33:11 +02:00
Dmitry Jemerov
6febe1e8a2
Convert RenameTest to light fixture test case
...
Extract multi-module rename test to a separate class.
2017-03-28 15:48:38 +02:00
Pavel V. Talanov
ca6516c2a2
findDecompiledDeclaration: find builtIns more accurately
...
Use resolveScope of a reference to help searching for builtIn binaries
Do not search non-builtIn descriptors in random scopes
2017-03-27 21:24:45 +03:00