Commit Graph

8676 Commits

Author SHA1 Message Date
Pavel V. Talanov 908b58878b Introduce JavaClassNonStaticMembersScope and use instead of JavaClassMembersScope 2012-11-21 19:46:09 +04:00
Pavel V. Talanov eb155bb204 Refactor: remove useless check in PsiDeclarationProviderFactory 2012-11-21 19:46:08 +04:00
Pavel V. Talanov da47c31a86 Introduce JavaScopeForKotlinNamespace, JavaPackageScopeWithoutMembers, JavaClassStaticMembersScope, much clearer and more explicit logic in JavaNamespaceResolver#createNamespaceScope()
These classes explicitly represent 3 types of scopes that are created for NamespaceDescriptor in JDR
2012-11-21 19:46:07 +04:00
Natalia.Ukhorskaya ff45322d1a Add Java Source Roots to classpath
#KT-3062 Fixed
2012-11-21 19:44:29 +04:00
Andrey Breslav 3e1a5a7be1 Report exceptions from both makes to Exception Analyzer 2012-11-21 19:31:14 +04:00
Andrey Breslav 4ed07cd9ae Introducing KotlinPaths to impose some discipline on compiler/library location 2012-11-21 18:16:09 +04:00
Andrey Breslav 4ee76a6649 KT-3056 Kotlin: Cannot find kotlinc home. Make sure plugin is properly installed
#KT-3056 Fixed
2012-11-21 14:12:51 +04:00
Evgeny Gerashchenko 19e283a333 Fixed printing multiple errors in Kotlin signatures. 2012-11-21 14:00:51 +04:00
Evgeny Gerashchenko cda953942d Added @ExpectLoadErrors annotations to test data.
Also, fixed syntax error in AddNullabilitySameJavaType.
2012-11-21 14:00:51 +04:00
Evgeny Gerashchenko 4b465afdfa Saving order of super functions in SignaturesPropagation. 2012-11-21 14:00:51 +04:00
Evgeny Gerashchenko 37cfb2fcc0 Checking errors when loading from Java in tests. 2012-11-21 14:00:51 +04:00
Svetlana Isakova 691cf52835 removed unused component dependencies 2012-11-20 19:54:55 +04:00
Svetlana Isakova 7773f713b7 extracted method usage 2012-11-20 19:54:55 +04:00
Svetlana Isakova 39450dd954 resolve function literal expression (as parameter) after resolve call
(therefore only once)
while resolve use FAKE_FUNCTION_TYPE as type
for function literal (which is a subtype/supertype for any function type)
2012-11-20 19:54:55 +04:00
Svetlana Isakova 473a969598 ArgumentTypeResolver introduce
(component used in CallResolver)
2012-11-20 19:54:54 +04:00
Svetlana Isakova e8f9097127 do not mark error type
if the expression is resolved to namespace
 (EXPRESSION_EXPECTED_NAMESPACE_FOUND error)
2012-11-20 19:54:45 +04:00
Svetlana Isakova d0a6f6252d fixed: DEBUG_INFO_ERROR_ELEMENT should be visible in tests 2012-11-20 19:53:03 +04:00
Svetlana Isakova 993d3a3469 added tests for resolve
(to test performance issues)
2012-11-20 17:59:20 +04:00
Evgeny Gerashchenko 837cf38e91 Temporarily disabled assert in SignaturesPropagation which fails due to bug in IDEA. 2012-11-20 17:20:02 +04:00
Evgeny Gerashchenko 8252c51ebc Extracted method checking that loaded functions override super functions correctly. 2012-11-20 17:20:02 +04:00
Evgeny Gerashchenko 60f30732ed Supported several load from Java errors per declaration. 2012-11-20 17:20:02 +04:00
Evgeny Gerashchenko 4525e05268 Throwing exception only if no loading errors happened. 2012-11-20 17:20:02 +04:00
Evgeny Gerashchenko b09e0aa520 Added assert that we load consistent method hierarchy from Java. 2012-11-20 17:20:01 +04:00
Evgeny Gerashchenko 41f5c64607 Fixed external annotations for listIterator() of AbstractSequentialList and LinkedList.
Now they return MutableListIterator instead of read-only one.
2012-11-20 17:20:01 +04:00
Evgeny Gerashchenko 059c6d0673 Added tests for signatures propagation. 2012-11-20 17:20:01 +04:00
Evgeny Gerashchenko 7e56d6eed8 Replaced indexed for loops with foreach. 2012-11-20 17:20:00 +04:00
Evgeny Gerashchenko 1a216c22f2 Minor. Renamed getC -> getChar 2012-11-20 17:20:00 +04:00
Evgeny Gerashchenko d37bdbc07d Saving and loading projection kind of array element type in bytecode. 2012-11-20 17:20:00 +04:00
Evgeny Gerashchenko 21e97b408c Loading java arrays as Array<out T> at method return type position, as well. 2012-11-20 16:16:47 +04:00
Evgeny Gerashchenko d2a308964d Skipping java.util.Collection and similar classes in JdkAnnotationsSanityTest. 2012-11-20 16:16:47 +04:00
Evgeny Gerashchenko d1f217f2df Minor. LinkedHashMap for easier output parsing. 2012-11-20 16:16:46 +04:00
Evgeny Gerashchenko 62b89655b9 Simplified calculateTypeArgumentsFromSuper and added samples in comments. 2012-11-20 16:16:46 +04:00
Evgeny Gerashchenko f20c4dac15 Cleanup in tests. 2012-11-20 16:16:46 +04:00
Evgeny Gerashchenko 5ff718b94c Minor. Renamed variables where 'projection kind' term should be used instead of 'variance'. 2012-11-20 16:16:46 +04:00
Evgeny Gerashchenko 4a37c130df Minor. Better name for CollectionClassMapping class. 2012-11-20 16:16:46 +04:00
Evgeny Gerashchenko f287e2b55d Minor. Various fixups after code review. 2012-11-20 16:16:46 +04:00
Evgeny Gerashchenko 94cad16d1d Moved all code relevant to signatures propagation to separate class.
#KT-2776 in progress
2012-11-20 16:16:46 +04:00
Evgeny Gerashchenko 00bed4a2a4 Added tests with two superclasses.
#KT-2776 in progress
2012-11-20 16:16:46 +04:00
Evgeny Gerashchenko 3b63e6e061 Supported variance propagation. 2012-11-20 16:16:45 +04:00
Evgeny Gerashchenko 9177080d8b Fixed loading variance from alternative signature. 2012-11-20 16:16:45 +04:00
Evgeny Gerashchenko c5e9deb906 Reverted modification in TypeTransformingVisitor in "Renamed & moved AllInjectorsGenerator".
It was not relevant to that commit: it was squashed accidentally during interactive rebasing.
2012-11-20 16:16:45 +04:00
Evgeny Gerashchenko 044487cf37 Supported propagating read-onliness.
#KT-2776 in progress
2012-11-20 16:16:45 +04:00
Evgeny Gerashchenko 89b413b7ad Supported generic subclasses in submethods.
#KT-2776 in progress
2012-11-20 16:16:45 +04:00
Evgeny Gerashchenko e2d213f1fd Loading functions from superclasses before current to avoid heisenbug.
Added test with two supertypes.

 #KT-2776 in progress
2012-11-20 16:16:45 +04:00
Evgeny Gerashchenko 494345ce10 Improved algorithm, added simple tests with generic types.
#KT-2776 in progress
2012-11-20 16:16:44 +04:00
Evgeny Gerashchenko 1f4d994480 Introduced simple propagation of nullability on loading Java.
#KT-2776 in progress
2012-11-20 16:16:44 +04:00
Natalia.Ukhorskaya 961fde3c8a Remove redundant abstract tests. Use AbstractCodegenTest instead 2012-11-20 14:35:58 +04:00
Natalia.Ukhorskaya 3fc2e5d20c Attempt to split long or double on the stack exception
#KT-3042 Fixed
2012-11-20 13:35:30 +04:00
Natalia.Ukhorskaya 900788a8e0 Fix javaClass property for long and double
#KT-3046 Fixed
2012-11-19 21:19:48 +04:00
Pavel V. Talanov 7bb7445c57 Fix for invoking abstract method in enum 2012-11-19 20:18:45 +04:00