Commit Graph

93945 Commits

Author SHA1 Message Date
Ilya Kirillov d9c4fda521 [Analysis API FIR] implement reference resolve inside KDoc
^KTIJ-22324 fixed
2022-07-28 01:37:53 +02:00
Dmitriy Dolovov b210e24b43 [Native][tests] Temporarily disable String codegen/box tests with "-opt" mode 2022-07-27 22:39:34 +00:00
Dmitriy Dolovov 5d234c0cdc [Native][tests] Ability to programmatically mute codegen/box & regular tests 2022-07-27 22:39:33 +00:00
Mikhail Glukhikh 91f3edc6a6 K1: add protection against exceptions possible in IDE partial resolve
IDE partial resolve allows to drop some statements from resolve,
in particular it can drop some lambda. However, this can lead to the
situation when we have no descriptor for lambda or to incorrect
type checks for its containing block. This commit protects about
this situation
2022-07-27 16:48:38 +00:00
Mikhail Glukhikh 3e58c54da9 Add docs to CandidateApplicability, remove DSL_SCOPE_VIOLATION 2022-07-27 15:29:48 +00:00
Mikhail Glukhikh d0c518013a Document&use CandidateApplicability.shouldStopResolve/isSuccess properly 2022-07-27 15:29:47 +00:00
Mikhail Glukhikh 010d5b76e5 Temporary fix for K2/JS tests 2022-07-27 15:29:46 +00:00
Mikhail Glukhikh 220a8e47f4 K2: de-prioritize invoke on dynamic receiver 2022-07-27 15:29:45 +00:00
Mikhail Glukhikh 766d873271 FIR2IR: fix case with extension called on dynamic 2022-07-27 15:29:45 +00:00
Mikhail Glukhikh 0611f3b8e7 CandidateApplicability: add K1/K2 prefixes when applicable 2022-07-27 15:29:44 +00:00
Mikhail Glukhikh 8e9e8302f7 CandidateApplicability: merge INAPPLICABLE_MODIFIER into CONVENTION_ERROR 2022-07-27 15:29:43 +00:00
Mikhail Glukhikh 577b9686c1 K2: fix using compatibility resolve for SAM constructors 2022-07-27 15:29:42 +00:00
Mikhail Glukhikh 32a73968de Stop tower resolve in K2 in more similar manner with K1 2022-07-27 15:29:41 +00:00
Aurimas 26ed21ec96 KT-52959 stop using project.rootProject in KotlinProperties.kt
project.rootProject breaks project isolation. The access is not needed here as we can
simply use project.getRootDir https://docs.gradle.org/current/javadoc/org/gradle/api/Project.html#getRootDir--

^KT-52959 Fixed
2022-07-27 15:19:48 +00:00
Yahor Berdnikau a218ad92be Fix false-positive on checking unused sourcesets in MPP+Android project
AGP could create 'AndroidSourceSet' that does not participate in any
compilation. For this 'AndroidSourceSet's plugin should mark
corresponding KotlinSourceSet as orphan and exclude from check.

Unfortunately filtering them on KotlinSourceSet does not work,
as AGP adds sourcesets into variants lazily. And MPP requires all
SourceSets to be created eagerly. This change excludes all
KotlinSourceSets created for Android compilation from such check.

^KT-48436 Fixed
2022-07-27 14:01:55 +00:00
nataliya.valtman 52c4cd7b34 Add custom values limit into build scan statistic 2022-07-27 12:52:04 +00:00
nataliya.valtman 9d465236ee Add SINGLE_FILE statistic option 2022-07-27 12:52:03 +00:00
Vladimir Sukharev 2313dbeb9e Don't introduce call to deprecated "StringBuilder.append(String)"
Merge-request: KT-MR-6705
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
2022-07-27 11:08:58 +00:00
Pavel Punegov a961a93da7 [K/N][perf] Use properties file to get TeamCity URL 2022-07-27 09:06:34 +00:00
Pavel Punegov 911512ba96 [K/N][perf] Add try-clause for sending request 2022-07-27 09:06:33 +00:00
Ilya Gorbunov 1addc23b23 Add range iteration tests for rangeUntil
#KT-52932
2022-07-26 23:52:10 +00:00
Ilya Kirillov 50247a0346 [Analysis API FIR] fix getNamedClassOrObjectSymbol for MPP classes 2022-07-26 23:41:12 +02:00
Ilya Kirillov 0b285a951a [Analysis API FIR] do not fail PsiClass.getNamedClassSymbol on Kotlin classes 2022-07-26 23:41:12 +02:00
Ilya Kirillov fae30cef94 [Analysis API FIR] fix getting class id for non-java declarations 2022-07-26 23:41:11 +02:00
Ilya Kirillov 8be019d9bf [Analysis API] simplify KotlinDeclarationProvider interface 2022-07-26 23:41:11 +02:00
Ilya Kirillov 8c70a4d51d [Analysis API FIR] use narrower scope for KtFirStarImportingScope 2022-07-26 23:41:11 +02:00
Ilya Kirillov 9d82eb8fe3 [LL FIR] do not rethrow IndexNotReadyException/ControlFlowException from caches 2022-07-26 23:41:11 +02:00
Ilya Gorbunov 721508f6dd Add several equality tests for empty open ranges 2022-07-26 18:42:30 +00:00
Steven Schäfer 58e51919bd Parcelize: Add missing FIR diagnostics 2022-07-26 09:34:10 +00:00
Steven Schäfer d4aa303acb Parcelize: Avoid KotlinTypeMapper in ParcelizeDeclarationChecker 2022-07-26 09:34:10 +00:00
Steven Schäfer d2f6acfd34 FIR: Add resolved type refs to the annotation container context for diagnostics 2022-07-26 09:34:09 +00:00
Alexander Shabalin 29a0bbca4d [K/N] Fix ScopedThreadTest
Merge-request: KT-MR-6744
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-07-26 08:47:08 +00:00
Ivan Kochurkin 80450042c7 [FIR] Ignore KtFakeSourceElementKind in FirRecursiveProblemChecker 2022-07-25 23:30:10 +02:00
Ivan Kochurkin 0af43757e3 [FIR] Implement FirNativeIdentifierChecker
* INVALID_CHARACTERS_NATIVE
2022-07-25 23:30:10 +02:00
Ivan Kochurkin a44d5bf52f [FIR] Implement FirNativeThreadLocalChecker
* INAPPLICABLE_THREAD_LOCAL
* INAPPLICABLE_THREAD_LOCAL_TOP_LEVEL
2022-07-25 23:30:10 +02:00
Ivan Kochurkin 987137cf76 [FIR] Implement FirNativeSharedImmutableChecker
* INAPPLICABLE_SHARED_IMMUTABLE_PROPERTY
* INAPPLICABLE_SHARED_IMMUTABLE_TOP_LEVEL
2022-07-25 23:30:10 +02:00
Ivan Kochurkin 1bb158e45c [FIR] Add SourceSet.generatedDir() and use it in build.gradle.kts 2022-07-25 23:30:10 +02:00
Ivan Kochurkin 9f9cef392f [FIR] Minor fixes of FirJvmDefaultChecker 2022-07-25 23:30:09 +02:00
Ivan Kochurkin ad1fb07a95 [FIR] Implement FirNativeThrowsChecker 2022-07-25 23:30:09 +02:00
Ivan Kochurkin c47148b8fb [FIR] Remove FirJsSyntheticNamesProvider and FirNativeSyntheticNamesProvider.kt 2022-07-25 23:30:09 +02:00
Ivan Kochurkin 502349c594 [FIR] Implement Native test infrastructure, add FirNativeSessionFactory 2022-07-25 23:30:09 +02:00
Ivan Kochurkin 2f56b29b3f [FIR] Extract FirSessionConfigurator and IncrementalCompilationContext to separated classes
With FirSessionFactory and FirJsSessionFactory
2022-07-25 23:30:09 +02:00
Ivan Kochurkin 94527e24e8 [FIR] Commonize code for creating common, JVM and JS session
Extract FirAbstractSessionFactory
2022-07-25 23:30:09 +02:00
Pavel Kunyavskiy d6f235679b [K/N] Get rid of urls in perf infra code 2022-07-25 21:25:23 +00:00
Pavel Punegov f13c71bb06 [K/N][perf] Add Parameter to specify URL to the performance server 2022-07-25 21:25:22 +00:00
Sergej Jaskiewicz dbcffeb0ed [JS] Fix a compiler crash when generating sourcemaps
It is possible that the source info has the type `KtPureElement`.
For example, the serialization plugin may create a synthetic companion
object for a `@Serializable`-annotated class.
This results in an instance of
the `SyntheticClassOrObjectDescriptor.SyntheticDeclaration` class being
indirectly set as source info. This class implements the `KtPureElement`
interface.
2022-07-25 19:27:59 +00:00
aSemy d35656cb9f KT-52647 remove "projects must be configuring" check 2022-07-25 17:09:48 +00:00
Sergey Bogolepov 89d3b9819b [K/N] Mute test parts that cause KT-53317 2022-07-25 16:28:49 +00:00
Denis.Zharkov 7d6e133c0d Refine warning messages for KT-36770
^KT-36770 Fixed
2022-07-25 16:08:49 +00:00
Denis.Zharkov 7f7e5c5975 FIR: Fix candidate receivers orders when choosing a context receiver
^KT-53257 Fixed
2022-07-25 15:11:29 +00:00