Ilya Goncharov
d114945b76
[Gradle, JS] Change message in polite manner
...
#KT-36489 fixed
#KT-36843 fixed
2020-02-20 19:32:35 +03:00
Ilya Goncharov
e0be8f271f
[Gradle, JS] Not error, but warning with test fix
2020-02-20 19:32:35 +03:00
Ilya Goncharov
40fb6c67d2
[Gradle, JS] Add diagnostic messages for js targets
2020-02-20 19:32:34 +03:00
Ilya Goncharov
aefaa6dc7f
[Gradle, JS] Remove deprecated configurations
2020-02-20 19:32:34 +03:00
Ilya Goncharov
92291c03e8
[Gradle, JS] Add methods with string definition of compiler
2020-02-20 19:32:34 +03:00
Ilya Goncharov
203ca018e5
[Gradle, JS] Rename public KotlinJsCompilerType
2020-02-20 19:32:34 +03:00
Ilya Goncharov
488538889b
[Gradle, JS] Extract JS presets container, no js in codegen since now
2020-02-20 19:32:34 +03:00
Ilya Goncharov
956b57a55d
[Gradle, JS] Do not duplicate target initialization
2020-02-20 19:32:34 +03:00
Ilya Goncharov
881de0a538
[Gradle, JS] Make default configuration of target
2020-02-20 19:32:34 +03:00
Ilya Goncharov
9112da2ad7
[Gradle, JS] Create predefined source sets for single platform plugin
2020-02-20 19:32:34 +03:00
Ilya Goncharov
06be32550b
[Gradle, JS] Fix lib and app test for both type
2020-02-20 19:32:34 +03:00
Ilya Goncharov
a5602165ec
[Gradle, JS] Fix names for js mpp
2020-02-20 19:32:33 +03:00
Ilya Goncharov
e1f7296426
[Gradle, JS] Fast test with both js compilers
2020-02-20 19:32:33 +03:00
Ilya Goncharov
37b3b3ec56
[Gradle, JS] Js default compiler type for mpp
2020-02-20 19:32:33 +03:00
Ilya Goncharov
3d30598774
[Gradle, JS] Js compiler type in interface
2020-02-20 19:32:33 +03:00
Ilya Goncharov
36631a5954
[Gradle, JS] Fix parallel tests
2020-02-20 19:32:33 +03:00
Ilya Goncharov
86e13c25b3
[Gradle, JS] Default conpiler type instead of legacy
2020-02-20 19:32:33 +03:00
Ilya Goncharov
ae89507736
[Gradle, JS] Add fish for js only lib-app test
2020-02-20 19:32:33 +03:00
Ilya Goncharov
16eb23c6b1
[Gradle, JS] Remove test with lib and app with not only legace
...
Because of performance reasons
- Fix usage of compiler type property
2020-02-20 19:32:33 +03:00
Ilya Goncharov
13594c80aa
[Gradle, JS] Declare default configurations in js single plugin
...
Because in Kotlin DSL we want to declare configurations in methods instead of extensions of Strings
We need to create configurations explicitly in plugin
2020-02-20 19:32:33 +03:00
Ilya Goncharov
f3f818edc3
[Gradle, JS] Use default configuration names only once in constants
2020-02-20 19:32:32 +03:00
Ilya Goncharov
d9c08945a3
[Gradle, JS] Common dependency configurations for both js
2020-02-20 19:32:32 +03:00
Ilya Goncharov
ecb89ad259
[Gradle, JS] Disambiguation classifier consider single platform plugin
2020-02-20 19:32:32 +03:00
Ilya Goncharov
4189bc88c2
[Gradle, JS] Provide disambiguation classifier for both mode
2020-02-20 19:32:32 +03:00
Ilya Goncharov
b967e11511
[Gradle, JS] Configure compiler type with single platform plugin
2020-02-20 19:32:32 +03:00
Ilya Goncharov
22e826770d
[Gradle, JS] Functions in extensions for configure compiler type
2020-02-20 19:32:32 +03:00
Ilya Goncharov
1346883837
[Gradle, JS] Fix published name for both compiler
2020-02-20 19:32:32 +03:00
Ilya Goncharov
185f7419d5
[Gradle, JS] Refactor with remove copypaste
2020-02-20 19:32:32 +03:00
Ilya Goncharov
397ff26e20
[Gradle, JS] With both compilers fully disambiguated names
2020-02-20 19:32:32 +03:00
Ilya Goncharov
ae391f3776
[Gradle, JS] Fix codegen for js platform
2020-02-20 19:32:31 +03:00
Ilya Goncharov
1bebcd398e
[Gradle, JS] Move JsCompilerType to Gradle Plugin API
2020-02-20 19:32:31 +03:00
Ilya Goncharov
82d31adb24
[Gradle, JS] Remove js compiler property from MPP plugin
2020-02-20 19:32:31 +03:00
Ilya Goncharov
4af389ba92
[Gradle, JS] Rename target on js in case of single platform
2020-02-20 19:32:31 +03:00
Mikhail Glukhikh
285f613ef7
[FIR TEST] Add test with unresolved member in nested lambdas (KT-36887)
2020-02-20 19:25:50 +03:00
Zalim Bashorov
6f61ea7f67
[JS DCE] Add an ability to define overwriting strategy when copying dependencies in dev-mode
...
* CLI option "-Xdev-mode-overwriting-strategy"
* System Property "kotlin.js.dce.devmode.overwriting.strategy"
Possible values: "older", "all".
#KT-36349 Fixed
2020-02-20 19:10:29 +03:00
Pavel Kirpichenkov
07ca355af8
[NI] Fix smartcasts for conventional contains in when
...
Call argument for conventional `contains` after expanding `in` may come from a `when` subject during its branch analysis.
In this case data flow info from a previous when branch was not considered,
because data flow info for subject had been used instead of data flow before argument.
Use of the latter one for the conventional `contains` solves the issue.
The old FE uses `isExternal` property of value arguments to skip smartcast reporting on `when` subject,
if they come from branches. To prevent undesired smartcasts on `when` subject after branch analysis in the new FE,
`isExternal` arguments are skipped in diagnostic reporter and during recorded type update.
Also, the new FE interprets `isExternal` completely differently from the old FE.
In the old FE this property is used exclusively by `when` with subject.
In the new FE it is also used for parially resolved calls, lambda return arguments and receivers.
This may be preventing the use of data flow info before argument in the first place, but this assumption requires additional investigation.
^KT-36818 Fixed
2020-02-20 19:07:54 +03:00
Abduqodiri Qurbonzoda
afceec71a4
Create an interface with provideDelegate() method #KT-26494
2020-02-20 18:57:52 +03:00
Abduqodiri Qurbonzoda
2566fbea87
toMutableList documentation is vague #KT-35231
2020-02-20 18:52:10 +03:00
Abduqodiri Qurbonzoda
f9ee1dc22d
Specify which element Iterable.distinctBy(selector) retains #KT-36356
2020-02-20 18:50:13 +03:00
Mikhail Glukhikh
fb49a586ef
FIR2IR: add comment about type parameter indexes
2020-02-20 18:34:52 +03:00
Mikhail Glukhikh
984a11995a
FIR2IR: pre-cache type parameters before property creation
...
Type parameters can be referred from e.g. property accessors,
so we should determine them earlier to be able to set their indexes
2020-02-20 18:34:52 +03:00
Mikhail Glukhikh
a3f676317f
FIR2IR: pre-cache type parameters before function creation
...
Type parameters can be referred from e.g. function return type,
so we should determine them earlier to be able to set their indexes
2020-02-20 18:34:51 +03:00
Mikhail Glukhikh
899d471646
FIR2IR: determine type parameters before class super types
...
Type parameters can be referred from type arguments of super types,
so we should determine them earlier to be able to set their indexes
2020-02-20 18:34:51 +03:00
Mikhail Glukhikh
8c21f04bf4
FIR2IR: determine type parameters before value parameters
...
Type parameters can be referred from value parameters,
so we should determine them earlier to be able to set their indexes
2020-02-20 18:34:51 +03:00
Mikhail Glukhikh
334cab7357
[FIR] Don't build redundant fake overrides for private members
...
The only case we may need fake override for private members is
a situation when class refers itself with different type arguments.
So in this commit we forbid such fake overrides when we can prove
that class does not refers itself here.
2020-02-20 18:34:51 +03:00
Mikhail Glukhikh
b4d026f5bf
[FIR] Add fast return from substitution scope when substitutor is empty
2020-02-20 18:34:50 +03:00
Mikhail Glukhikh
a6d11b0207
[FIR] Don't create redundant substitution scopes
2020-02-20 18:34:50 +03:00
Mikhail Glukhikh
01053c938a
Generate IGNORE_BACKEND_FIR in black box tests properly
2020-02-20 18:11:43 +03:00
Mikhail Zarechenskiy
d921dd0eed
Provide candidate interceptor for NI infrastructure
2020-02-20 18:07:12 +03:00
Igor Yakovlev
4693d595b7
Fix UL classes tests
...
Fixed #KT-36717
2020-02-20 18:03:10 +03:00