Commit Graph

24956 Commits

Author SHA1 Message Date
Stanislav Erokhin aa3be395a4 Extract WritableScopeStorage from WritableScopeImpl 2015-08-27 12:01:10 +03:00
Stanislav Erokhin 40c3b03a54 Minor. Change return type for method WritableScope.changeLockLevel 2015-08-27 12:01:09 +03:00
Stanislav Erokhin 3152d722cd Fix bug in ScopeUtils. 2015-08-27 12:01:09 +03:00
Stanislav Erokhin aaebe70342 Improved logic of finding conflicts for refactoring actions 2015-08-27 12:01:08 +03:00
Stanislav Erokhin 9a435e332f Fix InnerClassesScopeWrapper - remove properties and functions from this scope. 2015-08-27 12:01:07 +03:00
Stanislav Erokhin 49b294b8b4 Move MutableClassDescriptor to backend module 2015-08-27 12:01:06 +03:00
Stanislav Erokhin a4599ef5e2 Clean up MutableClassDescriptor 2015-08-27 12:01:06 +03:00
Ilya Gorbunov 84d3d42e05 Replace deprecated reverse method usages. 2015-08-27 11:45:44 +03:00
Ilya Gorbunov ca798d8d71 Rename reverse to reversed.
#KT-8171
2015-08-27 11:45:30 +03:00
Alexander Udalov 56e12787a8 Fix exception on overridding var-property with a val constructor parameter
#KT-3810 Fixed
2015-08-27 10:23:49 +03:00
Alexander Udalov 59a15092da Drop old preloader command-line interface, use new one instead 2015-08-27 08:19:51 +03:00
Alexander Udalov 2a93629305 Render original descriptor in the deprecation warning
Otherwise it gets confusing when multiple instantiations of the same deprecated
symbol (e.g. javaClass<T>()) are diagnosed with different type arguments
2015-08-27 08:19:51 +03:00
Alexander Udalov 8d9618348d Move .java and .kotlin extension properties to kotlin.jvm
Delete the old ones in package kotlin.reflect.jvm because otherwise the code
using those functions will become red in a lot less meaningful way (overload
resolution ambiguity) than if they're deleted (unresolved import)

Based on the work originally done by @dnpetrov

 #KT-8380 Fixed
2015-08-27 08:19:50 +03:00
Ilya Gorbunov b8badd59ba Introduce reversed extension for Comparator. 2015-08-27 00:10:11 +03:00
Ilya Gorbunov 5a474adf59 Unify selector parameter names. 2015-08-27 00:09:57 +03:00
Ilya Gorbunov 7d33599fc2 Parameterless nullsFirst and nullsLast and misc comparator combining functions. 2015-08-27 00:09:44 +03:00
Ilya Gorbunov 5a4e598ba7 Another approach for sorting nulls. 2015-08-27 00:09:31 +03:00
Ilya Gorbunov d49a1973e5 Change null handling in compareValuesBy(a, b, functions). Provide nullsFirst() and nullsLast() to extend Comparator<T> to Comparator<T?>. 2015-08-27 00:09:17 +03:00
Ilya Gorbunov 63110dcdf8 Remove StdLibArraysTest and include collections/ArraysTest.kt into StdLibTestToJSTest smoke tests instead.
Move helper methods, so they are available in JS semantics tests.
2015-08-27 00:09:04 +03:00
Ilya Gorbunov 521e0b679d Rename sortedDescendingBy to sortedByDescending 2015-08-27 00:08:50 +03:00
Ilya Gorbunov 002c3e850f Tests for sorting methods. 2015-08-27 00:08:37 +03:00
Ilya Gorbunov 5eb69334b4 compareBy and related Comparator constructors have the same null-comparison semantics as compareValuesBy. 2015-08-27 00:08:23 +03:00
Ilya Gorbunov 0f5c3678f8 Provide asIterable for sequences. 2015-08-27 00:08:10 +03:00
Ilya Gorbunov 6f71e54268 In-place array sorting in JS. 2015-08-27 00:07:56 +03:00
Ilya Gorbunov 8d481fc611 Deprecate all sort methods and provide sorted ones.
#KT-4903
2015-08-27 00:07:43 +03:00
Michael Nedzelsky c061a3dbd8 disable parallel compilation for Kotlin modules 2015-08-26 23:02:55 +03:00
Dmitry Jemerov ca20d9c1b3 use custom exception class to represent the "no descriptor for declaration" case 2015-08-26 17:33:57 +02:00
Nikolay Krasko a2a259552b Log isPhysical() for file 2015-08-26 13:17:02 +03:00
Nikolay Krasko 9dcd73418e Stop crashing in building report - diagnostic for EA-70372 2015-08-26 13:17:00 +03:00
Nikolay Krasko b5b5305456 Diagnostics for Rewrite at slice RESOLUTION_SCOPE key: REFERENCE_EXPRESSION (EA-64051) 2015-08-26 13:16:58 +03:00
Natalia Ukhorskaya 576b4f445c Debugger: add tests for smart casted property 2015-08-26 12:16:08 +03:00
Natalia Ukhorskaya 19e8c9edb0 Debugger: Support parameters of inlined lambda in evaluate expression 2015-08-26 12:16:08 +03:00
Natalia Ukhorskaya 32bf7d9520 Debugger: quote localVariableName if needed 2015-08-26 12:16:07 +03:00
Natalia Ukhorskaya 06b13f1292 Debugger: get topmost element at offset as contextElement 2015-08-26 12:16:06 +03:00
Natalia Ukhorskaya c6d29cc1d5 Debugger: support labels for non object references (primitive, array) 2015-08-26 12:16:05 +03:00
Natalia Ukhorskaya 35cb23ffbe Debugger: add tmp file to exception report 2015-08-26 12:16:04 +03:00
Natalia Ukhorskaya 73099c3a41 Minor: move to base class 2015-08-26 12:16:03 +03:00
Natalia Ukhorskaya bd43dbc7f4 Minor: use property access syntax if possible 2015-08-26 12:16:02 +03:00
Natalia Ukhorskaya d675c12a32 Minor: change method return type 2015-08-26 12:16:02 +03:00
Natalia Ukhorskaya d46765d460 Completion in JetCodeFragment: optimize descriptors comparasion 2015-08-26 12:16:01 +03:00
Natalia Ukhorskaya 87735749ea Fix warnings 2015-08-26 12:16:00 +03:00
Stanislav Erokhin abb18b7bb9 KT-8861 Package name vs property with wrong receiver
#KT-8861 Fixed
2015-08-25 20:43:52 +03:00
Valentin Kipyatkov 0883bfa615 Changes on code review 2015-08-25 18:56:45 +03:00
Valentin Kipyatkov 92f5ec2ce5 Overriding LookupElement.getPsiElement() for all our LookupElement's because some IDEA features may use it 2015-08-25 18:56:18 +03:00
Valentin Kipyatkov 9a641974f8 Dropped LocationWeigher because it was duplicated by proximity weigher (only preference of symbols from project sources was not duplicated but it's doubtful) 2015-08-25 18:56:18 +03:00
Valentin Kipyatkov 6c46e3ec02 Better test 2015-08-25 18:56:18 +03:00
Valentin Kipyatkov fd34ff3239 Implemented own version of LookupElementProximityWeigher (the standard one checks getObject() instanceof PsiElement)
#KT-8842 Fixed
2015-08-25 18:56:18 +03:00
Valentin Kipyatkov f86850061b Use original descriptor for statistics 2015-08-25 18:56:18 +03:00
Valentin Kipyatkov dc875194eb Better Statistician for completion 2015-08-25 18:56:17 +03:00
Valentin Kipyatkov 4bbd1927a7 Fixed usage of deprecated method 2015-08-25 18:56:17 +03:00