Mikhail Glukhikh
806d2d628c
FIR Java: correctly handle overridden Kotlin properties in use-site scope
2019-05-28 10:20:41 +03:00
Mikhail Glukhikh
56435fa283
FIR Java: add default constructors
2019-05-28 10:20:40 +03:00
Mikhail Glukhikh
d0404b2c2a
FIR resolve: check number of parameters when handling Java accessors
2019-05-28 10:20:38 +03:00
Dmitry Gridin
76c2c2a5e9
Allow "Add val/var to primary constructor parameter" for inline & annotation classes
...
Relates to #KT-29731
2019-05-24 15:55:01 +07:00
Dmitry Gridin
f2bd58c030
Expand "Create expected..." also to a members if an expect class doesn't exist
...
#KT-31272 Fixed
2019-05-24 15:55:01 +07:00
Dmitry Gridin
47e3a26749
Fix "Create expect function" for primary constructor
...
#KT-31518 Fixed
2019-05-24 15:55:01 +07:00
Dmitry Gridin
b575ed390a
Add a dialog to select members for export in expect class
...
#KT-31476 Fixed
#KT-31446 Fixed
#KT-31033 Fixed
2019-05-24 15:55:01 +07:00
Dmitry Gridin
1097bc76af
Don't suggest Add val/var to parameter at expect class constructor
...
#KT-29731 Fixed
2019-05-24 15:55:01 +07:00
Dmitry Gridin
98a4c4588e
Don't suggest might be const on actual member declaration
...
#KT-27822 Fixed
2019-05-24 15:55:00 +07:00
Nikolay Krasko
78569c62c0
Additional test for multiple comments in copyright updater
2019-05-23 16:25:09 +03:00
Nikolay Krasko
136cbd195b
Fix copyright updater in scripts (KT-30133)
...
#KT-30133 Fixed
2019-05-23 16:25:09 +03:00
Nikolay Krasko
aa01328d13
Add tests for copyright updater
2019-05-23 16:25:08 +03:00
Toshiaki Kameyama
3bca1a50e3
Move variable declaration into when: fix comment place
...
#KT-31362 Fixed
2019-05-23 19:01:24 +07:00
Mikhail Glukhikh
f4fdc66a34
Introduce experimental FIR compiler #KT-31265 Fixed
...
This commit also includes several FIR2IR fixes which helps FIR compiler
to produce normal results
2019-05-23 14:02:06 +03:00
Dmitriy Novozhilov
f54653eb2b
[NI] Fix error type approximation in ILTApproximatorConfiguration
...
#KT-31441 Fixed
2019-05-23 12:22:42 +03:00
Mikhail Glukhikh
0cf318918c
Clean & fix tests in "replace manual range with indices / iteration"
...
Related to KT-14344
2019-05-21 13:34:29 +03:00
KilianCallebaut
3451c60f93
Suggest to replace manual range with explicit indices or iterable
...
#KT-14344 Fixed
2019-05-20 12:24:52 +03:00
Toshiaki Kameyama
2c424afefa
Elvis -> if intention: don't produce boilerplate code for return/break/continue/throw in RHS
...
#KT-14369 Fixed
2019-05-20 11:15:41 +03:00
Natalia Selezneva
58eca451c4
Sdk passed in script dependencies should be used during script resolve
...
PsiElementFinder doesn't find classes from sdks that aren't Project SDK, so when Script Sdk differs from it we need to additionally search classes in script sdk using KotlinScriptDependenciesClassFinder (as we do for classes from ScriptDependencies.classpath)
^KT-31152 Fixed
2019-05-20 10:41:15 +03:00
Toshiaki Kameyama
6ff776ba65
Convert property to function: fix incorrectly conversion when property has explicit generic type
...
#KT-29192 Fixed
2019-05-19 14:57:25 +07:00
Toshiaki Kameyama
354f8f0bf1
Redundant 'suspend' modifier inspection: don't report when function has suspend operator invoke
...
#KT-25465 Fixed
2019-05-18 11:54:57 +03:00
Vadim Brilyantov
01a05a5495
Move daemon jar from compiler
2019-05-17 15:51:52 +03:00
Toshiaki Kameyama
04638eea6b
Remove braces intention: fix caret position
...
#KT-31443 Fixed
2019-05-17 11:18:44 +07:00
Toshiaki Kameyama
fef0cc5d2b
"Introduce 'when' subject" intention: suggest for "this" expression
...
#KT-12567 Fixed
2019-05-14 23:25:10 +03:00
Dmitry Gridin
eee8d0263d
Fix "Unused import" for 'provideDelegate'
...
#KT-31319 Fixed
2019-05-14 21:01:21 +07:00
Dmitry Gridin
3914530fa8
Don't delete import from stdlib if alias exists and used
...
#KT-31414 Fixed
2019-05-14 21:01:21 +07:00
Dmitry Gridin
32298522dd
Optimize Imports shouldn't delete imports with unresolved parts
...
#KT-10512 Fixed
2019-05-14 21:01:20 +07:00
Mikhail Glukhikh
2d5f41cfe3
Fix .inspection file for ConvertNaNEquality tests
2019-05-14 16:23:08 +03:00
Andrey Uskov
52315106e8
Create source sets for generated by kapt sources during import
...
#KT-30739 Fixed
2019-05-13 18:43:11 +03:00
Matthew Runo
39f576d75c
Migrate RetentionPolicy arguments in deprecated Java quick-fix
...
#KT-29666 Fixed
2019-05-13 15:35:46 +03:00
Toshiaki Kameyama
14259ca9e0
Implicit Nothing? type: don't report when declaration overrides nullable nothing type
...
#KT-30481 Fixed
2019-05-13 13:00:50 +03:00
Toshiaki Kameyama
cf4471ba53
"Redundant 'requireNotNull' or 'checkNotNull' call": don't remove first argument if function is used as expression
...
#KT-31404 Fixed
2019-05-13 16:59:01 +07:00
Dereck Bridie
574178882a
KT-26629 Inspection to replace equality check with NaN with isNaN call
2019-05-13 12:55:53 +03:00
Dmitry Gridin
07e908f15f
Fix incorrect quickfix "Replace with Kotlin analog" for conversion to an extension
...
where the first argument is an expression with an operation
#KT-31341 Fixed
2019-05-13 16:38:08 +07:00
Mikhail Glukhikh
b4a63794e5
Add name to argument: support old-style comment deletion
2019-05-13 12:33:52 +03:00
Mikhail Glukhikh
b0d294b50c
Use candidate descriptor to determine parameter name stability in IDEA
...
#KT-31349 Fixed
2019-05-13 12:33:52 +03:00
Mikhail Glukhikh
955bfd6e7b
Introduce "add parameter names to following arguments"
...
This commit also refactors relevant intentions & inspections,
like "add name to argument", "add names to call arguments",
"unnamed boolean literal argument"
#KT-30622 Fixed
2019-05-13 12:33:39 +03:00
Igor Yakovlev
bb071263b0
Fix JVMStatic annotation for UL-properties
2019-05-13 11:21:12 +03:00
Igor Yakovlev
0d31df7fb7
Fix invalid test data for static import quick fix
2019-05-13 11:21:12 +03:00
Igor Yakovlev
ab852750cc
Fix testdata for find usages of properties
2019-05-13 11:21:12 +03:00
Igor Yakovlev
7608b11691
Fix testdata for abstract method implementing intention
2019-05-13 11:21:12 +03:00
Denis Zharkov
1b5f72bd59
Enable ultra-light classes by default
...
^KT-29267 Fixed
2019-05-13 11:21:11 +03:00
Mikhail Zarechenskiy
3506c2047a
Fix lint test: take into account diagnostic that is specific for NI
2019-05-07 15:56:15 +03:00
Mikhail Glukhikh
54411bd248
Simplifiable call: support case w/out receiver, add minor enhancements
...
Related to KT-30501
2019-05-07 14:28:20 +03:00
Mikhail Glukhikh
e934eba6e4
Simplifiable call inspection: add filter -> filterIsInstance replacement
...
#KT-30501 Fixed
2019-05-07 14:28:18 +03:00
Mikhail Glukhikh
8913755e11
Simplifiable call inspection: add filter -> filterNotNull replacement
...
Related to KT-30501
2019-05-07 14:28:17 +03:00
Mikhail Glukhikh
4a5cbe0443
Replace "flatMap -> flatten" inspection with abstract "simplifiable call"
...
Related to KT-30501
2019-05-07 14:28:16 +03:00
Nicolay Mitropolsky
6101b5e6ba
KotlinAnnotatedElementsSearcher made support Kotlin objects (KT-31332)
2019-05-07 09:26:00 +03:00
Dmitry Gridin
e857425b35
Fix 'optimizeImports' tests
2019-05-06 18:12:39 +07:00
Dmitry Gridin
ff26acacf9
Optimize Imports shouldn't delete imports with unresolved parts
...
#KT-10512 Fixed
2019-05-06 18:12:39 +07:00