Dmitry Gridin
403801b0b3
Fix exception when add import
...
#KT-30524 Fixed
2019-03-21 16:35:43 +07:00
Dmitry Gridin
e11072b8c2
Improve: add more cases for MoveVariableDeclarationIntoWhen
...
#KT-30499 Fixed
2019-03-21 16:32:41 +07:00
Dmitry Gridin
c84ff1d8b1
Inspection "MoveVariableDeclarationIntoWhen" should inline variable declaration
2019-03-21 16:31:29 +07:00
Toshiaki Kameyama
bd3d5a9dbb
Use withIndex intention: fix false positive for destructuring declaration
...
#KT-30341 Fixed
2019-03-21 10:59:01 +03:00
Toshiaki Kameyama
cbdc79fcda
Add when branches: remove unnecessary blank line
...
#KT-30426 Fixed
2019-03-21 10:58:11 +03:00
Yan Zhulanow
b2a47027fb
Move eval4j to idea
2019-03-20 20:52:22 +03:00
Yan Zhulanow
754a7bc554
Code fragment analysis: analyze parents if there's no sensible scope for the default element (KT-29179)
2019-03-20 20:52:21 +03:00
Yan Zhulanow
77c2a5c87c
Debugger: Fix missing NOP in empty 'when' header (KT-29189)
2019-03-20 20:52:20 +03:00
Yan Zhulanow
ba0989801a
Debugger: Show captured outer this in lambdas (Variables view) (KT-30220)
2019-03-20 20:52:20 +03:00
Yan Zhulanow
723f8df23e
Hide '$delegate' variables in Kotlin variables mode
2019-03-20 20:52:20 +03:00
Dmitry Gridin
600a955a51
Fix false positive "Unused import" for type alias
...
#KT-29977 Fixed
2019-03-20 20:28:22 +07:00
Toshiaki Kameyama
4e3d13fcee
Change to star projection: do not suggest in arguments or receiver
...
#KT-23259 Fixed
2019-03-20 20:12:06 +07:00
kenji tomita
e1f26ffc74
Remove spaces between accessor and its parameter list in formatter (KT-30393)
...
#KT-30393 Fixed
2019-03-19 16:09:07 +03:00
Toshiaki Kameyama
0acecb4936
Minor: fix caret behaviour in arg template test
...
#KT-29398 Fixed
2019-03-19 16:09:07 +03:00
Dmitry Gridin
43be01bbc8
Fix false positive 'Introduce import alias' on this/super
2019-03-19 16:42:41 +07:00
Dmitry Gridin
ccb1ae13ea
Fix local conflicts in 'Introduce import alias'
2019-03-19 16:42:41 +07:00
Dmitry Gridin
9659453351
Improve: intention "Introduce Import Alias" should suggest new names for the new alias
...
#KT-30456 Fixed
2019-03-19 16:42:41 +07:00
Toshiaki Kameyama
a2adfd0cc0
Nested lambda has shadowed implicit parameter: do not report when lambda is in scope function
...
#KT-30173 Fixed
2019-03-19 10:37:47 +03:00
Dmitry Gridin
daf8df9e4b
Fix flaky test AddReturnToUnusedLastExpressionInFunction/Nothing
2019-03-19 11:29:53 +07:00
Burak Eregar
db4144426a
Fix SimplifiableCallChain inspection quick fix removes comments for intermediate operations
2019-03-18 11:35:32 +03:00
Toshiaki Kameyama
8728bc0820
Convert to scope function: also convert binary expression
...
#KT-30228 Fixed
2019-03-18 11:18:23 +03:00
Toshiaki Kameyama
e340af51df
Add "Rename class to containing file name" intention
...
#KT-25262 Fixed
2019-03-18 11:09:09 +03:00
Toshiaki Kameyama
39016594b1
Replace return with 'if'/'when': don't drop return label
...
#KT-30414 Fixed
2019-03-18 09:46:10 +03:00
Dmitry Gridin
d333a0ad4e
Allow "Create class" action in return statement
...
#KT-22137 Fixed
2019-03-15 17:33:14 +07:00
Dmitry Gridin
220cb95b85
Move caret to class name after creating it from "CreateFromUsage" action
...
Relates to #KT-24631
2019-03-15 17:27:06 +07:00
Mikhail Glukhikh
e6bb920a1d
FIR Java: support Kotlin extension overriding: at last, #KT-29937 Fixed
2019-03-14 18:18:40 +03:00
Mikhail Glukhikh
d00d078b4f
FIR Java: implement "appendErasedType" thus adding predefined signatures
...
Related to KT-29937
2019-03-14 18:18:20 +03:00
Mikhail Glukhikh
f5e2cd2ac4
No override check in FirClassUseSiteScope, fix nasty substitution bug
...
This fixes MPP override test
(see mppFakeOverride in FirMultiModuleResolveTestGenerated)
2019-03-14 18:17:44 +03:00
Mikhail Glukhikh
6c12fabf74
FIR: make JavaClassEnhancementScope use-site, get rid of scope providers
...
Related to KT-29937
2019-03-14 18:09:41 +03:00
Mikhail Glukhikh
be412baf9f
FIR type enhancement: fold flexible types when it's possible
...
Related to KT-29937
2019-03-14 18:08:01 +03:00
Mikhail Glukhikh
6c8aba8039
FIR: support callable symbols in dependencies provider
...
This breaks mppFakeOverrides test because of bug in FIR fake overrides
2019-03-14 18:07:32 +03:00
Mikhail Glukhikh
fb788dc4c0
Fix null Java type argument problem & add relevant test
2019-03-14 17:56:23 +03:00
Mikhail Glukhikh
6c79b184c0
FIR Java types: add Kotlin/Java mapping & mutability enhancements
...
Related to KT-29937
2019-03-14 17:55:10 +03:00
Mikhail Glukhikh
f31faafd72
Introduce initial version of FIR Java type enhancement
...
Java type enhancement is performed by a special scope kind
Java FIR dump was added for multiplatform tests to look at enhancements
Overrides, J2K mapping, special cases does not work yet
Related to KT-29937
2019-03-14 17:51:00 +03:00
Denis Zharkov
92defc2ae3
Extract supertypes resolution into a separate FIR phase
2019-03-14 17:06:45 +03:00
Toshiaki Kameyama
6acf3ad629
Add "arg" postfix template (KT-29398)
...
#KT-29398 Fixed
2019-03-14 15:35:44 +03:00
Dmitry Gridin
179dfce3a8
Fix false positive for type error in intentions AddReturnTo...
...
Relates to #KT-25272
2019-03-14 10:52:59 +07:00
Dmitry Gridin
479e812bbc
Fix false positive "Redundant lambda arrow" inspection
...
#KT-29590 Fixed
#KT-19462 Fixed
#KT-29124 Fixed
2019-03-13 20:57:30 +07:00
Dereck Bridie
a02ad76b16
KT-25272: Unused expression as last expression of normal function should have quickfix to add "return" Fixed
2019-03-13 17:53:48 +07:00
Toshiaki Kameyama
bee7736baf
Find Java usage of @JvmField declared in primary constructor (KT-18322)
...
#KT-18322 Fixed
2019-03-13 12:54:55 +03:00
Nikolay Krasko
213b98fefe
Review changes: revert compiler behaviour, add test, remove inner classes
2019-03-12 14:28:31 +03:00
Dmitry Gridin
6b8547f57b
Fix "Specify type explicitly" intention with generic type
...
#KT-27641 Fixed
#KT-30252 Fixed
2019-03-11 23:38:19 +07:00
Toshiaki Kameyama
f1e66d0654
Add "Replace 'associate' with 'associateBy' or 'associateWith'" inspection
...
#KT-26269 Fixed
2019-03-11 19:33:17 +03:00
Toshiaki Kameyama
0f45e3d238
Fix false positive for HasPlatformType with member extension on 'dynamic'
...
#KT-29812 Fixed
2019-03-11 19:28:08 +03:00
Dmitry Gridin
6ba0a182bb
Fix false positive "Insert explicit type arguments" intention
...
#KT-16139 Fixed
2019-03-09 14:01:04 +07:00
Nikolay Krasko
1cc59f4b18
Mute false positive duplicate warnings in highlighting in 191
2019-03-06 18:16:28 +03:00
Toshiaki Kameyama
6b35c06d50
Add intention to replace '!isNotEmpty()' to 'isEmpty()'
...
#KT-30123 Fixed
2019-03-06 11:06:40 +03:00
Denis Zharkov
2dbe96c853
Extract ConeClassifierLookupTag (aka SearchSymbol)
...
So, for classifiers there are both Symbols and LookupTags
The difference between them is that the former are assumed to have
a reference to the actual FirDeclaration while LookupTags
effectively contain only classId and
something informative may only be obtained by FirSession
#KT-24075 Fixed
2019-03-05 18:23:17 +03:00
Toshiaki Kameyama
6b5ba272a0
Import members from: suggest on type reference
...
#KT-29927 Fixed
2019-03-05 18:19:33 +03:00
Mikhail Glukhikh
9e2ee6183c
Fix "make constructor parameter a property" for vararg case
...
Same should work for annotated parameters
#KT-29312 Fixed
2019-03-04 17:57:52 +03:00