Igor Chevdar
8981eb85de
[box-tests] Added a couple of reproducers for KT-52795
2022-07-28 16:01:17 +00:00
Vladimir Sukharev
412f07c55b
Call toString() within known class, during string concatenation type narrowing
...
^KT-53119 Improved
Merge-request: KT-MR-6755
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2022-07-28 14:57:28 +00:00
Alexander Korepanov
caa1570e25
[JS IR] Fix clashes between bridge and delegated function call
...
The patch fixes the js function signature rules to avoid clashes
between bridge and delegated call. Use overridden symbols dfs of
JsName annotation in order to get the correct bridge name.
^KT-52968 Fixed
2022-07-28 14:41:47 +00:00
Alexander Korepanov
6525f7a7ac
[JS IR] Fix a IC dependency building for class methods.
...
The patch fixes lost IC dependencies for inherited class or interface methods.
Especially between a fake override function and its implementation.
Since IrSymbolDeserializer doesn't provide all class methods,
they are collected from the class definitions.
^KT-53063 Fixed
2022-07-28 12:39:39 +00:00
Pavel Punegov
edbccd0add
Revert "[K/N][perf] Use properties file to get TeamCity URL"
...
This reverts commit a961a93da7 .
2022-07-28 12:39:08 +02:00
Victor Petukhov
a61648651b
[FE 1.0] Use original receivers for NI while DSL scope violation checking
...
Original receivers are already use in the near place
^KT-46969 Fixed
2022-07-28 08:51:42 +00:00
Dmitriy Novozhilov
eee35af7f9
Advance bootstrap to 1.8.0-dev-1006
2022-07-28 07:00:34 +00:00
Ilya Kirillov
556add72ff
[Analysis API FIR] fix KDoc reference resolve for aliased imports
2022-07-28 01:37:54 +02:00
Ilya Kirillov
24c9b8e006
[LL FIR] fix invalid designation collection in case of classpath conflict
...
^KTIJ-22323 fixed
2022-07-28 01:37:54 +02:00
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