Pavel V. Talanov
a8a490ea5a
Test multifile facades in mpp projects
2018-06-06 21:04:00 +02:00
Pavel V. Talanov
8185b1bf02
Test accessing file facades from java in mpp project
2018-06-06 21:03:57 +02:00
Pavel V. Talanov
1be477c816
Fix "add member" quick fix when invoked from java on common class
...
#KT-24115 Fixed
2018-06-06 21:03:56 +02:00
Pavel V. Talanov
9e493d8b73
Mpp tests: allow to test java code in highlighting and quickfix tests
2018-06-06 21:03:55 +02:00
Pavel V. Talanov
0157d7bd5d
Mpp utils: remove erroneous cache
...
Note: can't use Module.cached to calculate data that depends on input
other than the module itself (isTests in this case)
2018-06-06 21:03:53 +02:00
Pavel V. Talanov
1f957de9d8
Minor: use utils appropriately
2018-06-06 21:03:52 +02:00
Pavel V. Talanov
fa7531f342
Refactor: move and prettify mpp util code
2018-06-06 21:03:51 +02:00
Pavel V. Talanov
05e6c4e0a2
Minor: move utils to more appropriate place
2018-06-06 21:03:50 +02:00
Pavel V. Talanov
e67f449476
Fix exception from kotlin bytecode window on common code
...
Do not show bytecode window for non-jvm platform modules
#KT-24159 Fixed
2018-06-06 20:48:18 +02:00
Pavel V. Talanov
d18846201a
JavaElementFinder: avoid returning fake light class in findClass*
...
findClass* are supposed to return a single visible class
from given scope with given fqname
After sorting FakeFileForLightClass would sometimes be first in the list
leading to exceptions like KT-24704
#KT-24704 Fixed
2018-06-06 20:45:41 +02:00
Pavel V. Talanov
86e52f45b1
J2K JavaElementFinder: prettify code
2018-06-06 20:45:41 +02:00
Pavel V. Talanov
6cea843461
J2K JavaElementFinder: autoconvert and fix compilation errors
2018-06-06 20:45:41 +02:00
Pavel V. Talanov
00b1e9281b
J2K JavaElementFinder: rename file
2018-06-06 20:45:41 +02:00
Alexey Tsvetkov
451c732b8f
Test: speed up tests by minimizing number of tasks to run
...
E.g. avoid building release variants for Android
(extremely slow due to proguard minification, optimization)
2018-06-06 17:54:51 +03:00
Alexey Tsvetkov
0383584f33
Test: rename file to match class name
2018-06-06 17:54:51 +03:00
Alexey Tsvetkov
0c12b0e5fb
Test: refactor Gradle daemon memory test
...
Currently the test makes more harm than use:
* It is too slow: two executions (with different Gradle versions)
take 5 minute on CI.
* It is unreliable: the test fails on CI for months
with insignificant violation of the memory growth limit.
After this change:
* the memory growth limit is increased;
* the test run count is decreased;
* changes the test to use separate project with minimal amount of classes
(we're not interested in compiler's memory leaks; only Gradle plugin specific ones);
2018-06-06 17:54:51 +03:00
Alexey Tsvetkov
43e7b0425d
Test: move Gradle daemon memory test to separate class
2018-06-06 17:54:50 +03:00
Ilya Gorbunov
0f972f2412
Restore default parameter values in JS collection constructors
...
Even if they now have overloads that will be selected when these parameters are omitted.
This is to preserve compatibility with the libraries compiled against the older library.
#KT-24782 Fixed
2018-06-06 15:32:34 +03:00
Nicolay Mitropolsky
c150878086
172: Uast: testdata fixes
2018-06-06 14:05:31 +03:00
Nicolay Mitropolsky
5c8e4958db
Uast: exposing enum constants literal values (#KT-23456)
2018-06-06 14:05:30 +03:00
Nicolay Mitropolsky
12707a6443
Uast: handling resolve to deserialized methods (KT-24679)
2018-06-06 14:05:30 +03:00
Nicolay Mitropolsky
2ede37496c
173: Uast: removing kotlinInternalUastUtils.kt.173
...
no sense to keep difference
2018-06-06 14:05:30 +03:00
Mikhael Bogdanov
4cf58654b2
Implement toArray lowering
2018-06-06 10:34:51 +02:00
Mikhael Bogdanov
427a8886e4
Reuse new descriptor in bridge lowering
2018-06-06 10:34:51 +02:00
Mikhael Bogdanov
c72a3e08f7
Use field original in ir transformation
2018-06-06 10:34:50 +02:00
Mikhael Bogdanov
a53fa4f6f8
Properly calculate shift for default args in enum constructor call
2018-06-06 10:34:49 +02:00
Roman Artemev
4b8d906e45
Add runtime for JS IR BE
2018-06-05 21:21:18 +03:00
Alexey Tsvetkov
2fecf07dd7
Test: do not expect copy classes task to run with Gradle 4.0+
2018-06-05 19:27:08 +03:00
Alexey Tsvetkov
141cf43153
Test: remove KotlinGradlePluginMultiVersionIT
...
We run all tests with multiple Gradle versions now,
so parametrized test is not needed anymore.
Test cases are moved to relevant test classes.
testKaptProcessorPath is removed because kapt1 is not supported anymore.
2018-06-05 19:27:07 +03:00
Alexey Tsvetkov
fdbd3cd8cb
Test: remove unsupported Gradle versions from tests
2018-06-05 19:27:07 +03:00
Alexey Tsvetkov
80731437a8
Drop forcing Java task to recompile
...
We don't support Gradle <= 3.5 at the moment,
it does not make sense to have the code for Gradle < 2.14
2018-06-05 19:27:07 +03:00
Alexey Tsvetkov
0eadc76cb7
Remove unneeded code from Gradle plugin
2018-06-05 19:27:07 +03:00
Alexey Tsvetkov
3dc314d509
Remove com.intellij usages from Gradle plugin
2018-06-05 19:27:07 +03:00
Alexey Tsvetkov
c9e49ed198
Remove unused util
2018-06-05 19:27:07 +03:00
Alexey Tsvetkov
5f2513ee20
Get rid of split package org.jetbrains.kotlin.incremental in Gradle plugin
...
#KT-18621 fixed
2018-06-05 19:27:07 +03:00
Nicolay Mitropolsky
045cc253ab
Uast: KotlinUEnumConstant.returnType now is evaluated from containing сlass
...
to make it not load additional clsDelegates
2018-06-05 18:00:15 +03:00
Nicolay Mitropolsky
0fb879dfc2
lightAnnotations: KtLightPsiClassObjectAccessExpression added
...
as implementation of `PsiClassObjectAccessExpression` for class literals in annotations
2018-06-05 18:00:15 +03:00
Mikhail Glukhikh
92727d2945
Downgrade "redundant type check for object" to INFORMATION level
2018-06-05 17:54:30 +03:00
Alexander Podkhalyuzin
116a99ddb8
Fixed Icon link to proper variant
2018-06-05 17:41:47 +03:00
Mikhail Glukhikh
24008cdffb
If to when: do not add label to outer loop if not necessary
...
So #KT-24767 Fixed
2018-06-05 17:02:35 +03:00
Toshiaki Kameyama
b4962a1880
Add getter: don't suggest when property has no type or initializer
...
So #KT-24632 Fixed
2018-06-05 16:31:28 +03:00
Toshiaki Kameyama
8969e7a6e1
"Remove redundant toString": fix false positive for nested nullable
...
So #KT-24557 Fixed
2018-06-05 16:03:54 +03:00
Toshiaki Kameyama
4038d4d507
Explicit this inspection: suggest also for synthetic Java property
...
So #KT-22089 Fixed
2018-06-05 15:52:16 +03:00
Toshiaki Kameyama
6b37e40f99
Add quick-fix for type variance conflict #KT-23082 Fixed
2018-06-05 15:45:53 +03:00
Toshiaki Kameyama
ddf647ae96
Remove redundant receiver in "Change function signature" quick fix
...
So #KT-12298 Fixed
2018-06-05 15:20:18 +03:00
Toshiaki Kameyama
0cb907d637
Reformat: ChangeMemberFunctionSignatureFix
2018-06-05 15:19:34 +03:00
Toshiaki Kameyama
2c59f96ca4
Introduce "Add remaining when branches" intention #KT-23306 Fixed
2018-06-05 15:19:09 +03:00
Toshiaki Kameyama
bde9a57c9e
Don't suggest map{}.filterNotNull() -> mapNotNull{} on primitive array
...
So #KT-21556 Fixed
2018-06-05 15:18:28 +03:00
Toshiaki Kameyama
e770aed084
Don't suggest "Remove variable" for property with function initializer
...
So #KT-23752 Fixed
2018-06-05 15:17:14 +03:00
Dmitry Savvinov
b8f8802cff
Parse compiler arguments and configure LV properly in Platform.kt
2018-06-05 14:51:35 +03:00