Nikolay Krasko
8a95f23a23
Adjust formatting for FILE_ANNOTATION_LIST
2015-12-09 16:01:56 +03:00
Dmitry Jemerov
e97e82d119
use terms "lambda expression" and "anonymous function" instead of "function literal" and "function expression"
2015-12-09 13:55:40 +01:00
Alexey Sedunov
e82e4bcfc8
Inline Variable: Show error message on attempt to inline unused declaration
2015-12-08 16:21:08 +03:00
Alexey Sedunov
5c88a1c63e
Inline Variable: Parenthesize arguments of the form "e1 < e2" if the next argument has the form "e1 > e2"
...
#KT-8261 Fixed
2015-12-08 16:21:07 +03:00
Alexey Sedunov
b2bdb8ed02
Inline Variable: Inline string template entries
...
#KT-7654 Fixed
2015-12-08 16:21:05 +03:00
Alexey Sedunov
e517cbcf78
Quick Fixes: Implement "Rename unresolved reference" fix
...
#KT-8795 Fixed
2015-12-08 16:20:56 +03:00
Alexey Sedunov
8f8acf7a83
Pull Up: Drop default parameter values in function which becomes overriding. Disable function with default values if target class is the Java one
...
#KT-9833 Fixed
2015-12-08 16:20:52 +03:00
Alexey Sedunov
8fcda32287
Unit Test Tooling: Support Go to Test/Create Test actions for top-level declarations
...
#KT-10133 Fixed
2015-12-08 16:20:47 +03:00
Alexander Udalov
d3c17ec337
Report error when type parameter has a type parameter bound and any other bound
...
To prevent issues with erasure on JVM: it's unclear what such type parameter
should be erased to
2015-12-07 15:47:47 +03:00
Alexander Udalov
b1fa740341
Do not report "inconsistent bounds" when there are repeated bounds
...
Also slightly refactor DeclarationsChecker#checkSupertypesForConsistency
2015-12-07 15:47:47 +03:00
Alexander Udalov
5fbb9bfe3b
Report error on repeated upper bounds for type parameters
2015-12-07 15:47:47 +03:00
Alexander Udalov
21e64e02bd
Report error on more than one class bound for type parameters
...
Such code may behave unexpectedly when compiled to JVM
2015-12-07 15:47:47 +03:00
Pavel V. Talanov
b9ce9f8576
Script, IDE: tweak extract based refactorings to behave better in scripts
...
Fix not being able to invoke introduce variable for top level script expression
Prohibit introduce parameter and introduce property for scripts on top level
Basic test for introduce function (produces red code atm)
2015-12-02 15:14:25 +03:00
Alexey Sedunov
ffd8863875
Extract Function: Add support for member extension properties
2015-12-02 13:54:05 +03:00
Alexey Sedunov
39b46bb3ef
Extract Function: Add support for member extension functions
2015-12-02 13:54:04 +03:00
Alexey Sedunov
6abf13be41
Extract Function: Consider member property with invoke() a receiver candidate
...
#KT-9774 Fixed
2015-12-02 13:54:03 +03:00
Alexey Sedunov
03e1480476
Extraction Engine: Get rid of explicit element offset manipulation and use copyable user data instead
2015-12-02 13:54:02 +03:00
Alexey Sedunov
44bc937499
Shorten References: Fix removal of explicit companion references in the position of callee expression
...
#KT-10102
2015-12-02 13:54:01 +03:00
Alexey Sedunov
2dcc38b92f
Create from Usage: Forbid "Create parameter/local variable/property" on label references
...
#KT-10119 Fixed
2015-12-02 13:54:00 +03:00
Alexey Sedunov
bcadfd4661
Introduce Variable: Suggest choosing between single variable and
...
multi-declaration. Forbid multi-declaration for collections and arrays
#KT-10242 Fixed
2015-12-02 13:46:47 +03:00
Natalia Ukhorskaya
dc60c025c3
Support Evaluate Expression for renamed local variables in inline function
...
#KT-10179 Fixed
2015-12-01 11:48:43 +03:00
Michael Bogdanov
a932315bf9
Rename local vars from inlined function
...
#KT-9798 Fixed
2015-12-01 11:48:40 +03:00
Natalia Ukhorskaya
29778311e8
Drop unnecesary logic about additional context for lambda in debugger
2015-12-01 11:48:38 +03:00
Alexander Udalov
877129340f
Revert "Rename Extension annotation to ExtensionFunctionType"
...
This reverts commit 460dad135c .
The old compiler will not see the new runtime correctly. Postponing this until
1.0
2015-11-30 19:24:58 +03:00
Pavel V. Talanov
54addb4b1e
Script run configuration: Set working directory to a directory containing script file by default
2015-11-30 18:21:06 +03:00
Pavel V. Talanov
4a1c3f02fd
Add basic tests for KotlinStandaloneScriptRunConfiguration
2015-11-30 18:21:05 +03:00
Dmitry Petrov
f0e467e474
Rewrite mixed multiple- and single-condition 'when' properly.
...
#KT-10229 Fixed
2015-11-30 14:43:03 +03:00
Natalia Ukhorskaya
d0355a793b
Write lineNumbers for constructors
2015-11-30 12:25:51 +03:00
Natalia Ukhorskaya
9bcc9e4b1d
Smart step into for constructors
2015-11-30 12:25:46 +03:00
Natalia Ukhorskaya
062b27995c
Debugger: do not change package name for debug function
2015-11-30 12:25:45 +03:00
Natalia Ukhorskaya
002aaaa908
Debugger: fix imports if context element is inside inline lambda
2015-11-30 12:25:45 +03:00
Natalia Ukhorskaya
d2ef7b0ae0
Minor: get line start without whitespaces in KotlinExtraVariablesProvider
...
#KT-10183 Fxied
2015-11-30 12:25:44 +03:00
Alexander Udalov
460dad135c
Rename Extension annotation to ExtensionFunctionType
2015-11-30 02:51:04 +03:00
Ilya Gorbunov
f8fe3e6c1d
Restore dropped hidden declarations for binary compatibility until RC.
2015-11-29 04:37:35 +03:00
Alexander Udalov
7b3b157707
Remove PropertyMetadata from project and bytecode, migrate code to KProperty
2015-11-27 23:34:34 +03:00
Yan Zhulanow
1643441fdb
Minor: fix quickfix tests (get/set functions are now created correctly, merge issue)
2015-11-27 20:30:19 +03:00
Yan Zhulanow
9d1af5a17e
Fix tests: "infix modifier required" and "operator modifier required" errors
2015-11-27 15:51:11 +03:00
Yan Zhulanow
a3ff3ffc45
Fix tests: "Placing function type parameters after the function name" error
2015-11-27 15:51:11 +03:00
Alexey Sedunov
e37eea2b2d
Create from Usage: Add infix modifier to functions generated from binary expressions
...
#KT-10184 Fixed
2015-11-26 21:22:20 +03:00
Alexey Sedunov
5b90c09ab1
Create from Usage: Add operator modifier to indexing get/set functions
...
#KT-10185 Fixed
2015-11-26 21:22:18 +03:00
Alexey Sedunov
7a40239e64
Introduce Variable: Support destructuring declarations
...
#KT-6262
2015-11-26 21:22:16 +03:00
Natalia Ukhorskaya
67dd97b918
Mark bridge methods in lambdas classes as synthetic
...
#KT-10101 Fixed
2015-11-26 11:39:19 +03:00
Natalia Ukhorskaya
cb80a3e83a
Write lineNumber for function literal with void return value
...
#KT-9865 Fixed
2015-11-26 11:39:18 +03:00
Natalia Ukhorskaya
4a2e4312ea
Write lineNumber when inline function result is written to property
2015-11-26 11:39:17 +03:00
Ilya Gorbunov
1be4f795ed
Fix testData after deprecated toLinkedList and joinToString were dropped.
2015-11-25 18:35:04 +03:00
Mikhail Glukhikh
89e56093a2
Limit "always null" scope: only for !!, is and dot; senseless comparison rolled back; "smart constant" information for nulls #KT-10029 Fixed
2015-11-25 18:26:08 +03:00
Mikhail Glukhikh
46f4191185
Unnecessary safe call is now reported in CallExpressionResolver, removed code duplication for safe call receivers
...
See also KT-10175
2015-11-25 16:19:48 +03:00
Dmitry Petrov
da90c21284
Warn about comma-separated conditions in when without argument.
...
See KT-5143.
2015-11-25 15:39:23 +03:00
Alexey Sedunov
736813c76a
Introduce Lambda Parameter: Support extraction of string template fragments
2015-11-24 20:40:26 +03:00
Alexey Sedunov
1b162e0294
Introduce Parameter: Support extraction of string template fragments
2015-11-24 20:40:21 +03:00