Commit Graph

7709 Commits

Author SHA1 Message Date
Andrey Breslav 8333448f10 Pair and Triple classes added 2012-09-07 21:26:12 +04:00
Andrey Breslav 57e63a8529 Any.hashCode() and Any?.hasCodeOrDefault(Int) added to standard library 2012-09-07 21:26:12 +04:00
Nikolay Krasko df76d2d3a8 In and Out keyword completion for generic parameters 2012-09-07 21:02:01 +04:00
Nikolay Krasko e043a6c699 Fix error keyword completion in modifier lists in parameters 2012-09-07 21:02:00 +04:00
Nikolay Krasko 4f72cd2fee Refactor - subclass PositionElementFilter and don't implement isClassAcceptable 2012-09-07 21:01:59 +04:00
Nikolay Krasko 8fd52a9095 Two tests for resolved reference 2012-09-07 21:01:59 +04:00
Nikolay Krasko 4376c7a87c Use separate test methods instead of generated suit 2012-09-07 21:01:57 +04:00
Svetlana Isakova cd5521d6dc rename error 2012-09-07 19:03:07 +04:00
Svetlana Isakova 1dfe212844 minor 2012-09-07 19:03:06 +04:00
Svetlana Isakova 7c0bebe631 make parameter moduleConfiguration @NotNull
(in 'processImportReference')
2012-09-07 19:03:06 +04:00
Svetlana Isakova 1760d56017 removed unnecessary more util method 2012-09-07 19:03:06 +04:00
Svetlana Isakova 3bd79fa701 introduced interface PlatformToKotlinClassMap
changed method in ModuleConfiguration (now it returns PlatformToKotlinClassMap)
JavaToKotlinTypesMap implements PlatformToKotlinClassMap
'importAllUnderDeclaration' in Importer uses PlatformToKotlinClassMap
2012-09-07 19:03:06 +04:00
Alexander Udalov c0dc1e6742 NamespaceComparator now serializes kind, if it's not DECLARATION.
Lots of test data changed to include members' kinds.
2012-09-07 19:00:08 +04:00
Alexander Udalov cb13995057 Write callable member's kind to JetMethod annotation
Reuse deprecated kind() parameter in JetMethod annotation to store
CallableMemberDescriptor.Kind if it's not DECLARATION.

JavaDescriptorResolver doesn't always resolve members to DECLARATION
anymore, instead it deserializes member's kind from the annotation.

Create DescriptorKindUtils to convert Kind to int value and back.
2012-09-07 19:00:07 +04:00
Alexander Udalov 8a33d390a2 Change newHashSet() to newLinkedHashSet()
This helps in debugging blinking tests, where the outcome is dependent on
the order of elements in a Set
2012-09-07 19:00:06 +04:00
Alexander Udalov 9fc208cfad Support data class componentN functions in lazy resolve
Lazy resolve LoadKotlin test class regenerated.
No new diagnostic tests (run lazy resolve diagnostic test generator for
this purpose).

 #KT-2628 Fixed
2012-09-07 19:00:06 +04:00
Alexander Udalov 67211fde40 Check componentN functions for overload conflicts 2012-09-07 19:00:05 +04:00
Alexander Udalov fbeaaf5fbb Check componentN functions for override conflicts
Check if newly generated component functions happen to override something
which they're not supposed to.
Create new slice to store mapping from annotation descriptors to
corresponding PSI elements, which is used by override checker to report
errors in data classes on.
2012-09-07 19:00:04 +04:00
Alexander Udalov c29312043c Refactor OverrideResolver.checkOverrideForMember()
Create CheckOverrideReportStrategy interface to report override errors
(will be used later for synthesized members override checks).

Add diagnostic test on OVERRIDING_FINAL_MEMBER, as no such test happened
to exist before.
2012-09-07 19:00:04 +04:00
Alexander Udalov 2aadfa47ee Write typeinfo annotations of generated componentN methods
Add some LoadKotlin testcases to test that.
2012-09-07 19:00:03 +04:00
Alexander Udalov 2c84389a45 Codegen for "componentN" functions for data classes 2012-09-07 19:00:02 +04:00
Alexander Udalov b93db69a24 Resolve "componentN" functions for data classes
Reuse existing (but not used) VALUE_PARAMETER_AS_PROPERTY in
BindingContext to store mapping from constructor's value parameters to
property descriptors.

Create a new slice DATA_CLASS_COMPONENT_FUNCTION to store mapping from
constructor's value parameters to generated componentN functions.
2012-09-07 19:00:01 +04:00
Alexander Udalov 410922c58d CallableMemberDescriptor.Kind.SYNTHESIZED
Introduce CallableMemberDescriptor.Kind.SYNTHESIZED for members which
neither are declared nor do appear as overrides of anything, but rather
are generated by the compiler.
2012-09-07 19:00:01 +04:00
Alexander Udalov 95dddadb36 Present "data" annotation to standard library 2012-09-07 19:00:00 +04:00
Andrey Breslav b46187a560 KT-2739 Error type inferred for hashSet(Pair, Pair, Pair)
#KT-2739 Fixed
2012-09-07 18:24:22 +04:00
Alexander Udalov 213157a3c5 Regenerate diagnostic tests 2012-09-07 17:58:03 +04:00
Evgeny Gerashchenko 60eeee643a EA-37462 - AIOOBE: ResolveToolwindow.renderValueArguments
Added assertion with extra information.
2012-09-07 17:52:32 +04:00
Evgeny Gerashchenko 1b2d946246 EA-35698 - assert: DecompiledDataFactory.build
Added information to assert message.
2012-09-07 17:52:32 +04:00
Evgeny Gerashchenko 0cb69d0328 Minor. 2012-09-07 17:52:32 +04:00
Evgeny Gerashchenko 17932f1b7c EA-36257 - NPE: DecompiledDataFactory.appendDescriptor
Added assert in only place where source of NPE may appear.
2012-09-07 17:52:32 +04:00
Evgeny Gerashchenko 44a70669d7 Minor. 2012-09-07 17:52:32 +04:00
Evgeny Gerashchenko b177c2cc15 EA-36997 - assert: FileManagerImpl.dispatchPendingEvents 2012-09-07 17:52:32 +04:00
Evgeny Gerashchenko c32a41f241 Minor refactoring. 2012-09-07 17:52:32 +04:00
Evgeny Gerashchenko a13d32daa9 EA-37610 - INRE: FileBasedIndexImpl.handleDumbMode 2012-09-07 17:52:32 +04:00
Andrey Breslav 7b01ce5acb Test for KT-2532 Exception on trying to override delegated member.
#KT-2532 Fixed
2012-09-07 14:49:02 +04:00
Leonid Shalupov 15b5ba5b51 KT-2694 simplify loop 2012-09-07 13:46:54 +04:00
Leonid Shalupov 9ad9fcc74a Merge pull request #125 from xpoft/master
KT-2694 Skip if sources don't found (for multiple modules projects)
2012-09-07 02:43:46 -07:00
Alex Tkachman 58c1cd4772 Merge pull request #127 from pechlambda/kt-2657-fix
KT-2657 Fixed incorrect stack values order in delegation methods codegen...
2012-09-06 14:08:18 -07:00
Kirill Berezin 6e951685de KT-2657 Fixed incorrect stack values order in delegation methods codegen #KT-2657 Fixed 2012-09-06 23:54:14 +04:00
Kirill Berezin 454ad48d5b added one more test to check if overrides are resolved correctly 2012-09-06 20:28:58 +04:00
Kirill Berezin 82a5beddea do not copy overrides for the delegated methods, it causes failure of delegation to traits which extend other traits 2012-09-06 20:27:43 +04:00
Kirill Berezin 1061e1ef69 do not generate delegates when the class already has such method either declared or delegated (report an ambiguity in this case)
Merge conflict resolved by committer
2012-09-06 20:27:43 +04:00
Alex Tkachman 10bdc02409 performance optimizations:
- classes for object/class object and function literals are final
- class objects call own methods via this in oppose to static field in parent
2012-09-06 18:10:58 +03:00
Natalia 4303083945 KT-322 Prohibit inheriting classes from enums
#KT-322 Fixed
2012-09-06 17:24:37 +04:00
Natalia 07cf73ecef KT-2697 Prohibit enum inheritance
#KT-2697 Fixed
2012-09-06 17:24:36 +04:00
Andrey Breslav fc90c775e9 KT-2730 AssertionError at org.jetbrains.jet.codegen.AnnotationCodegen.genAnnotations(AnnotationCodegen.java:86)
#KT-2730 Fixed
2012-09-06 15:31:59 +04:00
Natalia 1441f742bb Android test: tests with mock jdk now run with jdk annotations 2012-09-06 12:44:49 +04:00
Nikolay Krasko a96474845b Fix check of path separators in tests 2012-09-06 12:02:44 +04:00
Nikolay Krasko 8666b7d34b Increase readability of string generation with String.format() 2012-09-06 12:01:47 +04:00
Nikolay Krasko cc9634c2b2 EA-38862 Fixed - Update getSpacing for dealing with first nullable parameter in new IDEA 2012-09-06 00:00:54 +04:00