Commit Graph

34984 Commits

Author SHA1 Message Date
Dmitry Jemerov 127db98bbc Fix Kotlin definitions search for classes which can only be used in a local search scope (KT-13753) 2016-10-28 16:47:35 +02:00
Dmitry Jemerov e93f6e97cb KotlinDefinitionsSearcher: cleanup after J2K 2016-10-28 16:47:34 +02:00
Dmitry Jemerov 2fc601832c KotlinDefinitionsSearcher: J2K 2016-10-28 16:47:34 +02:00
Dmitry Jemerov 4281c13c28 KotlinDefinitionsSearcher: rename to .kt 2016-10-28 16:47:33 +02:00
Dmitry Jemerov 237504c3c7 Classes with no parent are top-level (EA-90570 - assert: KtPsiUtil.getOutermostClassOrObject) 2016-10-28 16:47:33 +02:00
Dmitry Jemerov 395bdf47e6 Use correct FQ name for running inner classes (KT-14153) 2016-10-28 16:47:27 +02:00
Dmitry Jemerov f783ba7573 Exclude local variables from file structure grouping (KT-14363) 2016-10-28 16:40:27 +02:00
Dmitry Jemerov 5d6f1cf3fa Fix handling of underscores in Markdown links (KT-14452) 2016-10-28 16:40:27 +02:00
Dmitry Jemerov 25c7dccd3b Don't consider function names as candidates for "Show expression type" (KT-14384) 2016-10-28 16:40:27 +02:00
Dmitry Jemerov 4246fcf256 "Show expression type" no longer shows elements which enclose the element at caret (KT-14436) 2016-10-28 16:40:27 +02:00
Dmitry Jemerov 57680ae003 Don't show literals in "show expression type" popup 2016-10-28 16:40:27 +02:00
Dmitry Jemerov e6c05c3a19 Don't show type for reference expressions inside KtCallableReference (KT-14530) 2016-10-28 16:40:27 +02:00
Mikhail Glukhikh 4f82958309 If then to elvis: do not report inspection if not used as expression
(cherry picked from commit 2adcb27)
2016-10-28 17:21:12 +03:00
Mikhail Glukhikh d1554217d3 Minor: if then to elvis
(cherry picked from commit 7703994)
2016-10-28 17:20:59 +03:00
Dmitry Jemerov be13aa0a3b Separate targets for writing compiler version and plugin version to template files 2016-10-28 15:14:08 +02:00
Vyacheslav Gerasimov 3ce1703ced Extract string resource intention action for android (KT-11715)
#KT-11715 Fixed
2016-10-28 15:30:22 +03:00
Mikhail Glukhikh 53ea5a2dbb Minor refactoring: if then to elvis 2016-10-28 15:00:55 +03:00
Mikhail Glukhikh f3c25c728e If then to elvis: no more allowed for if expressions with Unit result 2016-10-28 15:00:50 +03:00
Mikhail Glukhikh 8edd33ee92 If then to elvis: applied in IDEA, front-end & J2K modules 2016-10-28 15:00:21 +03:00
Mikhail Glukhikh e7cef79709 If then to elvis: now not applicable for is with type unrelated to original #KT-14520 Fixed 2016-10-28 15:00:09 +03:00
Mikhail Glukhikh 87d265dc1b If then to elvis: now not applicable for is with nullable type #KT-14545 Fixed 2016-10-28 15:00:04 +03:00
Mikhail Glukhikh 89e908dab5 If then to elvis: now not applicable for calls with nullable result #KT-14542 Fixed 2016-10-28 14:59:58 +03:00
Mikhail Glukhikh f390b9159a Minor refactoring: if then to elvis 2016-10-28 14:59:53 +03:00
Mikhail Glukhikh 7b316f72dc Lambda to reference: correct handling of named arguments using resolved call #KT-14550 Fixed 2016-10-28 14:59:48 +03:00
Mikhail Glukhikh 7d242c5c77 Minor: surround with null check: partial analysis 2016-10-28 14:59:42 +03:00
Valentin Kipyatkov 046c55a7ac Caching for PARTIAL_FOR_COMPLETION resolve too (because it's used not only in completion) 2016-10-28 09:47:27 +03:00
Valentin Kipyatkov 13ca110430 Refactoring 2016-10-28 09:47:26 +03:00
Valentin Kipyatkov 0fbbf1a340 Performance fix for postfix completion: 1. Don't use PARTIAL_FOR_COMPLETION resolve mode 2. Attempt to use resolve in physical file instead of synthetic one 2016-10-28 09:42:47 +03:00
Valentin Kipyatkov 8c99b0e64c Performance fix for Import Member 2016-10-28 09:42:47 +03:00
Nikolay Krasko d9ef8aa96f Do nothing for disposed projects 2016-10-27 23:36:54 +02:00
Ilya Chernikov 2e03a6f1fd Add script dependencies modification tracker, some optimizations 2016-10-27 23:36:54 +02:00
Simon Ogorodnik 3382ab3d9c Fix for KT-14141: Go to Symbol shows Kotlin extensions from Java's point of view 2016-10-27 20:38:05 +03:00
Simon Ogorodnik 0462a3d3b6 Workaround KT-14531, Partial fix for KT-13600, KT-11620 J2K: Invalid conversion context on plain text pasting
For detailed info see KT-14531
2016-10-27 20:02:27 +03:00
Simon Ogorodnik f8b7ce1011 Fix for KT-13695, KT-13159 J2K: Invalid conversion context setup for plain text pastes
Extending, Implementing, imports from paste target file previously not implemented
2016-10-27 20:02:26 +03:00
Simon Ogorodnik b802ca0af5 Fix for non-resolving of KtReference, which getTargetDescriptors returning multiple descriptors to same element 2016-10-27 20:02:25 +03:00
Simon Ogorodnik 7c8fdc42b4 Fix for KT-12892 J2K: Wrong placing of comments when constructor converted to primary constructor & init 2016-10-27 20:02:24 +03:00
Simon Ogorodnik b51f5c5bd9 Fix for KT-14248 J2K: Invalid constructor formatting after conversion
Caused by `\n\n long mLong = 0;` leading line breaks
2016-10-27 20:02:23 +03:00
Simon Ogorodnik f1c371143c Fix for KT-5312 J2K: Correct bit operations priority after conversion
Now `PolyadicExpression` breaks down to BinaryExpression`s
2016-10-27 20:02:23 +03:00
Simon Ogorodnik 1069257e95 Fix for KT-5410 J2K: someObject + "someString" should be converted to someObject.toString() + "someString"
Otherwise `+` operator will not resolve
2016-10-27 20:02:21 +03:00
Simon Ogorodnik 0cebcc9f3c Fix for KT-12677. J2K: Invalid SAM constructor redundancy detection
Now all J2kPostProcessing's executing in fixed order, dependent on it index in J2kPostProcessingRegistrar._processings
2016-10-27 20:02:20 +03:00
shiraji 0b57d8eb49 Do not use "Remove redundant '.let' call" when receiver is used #KT-14390 Fixed 2016-10-27 19:10:14 +03:00
Anton Bannykh 6a1b0b9cbc withNonLocalReturn.kt was disabled for a wrong reason; reported the actual issue and fixed the comment 2016-10-27 17:27:03 +03:00
Michael Bogdanov fd2655fd4a Bridge support 2016-10-27 16:43:02 +03:00
Michael Bogdanov 7989a0ff25 Use original descriptor on delegating to DefaultImpls 2016-10-27 16:43:01 +03:00
Michael Bogdanov 4cbc5cc958 Remove variables from frame on block leaving 2016-10-27 16:43:00 +03:00
Michael Bogdanov afe0b8a0b6 Switch to general codegen in 'Bytecode tool window' 2016-10-27 16:41:15 +03:00
Mikhail Glukhikh 2130164d9b EXTERNAL_DECLARATION_CANNOT_BE_ABSTRACT is now reported on property if accessor is external #KT-9297 Fixed
Also fixes EA-89227
2016-10-27 16:25:43 +03:00
Nikolay Krasko e053b77ede Test for "Code folding doesn't work in kotlin lambdas after some declatation" (KT-14411)
Fixed in previous commit

 #KT-14411 Fixed
2016-10-27 14:26:12 +03:00
Nikolay Krasko 08d628537c Assign trailing and preceding whitespaces to lambda block until the last comment in parser 2016-10-27 14:26:10 +03:00
Nikolay Krasko 0261385681 Report file name for getDefaultPlatform() information 2016-10-27 14:26:07 +03:00