Alexey Andreev
cfd3b137d8
Add support for JS source map source roots to Gradle plugin
2017-06-20 17:40:34 +03:00
Alexey Andreev
62fb149f08
Add support for sourceMapPrefix option (JS) in IDEA
2017-06-20 17:40:34 +03:00
Alexey Andreev
1d6f01ee6c
Add support for relative JS source map paths in JPS
2017-06-20 17:40:33 +03:00
Alexey Andreev
13ab63ae09
Generate relative paths in JS source maps
...
Also, add CLI options to manipulate prefixes of path
See KT-4078
2017-06-20 17:40:32 +03:00
Nikolay Krasko
44d3b8fb1a
Ignore sub-queries for other operators with the same receiver (KT-18566)
...
ExpressionsOfTypeProcessor searches for all occurence of expression
with given type. It start from usages of the class, searches for sub-classes,
declarations that return those classes, usages of these declarations,
and so on.
During this search, find usages for all operators that return the
subject type is executed as sub-queries. Full search for such queries
can't give addition types. And it also shouldn't give additional scopes
for search, because same scopes should be located by operands. In other
words, if sub-query can spot the scope of usage starting from the same
type, the original query should also process same scope.
#KT-18566 Fixed
2017-06-20 16:53:05 +03:00
Yan Zhulanow
0f3dff44ac
Minor: Remove invalid Maven module reference
2017-06-20 15:23:15 +03:00
Alexander Udalov
31b2fffbe1
Avoid NPE at UtilKt.toJavaClass for unrecognized classes
...
Sadly, the case where this NPE would reproduce, remains unknown
#KT-18494 Fixed
2017-06-20 14:39:48 +03:00
Alexander Udalov
8ef3531c48
Add kotlin.Any to KClass.superclasses if it's absent
...
#KT-18476 Fixed
2017-06-20 14:39:48 +03:00
Alexander Udalov
9471f33c38
Refactor getDefaultSupertype, drop obsolete diagnostic
2017-06-20 14:39:47 +03:00
Alexander Udalov
90f2ea87a6
Fix exception on callBy of callable with more than 32 parameters
...
The previous condition that checked if we'd skipped any optional
parameters didn't work when number of parameters > 32 because the number
of bit masks in that case was more than one
#KT-18404 Fixed
2017-06-20 14:39:47 +03:00
Mikhael Bogdanov
62cd57b0d2
Make base test classes 'abstract'
2017-06-20 13:07:30 +02:00
Dmitry Petrov
786ac46fa6
Do not store nulls for captured variables going out of scope
...
These values can't be read after going out of scope.
JVM implementation can take care of such object references on its own.
Ref objects for captured variables are not different from any other
objects stored in local variables, so there's really no reason to
nullify these references explicitly.
#KT-18478 Fixed Target versions 1.1.4
2017-06-20 13:31:36 +03:00
Dmitry Petrov
9356c1e0ef
Skip PopBackwardPropagation for methods with large frames or no POPs
...
TODO get rid of SourceInterpreter here, it's quite expensive.
2017-06-20 13:31:36 +03:00
Dmitry Petrov
0a622e4440
Rewrite OtherOrigin overloads to prevent further silly problems
...
#KT-18413 Fixed Target versions 1.1.4
2017-06-20 13:31:36 +03:00
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