Commit Graph

2204 Commits

Author SHA1 Message Date
Alexey Sedunov cede5ac58b Create From Usage: Fix type substitution for no-receiver calls 2014-10-28 19:15:06 +03:00
Alexey Sedunov abbbd198fd Create From Usage: Use supplied type arguments to infer function type parameters 2014-10-28 19:15:05 +03:00
Alexey Sedunov a13f334df2 Find Usages: Restrict search scope for private class members
#KT-6124 Fixed
2014-10-28 19:15:03 +03:00
Valentin Kipyatkov 11fd8fe392 Convert to expression body: fixed type selection for public override 2014-10-28 15:40:11 +03:00
Nikolay Krasko d1fe9b71ef Make line break before '}' optional
#KT-6142 Fixed
2014-10-28 01:50:51 +04:00
Nikolay Krasko 0cd95b5514 Formatter: empty lines between declarations 2014-10-28 01:50:50 +04:00
Alexander Udalov 685a1c38e2 Fix indent in built-in sources 2014-10-27 17:17:26 +03:00
Natalia Ukhorskaya d9ac8155da Debugger: wrong stepping through the loop with continue label
#KT-5776 Fixed
 #KT-5664 Fixed
2014-10-24 15:59:39 +04:00
Natalia Ukhorskaya ffba1b6fa0 Debugger tests: render line properly 2014-10-24 15:59:38 +04:00
Natalia Ukhorskaya 3900ee34ae Debugger tests: move stepping tests 2014-10-24 15:59:37 +04:00
Natalia Ukhorskaya cce22c0df9 Debugger: implement getSourcePosition for fields 2014-10-24 15:59:36 +04:00
Valentin Kipyatkov 304c826b47 Fixed KT-6128 Code completion does not work inside function literal if it's dependant on declarations below
#KT-6128 Fixed
2014-10-24 15:14:26 +04:00
Valentin Kipyatkov d13fd19a63 Added feature to "Convert to expression body" intention: selection for easier explicit type removal 2014-10-24 14:19:41 +04:00
Alexey Sedunov 27977cda23 Move: Test data addendum 2014-10-22 21:07:10 +04:00
Pavel V. Talanov a65f0d3b2a Use PsiElement#getResolveScope() instead of custom helper
Fix extensions and types completion completion in code fragments in context of library source files
Also affects completion in files not in our project (not tested)
2014-10-22 18:56:33 +04:00
Pavel V. Talanov e88db57214 Test completion for code fragments in context of library source 2014-10-22 18:56:29 +04:00
Pavel V. Talanov 8d9f17d09d Reconfigure KotlinDebuggerTestCase
It is hiding a problem: evaluate expression fails in libraries
2014-10-22 18:56:28 +04:00
Alexey Sedunov 925177f3d8 Move: Fix rebinding of references to singleton members and Java statics
#KT-6082 Fixed
2014-10-22 18:43:14 +04:00
Alexey Sedunov bc7ae4186b Move: Do not rebind references to the declaration under move 2014-10-22 18:42:59 +04:00
Alexey Sedunov b2588f610a Create From Usage ("set" operation): Support expressions of the form a[i]++ 2014-10-22 18:42:58 +04:00
Alexey Sedunov b5e1fe613c Extract Function: Take duplicates into account when choosing placement of extracted function
#KT-5916 Fixed
2014-10-22 18:42:57 +04:00
Alexey Sedunov c492ffee08 PSI Pattern Matching: Prefer strongly matched children over weakly matched parents 2014-10-22 18:42:55 +04:00
Alexey Sedunov 40da4bd423 Extract Function: Do not allow property extraction if return type is Unit
#KT-6017 Fixed
2014-10-22 18:42:55 +04:00
Alexey Sedunov f5f1aec47b Create From Usage: Add support of get/set functions in property delegates
#KT-5977 Fixed
2014-10-22 18:42:54 +04:00
Alexey Sedunov d4a9b922e5 Create From Usage: Fix template insertion when target container is not empty 2014-10-22 18:42:52 +04:00
Alexey Sedunov 07a2a16232 Type-related quick fixes: Render types using fully qualified names 2014-10-22 18:42:51 +04:00
Nikolay Krasko 1a7fd756e5 Check that removing open brace is out-of-block change 2014-10-22 18:18:10 +04:00
Nikolay Krasko 798a6bf689 Temp workaround: force out-of-block modification for properties with nullable types
Initializers for properties with nullable types are analyzed with binding context common for all declarations.
This can cause invalid elements are left in the cache guarded with out-of-block  modification tracker. This workaround forces increment for such cases.
2014-10-22 18:18:09 +04:00
Nikolay Krasko 5cdd5f580d Rewrite out-of-block modifier increment algorithm
1. Search the top-level function or property (only they can produce blocks that won't affect other declarations)
    2. Check if current position is hidden by this declaration

    O^2 behaviour is removed
2014-10-22 18:18:09 +04:00
Valentin Kipyatkov 34d4477a12 Dropped test that cannot work anymore 2014-10-22 17:05:49 +04:00
Valentin Kipyatkov 4fd417d419 Fixing code completion in function literal parameters
#KT-4047 Fixed
 #KT-5877 Fixed
2014-10-22 15:49:12 +04:00
Valentin Kipyatkov 59b66e7579 Fixed KT-6074 Package facade classes are shown in completion in kotlin files
#KT-6074 Fixed
2014-10-22 15:48:53 +04:00
Valentin Kipyatkov d8dbc46867 Fixed KT-6075 Qualified name inserted when completing class with class object
#KT-6075 Fixed
2014-10-22 15:48:35 +04:00
Valentin Kipyatkov 3a2a7427e7 Fixed caret position for KT-5906 Smart completion of anonymous object should preselect single method body
#KT-5906 Fixed
2014-10-22 15:48:34 +04:00
Valentin Kipyatkov 7f55c0626f Fixed KT-6033 Smart completion: wrong replacement range by Tab for item with all arguments at once
#KT-6033 Fixed
2014-10-22 15:48:34 +04:00
Valentin Kipyatkov a84488f59a Fixed KT-5985 Smart completion does not insert comma for constructor of nested data class
#KT-5985 Fixed
2014-10-22 15:48:17 +04:00
Valentin Kipyatkov f64f08c9b6 Checked that KT-5984 has been fixed already 2014-10-22 15:48:00 +04:00
Valentin Kipyatkov af883d9165 Ordering items in smart completion for 'it' 2014-10-22 15:47:47 +04:00
Valentin Kipyatkov f5f5b514d4 Ordering items in smart completion for nullable 2014-10-22 15:47:33 +04:00
Valentin Kipyatkov 4068879d84 Ordering items in smart completion for boolean 2014-10-22 15:47:17 +04:00
Valentin Kipyatkov 9cf50154d2 Ordering items in smart completion for function type 2014-10-22 15:46:56 +04:00
Valentin Kipyatkov 65c30902e7 KT-6028 Smart completion items priority
#KT-6028 Fixed
2014-10-22 15:45:16 +04:00
Valentin Kipyatkov e6dbfac232 Fixed smart completion of functions with "::"
#KT-6073 Fixed
2014-10-22 15:42:36 +04:00
Valentin Kipyatkov 86a9f47f6c Fixed KT-6056 Smart completion does not filter out inaccessible declarations
#KT-6056
2014-10-22 15:40:20 +04:00
Alexander Udalov ae401cac0f Prohibit type parameters for enum classes
#KT-5696 Fixed
2014-10-21 00:16:07 +04:00
Alexander Udalov 6ddc063a76 Regenerate test data on enums
Now they have final equals, hashCode and compareTo
2014-10-17 21:27:24 +04:00
Natalia Ukhorskaya be73ec2cc9 KotlinEvaluateExpressionTestGenerated:testSimple: add comment 2014-10-17 11:46:25 +04:00
Valentin Kipyatkov 79123d6bb6 Minor 2014-10-16 15:14:23 +04:00
Valentin Kipyatkov 6b163bca8a Keyword completion uses simple prefix matching only 2014-10-16 15:14:23 +04:00
Valentin Kipyatkov 1e5ea703b5 Added a test 2014-10-16 15:14:23 +04:00