Commit Graph

4276 Commits

Author SHA1 Message Date
Alexey Sedunov 609154bab3 Generalize movable element constraint
#KT-4468 Fixed
 #KT-4376 Fixed
2014-01-29 15:58:51 +04:00
Alexey Sedunov 8a0867a9c3 Enable Type Hierarchy for Kotlin classes referenced by non-Kotlin code #KT-4414 Fixed 2014-01-29 15:58:51 +04:00
Alexey Sedunov 774e6e23e9 Support "Find usages" for declarations contained in the library
#KT-4452 Fixed
2014-01-29 15:58:49 +04:00
Andrey Breslav 6a29c38e5b Components across the project use StorageManager 2014-01-29 15:38:44 +04:00
Natalia Ukhorskaya fd3f852a93 Annotation parameter must be constant on vararg and array arguments 2014-01-28 18:21:43 +04:00
Natalia Ukhorskaya a71e062504 Insert proper default value when overriding property of type float, double, char 2014-01-28 18:21:37 +04:00
Alexander Udalov a1fa230d82 Fix built-ins reference resolve tests
Built-in sources are contained now in two directories: compiled and
non-compiled (native). kotlin-plugin.jar has them both under 'jet/', but for
tests we manually specify where to look for the former, as it was for the
latter in LightClassUtil.java.

Simplify code in JetReferenceUtil to have almost the same meaning as in
JetPsiReference.multiResolve()
2014-01-27 20:36:08 +04:00
Alexander Udalov 61ad9fba4a Remove duplicated sources of built-ins
BuiltInsSerializer now serializes built-ins found in two source roots:
core/builtins/native and core/builtins/src

Add return types to some declarations in core/builtins/src, because now that
BuiltInsSerializer processes them, it launches lazy resolution which can't
always deduce the return type
2014-01-27 18:33:48 +04:00
Alexander Udalov b5a75b96fa Show 'Logs' tab and extensions in run configurations
The code is copied from JUnitConfiguration, TestNGConfiguration and
ApplicationConfiguration (it's the same in those three places)
2014-01-27 17:17:44 +04:00
Zalim Bashorov d032b5589c Frontend: fixed resolve annotation parameters on properties, accessors, accessor parameters, function parameters when not need complete analysis. 2014-01-27 15:34:55 +04:00
Alexey Sedunov 624ac55415 Add more "Safe Delete" tests for value parameters 2014-01-24 15:24:35 +04:00
Alexey Sedunov 001d95f4b8 Forbid safe delete action if target element is a property setter parameter 2014-01-24 15:24:32 +04:00
Alexey Sedunov 83c9c49125 Add Safe Delete tests for extension functions and properties 2014-01-24 15:24:30 +04:00
Alexey Sedunov 572e09e9ea Reuse Java safe delete for parameters in Kotlin declarations 2014-01-24 15:24:29 +04:00
Alexey Sedunov 1e7297015a Refactoring: Extract method 2014-01-24 15:24:26 +04:00
Alexey Sedunov c137167290 Search property declaration together with its accessor(s) 2014-01-24 15:24:24 +04:00
Alexey Sedunov bb04c5fd95 Use light element origin instead of getNavigationElement() 2014-01-24 13:10:29 +04:00
Alexey Sedunov 9eac148555 Extract base interface for Kotlin light elements 2014-01-24 13:10:28 +04:00
Alexey Sedunov f694b658ef Reuse Java safe delete for type parameters in Kotlin declarations (aside of usages in Kotlin files) 2014-01-24 13:10:27 +04:00
Alexey Sedunov 598a3214d2 Refactoring: Extract methods 2014-01-24 13:10:26 +04:00
Alexey Sedunov 2c707ec801 Reuse Java safe delete for non-local Kotlin properties 2014-01-24 13:10:24 +04:00
Alexey Sedunov b9ddf3a992 Fix warnings 2014-01-24 13:10:23 +04:00
Alexey Sedunov fffae7b6a4 Forbid "safe delete" for anonymous objects 2014-01-24 13:10:23 +04:00
Alexey Sedunov 5cfb07072c Reuse Java safe delete for Kotlin classes and objects 2014-01-24 13:10:22 +04:00
Alexey Sedunov d432c10251 Reuse Java safe delete for non-local functions in Kotlin 2014-01-24 13:10:20 +04:00
Alexey Sedunov e70af5d372 Improvements in element description provider (proper treatment of light classes/methods, support of simple vs qualified names) 2014-01-24 13:10:19 +04:00
Alexey Sedunov fc848ec263 Translate "Safe Delete" usage info classes to Kotlin 2014-01-24 13:10:18 +04:00
Valentin Kipyatkov 3e4b0d960a Added missing intention description 2014-01-23 20:27:36 +04:00
Valentin Kipyatkov 020ea99220 Intention "Convert to expression body" 2014-01-23 18:50:26 +04:00
Valentin Kipyatkov d01ff28212 Quickfix and intention tests refactoring: refer to intention action by class when checking that it's not available (instead of listing all available actions) 2014-01-23 18:46:27 +04:00
Valentin Kipyatkov 3028cec4cd More correct code transformations: do not perform formatter's job on yourself 2014-01-23 18:46:26 +04:00
Alexander Udalov d4c98ec18c Prevent annoying tooltip in Kotlin project
Module 'builtins' has no dependency on kotlin-runtime.jar, yet it has a lot of
Kotlin files. Add jet.Unit to the list of marker classes as an example of the
class not from the stdlib, but from built-ins. Since 'builtins' has jet.Unit in
its classpath, no tooltip is displayed
2014-01-22 19:11:42 +04:00
Andrey Breslav 0f301e0d2a Support force-resolving lazy annotations 2014-01-22 19:04:43 +04:00
Andrey Breslav 04b47439bd Use findAnnotation() instead of iterating through all annotations 2014-01-22 19:04:43 +04:00
Andrey Breslav 2ac0853225 Make room for laziness in the Annotations interface 2014-01-22 19:04:42 +04:00
Evgeny Gerashchenko 847d69ee2e Added tests for class object and nested objects. 2014-01-21 18:32:59 +04:00
Evgeny Gerashchenko 8e442bc509 Moved test data. 2014-01-21 18:32:58 +04:00
Evgeny Gerashchenko 461b64e0e7 Removed old injava completion test (all cases are covered by common source/binary tests). 2014-01-21 18:32:57 +04:00
Evgeny Gerashchenko d502c5af64 Moved injava handler test data. 2014-01-21 18:32:56 +04:00
Evgeny Gerashchenko a75490803a Test for completion of kotlin sources in java. Reused same test data. 2014-01-21 18:32:55 +04:00
Evgeny Gerashchenko e4b9c7fd40 Test for completion of kotlin binaries in java. 2014-01-21 18:32:54 +04:00
Alexey Sedunov 3e6f879571 Show call sites of overriden members in "Caller Hierarchy"
#KT-4395 Fixed
2014-01-21 13:53:22 +04:00
Alexey Sedunov 7ec21fc5ca Reuse applicability criteria 2014-01-21 13:31:32 +04:00
Alexey Sedunov c42e48ef21 Remove unnecessary overriding method 2014-01-21 13:31:32 +04:00
Andrey Breslav ce1702d633 Replace a hack (Internals class) with a less-of-a-hack workaround
LockBasedLazyResolveStorageManager is put into the same package as LockBasedStorageManager
2014-01-20 23:01:19 +04:00
Pavel V. Talanov 491e8f2edb Formatter refactoring: move formatting rules to a separate file to avoid mixing up with helper code 2014-01-20 19:54:47 +04:00
Pavel V. Talanov 74dfac4bdb Formatter settings: expand example to demonstrate some of the new options 2014-01-20 19:54:46 +04:00
Pavel V. Talanov 4ef7086e5c Formatter: force keyword to be on exactly next line if the corresponding option is set 2014-01-20 19:54:45 +04:00
Pavel V. Talanov 53d503e242 Formatter: support "catch on new line" and "finally on new line" options 2014-01-20 19:54:44 +04:00
Pavel V. Talanov 7dc7db04b3 Formatter: support "while on new line" option 2014-01-20 19:54:43 +04:00