Dmitry Jemerov
ace4407032
Add 1.1 EAP repository when creating a new Gradle project with 1.1 EAP
...
#KT-15293 Fixed
2016-12-16 14:49:18 +01:00
Mikhael Bogdanov
761aa9df09
Report error when delegation method hides superttype override
...
#KT-12531 Fixed
2016-12-16 13:17:28 +01:00
Stanislav Erokhin
d7566d84d0
Fixed testdata.
2016-12-16 02:01:12 +03:00
Dmitry Petrov
9fd1ac72a9
Purge remaining traces of @AllowSuspendExtensions.
2016-12-15 23:58:19 +03:00
Dmitry Petrov
80bd916f5d
'SuspendFunction$n' should not be visible in member scopes (should be unresolved).
...
'SuspendFunction$n' class descriptors are created on demand by KotlinBuiltIns (and cached).
On serialization, types constructed with 'SuspendFunction$n' are written as 'Function$n' with extra flag (SUSPEND_TYPE).
On deserialization, corresponding 'SuspendFunction$n' classes are used.
2016-12-15 23:58:05 +03:00
Denis Zharkov
85db356611
Minor. Drop test on coroutine applicability
2016-12-15 23:58:03 +03:00
Denis Zharkov
4737b3dd7f
Update stubBuilder/deserialization tests on coroutines
2016-12-15 23:58:02 +03:00
Dmitry Petrov
9dc458375a
Build proper modifier list stubs for 'SuspendFunction$n<...>' types.
2016-12-15 23:57:43 +03:00
Dmitry Petrov
cf4fb1eb25
Since '@A R.() -> T' is now parsed as '@A (R.() -> T)',
...
receiver type with modifiers or annotations should be surrounded in parentheses on rendering: '(@A R).() -> T'
This also fixes stub builder tests (which check that stubs are consistent with rendered descriptors).
2016-12-15 23:57:42 +03:00
Dmitry Petrov
a15d423db4
Support modifiers on types in parser
...
(required for 'suspend' on functional types).
TYPE_REFERENCE element now has MODIFIER_LIST child, which hosts annotations and modifiers for the corresponding type reference.
Annotations and modifiers written before an extension function type are now parsed as annotations and modifiers for the functional type, not the receiver type.
So, '@Ann A.(B) -> C' was '(@Ann A).(B) -> C', and became '@Ann (A.(B) -> C)'.
NB: DSL_SCOPE_VIOLATION testData updated accordingly.
Type projection variance modifiers ('in', 'out') belong to a separate modifier list under corresponding type projection (not under a type reference).
'A<in suspend T>' is 'A<(in (suspend T))>', 'A<suspend in T>' is an error.
In stub builder, create a modifier list node to host annotations and modifiers (none so far; TODO properly serialize/deserialize types with modifiers).
2016-12-15 23:57:41 +03:00
Mikhail Glukhikh
3540bc008b
Build fix: testPlatform3 from MultiModuleHighlightingTest
2016-12-15 11:07:33 +03:00
Stanislav Erokhin
3600b51d90
Minor. fix test data.
2016-12-14 23:59:38 +03:00
Nikolay Krasko
2bb48fc802
Allow empty single-line bodies in property accessors
2016-12-14 13:40:44 +03:00
Nikolay Krasko
2841931ffa
Do not force new line in body for empty functions and function expressions (KT-10828)
...
#KT-10828 Fixed
2016-12-14 13:35:31 +03:00
Mikhail Glukhikh
052a5033b5
PLATFORM_DECLARATION_WITHOUT_DEFINITION rendering changed (platform is included into diagnostic text now)
2016-12-13 19:06:08 +03:00
Mikhail Glukhikh
7649232f86
Platform header annotator: implementation + simple multi-platform highlighting tests #KT-14905 Fixed
2016-12-13 19:02:23 +03:00
Dmitry Jemerov
502e99e918
Don't expect library classes to be shown in hierarchy view when using production scope
2016-12-13 12:43:55 +01:00
Dmitry Jemerov
b8dc1b6771
Allow regex matching of available action names; accept both 2016.2 and 2016.3 names of static import quickfix
2016-12-13 12:40:03 +01:00
Dmitry Petrov
e2b6d2d849
Drop 'propertyDelegated' convention (without additional deprecation ceremony).
2016-12-12 23:13:58 +03:00
Simon Ogorodnik
fb5398cdcd
Fix for KT-14885 J2K on paste adds duplicated imports
2016-12-12 18:16:17 +03:00
Mikhail Zarechenskiy
40ff7c6e33
Fix test data
2016-12-09 21:08:29 +03:00
Yan Zhulanow
3b65cb1ef2
Check if modality is refined in "Redundant modifier" inspection
2016-12-09 20:01:18 +03:00
Mikhail Zarechenskiy
373c1be7e4
Add quick fixes for mod/rem migration
...
- Remove 'operator' modifier
- Rename operator 'mod/modAssign' to 'rem/remAssign'
2016-12-09 17:01:42 +03:00
Mikhail Zarechenskiy
f37b7224da
Fix test: do not propose to change 'mod' to '%'
2016-12-09 17:01:32 +03:00
shiraji
44ca45123d
KT-15142 Remove redundant calls of the conversion method wrongly shown for Any?.toString
...
#KT-15142 Fixed
2016-12-09 14:33:55 +03:00
Mikhael Bogdanov
5ffc0b36b0
Quickfix for published api
2016-12-09 11:55:16 +01:00
Alexey Sedunov
215d8b1e1a
Intentions: Convert function type receiver to parameter
...
#KT-14246 Fixed
2016-12-08 17:56:57 +03:00
Alexey Sedunov
d4ed2d2022
Intentions: Convert function type parameter to receiver
...
#KT-14246 In Progress
2016-12-08 17:56:55 +03:00
Alexey Sedunov
9cadfd01ae
Introduce Variable: Allow extraction to class body/file
2016-12-08 17:56:54 +03:00
Alexey Andreev
68412ae94f
JS: replace all usages of @native annotation with external modifier, in tests, stdlib, etc
2016-12-08 15:41:39 +03:00
Nikolay Krasko
43948a0170
Wrap options for constructor parameters
...
#KT-12176 In Progress
2016-12-08 15:15:12 +03:00
Nikolay Krasko
300601da54
Indent () in if, when, while and do-while with continuation indent (KT-5897)
...
#KT-5897 Fixed
2016-12-08 15:15:11 +03:00
shiraji
2815b5e62b
KT-15030 Remove redundant calls of conversion methods: false positive for 'toList()'
...
#KT-15030 Fixed
2016-12-07 19:00:12 +03:00
Mikhail Glukhikh
268702e0cc
"Change return type for enclosing fix" now handles TYPE_INFERENCE_EXPECTED_TYPE_MISMATCH correctly #KT-14063 Fixed
2016-12-07 18:52:04 +03:00
Mikhail Glukhikh
2ac8e5b4a7
"Change return type fix" now handles data class properties correctly #KT-15028 Fixed
2016-12-07 18:51:58 +03:00
Mikhail Glukhikh
0994d46038
Convert reference to lambda: handle special case of extension functional type #KT-14985 Fixed
2016-12-07 18:51:53 +03:00
Mikhail Glukhikh
e904e56de3
Convert reference to lambda: correct handling of static method references #KT-14982 Fixed
2016-12-07 18:51:48 +03:00
Mikhail Glukhikh
ea8548c55b
Simplify boolean == true / false is no longer applicable on flexible boolean #KT-15087 Fixed
2016-12-07 18:51:42 +03:00
Nikolay Krasko
726471d98e
Avoid loading psi for compiled kotlin file if it's possible to get declaration by name from stubs
2016-12-05 17:22:42 +03:00
Mikhail Glukhikh
299f477a1b
Call method references search in UnusedSymbolInspection.hasReferences to fix secondary constructor search
...
Makes #KT-12500 Fixed
Makes #KT-12501 Fixed
2016-12-05 10:58:21 +03:00
Alexey Sedunov
475ae0d638
Rename: Suggest respective parameter name for the local variable passed to function
...
#KT-14792 Fixed
2016-12-02 14:14:10 +03:00
Alexey Sedunov
b6d4bb4921
Create from Usage: Support adding type parameters to the referenced type
...
#KT-11760 Fixed
2016-12-02 14:14:09 +03:00
Alexey Sedunov
c773afdbfa
Intentions: Implement "Add names to call arguments" intention
...
#KT-14729 Fixed
2016-12-02 14:14:08 +03:00
Alexey Sedunov
2a594a5bcc
Create from Usage: Support generation of abstract members for superclasses. Skip non-abstract superclasses when generating abstract member
...
#KT-14019 Fixed
2016-12-02 14:14:05 +03:00
Alexey Sedunov
25cebbab4b
Extraction Engine: Do not wrap companion member references inside of the with call if it's disabled in extraction options
...
#KT-13781 Fixed
2016-12-02 14:14:04 +03:00
Alexey Sedunov
61210d6ba2
Move: Fix callable reference processing when moving to another package
...
#KT-14197 Fixed
2016-12-02 14:14:03 +03:00
Mikhail Glukhikh
4af9b274a1
KT-12100 convert try / finally to use: select use parameter after application
2016-12-01 20:39:19 +03:00
Mikhail Glukhikh
9ea326870d
KT-12100 convert try / finally to use: report intention only at try {
2016-12-01 20:39:14 +03:00
Mikhail Glukhikh
0cc52e2ff8
KT-12100 convert try / finally to use: safe close() is allowed in finally + correct new lines
2016-12-01 20:39:08 +03:00
Mikhail Glukhikh
0ac443066e
KT-12100 convert try / finally to use: 'this' receiver is now left as is
2016-12-01 20:39:03 +03:00