Commit Graph

10130 Commits

Author SHA1 Message Date
Evgeny Gerashchenko ecf882fc21 Removed method which had never been used. 2013-03-27 19:19:58 +04:00
Evgeny Gerashchenko 3761dc051e Generating ACC_SUPER for closures.
Removed commented.
2013-03-27 19:19:58 +04:00
Evgeny Gerashchenko 4e0d408178 Minor. Annotated with @Nullable/@NotNull. 2013-03-27 19:19:58 +04:00
Evgeny Gerashchenko a2b4f446b5 Removed useless ACC_PUBLIC flags from closure classes. 2013-03-27 19:19:58 +04:00
Evgeny Gerashchenko fb18e5ab39 Removed recording function twice. 2013-03-27 19:19:58 +04:00
Evgeny Gerashchenko 56d2bb2639 Removed volatile flag from bridge method.
Actually, volatile flag is equal to bridge flag, which is already there.
2013-03-27 19:19:58 +04:00
Evgeny Gerashchenko 288dbe70c6 Got rid of adding constant on each call site. 2013-03-27 19:19:57 +04:00
Evgeny Gerashchenko d5031e60ad Prepared code for supporting SAM conversions. 2013-03-27 19:19:57 +04:00
Evgeny Gerashchenko b891d6d87f Loading SAM constructor functions for nested interfaces. 2013-03-27 19:19:57 +04:00
Evgeny Gerashchenko 17cc055152 Loading deeply nested static method correctly. 2013-03-27 19:19:57 +04:00
Evgeny Gerashchenko 81381a206c Simplified code. 2013-03-27 19:19:57 +04:00
Evgeny Gerashchenko 7a136eae5b Extracted method. 2013-03-27 19:19:57 +04:00
Evgeny Gerashchenko 0422253943 Loading generic interfaces with upper bounds. 2013-03-27 19:19:57 +04:00
Evgeny Gerashchenko dea7ef77ec If interface method has generic parameters, interface is not functional. 2013-03-27 19:19:56 +04:00
Evgeny Gerashchenko 91282b992d Supported functional interfaces with generic parameters in codegen. 2013-03-27 19:19:56 +04:00
Evgeny Gerashchenko 3b558d575c Loading functional interfaces with generic parameters. 2013-03-27 19:19:56 +04:00
Evgeny Gerashchenko 526cc3ce15 Renamed method. 2013-03-27 19:19:56 +04:00
Evgeny Gerashchenko 933a455f6c Capable of changing owner. 2013-03-27 19:19:56 +04:00
Evgeny Gerashchenko 45d638cc51 Loading interface with only one method inherited from Object as not functional.
#KT-1242 fixed
2013-03-27 19:19:56 +04:00
Evgeny Gerashchenko e6c047b2e0 Added tests with FilenameFilter (several arguments). 2013-03-27 19:19:56 +04:00
Evgeny Gerashchenko 461bfec45d Added FileFilter to mock JDK. 2013-03-27 19:19:55 +04:00
Evgeny Gerashchenko 835c0f85c7 Supported SAM constructors in codegen (simplest case). 2013-03-27 19:19:55 +04:00
Evgeny Gerashchenko 8f34dea4c8 Saving mapping from SAM constructor to trait. 2013-03-27 19:19:54 +04:00
Evgeny Gerashchenko a96a461e61 Calculating interface function name in constructor. 2013-03-27 19:19:54 +04:00
Evgeny Gerashchenko 0add163467 Asserting right after reading. 2013-03-27 19:19:54 +04:00
Evgeny Gerashchenko 73823260be Removed redundant code. 2013-03-27 19:19:54 +04:00
Evgeny Gerashchenko 5ad571c5ab Inlined method which was used only once, and in different subsystem. 2013-03-27 19:19:54 +04:00
Evgeny Gerashchenko 32a048674f Got rid of method duplication. 2013-03-27 19:19:54 +04:00
Evgeny Gerashchenko f4551da18b Moved SAM function creation to JavaFunctionResolver. 2013-03-27 19:19:54 +04:00
Evgeny Gerashchenko dad2ba34aa Removed redundant field in JavaPackageScope. 2013-03-27 19:19:54 +04:00
Evgeny Gerashchenko f43631377b Updated test data. 2013-03-27 19:19:53 +04:00
Evgeny Gerashchenko 2718f7698c Basic support for resolving top-level SAM interfaces. 2013-03-27 19:19:53 +04:00
Zalim Bashorov 282c69eb6b Fixed return value for ArrayList#remove in js library.
Removed unnecessary Kotlin.IndexOutOfBounds.
2013-03-27 18:40:10 +04:00
Zalim Bashorov 7350e14e18 Fixed bug when class or trait declared early than its parent, traits and abstract classes which declared after doesn't translated
#KT-3437 Fixed
2013-03-27 18:40:09 +04:00
Mikhael Bogdanov ad4eeb3f8a Properly capture local functions
Local functions in local classed wasn't captured properly
2013-03-27 15:57:27 +04:00
Nikolay Krasko 8f6c9d73b1 Compatibility with 123 branch is lost - start using fixed AddSupportForSingleDialog from IDEA 2013-03-27 15:45:42 +04:00
Nikolay Krasko bf3fb8acc5 Better work with getLocalPath method 2013-03-27 15:45:41 +04:00
Mikhael Bogdanov 771bce99fa Android test update to support new Idea 2013-03-27 12:24:32 +04:00
Nikolay Krasko 2b8af4e6a5 Refresh local file system to update content of the jar 2013-03-26 21:24:40 +04:00
Nikolay Krasko 314efa3372 Don't use caching LibraryDetectionManager because it isn't updated properly 2013-03-26 21:24:39 +04:00
Nikolay Krasko 14a6cf3c8f Remove old js during configuring new one 2013-03-26 21:24:38 +04:00
Nikolay Krasko 9a4ab3546b Don't consider libraries with empty source roots as JS libraries
#KT-3425 Fixed
2013-03-26 21:24:38 +04:00
Evgeny Gerashchenko 3ae0448c3e Generating public flag for local functions/properties. 2013-03-26 18:46:19 +04:00
Nikolay Krasko 8201e530fd Update to IDEA 129.60 (12.1 EAP RC) 2013-03-26 16:30:32 +04:00
Nikolay Krasko 70965334b1 Force activating post processing actions in order to initialize built-ins properly 2013-03-26 16:30:31 +04:00
Nikolay Krasko 53944242df Don't compute type and use reference for quick fix AddOpenModifierToClassDeclaration quick fix 2013-03-26 16:30:30 +04:00
Nikolay Krasko e239ce7fa7 Don't compute type and use reference for MakeClassAnAnnotation quick fix 2013-03-26 16:30:29 +04:00
Evgeny Gerashchenko 35dadbf796 Update to IDEA 129.17 (12.1 EAP) 2013-03-26 16:30:28 +04:00
Evgeny Gerashchenko 6874f41af8 Removed redundant annotation to avoid indeterministic test failing.
It was failing because of duplication of the same annotation in IDEA JDK annotations and Kotlin JDK annotations.
2013-03-26 16:30:28 +04:00
Evgeny Gerashchenko be08494b75 Added commitAllDocuments() to avoid failing tests. 2013-03-26 16:30:27 +04:00