Commit Graph

9879 Commits

Author SHA1 Message Date
Alexander Udalov e8088ec6a7 Write correct InnerClasses attribute to class files
InnerClasses should contain entries for every inner and every outer class,
according to the JVMS

 #KT-3390 Fixed
2013-03-12 14:57:14 +04:00
Alexander Udalov 656f4e2f26 Minor refactoring of writeOuterClass() 2013-03-12 14:57:13 +04:00
Svetlana Isakova 7b6dfc3470 small fix while choosing maximally specific
return success if there is one candidate after filterOverrides step
 #KT-1461 fixed
2013-03-11 14:54:16 +04:00
Andrey Breslav 9d05a4548c Merge pull request #223 from leftylink/init_without_ctor
Change ANONYMOUS_INITIALIZER from _WITHOUT_CONSTRUCTOR to _IN_TRAIT
2013-03-11 03:19:28 -07:00
Zalim Bashorov e53270ad3f Fixed ECMAScript3 implementation of Kotlin.$new.
Added bind polyfill.
2013-03-11 13:13:54 +04:00
Andrey Breslav 7259ec2f94 Merge pull request #225 from sigito/patch-1
#KT-3381 fixed.
2013-03-11 02:03:24 -07:00
Yurii Samsoniuk b39d3bec5a #KT-3381 fixed.
Corrected documentation misspelling.
2013-03-09 15:32:50 +02:00
Peter Tseng cd56678467 Change ANONYMOUS_INITIALIZER from _WITHOUT_CONSTRUCTOR to _IN_TRAIT
"since we made all classes have constructors some time ago", this error
doesn't even trigger on a class such as:
class testClass { {} }
It does trigger on a trait:
trait testTrait { {} }

Therefore, the error message should be changed to reflect the new
behavior.
However, an actual quickfix for this will be more involved. It is not a
good idea to simply delete the initializer, since it could contain
valuable code that the user wants to keep.
2013-03-08 02:11:58 -05:00
Natalia.Ukhorskaya 6f31fd7bd4 EA-43630 - assert: JavaAnnotationResolver.resolveAnnotation 2013-03-07 15:34:40 +04:00
Natalia.Ukhorskaya 6bea9999d5 Introduce variable does something really strange for expression in square brackets
#KT-2490 Fixed
2013-03-07 15:34:39 +04:00
Svetlana Isakova d5b5fe8503 added @NotNull annotations 2013-03-07 13:11:22 +04:00
Svetlana Isakova 4d4fd5885d store constraint system without expected type constraint
for easier 'type inference expected type mismatch' reporting
2013-03-07 13:11:22 +04:00
Svetlana Isakova 54cd8c82a3 refactoring
unite two similar methods (replaceTypeVariables, copy)
2013-03-07 13:11:22 +04:00
Svetlana Isakova 12d8a90b3e invoke equalsOrContainsAsArgument
instead of dependsOnTypeConstructors
2013-03-07 13:11:22 +04:00
Svetlana Isakova 87592e5141 rename 2013-03-07 13:11:22 +04:00
Svetlana Isakova d7412ecd9f fixed test data
type mismatch with nothing (after change in ConstraintSystemImpl)
render 'CANT_INFER' type as '???'
2013-03-07 13:11:21 +04:00
Svetlana Isakova 1d55e359a5 complete type inference(*) for variable as function call as well
* dependent on expected type
+ get rid of instanceof ResolvedCallImpl check
2013-03-07 13:11:21 +04:00
Svetlana Isakova fe82ea5464 reverted: adopt to broken inference 2013-03-07 13:11:21 +04:00
Svetlana Isakova 0530df6f7b use TypeCheckingProcedure for generating constraints
(in ConstraintSystemImpl)
2013-03-07 13:11:21 +04:00
Natalia.Ukhorskaya 871caaaa2d Fix android tests 2013-03-07 12:27:02 +04:00
Natalia.Ukhorskaya 3cb3f00562 IDE: folding imports 2013-03-07 12:25:47 +04:00
Zalim Bashorov 220682afe2 fixed mapping sort and max functions from java.util.Collections 2013-03-06 19:16:14 +04:00
Zalim Bashorov dd7d584478 Added some tests for JS implementation of HashMap#values() (#KT-3035) 2013-03-06 19:16:14 +04:00
Natalia.Ukhorskaya 02c8989b2f Top level functions inside module should be invoked using package$src class 2013-03-06 16:22:52 +04:00
Natalia.Ukhorskaya 4d51572482 Extract method 2013-03-06 16:22:48 +04:00
Natalia.Ukhorskaya d501e8821c Move top level properties from package class to package$src 2013-03-06 16:22:44 +04:00
Natalia.Ukhorskaya 4bfdeffd0b Make getContainingFile return null if it isn't JetFile 2013-03-06 16:22:41 +04:00
Natalia.Ukhorskaya d9739fb5bb Remove usages of isMultiFileNamespace 2013-03-06 16:22:37 +04:00
Natalia.Ukhorskaya faf994d872 Generate package$src files for each package 2013-03-06 16:22:33 +04:00
Natalia.Ukhorskaya a9415204f6 Replace "." with "_" in package$src class name 2013-03-06 16:22:18 +04:00
Wojciech Lopata 75528e0a4a KT-3378 "Type mismatch on override" not present when the initializer is syntactically incorrect
#KT-3378 Fixed
2013-03-06 15:18:37 +04:00
Wojciech Lopata 09c3edcbc7 'hasSyntaxErrors' check moved from Diagnostic to PositioningStrategy
This makes possible to mark diagnostic errors when syntax error are present (by overriding isValid in PositioningStrategy subclasses).
2013-03-06 15:18:36 +04:00
Andrey Breslav 7e5794cc7f A common method extracted 2013-03-06 12:53:14 +04:00
Andrey Breslav 7107288f88 Injectors regenerated 2013-03-06 12:53:14 +04:00
Andrey Breslav deda45135e Generating imports after all usages were generated 2013-03-06 12:53:13 +04:00
Andrey Breslav 47d1ea2770 Migrated to Printer 2013-03-06 12:53:13 +04:00
Andrey Breslav ac981915a1 Imports are tracked when types are used 2013-03-06 12:53:10 +04:00
Andrey Breslav f7de41ea1b The rudimentary support for lazy injection removed 2013-03-06 12:52:49 +04:00
Andrey Breslav 7df84101d4 Parts of DependencyInjectorGenerator moved out 2013-03-06 12:52:48 +04:00
Andrey Breslav 3920028fe5 Initial support for factory methods 2013-03-06 12:52:44 +04:00
Andrey Breslav 84ff885f72 Constructor body generation extracted as a method (+ migrated to Printer for convenience) 2013-03-06 12:51:02 +04:00
Andrey Breslav e26efb4e4d Printer now supports any appendable + separated lists 2013-03-06 12:51:02 +04:00
Andrey Breslav 70f44244f9 Refactoring: dependency computations isolated in a separate class 2013-03-06 12:50:50 +04:00
Evgeny Gerashchenko 89407fdcb2 Cleanup in quickfix code. 2013-03-06 00:04:22 +04:00
Jack Zhou 738a874334 Added quickfix for PLATFORM_CLASS_MAPPED_TO_KOTLIN. 2013-03-06 00:04:22 +04:00
Wojciech Lopata cee45f6a0a QuickFix for OVERRIDING_FINAL_MEMBER 2013-03-05 23:32:52 +04:00
Wojciech Lopata 08ce27e97e Fix typo in JetBundle.properties 2013-03-05 23:32:38 +04:00
Evgeny Gerashchenko 0f83c8297e Added corner case test for int range iteration. 2013-03-05 14:58:43 +04:00
Wojciech Lopata 237be539b3 QuickFix for RETURN_TYPE_MISMATCH_ON_OVERRIDE and PROPERTY_TYPE_MISMATCH_ON_OVERRIDE. 2013-03-05 14:52:43 +04:00
Wojciech Lopata a880b2a699 Add removeTypeAnnotation(JetFunction function) utility. 2013-03-05 14:52:42 +04:00