Mikhail Glukhikh
29390dab42
Create actual: use analyzeWithContent to resolve annotations correctly
...
So #KT-26626 Fixed
2018-09-07 14:56:16 +03:00
Mikhail Glukhikh
26469b3365
Get rid of IndexNotReadyException in CreateActualFix
...
Related to KT-19586
2018-09-07 14:56:14 +03:00
Mikhail Glukhikh
74c5d8ed09
Create actual: do not generate default parameter values in constructor
...
So #KT-26517 Fixed
2018-09-07 14:56:13 +03:00
Mikhail Glukhikh
ef4053d5c3
Invalidate module source roots in create actual to fix exceptions
...
Related to KT-19586
2018-09-07 14:56:12 +03:00
Mikhail Glukhikh
fe9f655c26
Configure module source roots in create actual fix, if it's necessary
...
#KT-19586 Fixed
2018-09-07 14:56:11 +03:00
Alexander Podkhalyuzin
873463d24b
Fixed deprecated IDEA API
...
#KT-24931 Fixed
2018-09-07 14:33:22 +03:00
Nikolay Krasko
1f1953cc38
Minor: use common trimIndent() in type hints tests
2018-09-07 12:29:06 +03:00
Nikolay Krasko
307586e435
Don't show types for enum entries with enum name is present in initializer (KT-26057)
...
#KT-26057 Fixed
2018-09-07 12:29:06 +03:00
Alexander Udalov
06ce0cb0f0
Fix deserialization of default property accessor flags
...
In MemberDeserializer.loadProperty, we incorrectly passed 0 to
getAnnotations when loading annotations on property accessors in case
the protobuf field getter_flags/setter_flags was not present. The
correct behavior, as described in metadata.proto, was to pass a special
"default accessor flags" value, constructed from the main property
flags. Otherwise in case there were annotations both on the property and
on the accessor (as in PropertyAndAccessor.kt) and the accessor was
otherwise default, we would assume that it had no annotations and would
not load them in compiler and reflection
#KT-25499 In Progress
2018-09-07 11:49:41 +03:00
Ilya Chernikov
836ea28fe7
Renaming remaining former "environment"-related identifiers
2018-09-06 19:17:44 +02:00
Ilya Chernikov
6716c512d3
[minor] Rename too long named functions
2018-09-06 19:17:43 +02:00
Ilya Chernikov
8674cd7a6b
Fix scripting tests
2018-09-06 19:17:43 +02:00
Alexander Udalov
98232265d7
Simplify deserialization of annotations on backing/delegate fields
...
Instead of returning the list of targeted annotations in
loadCallableAnnotations, add two separate methods to load annotations on
the backing field and on the delegate field of the property
2018-09-06 19:13:15 +03:00
Alexander Udalov
87c0d56618
Drop Annotations.getAllAnnotations
2018-09-06 19:13:14 +03:00
Alexander Udalov
83fbabd628
Drop Annotations.Companion.find/getUseSiteTargetedAnnotation(s)
2018-09-06 19:13:13 +03:00
Alexander Udalov
7271995ff0
Drop Annotations.findAnyAnnotation, DescriptorUtils.getAnnotationByFqName
2018-09-06 19:13:13 +03:00
Nikolay Krasko
91308508bd
Inject with suffix and prefix arguments in annotations (KT-26584)
...
#KT-26584 Fixed
2018-09-06 17:39:54 +03:00
Yan Zhulanow
280a3e3d26
Android Extensions: Support platform modules (KT-26169)
2018-09-06 14:42:23 +03:00
Yan Zhulanow
ca4b99b1a0
Maven: Do not consider 'kapt' and 'test-kapt' executions as non-JVM (KT-26211)
2018-09-06 14:42:22 +03:00
Yan Zhulanow
2ec1a89fa1
Use IdePlatform instead of IdePlatformKind in 'Kotlin Facet' project structure tab
2018-09-06 14:42:21 +03:00
Yan Zhulanow
f55a52b86e
MPP: Fix compatibility issue with Android Studio 3.3 Canary 7
...
'TargetPlatformKind' is still used in AS 3.3 so we can't remove it entirely yet.
2018-09-06 14:42:19 +03:00
Alexey Sedunov
b441c76313
Generate equals/hashCode(): Support content equality from stdlib
...
#KT-22361 Fixed
2018-09-06 14:28:53 +03:00
Alexey Sedunov
5fcc6cfa0b
Change Signature: Retain necessary backquotes in the dialog
...
#KT-17124 Fixed
2018-09-06 14:28:52 +03:00
Alexey Sedunov
26c02cd8bb
Move Left/Right: Support type constraints
...
#KT-26525 Fixed
2018-09-06 14:28:52 +03:00
Alexey Sedunov
a20857beb9
Misc: Do not look for *_main/*_test modules in import test (AS3.2)
2018-09-06 14:28:52 +03:00
Mikhail Glukhikh
55ff519aa8
Fix KtModifierListOwner.addAnnotation (case without modifier list)
...
Now add annotation to primary constructor should work correctly,
and may be some other related cases too.
Related to KT-25548
2018-09-06 11:10:05 +03:00
Mikhail Glukhikh
5f2c7d3c84
Do not report OPTIONAL_DECLARATION_USAGE_... in IDE for platform modules
...
#KT-26585 Fixed
Also fixes MultiPlatformHighlightingTestGenerated.testMultifileFacade
2018-09-06 11:07:21 +03:00
Nikolay Krasko
ca1e0a4b88
Do not fetch Kotlin stubs for versioned files from multi-release jars (KT-26439)
...
An incomplete list of inner class files might be stored in versioned
directory and that ruins Kotlin stub building.
Another reason for excluding such files, that they are duplicated
in different declarations lists such as `Navigate -> Class...` action.
#KT-26439 Fixed
2018-09-06 10:48:18 +03:00
Mikhail Glukhikh
ad27d9aae7
Package utils: implement getNonGeneratedKotlinSourceRoots
...
This is needed to prevent creation of actual elements
in generated sources. Checked manually.
#KT-24129 Fixed
2018-09-05 17:21:23 +03:00
Mikhail Glukhikh
caee77cdae
Kotlinize findOrCreateDirectoryForPackage in create actual fix
...
Before this commit, without existing directory
we tried to create it only inside Java source roots,
which is incorrect for JS and other non-JVM modules.
Source roots themselves still aren't created if they don't exist.
This fixes KT-19586 partially
2018-09-05 17:21:10 +03:00
Yan Zhulanow
17849473d6
Fix bunch compilation for AS 3.1/3.2
2018-09-05 17:15:04 +03:00
Mikhail Glukhikh
1530a8bf53
Downgrade "Call chain -> sequence" to information level
...
Made to hide problem KT-26571
2018-09-05 14:55:23 +03:00
Mikhail Glukhikh
56d89266d4
Add tests for KT-26141 (yet without changes)
2018-09-05 13:10:03 +03:00
Mikhail Glukhikh
68e3821ae2
Code cleanup: packageUtils.kt
2018-09-05 13:05:08 +03:00
Mikhail Glukhikh
53e7778078
Add modifiers on the same line even after annotation #KT-26492 Fixed
2018-09-05 13:05:08 +03:00
Mikhail Glukhikh
4dd95e5640
Introduce OptionalExpectationInspection
...
It works at INFORMATION level only and is intended to form quick-fixes
to add relevant actual declarations.
#KT-25533 Fixed
2018-09-05 13:05:07 +03:00
Mikhail Glukhikh
ba84c6adf3
Request focus while navigating to expected declaration #KT-18490 Fixed
2018-09-05 13:05:07 +03:00
Mikhail Glukhikh
df125702c1
Test for KT-25040 (just to stabilize behaviour)
2018-09-05 13:05:07 +03:00
Mikhail Glukhikh
69def648c9
Remove deprecated MP extensions from Gradle menu #KT-22491 Fixed
...
Related to KT-26414
2018-09-05 13:05:06 +03:00
Mikhail Glukhikh
62e1121e7f
Remove deprecated MP project builder from Gradle menu #KT-26414 Fixed
2018-09-05 13:05:06 +03:00
Nicolay Mitropolsky
d0575127be
fix for StoredExceptionsThrowToggleAction nullability changed in 183
2018-09-05 09:42:59 +03:00
Alexey Sedunov
9d5bd29e8b
Misc: Render MemberInfo as 'abstract' only if it's present in source
...
#KT-26533 Fixed
2018-09-04 19:49:14 +03:00
Toshiaki Kameyama
be30761ec4
"Convert to 'also'" intention: Fix for call expression has this receiver #KT-26009 Fixed
2018-09-04 19:29:44 +03:00
Toshiaki Kameyama
e1dd85429f
Extract function: make default visibility private #KT-25454 Fixed
2018-09-04 19:28:25 +03:00
Toshiaki Kameyama
dc57887a4d
Create function quick fix: fix visibility from inline method #KT-25228 Fixed
2018-09-04 19:01:22 +03:00
Toshiaki Kameyama
e2945b1d12
Add quickfix for "Interface doesn't have constructors" #KT-17687 Fixed
2018-09-04 18:58:56 +03:00
Toshiaki Kameyama
b5ba475696
"Redundant lambda arrow" inspection: Also report arrow with single underscore parameter #KT-24728 Fixed
2018-09-04 18:29:46 +03:00
Toshiaki Kameyama
20535feb31
"Remove parameter" quick fix: Remove unused type parameter used as type projection #KT-23511
2018-09-04 18:29:13 +03:00
Alexander Podkhalyuzin
c36d0e5db5
Changed action group text
...
#KT-26501 Fixed
2018-09-04 16:47:54 +03:00
Yan Zhulanow
7398a8149d
Do not use ApplicationExtensionDescriptor in JPS (KT-26542)
...
The 'ExtensionPointName' class that ApplicationExtensionDescriptor uses is missing in the JPS classpath.
Now we don't use it unless the IDEA Application is properly initialized.
2018-09-04 14:54:45 +03:00