Mikhail Glukhikh
e8b95b971d
Make parentheses necessary for '(x op return y) op z' #KT-16808 Fixed
2017-09-25 18:16:42 +03:00
Mikhail Glukhikh
426a54c3ab
Do not count callable reference as recursive property access
...
So #KT-20104 Fixed
2017-09-25 18:16:42 +03:00
Dmitry Petrov
8f9ea3e08b
Fix const range bounds generation
2017-09-25 17:49:33 +03:00
Kirill Rakhman
e82544ffb0
build.gradle.kts: replace listOf().filterNotNull() with listOfNotNull()
2017-09-25 16:32:08 +03:00
Mikhail Glukhikh
253ae10e5f
Array equality: replace Arrays.equals with contentEquals in intention
2017-09-25 16:27:51 +03:00
Mikhail Zarechenskiy
32531b3afc
Allow to have all parameters with default values in actual annotation
...
#KT-19656 In Progress
2017-09-25 16:19:05 +03:00
Toshiaki Kameyama
8b135c12e7
Delete useless assert() after simplify comparison #KT-14695 Fixed
2017-09-25 15:35:11 +03:00
Alexey Sedunov
e87f9633be
Copy: Do not check conflicts for cross-project copying
...
#KT-19949 Fixed
#KT-19972 Fixed
#EA-105637 Fixed
2017-09-25 14:40:17 +03:00
Alexey Sedunov
6e59cc2140
Copy: Copy entire file if it contains just a selected declaration
2017-09-25 14:40:17 +03:00
Alexey Sedunov
c8c0ab1647
Copy: Fix import insertion on declaration copying
...
#KT-19909 Fixed
2017-09-25 14:40:17 +03:00
Alexey Sedunov
0beadddb7f
Copy: Improve file copying
...
- Do not copy individual declarations if entire file is selected
(keeping original content with comments, formatting, etc.)
- Update package directive when original file packages matches
its directory
#KT-20092 Fixed
#KT-18196 Fixed
2017-09-25 14:40:17 +03:00
Alexey Sedunov
fbf6bd534c
Move: Disable MoveDeclarationsCopyPasteProcessor in dumb mode
...
#KT-20199 Fixed
2017-09-25 14:40:16 +03:00
Alexey Sedunov
963747ce04
Move: Optimize conflict analysis
...
- Do not process conflicts twice wgen moving a directory
- Check move target before resolving usage context declaration
- Skip visibility check for usages referring to public declarations
- Skip module conflict check for declarations with unchanged module
- Do not report lambdas as usage container (use enclosing declaration)
2017-09-25 14:40:16 +03:00
Alexey Sedunov
fefa2304a0
Move to Separate File: Optimize usage search/processing
...
- Import optimization is already performed by refactoring helper,
so running optimizer explicitly is unnecessary
- Do not search external usages for declarations with unchaged package
and module
#KT-18823 Fixed
2017-09-25 14:40:16 +03:00
Alexey Sedunov
0a0457298b
Misc: Run MoveKotlinDeclarationsProcessor.findUsages() under progress
...
#KT-20205 Fixed
2017-09-25 14:40:16 +03:00
Alexey Sedunov
c37489ab8b
Kotlin Facet: Do not restrict API version list by stdlib version
...
#KT-19955 Fixed
2017-09-25 14:40:16 +03:00
Alexey Sedunov
1e82b23321
Minor: Drop unnecessary non-null assertion
...
#EA-107378 Fixed
2017-09-25 14:40:16 +03:00
Toshiaki Kameyama
1043284afe
Add data modifier to a class quickfix #KT-18220 Fixed
2017-09-25 14:17:35 +03:00
Toshiaki Kameyama
f08e9832a6
Show warning also if arrays are compared by '!=' #KT-20259 Fixed
2017-09-25 12:15:17 +03:00
Kirill Rakhman
93252926ba
Introduce additional quick-fix for (collection) type mismatch
...
This fixed inserts conversion .toSequence/Array/Iterable/Collection/List
So #KT-19735 Fixed
2017-09-25 12:10:28 +03:00
Alexander Udalov
7f5b9b1760
Add tests on quick fix that adds 'actual' to platform declaration
...
#KT-18454
2017-09-25 12:00:18 +03:00
Alexander Udalov
60430828cf
Deduplicate code in AbstractQuickFixMulti{File,Module}Test
2017-09-25 12:00:18 +03:00
Alexander Udalov
113c83b47a
Minor, cleanup AbstractQuickFixMultiFileTest
2017-09-25 12:00:18 +03:00
Alexander Udalov
23d6690581
Fix codegen for multifile class parts with type aliases only
...
#KT-20337 Fixed
2017-09-25 11:58:20 +03:00
Alexander Udalov
09f36927a5
Do not try to generate 'expect' declarations in multifile classes
...
Similarly to PackageCodegenImpl#generateFile
#KT-15754 Fixed
#KT-17478 Fixed
2017-09-25 11:58:20 +03:00
Alexander Udalov
3f1ee74475
Minor, refactor compiler-running code in multiplatform integration test
...
The compiler is run twice and outputs are compared for equality. Thus,
if both runs ended with exceptions, the outputs were never equal because
the compiler was run from different places (stack traces were different
in only one line), which was a bit weird. Now outputs are equal and in
case of an exception, a standard "actual data differs from file content"
message is displayed
2017-09-25 11:58:20 +03:00
Alexander Udalov
2d9f07deec
Minor, add test for obsolete issue on "actual missing" error
...
#KT-20142
2017-09-25 11:58:20 +03:00
Alexander Udalov
2281ac842a
Prohibit super constructor call for 'expect' class
...
#KT-15490 Fixed
2017-09-25 11:58:20 +03:00
Alexander Udalov
8ae7343557
Prohibit 'expect' lateinit member properties
...
#KT-20319 Fixed
2017-09-25 11:58:20 +03:00
Alexander Udalov
1f992ed845
Improve error on 'expect' delegated property
...
#KT-15054 Fixed
#KT-15055 Fixed
2017-09-25 11:58:20 +03:00
Mikhail Glukhikh
258e8f73b6
Expect/actual: add inspection for Suppress("DIAGNOSTIC") migration
...
So #KT-20328 Fixed
2017-09-25 11:48:15 +03:00
Mikhail Glukhikh
0bce06dc0f
Synchronize cleanupTool = true with CleanupLocalInspectionTool
...
So #KT-20366 Fixed
2017-09-25 11:47:11 +03:00
Mikhail Glukhikh
d6028877e1
Add kapt3-idea dependency to gradle script
2017-09-25 11:47:08 +03:00
Mikhail Glukhikh
f348ee9381
Fix a pair of multi-platform messages #KT-20327 Fixed
2017-09-25 11:47:05 +03:00
Alexey Andreev
ee4d790f43
JS: optimize default arguments in cross-module inliner
...
This reduces size of circlet UI (of approx 2.5 mb) by about 90 kb
2017-09-25 11:29:05 +03:00
Alexey Andreev
e6ab3dc936
JS: generate aliases for intrinsics.
...
This makes generated code more friendly to UglifyJS.
For example, uglified circlet loses 15 kb.
2017-09-25 11:29:04 +03:00
Ilya Chernikov
80ac8897ff
Fix idea plugin jar name and ultimate build
2017-09-22 17:41:52 +02:00
Sergey Igushkin
25ca079fc5
Fix agp25 source set Kotlin classes not included in kotlin-gradle-plugin
2017-09-22 17:30:01 +03:00
Nikolay Krasko
1d51e5b59b
Refactoring: reuse implementation
2017-09-22 16:51:08 +03:00
Nikolay Krasko
5a8c957edc
Fix null-pointer template apply (EA-102391)
2017-09-22 16:51:08 +03:00
Nikolay Krasko
a8211a77d4
Fix null-pointer because of nullable elementAt (EA-99963)
...
#EA-99963 Fixed
2017-09-22 16:51:08 +03:00
Nikolay Krasko
a51a9795ae
Fix null-pointer because of nullable elementAt (EA-101762)
...
#EA-101762 Fixed
2017-09-22 16:51:08 +03:00
Ilya Gorbunov
00fa8ee464
Setup JRE version for codegen tests
...
Add camelCase task name aliases for codegen tests
2017-09-22 15:37:38 +03:00
Ilya Gorbunov
43e2be26f8
Advance stdlib version to 1.1.60
2017-09-22 15:37:38 +03:00
Dmitry Jemerov
0682f74560
Avoid duplicate file type calculation
2017-09-22 14:30:36 +02:00
Denis Zharkov
c7812beea4
Fix SOE in SignatureEnhancement::extractNullability
...
The problem was that `resolveTypeQualifierAnnotation` actually doesn't
guarantee that `typeQualifierAnnotation` is javax.annotation.NonNull
with argument
It could be just any type qualifier (see the test)
2017-09-22 14:15:11 +03:00
Ilya Chernikov
1953f8e945
Fix build-common publishing
2017-09-21 20:34:10 +02:00
Ilya Chernikov
0b34dde905
Add android-extensions-runtime to the dist
2017-09-21 20:34:08 +02:00
Ilya Chernikov
b5d68515e8
Fix path to android-extensions-runtime in ParcelBoxTest
2017-09-21 20:34:07 +02:00
Dmitry Jemerov
4549cc7289
Fix CodeConformanceTest for new gradle build
2017-09-21 18:09:25 +02:00