Commit Graph

61830 Commits

Author SHA1 Message Date
Mikhail Zarechenskiy 687c96060f [NI-MIGRATE] Update test data for resolve tests after enabling NI 2020-02-13 11:15:58 +03:00
Mikhail Zarechenskiy 17df92e999 Fix case in stdlib where more specific type lead to error
See #KT-30299 & #KT-32125
2020-02-13 11:15:57 +03:00
Mikhail Zarechenskiy 599ff4711e Temporary fix code before proper support of UnsafeVariance in NI
See #KT-34433
2020-02-13 11:15:57 +03:00
Mikhail Zarechenskiy c64577b735 Temporary fixes for Kotlin project after enabling NI
Most of these fixes will gone away after compiler bootstraping
2020-02-13 11:15:57 +03:00
Mikhail Zarechenskiy cdf5323f8c Disable NewInference for stdlib tests
There is one failing test namely `ValByMapExtensionsTest.doTest`, which
 is quite questionable because its checks the use of out projection and
 Exact annotation (see KT-18789)
2020-02-13 11:15:56 +03:00
Mikhail Zarechenskiy 2a4caf6dc8 Enable new inference in the compiler 2020-02-13 10:22:42 +03:00
Dmitry Gridin 8da05ed597 RemoveReturnLabelFix: introduce labelName parameter 2020-02-13 13:51:34 +07:00
Dmitry Gridin 7c65bb2e3f AbstractDiagnosticBasedMigrationInspection: cleanup code 2020-02-13 13:51:34 +07:00
Dmitry Gridin b98bdca849 RemoveAnnotationFix: inline default argument 2020-02-13 13:51:34 +07:00
Dmitry Gridin f8a21340d0 ProhibitRepeatedUseSiteTargetAnnotationsMigrationInspection: add test
#KT-36257
2020-02-13 13:51:33 +07:00
Dmitry Gridin 09e6ffdb0a AbstractDiagnosticBasedMigrationInspection: make lazy initialization 2020-02-13 13:51:33 +07:00
Valentin Kipyatkov cfc2c0fb20 Changes after rebasing on master 2020-02-13 07:40:37 +02:00
Valentin Kipyatkov 4f5d121478 Minor code improvements 2020-02-13 07:40:37 +02:00
Valentin Kipyatkov e7c72637a1 Removed misleading comments from test data 2020-02-13 07:40:37 +02:00
Valentin Kipyatkov ae578e0a5d Copyright comments 2020-02-13 07:40:37 +02:00
Valentin Kipyatkov ee6d6adf70 processAllExactUsages() only for KtDeclaration 2020-02-13 07:40:36 +02:00
Valentin Kipyatkov c33a4c5c5b Code formatting 2020-02-13 07:40:36 +02:00
Valentin Kipyatkov 3ccb8fa3a8 Workaround for compiler crash 2020-02-13 07:40:36 +02:00
Valentin Kipyatkov e71bd4e4a4 No need to intersect with element's useScope - it's performed by reference search by default 2020-02-13 07:40:36 +02:00
Valentin Kipyatkov f43626f57f Refactoring 2020-02-13 07:40:36 +02:00
Valentin Kipyatkov 826c5dd92e Minor 2020-02-13 07:40:35 +02:00
Valentin Kipyatkov 3897f51f8e Refactoring code 2020-02-13 07:40:35 +02:00
Valentin Kipyatkov f60d24c621 Refactoring 2020-02-13 07:40:35 +02:00
Valentin Kipyatkov 1b5b0d2839 Minor refactoring 2020-02-13 07:40:35 +02:00
Valentin Kipyatkov af32cad1ae Minor 2020-02-13 07:40:35 +02:00
Valentin Kipyatkov fd7331bbc0 Refactoring 2020-02-13 07:40:35 +02:00
Valentin Kipyatkov 8008185b77 Renamed mistyping in function name 2020-02-13 07:40:34 +02:00
Valentin Kipyatkov 8f7648c60a Reordered methods 2020-02-13 07:40:34 +02:00
Valentin Kipyatkov ff39880677 Refactoring - converting extensions to normal functions 2020-02-13 07:40:34 +02:00
Valentin Kipyatkov b1cd56ba91 We must check super property usages also when analyzing inflow 2020-02-13 07:40:34 +02:00
Valentin Kipyatkov 612fd6d1bf Refactoring to split big file 2020-02-13 07:40:34 +02:00
Valentin Kipyatkov ff516cac73 Do not include overriders when analyzing parameter usages unless invoked on parameter 2020-02-13 07:40:33 +02:00
Valentin Kipyatkov e76eaa4b5b Refactored code to avoid duplication 2020-02-13 07:40:33 +02:00
Valentin Kipyatkov b406d85ca3 Analyze Data Flow to Here: Java super-methods supported 2020-02-13 07:40:33 +02:00
Valentin Kipyatkov cfa1d91aa4 Analyze Data Flow to Here to work with virtual methods 2020-02-13 07:40:33 +02:00
Valentin Kipyatkov c34286a327 More usable rendering of usage context in Analyze Data Flow to/from Here 2020-02-13 07:40:32 +02:00
Abduqodiri Qurbonzoda ed7b8e9b85 Scan functions for Sequences and Iterable #KT-7657 2020-02-13 04:01:47 +03:00
Vladimir Dolzhenko 0d7e641736 Extra dependencies after performance tests modularization 2020-02-12 22:37:25 +01:00
Mark Punzalan 89cf32eccc Clarify comments about KT-36625 that it is pending design decision. 2020-02-12 23:38:12 +03:00
Mark Punzalan ba606147c9 [JVM IR] Maintain KT-36625 bug compatibility between non-IR and IR
backends by removing IMPLICIT_NOTNULL casts from IrStringConcatenation
arguments.

Also fixed an issue where IrStringConcatenation can be lowered into
a null String instead of a literal "null" String if the lone argument
was a platform type String or String with enhanced nullability and the
value was null (e.g., "${FromJava.nullPlatformString()}").
2020-02-12 22:57:15 +03:00
Vladimir Dolzhenko 18a3d7ee08 Moved extra files after performance tests modularization 2020-02-12 20:56:19 +01:00
Vladimir Dolzhenko 60f17c3adf Modularization of performance tests 2020-02-12 20:06:01 +01:00
Pavel Kirpichenkov 572dee6835 Revert "Only create descriptors for candidates with lambda args"
This reverts commits:
349d07ad43
2249c223fe

Revert due to differences in test data with NI enabled
^KT-36247 Open
2020-02-12 20:52:30 +03:00
Anton Bannykh 52ae63f191 IR: decommonize AbstractSuspendFunctionsLowering.kt
Some issues emerged while building kotlinx.coroutines
Reverted changes to the common lowering.

TODO: fix after M1
2020-02-12 20:19:10 +03:00
Alexander Udalov d5987fd7f3 Minor, move wrongAnnotationArgumentInCtor.kt to CLI tests
The fact that this was a codegen box test was probably an abuse of the
testing infrastructure. It was never meant to pass, since it checks
presence of an error, and diagnostic tests aren't enough since they
might not check the full compiler execution.
2020-02-12 17:36:08 +01:00
Alexander Udalov 9c9e13d93e Minor, move obsolete test to oldLanguageVersions
Ignore this directory in JVM IR boxAgainstJava tests (similarly to box
tests) so that we can ignore the fact that this test doesn't pass in
JVM_IR, since it shouldn't.
2020-02-12 17:36:08 +01:00
Alexander Udalov 0df455cb52 Minor, remove duplicate test
There's already a test that checks exactly this behavior at
box/oldLanguageVersions/platformTypes/primitives/equalsNull_lv11.kt.
2020-02-12 17:36:08 +01:00
Sergey Igushkin c28d8c6575 Don't iterate over all tasks in KotlinProjectNpmResolver (KT-36472)
Iterating over all tasks triggered the tasks to configure even if that
was not necessary. Filter the task collection by type instead.

Issue #KT-36472 Fixed
2020-02-12 19:04:06 +03:00
Igor Yakovlev 9e05c702ab Fix KtDotQualifiedExpressionElementType stub building for complex qualified elements
Fixed #EA212081
2020-02-12 18:59:35 +03:00
Abduqodiri Qurbonzoda ddcc3b39f7 JS Regex.find does not throw on invalid start index #KT-36082 2020-02-12 18:26:50 +03:00