Alexander Udalov
4e77897bfd
Pass LanguageSettingsProvider to AnalyzerFacade explicitly
...
This way is more flexible for example for tests, where configuring the
service implementation may be tricky (it's usually done in
KotlinCoreEnvironment in production code)
2017-07-28 20:15:28 +03:00
Pavel V. Talanov
ca06d38c5b
script.runtime 1.1.4: Copy new API to kotlin.script.experimental package
...
Minor: Move Environment type alias to resolvers_deprecated.kt file
2017-07-28 20:13:59 +03:00
Pavel V. Talanov
d59a72ea75
script.runtime 1.1.4: Undeprecate old API
2017-07-28 20:13:57 +03:00
Pavel V. Talanov
9e34437447
script.runtime: add 'kotlin-runtime' dependency
...
script.runtime is not built by JPS, this just affects highlighting
2017-07-28 20:13:54 +03:00
Alexander Udalov
82502e1a8b
Fix compilation of kotlin-script-util
...
Compilation was broken in 46a01ec
2017-07-28 19:26:35 +03:00
Leonid Startsev
527ccaff16
Changes required for serialization plugin to work:
...
* Support for generation of synthetic nested classes (for implementations
of user-defined serial annotations):
1. Compiler extenstion points for contributing names and descriptoprs
of nested classes
2. Control on synthetic class primary constructor visibility
* Public functions for generating initializing expressions for optional
properties
2017-07-28 07:04:57 -07:00
Dmitry Petrov
9e6b706a03
Unwrap property imported from object on property access
...
#KT-18982 Fixed Target versions 1.1.5
2017-07-28 17:01:04 +03:00
Sergey Igushkin
05919244bd
Fix testLogLevelForceGC
2017-07-28 16:39:10 +03:00
Sergey Igushkin
7906ac9348
Fix unresolved rhino dependency in testDce.
2017-07-28 16:39:10 +03:00
Pavel V. Talanov
c1fd8fc318
Send roots changed iff combined dependencies of all scripts changed
...
This reduces total number of reindex requests when working with scripts
ScriptDependenciesCache::onChange logic is independent from ScriptDependenciesUpdater::onChange
2017-07-28 15:45:29 +03:00
Pavel V. Talanov
e115c8b373
Filter out invalid files before contributing them for indexing
...
#EA-104574
2017-07-28 15:45:26 +03:00
Nikolay Krasko
99555fa843
Retrieve receiver annotation to stubs from compiled code (KT-19209)
...
#KT-19209 Fixed
2017-07-28 15:01:32 +03:00
Alexander Udalov
8b149db0ec
Drop deprecated KotlinPaths.getRuntimePath, use getStdlibPath instead
2017-07-28 14:16:48 +03:00
Alexander Udalov
b988582531
Refactor utilities in AbstractKotlinJpsBuildTestCase
2017-07-28 14:16:47 +03:00
Alexander Udalov
1e6850f198
CLI: improve error message if libraries are not found in Kotlin home
...
Also support the '-kotlin-home' argument in kotlinc-js
#KT-18859 Fixed
2017-07-28 14:16:46 +03:00
Alexander Udalov
eb673d6ed3
Do not try to compile if incorrect language/API version is passed
2017-07-28 14:11:35 +03:00
Alexander Udalov
4b42f9e071
Move JPS-related kotlin-home detection code to jps-plugin
2017-07-28 14:11:35 +03:00
Alexander Udalov
46a01ec131
J2K PathUtil: convert and prettify
2017-07-28 14:11:35 +03:00
Alexander Udalov
3beb6a86f7
J2K PathUtil: move .java -> .kt
2017-07-28 14:11:35 +03:00
Dmitry Petrov
67336653e0
Generate SAM wrappers only if they are required for a given argument
...
SAM interface wrapper for an argument is required,
if in the function descriptor for SAM adapter
type for the corresponding value parameter
doesn't match type of the corresponding value parameter
in the original (Java) descriptor.
#KT-19251 Fixed Target versions 1.1.5
2017-07-28 08:24:46 +03:00
Dmitry Petrov
c8bc2d9d16
Minor: code cleanup
2017-07-28 08:24:46 +03:00
Dmitry Petrov
5df461c7e0
Add test for KT-19246
...
The issue was fixed by
https://github.com/jetbrains/kotlin/commit/904c7f9c640ccb38c0becb40bd3b5dad3ac921bd
2017-07-28 08:24:46 +03:00
Nikolay Krasko
24865ba26a
Allow deprecated fix for TYPEALIAS_EXPANSION_DEPRECATION
2017-07-28 01:28:56 +03:00
Nikolay Krasko
53373b66b9
Do not replace in alias when constructor has special pattern (KT-19202)
...
#KT-19202 Fixed
2017-07-28 01:28:56 +03:00
Nikolay Krasko
1b93e2030f
Create isCallee utility function
2017-07-28 01:28:56 +03:00
Yan Zhulanow
142a64e039
Minor: Fix Gradle integration test compilation, replace .use() with try&finally
2017-07-27 21:22:06 +03:00
Sergey Igushkin
fabcd6b73c
Fix Gradle IT compilation.
2017-07-27 20:44:03 +03:00
Anton Bannykh
e9e81d96a5
Fixed maven multiplatform test
2017-07-27 19:34:14 +03:00
Mikhael Bogdanov
79921b0206
Update changelog for 1.1.4-eap-33
2017-07-27 14:18:35 +02:00
Valentin Kipyatkov
ee7eb3186d
Fixed problems with ModuleDescriptor mismatch after ProcessCanceledException
2017-07-27 14:05:45 +03:00
Valentin Kipyatkov
6ba96b1103
Renamed function
2017-07-27 13:56:30 +03:00
Valentin Kipyatkov
7f467f0fdd
Minor
2017-07-27 13:56:29 +03:00
Valentin Kipyatkov
d3ea7c3a14
No need to pass fq-names to import when we have bindingContext
2017-07-27 13:56:28 +03:00
Valentin Kipyatkov
996292264b
Fixed inline when multiple implicit receivers exist
...
#KT-17776 Fixed
#KT-17266 Fixed
2017-07-27 13:55:25 +03:00
Valentin Kipyatkov
0346b31628
Enabled Loop to call chain inspection again
2017-07-27 13:54:59 +03:00
Valentin Kipyatkov
44dafc38e5
A bit more correct fix of KT-14665
2017-07-27 13:33:57 +03:00
Kirill Rakhman
3ff5c95419
Improve inspection message for NullableBooleanElvisInspection
...
Also report as "should" or "can" depending on severity
So #KT-19006 Fixed
2017-07-27 11:08:26 +03:00
Simon Ogorodnik
c41c5f1916
KT-19145: Enable type completion for extension properties
...
#KT-19145 fixed
2017-07-27 09:57:11 +03:00
Andrius Semionovas
68659f5a32
Introduce error "ANNOTATION_USED_AS_ANNOTATION_ARGUMENT" along with QF
...
The relevant inspection has been removed
So #KT-18855 Fixed
2017-07-27 09:54:22 +03:00
Dmitry Petrov
b81ca31aae
Record resolved delegation call for primary ctor if single result
...
Do the same thing as for secondary constructor (looks like it was a
workaround for R&I bug that was used only for secondary constructors
for some reason).
#KT-17464 Fixed Target versions 1.1.5
2017-07-27 09:24:48 +03:00
Dmitry Petrov
c9ad290ad5
Do not store null for temporary in destructuring assignment
...
#KT-19256 Fixed Target versions 1.1.5
2017-07-27 09:02:26 +03:00
Dmitry Petrov
b867c46f72
Generate for-in-range loop as counter loop when possible
...
If an upper bound is a compile-time constant != Int.MAX_VALUE,
we can generate 'for (i in x..N)' as 'for (i in x until N+1)'.
2017-07-27 09:02:26 +03:00
Dmitry Petrov
7450899b87
Minor: extract get*CompileTimeConstant
...
Get rid of code duplication.
2017-07-27 09:02:26 +03:00
Ilya Gorbunov
ca8bf395c3
Do not create iterator in 'any', 'none', 'all' and 'count' unless necessary
...
#KT-19133 Fixed
2017-07-26 22:42:29 +03:00
Mikhael Bogdanov
ff676c050f
Properly generate inner classes when compiling source for inline
...
KT-19175: Compiler generates different bytecode when classes are compiled separately or together
#KT-19175 Fixed
2017-07-26 20:31:14 +02:00
Sergey Igushkin
7da6ff78c1
Fix Kapt3 classes not consumed by kotlinCompile tasks from their friend
2017-07-26 20:19:33 +03:00
Yan Zhulanow
ea1068a822
Parcelable, minor: Rename MagicParcel to Parcelize
2017-07-26 20:19:32 +03:00
Yan Zhulanow
f29cf07fa4
Android Extensions, minor: Fix test
2017-07-26 20:19:32 +03:00
Yan Zhulanow
92558ad183
Minor: Clarify module name in warning message about empty output classpath/output directories
2017-07-26 20:19:31 +03:00
Yan Zhulanow
826672ea1b
Kapt: Register kapt classes output directory as Java classes directory (KT-19211)
...
This is relevant to pure (non-Android) Java projects and Gradle 4.0+.
2017-07-26 20:19:30 +03:00