Mark Punzalan
d2b8204fdc
FIR/FIR IDE: Use entire FirVariableAssignment when reporting UNSAFE_CALL
...
(e.g., `nullable.a = b`), and use positioning strategies to locate the
dot in the LHS expression.
Without it, only the callee reference is reported on, which makes the
highlighting of the error and application of quickfixes incorrect in the
IDE.
Also fixed issue with annotated and/or labeled expressions on LHS of
assignment (e.g., `(@Ann label@ i) = 34`).
2021-05-20 20:32:58 +02:00
Mark Punzalan
9e01a608b2
FIR IDE: Add ability in test infra to have a "before" file different in
...
FIR vs FE1.0, and made file naming convention more consistent.
2021-05-20 20:32:57 +02:00
Roman Golyshev
d7a91cb05e
Remove IGNORE_FIR directive from already green tests
2021-05-12 16:28:31 +00:00
Ilya Kirillov
bd38363077
FIR IDE: use IGNORE_FIR instead of FIR_COMPARISON in hl quick fix tests
...
To explicitly specify which test are failing
2021-04-01 18:24:17 +02:00
Mark Punzalan
062adf21de
FIR IDE: Use KtFirExpressionTypeProvider.getExpectedType() in
...
ReplaceCallFix.
2021-03-23 11:04:33 +01:00
Mark Punzalan
e9298d1d71
FIR IDE: Allow FIR-specific "after" files for
...
AbstractHighLevelQuickFixTest.
2021-03-23 11:04:33 +01:00
Mark Punzalan
164d7d80b6
FIR IDE: Enable ReplaceCallFix for UNSAFE_CALL.
2021-03-23 11:04:33 +01:00
Mark Punzalan
1b649fa4cb
FIR IDE: Generate quickfix tests related to ReplaceCallFix.
2021-03-23 11:04:33 +01:00
Dmitry Gridin
11a3482970
tests: apply official code style
...
#KT-38632 Fixed
2020-05-07 12:36:44 +00:00
Toshiaki Kameyama
e8effe6727
Replace with safe call: do not add redundant elvis operator
...
#KT-34432 Fixed
2019-10-21 23:28:19 +07:00
Toshiaki Kameyama
7fcca71b4b
Replace with dot call quickfix: don't break formatting
...
#KT-25697 Fixed
2019-09-25 12:06:51 +07:00
Mikhail Glukhikh
d08b18f5f8
Introduce "use expression body" inspection #KT-16063 Fixed
...
Converted from the relevant intention
Reported cases: one-liners, whens
Also, more exact caret detection in local inspection tests
2017-07-07 18:15:06 +03:00
nd
fae8efdc7f
Handle unsafe implicit invoke on array access expression ( #1151 )
2017-07-07 16:29:11 +02:00
Toshiaki Kameyama
af53a0ecd5
Add quick-fix "Replace with safe call & elvis" #KT-17815 Fixed
2017-06-28 15:28:35 +03:00
shiraji
c8e58ce9ab
Fix WrapWithSafeLetCallFix ignore extension method
...
Related to KT-17726
2017-05-24 14:02:01 +03:00
Dmitry Neverov
46aaee5d05
Fix nullability quick-fixes with implicit receiver #KT-17726 Fixed
2017-05-24 14:01:58 +03:00