Commit Graph

10176 Commits

Author SHA1 Message Date
Leonid Shalupov bbb526476e maven plugin: get jdk annotations from plugin's classpath 2013-03-30 15:42:44 +04:00
Leonid Shalupov 5ee5c841cb generators: don't write to files if content is not changed 2013-03-30 15:42:41 +04:00
Agnieszka Paszek 7bac3c5db6 Generated changes 2013-03-29 20:40:26 +04:00
Agnieszka Paszek da2880f985 Added quckfix for PROJECTION_IN_IMMEDIATE_ARGUMENT_TO_SUPERTYPE 2013-03-29 20:39:18 +04:00
Agnieszka Paszek 7c041d5c94 Added quickfix for PROJECTION_ON_NON_CLASS_TYPE_ARGUMENT 2013-03-29 20:39:00 +04:00
Agnieszka Paszek 50f8948706 Added quickfix for CONFLICTING_PROJECTION 2013-03-29 20:38:40 +04:00
Agnieszka Paszek 56774cccd8 Added quickfix for NESTED_CLASS_NOT_ALLOWED 2013-03-29 20:38:18 +04:00
Evgeny Gerashchenko 72284c36d4 Added examples in code. 2013-03-29 20:36:48 +04:00
Evgeny Gerashchenko 8014f1af0b Extracted method. 2013-03-29 20:36:48 +04:00
Evgeny Gerashchenko e5d14f6970 Minor. Simplified, reformatted, got rid of warnings. 2013-03-29 20:36:47 +04:00
Evgeny Gerashchenko 056c7e0df3 Simplified code. 2013-03-29 20:36:47 +04:00
Evgeny Gerashchenko 6ff9bfd4bb Supported SAM constructor calls without function literal. 2013-03-29 20:36:47 +04:00
Evgeny Gerashchenko f11a1a2d28 Minor. Simplified, reformatted, got rid of warnings. 2013-03-29 20:36:46 +04:00
Nikolay Krasko e77f1060b3 Update to IDEA 129.111 (12.1 EAP RC2) 2013-03-29 18:56:35 +04:00
Alexey Sedunov 6a7cd7c6e3 Add tests for mutability annotation support in type resolver 2013-03-29 18:42:47 +04:00
Alexey Sedunov fc7bb67aca Add extended annotation to test environment 2013-03-29 18:42:44 +04:00
Alexey Sedunov 393ebf44aa Implement mutability annotation support in type resolver 2013-03-29 18:42:43 +04:00
Alexey Sedunov 975c66b946 Add module with extended annotations (mutable, read-only) 2013-03-29 18:42:43 +04:00
Nikolay Krasko 3f2102b04f Verify both plugins with idea 12.1 eaps 2013-03-29 13:50:15 +04:00
Evgeny Gerashchenko dcb95fc5ac Fixed priorities for synthetic functions. 2013-03-29 13:10:31 +04:00
Natalia.Ukhorskaya 73bbda5b93 AndroidTests: do not run test which use file system 2013-03-29 11:47:05 +04:00
Leonid Shalupov fb2809388b Merge pull request #233 from nskvortsov/master
Kotlin Gradle plugin improvements
2013-03-28 09:57:00 -07:00
Evgeny Gerashchenko 13d856db8e Moved max priority constant to PriorityProvider. 2013-03-28 20:08:35 +04:00
Evgeny Gerashchenko 0fee69fe07 Prioritized synthetic and not synthetic functions. 2013-03-28 20:07:47 +04:00
Evgeny Gerashchenko 2e678a94f1 Replaced predicate strategy with priority-returning strategy. 2013-03-28 18:27:35 +04:00
Evgeny Gerashchenko 69c5411269 Fixed recently added annotation. 2013-03-28 17:12:26 +04:00
Evgeny Gerashchenko 0bc65321c2 KT-1547 Wrong layout of closure classes
#KT-1547 fixed
2013-03-28 15:54:51 +04:00
Evgeny Gerashchenko 05e4164a0d Committing ant.xml. 2013-03-28 15:54:51 +04:00
Evgeny Gerashchenko b7527101cd Always using "SAM interface" term. 2013-03-28 15:54:51 +04:00
Evgeny Gerashchenko c619685dc8 Added test with overridden j.l.Object methods in trait. 2013-03-28 15:54:51 +04:00
Natalia.Ukhorskaya 221df82c01 Build class hierarchy for classes from BuiltIns 2013-03-28 15:25:28 +04:00
Natalia.Ukhorskaya f4a0808a28 Fix resolve in sources files of libraries 2013-03-28 15:25:24 +04:00
Natalia.Ukhorskaya e1dece4345 Inline functions from AnalyzeSingleFileUtil 2013-03-28 14:30:57 +04:00
Andrey Breslav 1ad0cad020 Incomplete analysis results are available for light class generation
If we have the following classes

 class A // Kotlin
 class B extends A {} // Java
 class C : B() // Kotlin

 The analysis runs into infinite recursion, because C needs all members of B (to compute overrides),
 and B needs all members of A, and A is not available from KotlinCacheManager.getDeclarationsFromProject() -- it is being computed right now,
 so the analysis runs again...

 Our workaround is:
  * when analysis starts put its trace into user data on the project
  * when a light class is about to generate a stub, it requests a trace, and if there is such an incomplete trace, it is returned
  * the logic of TopDownAnalyzer that works in descending order (down the class hierarchy) guarantees that all the superclasses are already processed
2013-03-28 11:29:53 +04:00
Andrey Breslav 83e2986a7b Unused methods removed, class renamed 2013-03-27 20:31:00 +04:00
Nikolay Krasko fb4a205277 Fix absence of notification about unsupported Abi 2013-03-27 20:20:38 +04:00
Evgeny Gerashchenko cadb9bcb8f Supported multi-reference in imports (SAM interfaces are resolved as both functions and classes). 2013-03-27 19:19:59 +04:00
Evgeny Gerashchenko 8130c813e9 Not looking for super methods which are Object methods in interfaces, because they are not loaded by JDR. 2013-03-27 19:19:59 +04:00
Evgeny Gerashchenko d8ccfe55b6 Removed redundant checking for test mode. Exceptions will be thrown anyway. 2013-03-27 19:19:59 +04:00
Evgeny Gerashchenko 3917f11b12 Updated test data. 2013-03-27 19:19:59 +04:00
Evgeny Gerashchenko 4fc1148d59 Added dummy methods to avoid loading test interfaces as SAM. 2013-03-27 19:19:59 +04:00
Evgeny Gerashchenko 8f079f6d41 Added tests for ignoring Object methods when loading interface. 2013-03-27 19:19:58 +04:00
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