Alexander Udalov
a7b88e9485
Make CharSequence.length a function instead of property
...
And String.length as well.
This is done for JVM interoperability: java.lang.CharSequence is an open class
and has a function 'length()' which should be implemented in subclasses
somehow.
A minor unexpected effect of this is that String.length() is now a compile-time
constant (it wasn't such as a property because properties are not supported in
compile-time constant evaluation)
#KT-3571 Fixed
2014-11-27 20:38:17 +03:00
Alexey Sedunov
ddccc0e640
Change Signature: Update enum entries w/o delegation specifier when changing signature of enum class constructor
...
#KT-5978 Fixed
2014-11-26 13:07:29 +03:00
Stanislav Erokhin
65c9ea2465
Fix variance problems.
2014-11-17 17:45:05 +03:00
Alexey Sedunov
c487cc7838
Create From Usage: Do not generate unnecessary/skip necessary empty lines
2014-11-13 17:27:24 +03:00
Alexey Sedunov
afeb03f383
Create From Usage: Create class by annotation entry/super-call delegation specifier
2014-11-11 14:42:48 +03:00
Alexey Sedunov
1b1eb10979
Create From Usage: Create class by constructor call
2014-11-11 14:42:45 +03:00
Alexey Sedunov
b8f68acdbb
Create From Usage: Create class by reference expression
2014-11-11 14:42:42 +03:00
Alexey Sedunov
1f14d93412
Create From Usage: Create class by type reference
2014-11-11 14:42:39 +03:00
Alexey Sedunov
7123ca8ea0
Name suggester: Respect type parameter name when suggesting name for
...
variables based on that type parameter
2014-11-10 21:10:39 +03:00
Alexey Sedunov
f81c2d5ff7
Name suggester: Improve name suggestion strategy for type parameters
2014-11-10 21:10:37 +03:00
Alexey Sedunov
2f98af1a8e
Callable Builder: Do not skip unused type parameters
2014-11-10 21:10:35 +03:00
Alexey Sedunov
42a74f55da
Create From Usage: Remove "from usage" words from action text
2014-11-10 21:10:29 +03:00
Valentin Kipyatkov
cf04ba4943
Corrected test data
2014-10-31 21:07:51 +03:00
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
b2588f610a
Create From Usage ("set" operation): Support expressions of the form a[i]++
2014-10-22 18:42:58 +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
Evgeny Gerashchenko
b653598df2
Fixed EA-61504.
2014-10-15 11:51:01 +04:00
Evgeny Gerashchenko
ef93a71e78
Made "Remove val/var from parameter" quick fix local.
2014-10-15 11:51:01 +04:00
Valentin Kipyatkov
a124827c4e
Fixed KT-5611 Completion doesn't include not imported extensions for implicit receiver
...
#KT-5611 Fixed
2014-10-14 15:47:44 +04:00
Alexey Sedunov
2b43aad4f9
Create From Usage: Fix rendering of nullable types
2014-10-14 01:59:54 +04:00
Alexey Sedunov
f0a0df94b5
Create From Usage: Add support of property delegates
2014-10-14 01:59:50 +04:00
Alexey Sedunov
2e6d4b3501
Create From Usage: Support EXPRESSION_EXPECTED_PACKAGE_FOUND diagnostic
2014-10-14 01:59:49 +04:00
Alexey Sedunov
77a5ddbcd0
Create From Usage: Do not suggest Java classes as receiver type candidates (for now)
2014-10-14 01:59:47 +04:00
Alexey Sedunov
497e4fab79
Create From Usage: Generate Unit-typed declaration if result is unused
...
#KT-5903 Fixed
2014-10-14 01:59:44 +04:00
Nikolay Krasko
b06b3ab4c4
Insert empty lines after functions and properties (KT-4002)
...
#KT-4002 Fixed
2014-10-14 00:39:23 +04:00
Andrey Breslav
0cbbb6a0db
Test data fixed
2014-10-13 15:37:47 +04:00
Pavel V. Talanov
c04b52561e
"abstract" modifier on enum class is an error
...
#KT-3454 Fixed
2014-10-10 17:43:32 +04:00
Valentin Kipyatkov
05aaea48e9
Added API in PSI to add/remove modifiers and refactored quickfixes to use it
2014-10-08 15:41:48 +04:00
Valentin Kipyatkov
5ae756addb
Quickfix to correct signature of method with 'override' to not include 'override' in signature text
2014-10-06 21:26:55 +04:00
Valentin Kipyatkov
317607db70
Corrected quickfix to correct signature of method with 'override' to:
...
- not loose annotations and other stuff
- not include visibility modifiers into the name and into the code generated
2014-10-06 21:26:55 +04:00
Alexey Sedunov
ae7c5e1323
Create From Usage: Do not fail on qualifier receiver when it doesn't have type
2014-10-03 20:18:44 +04:00
Alexey Sedunov
5ade563902
Create From Usage: Join local "vars" with their initializers
2014-10-03 20:18:43 +04:00
Alexey Sedunov
865c793561
Create From Usage: Do not suggest "val" for references used as assignment left-hand side
2014-10-03 20:18:42 +04:00
Alexey Sedunov
58126b28ca
Create From Usage: Quick-fix for properties
2014-10-03 20:18:41 +04:00
Alexey Sedunov
8386bcd4e0
Create Local Variable From Usage: Support lambdas
2014-10-03 20:18:39 +04:00
Alexey Sedunov
6ad2157806
Create From Usage: Quick-fix for value parameters
2014-10-03 20:18:39 +04:00
Svetlana Isakova
ce01c61811
Rename: auto cast -> smart cast
2014-10-01 18:52:52 +04:00
Alexey Sedunov
4ca39e8f9a
Create From Usage: Quick-fix for local variables
2014-09-30 19:55:46 +04:00
Alexey Sedunov
e9b16f3e1b
Create Function From Usage: Use Any if error type is inferred
2014-09-30 19:55:44 +04:00
Alexey Sedunov
854962a139
Create Function From Usage: Fix availability condition
2014-09-30 19:55:43 +04:00
Alexey Sedunov
a6ba3a569d
Create From Usage: Move "Create function"-related tests to separate directory
2014-09-30 19:55:43 +04:00
Alexey Sedunov
ff29e581db
Create Function From Usage: Add empty lines when inserting new function
2014-09-29 01:27:28 +04:00
Alexey Sedunov
6043c6d0a7
Create Function From Usage: Quick-fix for functions invoked via call expressions
2014-09-29 01:27:25 +04:00
Alexey Sedunov
67df2b448f
Create Function From Usage: Quick-fix for invoke convention
2014-09-29 01:27:23 +04:00
Alexey Sedunov
cf59af6c7a
Create Function From Usage: Quick-fix for unary operations
2014-09-29 01:27:22 +04:00
Alexey Sedunov
0582cf5db1
Create Function From Usage: Quick-fix for binary operations
2014-09-29 01:27:20 +04:00
Alexey Sedunov
424c086ba3
Sort list of declarations suggested for auto-import by proximity
...
#KT-2050 Fixed
2014-09-11 21:04:27 +04:00