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
Valentin Kipyatkov
d7bc7871c5
Preference of properties to functions made lower priority in completion
2015-08-25 18:56:17 +03:00
Valentin Kipyatkov
83feffec63
Shorter rendering in StatisticsInfo
2015-08-25 18:56:17 +03:00
Valentin Kipyatkov
628ce4ea32
Better sorting of variants in add import popup
2015-08-25 18:56:17 +03:00
Valentin Kipyatkov
5a4cd96c75
Fix in extractableAnalysisUtil.kt
2015-08-25 18:56:17 +03:00
Valentin Kipyatkov
0f332bd8b9
Refactored sorting in completion
...
Also changed semantics of DeclarationDescriptor.importableFqName - it now returns null when descriptor cannot be referenced by import + dropped DeclarationDescriptor.importableFqNameSafe
2015-08-25 18:56:16 +03:00
Valentin Kipyatkov
68c0c83879
Better sorting: current package is preferred
2015-08-25 18:56:16 +03:00
Valentin Kipyatkov
b4e71364a3
Super-naive implementation of CompletionStatistician
2015-08-25 18:56:16 +03:00
Valentin Kipyatkov
9837d383a9
Completion and add import popup to use same sorter
...
#KT-8842 In progress
2015-08-25 18:56:16 +03:00
Valentin Kipyatkov
adea67b219
KT-7790 Import popup should show the most preferable item in its text
...
#KT-7790 Fixed
2015-08-25 18:56:16 +03:00
Valentin Kipyatkov
32cecf5a4c
KT-8828 Parameter name and type completion should not pop up when typing-in parameter name in template mode
...
#KT-8828 Fixed
2015-08-25 18:56:15 +03:00