Commit Graph

1126 Commits

Author SHA1 Message Date
Svetlana Isakova 0ccdf79051 no report 'UNNECESSARY_NOT_NULL_ASSERTION' on error types 2012-09-19 15:31:17 +04:00
Svetlana Isakova 618f1b377b added signatureName format to JvmClassName 2012-09-19 13:06:25 +04:00
Andrey Breslav c9e9175a88 EA-37399 - ISE: OverrideResolver.findInvisibleOverriddenDescriptor
Each of the duplicated methods in the subclass should get the same set of overridden descriptors
2012-09-18 22:01:39 +04:00
Andrey Breslav f8cdb7e81e Test regenrated (data file removed in the previous commit) 2012-09-18 21:57:57 +04:00
Andrey Breslav 9c5d032fb1 Obsolete test case removed 2012-09-18 21:36:14 +04:00
Andrey Breslav 5eaa5b396b Removing usages of tuples from test data
(KT-2358 Drop tuples)
 #KT-2358 In progress
2012-09-18 20:27:09 +04:00
Andrey Breslav dee5152f9b Supporting Unit.VALUE, to replace #()
#KT-2358 In Progress
2012-09-18 20:27:09 +04:00
Nikolay Krasko 4041d4d192 Remove ResolveSession.getResolutionScope() and extend usage of ScopeProvider.getResolutionScopeForDeclaration() 2012-09-18 19:26:57 +04:00
Nikolay Krasko db830c88b4 EA-38787 Exception because of enumeration without name 2012-09-18 19:26:56 +04:00
Alex Tkachman 0ffc8f355b attempt to fix KT-2251 2012-09-18 14:25:09 +03:00
Alex Tkachman 8e463ac0ac equals generation for data classes 2012-09-17 18:48:17 +03:00
Evgeny Gerashchenko 6e62212727 Replaced sure() invocations with '!!' operator in codegen tests. 2012-09-17 18:00:21 +04:00
Alex Tkachman 8c823486d7 hashCode generation for data classes 2012-09-17 15:52:23 +03:00
Evgeny Gerashchenko 82b605508a Added 'if not null' checks to avoid exceptions thrown before deferred assertions are printed. 2012-09-17 16:27:14 +04:00
Evgeny Gerashchenko 4620ba2fd3 Rewritten LoadCompiledKotlinTest to test generation framework. 2012-09-17 16:27:14 +04:00
Evgeny Gerashchenko 27becdec9b Added getSliceContents() method to BindingContext returning immutable map for particular slice (for testing and debug purposes). 2012-09-17 16:27:14 +04:00
Natalia.Ukhorskaya 694f1f45f8 KT-2714 'enum' annotation should only be allowed on classes
#KT-2714 Fixed
2012-09-17 15:27:49 +04:00
Alex Tkachman a4e272d7c6 optimization of toString for primitive types and "$expr"
- intrinsic toString for promitive types added to stdlib
- utility method added to CodegenUtil
- optimization logic added to generation of interpolating string
2012-09-17 13:00:02 +03:00
Alex Tkachman 655a13aef6 IntrinsicsTest regenerated 2012-09-17 09:45:37 +03:00
Alex Tkachman 3b96624c81 small optimizaton of toString for primitive types (no boxing needed) 2012-09-17 09:07:08 +03:00
Alex Tkachman 58af365eb2 toString() method for data classes and fake implementation for hashCode/equals 2012-09-16 15:56:48 +03:00
Alex Tkachman e317764a88 correct access flags for package private (coming from java) #KT-2781 fixed 2012-09-16 10:08:36 +03:00
Natalia.Ukhorskaya c5db89e534 Generated field for classObject is now final
EA-38323 Fixed - Illegal field modifiers in class
2012-09-14 16:41:13 +04:00
Evgeny Gerashchenko c33b880a57 EA-39177 - CCE: ArrayIterator.generate
If local variable is auto-casted to array, it should be iterated as array.
2012-09-14 16:12:16 +04:00
Natalia.Ukhorskaya 6516786979 EA-38625 Fixed - UOE: NamespaceType.throwException 2012-09-13 20:04:10 +04:00
Svetlana Isakova 0d1790a4f4 alternative signature applies for names
mapped in standard library (and differs from auto transformed Java signature)
e.g.Collections.copy(MutableList, List)
2012-09-13 17:28:31 +04:00
Alex Tkachman a8627a56ef test for obsolete KT-2663 2012-09-13 16:28:00 +03:00
Natalia.Ukhorskaya 60bdae9d75 Prohibit body for annotation class
#KT-1886 Fixed
2012-09-13 16:27:48 +04:00
Alex Tkachman 0a2f808ec0 test case and fixes for object and classes inner for enum entry 2012-09-12 20:48:12 +03:00
Alex Tkachman ca65574bce no need for context lookup of enclosing singletons #KT-2695 fixed 2012-09-12 19:41:26 +03:00
Alex Tkachman 6c4102bf23 simple case (no closures) of class level objects #KT-2398 fixed 2012-09-12 17:35:51 +03:00
Alex Tkachman 79c04038fb accessor for private constructors #KT-2716 fixed
also on the way done small refactoring of JetTypeMapper
- few code duplicates replace by methods
- mapToCallableMethod(ConstructorDescriptor) introduced
2012-09-12 10:31:48 +03:00
Alex Tkachman fb4d6610a8 unification of accessable descriptor lookup between functions and properties 2012-09-12 09:20:10 +03:00
Andrey Breslav 068c6795fe Fixing tests 2012-09-11 21:02:05 +04:00
Andrey Breslav 91a9b6539f EA-37910 - UOE: DescriptorUtils.getSubstitution
The corresponding method reworked to be less of a hack
Tests added
2012-09-11 20:52:11 +04:00
Alex Tkachman 6a0e4d1593 name clash when several files of the same package has different paths but the same name #KT-2713 Fixed 2012-09-11 17:05:23 +03:00
Alex Tkachman ec549895e8 fix for NPE when lookup names in objects/closure in constructors #KT-2719 Fixed 2012-09-11 16:16:09 +03:00
Alex Tkachman 4eea0cafb9 test for obsolete KT-2626 2012-09-11 15:51:16 +03:00
Natalia.Ukhorskaya 199f10034b KT-2744 Unneeded error message when the only super type is not resolved
#KT-2744 Fixed
2012-09-11 15:17:13 +04:00
Alex Tkachman 53f145b533 optimization of delegates by val property 2012-09-08 09:34:02 +03: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 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 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
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