Commit Graph

90719 Commits

Author SHA1 Message Date
Yahor Berdnikau eba9f697c0 Convert KotlinAndroidExtensionIT to new test dsl
^KT-45745 In Progress
2022-01-24 23:27:28 +01:00
Yahor Berdnikau b07ba5f712 Convert KaptModelIT to new test dsl
^KT-45745 In Progress
2022-01-24 23:27:27 +01:00
Yahor Berdnikau 052b5c347e Convert AllOpenModelIT to new test dsl
^KT-45745 In Progress
2022-01-24 23:27:27 +01:00
Yahor Berdnikau e632189651 Add method to fetch from the project available models
^KT-45745 In Progress
2022-01-24 23:27:24 +01:00
Nikolay Krasko da556452c9 Use project directory as a base for stdlib js build
Some sources for kotlin-stdlib-js-ir are not copied to build dir
and used directly from the project.

Modify kotlin.test/js-ir as well, while there's no evidence of the
problem so far.

Should be removed after KT-50876 fix.

^KTI-730 In Progress
2022-01-25 00:58:54 +03:00
Xin Wang ebcc2cc3b2 PSI2IR: KT-49485 chunk ktConditions to avoid stackoverflow 2022-01-24 19:28:59 +03:00
Alexander Korepanov b40227b66e [JS IR] Re-export all JS-exports from main module in multi-module mode
Add an implicit transitive re-export through
main module for all other module's JS-exports.
2022-01-24 15:17:56 +00:00
Ilya Goncharov d52fa8dd9b [Gradle, JS] Add test on JS IR IC case with multiple artifacts 2022-01-24 14:46:50 +00:00
Pavel Kunyavskiy 80b50f5452 [K/N] Disable freezing by default, if memory model is experimental 2022-01-24 13:38:30 +00:00
Pavel Kunyavskiy 3798920183 [K/N] Any.isFrozen is now always false when freezing is disabled 2022-01-24 13:38:30 +00:00
Yahor Berdnikau 35ef8cc6da Show user-friendly message on OOM compilation error
This should provide a hint to user how to mitigate out-of-memory error
on compilation inside Kotlin daemon or in-process.

^KT-47522 Fixed
2022-01-24 10:30:53 +01:00
Dmitriy Novozhilov ee180a37a6 Docs: add basic FIR plugin API documentation 2022-01-24 11:11:07 +03:00
Dmitriy Novozhilov 340e0d1c78 Advance bootstrap to 1.7.0-dev-961 2022-01-23 12:39:12 +03:00
Dmitriy Novozhilov dd953908df [FE 1.0] Add compiler flag for rendering internal diagnostic names in error messages 2022-01-23 11:14:56 +03:00
Dmitriy Novozhilov b9c22a5e5e [Build] Add ability to choose which run configurations for modularized tests should be generated 2022-01-23 08:22:07 +03:00
Dmitriy Novozhilov b8e728f0cb [Build] Generate run configurations for modularized tests on Space 2022-01-23 08:22:07 +03:00
Dmitriy Novozhilov d1fb8338ef [FIR] Infer type of elvis from lhs if rhs is Nothing
^KT-50875 Fixed
2022-01-23 08:22:07 +03:00
Simon Ogorodnik 83ff0946fe Inference. Remove chain inference stubs from fixed variables constraints 2022-01-22 09:02:02 +03:00
Yahor Berdnikau d754c60c32 Migration DukatIntegrationIT tests to new DSL
^KT-45745 In Progress
2022-01-21 23:37:25 +03:00
Yahor Berdnikau 883432fbb8 Rename KotlinToolingMetadataIT to be considered as MPP test
^KT-45745 In Progress
2022-01-21 23:05:22 +03:00
Yahor Berdnikau 22623016b8 Rename HierarchicalStructureOptOutIT to be considered as MPP test
^KT-45745 In Progress
2022-01-21 23:05:21 +03:00
Yahor Berdnikau 8264623e3d Move AppleFrameworkIT into native tests
^KT-45745 In Progress
2022-01-21 23:05:20 +03:00
Yahor Berdnikau cb081f3752 Move NativeLibraryDslIT into native tests
^KT-45745 In Progress
2022-01-21 23:05:18 +03:00
Ivan Gavrilovic d85be5f259 [Gradle] Add CompilerPluginConfig to API
Add a convenient way to specify Kotlin compiler
plugin options with the CompilePluginConfig,
which is added to the -api subproject.

^KT-50869 In Progress
2022-01-21 22:53:54 +03:00
Nikolay Krasko 701e6ec91e Remove unused junit 4.12 from verification-metadata.xml
KTI-606
2022-01-21 20:59:41 +03:00
Ivan Kochurkin ed836f28f4 [FIR2IR] Function reference type approximation hack KT-49526 2022-01-21 19:34:11 +03:00
Ivan Kochurkin 070e860669 [FIR] Fix visibility for property accessors in raw fir common 2022-01-21 19:34:10 +03:00
Ivan Kochurkin defb0cf611 [FIR] Fix ambiguity between Sequence.forEach and Iterable.forEach (with @HidesMembers) ^KT-50776 Fixed 2022-01-21 19:34:10 +03:00
Ivan Kochurkin 4a200a2d7e [FIR2IR] Fix NSEE in case of lambda in enum entry constructor call, ^KT-50774 Fixed 2022-01-21 19:34:09 +03:00
Svyatoslav Scherbina a65b278f71 Native: generate debug locations for catch parameters
^KT-50558 Fixed
2022-01-21 16:08:13 +00:00
Ilya Kirillov d74418f575 LL API: remove old resolve api 2022-01-21 16:46:40 +01:00
Ilya Kirillov 6dd01a2ff5 LL API: do not lazy resolve local declarations 2022-01-21 16:46:39 +01:00
Ilya Kirillov c7729689c4 LL API: always create FirFile with lazy bodies 2022-01-21 16:46:38 +01:00
Ilya Kirillov 75ae37fcbf LL API: remove unused resolve api 2022-01-21 16:46:36 +01:00
Ilya Kirillov 7a0d1ce0d1 LL API: consider enum entries as structure elements 2022-01-21 16:46:30 +01:00
Ilya Kirillov e1fece6402 Analysis API: fix testdata of reference resolve tests which started to pass 2022-01-21 16:46:28 +01:00
Ilya Kirillov 16fbc09997 Analysis API: use FirSymbol in KtFirSymbol's instead of FirDeclaration
^KT-50271 fixed
2022-01-21 16:46:27 +01:00
Ilya Kirillov b20859e305 FIR: use "value" name in default setter value parameter symbol
This name is used in corresponding declaration
2022-01-21 16:46:26 +01:00
Ilya Kirillov d1335d3f44 Docs: add basic FIR compiler documentation
Originally written by Dmitriy Novozhilov
2022-01-21 15:56:47 +01:00
Anastasia.Shadrina 87b0670bbb [Tests] Add CompileKotlinAgainstCustomBinaries test for CR 2022-01-21 17:22:00 +03:00
Anastasia.Shadrina a86b4d767e [FE] KT-50878 Prohibit using contextual declarations without -Xcontext-receivers 2022-01-21 17:21:59 +03:00
Ivan Gavrilovic c93594331b [Gradle] Move some of the DSL to the API module
DSL exposed in the build scripts in effectively
an API, so this change moves it to the kotlin-gradle-plugin-api
subproject.

^KT-50869 In Progress
2022-01-21 16:57:23 +03:00
Dmitriy Novozhilov bb4f996467 Advance bootstrap to 1.7.0-dev-911 2022-01-21 15:44:04 +03:00
nataliya.valtman 791762d7ea Update kotlin report properties
-add kotlin.build.report.output to add file/http/build_scan reports
-all reports verbose by default
-verbose reports includes compiler metrics
-fix "custom value exceed length limit"
2022-01-21 09:43:21 +00:00
Ilya Goncharov 72656b49f4 [Gradle, JS] Fix Native test and not consider artifact in path 2022-01-21 09:17:41 +00:00
Ilya Goncharov 443c0bf74f [Gradle, JS] Fix case with multiple artifacts in module 2022-01-21 09:17:41 +00:00
Dmitriy Novozhilov bea2bc3980 [Parcelize] Move FIR related parts of parcelize to separate module
This is needed to avoid bundling of FIR classes to IDE plugin for
  parcelize, because it can cause compatibility issues, because
  IDE plugin does not contain FIR compiler
2022-01-21 10:22:39 +03:00
Mikhail Glukhikh 756ff6cf43 Minor performance improvements in tryToCompleteWithBuilderInference 2022-01-20 23:46:40 +03:00
Mikhail Glukhikh 98cdc95cd0 FIR DFA: exit delegate expression only after accessor completion
This commit fixes DFA problem (see test) when we accidentally try
to merge incoming flows from member property (val ... by cached ...) and
the following function. While completing lambda of buildList { ... }
inside by cached we accidentally assume that delegate is already left
and add the lambda into exitsFromCompletedPostponedAnonymousFunction.
This commit fixes the problem by exiting delegate later, after completion.
2022-01-20 23:46:39 +03:00
Mikhail Glukhikh c324bbfc37 FIR: fold two last getOrderedAllTypeVariables calls into one (stage 7,8)
This commit saves us some performance and fixes test for KT-35684.
FIR-based constraint completer at this moment can't extract type
variables from already completed calls.
Folding allows us to extract ordered type variables before completion.
2022-01-20 23:46:38 +03:00