Mikhail Glukhikh
987c7f5be8
Add "unnecessary local variable" inspection #KT-15958 Fixed
2017-07-18 16:37:47 +03:00
Dmitry Neverov
9d06a80519
Do not report "property can be private" on JvmField properties
...
So #KT-18970 Fixed
2017-07-18 15:48:10 +03:00
Nikolay Krasko
5281602381
Don't ignore filters in smart step over for inline calls
2017-07-18 14:39:55 +03:00
Nikolay Krasko
f664ffb06b
Check correspondent call on end token for better step over (KT-18949)
...
#KT-18949 Fixed
2017-07-18 14:39:54 +03:00
Nikolay Krasko
d282f14eac
Don't add double linenumber when return expression is absent (KT-18949)
...
#KT-18949 Fixed
2017-07-18 14:39:54 +03:00
Nikolay Krasko
a41c9d2476
Avoid state machine build for suspend function with single inline call
...
#KT-18949 Fixed
2017-07-18 14:39:54 +03:00
Nikolay Krasko
ce4f923ba0
Replace return with nop to avoid merging line instructions (KT-18949)
...
Dex ignores subsequent line numbers for same instructions and interprets
instruction after inline as if they were inlined. This makes debugger
behaves as if there's nowhere to stop on line with breakpoint.
This also makes stepping through inline function consistent with
non-inline analog. In both context debugger now stops on '}'.
#KT-18949 Fixed
#KT-17120 Fixed
2017-07-18 14:39:54 +03:00
Nikolay Krasko
fc685aa03f
Refactoring: extract common part to function
2017-07-18 14:39:54 +03:00
Nikolay Krasko
179ec84684
Refactoring: mark getTopmostElementAtOffset() as not-null
2017-07-18 14:39:54 +03:00
Mikhail Glukhikh
c0e1b3ef2d
CFG: fix label binding for last instruction of finally block
...
So #KT-18698 Fixed
2017-07-18 14:37:13 +03:00
Mikhail Glukhikh
ab0e734e7d
PseudocodeLabel: add slightly better exception diagnostics
2017-07-18 14:36:42 +03:00
Mikhail Glukhikh
9a5b5393f5
Code cleanup: CFG (several inspections applied)
2017-07-18 14:36:18 +03:00
Mikhail Glukhikh
43f9035d07
Minor test fix
2017-07-18 13:51:27 +03:00
Toshiaki Kameyama
f8cf0f2ab9
Misleading quick fix message for an 'open' modifier on an interface member #KT-18738 Fixed
2017-07-18 18:59:22 +09:00
Alexey Sedunov
d2dbc47454
Create from Usage: Remove extra space before type parameters list
...
#KT-16352 Fixed
2017-07-17 16:09:57 +03:00
Alexey Sedunov
e98af7bfc1
Create Class from Usage: Use type parameter bounds as supertypes
...
#KT-15242 Fixed
2017-07-17 16:09:55 +03:00
Alexey Sedunov
95769dc9d3
Create from Usage: Make property lateinit where possible
...
#KT-17651 Fixed
2017-07-17 16:09:54 +03:00
Alexey Sedunov
e9bf1d2ab8
Create from Usage: Add test for KT-17537
...
#KT-17537 Fixed
2017-07-17 16:09:53 +03:00
Alexey Sedunov
0365d3a3d6
Create from Usage: Do not create type parameter by constuctor reference
...
#KT-17353 Fixed
2017-07-17 16:09:52 +03:00
Alexey Sedunov
2e76a76088
Control Flow: Fix CFG usage info for double-colon expressions
...
#KT-12551 Fixed
#KT-17092 Fixed
2017-07-17 16:09:51 +03:00
Alexey Sedunov
216b28ec55
Implement Members: Do not generate 'header' keyword
...
#KT-18466 Fixed
2017-07-17 16:09:50 +03:00
Alexey Sedunov
26d6088c82
Create from Usage: Infer expected type for lambda body
...
#KT-18186 Fixed
2017-07-17 16:09:49 +03:00
Alexey Sedunov
b48feb257c
Create from Usage: Create data class property from destructuring entry
...
#KT-18540 Fixed
2017-07-17 16:09:48 +03:00
Simon Ogorodnik
a212a1bf72
Put all internal actions under Tools | Kotlin | Internal group
2017-07-17 16:03:10 +03:00
Simon Ogorodnik
4cdc3fdde9
KT-14606: Never compute decompiled text in BasicLookupElementFactory
...
#KT-14606 fixed
2017-07-17 16:03:07 +03:00
Simon Ogorodnik
6036c95511
Prevent KotlinDecompiledFileViewProvider from reading vfile when possible
2017-07-17 16:03:04 +03:00
Simon Ogorodnik
bc5872dd8f
Add completion benchmark to check completion speed
2017-07-17 16:03:02 +03:00
Nikolay Krasko
dfef1f4921
Add reference equality shortcut for equals() in light members
2017-07-17 14:50:59 +03:00
Nikolay Krasko
44ed903303
Implement equivalence of light members by origin when possible
...
Previous implementation worked through equality that used equality
of method stubs (see LightMemberOriginForCompiledMethod). But method
stubs for compiled element can be recreated when caches are outdated,
including weak reference cleaning (see ClsJavaStubByVirtualFileCache).
This could cause misbehave of find usages when java reference has an
outdated version of light element in resolution cache.
2017-07-17 14:50:59 +03:00
Toshiaki Kameyama
fda097fc3b
Correct "before" sample in description for intention Convert to enum class #KT-18722 Fixed ( #1196 )
2017-07-17 13:03:15 +02:00
Dmitry Jemerov
6baa8614e6
Fix JS tests in AbstractConfigureKotlinTest
2017-07-17 12:09:11 +02:00
Dmitry Jemerov
2c2b64d44a
AbstractConfigureKotlinTest: J2K
2017-07-17 12:09:10 +02:00
Dmitry Jemerov
4198a5c3ec
AbstractConfigureKotlinTest: rename to .kt
2017-07-17 12:09:09 +02:00
Dmitry Jemerov
0e6c9a96c7
Specify library kind when configuring library in tests
2017-07-17 12:09:04 +02:00
Dmitry Jemerov
060b8e0025
ConfigLibraryUtil: J2K
2017-07-17 11:58:57 +02:00
Dmitry Jemerov
921db30c90
ConfigLibraryUtil: rename to .kt
2017-07-17 11:58:57 +02:00
Dmitry Jemerov
0fa09adf17
Provide library kind for common libraries; get rid of autodetection
2017-07-17 11:58:57 +02:00
Dmitry Jemerov
c7e85ea28f
Better encapsulate JS library detection
2017-07-17 11:58:57 +02:00
Dmitry Jemerov
b8d453eec3
Set library kind when importing projects from Maven
2017-07-17 11:58:57 +02:00
Dmitry Jemerov
608f5892f9
Set library kind when importing projects from Gradle
2017-07-17 11:58:57 +02:00
Dmitry Jemerov
902fe1f5ce
Implement explicit library kind for JS libraries, don't autodetect
2017-07-17 11:58:57 +02:00
Dmitry Jemerov
1367e6f303
Get library versions directly, not through LibraryPresentationProvider
2017-07-17 11:58:57 +02:00
Dmitry Jemerov
2d1ac69986
JSLibraryStdDescription: J2K
2017-07-17 11:58:57 +02:00
Dmitry Jemerov
5f3366d60b
JSLibraryStdDescription: J2K
2017-07-17 11:58:57 +02:00
Dmitry Jemerov
c185730846
KotlinJsModuleConfigurator: J2K
2017-07-17 11:58:57 +02:00
Dmitry Jemerov
ffb3e2fcbc
KotlinJsModuleConfigurator: rename to .kt
2017-07-17 11:58:57 +02:00
Dmitry Jemerov
1f6788ac31
Fix CodeConformanceTest on Windows
2017-07-17 11:57:03 +02:00
Nikolay Krasko
b3e9dfcea9
Minor: fix weak warnings and formatting in KotlinReferencesSearcher.kt
2017-07-17 12:25:06 +03:00
Nikolay Krasko
d93e0adc4f
Do not wrap to light elements if Kotlin search is requested (KT-19054)
...
#KT-19054 Fixed
2017-07-17 12:25:06 +03:00
Dmitry Petrov
8c7352e668
Generate constant "" for effectively empty string
2017-07-17 09:18:41 +03:00