Dmitry Jemerov
0ec57e7fee
add missing scope checks for highlight usages (EA-75896)
...
#KT-10038 Fixed
2015-12-08 16:45:19 +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
0af2243245
J2K: KotlinInlineValHandler (conversion and refactoring)
2015-12-08 16:21:03 +03:00
Alexey Sedunov
2fef2763ab
J2K: KotlinInlineValHandler (rename to .kt)
2015-12-08 16:21:02 +03:00
Alexey Sedunov
f4135a0a9f
J2K: AbstractInlineTest
2015-12-08 16:21:00 +03:00
Alexey Sedunov
9df3ce018b
J2K: AbstractInlineTest (rename to .kt)
2015-12-08 16:20:58 +03:00
Alexey Sedunov
f6b374f829
Inline Variable: Fix dialog text for non-local variables
...
#KT-6365 Fixed
2015-12-08 16:20:57 +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
d850d7bbad
Change Signature: Parenthesize functional type of receiver in the signature preview
...
#KT-8737 Fixed
2015-12-08 16:20:53 +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
80051b8303
Create from Usage: Locate new declaration using RangeMarker
...
#KT-9197 Fixed
2015-12-08 16:20:50 +03:00
Alexey Sedunov
99c88cb0c5
Line Marking: Use new-style icons for Kotlin test classes/functions
...
#KT-10235 Fixed
2015-12-08 16:20:48 +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
Mikhail Glukhikh
d08f6f8238
DataFlowInfo Refactoring: getNullability() --> getCollectedNullability(); getPossibleTypes() --> getCollectedTypes()
2015-12-08 11:23:44 +03:00
Mikhail Glukhikh
96d0c4a1db
Nullability bug fix in the source code
2015-12-08 10:13:22 +03:00
Stanislav Erokhin
11c86405bf
Fix ClassKind for Serializable and change ClassKind to INTERFACE for error classes.
2015-12-08 00:16:16 +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
Alexander Udalov
5541224288
Minor, add test on annotation on type argument
2015-12-07 15:47:47 +03:00
Denis Zharkov
9c73502bdc
Partially revert "Fix project source to overcome bootstrap problem"
...
Adjust code to new generic signatures generated by Kotlin compiler
This reverts commit 0fd2484bc9 .
2015-12-04 10:19:48 +03:00
Nikolay Krasko
a19708693b
Update kotlin run configuration editor
...
- Remove deprecated component for selecting JRE
- Update module selector
2015-12-04 01:03:26 +03:00
Nikolay Krasko
8683582c40
Fix red code in AbstractEditorForEvaluateExpressionTest.kt
2015-12-03 18:59:55 +03:00
Dmitry Jemerov
ce9012c352
fix compilation after changes in markdown library
2015-12-02 19:44:46 +01:00
Dmitry Jemerov
05a62c5892
avoid unnecessary reads of file content during indexing
2015-12-02 18:09:19 +01: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
3c87ccc5ff
Move File: Reimplement Move dialog for Kotlin files. Do not show "Search for references" option (consider it true in all cases)
...
#KT-10118 Fixed
2015-12-02 13:53:59 +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
Stanislav Erokhin
8807cd828f
Removed MemberScope.getPackage
2015-12-01 15:38:04 +03:00
Pavel V. Talanov
aa1a08fe7a
Minor, getModuleInfo: improve on failure messages
2015-12-01 14:53:16 +03:00
Pavel V. Talanov
bc816851f1
getModuleInfo: Provide utility to default to null instead of logging an error
...
Use it to workaround cases when java resolve references some unexpected classes/files, referencing non-physical Dummy.java in particular
2015-12-01 14:53:15 +03:00
Pavel V. Talanov
5e35be347c
getModuleInfo: Correct module info for members of light classes for decompiled Kotlin classes
2015-12-01 14:53:12 +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
Natalia Ukhorskaya
cd5e406876
Minor: fix warnings
2015-12-01 11:48:41 +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
Dmitry Petrov
76931affc6
KT-10139:
...
Non-exhaustive 'when' without 'else' used in expression is an error
regardless of expected type: it can't be an expression, even of type Unit.
2015-12-01 10:36:40 +03:00
Denis Zharkov
0fd2484bc9
Fix project source to overcome bootstrap problem
2015-12-01 08:21:02 +03:00
Ilya Gorbunov
e5dd719eec
Fix warning about incompatible types.
2015-12-01 01:35:19 +03:00
Ilya Gorbunov
ea60ab74a7
Replace deprecated toMap usages with toMapBy
2015-12-01 01:18:44 +03:00
Andrey Breslav
8544a5ab5f
Remove "This" keyword
2015-11-30 19:36:33 +03:00