Commit Graph

39631 Commits

Author SHA1 Message Date
Mikhael Bogdanov 8ca82c8e99 Add missed common parts 2017-06-20 11:08:53 +02:00
Mikhael Bogdanov 956cc0dbfd Support IMPLICIT_INTEGER_COERCION 2017-06-20 11:01:10 +02:00
Mikhael Bogdanov d888addba0 Add KCallableNamePropertyLowering 2017-06-20 11:00:38 +02:00
Mikhael Bogdanov 44b7f5a5be Add inline tests to IR 2017-06-20 10:26:38 +02:00
Mikhael Bogdanov 8ab705a14c Introduce IrInliner 2017-06-20 10:26:37 +02:00
Mikhael Bogdanov 9f736f2192 Extract PsiSourceCompiler 2017-06-20 10:26:36 +02:00
Mikhael Bogdanov 2507780e19 Extract PsiInlineCodegen 2017-06-20 10:26:35 +02:00
Mikhael Bogdanov 8dc1b8f95f Introduce BaseExpressionCodegen and SourceCompilerForInline,
switch CallGenerator and InlineCodegen to them

~base
2017-06-20 10:26:35 +02:00
Alexey Andreev 3ae214b97a Fix reified parameters with non-identifier names in JS
See KT-18169
2017-06-20 10:41:52 +03:00
Alexey Andreev d3a5201ecc Intrinsify String?.plus in JS BE
See KT-8020
2017-06-20 10:40:21 +03:00
Ilya Gorbunov 7efb9ddd4e Early return if value is null
The change is required to fix compilation for IDEA 172, where getValue()
became explicitly nullable.
2017-06-20 02:58:40 +03:00
Zalim Bashorov 8b9fd44bbe Publish kotlin compiler artifacts to NPM 2017-06-19 22:52:01 +03:00
Zalim Bashorov 06cd02f769 Publish to NPM with dev tag by default 2017-06-19 22:52:00 +03:00
Yan Zhulanow 04c09bedeb SamWithReceiver, minor: Add missing module to Spring plugin classpath (fixes Spring tests) 2017-06-19 20:28:48 +03:00
Yan Zhulanow d07fd52c43 SamWithReceiver: Add general-purpose plugin and Gradle/Maven integrations 2017-06-19 20:28:47 +03:00
Alexey Sedunov db3172a750 Configuration: Inline createDefaultArguments() methods
It's a superficial fix: the bug is actually caused by
uninitialized companion instance reference in
Kotlin2JvmCompilerArgumentsHolder class

 #KT-18505 Fixed
2017-06-19 18:15:40 +03:00
Mikhail Zarechenskiy 2a4cac024b Add test for obsolete issue
#KT-13813 Obsolete
2017-06-19 17:36:10 +03:00
Mikhail Zarechenskiy aeac2ea384 Fix 'add not-null asserted call' quick fix for operation in
#KT-18529 Fixed
2017-06-19 17:36:09 +03:00
Mikhail Zarechenskiy b53a3b324f Fix 'infix call' diagnostic for in operation
#KT-8845 Fixed
2017-06-19 17:36:08 +03:00
Mikhail Zarechenskiy d17f31c8b0 Refactoring: move several utils from js module to frontend 2017-06-19 17:36:07 +03:00
Mikhail Zarechenskiy dbfea9b787 Fix TCE for invalid code with wrong callee expression
#KT-14927 Fixed
2017-06-19 17:36:06 +03:00
Sergey Igushkin 0032719ab9 (minor) Bump Android Gradle plugin version to 3.0.0-alpha4 in tests 2017-06-19 14:37:02 +03:00
Mike 7e01ac81ab Fixed Slack link (#1140)
http://kotlinslackin.herokuapp.com/ is down, replaced with http://slack.kotlinlang.org/
2017-06-19 08:33:13 +02:00
Mikhail Glukhikh e8b0d47765 PlainTextPasteImportResolver: use relevant facade for Java classes
Fixes EA-75803 for this particular case
2017-06-16 17:17:38 +03:00
Vyacheslav Gerasimov f51e3ab90c Fix Android extensions property usage highlighting
#KT-10736 Fixed
2017-06-16 17:13:34 +03:00
Mikhail Zarechenskiy f8617f6676 Adapt collecting synthetic constructors in IDE for completion 2017-06-16 16:44:53 +03:00
Mikhail Zarechenskiy 011231f2ab Collect sam adapters for constructors in synthetic scope
Also place computation of synthetic constructors under one function
2017-06-16 16:44:52 +03:00
Mikhail Zarechenskiy 0adc8d9bfa Minor: remove val 2017-06-16 16:44:51 +03:00
Mikhail Glukhikh e9e028f987 Minor: add getName() for three local quick fixes to fix 162 / AS23 2017-06-16 16:20:55 +03:00
Mikhail Glukhikh 4f8db14e5b Update changelog (1.1.3-eap-85)
(cherry picked from commit 61cb598)
2017-06-16 16:04:32 +03:00
Derek Alexander 1f5cc059f9 Fix compiler failure related NO_EXPECTED_TYPE
Changes to turn KT-16016 into a compiler diagnostic error rather than a
stack trace

#KT-16016 Fixed
2017-06-16 15:52:09 +03:00
Mikhail Glukhikh ace3bfbbf9 Fix if -> ?: / ?. highlight type
if should be transformed, default level used (weak warning);
if should not be transformed, no highlighting (information) used.
2017-06-16 15:23:48 +03:00
Mikhail Glukhikh 9e85b0c2ba Has platform type inspection: do not enforce weak warning type
So #KT-17954 Fixed
2017-06-16 15:17:50 +03:00
Mikhail Glukhikh c3f3392f0c Minor 2017-06-16 15:04:29 +03:00
fitermay 81f5a29526 Make overridden member open: invalidate cached state on PSI modification
Before, waiting for inspection rerun was necessary
Also rename: computeState --> computeInfo
Related to KT-17740
2017-06-16 15:04:22 +03:00
fitermay 289286c8cd Avoid mutating state and do not rely on side effects for proper function
So #KT-17740 Fixed
2017-06-16 15:04:16 +03:00
fitermay 0dced8d29c Do not suggest "Make overridden member open" for already open ones
So #KT-18148 Fixed
2017-06-16 15:04:10 +03:00
shiraji cbccf932a7 Add inspection removing redundant spread operator for arrayOf call
So #KT-17920 Fixed
2017-06-16 15:04:04 +03:00
Mikhail Glukhikh ce55d9e364 Fix of "Replace array of with array literal"
Do not apply if module does not support the relevant feature
Related to KT-17164
2017-06-16 15:03:58 +03:00
Toshiaki Kameyama b9fb7cc3a5 Add quick fix to generate equals / hashcode in data class with arrays
So #KT-15893 Fixed
2017-06-16 15:03:52 +03:00
Dmitry Neverov 5df5a001a1 Support implicit receiver in if-then intentions #KT-16069 Fixed 2017-06-16 15:02:44 +03:00
Kirill Rakhman 13a2612e20 Add inspection for ranges with start > endInclusive #KT-18438 Fixed 2017-06-16 15:02:31 +03:00
shiraji 647558c98a Add inspection for potentially wrongly placed unary operators
So #KT-18236 Fixed
2017-06-16 15:02:24 +03:00
Alexey Sedunov eaea160f0e Kotlin Facet: Fix detection of source set name by Gradle compile task
#KT-17492 Fixed
2017-06-15 17:26:40 +03:00
Alexey Sedunov 1544467725 Presentation: Fix NPE on star projection rendering
EA-100480 Fixed
2017-06-15 17:26:39 +03:00
shiraji ab4eb1dd20 Add better quickfix for scope functions #KT-13676 Fixed 2017-06-15 15:01:42 +03:00
Mikhail Glukhikh 09d8c31433 Change highlight type of many inspections to GENERIC_ERROR_OR_WARNING
This way they will use highlight type depending on their level.
Otherwise highlight type is enforced and changing level in IDE
actually changes nothing.
2017-06-15 15:01:41 +03:00
Dimach d369fa094a Add Boolean? == const to elvis conversion and vice versa #KT-15368 Fixed
Convert elvis to equality check implemented as inspection due
code style guide
2017-06-15 15:01:39 +03:00
Nikolay Krasko 6e9c0a0fda Move test logging processing in find usages to single place 2017-06-15 14:00:43 +03:00
Nikolay Krasko 60c8d5dcc0 Fix search usages for invoke() with vararg parameter (KT-18479)
#KT-18479 Fixed
2017-06-15 14:00:42 +03:00