Commit Graph

28025 Commits

Author SHA1 Message Date
Ilya Gorbunov 6bac3e1986 Drop Ranges, Progressions, ProgressionIterators for Double and Float.
Undeprecate generic Comparable.rangeTo, but return private implementation instead.
Undeprecate contains and coerceIn for generic ranges.
2015-11-11 03:53:47 +03:00
Ilya Gorbunov 4d2f9b82da reversed() behavior changed for progressions. Stepped progression behavior changes: 'end' property is now deprecated, use 'last' instead. 2015-11-11 03:53:45 +03:00
Ilya Gorbunov ead333531c Update resolve test, since IntRange inherits iterator() from IntProgression and doesn't reimplement it itself. 2015-11-11 03:53:43 +03:00
Ilya Gorbunov 5f675c55ed Fix deprecated ranges and range member usages in tests. 2015-11-11 03:53:42 +03:00
Ilya Gorbunov 5ebb3d20e8 Change internal implementation of progression: use first, last instead of start, end
Keep the end value as it was passed to progression constructor.
Deprecate primary progression constructor and introduce factory method in companion object.
2015-11-11 03:53:40 +03:00
Ilya Gorbunov 2887338f01 Rename InclusiveRange to ClosedRange 2015-11-11 03:53:38 +03:00
Ilya Gorbunov 25da037868 Update range iteration tests and regenerate test data. 2015-11-11 03:53:37 +03:00
Ilya Gorbunov 8a6821d53a Throw correct exception for zero increment.
Deprecate public functions in progression utils.
2015-11-11 03:53:35 +03:00
Ilya Gorbunov ffa8faab80 Make progression iterators internal. 2015-11-11 03:53:32 +03:00
Ilya Gorbunov 5e6d16103e Remove deprecated ranges from tests and take into account that Byte and Short rangeTo now returns IntRange. 2015-11-11 03:53:31 +03:00
Ilya Gorbunov 854d376988 Eliminate byte and short ranges and progressions from range construction functions' return type. 2015-11-11 03:53:29 +03:00
Ilya Gorbunov 9eb5ba910c Do not reimplement Iterable until Progression is dropped. 2015-11-11 03:53:28 +03:00
Ilya Gorbunov 6ac0ac01b3 Deprecate Byte and Short ranges and progressions.
Inherit TRange from TProgression.
Remove InclusiveRangeProgression and leave generic Progression deprecated.
2015-11-11 03:53:26 +03:00
Ilya Gorbunov e699ce9e95 Introduce InclusiveRange and InclusiveRangeProgression and deprecate Range and Progression interfaces. 2015-11-11 03:53:25 +03:00
Ilya Gorbunov cea27dd716 Disable check for "Access to tree elements not allowed in tests" in completion tests. 2015-11-11 03:53:23 +03:00
Ilya Gorbunov 84492fd311 Apply hack to restore mapping between PsiFiles and VirtualFiles, otherwise built-ins psi elements will become invalid in next test. 2015-11-11 03:53:21 +03:00
Ilya Gorbunov 16d56355c3 Special crafting of ClassId when implClassName is nested DefaultImpls 2015-11-11 03:53:20 +03:00
Ilya Gorbunov 2a7a6688d0 Remove obsolete condition from isKotlinJvmCompiledFile() 2015-11-11 03:53:18 +03:00
Ilya Gorbunov 8bdd1e3246 Sorting optimizations: do not make excessive copies, introduce methods to sort the whole array.
#KT-9904 Fixed
2015-11-11 03:29:40 +03:00
Ilya Gorbunov 3e81cdfc5d Deprecate mapIndexedTo for Maps. 2015-11-11 03:12:19 +03:00
Ilya Gorbunov 9323f61eaf Introduce T.addTo(MutableCollection<T>), mapNotNull and mapIndexedNotNull extensions.
#KT-4410 Fixed
2015-11-11 03:12:17 +03:00
Ilya Gorbunov 008a8059cf Introduce filterIndexed
#KT-9502 Fixed
2015-11-11 02:42:52 +03:00
Ilya Gorbunov ee759c10c8 Minor: regenerate docs. 2015-11-11 02:42:50 +03:00
Valentin Kipyatkov d829f585f7 Changes on code review 2015-11-11 01:26:20 +03:00
Valentin Kipyatkov 4f9866f62f Created quickfix for KT-9805 2015-11-11 01:26:20 +03:00
Valentin Kipyatkov 80a788cf53 Code transformation 2015-11-11 01:26:20 +03:00
Stanislav Erokhin a3b11f4214 Created warning for KT-9805
#KT-9805 In Progress
2015-11-11 01:26:20 +03:00
Valentin Kipyatkov 8664d778ad Merged 2 files 2015-11-10 22:24:46 +03:00
Valentin Kipyatkov f391d194de Presentation for extension property to include receiver type 2015-11-10 22:24:46 +03:00
Valentin Kipyatkov 6a52cc76d0 Code simplifications 2015-11-10 22:24:46 +03:00
Valentin Kipyatkov 6006969ab9 Converted to Kotlin 2015-11-10 22:24:46 +03:00
Nikolay Krasko 774b3269d6 Remove paragraph char - it ruins builds sometimes 2015-11-10 20:46:17 +03:00
Nikolay Krasko 2dd2a8dd65 Forgotten rename for in *.flex files after jet->kt rename 2015-11-10 20:46:17 +03:00
Mikhail Glukhikh 0d35033106 Introduction of CastedClassReceiver and its handling in codegen #KT-6744 Fixed
ClassReceiver converted to Kotlin
Also #KT-7617 Fixed
2015-11-10 20:20:51 +03:00
Natalia Ukhorskaya e1134b278c Minor: minimize number of parameters 2015-11-10 18:38:21 +03:00
Natalia Ukhorskaya ea50d8af02 Debugger: initial support for member extension functions in evaluate expression 2015-11-10 18:38:19 +03:00
Natalia Ukhorskaya ba9e06d25b Make parameter MultiMap 2015-11-10 18:38:15 +03:00
Natalia Ukhorskaya 12c05fc602 Minor: extract functions to separate file 2015-11-10 18:38:13 +03:00
Natalia Ukhorskaya 5fcd5396b6 Add option to extract function for wrapping member extension function with with { } 2015-11-10 18:38:11 +03:00
Natalia Ukhorskaya 1e0b70247b Add debug log for evaluate expression 2015-11-10 18:38:08 +03:00
Natalia Ukhorskaya 6c61d437f1 Insert imports in codeFragment correctly. Add test 2015-11-10 18:37:56 +03:00
Valentin Kipyatkov fd1ff51233 Minor changes on code review 2015-11-10 17:26:20 +03:00
Valentin Kipyatkov 8942780640 KtCodeFragement to implement getImportDirectives() correctly 2015-11-10 17:26:19 +03:00
Valentin Kipyatkov afc968fe83 Minor 2015-11-10 17:23:11 +03:00
Valentin Kipyatkov bba960f1a5 Moved enum to top level 2015-11-10 17:23:11 +03:00
Valentin Kipyatkov fe7f79428d Intention to import members with '*' 2015-11-10 17:23:11 +03:00
Valentin Kipyatkov d3f04c6310 Fixed for companion object members 2015-11-10 17:23:11 +03:00
Valentin Kipyatkov d599b77ece Works also for top level fun - why not? 2015-11-10 17:23:11 +03:00
Valentin Kipyatkov 870fc9284b KT-4945 Intention "Introduce static import" (for single symbol)
#KT-4945 Fixed
2015-11-10 17:23:10 +03:00
Valentin Kipyatkov 394b4f7cd4 Removed todo 2015-11-10 17:20:01 +03:00