Jinseong Jeon
4859524115
SLC: account for upperbounds when computing nullability of type parameter
2022-09-09 14:38:11 +02:00
Alexander Udalov
7dad47cd76
Add -X argument to disable generation of @SourceDebugExtension
...
This will be used in tests in the subsequent commit.
2022-09-09 14:32:35 +02:00
Alexander Udalov
87d3ce6ded
Write a copy of SMAP to a new annotation
...
To make it available for dynamically attached JVMTI agents.
`@SourceDebugExtension` annotation value is equal to the
SourceDebugExtension attribute value, which is checked now for all box
tests. The difference is that the annotation stored in the constant
pool, which is available for dynamically attached JVMTI agents.
#KT-53438 Fixed
2022-09-09 14:32:35 +02:00
Artem Kobzar
da367a467d
[K/JS] chore: stop unnecessary defineProperties generating.
2022-09-09 11:14:26 +00:00
Sergej Jaskiewicz
9176ba5b2d
[JS IR] Don't set fileIdentity when embedding sources into sourcemaps
...
(see the comment)
2022-09-09 11:02:26 +00:00
Sergej Jaskiewicz
7874b1fcad
[JS] Rename JsLocation.identityObject to fileIdentity
2022-09-09 11:02:25 +00:00
Sergej Jaskiewicz
b9cac8a4ca
[JS IR] Support the sourceMapEmbedSources setting (partially)
...
This doesn't work with external libraries yet (including stdlib).
2022-09-09 11:02:25 +00:00
Rick Clephas
b406722e20
[K/N] Prohibit empty ObjCNames
2022-09-09 12:31:36 +02:00
Vladimir Dolzhenko
e0c2813a37
Increment version due to externalId change
...
#KT-53781
2022-09-09 08:17:50 +00:00
Dmitry Gridin
aa31ca67e2
[lc] KotlinAsJavaSupportBase: make librariesTracker abstract
...
^KT-50241
2022-09-08 13:47:40 +00:00
Dmitry Gridin
ec1b6f4f3e
[lc] KotlinAsJavaSupportBase: reduce number of findModule calls
...
^KT-50241
2022-09-08 13:47:39 +00:00
Dmitry Gridin
e58b98bb5c
[lc] KotlinAsJavaSupportBase: implement getLightClassForScript
...
^KT-50241
2022-09-08 13:47:39 +00:00
Dmitry Gridin
46548e5443
[lc] KotlinAsJavaSupportBase: implement getLightClass
...
add more caching
^KT-50241
2022-09-08 13:47:38 +00:00
Mikhail Glukhikh
596ad7d7d3
FE: make EnumEntries unstable feature to poison binaries
2022-09-08 09:03:05 +00:00
Toshiaki Kameyama
26d4e02b7c
Allow KtPsiFactory#createModifierList to create fun modifier
...
#KTIJ-16332
2022-09-07 18:03:51 +00:00
Mikhail Glukhikh
a742c126c2
FIR2IR: check for @JvmStatic also on property accessors
2022-09-07 17:05:13 +00:00
Pavel Mikhailovskii
0b453ee328
KT-41670 Check for default property accessors in SAM interfaces
2022-09-07 13:37:38 +00:00
Pavel Mikhailovskii
85ab8b4ce1
KT-53783 Prohibit "expect data object" syntax
2022-09-07 12:53:24 +00:00
Nikolay Lunyak
45619ab390
[FIR] KT-53435: Fix false positive ANNOTATION_ARGUMENT_MUST_BE_CONST
...
Otherwise, `FirNamedArgumentExpression` are not considered
const expr despite the value.
Merge-request: KT-MR-7052
Merged-by: Nikolay Lunyak <lunyak.kolya@mail.ru >
2022-09-07 12:34:26 +00:00
Rick Clephas
ff1adf596d
[FIR] Implement ObjCName checkers
2022-09-07 11:00:51 +00:00
Mikhail Glukhikh
e52c50bfaa
K2: postpone "Enable DFA warnings" to version 1.9
...
#KT-50965 Fixed
2022-09-07 08:05:20 +00:00
Dmitriy Novozhilov
cb03ef89c5
[Test] Unmute passing test
2022-09-07 07:57:38 +00:00
Dmitriy Novozhilov
671083c701
[Serialization] Implement serialization checker for K2 version of plugin
...
^KT-53178 Fixed
2022-09-07 07:57:38 +00:00
Dmitriy Novozhilov
e048ffcf6d
[FIR] Update tests due to KT-53873
2022-09-07 07:57:38 +00:00
Dmitriy Novozhilov
40b13898bd
[FIR] Don't set source of inferred type from expected type
2022-09-07 07:57:37 +00:00
Dmitriy Novozhilov
e1fd184d14
[FIR] Fix missing initialization of backingField for properties from primary constructor
2022-09-07 07:57:37 +00:00
Dmitriy Novozhilov
194741b96b
[FIR] Remove incorrect FirClassSymbol<*>.superConeTypes utility
...
Replace all usages with member `FirClassSymbol.resolvedSuperTypes`
2022-09-07 07:57:37 +00:00
Dmitriy Novozhilov
6ef3d1e573
[FE] Add helper methods for reporting diagnostics with DiagnosticContext context receiver
2022-09-07 07:57:36 +00:00
Pavel Mikhailovskii
a75d5ba4cf
KT-53465, KT-53677 Get rid of unnecessary checkcasts to array of reified type
2022-09-06 18:33:38 +00:00
Mikhail Glukhikh
d8522a8967
FE: Add test for KT-53656
2022-09-06 17:57:02 +00:00
Mikhail Glukhikh
c1b0405c4e
[FE 1.0] Use the old type intersection for type parameter bounds
...
This is a partial revert of commit bc1c2ada
We have to use old type intersector for emptiness check because
KT-53656 were found. We return to old type intersector usage also
for type parameter bounds to prevent other possible problems.
2022-09-06 17:57:02 +00:00
Mikhail Glukhikh
3bdd52b64a
[FE 1.0] Return to the old type intersection emptiness check
...
This reverts commit 8227c4b603 .
#KT-53656 Fixed
2022-09-06 17:57:01 +00:00
Vladimir Dolzhenko
79d1ca0504
Align externalId
...
externalId for any field in stubElementTypeHolder has to be prefix (`kotlin`) + dot (`.`) + field name
#KT-53781
2022-09-06 10:52:33 +00:00
Nikolay Lunyak
24dfb14654
[FIR] KT-53493: Turn VAL_OR_VAR_ON_*_PARAMETER warnings into errors
...
Merge-request: KT-MR-7032
Merged-by: Nikolay Lunyak <lunyak.kolya@mail.ru >
2022-09-06 08:40:48 +00:00
Pavel Mikhailovskii
6a14400342
KT-53804 Restore old and incorrect logic of generating InnerClasses attributes for kotlin-stdlib
2022-09-05 14:02:52 +00:00
Pavel Kunyavskiy
4d64f3a422
Ignore added test for JS backend
2022-09-05 12:20:21 +00:00
Alexander Korepanov
453faeaa45
[JS IR] Memory consumption optimization
...
- Remove IR after JS AST generation
- Remove JS AST after/during JS code generation
2022-09-05 11:15:55 +00:00
Alexander Korepanov
c747d0e742
[JS IR] Optimize JS AST blocks memory consumption
2022-09-05 11:15:54 +00:00
Alexander Korepanov
ea34e10b67
[JS IR] Optimize JS AST scopes memory consumption
2022-09-05 11:15:54 +00:00
Alexander Korepanov
bf53273b84
[JS IR] Cache JsLocation objects and js function signatures
...
Memory consumption optimization
2022-09-05 11:15:53 +00:00
Alexander Korepanov
ff2f16190d
[JS IR] Minor: eliminate unused vals
2022-09-05 11:15:53 +00:00
Dmitriy Novozhilov
a6d3c6e5c6
[Serialization] Suppress OPT_IN errors in all diagnostic tests
2022-09-05 10:20:06 +00:00
Dmitriy Novozhilov
21aec49709
[Tests] Add ability to have separate asm instructions dump for fir + ir setup
2022-09-05 10:20:05 +00:00
Simon Ogorodnik
4dd7437df1
Fix kind of NoBuilderInferenceWithoutAnnotationRestriction
...
BUG_FIX kind causes feature to enable in progressive mode, which
wasn't intended
2022-09-05 10:07:42 +00:00
Simon Ogorodnik
05d486d55a
Fix receiver inconsistency when builder inference restriction disabled
...
In 154e53c701 update of
extensionReceiverArgument in resolvedCall was accidentally moved into
language feature dependant block
2022-09-05 10:07:41 +00:00
Alexander Korepanov
01507281a2
[Common IR] Forward the extension receiver in the reified wrapper
...
^KT-53672 Fixed
2022-09-05 07:40:30 +00:00
Pavel Kunyavskiy
d822d3e7c6
[K/N] Reenable constant inlining except for Double nan constants
...
^KT-52970
2022-09-05 06:06:44 +00:00
Artem Kobzar
0bb0be8703
feat(KT-48814): represent all of the external declarations nullable properties as an optional fields inside d.ts.
2022-09-02 10:50:20 +00:00
Nikolay Lunyak
3d9c77efa8
[FIR] Add DNN checks
...
Merge-request: KT-MR-7000
Merged-by: Nikolay Lunyak <lunyak.kolya@mail.ru >
2022-09-01 14:25:07 +00:00
Alexander Udalov
13ca189825
Support -Xjdk-release=8 as alias for -Xjdk-release=1.8
...
#KT-53278 Fixed
2022-09-01 12:15:47 +02:00