Nikolay Krasko
65c1a2d732
Minor: extract common method to base class
2017-04-13 13:48:02 +03:00
Nikolay Krasko
9748c7d068
Refactoring: move operators searchers to separate package
2017-04-13 13:48:02 +03:00
Kirill Rakhman
d44bf27ec3
Completion of keywords (like constructor) doesn't insert parentheses/braces if they're already there
...
#KT-15603 Fixed
#KT-13524 Fixed
2017-04-13 13:41:41 +03:00
Dmitry Jemerov
2a8933e5a0
Run all Gradle import tests with Gradle 3.5
2017-04-12 15:37:44 +02:00
Alexander Udalov
f594a4c018
Drop ModuleDescriptor.sourceKind, move this code to IDE modules
...
This information is only used in IDE and it can easily be computed there
2017-04-12 14:22:34 +03:00
Dmitry Jemerov
40df565369
Use correct repository for checking if current EAP version is published
...
Logic for determining the Maven repository corresponding to the current
plugin version has been centralized and reused in the version chooser
in "Configure Kotlin" dialog.
#KT-17291 Fixed
2017-04-12 10:41:57 +02:00
Dmitry Jemerov
546040fafd
Change AddKotlinLibQuickFix to support adding multiple jars
2017-04-12 10:41:57 +02:00
Dmitry Jemerov
aee32e6204
New Kotlin projects and Configure Kotlin adds JRE-specific jars
2017-04-12 10:41:57 +02:00
Dmitry Jemerov
aacaa61cf2
JavaRuntimeLibraryDescription: J2K
2017-04-12 10:41:57 +02:00
Dmitry Jemerov
f4db36ad5d
JavaRuntimeLibraryDescription: rename to .kt
2017-04-12 10:41:57 +02:00
Dmitry Jemerov
8000989bb8
Fix updating libraries
...
Use correct order root type for updating jars; correctly find file
in VFS after rename; provide logging instead of exceptions in case
of failure; update library model under write action; locate stdlib
sources under the old name
#KT-17334 Fixed
2017-04-12 10:41:57 +02:00
Simon Ogorodnik
c6cdbe7eed
Fix import member quickfix to check receiver
...
#KT-17037 fixed
2017-04-11 20:29:15 +03:00
Alexander Udalov
3430059b3a
Minor, refactor TargetPlatformDetector.getPlatform
...
Inline dangerous getPlatform(PsiFile) method to prevent it from being
called accidentally instead of getPlatform(KtFile)
2017-04-11 16:06:56 +03:00
Nikolay Krasko
ab2dbba249
Abstract class icon added (KT-7810)
...
#KT-7810 Fixed
2017-04-11 14:28:11 +03:00
Nikolay Krasko
6898176b43
Abstract extension function added
2017-04-11 14:28:10 +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
bdaf73411a
Move: Extract MoveToKotlinFileProcessor class
2017-04-11 12:11:50 +03:00
Alexander Udalov
861d9a1620
Use null instead of CompilerMessageLocation.NO_LOCATION in MessageCollector
2017-04-11 12:08:31 +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
Alexey Sedunov
3007b11973
Move: Use MoveFilesWithDeclarationProcessor for files & directories
2017-04-11 11:45:07 +03:00
Alexey Sedunov
22a56a81b9
Move: Drop obsolete code
2017-04-11 11:45:06 +03:00
Alexey Sedunov
f5d106a68f
Refactoring: Drop obsolete KotlinFileReferencesResolver class
2017-04-11 11:45:05 +03:00
Alexey Sedunov
7f115343f9
Kotlin Facet: Drop Gradle/Maven-based version info providers
...
They are obsolete since compiler/library version can be detected
based on module dependencies generated on external model import
2017-04-11 11:45:04 +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
Yan Zhulanow
fe3c1aff8b
Debugger: Classes for callable references should be treated as synthetic
2017-04-10 23:25:52 +03:00
Natalia Ukhorskaya
42e14961de
Debugger: Find classes using its inner classes (initial implementation)
2017-04-10 23:25:51 +03:00
Alexey Tsvetkov
54ee779ba1
Import 'implement' dependency of platform project transitively
...
#KT-16926 fixed
2017-04-10 20:25:48 +03:00
Dmitry Jemerov
655fe87d43
Remove obsolete code for deleting script/kotlin.js
2017-04-10 17:34:13 +02:00
Dmitry Jemerov
62eb9e9909
Check jar name before calling getVirtualFileForJar()
...
#KT-17331 Fixed
2017-04-10 17:32:30 +02:00
Dmitry Jemerov
5a7278b856
Fix test: update Android build tools to release version
2017-04-10 16:13:31 +02: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
Vyacheslav Gerasimov
70d24d0108
Fix NoSwingUnderWriteActionException in KotlinAndroidAddStringResource
2017-04-10 12:38:34 +03:00
Pavel V. Talanov
2f159bb64b
Light classes: do not rely on dummy context when data class autogenerated members conflict with declared members
...
Fix related issues with nested classes
2017-04-09 15:10:29 +03:00
Pavel V. Talanov
69c250a1b7
Light class test: avoid checking method visibility when NoLaziness is not specified
...
Allows to avoid putting NoLaziness flag on every test that mentions 'override' modifier
2017-04-09 15:09:15 +03:00
Pavel V. Talanov
5e351061e8
Light classes: test consistency for inner classes
2017-04-09 15:09:10 +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
Pavel V. Talanov
db294da24d
Minor, refactor: Move hasBody() to KtProperty
2017-04-09 15:07:50 +03:00
Pavel V. Talanov
922fde9986
LazyLightClassDataHolder: minor, improve diagnostics
2017-04-09 15:07:48 +03:00
Pavel V. Talanov
8fbd75ce27
AbstractIdeLightClassTest: minor, refactor
2017-04-09 15:07:45 +03:00
Mikhail Glukhikh
767db68daf
Cleanup: when possible, do analyzeFully -> analyze
2017-04-07 15:36:02 +03:00
Mikhail Glukhikh
ba04dac4b7
Cleanup: when possible, do analyzeFullyAndGetResult -> analyzeFully
...
Also, when possible, do analyzeAndGetResult -> analyze
2017-04-07 15:36:00 +03:00