Commit Graph

13303 Commits

Author SHA1 Message Date
Svetlana Isakova 656cc16a81 fixed: explicit receiver kind for resolved call shouldn't be used as expected receiver kind for function 2013-12-16 16:24:21 +04:00
Svetlana Isakova 928f77ffce set explicit receiver kind properly for calls 2013-12-16 16:24:21 +04:00
Zalim Bashorov cf5174d798 Fixed the collection output of processes in integration tests. 2013-12-16 13:40:30 +04:00
Alexander Udalov 13214d2dec Update doc comments of utility functions on lists 2013-12-12 23:34:08 +04:00
Michael Zehender 6546d7a1e7 #KT-2341 Fixed 2013-12-12 23:34:08 +04:00
Alexander Udalov e179e6bb2f Utilize existing mapType methods
Fix warnings related to nullable CallableDescriptor.getReturnType()
2013-12-12 23:34:08 +04:00
Alexander Udalov d490a91f26 Delete unused code 2013-12-12 21:38:20 +04:00
Alexander Udalov cc1d4a033a Rename KotlinBuiltIns.isAny -> isAnyOrNullableAny
Reduce confusion, prevent bugs
2013-12-12 21:38:20 +04:00
Alexander Udalov 0576851102 Fix codegen for closures returning 'Unit?'
Only do a checkcast when we need to coerce Object to Unit: the code was
hopefully type-checked so that it'll only be necessary when the value is either
Unit.VALUE or null
2013-12-12 21:38:20 +04:00
Alexander Udalov 9e5c68a8f9 Fix KotlinBuiltIns.isUnit
It didn't check type's nullability
2013-12-12 21:38:20 +04:00
Alexander Udalov 2892907947 Delete Enum.name()/ordinal() JVM intrinsics
Bytecode is the same if they're generated as is from descriptors

+ Some minor code style improvements
2013-12-12 21:38:20 +04:00
Alexander Udalov 523ad697c7 Minor, fix/suppress warnings in codegen 2013-12-12 21:38:19 +04:00
Alexander Udalov 0215f892a6 Minor, simplify method 2013-12-12 21:38:19 +04:00
Nikolay Krasko 161af7003d Lost import 2013-12-12 18:58:31 +04:00
Nikolay Krasko bbe85f2533 Stop sending requests if tool window isn't visible 2013-12-12 18:50:48 +04:00
Nikolay Krasko fcf81f42e2 Refactoring: Rename classes 2013-12-12 18:50:47 +04:00
Alexey Sedunov a802853ac6 Fix warnings 2013-12-12 17:30:58 +04:00
Alexey Sedunov fb831a9a2a Add "Find Usages" tests for local classes/objects 2013-12-12 17:30:57 +04:00
Alexey Sedunov 8981208ac9 Rename "Find Usages" tests 2013-12-12 17:30:57 +04:00
Alexey Sedunov 1095c51d6a Reimplement "Find Usages" using KotlinClassInheritorsSearch 2013-12-12 17:30:56 +04:00
Alexey Sedunov 39211e4759 Implement class inheritors search 2013-12-12 17:30:55 +04:00
Alexey Sedunov d261fe8726 Core classes for declaration search 2013-12-12 17:30:54 +04:00
Alexey Sedunov f35c77e731 Move search extensions to separate package 2013-12-12 17:30:53 +04:00
Alexey Sedunov eb6ae2f772 Translate KotlinDirectInheritorsSearcher to Kotlin. Reuse PsiClass.isInheritor() 2013-12-12 17:30:53 +04:00
Alexey Sedunov 6913f42a97 Add support of light classes for local class/object declarations 2013-12-12 17:30:52 +04:00
Alexey Sedunov 594c966c44 Add local class/object declarations to super name index 2013-12-12 17:30:51 +04:00
Alexey Sedunov 72c7399df1 Index object declarations as inheritors 2013-12-12 17:30:50 +04:00
Alexey Sedunov a50dd96401 Changed some annotations to @Nullable to make them JDK-compliant 2013-12-12 17:30:49 +04:00
Natalia Ukhorskaya 1c9b093728 Rename parameter 2013-12-12 17:11:42 +04:00
Natalia Ukhorskaya 69ed9bc47a Do not cast arguments of binary operation to expected type for byte and short 2013-12-12 17:11:42 +04:00
Natalia Ukhorskaya 8b9fbdf911 Make Android test load files with diagnostics 2013-12-12 17:11:41 +04:00
Natalia Ukhorskaya 7e9b1c5c38 Fix Android tests 2013-12-12 17:11:40 +04:00
Nikolay Krasko c0df908f0e Rewrite test to kotlin and add use Json format for tests configure 2013-12-12 15:41:11 +04:00
Nikolay Krasko 03e2e6d352 Rewrite class to Kotlin: temp commit for store history 2013-12-12 15:37:13 +04:00
Svetlana Isakova cc3f450132 added test for obsolete task
#KT-2336 Fixed
2013-12-11 19:53:52 +04:00
Svetlana Isakova 4d39dc38da fixed: smart cast of boolean variable didn't work in boolean expression 2013-12-11 19:53:52 +04:00
Svetlana Isakova cd6934bee8 fixed bug in 'DataFlowInfo.getPossibleTypes'
parent types should be enriched as well
2013-12-11 19:53:51 +04:00
Svetlana Isakova 4a26c9df04 don't report autocast on left expression in equality
if it was checked for not-null beforehand
2013-12-11 19:53:51 +04:00
Svetlana Isakova 90535283ba refactoring: extracted 'recordCastOrError' method 2013-12-11 19:53:51 +04:00
Svetlana Isakova 4b89c22ba7 Check separately auto casts for nullable types.
It's necessary for functions with generics: constraint system ignores nullability divergence,
the error checks are made afterwards, the auto cast check should be made similarly.
2013-12-11 19:53:51 +04:00
Svetlana Isakova f271cb3609 rename: checkReceiver -> checkReceivers 2013-12-11 19:53:51 +04:00
Svetlana Isakova 41f2fcbb40 while resolve 'equals' as a fake call do not throw away temporary trace 2013-12-11 19:53:51 +04:00
Svetlana Isakova 499783fbc6 rename:
getAutoCastVariantsIncludingReceiver -> getAutoCastVariants
getAutoCastVariants -> getAutoCastVariantsExcludingReceiver
2013-12-11 19:53:50 +04:00
Svetlana Isakova 81e6eb8253 refactoring: removed AutoCastService
used getAutoCastVariantsIncludingReceiver util method instead
2013-12-11 19:53:50 +04:00
Svetlana Isakova ab1d27dd6b don't use data flow info while checking for receiver
receiver with smart cast is checked separately
2013-12-11 19:53:50 +04:00
Svetlana Isakova 46b77f4472 don't report unnecessary smart cast on receiver 2013-12-11 19:53:50 +04:00
Svetlana Isakova 33c04bde9a changed tests where autocasts aren't needed but are reported
due to KT-4294
2013-12-11 19:53:50 +04:00
Svetlana Isakova c30259dfbe added info about smart casts to diagnostic tests 2013-12-11 19:53:50 +04:00
Alexander Udalov 00da5fe1fb Fix VerifyError for 'when' of type 'Unit?' 2013-12-11 07:40:19 +04:00
Alexander Udalov 0d9c126485 Add regression test for KT-3634
#KT-3634 Obsolete
2013-12-11 07:40:19 +04:00