Mikhail Glukhikh
8cfcd7e5a6
Inline function: add extra tests taken from intellij-community
2017-03-30 19:42:22 +03:00
Mikhail Glukhikh
b8b7d1f644
Inline function: keep the function if some usages are not processed
2017-03-30 19:42:20 +03:00
Mikhail Glukhikh
091e875551
Inline function: process usages in children-first order
2017-03-30 19:42:19 +03:00
Mikhail Glukhikh
fc0bf47067
Inline function: use "function" in GUI messages
2017-03-30 19:42:17 +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
e79f006659
Introduce dialog for function inlining #KT-6159 Fixed
...
See KotlinInlineFunctionProcessor and KotlinInlineFunctionDialog
2017-03-30 19:42:13 +03:00
Mikhail Glukhikh
b6803af746
KT-6159: generate Unit while code inlining when needed
2017-03-30 19:42:11 +03:00
Mikhail Glukhikh
7de0197a60
Minor: deprecation fix in ScopeUtils
2017-03-30 19:42:10 +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
96846d0b52
Minor: style fix in KotlinInlineFunctionHandler
2017-03-30 19:42:07 +03:00
Mikhail Glukhikh
77888349cd
KT-6159: rename duplicates met
2017-03-30 19:42:06 +03:00
Mikhail Glukhikh
342118dfa8
Do not perform function inlining if it's not supported
2017-03-30 19:42:05 +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
Mikhail Glukhikh
1d5b8ea029
KT-6159: Inline function refactoring enabled
2017-03-30 19:42:00 +03:00
Pavel V. Talanov
795a83ee24
LookupTracker.DO_NOTHING is the default implementation of LookupTracker
2017-03-30 18:59:19 +03:00
Pavel V. Talanov
aeda85b256
FileScopeProvider(Impl): use DefaultImplementation annotation
2017-03-30 18:59:17 +03:00
Pavel V. Talanov
2b373a3601
Component container add tools to specify default implementation of a component
2017-03-30 18:59:14 +03:00
Simon Ogorodnik
8bd23d71a7
Fix J2K to apply post convert intentions on EDT only
...
#KT-16754 fixed
2017-03-30 18:48:39 +03:00
Simon Ogorodnik
6cbeffe4b2
Add kotlinx.coroutines to IDEA dependencies
...
Add some cool coroutine-based stuff
Like CoroutineDispatcher for EDT
2017-03-30 18:48:37 +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
Mikhail Glukhikh
e3f0a604d1
Use library-only sources as resolve scope from library #KT-12264 Fixed
2017-03-30 13:55:56 +03:00
Ilya Gorbunov
322ec0fa32
Do not add library with empty path when libraries argument is empty
...
#KT-17059
-libraries parameter without argument can be passed by maven or gradle, when there are no dependencies specified.
2017-03-30 13:43:55 +03:00
Mikhail Zarechenskiy
fd6ed5aa72
Fix bogus warning about numeric overflow when value is zero
...
#KT-17149 Fixed
2017-03-30 13:27:53 +03:00
Mikhail Zarechenskiy
3820c7653b
Update configuration for bytecode listing tests by directives in files
2017-03-30 13:27:51 +03:00
Mikhail Zarechenskiy
aec0c029e5
Display description of language version in options
2017-03-30 13:27:50 +03:00
Mikhail Zarechenskiy
5750a96b13
Write to configuration files only version without description
2017-03-30 13:27:49 +03:00
Mikhail Zarechenskiy
c512453e16
Show LV=1.2 in IDE only in internal mode
2017-03-30 13:27:48 +03:00
Mikhail Zarechenskiy
5027a76ed4
Add strong warning when trying to compile with experimental LV
2017-03-30 13:27:47 +03:00
Mikhail Zarechenskiy
54f034a636
Place array literals in annotations feature under the version 1.2
2017-03-30 13:27:46 +03:00
Mikhail Zarechenskiy
20d5616d75
Introduce Kotlin language version 1.2
...
Wherein DEFAULT version is still 1.1, which means that version 1.2 should be configured manually
2017-03-30 13:27:45 +03:00
Mikhail Zarechenskiy
283ed85df2
Drop useless parameter and avoid creating sets
2017-03-30 13:27:44 +03:00
Alexander Udalov
3655fc02bd
Support running Kotlin compiler daemon on JDK 9
...
This should have fixed the compiler that is run in Gradle on Java 9, but
there's another issue filed as KT-17112
#KT-17112 Open
#KT-14988 Fixed
2017-03-30 13:05:24 +03:00
Alexander Udalov
a5d70cfa68
Support running Kotlin compiler CLI on Java 9 on Unix
...
Workaround IDEA-170005, IDEA-170494 and similar issues by opening the
required packages from java.base to the unnamed module
#KT-14988 In Progress
2017-03-30 13:04:41 +03:00
Dmitry Jemerov
03a26c4ce0
Set language level 6 for modules using JDK 6
2017-03-29 18:41:00 +02:00
Mikhail Glukhikh
a35b770c8d
Evaluate allImplementingModules lazily #KT-17136 Fixed
2017-03-29 18:17:55 +03:00
Dmitry Jemerov
e66d5d6e1a
Advance Java language level
2017-03-29 17:10:22 +02:00
Simon Ogorodnik
ddcff3c96d
Fix ImportFixBase to compute suggestions not on EDT
2017-03-29 17:35:13 +03:00
Vyacheslav Gerasimov
94b261d701
Add changelog for 1.1.2
2017-03-29 16:00:38 +03:00
Dmitry Petrov
caae6ff2ec
KT-16264 Forbid usage of _ without backticks
...
Forbid underscore-only (_, __, ___, ...) names as callees and as types.
If CHECK_TYPE directive is on, filter out UNDERSCORE_USAGE_WITHOUT_BACKTICKS messages.
2017-03-29 15:47:22 +03:00
Ilya Chernikov
0a3c031528
Optimize and simplify script deps cache and appropriate index rebuilding
2017-03-29 13:29:47 +02:00
Dmitry Petrov
2a97fb17ba
Fix source information mapping in PsiSourceManager
...
Add tests for source information mapping
KT-17108 source information corrupted on PSI -> IR transformation
2017-03-29 13:03:38 +03:00
Anton Bannykh
4086a84622
JS: add suffix '_test' to test module output files to avoid name conflicts (KT-16979)
...
Also stop setting AMD module ids explicitly.
2017-03-28 21:44:56 +03:00
Anton Bannykh
867bd13ce4
JS: make tests dependent on primitive array is checks pass even when -Xtypedarray is disabled (related: KT-17137)
2017-03-28 21:41:20 +03:00
Anton Bannykh
7d4c26c0c1
JS: fix maven SeleniumTest
2017-03-28 21:23:21 +03:00
Pavel V. Talanov
df71116dc5
KtLightElements: fix KtLightMember not extending KtLightDeclaration
...
Fix problem introduced in 4b85fd9fbe
2017-03-28 19:47:13 +03: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
Yan Zhulanow
228b3c56a3
Minor: fix failing CliTestGenerated#testPluginSimple test
...
Add missing Android Dialog stub cause Android Extensions plugin now generates the synthetic property for Dialog.
2017-03-28 16:08:46 +03:00
Dmitry Jemerov
8ec70f44dc
Log fallbacks to plain text search when searching expressions of type
...
This will help diagnose performance problems in IDEA inspections.
2017-03-28 13:00:56 +02:00