Commit Graph

40374 Commits

Author SHA1 Message Date
Dmitry Gridin 30c378edc2 [light classes] move KtLightIdentifier to light-classes-base module
^KT-53097
2022-07-19 15:41:34 +00:00
Dmitry Gridin 602a7dd73d [light classes] move KtLightClassBase to light-classes-base module
^KT-53097
2022-07-19 15:41:33 +00:00
Dmitry Gridin a5aca90d0a [light classes] move KotlinLightReferenceListBuilder to light-classes-base module
^KT-53097
2022-07-19 15:41:32 +00:00
Dmitry Gridin 5a2b61b71d [light classes] move LightClassesLazyCreator to light-classes-base module
^KT-53097
2022-07-19 15:41:31 +00:00
Dmitry Gridin 8d2ffad89c [light classes] move KotlinClassInnerStuffCache to light-classes-base module
^KT-53097
2022-07-19 15:41:30 +00:00
Dmitry Gridin 36926d9ad1 [light classes] move JavaElementFinder to light-classes-base module
^KT-53097
2022-07-19 15:41:30 +00:00
Dmitry Gridin 4432244317 [light classes] move lightClassUtils to light-classes-base module
^KT-53097
2022-07-19 15:41:29 +00:00
Dmitry Gridin d4e1ec3896 [light classes] move KtLightPackage to light-classes-base module
^KT-53097
2022-07-19 15:41:28 +00:00
Dmitry Gridin ffd488c857 [light classes] move KtLightParameterList to light-classes-base module
^KT-53097
2022-07-19 15:41:27 +00:00
Dmitry Gridin 83a1abdb81 [light classes] move LightParameter to light-classes-base module
^KT-53097
2022-07-19 15:41:26 +00:00
Dmitry Gridin 409389471b [light classes] move KtLightElements to light-classes-base module
^KT-53097
2022-07-19 15:41:25 +00:00
Dmitry Gridin 9e450a2cc0 [light classes] move LightElementOrigin to light-classes-base module
^KT-53097
2022-07-19 15:41:25 +00:00
Dmitry Gridin 31b89757f7 [light classes] move JvmDeclarationOriginKind to frontend.common.jvm module
^KT-53097
2022-07-19 15:41:24 +00:00
Dmitry Gridin 34f5decbd9 [light classes] move KotlinLightTypeParameterListBuilder to light-classes-base module
^KT-53097
2022-07-19 15:41:23 +00:00
Dmitry Gridin 3ede8e0f85 [light classes] move KtLightAnnotationsValues to light-classes-base module
^KT-53097
2022-07-19 15:41:22 +00:00
Dmitry Gridin c65c8f70aa [light classes] drop KtLazyLightClass
^KT-53097
2022-07-19 15:41:22 +00:00
Dmitry Gridin 0a4bfe1a56 [light classes] move KtLightPsiJavaCodeReferenceElement to light-classes-base module
^KT-53097
2022-07-19 15:41:21 +00:00
Dmitry Gridin 79d26823e1 [light classes] move LightVariableBuilder to light-classes-base module
^KT-53097
2022-07-19 15:41:20 +00:00
Dmitry Gridin d1eec4cc37 [light classes] move PsiElementWithOrigin to light-classes-base module
^KT-53097
2022-07-19 15:41:19 +00:00
Dmitry Gridin 521feb3267 [light classes] move KotlinAsJavaSupport to light-classes-base module
^KT-53097
2022-07-19 15:41:19 +00:00
Dmitry Gridin 871bf5edd1 [light classes] move KtFakeLightClass to light-classes-base module
^KT-53097
2022-07-19 15:41:18 +00:00
Dmitry Gridin a8dc871418 [light classes] move KtLightAbstractAnnotation to light-classes-base module
^KT-53097
2022-07-19 15:41:17 +00:00
Dmitry Gridin ed7299181c [light classes] move implUtils to light-classes-base module
^KT-53097
2022-07-19 15:41:17 +00:00
Dmitry Gridin 16e84b2c4d [light classes] move ImpreciseResolveResult to light-classes-base module
^KT-53097
2022-07-19 15:41:16 +00:00
Dmitry Gridin c7dbe901f5 [light classes] move KtLightElementBase to light-classes-base module
^KT-53097
2022-07-19 15:41:15 +00:00
Dmitry Gridin cd9bb800e5 [light classes] move KtLightClassForFacade to light-classes-base module
^KT-53097
2022-07-19 15:41:14 +00:00
Dmitry Gridin 8014f76eaa [light classes] move KtLightClass to light-classes-base module
^KT-53097
2022-07-19 15:41:13 +00:00
Dmitry Gridin db1cc9d807 [light classes] move KtLightElements to light-classes-base module
^KT-53097
2022-07-19 15:41:13 +00:00
Dmitry Gridin 14590310fa [light classes] introduce light-classes-base module
^KT-53097
2022-07-19 15:41:12 +00:00
Ilya Kirillov d04bd320f9 [LL FIR] ignore test failing due to ^KT-53242 2022-07-19 17:17:35 +02:00
Ilya Kirillov dbfeeae696 [fir] add more info to the error message in FirModuleData 2022-07-19 17:17:32 +02:00
Yahor Berdnikau 93a0cdbf97 Improve warnings and errors emitted by compiler in Gradle build
Make warnings and errors location clickable by using file URI scheme.
In most terminals and code editors (including IDEA) clicking on such uri
will open file at given line and offset.

^KT-51923 Fixed
2022-07-19 09:30:36 +00:00
Kristoffer Andersen 8d79fab109 Change BACKING_FIELD_REQUIRED from SetSlice 2022-07-18 23:50:35 +02:00
Kristoffer Andersen f0bc021b5e Change VARIABLE_REASSIGNMENT slice so it composes properly 2022-07-18 23:50:35 +02:00
Dmitriy Dolovov 532b9e2c5f [Native][IR] Partial linkage support for cached inline functions
- Support partial linkage for declarations from inline functions that are lazily deserialized from a KLIB with static cache
- Linker API: Split IrModuleDeserializer.deserializeIrSymbol() into deserializeIrSymbolOrFail() and tryDeserializeIrSymbol()
- Linker API: Refactor KotlinIrLinker.handleSignatureIdNotFoundInModuleWithDependencies() to deserializeOrReturnUnboundIrSymbolIfPartialLinkageEnabled()

^KT-52478
2022-07-18 17:29:50 +02:00
Dmitriy Dolovov 7c40fd31e3 [IR] Optimize SymbolTable.allUnbound 2022-07-18 17:29:50 +02:00
Dmitriy Dolovov 6a227236f8 [IR] Fix location in logging warnings about unlinked symbols 2022-07-18 17:29:50 +02:00
Dmitriy Dolovov f9d7f54838 [IR] Fix unlinked type for variables 2022-07-18 17:29:50 +02:00
Dmitriy Dolovov 2cf5d26edc [IR] JsIrLinker: Drop excessive maybeWrapWithBuiltInAndInit() function
^KT-52478
2022-07-18 17:29:50 +02:00
Dmitriy Dolovov ce04a24b26 [IR][tests] Removal of class used as variable type and constructor call 2022-07-18 17:29:50 +02:00
Dmitriy Dolovov d5ded97ccb [IR][tests] Removal of inlined class case
^KT-52478
2022-07-18 17:29:50 +02:00
Dmitriy Dolovov 7b5e33b6ca [IR][tests] Add tests for removal-of-typealias case 2022-07-18 17:29:49 +02:00
Dmitriy Dolovov 89a188d199 [IR][tests] Add tests for remove-inlined-callable member case 2022-07-18 17:29:49 +02:00
Dmitriy Dolovov 9c1c712057 [IR][tests] Add tests for removal-of-overridden open callable case 2022-07-18 17:29:49 +02:00
Pavel Mikhailovskii 846537b367 KT-45375 Lightweight lambdas; KT-52817 introduce @JvmSerializableLambda 2022-07-18 17:10:07 +02:00
Alexander Udalov bd0fe2f146 Remove dependency of compiler tests on fir2ir tests
Compiler tests use the old test infrastructure, but fir2ir tests use the
new one (tests-common-new). Removing this dependency means that now the
two big modules, `:compiler:compileTestKotlin` and
`:compiler:tests-common-new:compileTestKotlin` can be compiled in
parallel, which improves the total build time.
2022-07-18 13:13:01 +02:00
Pavel Mikhailovskii fd5800e8b5 KT-53090 Support -Xlambdas=indy for anonymous functions 2022-07-18 08:18:05 +00:00
Alexander Udalov b50d2ff20a Revert "JVM IR: Move direct invoke optimization into a separate pass"
This reverts commit f0760e0550.

The reason is that it leads to KT-53202.
2022-07-15 18:29:07 +02:00
Pavel Kirpichenkov 3051c36780 [MPP] add extension for non-HMPP common KLIBs
Add an analysis parameter that can be used to create a
package fragment provider for a common KLIB library
when composite analysis aka HMPP support in IDE is disabled.
Such KLIBs can appear since 1.6.20, when hierarchical
project structure was enabled by default. This means, that even
if HMPP is explicitly disabled in KGP via the Gradle property,
common code is still represented by KLIBs and not by
.kotlin_metadata as it used to be. IDE can't resolve
agains common KLIB dependencies without a corresponding
package fragment provider that can read KLIB libraries.

KT-53164
2022-07-15 12:37:50 +00:00
Hung Nguyen 5b6afef67d Rename ICReporter.report/reportVerbose to info/debug
to make it clear what severity levels they are mapped to.

^KT-52839 Fixed
2022-07-15 10:48:34 +00:00