Igor Laevsky
0915dac1f9
[Wasm] Handle unsigned arrays in the vararg lowering
2021-11-03 18:50:06 +03:00
Igor Laevsky
8dc81b6c57
[Wasm][Temporary] Stubs for typeOf and ::class constructs
2021-11-03 16:23:01 +03:00
Ilya Goncharov
f22de86954
[JS IR] Possibility to use export for nested inside object
...
[JS IR] Fix test data after master rebase
[JS IR] Use stdlib's listOfNotNull
[JS IR] Possibility to use export for nested inside object
- Add tests for such cases
Merge-request: KT-MR-4883
^KT-49363 fixed
2021-11-03 09:56:22 +00:00
Pavel Kunyavskiy
948dc4f374
Fix annotation class modality in stubs
...
^KT-49428
2021-11-03 07:22:28 +00:00
Pavel Kunyavskiy
c5f6c2acbd
Better pre-1.6.20 compatibility fix for AnnotationImplementation
...
^KT-49428
2021-11-03 07:22:28 +00:00
Pavel Kunyavskiy
d127815626
Refactor DataClassMembersGenerator.kt for better work with LazyIr
...
^KT-49428
2021-11-03 07:22:28 +00:00
Mads Ager
6622846bc1
[JVM IR] Do not put destructuring params or underscores in LVT.
...
Putting them in the local variable table means that the debugger
needs to have special handling for parameters with specific names.
That forces us to generate mangled names for these.
Instead of also implementing the name mangling for FIR, this
change gets rid of the parameters from the LVT instead.
2021-11-02 15:13:14 +03:00
Sergej Jaskiewicz
42c213d950
[JS IR] Explicitly convert Long values to String in string concatenation
...
#KT-39891 Fixed
2021-11-02 10:42:28 +00:00
Ilya Goncharov
2584f45b1c
[JS IR] Refactor export model generator
...
^KT-37916 fixed
^KT-44494 fixed
2021-11-01 13:28:24 +00:00
Ilya Goncharov
9fdb0a23cd
[JS IR] Add literal and union types to TS generation, support them for enum
...
^KT-37916 fixed
^KT-44494 fixed
2021-11-01 13:28:24 +00:00
Ilya Goncharov
4fa2fa6c26
[JS IR] Export name and ordinal for enum classes
...
^KT-37916 fixed
^KT-44494 fixed
2021-11-01 13:28:24 +00:00
Ilya Goncharov
69f6dc059d
[JS IR] Export type for enum class and not extends kotlin.Enum in TS
...
^KT-37916 fixed
^KT-44494 fixed
2021-11-01 13:28:22 +00:00
Ilya Goncharov
9bd44e01f5
[JS IR] Export enum members like from usual classes
...
^KT-37916 fixed
^KT-44494 fixed
2021-11-01 13:28:20 +00:00
Ilya Goncharov
42cb0e60d7
[JS IR] Process enum classes correctly in export model generator
...
^KT-37916 fixed
^KT-44494 fixed
2021-11-01 13:28:20 +00:00
Ilya Goncharov
025e335b0f
[JS IR] Add more granularity to find enum related declarations
...
^KT-37916 fixed
^KT-44494 fixed
2021-11-01 13:28:20 +00:00
Artem Kobzar
979e9f94ef
feat(Escaped Identifiers): add ability to use any symbol wrapped in back ticks.
2021-10-29 17:55:59 +00:00
Dmitry Petrov
4f0c3c3c0d
JVM_IR never generate setter synthetic accessor for 'val' field
...
KT-49316
2021-10-29 18:38:11 +03:00
Artem Kobzar
102072a229
fix(KT-40236): compute JsName from overridden symbols.
2021-10-29 14:09:31 +00:00
Georgy Bronnikov
534beb8553
IR: Test for toSkip(this) in T.resolveFakeOverride()
...
^KT-49371 Fixed
2021-10-29 12:13:57 +03:00
Artem Kobzar
790e8843f9
fix(JS_IR): add outer classes resolving inside the function inliner.
2021-10-28 17:34:58 +00:00
Artem Kobzar
7f7aa9a921
feat(Inner Classes): generate typescript type definitions and JS for Inner Classes.
2021-10-28 17:33:41 +00:00
Svyatoslav Kuzmich
f7d3cb269f
[Wasm] Support passing lambdas from Kotlin to JS
2021-10-28 18:47:38 +03:00
Svyatoslav Kuzmich
766377a041
[Wasm] Remove WasmForeign annotation
...
No longer needed since external interfaces are supported
2021-10-28 18:47:38 +03:00
Roman Artemev
d809e260cb
[KLIB] Support DefinitelyNotNull type in KLIB
...
- add proto message
- serialize/deserialize
2021-10-28 18:03:11 +03:00
Roman Artemev
29728efbf7
[PSI2IR] Support DefinitelyNotNull type translation in Psi2Ir
2021-10-28 18:03:11 +03:00
Roman Artemev
101afded69
[IR] Introduce IrDefinitelyNotNullType in IR
...
- support it in render
- support in IR copy
- KEEP-268
2021-10-28 18:03:09 +03:00
Jinseong Jeon
2dc2a90755
Introduce an API to convert TypeConstructorMarker to TypeParameterMarker
2021-10-28 12:54:45 +03:00
Sergej Jaskiewicz
a367b91aa1
[IR] [Refactoring] Add toString and String::plus to IrBuiltins
...
Also use `OperatorNameConventions` constants instead of magic strings
2021-10-28 08:35:11 +00:00
Ilya Chernikov
cb513ee333
IR: fix ACCIDENTAL_OVERRIDE reporting on annotation implementations
2021-10-27 22:17:42 +02:00
Ilya Chernikov
5bdda9c7f8
Implement suppression cache based on IR tree, use it in reporter
2021-10-27 22:17:42 +02:00
Ilya Chernikov
ea1edc2bd9
Add equality to diagnostic context, simplifying deduplication
2021-10-27 22:17:41 +02:00
Ilya Chernikov
fc176e9845
Refactor IR reporting and infrastructure
2021-10-27 22:17:41 +02:00
Ilya Chernikov
5446168770
Add path to FirFile to pass it to the DiagnosticContext
2021-10-27 22:17:40 +02:00
Ilya Chernikov
1e056a7aa8
Report IR errors via new diagnostic infrastructure
2021-10-27 22:17:40 +02:00
Ilmir Usmanov
7ec9d608cc
Use original instead of lowered suspend function
...
as a key to view. Otherwise, SAM conversions will break.
#KT-49294 Fixed
2021-10-26 14:14:12 +00:00
Sergej Jaskiewicz
b27b202c28
[IR] Deduplicate StringConcatenationLowering in K/N
...
The common lowering is updated based on
fac1cf189c
2021-10-26 08:44:52 +00:00
Ivan Kochurkin
c13822a2c5
Optimize containsKey -> get pattern
2021-10-25 21:21:44 +03:00
Ivan Kochurkin
15d23f2a72
[FIR2IR] Fix applying of equals intrinsics
2021-10-25 21:21:39 +03:00
Dmitry Petrov
45a4cea655
IR KT-49372 cache progression loop parameters if their values can change
2021-10-25 19:03:13 +03:00
Roman Artemev
9f52326d14
[JS IR] Fix default arguments in suspend functions
...
Don't forget to remap parameter references in default arg expressions
The issue originally discovered in kotlinx.coroutines tests.
- add test
2021-10-25 12:56:16 +00:00
Roman Artemev
1d58fd159a
[IR] Replace adhoc remappers to common one ValueRemapper
2021-10-25 12:56:16 +00:00
Roman Artemev
9490f9da43
[IR] Add ValueRemapper to avoid reimplementing it each time
2021-10-25 12:56:16 +00:00
Ivan Kylchik
3e1563d46e
[JS TESTS] Rename JS_TESTS module to main
2021-10-25 00:14:19 +03:00
Dmitry Petrov
6e9cbf52b1
JVM_IR make $deserializeLambda$ method synthetic
2021-10-23 11:21:26 +03:00
Dmitry Petrov
1dbbe22c8c
JVM_IR serializable indy method references
2021-10-23 11:21:25 +03:00
Dmitry Petrov
eec16b83c6
Minor: reformat and fix warnings
2021-10-23 11:21:23 +03:00
Svyatoslav Kuzmich
4fc461a2ff
[Wasm] Imporove external interface support
...
* Support boxing/unboxing when casting to Any
* Support ===, equals, hashCode, toString
* Support adapting String in interop boundary
2021-10-23 01:26:12 +03:00
Dmitry Petrov
d5f6674d2d
JVM_IR KT-49335 run RepeatedAnnotationLowering per module
...
Otherwise, we drop annotation constructors in AnnotationLowering,
which breaks RAL in case of annotation container declared in different
file.
2021-10-21 21:22:36 +03:00
Ilya Goncharov
f6ba2a958a
[JS IR] No generate exportness for overridden properties
...
[JS IR] Add check on existence of overridden property in tests
^KT-49326 fixed
[JS IR] Add details to comment with exporting properties
^KT-49326 fixed
[JS IR] No generate exportness for overridden properties,
if only no override val -> var
^KT-49326 fixed
Merge-request: KT-MR-4810
2021-10-21 10:52:48 +00:00
Artem Kobzar
876d358fe6
fix(KT-46961): add support of nested external enums.
2021-10-21 06:40:00 +00:00