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
Roman Golyshev
7fb5acc718
KT-18538 Fix inspection to detect unnecessary grand-base class qualifier
...
- Add separate option to enable/disable this inspection, as it is not
obvious if it should be always enabled or not
- This option can be used to detect all unnecessary qualifiers in
tests
- Add possibility to configure inspections via `settings.xml` in the
`AbstractMultiFileLocalInspectionTest.kt`
- ^KT-18538 Fixed
2020-06-01 08:59:37 +00:00
Nikita Bobko
aa5a5c954f
Refactoring: change "// BUNCH: xxx" format
...
It wasn't obvious how to use this comment properly.
Now it should be clear
2020-05-29 20:31:12 +03:00
Roman Golyshev
4436142f00
KT-38450 Add functional interface converter to the NJ2K
...
- Enable custom compiler options for
`AbstractNewJavaToKotlinConverterSingleFileTest`
- ^KT-38450 Fixed
2020-05-25 11:11:24 +03:00
Ilya Kirillov
d825428718
New J2K : move resolve resolve out of EDT in shorten references processing
...
relates to #KT-31812
2020-05-20 11:11:46 +03:00
Dmitry Gridin
11a3482970
tests: apply official code style
...
#KT-38632 Fixed
2020-05-07 12:36:44 +00:00
Ilya Gorbunov
1bcccca007
j2k: insert kotlin.Throws annotation instead of kotlin.jvm.Throws
2020-04-29 09:17:55 +03:00
Denis Zharkov
534ff58d9c
Minor. Introduce constant JVM_THROWS_ANNOTATION_FQ_NAME
...
KT-35468
2020-04-26 23:08:18 +03:00
Ilya Kirillov
c734069cde
New J2K: do not show inline dialog during J2K
...
#KT-35169 fixed
2020-04-17 15:08:52 +03:00
Ilya Kirillov
e4a721d03e
New J2K: do not create erroneous conversion from Java accessors to property
...
#KT-38004 fixed
2020-04-17 15:08:51 +03:00
Vladimir Dolzhenko
936801d744
Fix 191 compilation due to changes in findReferences
...
Relates to #KT-37801
2020-04-10 14:50:58 +02:00
Harry
27827cd364
New J2K: Convert Number.[type]Value() to Number.to[type]() ( #2908 )
...
New J2K: Convert Number.[type]Value() to Number.to[type]()
2020-04-10 14:25:49 +03:00
Vladimir Dolzhenko
3de9838a7d
Specify search scope for nj2k ConvertGettersAndSettersToPropertyProcessing
...
Relates to #KT-37801
2020-04-09 18:00:04 +02:00
PetelimovaNadezhda
517de44d20
KT-35897: change type for enum constructor for visibility
2020-04-06 16:42:53 +03:00
Ilya Kirillov
51de319cc4
New J2K: fix IOOB exception on inference
2020-03-31 19:35:56 +03:00
Ilya Kirillov
98f2604df0
New J2K: introduce type alias symbol
2020-03-31 19:35:55 +03:00
Ilya Kirillov
bc52281208
New J2K: convert Java method reference to Kotlin one on copy-pasting Java code
...
#KT-34965 fixed
2020-03-31 19:35:55 +03:00
Ilya Kirillov
d6d843aaed
New J2K: fix assignment target in ConvertGettersAndSettersToPropertyProcessing
...
#KT-36190 fixed
2020-03-31 19:35:55 +03:00
Ilya Kirillov
b3e728f4fb
New J2K: don't allow open modifier on top-level/private declarations
2020-03-31 19:35:55 +03:00
Ilya Kirillov
4d4aa88534
New J2K: handle spaces in array dimensions declaration
...
#KT-36891 fixed
2020-03-31 19:35:55 +03:00
Ilya Kirillov
353e884c8f
New J2K: do not merge methods if there are vararg parameters present
2020-03-31 19:35:55 +03:00
Ilya Kirillov
4a450ab624
New J2K: do not use unicode symbol in bundle
2020-03-31 19:35:54 +03:00
Ilya Kirillov
78d2aaa021
New J2K: handle null Java type
2020-03-31 19:35:54 +03:00
Mikhail Bogdanov
3f87899014
Switch converter test to new directive scheme
2020-03-19 16:45:10 +01:00
Dmitry Gridin
7886cb4c44
i18n: fix tests
2020-03-16 18:40:51 +07:00
Dmitry Gridin
7507d62ec3
i18n: replace KotlinBundleBase with AbstractKotlinBundle
2020-03-16 18:40:49 +07:00
Roman Golyshev
c3cbcc0842
i18n: move all kotlin bundles to resources/messages directories
2020-03-16 18:40:47 +07:00
Yan Zhulanow
7a40274b71
i18n: Unify string naming in KotlinBundle
2020-03-16 18:40:42 +07:00
Yan Zhulanow
b0cd9911a4
i18n: Add bundle for New J2K
2020-03-16 18:40:41 +07:00
Yan Zhulanow
eabcff5c2a
i18n: Add bundle for New J2K services
2020-03-16 18:40:41 +07:00
Ilya Chernikov
70c89a28e1
Stop subtyping constraint search if equality constraints for...
...
all not fixed type vars are found
#KT-35626 fixed
2020-03-12 08:02:45 +01:00
Vyacheslav Gerasimov
0db69cadb6
Build: Make all compile dependencies on toolsJar compileOnly
...
tools.jar differs between different versions of JDK reducing cache reuse
so better to not leak it to other modules
2020-02-29 16:35:54 +03:00
Ilya Kirillov
b21a9476c0
New J2K: minor, use firstNotNullResult in j2k reference resolver
2020-02-25 13:58:29 +03:00
Ilya Kirillov
b7711678c2
EA-218474: fix IAE in resolving empty fqName in new J2K
2020-02-25 13:58:29 +03:00
Ilya Kirillov
af5a70dcf5
EA-218043: fix getting resolution facade for empty list of elements in new J2K
2020-02-25 13:58:29 +03:00
Ilya Kirillov
a64526acfb
EA-210533: fix NPE in LiftReturnOrAssignmentInspection
...
It may be still active after its application due to slow IDEA responsiveness
Do not try to apply it again on invalid PSI elements
2020-02-25 13:58:29 +03:00
Roman Golyshev
1dbb3d7c0f
Revert "New J2K: fix testdata"
...
This reverts commit 285aa123
2020-02-20 17:33:39 +03:00
Roman Golyshev
4042214bb2
Fix tests broken by enhanced RedundantSamConstructor inspection
...
- The inspection now works in more cases, so the test data had to be
updated accordingly
2020-02-20 17:27:41 +03:00
Roman Golyshev
46ae6136cb
Rewrite RedundantSamConstructorInspection to support more cases
...
- Now inspection does not rely on synthetic descriptors at all, instead
it uses `SamConversionOracle` and `SamConversionResolver` to detect
if the argument type support SAM conversion
- This transparently considers all language features like
`SAM conversions for kotlin functions`, `Functional interfaces` etc.
- In case of multiple SAM arguments, part of them can be converted only
when `SAM conversion per argument` is enabled
- Fix inspection and nj2k tests that were failing because of better
working inspection
- Rewrite automatically fixes multiple bugs that were present
- ^KT-36367 ^KT-36368 ^KT-36296 ^KT-36395 Fixed
2020-02-19 17:16:17 +03:00
Ilya Kirillov
285aa123b7
New J2K: fix testdata
2020-02-19 12:02:32 +03:00
Ilya Kirillov
17a0e3a078
New J2K: do not call custom diagnostic fixes in EDT as they may have resolve inside
2020-02-19 12:02:31 +03:00
Ilya Kirillov
810966e408
New J2K: call reformat code & shorten references processings only single time
2020-02-19 12:02:30 +03:00
Ilya Kirillov
ee0ec421ce
New J2K: do not print Unit types
2020-02-19 12:02:29 +03:00
Ilya Kirillov
6c1e2cc196
New J2K: disable additional post-formatting for J2K
...
As there is a formatting processing, it's not needed but takes some time
2020-02-19 12:02:28 +03:00
Ilya Kirillov
85be0450ba
Fix invalidated element access exception in ObjectLiteralToLambdaIntention
...
#KT-36149 fixed
#KT-36152 fixed
2020-02-19 12:02:27 +03:00
Ilya Kirillov
6b913da698
New J2K: Fix super call to Kotlin class with implicit constructor
...
#KT-36159 fixed
2020-02-19 12:02:27 +03:00
Ilya Kirillov
7c586ce736
New J2K: Fix converting recursive types
...
#KT-36088 fixed
2020-02-19 12:02:26 +03:00