Ilya Kirillov
6e04b1549c
New J2K: remove JKVisitor with type parameters
2019-07-25 14:34:33 +03:00
Ilya Kirillov
b7917978b8
New J2K: correctly create AST for Java call of Kotlin data class derived members
...
#KT-32604 fixed
2019-07-16 11:56:08 +03:00
Ilya Kirillov
d29d7fb257
New J2K: do not resolve unary expressions method symbols
...
As we already have its type and may fail on unresolved declaration
#KT-32603 fixed
2019-07-16 11:55:04 +03:00
Ilya Kirillov
84872e064f
New J2K: use test data for nj2k conversion tests from nj2k tests data instead of old one
2019-07-16 11:55:04 +03:00
Ilya Kirillov
cabc26184b
New J2K: convert single Java static import statements
2019-07-10 13:19:23 +03:00
Ilya Kirillov
b18350e9c8
New J2K: fix ExceptionInInitializerError in JKJavaPrimitiveTypeImpl
2019-07-10 13:19:23 +03:00
Ilya Kirillov
f0dd21790a
New J2K: add plain text copy-paste conversion test for new J2K
2019-07-10 13:18:36 +03:00
Ilya Kirillov
ba3927b580
New J2K: add default null value to property with type parameter type when it is implicit in Java
...
#KT-32436 fixed
2019-07-10 13:16:53 +03:00
Ilya Kirillov
9d6338afb2
New J2K: do not fail conversion if some of post-processings throws exception
2019-07-10 13:16:53 +03:00
Ilya Kirillov
a9865e5d7b
New J2K: check for element validity before applying fix in diagnostic-based post processings
2019-07-10 13:16:53 +03:00
Ilya Kirillov
236f62be2a
New J2K, minor: refactor code builder
2019-07-10 13:16:52 +03:00
Ilya Kirillov
934425e86a
New J2K: rearrange and optimize some post-processings
2019-07-10 13:16:52 +03:00
Ilya Kirillov
370f113b78
New J2K: run add/remove modifiers post-processings only single time && do not call resolve in them for some corner cases
2019-07-10 13:16:52 +03:00
Ilya Kirillov
3e04bfb156
New J2K: do not print modifiers which are going to be removed in postprocessing
2019-07-10 13:16:52 +03:00
Mikhail Zarechenskiy
60ac2056bd
Update diagnostic message in test data
...
Follow-up of 42a5c488 : function `unCapture` is used to render
diagnostic messages, therefore we have this change now
2019-07-02 14:02:07 +03:00
Ilya Kirillov
3926be900d
New J2K: remove accidentally added println call in conversions
2019-06-26 18:36:05 +03:00
Ilya Kirillov
0dfaae2bb4
New J2K: add some tests from obsolete issues
2019-06-26 18:36:05 +03:00
Ilya Kirillov
98be5d8ed0
New J2K: add copy-paste tests for new j2k
2019-06-26 18:36:05 +03:00
Ilya Kirillov
dc469cbdbf
New J2K: remove incorrect modifiers in post processing
2019-06-26 18:36:05 +03:00
Ilya Kirillov
3beef2b22e
New J2K: do not apply diagnostic based inspections if target element is not in the converting range
2019-06-26 18:36:05 +03:00
Ilya Kirillov
1b681a7dd6
New J2K: correctly handle empty range marker in post processings
2019-06-26 18:36:05 +03:00
Nikolay Krasko
beb1bc09d4
Update to 192.5118.30
2019-06-25 11:48:59 +03:00
Ilya Kirillov
d6dec2a066
New J2K: use PsiModifierListOwner instead of JvmAnnotatedElement for getting annotations from declaration while building AST as PsiLocalVariable is no longer a JvmAnnotatedElement in 192
...
#KT-31821 fixed
2019-06-17 12:18:05 +03:00
Vyacheslav Gerasimov
5a39c637c2
Build: Fix intellij dependency leak from ir tree module
2019-06-13 21:03:55 +03:00
Ilya Kirillov
2dd604cd70
New J2K, minor: remove unused declarations, fix typos
2019-06-11 18:16:06 +03:00
Ilya Kirillov
b80f2c78a0
New J2K, minor: reformat code, optimize imports
2019-06-11 18:16:06 +03:00
Ilya Kirillov
59f66d5882
New J2K: split diagnostic based processing from inspection ones
...
Analysing file file with diagnostics on each step of post-processings is rather expensive operation so the inspection-like post-processings which don't require diagnostic information was separated from ones that need it
Related to #KT-31848
2019-06-11 18:16:06 +03:00
Ilya Kirillov
3854a323fa
New J2K: do not ignore errors in new j2k tests comparison
2019-06-11 10:37:26 +03:00
Ilya Kirillov
ce569ca6e0
New J2K: remove static modifier for the case when member is converted without containing class
2019-06-11 10:37:25 +03:00
Ilya Kirillov
9929dba74d
New J2K: fix ConcurrentModificationException while analysing implicit initializers
2019-06-11 10:35:32 +03:00
Ilya Kirillov
184825d59d
New J2K: remove open modifier for top level functions on post-processing
...
#KT-31678 fixed
2019-06-11 10:35:32 +03:00
Ilya Kirillov
6d3967d922
New J2K: add tests for some obsolete J2K issues
2019-06-11 10:35:31 +03:00
Ilya Kirillov
04fe51b0aa
New J2K: use default test file directives for choosing SDK in tests instead of by filename approach
2019-06-11 10:35:31 +03:00
Ilya Kirillov
8375a12733
New J2K: properly remove redundant modifiers in post-processing as #KT-30804 is fixed
2019-06-11 10:35:31 +03:00
Ilya Kirillov
2aa20d003d
New J2K: convert vararg type parameter Java length call to Kotlin size call
2019-06-11 10:35:30 +03:00
Ilya Kirillov
b211ae1070
New J2K: correctly convert Kotlin function type
2019-06-11 10:35:30 +03:00
Ilya Kirillov
a2b832e5be
New J2K: correctly convert Java String type to Kotlin String
2019-06-11 10:35:30 +03:00
Ilya Kirillov
0fc0f99acb
New J2K: do not commit document after each inspection in post-processing
...
Related to #KT-31848
2019-06-11 10:35:29 +03:00
Ilya Kirillov
110611d690
New J2K: group post-processings to named groups
2019-06-11 10:35:29 +03:00
Ilya Kirillov
cacb4ed9f3
New J2K: correctly handle field symbol in EnumFieldAccessConversion
2019-06-11 10:35:29 +03:00
Ilya Kirillov
ca34c55dde
New J2K: do not call shortenClassReferences on AST building for addTypeArguments
2019-06-11 10:35:28 +03:00
Ilya Kirillov
417717914d
New J2K: use IDEA indexes for resolving
...
Related to #KT-31848
2019-06-11 10:35:28 +03:00
Ilya Kirillov
5f8b5efd66
New J2K: do not find import usages in AST building phase
...
It is a rather heavy operation and it increases conversion time
Related to #KT-31848
2019-06-11 10:34:34 +03:00
Dmitry Gridin
4f8c0653c5
Change API in AbstractApplicabilityBasedInspection
...
Replace all inspectionTarget with inspectionHighlightRangeInElement & change type of element in applyTo from PsiElement to TElement
2019-06-07 12:23:54 +07:00
Dmitry Gridin
f2accb7b9e
Convert IfThenToElvisIntention to inspection & decrease severity to INFO
...
#KT-16067 Fixed
2019-06-07 12:23:54 +07:00
Dmitry Gridin
74c177fd26
Convert FoldInitializerAndIfToElvisIntention to inspection and decrease severity to INFO
...
#KT-19643 Fixed
2019-06-07 12:23:54 +07:00
Ilya Kirillov
201bf328ca
New J2K: print new line before init section because of bad formatting
2019-06-05 23:41:49 +03:00
Ilya Kirillov
ca23eb44a1
New J2K: add type star projections for converted classes raw references
...
#KT-31818 fixed
2019-06-05 23:33:12 +03:00
Ilya Kirillov
845cde2d23
New J2K: do not add star projection type for raw class literal expression
...
#KT-15791 fixed
2019-06-05 23:33:12 +03:00
Ilya Kirillov
f75a7cbfc9
New J2K: fix test data for java8MapForEachWithFullJdk test
2019-06-05 23:33:12 +03:00