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
Peter Xu
a639607821
Revert obsolete code introduced in KT-12402
...
The classes being filtered have been renamed months ago. The change
committed in KT-12402 is no longer relevant as the underlying issue has
been fixed.
2019-05-23 19:09:28 +09:00
Vladimir Krivosheev
757b4b3910
Do not use constructor injection for app level extension KotlinClassWithDelegatedPropertyRenderer (KT-31266)
2019-05-23 19:09:27 +09: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
Natalia Selezneva
7c46338181
Drop ScriptBinariesScopeCache from plugin.xml because it was moved to ScriptDependenciesCache
...
^KT-31521 Fixed
2019-05-21 12:07:11 +03:00
Igor Yakovlev
f044d654f0
Fix KotlinLintTest.parcel test
...
Added plugin classpath of android compiler extensions to module facet
2019-05-20 19:54:46 +03:00
Igor Yakovlev
611b6f36ce
Remove redundant import from QuickFixMultiFileTestGenerated
2019-05-20 12:50:09 +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
160de2dbe2
Do not load script dependencies if all script templates aren't loaded
2019-05-20 10:41:15 +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
Natalia Selezneva
5bc7b61497
Refactoring: move ScriptBinariesScopeCache to ScriptDependenciesCache
2019-05-20 10:41:14 +03:00
Natalia Selezneva
c2717b3006
Filter out all non JavaSdk from script sdks
2019-05-20 10:41:14 +03:00
Natalia Selezneva
144ff8ae91
Refactoring: move method that find sdk for script to ScriptDependenciesManager
2019-05-20 10:41:14 +03:00
Natalia Selezneva
2f5deefd0a
Scripts refactoring: move all scripts caches to ScriptDependenciesCache
...
Introduce base class for caches based on SLRUMap (with write lock) to avoid exceptions with concurrent map modifications
2019-05-20 10:41:13 +03:00
Natalia Selezneva
1ef4d987d1
Add debug log for script dependencies loading process
2019-05-20 10:41:13 +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
Nikolay Krasko
ef70e9db19
Don't use light classes for navigation element (KT-10215)
...
Place KotlinNavBarModelExtension before Java extension because it
substitutes non-java elements to files.
#KT-10215 Fixed
2019-05-17 21:43:58 +03:00
Toshiaki Kameyama
0a4d21c51f
Sort by class name in navigation bar (KT-10215)
...
#KT-10215 Fixed
2019-05-17 18:15:58 +03:00
Vadim Brilyantov
01a05a5495
Move daemon jar from compiler
2019-05-17 15:51:52 +03:00
Vadim Brilyantov
ced973b707
Introduce new Kotlin Daemon without RMI abstraction
2019-05-17 15:51:51 +03:00
Igor Yakovlev
a3f718733d
Fix of ConvertJavaInterfaceToClass test
...
Platform is trying to modify the class inheritance list during intension (see the test name above) action process but it cause a cross-language changes via PSI.
To make this possible LightClasses are supports this behaviour with a little support of it (inheritance list Add and inheritance list element Delete are supported).
It need's to be done for UL-classes in same way.
2019-05-17 14:48:47 +03:00
Toshiaki Kameyama
04638eea6b
Remove braces intention: fix caret position
...
#KT-31443 Fixed
2019-05-17 11:18:44 +07:00
Igor Yakovlev
79aa954682
Fix render of classpath log message for UL-classes
2019-05-15 18:48:53 +03:00
Alexander Udalov
b602c08773
Remove javaFilesDir parameter of CodegenTestCase.doMultiFileTest
...
Create TestFile instances for .java sources similarly to .kt sources,
and write them to a temporary directory via writeJavaFiles in each test
where this is needed
2019-05-15 13:25:14 +02:00
Igor Yakovlev
e3ec501419
Fix realization of LightClass methods by KtLightClassForSourceDeclaration
...
#KT-31022 Fixed
2019-05-15 13:18:24 +03:00
Toshiaki Kameyama
fef0cc5d2b
"Introduce 'when' subject" intention: suggest for "this" expression
...
#KT-12567 Fixed
2019-05-14 23:25:10 +03:00
Vyacheslav Gerasimov
5782267d26
Build: Fix import of kotlin-reflect in JPS build
...
#KT-29548 Fixed
2019-05-14 18:07:17 +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
Dmitry Gridin
23e51268ad
Minor: refactoring AbstractImportsTest
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
Igor Yakovlev
bf8cbfc6b5
Temporary ignore ConvertJavaInterfaceToClass test
2019-05-14 00:10:28 +03:00
Igor Yakovlev
d44f37d3d5
Fix misspelling of KtUltraLightMethodForSourceDeclaration
2019-05-13 19:56:04 +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
Igor Yakovlev
4625002efe
Fix invalid test data for CommonIntentionActionsTest
2019-05-13 16:10:52 +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
d517276a06
Apply "unnamed boolean literal" to idea & J2K + other style fixes
2019-05-13 12:33:46 +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