Tianyu Geng
51da54ce66
FIR IDE: Simplify registerPsiQuickFixes
...
This change makes it possible to register multiple fixes for a
diagnostic. Also, the previous registerPsiQuickFix that relies compiler
to infer the KtFirDiagnostic type parameter is dangerous since it
can silently register fixes on interface `KtDiagnosticWithPsi` if caller
doesn't specify it explicitly.
2021-02-18 19:37:37 +01:00
Tianyu Geng
5793f77ece
FIR IDE: AddModifierFix -> AddModifierFixMpp
2021-02-17 18:19:27 +01:00
Tianyu Geng
6882cf820e
FIR IDE: move RemoveModifierFix to ...
...
idea-frontend-independent
2021-02-12 17:56:57 +01:00
Ilya Kirillov
cf56c59ca2
Fix binary incompatibility of createRemoveModifierFromListOwnerFactory
2021-02-09 17:15:35 +01:00
Ilya Kirillov
794558ab68
Introduce QuickFixesPsiBasedFactory for quickfixes which can be created only by PSI
2021-02-09 17:14:27 +01:00
Victor Petukhov
c111c33950
Fix failing tests after 8bd78064be
2021-01-25 16:24:43 +03:00
Alexander Udalov
ed9a0e514d
Regenerate tests and fir-tree
2021-01-03 14:53:41 +01:00
Abduqodiri Qurbonzoda
662787b12b
Straighten Char-to-code and Char-to-digit conversions out #KT-23451
2020-12-31 12:07:41 +03:00
Alexander Udalov
77a9d14f93
Capitalize/decapitalize only ASCII characters across project
...
Use {de,}capitalizeAsciiOnly and to{Lower,Upper}CaseAsciiOnly where
possible, and stdlib's functions with Locale.US everywhere else.
Otherwise, if the default system locale is Turkish, the capital latin
letter "I" is transformed in toLowerCase to "ı" (see
https://github.com/JetBrains/kotlin/blob/66bc142f92085047a1ca64f9a291f0496e33dd98/libraries/stdlib/jvm/test/text/StringJVMTest.kt#L119 ),
which for example breaks the codegen for `intArrayOf` in
KT-25400/KT-43405.
Similarly, lower case latin letter "i" is transformed to "İ".
#KT-13631 Fixed
#KT-25400 Fixed
#KT-43405 Fixed
2020-12-28 16:10:30 +01:00
Victor Petukhov
857cc92326
Support preference of TYPE_USE annotations to enhance over others like METHOD, FIELD and VALUE_PARAMETER to avoid double applying them in case of arrays: @NotNull Integer [] (both to the array element and to the entire array)
...
^KT-24392 Fixed
2020-12-18 19:32:04 +03:00
Dmitriy Novozhilov
bc7e18fb8a
[TEST] Regenerate tests after previous commit
2020-12-16 19:52:28 +03:00
Dmitriy Novozhilov
c8f3a4802e
[TEST] Introduce test-infrastructure-utils module and extract common test utilities here
2020-12-16 19:52:22 +03:00
Vyacheslav Gerasimov
3feff16a77
Cleanup 193 compatibility fixes
2020-11-11 14:28:54 +03:00
Yan Zhulanow
0ce9003ef7
Parcelize: Add missing dependencies to Parcelize components in tests
2020-09-24 15:50:58 +09:00
Igor Yakovlev
e30f09d513
[FIR IDE] Separate find usages logic from descriptors
2020-09-15 11:25:06 +03:00
Ilya Kirillov
949c67078d
NJ2K: fix testdata of MultiFileTestGenerated.testNullabilityByDFa
2020-08-26 16:17:24 +03:00
Alexander Udalov
a9ddf02556
Replace deprecated usages of max/min with maxOrNull/minOrNull
2020-08-25 20:33:59 +02:00
Dmitriy Novozhilov
a764732020
Rename KotlinBuiltInsNames to StandardNames
2020-08-25 10:41:33 +03:00
Dmitriy Novozhilov
7a7fe77b8e
Move static constants with builtin names to :core:descriptors.common module
2020-08-25 10:31:36 +03:00
Alex Chmyr
a5368e443c
KT-20421 fixing code generation for the case when "object" extends "class". It should look like: "object: class()".
2020-08-19 11:46:29 +03:00
Ilya Kirillov
08e2dd3dea
NJ2K: fix implicit type cast in binary expressions
...
#KT-37298 fixed
2020-08-18 17:38:07 +03:00
Ilya Kirillov
d5d57f84e0
NJ2K: preserve annotations while converting class to object
...
#KT-38879 fixed
2020-08-18 17:38:07 +03:00
Ilya Kirillov
3d517c3656
NJ2K: fix retrieving resolutionFacade on empty context elements list
2020-08-18 17:38:07 +03:00
Ilya Kirillov
de0c216cfa
NJ2K: fix NPE in JavaObjectEqualsToEqOperatorProcessing
2020-08-18 17:38:06 +03:00
Vladimir Ilmov
4fe6880489
Cyrillic 'c' fix in inspectionLikeProcessings.kt
2020-08-10 14:42:46 +02:00
Pavel Kirpichenkov
f431da2a66
Reapply "Introduce @FrontendInternals annotation""
...
This reverts commit 9ca4717d11 .
^KT-39643 Fixed
2020-08-10 12:22:55 +03:00
Pavel Kirpichenkov
9ca4717d11
Revert "Introduce @FrontendInternals annotation"
...
Revert due to Mobile IDE Trunk IJ TC configuration
This reverts commits:
ffc3d8bdfc
c0e713980b
^KT-39643 In Progress
2020-08-07 12:10:03 +03:00
Pavel Kirpichenkov
c0e713980b
Add helpers for getting commonly used services without an opt-in
...
These services are LanguageVersionSettings, DataFlowValueFactory
#KT-39643 Fixed
2020-08-05 21:44:47 +03:00
Pavel Kirpichenkov
ffc3d8bdfc
Introduce @FrontendInternals annotation
...
#KT-39643
2020-08-05 21:44:47 +03:00
Nikita Bobko
c5398e8317
Move 'radixPrefix' from compiler modules to IDE modules
...
`radixPrefix` is used only in IDE now. So let's put it into IDE modules.
This commit is done in order to be able to use code dependent on
`radixPrefix` in `kotlin-ide` repo, because `kotlin-ide` depends on
1.4.0 artifacts of compiler. And `radixPrefix` isn't presented in
those artifacts
2020-08-05 20:17:17 +03:00
Simon Ogorodnik
ebfcd7e074
J2K: Improve presentation of conversions
2020-07-29 17:56:03 +03:00
Simon Ogorodnik
5c745facf4
J2K: Improve error message in case of incorrect detach
2020-07-29 17:56:02 +03:00
Simon Ogorodnik
dc963e4ff6
Improve J2K progress reporting
2020-07-29 17:56:02 +03:00
Simon Ogorodnik
8bcf1000f6
J2K: Fix java 9 try-with-resources
2020-07-29 17:56:02 +03:00
Simon Ogorodnik
c5005f8695
J2K: Speed-up add imports
2020-07-29 17:56:01 +03:00
Simon Ogorodnik
cd0c644654
J2K: Fix incorrect early detaching of elements in for conversion
2020-07-29 17:56:00 +03:00
Simon Ogorodnik
8c2dd876b5
J2K: Fix incorrect argument remapping when introducing defaults
2020-07-29 17:56:00 +03:00
Simon Ogorodnik
cd7ac55091
J2K: Show converted/total file counts
2020-07-29 17:55:59 +03:00
Simon Ogorodnik
468af0bb85
J2K: Fix type parameters in LHS of callable reference
2020-07-29 17:50:10 +03:00
Roman Golyshev
be06c51aa7
KT-40363 Handle non-octal int literals in for-loop conversions
...
- See EA-210233
- ^KT-40363 Fixed
2020-07-23 11:24:48 +00:00
Roman Golyshev
cba671a3ef
KT-40359 Catch NumberFormatException during literal conversion
...
- Instead of failing J2K conversion completely, insert TODO expression
to the resulting code (it is better to have a converted code with TODO
than to have nothing at all)
- See EA-210233 for similar exceptions
- ^KT-40359 Fixed
2020-07-23 11:24:48 +00:00
Ilya Kirillov
dccac34282
J2K: do not run runUndoTransparentAction outside EDT
...
#KT-39739 fixed
2020-07-17 16:02:46 +03:00
Mikhail Zarechenskiy
a6e58edfb9
Update test data, unmute test
...
Now behavior is the same as in OI for these cases.
The behavior was changed in 100a6f70ca
2020-07-17 07:47:15 +03:00
Nikita Bobko
8fb82c2cb7
202: Fix missing formatting in nJ2K tests
...
Formatting in nJ2K tests (actually it still works in IDE) was broken by
dee00ac38946b8a8a5165dffd083e67c85935723 in intellij
2020-07-01 11:31:20 +03:00
Dmitry Gridin
10c62b8d77
ImportOptimizer: add cases for unresolved references
...
Part of #KT-31331
2020-06-23 09:48:06 +00:00
Igor Yakovlev
b21cabe671
Separate decompiled declarations light representations from LightClasses
...
Fixed #KT-39457
2020-06-22 21:17:12 +03:00
Alexander Udalov
6e67e1e78d
Replace appendln with appendLine in project
2020-06-11 13:01:30 +02:00
Ilya Kirillov
418903e9ef
FIR IDE: Make KtReference class descriptors frontend independent
...
* The new idea-frontend-independent module created
* Moved KtReference and it inheritors to that module & implement them in idea-analysis module by using descriptors frontend
2020-06-09 16:19:12 +03:00
Yunir Salimzyanov
dce19b0ace
Cleanup 191 patchset logic (KTI-267)
2020-06-07 10:49:55 +03:00
Yunir Salimzyanov
3b9000cc0c
Cleanup 191 extension files (KTI-240)
2020-06-01 18:43:10 +03:00