Commit Graph

21965 Commits

Author SHA1 Message Date
Alexander Udalov d86b9c8f54 Drop unused primitive wrapper mapping in JavaToKotlinClassMap 2015-04-24 02:08:37 +03:00
Alexander Udalov 6a158c2b16 Remove unused method from PlatformToKotlinClassMap 2015-04-24 02:08:37 +03:00
Alexander Udalov 3014238189 Drop unused MutablePackageFragmentProvider 2015-04-24 02:08:36 +03:00
Alexander Udalov 34fa61675d Replace more eager asserts in project with lazy 2015-04-24 02:08:22 +03:00
Alexander Udalov 1a48b5750e Minor, remove unnecessary unwrapping of VariableAsFunctionResolvedCall
Almost all of its methods delegate to functionCall already
2015-04-23 22:09:02 +03:00
Alexander Udalov 07c2442405 Make $default methods non-private, avoid generating accessors for them
#KT-5786 Fixed
2015-04-23 22:09:02 +03:00
Pavel V. Talanov dc05596ce0 Create FqName safely in KotlinCliJavaFileManagerImpl#findPackage
#KT-7501 Fixed
2015-04-23 21:10:58 +03:00
Mikhail Glukhikh 525b9e63ae Refactoring: checkType && checkImplicitCast returned to DataFlowUtils, PROCESSED unboxing returned, StringTemplateVisitor made local 2015-04-23 18:25:52 +03:00
Mikhail Glukhikh 8b241b8c05 Dead block removed (function literal inside do...while) 2015-04-23 18:25:50 +03:00
Mikhail Glukhikh b40fe9d5ba Refactoring: TypeInfoFactory.createTypeInfo() without type -> noTypeInfo(), getNotNullType -> getTypeNotNull, nullability refined, style fixes 2015-04-23 18:25:47 +03:00
Nikolay Krasko 3e1c3e9dfe Don't search for NonClasspathClassFinder classes and package during Kotlin resolve 2015-04-23 17:38:07 +03:00
Nikolay Krasko f972e12331 Use constant for empty resolve result 2015-04-23 17:38:05 +03:00
Michael Bogdanov df2900c4e4 Introduced ParameterDescriptor type 2015-04-23 15:41:59 +03:00
Michael Bogdanov 53b8a1d56e Fix for KT-7544: Backend fails when inlining nested calls with reified type parameter and default value parameter
#KT-7544 Fixed
2015-04-23 15:41:59 +03:00
Dmitry Jemerov 72648d305e better folding for function literals
#KT-4090 Fixed
2015-04-23 13:37:35 +02:00
Dmitry Jemerov 048bb79946 JetFoldingBuilder: J2K and some cleanup 2015-04-23 13:37:34 +02:00
Dmitry Jemerov 185e3b8135 JetFoldingBuilder: rename .java to .kt 2015-04-23 13:37:34 +02:00
Ilya Gorbunov 526348b207 Implement toTypedArray as non-intrinsic.
Remove unused intrinsic method.
2015-04-23 14:10:42 +03:00
Stanislav Erokhin c3f825a711 Update to idea 141.713.2 2015-04-23 13:50:47 +03:00
Denis Zharkov 470ad93328 Do not report inspection "no reflection" in annotation entries
Annotation codegen shouldn't use something from reflection.jar
2015-04-23 11:22:39 +03:00
Denis Zharkov 14df5b72b7 Minor, uncomment throws with class literal in code 2015-04-23 11:22:39 +03:00
Denis Zharkov 99fffc1b4b Optimize migrational intentions
- Run read/write action just once for all files
- Ignore file if no task is found
2015-04-23 11:22:39 +03:00
Denis Zharkov 3cb6b61a47 Add quickfix for migrating Java annotation method calls 2015-04-23 11:22:39 +03:00
Denis Zharkov 634b1a9568 Add workaround for KT-7544
Inlining lambdas into objects or non-inlineable lambdas does not work well.

Should be reverted after issue will be fixed
2015-04-23 11:22:39 +03:00
Denis Zharkov fef568dbf0 Refactor migrational intentions
- Make them independent on element
- Extract common parts into JetWholeProjectModalByTaskCollectionAction class
2015-04-23 11:22:38 +03:00
Denis Zharkov ef79b260f4 Extract common pattern in simple intention factories 2015-04-23 08:27:44 +03:00
Denis Zharkov 1b42e2fdcc Deprecate calls of annotations' methods 2015-04-23 08:27:43 +03:00
Denis Zharkov 29bf24b7d3 Use properties of Java annotations in codegen tests
Retain obsolete versions until support for methods in Java annotations is dropped
2015-04-23 08:27:42 +03:00
Denis Zharkov 6ca7d2aad7 Regenerate test data
Add properties for Java annotations
2015-04-23 08:27:41 +03:00
Denis Zharkov 93bbd2cbbc Java: load annotations methods as properties 2015-04-23 08:10:31 +03:00
Alexander Udalov a0502d99f4 Minor, use substringBeforeLast instead of hand-written code 2015-04-23 03:20:11 +03:00
Michael Nedzelsky 7e69c414d4 JS: support new names for built-in metadata files starting with dot 2015-04-23 03:17:31 +03:00
Alexander Udalov 20cd360b07 Rename built-in metadata files starting with dot
Files starting with dot are considered as hidden on Unix systems, and sometimes
are ignored by the tools. For example, Android build tools do not package such
files to the resulting application, which causes Kotlin reflection to fail
there

 #KT-7088 Fixed
2015-04-23 03:17:29 +03:00
Alexey Sedunov 40864a554b Introduce Parameter: Add "Introduce default value" checkbox to the dialog 2015-04-22 23:56:48 +03:00
Alexey Sedunov 298dfa545f Introduce Parameter: Implement "Introduce lambda parameter" 2015-04-22 23:56:47 +03:00
Alexey Sedunov 2cc39995bb Extraction Engine: Simplify helper API 2015-04-22 23:56:46 +03:00
Zalim Bashorov 9dd527b76c Fix printing file size for TeamCity statistics 2015-04-22 19:52:00 +03:00
Ilya Gorbunov 7fba979372 Generate to[Primitive]Array() methods for generic arrays and collections.
#KT-4180 Fixed
2015-04-22 18:21:37 +03:00
Ilya Gorbunov d18b086113 Refactor stdlib generator engine.
Introduce special class to hold generic function properties.
2015-04-22 18:21:35 +03:00
Ilya Gorbunov 343edcf8d0 Specify explicitly when to generate platformName annotation. 2015-04-22 18:21:33 +03:00
Ilya Gorbunov 592e6582b3 Provide isInfinite() and isFinite() functions for Double and Float.
#KT-7126 Fixed
2015-04-22 18:21:31 +03:00
Ilya Gorbunov 5dacb5a745 Provide average() method for iterables, sequences and arrays.
#KT-3843 Fixed
2015-04-22 18:21:29 +03:00
Ilya Gorbunov f402ae8540 Ensure families and primitives have stable order, so that the code is generated in the same order each time. 2015-04-22 18:21:26 +03:00
Ilya Gorbunov 9759be5493 Generate sum() methods for arrays, iterables and sequences of Byte and Short. These overloads got explicit platformName.
Heuristics to decide when to set platformName.
#KT-3714
2015-04-22 18:21:24 +03:00
Ilya Gorbunov ccc3646bb8 Generate coerceAtLeast, coerceAtMost and coerceIn extension functions for numbers and other Comparables. 2015-04-22 18:20:47 +03:00
Ilya Gorbunov ade69ec0e9 Provide the emptySequence() method.
sequenceOf() with no arguments is equivalent to emptySequence().
#KT-7233 Fixed
2015-04-22 17:57:26 +03:00
Ilya Gorbunov ae28379493 Provide Enumeration<T>.asSequence() method to make Enumeration usable in chained operations
#KT-6828 Fixed
2015-04-22 17:57:24 +03:00
Ilya Gorbunov 899a01e8c2 Rename sequence() extension to asSequence() 2015-04-22 17:57:20 +03:00
Zalim Bashorov 60347e87aa Print size of some kotlin2js artifacts for TeamCity statistics 2015-04-22 16:37:55 +03:00
Zalim Bashorov 5ec8d72949 Minor: download Rhino as dependency instead of store it in the repository 2015-04-22 15:46:02 +03:00