Commit Graph

90920 Commits

Author SHA1 Message Date
Ilya Kirillov 96e1f1e7d4 Analysis API: fix some compilation errors in reference resolve testdata 2022-01-31 21:11:54 +01:00
Ilya Kirillov d926dda27f Analysis API FIR: introduce declarations from library resolve
^KT-50252 fixed
2022-01-31 21:11:52 +01:00
Ilya Kirillov d9200affe4 LL API: simplify FirModuleResolveState interface 2022-01-31 21:11:51 +01:00
Mikhail Glukhikh 05d65275bf FIR u/s scope: choose most specific intersection member for override check
Before this commit we took just first intersection member for this check.
However it's quite bad, because we were dependent on supertype order.
Choosing the most specific member looks more consistent here.

#KT-50969 Fixed
2022-01-31 21:59:18 +03:00
Mikhail Glukhikh 1137e61fc8 FIR: add test for KT-50969 2022-01-31 21:59:15 +03:00
Hung Nguyen 37c6b1c2dc KT-45777: Track build time in nanoseconds instead of milliseconds
to ensure precision (otherwise, rounding errors to milliseconds may
add up and cause unexplainable gaps in the running time).

We can still use milliseconds in the final report after all the precise
sub-build-times have been aggregated.
2022-01-31 19:50:03 +03:00
Yahor Berdnikau 52a21a4e1a Remove 'noStdlib' from Gradle options
^KT-49011 Fixed
2022-01-31 17:28:13 +01:00
Yahor Berdnikau 57c342fec8 Remove 'noReflect' from Gradle options
^KT-49011 In Progress
2022-01-31 17:28:13 +01:00
Yahor Berdnikau 27e449cd56 Remove 'useIR' from Gradle options
^KT-49011 In Progress
2022-01-31 17:28:13 +01:00
Yahor Berdnikau 8ffe78dba4 Remove GradleOption from 'includeRuntime' argument
^KT-49011 In Progress
2022-01-31 17:28:13 +01:00
Yahor Berdnikau c019dbce47 Rename DeprecatedOption into GradleDeprecatedOption
This should make it more explicit

^KT-49011 In Progress
2022-01-31 17:28:13 +01:00
Svyatoslav Scherbina 118bda675f [Gradle] Fix Native offline tests on Windows
Don't remove the temporary KONAN_DATA_DIR because it might be still in
use by the Gradle daemon process.
Create a new temporary directory instead.

The tests were introduced in 544447e...fa951f8
2022-01-31 14:42:12 +00:00
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