Mikhail Glukhikh
8188bb1e54
Destructure intention: entries / entrySet are now removed only for kotlin.Map inheritors #KT-14244 Fixed
2016-10-11 16:13:01 +03:00
Mikhail Glukhikh
304f6a3b3a
KT-13943 related: inspection is now always reported if manual destructuring is available
2016-10-11 16:12:56 +03:00
Mikhail Glukhikh
475d5548c4
Destructure intention now handles the case with manual destructuring inside #KT-13943 Fixed
2016-10-11 16:12:51 +03:00
Nikolay Krasko
c7ba19696a
Refactoring: stop calling deprecated method
...
(cherry picked from commit 083656c)
2016-10-11 15:35:44 +03:00
Nikolay Krasko
11f8c904c4
Refactoring: inline method + inline variable
...
(cherry picked from commit 7e0f100 )
2016-10-11 15:35:43 +03:00
Nikolay Krasko
bd2ddbafb3
Refactoring: call apply method without returning intermediate object
...
(cherry picked from commit a2f7e00)
2016-10-11 15:35:41 +03:00
Nikolay Krasko
78525ed7c6
Refactoring: make createCommand non-nullable
...
(cherry picked from commit 67cc9b5)
2016-10-11 15:35:40 +03:00
Nikolay Krasko
f7813263ee
Refactoring: rename getStepOverPosition -> getStepOverAction
...
(cherry picked from commit 2b71909)
2016-10-11 15:35:38 +03:00
Denis Zharkov
194853b5c2
Fix backend issue related to JvmStatic val with accessor
...
Do not treat accessors to JvmStatic properties as having dispatch receiver
#KT-11585 Fixed
2016-10-11 12:22:03 +03:00
Denis Zharkov
543cf7b265
Minor. Move isJvmStatic* functions to backend
2016-10-11 12:22:03 +03:00
Alexey Andreev
30c2c85c94
KT-13830: support case when LHS of augmented assignment is something different than qualified expression or array access
2016-10-11 11:54:04 +03:00
Yoshinori Isogai
afe8244183
KT-14241 Add Intention + Inspection to remove empty class body ( #968 )
2016-10-10 19:24:39 +02:00
Ilya Gorbunov
4236a4dd07
Farewell, excluded imports from the platform. If anyone ever needs them again, they are buried in this commit.
2016-10-10 20:14:32 +03:00
Ilya Gorbunov
f2c5fee1cf
Consider only direct children of non-kotlin default imported packages when looking for aliased types.
2016-10-10 20:14:32 +03:00
Ilya Gorbunov
3baf2f8942
Use fully-qualified references to exceptions in kotlin-runtime
2016-10-10 20:14:32 +03:00
Ilya Gorbunov
7e2e2b9f19
Use effectively excluded imports from file's module descriptor.
2016-10-10 20:14:32 +03:00
Ilya Gorbunov
ff01b3d41b
Search java.lang aliases also in kotlin.text package (for aliases to Appendable and StringBuilder)
2016-10-10 20:14:32 +03:00
Ilya Gorbunov
5042158df5
Determine automatically which types from java.lang is aliased in default imported kotlin packages and exclude them from imported java.lang.* scope.
2016-10-10 20:14:32 +03:00
Zalim Bashorov
45d42bdff8
JS: add inspection for the case when something with dynamic type implicitly casted to kotlin another type
2016-10-10 17:30:51 +03:00
Ilya Chernikov
d05cb9f894
Fix idea module file
2016-10-10 15:28:20 +02:00
Ilya Chernikov
1e59f96f6b
Add missing idea module file
2016-10-10 13:57:41 +02:00
Valentin Kipyatkov
b84260f39f
Fixed multiple bugs in optimize imports for JS-target
...
#KT-13689 Fixed
2016-10-10 14:48:16 +03:00
Valentin Kipyatkov
45cd4f1e29
Refactoring
2016-10-10 14:48:16 +03:00
Valentin Kipyatkov
326db55835
Used KtReference.resolvesByNames instead of own code
2016-10-10 14:48:16 +03:00
Valentin Kipyatkov
5734f2ba9b
KT-9950 IntelliJ IDEA does not suggest importing extension methods which have the same name as an instance method
...
#KT-9950 Fixed
2016-10-10 14:48:15 +03:00
Valentin Kipyatkov
49ac6b99f6
Removed redundant
2016-10-10 14:48:15 +03:00
Valentin Kipyatkov
c06e2d994e
KT-13884 Exception "Invalid root block PSI element" on replacing trivial when-expression to if
...
#KT-13884 Fixed
2016-10-10 14:48:15 +03:00
Valentin Kipyatkov
597cd04831
KT-13719 'var' can be made 'val' highlighting range with annotation before
...
#KT-13719 Fixed
2016-10-10 14:48:14 +03:00
Mikhail Glukhikh
8d48b0d2a0
UNUSED_VARIABLE is now reported only for last entry of destructuring declaration (if applicable) #KT-14221 Fixed
2016-10-10 14:42:09 +03:00
Mikhail Glukhikh
126304c197
Destructure intention applied (compiler)
2016-10-10 14:42:04 +03:00
Michael Bogdanov
d911de20f9
Print bytecode on signature test fail
2016-10-10 14:17:51 +03:00
Michael Bogdanov
f8e9922c9e
Don't generate generic signature for get/set methods in property reference class
2016-10-10 14:17:50 +03:00
Michael Bogdanov
5bd045c79c
Fix for KT-14243: Wrong invocation descriptor on calling implicitly generated implementation in class
...
#KT-14243 Fixed
2016-10-10 14:17:50 +03:00
Dmitry Jemerov
ce0d81f670
to avoid running resolve under ClsTypeElement lock, return empty modifier list if we're currently calculating the return type (the modifier list is requested to apply type annotations, and we don't care about them anyway)
...
#KT-12966 Fixed
2016-10-10 12:48:51 +02:00
Dmitry Jemerov
e55c82d3f3
don't try to resolve declaration to descriptor if we don't have any annotations
2016-10-10 12:46:35 +02:00
Ilya Chernikov
b7a52dc685
Add more standard templates
2016-10-10 11:24:54 +02:00
Ilya Chernikov
5e5ebaa68b
Create a script runtime jar with a copy of standard script template (renamed)
2016-10-10 11:24:53 +02:00
Alexey Andreev
61b429f2f0
JS: fix exception during translation of for expression with iterator having generic type constrained by Iterable. Fix #KT-8385
2016-10-10 11:22:21 +03:00
Alexey Andreev
977fd8f591
KT-12707: support case when secondary super constructor has optional parameters
2016-10-10 11:21:45 +03:00
Alexey Andreev
c1b8e50734
KT-12707: (JS) proper translation of a constructor in subclass that calls secondary constructor of parent class. Fix #KT-12707
2016-10-10 11:21:45 +03:00
Denis Zharkov
b1dc31a64e
Minor. Invert if
2016-10-10 10:44:11 +03:00
Denis Zharkov
0905bf3e38
Refine redundant null checks interpreter
...
The main change here is addition of a check that NotNullBasicValue instances
are not being created for non-reference types
Exactly this change should be used instead of f25f0db10e
The latter commit lead to problem described in the KT-14242 issue:
v.getType().getSort() == w.getType().getSort() && (v.getType().getSort() != Type.OBJECT || v.equals(w))
Problem is that the condition above returns true without calling `v.equals(w)`,
because the sort of type is ARRAY, not OBJECT, so testArray was being treated
as NotNullable erroneously
So the second part of this change is effectively revering mentioned commit
#KT-14242 Fixed
2016-10-10 10:44:11 +03:00
Denis Zharkov
2eece06d5c
Minor. Add hashCode override after existing equals
2016-10-10 10:44:11 +03:00
Alexey Andreev
322f6fe7ac
KT-2752: fix translation of call to internal function from subclass
2016-10-08 19:25:53 +03:00
Alexey Andreev
c814a9d1d2
KT-2752: fix support of typealiases
2016-10-08 19:25:52 +03:00
Alexey Andreev
831ac97ecd
KT-2752: fix some tests and make them slightly less fragile
2016-10-08 19:25:51 +03:00
Alexey Andreev
9c7c82b151
KT-2752: refactor NameSuggestion, change rules for determining name stability and applying mangling
2016-10-08 19:25:50 +03:00
Alexey Andreev
6f7e7d8504
KT-2752: fixes after code review
2016-10-08 19:25:49 +03:00
Alexey Andreev
00867cb269
KT-2752: remove unnecessary hack that tries to treat annotation on property accessor as annotation on property itself; looks like FE has fixed that
2016-10-08 19:25:48 +03:00
Alexey Andreev
e7e6a917eb
KT-2752: when simple name of class is a JS keyword or a well-known global name, add '$' to name of constructor function
2016-10-08 19:25:47 +03:00