Commit Graph

96466 Commits

Author SHA1 Message Date
Dmitrii Gridin 3c235681ea [SLC] update signature for createInheritanceList
^KT-54051
2022-11-29 13:33:33 +00:00
Dmitrii Gridin a539203e73 [SLC] drop KtAnalysisSession from SymbolLightClassBase
^KT-54051
2022-11-29 13:33:33 +00:00
Dmitrii Gridin 187557306a [SLC] drop redundant @OptIn(KtAllowAnalysisOnEdt::class) annotation
^KT-54051
2022-11-29 13:33:33 +00:00
Dmitrii Gridin db23cbe29e [AA] introduce api to create symbol pointer from psi
^KT-54051
2022-11-29 13:33:32 +00:00
Dmitrii Gridin c6987744be [SLC] SymbolLightFieldForEnumEntry: override right computeConstantValue
^KT-50241
2022-11-29 13:33:32 +00:00
Sebastian Sellmair 05b8a26a17 [Gradle] IdeMultiplatformImport: Support LibraryBinaryIdentifier 2022-11-29 12:52:51 +00:00
Dmitriy Novozhilov 46928eaa0b [FIR] Unconditionally enable BooleanElvisBoundSmartCasts feature in K2
^KT-54694 Fixed
^KT-26357
2022-11-29 12:25:45 +00:00
Dmitriy Novozhilov ac7fddaad5 [FE] Always infer upper types to intersection types in K2...
...and always use old algorithm for K1

^KT-51221
2022-11-29 12:25:44 +00:00
Sergej Jaskiewicz d50c072af0 [klib] Validate paths when unpacking zip archives 2022-11-29 12:21:04 +00:00
Dmitriy Dolovov 898626d055 [Gradle][IT] Fix K/N IT that fails due to new interop library CoreFoundationBase 2022-11-29 10:19:00 +00:00
Sebastian Sellmair 0b5d905577 [Gradle] Update kotlin-tooling-core.api and kotlin-gradle-plugin-idea.api
^KT-55112 Verification Pending
2022-11-29 08:05:15 +00:00
Sebastian Sellmair 80f22dda28 [Gradle] Cleanup IdeMultiplatformImportFactory.kt
^KT-55112 Verification Pending
2022-11-29 08:05:15 +00:00
Sebastian Sellmair d6f9e62565 [Gradle] Constraint IdeVisibleMultiplatformSourceDependencyResolver to non-leaf source sets
^KT-55112 Verification Pending
2022-11-29 08:05:15 +00:00
Sebastian Sellmair 2f5dc93ba7 [Gradle] Replace IdeaKotlinProjectArtifactDependency.Resolver by resolved function
^KT-55112 Verification Pending
2022-11-29 08:05:14 +00:00
Sebastian Sellmair 4c270c7f6e [kotlin-tooling-core] Implement HasExtras utils
^KT-55112 Verification Pending
2022-11-29 08:05:14 +00:00
Sebastian Sellmair 55cfe52e7d [Gradle] IdeaKotlinProjectArtifactDependencyMatcher: Use host independent path matcher
^KT-55112 Verification Pending
2022-11-29 08:05:14 +00:00
Sebastian Sellmair 3f24b690e2 [Gradle] IdeVisibleMultiplatformSourceDependencyResolver: Reuse resolveMetadata function
^KT-55112 Verification Pending
2022-11-29 08:05:13 +00:00
Sebastian Sellmair 813fb6fc40 [Gradle] kgp-idea: Update api reference
KT-55112
2022-11-29 08:05:13 +00:00
Sebastian Sellmair f9d1286fce [Gradle] kgp-idea: Compatibility tests: bump version to 1.8.20-dev-3076
KT-55112
2022-11-29 08:05:13 +00:00
Sebastian Sellmair 4c69b5867f [Gradle][Minor] Update Test__Kotlin_Gradle_Plugin___idea.xml
KT-55112
2022-11-29 08:05:12 +00:00
Sebastian Sellmair 2bfc559c50 [Gradle] Implement IdeaKotlinEntityTest and IdeaKotlinEntity annotations
KT-55112
2022-11-29 08:05:12 +00:00
Sebastian Sellmair 2c55d2cea3 [Gradle] Implement IdeaKotlinProjectArtifactDependency.Resolver.composite
KT-55112
2022-11-29 08:05:12 +00:00
Sebastian Sellmair 273f8a8434 [Gradle] Implement IdeaKotlinProjectArtifactDependency.Resolver
KT-55112
2022-11-29 08:05:11 +00:00
Sebastian Sellmair 0aad848757 [Gradle] IdeMultiplatformImport: Force empty binary resolve for Android dependencies
KT-55112
2022-11-29 08:05:11 +00:00
Sebastian Sellmair 90248f4e44 [Gradle] Share utils in IdeMetadataDependencyResolvers with IdeJvmAndAndroidSourceDependencyResolver
KT-55112
2022-11-29 08:05:11 +00:00
Sebastian Sellmair cda82b47e0 [Gradle] Implement IdeaKotlinProjectArtifactDependency
KT-55112
2022-11-29 08:05:10 +00:00
Sebastian Sellmair e6daabdb2d [Gradle] IdeOriginalMetadataDependencyResolver: Safe cast to ModuleCompontentIdentifier
KT-55112
2022-11-29 08:05:10 +00:00
Sebastian Sellmair dcc196db04 [Gradle] Implement IdeJvmAndAndroidSourceDependencyResolver
KT-55112
2022-11-29 08:05:10 +00:00
Sebastian Sellmair 38446dc3e8 [Gradle] IdeResolveSourceDependenciesTest: Implement jvmAndAndroid test
KT-55112
2022-11-29 08:05:09 +00:00
Sebastian Sellmair d935e41862 [Gradle] Implement IdeFriendSourceDependencyResolver & IdeVisibleMultiplatformSourceDependencyResolver
KT-55112
2022-11-29 08:05:09 +00:00
Mads Ager 30002e29d1 [KAPT+JVM_IR] Do not generate initializers for delegated properties.
^KT-54870 Fixed
2022-11-28 22:27:09 +01:00
Alexander Korepanov 9dab8637a8 [JS Gradle] Pass incremental cache root dir to K2JS compiler 2022-11-28 20:46:40 +00:00
Alexander Korepanov 693258ae91 [JS IR] Invalidate all klib dependencies after removing it
Without the invalidation, broken JS code
 (with broken cross-module references) may appear.

 ^KT-54911 Fixed
2022-11-28 20:46:40 +00:00
Alexander Korepanov ca19d71a00 [JS IR] Commit cache header after lowering
Commiting cache header before lowering may
 break caches in case of lowering errors.

^KT-54912 Fixed
2022-11-28 20:46:40 +00:00
Alexander Korepanov 8cde0a81bc [JS IR] Use topological order for loading klibs in JS IR IC
Generally, the library order doesn't matter.

 However, after lowering we need to post process
 lowered klibs in topological order:
  - commit incremental cache artifacts,
  - produce JS AST.

 The patch uses an ability of the Kotlin library resolver to load klibs
 in topological order and drops its reimplementation from IC infrastructure.

 There is one side effect:
   klibs which are not reachable from the main module, will produce their JS.
   This should be more correct than just ignoring them.
2022-11-28 20:46:39 +00:00
Alexander Korepanov ec6a7094e6 [JS IR] Manage cache root dir from IC cache updater
- pass cache root directory instead of dir list
 - manage klib cache dirs from cache updater
2022-11-28 20:46:39 +00:00
Alexander Korepanov c7589245c4 [JS IR] Minor IC refactoring
Move metadata classes from cache updater to separate file.
2022-11-28 20:46:38 +00:00
Sebastian Sellmair 0f4e4ac20e KotlinFacetSettings: Serialize and deserialize additionalVisibleModuleNames
^KT-55145 Verification Pending
2022-11-28 18:00:48 +00:00
Mikhail Glukhikh 8ffabddf75 FIR2IR: cleanup field static fake override caching 2022-11-28 17:27:51 +00:00
Mikhail Glukhikh 91a3c78844 Fir2IrDeclarationStorage: drop redundant 'with' + fix formatting 2022-11-28 17:27:51 +00:00
Mikhail Glukhikh 237f357016 FIR: don't copy initializer for field override, unwrap it instead 2022-11-28 17:27:50 +00:00
Mikhail Glukhikh c698d060c6 FIR2IR: support static fake overrides for fields (related to KT-53441)
#KT-54921 Fixed
2022-11-28 17:27:50 +00:00
Svyatoslav Scherbina 6979271998 Native: fix benchmarksAnalyzer build configuration
Likely broken by e07e92c9
2022-11-28 16:46:42 +00:00
Sergej Jaskiewicz aa1b18b0c8 [IR] Prevent infinite recursion when rendering bound symbol references
Refactor the renderer, make BoundSymbolReferenceRenderer a static class
to prevent calling RenderIrElementVisitor's methods from it to avoid
infinite recursion in the future.

^KT-52677 Fixed
2022-11-28 16:43:53 +00:00
Alexander Korepanov 9fcd185141 [JS IR] Set kotlin.js.test.root.out.dir for IC tests
Property kotlin.js.test.root.out.dir is required for
 JS IR IC tests, otherwise they can't be run from IDEA.
2022-11-28 16:13:10 +00:00
Vladimir Dolzhenko af08e4121d Fix fragment element types class hierarchy.
They must not extend `IStubFileElementType`.

#KT-55160 Fixed
2022-11-28 15:44:37 +00:00
Vladimir Dolzhenko e751b11b5e Add extra checks
#EA-721785
2022-11-28 15:20:29 +00:00
Ilya Chernikov e4a361a4b4 K2 Scripting: disable scripts in source roots by default
fixes ultimate FP test
2022-11-28 15:10:55 +00:00
Pavel Kunyavskiy 09518a457a Better unbound symbols support for dumpKotlinLike
If there is an unbound symbols in IrTree near backend exception,
compiler failed again during processing an error.

It led to hard-understandable error. Now at least it would show
problematic part of code, which is better for making workarounds.

^KT-55088
2022-11-28 14:22:46 +00:00
Pavel Kunyavskiy def98f83ac [K/N] Disable gcStats test with noop gc 2022-11-28 13:58:18 +00:00