Commit Graph

19354 Commits

Author SHA1 Message Date
Ilya Ryzhenkov f4b96a0a1a Add mapIndexed() function for common case withIndex().map{} #KT-3153 Fixed 2014-12-16 17:33:27 +03:00
Ilya Ryzhenkov 846014b37f Add missing sum() on Streams. 2014-12-16 17:33:27 +03:00
Ilya Ryzhenkov f7d4ca092c Deprecate size and length property on CharSequence. 2014-12-16 17:33:26 +03:00
Ilya Ryzhenkov 053586f481 Make lazy version of assert accept function with Any return value, #KT-6459 Fixed 2014-12-16 17:33:26 +03:00
Ilya Ryzhenkov 47da114599 Document String built-in class. 2014-12-16 17:33:25 +03:00
Ilya Ryzhenkov 7b8f34388b Add Module.md and document packages. 2014-12-16 17:33:25 +03:00
Ilya Ryzhenkov 3dca4a08c3 Document Pair and Triple 2014-12-16 17:33:24 +03:00
Ilya Ryzhenkov be717f48f8 Stop using deprecated APIs 2014-12-16 17:33:24 +03:00
Ilya Ryzhenkov 2b8ffeda28 Stop generating deprecated string functions, move to deprecated folder. 2014-12-16 17:33:23 +03:00
Ilya Ryzhenkov 835c74812e Add platformStatic to Charsets values. 2014-12-16 17:33:23 +03:00
Ilya Ryzhenkov cdaa984270 Remove js custom emptyList()/emptyMap() implementation. 2014-12-16 17:33:22 +03:00
Ilya Ryzhenkov 9242a3d3dc Use standard emptyList() 2014-12-16 17:33:22 +03:00
Ilya Ryzhenkov fbbb7eced1 Collect deprecated code, remove unused private ImmutableArrayList 2014-12-16 17:33:22 +03:00
Ilya Ryzhenkov 31fb24d390 Sort collections/map APIs, improve empty implementations. 2014-12-16 17:33:21 +03:00
Ilya Ryzhenkov fa0542b801 Clean size/length/first/head/empty properties and functions. 2014-12-16 17:33:21 +03:00
Ilya Ryzhenkov 828ba385ea Cleanup ordering, improve API 2014-12-16 17:33:20 +03:00
Ilya Ryzhenkov e890c2ee0d Deprecate withIndicies(), introduce optimized and fixed withIndex and forEachIndexed() 2014-12-16 17:33:20 +03:00
Alexey Sedunov b5fb09b8bc Find Usages: Support text-file search of Kotlin declarations 2014-12-16 17:24:54 +03:00
Evgeny Gerashchenko 7924568355 Added test for KT-6454 Obsolete class-files for lambdas aren't removed from output when 'inline' annotation is added to function.
The bug is reproducible only for non-incremental compilation mode, which
will be deprecated soon.

 #KT-6454 can't reproduce
2014-12-16 16:33:41 +03:00
Andrey Breslav 120c344f11 Fix access to private static native functions 2014-12-16 16:23:35 +03:00
Andrey Breslav f9fea88749 PlatformStaticGenerator reworked to use FunctionCodegen.generateMethod() 2014-12-16 16:23:35 +03:00
Andrey Breslav 6916c0f5cc Test for native property accessors 2014-12-16 16:23:34 +03:00
Andrey Breslav e591ddc4d3 Report syntax errors in box tests 2014-12-16 16:23:34 +03:00
Andrey Breslav c761a234c8 Spec for native declarations 2014-12-16 16:23:33 +03:00
Andrey Breslav 6596c6d943 Support native top-level functions 2014-12-16 16:23:33 +03:00
Andrey Breslav 56216c4bd8 Test for function with default parameters marked native 2014-12-16 16:23:32 +03:00
Andrey Breslav 229c7ad537 Report an error on native declarations marked ilnine 2014-12-16 16:23:31 +03:00
Andrey Breslav 5187694b22 Test for overriding with a native function 2014-12-16 16:23:31 +03:00
Andrey Breslav 3a8ca2608d Report error on native members of traits 2014-12-16 16:23:30 +03:00
Andrey Breslav a94a1f8a6f Report error on native declaration with a body 2014-12-16 16:23:30 +03:00
Andrey Breslav d4cf789b53 Report error on native abstract declarations 2014-12-16 16:23:30 +03:00
Andrey Breslav 76e2ae2005 Do not complain about missing bodies on native functions 2014-12-16 16:23:29 +03:00
Andrey Breslav 19d0ad7e10 Use newer dex to verify Kotlin bytecode in tests 2014-12-16 16:23:29 +03:00
Andrey Breslav 27d403ee23 Make native class object members delegate to static methods in the outer class 2014-12-16 16:23:28 +03:00
Andrey Breslav d20651b881 Support native on [platformStatic] functions 2014-12-16 15:17:33 +03:00
Andrey Breslav cba6652c05 Simplistic support for native flag 2014-12-16 15:17:33 +03:00
Svetlana Isakova b0889f0760 Minor: fixed toString 2014-12-16 14:41:56 +03:00
Svetlana Isakova bda5bab057 Captured type might be substituted in an opposite projection
out Captured (in Int) = out Int
 in Captured (out Int) = in Int
2014-12-16 14:41:56 +03:00
Nikolay Krasko 8f6f404f14 Change the way of runtime configuration in JsePsiUnifierTest 2014-12-16 13:15:35 +03:00
Nikolay Krasko 37cea8a720 Unconfigure runtime to avoid affecting further tests 2014-12-16 12:58:56 +03:00
Alexey Sedunov bbf951ff03 Move: Fix reference binding for the case of default target package
#KT-6457 Fixed
2014-12-15 20:43:00 +03:00
Alexey Sedunov bbbd46d9d6 Move: Do not add package directive if target package is empty
#KT-6455 Fixed
2014-12-15 20:42:59 +03:00
Nikolay Krasko da6e1890bd Don't lookahead too far when looking for '.' between type and parameters and for comma in function literal parameters 2014-12-15 20:20:09 +03:00
Nikolay Krasko 421bb57f50 Fix parser performance: don't do the additional lookahead when looking for the comma in parameters 2014-12-15 20:20:08 +03:00
Nikolay Krasko ba849b5940 Minor: get string with parser context during debug 2014-12-15 20:20:08 +03:00
Nikolay Krasko 4fa97c917d Warn if lookahead is too big in matchTokenStreamPredicate() 2014-12-15 20:20:07 +03:00
Evgeny Gerashchenko 6c15472bf9 Minor. Regenerated test. 2014-12-15 19:38:11 +03:00
Evgeny Gerashchenko 6abe5a425c Finding usages (which have references) in text when plaint text occurrences are not searched. 2014-12-15 19:24:04 +03:00
Alexey Tsvetkov 834725b260 JS parser minor: removed broken @see in javadoc 2014-12-15 19:16:22 +03:00
Alexey Tsvetkov 669cbb203b Reload rendrer when application changes (for tests) 2014-12-15 19:16:22 +03:00