Commit Graph

15083 Commits

Author SHA1 Message Date
Mikhail Zarechenskiy 0ae45a2835 Add test for obsolete issue
#KT-6502 Obsolete
2017-07-07 14:20:01 +03:00
Mikhail Zarechenskiy c853ac95ad Improve diagnostic message for annotations with @receiver
#KT-14647 Fixed
2017-07-07 14:19:59 +03:00
Dmitry Jemerov 1de685949b Merge branch 'KT-18797' of https://github.com/nd/kotlin 2017-07-07 13:02:02 +02:00
Vyacheslav Gerasimov 4cef8728d7 Add layout file name in completion for Android Extension properties
#KT-11051 Fixed
2017-07-07 03:24:19 +03:00
Vyacheslav Gerasimov f59859842a Fix Android extensions import rename
#KT-17890 Fixed
2017-07-07 03:24:10 +03:00
Vyacheslav Gerasimov ee53e81e8e Fix Android resource reference folding
Properly fold qualified expressions and handle nested references

 #KT-18429 Fixed
2017-07-07 03:24:03 +03:00
Vyacheslav Gerasimov 7c6ffff198 Refactor Kotlin Gradle configurator 2017-07-07 03:23:34 +03:00
Vyacheslav Gerasimov 9810c10f8b Implement Add Kotlin library quickfix for GSK 2017-07-07 03:23:26 +03:00
Vyacheslav Gerasimov 2ec1a4311a Implement Kotlin configurator for GSK
#KT-14965 Fixed
2017-07-07 03:23:17 +03:00
Vyacheslav Gerasimov 2116877991 J2K: rename KotlinAndroidGradleModuleConfigurator .java -> kt 2017-07-07 03:22:28 +03:00
Simon Ogorodnik 9f340b40c2 Minor: Add test to check inferred types shown correctly in parameter info
#KT-11858 Obsolete
2017-07-06 20:40:53 +03:00
Alexander Udalov 55468735df Rename -module argument to -Xbuild-file
To prevent confusion with Java 9 module-related arguments

 #KT-18754 Fixed
2017-07-06 17:03:25 +03:00
Alexey Sedunov 6200d07808 Minor: Fix compilation 2017-07-06 14:42:24 +03:00
Alexander Udalov 7ab018da7b Use ASM 6 API to read class files in IDE
Otherwise ASM throws exceptions trying to read module-info.class

 #KT-13072 Fixed
2017-07-06 13:01:13 +03:00
Alexander Udalov e8a8bdc58e Add test on cyclicly dependent Java 9 modules 2017-07-06 13:01:12 +03:00
Nikolay Krasko 72611d1337 Fix extract refactoring for android extensions declarations (KT-11048)
Allow any target declarations in marking references. Otherwise conflicts
for references resolved to xml are not considered broken.

This also fix evaluate for extension fields.

 #KT-11048 Fixed
2017-07-05 20:21:13 +03:00
Mikhail Glukhikh a09b31b568 Classify all Kotlin inspections 2017-07-05 16:00:22 +03:00
Alexey Sedunov 994b6d687c Find Usages: Use MethodReferencesSearch to find constructor usages 2017-07-04 19:37:55 +03:00
Alexey Sedunov d69caea725 Kotlin Facet: Ignore modules unprocessed by kotlin project resolver
This happens in AS on project opening, but we can't (re-)configure facet
in such case since relevant module data are not available

 #KT-18725 Fixed
2017-07-04 19:37:53 +03:00
Alexey Sedunov ee200c87ea Kotlin Facet: Change module JDK according to jdkHome
It's possible when JDK with the same home path is already configured
2017-07-04 19:37:52 +03:00
Alexey Sedunov 2a53043fef Generate equals/hashCode(): Fix function body generation
#KT-18596 Fixed
2017-07-04 19:37:50 +03:00
Simon Ogorodnik 33c22b8251 KT-8208: Support static members completion when receiver not-imported
#KT-8208 fixed
2017-07-04 16:41:50 +03:00
Dmitry Neverov 08afaca518 Don't propose making property private if it's used in inline function 2017-07-03 21:58:22 +02:00
Denis Zharkov e26c210d69 Support TypeQualifierDefault from JSR 305 for nullability qualifiers
#KT-10942 Fixed
2017-07-03 17:55:37 +03:00
Denis Zharkov 5141a88a53 Add TypeQualifier annotation to IDE test data
Othewise nullability is not processed correctly
2017-07-03 17:55:37 +03:00
Denis Zharkov 57b7b91444 Do not add container annotaions to type artificially
It was only used for type-related nullability/mutability
annotations and it was necessary to remove them
in the descriptor renderer (duplicating their fqnames there).
At the same time they're only needed for types enhancement
where they can be simply restored from type owners' descriptors

The testData changes are more or less correct: this kind of annotations
is bound both to types themselves and their use because of their targets
2017-07-03 17:55:37 +03:00
Mikhail Glukhikh 2d1e1cb6ed Minor: !!-related quick-fixes refactoring 2017-07-03 15:18:10 +03:00
Dmitry Neverov 4f678fa85c Do not suggest !! on expression which is always null
Related to KT-14643
2017-07-03 15:14:11 +03:00
Dmitry Neverov 66bd9d63dd Do not suggest adding !! on null constant #KT-14643 Fixed 2017-07-03 15:13:46 +03:00
Dmitry Jemerov 84418738a7 Optimize library kind detection and make it interruptible 2017-07-03 12:02:50 +02:00
Simon Ogorodnik ab919886ae Fix rendering of local anonymous object types for quick doc
#KT-8893 fixed
2017-07-01 15:04:29 +03:00
Nikolay Krasko 25109671b1 Postpone counting light elements till all psi checks done 2017-07-01 03:05:38 +03:00
Nikolay Krasko fe17d616b9 Don't process Java references twice when looking for kotlin overrides (KT-17751) 2017-07-01 03:05:37 +03:00
Nikolay Krasko 0cd8ee57b8 Don't run another method reference search for constructors (KT-17751)
Constructors can't be used as properties and have no overrides.
2017-07-01 03:05:37 +03:00
Alexander Udalov 37982e4bb1 Move SAM-related descriptor classes to module frontend.java
Also move SyntheticMemberDescriptor to module resolution
2017-06-30 21:02:18 +03:00
Alexey Sedunov 9ba868a903 Minor: Fix test data 2017-06-30 13:53:09 +03:00
Valentin Kipyatkov 6df0c28119 Correction after code review 2017-06-30 11:21:16 +03:00
Valentin Kipyatkov 8fabb6945e Allow slice rewrite in trace when in IDE 2017-06-30 11:21:16 +03:00
Valentin Kipyatkov 09dbb07fb8 Optimization to reuse BindingContext in completion 2017-06-30 11:21:15 +03:00
Dmitry Jemerov 4497874f31 Remove unnecessary saveAll() 2017-06-29 17:56:59 +02:00
Alexey Sedunov 88968807b2 Generate equals/hashCode(): Swap class literals in comparison 2017-06-29 17:42:20 +03:00
Alexey Sedunov e3e4c447fa Generate equals/hashCode(): Use class literals when possible
#KT-18683 Fixed
2017-06-29 17:42:18 +03:00
Alexey Sedunov 50a38df8b1 Remove Parentheses: Forbid on call inside a call without argument list
#KT-18699 Fixed
2017-06-29 17:42:17 +03:00
Alexey Sedunov 20969f161c Introduce Parameter: Fix NPE on invalid parameter name or type
EA-95189 Fixed
2017-06-29 17:42:16 +03:00
Alexey Sedunov 2e8b374ce8 Move: Use KtNamedDeclaration as referrer when reporting a conflict
EA-103817 Fixed
2017-06-29 17:42:15 +03:00
Alexey Sedunov 58addf72ff New File Action: Do not start under write action
EA-102468 Fixed
2017-06-29 17:42:14 +03:00
Alexey Sedunov b1637df8df Misc: Format generated members under write action
EA-87901 Fixed
2017-06-29 17:42:13 +03:00
Alexey Sedunov 392370bb23 Extract Interface: Fix NPE
EA-90440 Fixed
2017-06-29 17:42:11 +03:00
Alexey Sedunov dd0f8e98e8 Create Type Alias From Usage: Disable on PsiPackage
EA-92625 Fixed
2017-06-29 17:42:10 +03:00
Alexey Sedunov 6060a39494 Change Signature: Use correct index in getOriginalParameter()
#KT-18642 Fixed
 #KT-18606 Fixed
2017-06-29 17:42:09 +03:00