Commit Graph

90908 Commits

Author SHA1 Message Date
Dmitriy Novozhilov 086d874fe2 Docs: Fix links to sources in FIR Plugins documentation 2022-01-31 16:28:03 +03:00
Dmitry Petrov beb4cf3d99 PSI2IR KT-51036 fix lambda return value generation 2022-01-31 12:18:19 +00:00
Ilya Goncharov 02d731255c [Gradle, JS] Add to test success of compilation task 2022-01-31 12:00:14 +00:00
Ilya Goncharov a83cb9740e [Gradle, JS] Correct order of libraries 2022-01-31 12:00:13 +00:00
Ilya Goncharov 6872b6ef8a [Gradle, JS] Remove redundant argument 2022-01-31 12:00:13 +00:00
Ilya Goncharov 32cda8a37e [JS IR] Fix cache format, module name one the second line 2022-01-31 12:00:12 +00:00
Aleksei.Cherepanov 76637a8844 Fix JPS test after 9e1a771d 2022-01-31 12:55:37 +03:00
Alexander Korepanov 769fbcf3d0 [JS IR] Improve performance for runtime typecheck
This is a part of KT-42743
2022-01-31 09:15:58 +00:00
Svyatoslav Scherbina fa951f8f9c [Gradle] Propagate offline mode to Native platform libs generator
^KT-49247
2022-01-31 09:14:20 +00:00
Svyatoslav Scherbina a28884b1c3 [Gradle] Propagate offline mode to Native cinterop
^KT-49247
2022-01-31 09:14:19 +00:00
Svyatoslav Scherbina 15a52f33ad [Gradle] Propagate offline mode to Native compiler
^KT-49247
2022-01-31 09:14:19 +00:00
Svyatoslav Scherbina 544447e67e Native: do not cache DependencyDirectories.localKonanDir
Caching is wrong when this code is running in Gradle daemon, because
the daemon can change the environment, while localKonanDir depends on
the environment.
2022-01-31 09:14:19 +00:00
Svyatoslav Scherbina b4fb0e9894 [Gradle] Remove unused internal class KotlinNativeKlibRunner 2022-01-31 09:14:18 +00:00
Svyatoslav Scherbina a4f1147815 Bump bundled K/N version to 1.7.0-dev-1132 2022-01-31 09:14:18 +00:00
Vladimir Dolzhenko 289b838d77 [kotlin] Optimize file.fileType calculation
#KTIJ-20095
2022-01-31 08:31:33 +00:00
Roman Golyshev bc3142f4da Remove accidentally copied testData file 2022-01-29 07:42:18 +00:00
Roman Golyshev f0f2f67024 KT-50862 Unwrap use-site substitution overrides
Use-site substitution override happens in situations like this:

```
interface List<A> { fun get(i: Int): A }

fun take(list: List<String>) {
  list.get(10) // this call
}
```

We want to have those overrides unwrapped, because we don't want
to deal with a different KtSymbol for each possible use-site

^KT-50862 Fixed
2022-01-29 07:42:18 +00:00
Roman Golyshev 564e408434 KT-50862 Add name property to KtSignature
See the KDoc of the property for the reasons why
it was created
2022-01-29 07:42:17 +00:00
Mads Ager e2c7290214 [JVM CLI] Prefer source over classpath.
If the class `A` is in a jar `previous.jar`, the following CLI
invocation will take that class instead of the `A` class
defined in `A.java`:

kotlinc -cp previous.jar A.java B.kt

This is problematic for build tools that put the jar for a
previous build on the classpath when recompiling some of the
files.

^KT-51025 Fixed.
2022-01-29 00:58:00 +01:00
Ivan Kylchik fca1909f4a Move interpreter's test from fir module to general tests-gen 2022-01-28 18:44:47 +00:00
Ivan Kylchik a1b45755f1 Evaluate range classes in interpreter if constructor's body is missing 2022-01-28 18:44:46 +00:00
Ivan Kylchik ae9914afe0 Move Instruction interface to separate file 2022-01-28 18:44:46 +00:00
Ivan Kylchik a0b5eda0ae Interpret getter with null body separately from common function 2022-01-28 18:44:45 +00:00
Igor Chevdar 9e7d8808bd [K/N][IR] Used new declaration parents checker 2022-01-28 18:21:13 +00:00
Dmitry Petrov 5bc8c1a600 IR refactor patch / validate declaration parent 2022-01-28 18:21:13 +00:00
Dmitry Petrov 08a946fd3f JVM_IR get rid of intermediate patch parent phases 2022-01-28 18:21:13 +00:00
Yahor Berdnikau 6c6534ee20 Decrease Kotlin daemon available memory in test
This should reduce flakiness in it.
2022-01-28 20:36:11 +03:00
Yahor Berdnikau 733f38e730 Migrate KaptIncrementalWithAggregatingApt tests to new test DSL
^KT-45745 In Progress
2022-01-28 20:34:31 +03:00
Yahor Berdnikau baa3610c7d Migrate KaptIncrementalWithIsolatingApt to new test DSL
^KT-45745 In Progress
2022-01-28 20:34:30 +03:00
Yahor Berdnikau 9ca2ce6647 Migrate KaptIncrementalIT to new test DSL
^KT-45745 In Progress
2022-01-28 20:34:29 +03:00
Yahor Berdnikau a0cb7c8173 Port method to get output for specific task
^KT-45745 In Progress
2022-01-28 20:34:28 +03:00
Ilya Kirillov d38e797399 Docs: Analysis API Usage document 2022-01-28 18:14:41 +01:00
Ilya Kirillov b67e011930 Docs: fix small typos 2022-01-28 18:14:40 +01:00
Ilya Kirillov 5e6827e65e Docs: change analysis docs structure 2022-01-28 18:14:40 +01:00
Alexander Korepanov d584cfc31d Remove workaround for KT-45620 from NumbersTest.kt. 2022-01-28 17:10:01 +00:00
Nikolay Krasko b28a79f5d0 Refactoring: utility for working with temp directory in FilePathsInKlibTest 2022-01-28 18:54:37 +03:00
Nikolay Krasko 0625446449 Minor: fix actual, expected usage in FilePathsInKlibTest 2022-01-28 18:54:37 +03:00
Nikolay Krasko 14936cbad2 Refactoring: do plain roots read in klib in FilePathsInKlibTest 2022-01-28 18:54:36 +03:00
Nikolay Krasko d951432fe3 Minor: remove commented code from FilePathsInKlibTest
Don't store commented code in the repository, it will likely
to be broken after uncomment anyway.
2022-01-28 18:54:35 +03:00
Dmitriy Novozhilov 3b7409be5f [FIR] Properly pass optIn annotations to full pipeline test 2022-01-28 17:53:59 +03:00
Mikhail Glukhikh c2f43dd98e Revert OPT_IN_MARKER_ON_OVERRIDE limitation #KT-48890 Fixed 2022-01-28 13:40:35 +00:00
Mikhail Glukhikh 0c49ae04cb Delay AbstractClassMemberNotImplementedWithIntermediate... to 1.8
Related to KT-45508
2022-01-28 13:40:35 +00:00
Mikhail Glukhikh 2a6462ef09 Enable KT-45508 and KT-49017 errors when jvmDefault=all(-compatibility) 2022-01-28 13:40:35 +00:00
Mikhail Glukhikh d3f6ba99cb Add links to related issues to some deprecation warnings 2022-01-28 13:40:34 +00:00
Aleksei.Cherepanov 0e0b3e6d75 Add test of Kotlin Lombok project compilation
This test checks that the project with Lombok plugin will be compiled successfully after successful import (KTIJ-20506)

#KTIJ-20641 Fixed
2022-01-28 13:30:42 +00:00
Dmitriy Dolovov 2c3b2ccf6f [Native][tests] Fix failing black box tests due to misconfiguration 2022-01-28 16:23:36 +03:00
Dmitriy Dolovov 02022cf260 [Native][tests] Generate KLIB ABI tests twice - to run with and w/o cache 2022-01-28 16:23:36 +03:00
Dmitriy Dolovov 5d1884d8dc [Native][tests] Refactoring: Move configuration properties that can be overridden to class-level settings 2022-01-28 16:23:35 +03:00
Dmitriy Dolovov 709101a56b [Native][tests] Refactoring: Extract configuration properties from NativeTestSupport 2022-01-28 16:23:35 +03:00
Dmitriy Dolovov bfc7e3d825 [Native][tests] Use new Gradle property for cache mode 2022-01-28 16:23:35 +03:00