Ilya Goncharov
cac286c915
[JS IR] Access with exported properties by its name, not accessor
...
[JS IR] Export properties to ts as getter/setter, not fields
[JS IR] Fix typescript tests
Merge-request: KT-MR-5074
2021-11-26 09:18:12 +00:00
Artem Kobzar
08b0e17d47
feat(polyfills): use stdlib for js polyfills.
2021-11-26 08:14:34 +00:00
Ilya Goncharov
98bedf7eed
[IR] More user-friendly compilation exceptions from lowerings and JS codegen
...
Merge-request: KT-MR-5004
2021-11-25 13:21:34 +00:00
Roman Artemev
a01d9b77c3
[JS IR] Delegate invalidated files processing to the caller
...
This change is needed to test invalidation somehow
2021-11-25 11:22:45 +03:00
Ilya Goncharov
1481ad21f5
Enum implementing exported interface
...
[JS IR] Not export get instance enum function
[JS IR] Enum corresponding class is not considered in export
[JS IR] All enums are abstract and with private constructor
[JS IR] Any methods is left in d.ts
[JS IR] Make enum with declarations inside corresponding class
[JS IR] Export of interface through fake override
[JS IR] Include enum entry corresponding class members into export model
Merge-request: KT-MR-5031
^KT-49779 fixed
^KT-49773 fixed
2021-11-24 12:25:50 +00:00
Ilya Goncharov
f48436b35e
rra/ilgonmic/eager-like-native
...
[JS IR] Leave JsEagerInitialization until bootstrap update
[JS IR] Fix js stdlib api
[JS IR] Change annotation on eager initialization in sources
[JS IR] Make eager initialization consistent with native
Merge-request: KT-MR-5030
2021-11-22 12:45:37 +00:00
Sergej Jaskiewicz
756b58d5ce
[JS IR] Don't assume a single constructor in the Char class
2021-11-22 11:22:45 +00:00
Kristoffer Andersen
be1c0bb9c1
[EE-IR] Support mutations by evaluator fragments
...
- box captured variables using `Ref`s, the same mechanism that's used
for shared variables in closures.
2021-11-21 01:34:42 +01:00
Sergej Jaskiewicz
060074a9d6
[JS IR] Don't concatenate string template segments with '' when possible
...
If concatenating with an empty string is a sure no-op, just don't do it.
2021-11-19 11:16:33 +00:00
Roman Artemev
a0d67cb2e3
[JS IR] Support throwing linkage error in JS IR BE
...
- lower it into runtime API call
2021-11-19 01:16:37 +03:00
Roman Artemev
650b04b4dd
[JS IR] Make assert checks no unbound symbols left conditional
2021-11-19 01:16:34 +03:00
Anton Bannykh
75368a2c06
[JS IR] tie together IC code in tests and K2JsIrCompiler
2021-11-19 00:39:37 +03:00
Anton Bannykh
ff02ea5840
[JS IR] advance stage in regular mode when needed
2021-11-19 00:39:32 +03:00
Anton Bannykh
7d7dd3fe97
[JS IR] better tags + bare parameter names
2021-11-19 00:39:29 +03:00
Anton Bannykh
f9e62f8ffa
[JS IR] expose currentStage via the stageController
...
Otherwise the signatures for the declarations, created in lowerings,
will be miscalculated.
2021-11-19 00:39:24 +03:00
Anton Bannykh
f413d7fd75
[JS IR] make using the original parameter names possible
2021-11-19 00:39:18 +03:00
Anton Bannykh
e342ade00a
[JS IR] fix inline graph tracker for file-local signatures
2021-11-19 00:39:15 +03:00
Anton Bannykh
953089a4b9
[JS IR] suport SuspendN.invoke functions
2021-11-19 00:38:51 +03:00
Anton Bannykh
1ae042edc3
[JS IR] make old Ir2Js pass all tests
2021-11-19 00:38:46 +03:00
Anton Bannykh
3c859138d1
[JS IR] support source maps in new Ir2Js
2021-11-19 00:38:33 +03:00
Anton Bannykh
a7d8c34927
[JS IR] support generateScriptModule
2021-11-19 00:38:30 +03:00
Anton Bannykh
0506d422a3
[JS IR] support per-module in the new Ir2JS
2021-11-19 00:38:27 +03:00
Anton Bannykh
1f55dc73d2
[JS IR] don't inline property accessors across files
2021-11-19 00:38:24 +03:00
Anton Bannykh
03b9caa439
[JS IR] export external declarations
2021-11-19 00:38:15 +03:00
Anton Bannykh
ee8351b9c9
[JS IR] remove unused property
2021-11-19 00:38:11 +03:00
Anton Bannykh
0b0ed5241c
[JS IR] remove unused method
2021-11-19 00:38:09 +03:00
Anton Bannykh
3617c1388c
[JS IR] improve the hacky fix
2021-11-19 00:38:06 +03:00
Anton Bannykh
46a23c70df
[JS IR] hacky fix for local variables name binding
2021-11-19 00:38:03 +03:00
Anton Bannykh
e4c668462c
[JS IR] fix field namer
2021-11-19 00:38:00 +03:00
Anton Bannykh
5100cb058f
[JS IR] local var clashes
2021-11-19 00:37:55 +03:00
Anton Bannykh
05e8bfcd2a
[JS IR] split fqn-ish JsNames before resolving temporary names
2021-11-19 00:37:45 +03:00
Anton Bannykh
a5d9cb0cc6
[JS IR] copy class models
2021-11-19 00:37:40 +03:00
Artem Kobzar
d5dd35cb20
feat(@JsExport for interfaces): add ability to export interfaces in TypeScript.
2021-11-18 10:07:38 +00:00
Artem Kobzar
af924fd3d1
feat: add implicit export support for Kotlin/JS
2021-11-16 16:59:18 +00:00
Igor Yakovlev
ee7f4c7278
[WASM] Implementation typeOf support
2021-11-15 19:53:48 +03:00
Igor Yakovlev
ce360bb10b
[WASM] Implementation of Class references
2021-11-15 19:53:46 +03:00
Artem Kobzar
7aa8de55a5
fix(use strict): move global this polyfill after "use strict" pragma.
2021-11-12 15:59:27 +00:00
Ilya Goncharov
d6112224b4
[JS IR] Generate references from fake override to body in case of generic superclass
2021-11-11 15:12:34 +00:00
Ivan Kylchik
701a10d643
Split some functions of js compiler to be able to use them in tests
2021-11-08 23:50:33 +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
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
Artem Kobzar
102072a229
fix(KT-40236): compute JsName from overridden symbols.
2021-10-29 14:09:31 +00:00