Commit Graph

92987 Commits

Author SHA1 Message Date
Nikolay Egorov 149402cf00 Make TypeMapper use signatureWriter for scripts expression evaluation;
Support nullability detection for IrScriptSymbol;

tests in IJ commit: "[scripting] Introduce tests for KT-51755"
2022-06-09 14:08:28 +00:00
Nikolay Egorov 1c04162690 Proper script receiverValue for synthetic evaluation expression class;
tests in IJ commit: "[scripting] Introduce tests for KT-51755"
2022-06-09 14:08:27 +00:00
Alexander Shabalin ac395b21ea [K/N] Fix state switch in CAdapterGenerator ^KT-52692
Merge-request: KT-MR-6429
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-06-09 13:01:17 +00:00
Vladimir Sukharev 83d7524232 Fix KT-26478: Objective-C-objects-class-name-is-null-in-ClassCastExceptions-message
#KT-26478 Fixed

Merge-request: KT-MR-6405
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
2022-06-09 12:57:11 +00:00
Mikhail Glukhikh a31d383b4d Analysis API: add implementation of ReadWriteAccessChecker via descriptors 2022-06-09 11:05:36 +00:00
nataliya.valtman b19837aa02 Change log level for compiler performance metrics 2022-06-09 08:55:47 +00:00
nataliya.valtman 120fb56f8d KT-52549: ignore reportPerf property 2022-06-09 08:55:46 +00:00
Jinseong Jeon 5c147c1ded AA: fail-safe binary root lookup 2022-06-09 10:35:17 +02:00
Jinseong Jeon c1b2469e51 AA: register CoreJavaFileManager
in a similar way
KotlinCoreEnvironment.ProjectEnvironment.registerJavaPsiFacade does
2022-06-09 10:35:17 +02:00
Jinseong Jeon af053fd8f3 AA: fail-safe JvmRoot lookup 2022-06-09 10:35:17 +02:00
Jinseong Jeon aef3df0336 AA: introduce AA session and builder 2022-06-09 10:35:16 +02:00
Jinseong Jeon 5585d84808 AA: make utils in StandaloneProjectFactory more general 2022-06-09 10:35:16 +02:00
Jinseong Jeon 72bf702309 AA: utilize file lookup utils (to reuse in facade) 2022-06-09 10:35:16 +02:00
Jinseong Jeon 4cfefbd921 AA: introduce ProjectStructureProvider builder 2022-06-09 10:35:16 +02:00
Jinseong Jeon 8528f6244d AA: introduce KtModule builders 2022-06-09 10:35:15 +02:00
Jinseong Jeon d592dab4b6 AA: rename util file to match module/pcakge name 2022-06-09 10:35:15 +02:00
Jinseong Jeon 355fd48782 AA: remove test prefix at non-test module 2022-06-09 10:35:15 +02:00
Mikhail Zarechenskiy 372879b8e7 [FE 1.0] Don't fail with exception on unresolved type with type argument
^KT-50223 Fixed
2022-06-09 08:03:35 +00:00
pyos 87dc1f7fde JVM_IR: remove ExpressionCodegen.inlinedInto 2022-06-08 23:59:58 +02:00
pyos 27c51f5f88 JVM_IR: skip SAM lambdas when computing enclosing method of objects
This is what Java 15+ does, and it permits accessing captured type
parameters via reflection. The alternative is to emit generic signatures
on the lambda methods, but that was disabled and I have no clue why.

^KT-52417 Fixed
2022-06-08 23:59:58 +02:00
Pavel Mikhailovskii f81d47bad6 KT-46797 Generate generic signatures for suspendImpl 2022-06-08 16:15:08 +02:00
Sergej Jaskiewicz eae89da540 Factor out stepping test utility functions
We will need them for JS stepping tests as well.
2022-06-08 13:42:07 +00:00
Steven Schäfer dbb6144ab0 JVM IR: Avoid boxing in generic floating point equality (KT-48635) 2022-06-08 15:38:06 +02:00
Dmitriy Novozhilov 36a154507e [Parcelize] Remove dependency from backend module to k2 module
This is needed to avoid dependencies on FIR classes inside Parcelize IDE
  plugin
2022-06-08 11:33:37 +00:00
Yahor Berdnikau 021e251143 Fix Gradle plugin inputs validation issue
Also add '@Internal' annotation in interface, so it propagated to all
inheritors.

^KT-52448 Fixed
2022-06-08 12:45:56 +02:00
Jinseong Jeon 4700ad3e9e Docs: fix links to sources in FIR plugins 2022-06-08 11:28:56 +02:00
Roman Golyshev 8fca9f41eb [FIR IDE] Correctly check declarations' modalities in SamResolver
Modality might be null before the declaration itself is resolved to
`STATUS`

^KT-52667 Fixed
2022-06-07 21:14:24 +00:00
Igor Yakovlev 3abcd84802 [WASM] Fix Kotlin.Test box tests 2022-06-07 20:59:03 +00:00
Igor Yakovlev f996278171 [WASM] Support for mjs universal launcher 2022-06-07 20:59:03 +00:00
Igor Yakovlev c8806763fa [WASM] Kotlin gradle plugin tests for Wasm nodejs and d8 support 2022-06-07 20:59:02 +00:00
Igor Yakovlev 4943d5d683 [WASM] Support wasm backend DSL for d8 2022-06-07 20:59:02 +00:00
Igor Yakovlev ee8a90f668 [JS] Fix implement MonotonicTimeSource for d8 2022-06-07 20:59:01 +00:00
Igor Yakovlev dec2426a54 [WASM] Add OptIn to declaration with JsExport 2022-06-07 20:59:01 +00:00
Igor Yakovlev 83ecafe8d1 [WASM] Add toString implementation to Throwable 2022-06-07 20:59:01 +00:00
Sergey.Shanshin facde26371 Added serialization support for the kotlin.time.Duration class as built-in 2022-06-07 20:37:05 +00:00
Dmitriy Novozhilov cdbfa7fbbc [Plugins] Fix bundling sources of NoArg, AllOpen and Lombok for maven plugins 2022-06-07 14:12:27 +00:00
Dmitriy Novozhilov d527b00dfc [FIR] Create generated declared scope only for classes from sources and plugins 2022-06-07 14:12:27 +00:00
Dmitriy Novozhilov f5637e5077 [FIR] Look for jar with plugin annotations in system property and by direct path in tests
This is needed to make those tests work in JPS, because corresponding
  system property is set only by gradle
2022-06-07 14:12:27 +00:00
Dmitriy Novozhilov a85d25d7a6 [FIR] Rename UnderAnnotatedWith predicate to AncestorAnnotatedWith 2022-06-07 14:12:26 +00:00
Dmitriy Novozhilov 66c2679673 [Plugins] Extract parts of cli modules which were used from IDE into common modules
This is needed to avoid IDE dependencies on cli modules, because they
  include FIR classes, which are inaccessible in regular Kotlin IDE plugin
2022-06-07 14:12:26 +00:00
Dmitriy Novozhilov 9b56a01d74 [Plugins] Include backend parts of noarg and parcelize into jars for IDE 2022-06-07 14:12:25 +00:00
Dmitriy Novozhilov 83d0a3e7a3 [FIR] Extract FirPluginKey into :core:compiler.common and rename it to GeneratedDeclarationKey
This is needed to avoid dependency on :compiler:fir:fir2ir module in
  backend parts of compiler plugins. It will allow to publish those
  parts into jars for IDE, where they are needed for working of debugger
  and bytecode toolwindow
2022-06-07 14:12:25 +00:00
Dmitriy Novozhilov a84ece7233 [Lombok] Add implementation of plugin for FIR 2022-06-07 14:12:25 +00:00
Dmitriy Novozhilov e58e86932c [FIR] Pass declared member scope to methods of declaration generation extension 2022-06-07 14:12:24 +00:00
Dmitriy Novozhilov ae0bc1c078 [FIR] Generate copy builder for FirTypeParameter 2022-06-07 14:12:24 +00:00
Dmitriy Novozhilov 430ea414a9 [Lombok] Convert tests with compilation errors to diagnostic tests 2022-06-07 14:12:23 +00:00
Dmitriy Novozhilov fb57e1ecd5 [FIR] Add two kinds of Java origin to distinguish source and library declarations 2022-06-07 14:12:23 +00:00
Dmitriy Novozhilov 26df9d74e8 [FE] Add flag to java model to distinguish source java classes from binaries 2022-06-07 14:12:23 +00:00
Dmitriy Novozhilov 09ff6303cc Reformat TreeBasedAnnotation.kt 2022-06-07 14:12:22 +00:00
Dmitriy Novozhilov 23c69f8d17 [FIR] Add to new types of annotation predicates
- `ParentAnnotatedWith` matches declarations, which parent is annotated
- `HasAnnotatedWith` matches declarations, which have at least one
     direct child with annotation

Also, `DeclarationPredicate.Any` is removed, because there is no
  intention to support lookup for all declarations in module

^KT-52486 Fixed
2022-06-07 14:12:22 +00:00