Nikolay Krasko
890109beb8
201: PsiElementVisitor.visitElement nullability
2020-02-11 20:28:04 +03:00
Dmitry Gridin
b5d0956a5e
Move call-site trailing comma to registry
...
#KT-34744
2020-02-04 21:34:53 +07:00
Dmitry Gridin
c34b417d0c
Fix tests after disabling trailing comma
...
#KT-34744
2020-02-04 21:34:53 +07:00
Dmitry Gridin
96f49d8e3c
Remove trailing comma from some tests
2020-01-30 15:32:09 +07:00
Victor Petukhov
437a26684d
NI: Prefer nullable lower bound to flexible one when substitution of type variable is performed and remember flexibility of type parameters based on flexibility of its upper bounds
...
^KT-32435 Fixed
2020-01-17 19:16:09 +03:00
Dmitry Gridin
d06787886a
Fix tests after implementing trailing comma in formatter
...
#KT-34744
2020-01-17 21:02:54 +07:00
Pavel Kirpichenkov
69e800c695
Remove dependencies on data flow aware expression type in BindingContext
...
`BindingContext.getType`'s behaviour on argument expression has been different for OI and NI for some time.
New inference used to rewrite argument's type after smartcast, which led to missing subsequent smartcasts in some cases.
This commit makes retrieval of smartcasted argument type explicit.
2020-01-15 14:39:40 +03:00
Dmitriy Novozhilov
605ef647e6
Regenerate tests
2020-01-14 12:18:23 +03:00
Ilya Kirillov
a10f37dd50
New J2K: fix exception when met PsiLambdaParameterType
...
#KT-35431 fixed
2020-01-13 14:32:48 +03:00
Ilya Kirillov
5be80be74d
New J2K: fix converting multiline comment with /* inside
...
#KT-18001 fixed
#KT-35081 fixed
2020-01-13 14:32:47 +03:00
Ilya Kirillov
a87de01c74
New J2K: add missing line break between property and getter
...
#KT-35739 fixed
2020-01-13 14:32:46 +03:00
Ilya Kirillov
b83a529b77
New J2K: fix incorrectly removed line break before constructor comment
...
That caused class body brace to be under the comment
#KT-35478 fixed
2020-01-13 14:32:45 +03:00
Ilya Kirillov
7bfad12e6a
New J2K: correctly convert compound Java assignment expression
...
#KT-35476 fixed
2020-01-13 14:32:45 +03:00
Ilya Kirillov
6a8a68a263
New J2K: fix UninitializedPropertyAccessException when calculating type of anonymous class
...
#KT-35395 fixed
2020-01-13 14:32:44 +03:00
Ilya Kirillov
14a8d3726d
New J2K: remove initializer from property without backing field
...
#KT-33637 fixed
2020-01-13 14:32:43 +03:00
Alex Chmyr
16c82030a3
KT-20120 fixing bug for Java 9 Deprecated
...
Unconditionally changing it to @Deprecated("") in kotlin
2020-01-10 11:45:17 +03:00
Alexander Udalov
8a4510c21b
Regenerate tests
2020-01-02 10:31:00 +01:00
Ilya Kirillov
92f8432b1e
New J2K: Fix not converted jetbrains nullability annotations for types
...
it became broken after annotation started to be assigned to type elements
instead of declarations after 4da7d11
#KT-34987 fixed
2019-12-20 13:02:51 +03:00
Dmitriy Novozhilov
e7f8c8e155
[TEST] Regenerate tests after previous commit
2019-12-12 16:11:45 +03:00
Dmitry Gridin
70185ba2a6
Formatter, NJ2K: fix indent for comments inside function literals
...
#KT-4194 Fixed
#KT-31881 Fixed
#KT-34673 Fixed
#KT-35152 Fixed
2019-11-29 16:28:59 +07:00
Toshiaki Kameyama
3a576ce14f
KT-21811 Convert string concatenation into multiline string ( #2772 )
...
New J2K: Convert string concatenation into multiline string
#KT-21811 Fixed
2019-11-28 13:14:48 +03:00
Toshiaki Kameyama
be04912f6f
KT-19574 Code with inferred default parameters and parameter vs property name clashes ( #2671 )
...
New J2K: add 'this' receiver to default parameter value if needed
#KT-19574 Fixed
2019-11-27 18:55:50 +03:00
Toshiaki Kameyama
c72622c6d7
KT-32551 New J2K: Non-canonical modifiers order inspection is not applied during convertion of inner super class ( #2806 )
...
New J2K: add SortModifiers inspection to post-processing
#KT-32551 Fixed
2019-11-27 16:08:54 +03:00
Dmitry Gridin
b40a888f1d
Formatter: fix line break between declarations with annotations
...
#KT-35093 Fixed
#KT-35106 Fixed
2019-11-26 19:40:51 +07:00
Dmitry Gridin
bfd539d5d1
Formatter: fix line break between declarations with comment
...
#KT-12490 Fixed
#KT-35088 Fixed
2019-11-26 19:40:51 +07:00
Ilya Kirillov
f368d9761a
Fix for loop conversion when multiple initializers are present
...
#KT-35074 fixed
2019-11-25 17:01:46 +03:00
Mikhail Zarechenskiy
e0fb586aaf
[NI] Don't loose diagnostic after type variable fixation
...
#KT-24488 Fixed
2019-10-31 11:32:02 +03:00
Nikolay Krasko
4ed64b0283
Regenerate tests with TargetBackend.ANY remove and using runTest with this
2019-10-23 12:49:48 +03:00
Dmitry Gridin
92bfb2788e
idea: cleanup "Remove redundant qualifier name"
2019-10-17 14:30:25 +07:00
Vladimir Dolzhenko
eb9875b6f5
Added missed kotlin-reflect to nj2k testRuntime
2019-10-15 09:33:57 +02:00
Ilya Kirillov
1ec620b753
New J2K: fix SOE in inference processing for star-projection as type argument
...
#KT-33942 fixed
#KT-33941 fixed
2019-10-12 15:28:03 +03:00
Ilya Kirillov
b350515237
New J2K: make post-processing aware of other files which are being converted
...
Before post-processing was able to handle only one converting file at once
So, some conversions (like (field, getter, setter) to Kotlin property)
was not able to work when converting class hierarchy was split into
multiple files.
Also, inferring nullability for a set of files was broken
#KT-19569 fixed
#KT-34266 fixed
#KT-32518 fixed
2019-10-12 12:50:34 +03:00
Ilya Kirillov
999918d499
New J2K: add multi-file conversion tests from old j2k
2019-10-12 12:50:34 +03:00
Ilya Kirillov
f951ed9dba
New J2K: introduce external code processing for new J2K
...
It will update usages from files not in conversion scope to a valid ones:
1. When converting (field, getter, setter) triple from Java to a Kotlin property,
it will:
1. Update every usage of getter/setter in Java/Kotlin code to a usage of actual property
2. If property is used in Java directly then will add @JvmField to it
2. When converting static method or static field without getter and setter, which has Java usages then add @JvmStatic to it
#KT-34164 fixed
2019-10-12 12:50:33 +03:00
Ilya Kirillov
7535c2f249
New J2K: fix expose internal/private type errors
2019-10-12 12:50:33 +03:00
Ilya Kirillov
d0f0b9e355
New J2K: do not allow field and method declarations to be internal
...
For internal members new names are generated,
So, references to them from Java will be broken
2019-10-12 12:50:32 +03:00
Toshiaki Kameyama
4da7d11364
KT-30643 J2K: wrong position of TYPE_USE annotation ( #2543 )
...
New J2K: fix wrong position of TYPE_USE annotation
#KT-30643 Fixed
2019-10-08 16:21:27 +03:00
Toshiaki Kameyama
eda4206428
New J2K: convert Integer.MAX_VALUE to Int.MAX_VALUE
...
#KT-7940 Fixed
2019-10-06 01:09:33 +03:00
Ilya Kirillov
f950a0246c
New J2K: handle correctly short names which are imported by default in kotlin (like List or Result)
...
Kotlin default import inserter was unable to correctly insert such imports
#KT-34165 fixed
2019-10-04 15:17:35 +03:00
Ilya Kirillov
81341e3fd3
New J2K: add hack for incorrect comment parsing in J2K (KT-16845)
...
#KT-33825 fixed
2019-10-04 15:17:35 +03:00
Vyacheslav Gerasimov
f38123e78c
193: Update to 193.3793.14-EAP-SNAPSHOT
2019-10-01 17:23:47 +03:00
Vladimir Dolzhenko
3b563eaca1
Use test path relative to testDataPath in fixture.configureByFile to be complaint with 193, part 2
2019-10-01 11:39:17 +02:00
Ilya Kirillov
04515eda3d
Fix nj2k module compilation for 191 & 183 branches
2019-09-29 18:45:48 +03:00
Ilya Kirillov
9deb7dc8d6
New J2K: do not require module to be present on converting
...
It may not be present when performing conversion inside repl
2019-09-29 12:13:41 +03:00
Ilya Kirillov
f77825b85a
New J2K: remove RedundantCompanionReferenceInspectionBasedProcessing as it already applied on shortening references
2019-09-29 11:39:39 +03:00
Ilya Kirillov
95f69a9b58
New J2K: do not print debug info in inference tests
2019-09-29 11:39:39 +03:00
Ilya Kirillov
aaf05d5eb2
New J2K: reduce count of post-processing groups
2019-09-29 11:39:38 +03:00
Ilya Kirillov
208c4d6fc7
New J2K: move visitor generator out of src folder
2019-09-29 11:39:38 +03:00
Ilya Kirillov
41935bdd34
New J2K: separate logic in code builder to different classes
2019-09-29 11:39:37 +03:00
Ilya Kirillov
043a669812
New J2K: do not print qualified names if corresponding qualifier can unambiguously resolved
...
This speeds up shortening qualified references phase
2019-09-29 11:39:37 +03:00