Commit Graph

61819 Commits

Author SHA1 Message Date
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
Abduqodiri Qurbonzoda c592201a43 Fail fast in Regex.findAll on an invalid startIndex #KT-28356 2020-02-12 18:26:49 +03:00
Pavel Kirpichenkov 95a8060946 [NI] Don't report uninferred type parameter error on special functions
Type parameters can't be specified explicitly for special constructions.
Reporting this error does not help fixing the cause of it and needlessly
reveals implementation details.

^KT-36342 Fixed
2020-02-12 17:33:42 +03:00
Ilya Goncharov fd0c644b6f [Gradle, JS] Fix order of free compiler args assigning 2020-02-12 17:29:36 +03:00
Ilya Goncharov cd8af5d3ec [Gradle, JS] Configure build for nodejs in ir 2020-02-12 17:29:36 +03:00
Ilya Goncharov a1497682ed [Gradle, JS] Remove depending of link tasks on assemble 2020-02-12 17:29:36 +03:00
Ilya Goncharov db86076864 [Gradle, JS] Remove redundant dependsOn
- in CopySpec if task in from, dependsOn is automatically set
2020-02-12 17:29:36 +03:00
Ilya Goncharov 752d676523 [Gradle, JS] Fix tests for VariantAwareDependenciesIT.kt 2020-02-12 17:29:35 +03:00
Ilya Goncharov 589cea557b [Gradle, JS] Fix tests after changing default on legacy instead of ir 2020-02-12 17:29:35 +03:00
Ilya Goncharov fc872d5a53 [Gradle, JS] Fix clean output test 2020-02-12 17:29:35 +03:00
Ilya Goncharov e53fd1b582 [Gradle, JS] Distribution and distribute task for KotlinBrowserJsIr.kt 2020-02-12 17:29:35 +03:00
Ilya Goncharov bbb98f9168 [Gradle, JS] Change default on legacy instead of ir 2020-02-12 17:29:35 +03:00